]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
[grub2.git] / ChangeLog
CommitLineData
a79b8a15
VS
12013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
4 feature for it.
5
48f39bb4
VS
62013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
9 GRUB_CMDLINE_XEN_DEFAULT.
10 Reported by: Marc Warne (GigaTux) <gigatux>
11
053cfcdd
VS
122013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13
14 Import new gnulib.
15
93cd84df
VS
162013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17
18 Use ACPI shutdown intests as traditional port was removed.
19
f4b1fa4f
AB
202013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
21
22 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
23 distinction.
24
49818a59
VS
252013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26
27 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
28 Fix few warining messages and leaks while on it.
29
9277a306
AB
302013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
31
32 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
33 links under grub-core/lib/libgcrypt-grub/mpi.
34
d5e2a158
VS
352013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
36
37 Fix ia64-efi image generation on big-endian machines. Deduplicate
38 some code while on it.
39 Reported by: Leif Lindholm.
40
18866643
AB
412013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
42
43 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
44 as extra_dist.
45
ca53deb8
AB
462013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
47
48 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
49
d4c4b8e1
BH
502013-04-08 Bryan Hundven <bryanhundven@gmail.com>
51
52 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
53 texinfo-5.1.
54
47043f95
VS
552013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
56
57 * grub-core/normal/term.c: Few more fixes for menu entry editor
58 rendering.
59 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
60
a3216068
VS
612013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
62
63 * grub-core/normal/term.c: Few more fixes for menu entry editor
64 rendering.
65 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
66
21026747
AB
672013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
68
69 * conf/Makefile.extra-dist (EXTRA_DIST): Add
70 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
71
59624ca8
AB
722013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
73
74 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
75 instead of hardcoding grub.mo.
76
1f44478c
FN
772013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
78
79 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
80
eeada7b1
VS
812013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
82
83 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
84 grub-core/disk/geli.c.
85
132867de
VS
862013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
87
88 * util/grub-mkfont.c: Prefer enum to #define.
89
de73de17
VS
902013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
91
92 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
93
1865baa7
VS
942013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
95
96 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
97
ce7d92a9
VS
982013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
99
100 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
101
52eab656
VS
1022013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
103
104 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
105
98b23b95
VS
1062013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
107
108 * include/grub/bsdlabel.h: Use enums.
109
0467a5dd
VS
1102013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
111
112 Move GRUB_CHAR_BIT to types.h.
113
16cc9f03
AB
1142013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
115
116 * docs/grub.texi: Document more user commands.
117
3152aecb
AB
1182013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
119
120 * docs/grub.texi: Document menuentry --id option.
121
c506fc30
FL
1222013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
123
124 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
125
aa428238
VS
1262013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
127
128 Unify file copying setup across different install scripts. Add
129 options for performing partial install.
130
efe0cdda
PJ
1312013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1322013-04-04 Peter Jones <pjones@redhat.com>
133
134 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
135
f75835bd
VS
1362013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
137
138 Use TSC as a possible time source on i386-ieee1275.
139
2cd5ce6c
VS
1402013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
143 Init err.
144
c9625630
VS
1452013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
146
147 * util/grub-setup.c (setup): Handle some corner cases.
148
be008941
VS
1492013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
150
151 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
152
1a78d573
VS
1532013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
154
155 * grub-core/commands/verify.c: Save verified file to avoid it being
156 tampered with after verification was done.
157
db8ff59f
VS
1582013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
159
160 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
161 reported width by one to compensate for curesor algorithm problem.
162
91bf46b1
VS
1632013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
164
165 Fix screen corruption in menu entry editor and simplify the code
166 flow while on it.
167
a7b1d693
AB
1682013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
169
170 * util/grub-mount.c (fuse_init): Return error if fuse_main
171 failed.
172
31df9ad8
FL
1732013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
174
175 * include/grub/elf.h: Add missing ARM relocation codes and fix
176 existing ones.
177
07f392eb
VT
1782013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
179
180 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
181
9efd73ec 1822013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
1832013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
184
185 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
186 into account when calculating radius.
187
1882013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
189
190 * grub-core/gfxmenu/view.c: Fix off-by-one error.
191
4985ddaa
VT
1922013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
193
194 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
195
8c3635ff
RS
1962013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
197
198 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
199 missing closing bracket.
200
74a35e69
RS
2012013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
202
203 * INSTALL: Mention xorriso requirement.
204
40f1c000
AB
2052013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
206
207 * grub-core/commands/verify.c: Fix hash algorithms values for
208 the first three hashes - they start with 1, not with 0.
209
e75fdee4
VS
2102013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
211
212 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
213 Try terminating EFI services several times due to quirks in some
214 implementations.
215
33028f4c
CW
2162013-03-26 Colin Watson <cjwatson@ubuntu.com>
217
218 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
219 skipping Event, Device, Processor, PowerRes, ThermalZone, and
220 BankField extended opcodes.
221 (get_sleep_type): Add minimal scope handling (just enough to
222 handle setting the scope to the root path).
223 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
224 * include/grub/acpi.h: Add enumeration values for Event, Device,
225 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
226
33871a10
VT
2272013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
228
229 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
230 memory leak.
231
8990963a
VS
2322013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
233
234 * grub-core/disk/ahci.c: Give more time for AHCI request.
235
daae8f9e
VS
2362013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
239 command.
240
6a7fb94b
VS
2412013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
242
243 Replace the region at 0 from coreboot tables to available in BSD
244 memory map.
245
ff99babd
VS
2462013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
247
248 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
249 non-BIOS platforms.
250
30d6b1b2
VS
2512013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
254 platforms.
255
6ccd0b31
VS
2562013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
257
258 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
259 handling of multi-device filesystems.
260
23c9cc04
VS
2612013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
262
263 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
264 platforms.
265
ce50dbd7
VS
2662013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
267
268 Add new 'proc' filesystem framework and put luks_script into it.
269
d975e8d5
VS
2702013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
271
272 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
273 and qemu.
274
e73ba5e8
VS
2752013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
278
92750e4c
VS
2792013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
280
281 Add ability to generate newc additions on runtime.
282
0ec45a68
VS
2832013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
284
285 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
286 description.
287
320abd43
VS
2882013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
289
290 * po/POTFILES.in: Regenerate.
291
d7a6506e
VS
2922013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
293
294 * grub-core/commands/verify.c (hashes): Add several hashes
295 from the spec.
296
8fe05def
VS
2972013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
298
299 Slight improve in USB-related boot-time checkpoints.
300
524e2766
VS
3012013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
302
303 * grub-core/commands/boottime.c: Fix copyright header.
304
cc19857a
VS
3052013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
306
307 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
308 coreboot tables content. Support for cbmemc.
309
ef8810e9
VS
3102013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
311
312 Fix a conflict between ports structures with 2 controllers of
313 same kind.
314
e9dabdfa
VS
3152013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
316
317 * include/grub/boottime.h: Add missing file.
318
f6df57d2
VS
3192013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
320
321 Initialize USB ports in parallel to speed-up boot.
322
d745dda7
VS
3232013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
324
325 Fix USB devices not being detected when requested
326 due to delayed attach.
327
e5a2dd7b
VS
3282013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
329
e744219b
VS
330 Implement boot time analysis framework.
331
3322013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
333
334 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
335 descriptor to just receive it as argument rather than endpoint
336 address.
337
5dd6f587
VS
3382013-03-19 Aleš Nesrsta <starous@volny.cz>
339
340 Better estimate the maximum USB transfer size.
341
2f1071d5
VS
3422013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
343
344 Resend a packet if we got the wrong buffer in status.
345
46ecfc49
VS
3462013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
347
348 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
349 multiplication rather than division.
350
ea811130
VS
3512013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
352
353 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
354 than divisions.
355
d2789cf0
VS
3562013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
357
358 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
359 operations to have intended shifts and not divisions.
360
a9c94590
VS
3612013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
362
363 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
364 intended shifts rather than division.
365
84cfe81b
VS
3662013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
367
368 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
369 computation for some years before epoch. Avode confusing division
370 while on it.
371
21344ef6
VS
3722013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
373
374 * grub-core/video/i386/pc/vbe.c
375 (grub_video_vbe_print_adapter_specific_info): Replace division by
376 shifts.
377
3f2b4d1a
VS
3782013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
379
380 Adjust types in gdb module to have intended unsigned shifts rather than
381 signed divisions.
382
3dac5878
VS
3832013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
384
385 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
386 maximum size is 4G - 1 on hfs
387
5341c0fb
VS
3882013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
389
390 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
391
fc3ff2a2
VS
3922013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
393
394 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
395 function.
396
81455e8e
AB
3972013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
398
399 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
400 causing gcc error with gcc 4.7.1.
401
efd4f117
NZ
4022013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
403
404 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
405 dereference null pointer. While the code is technically correct, gcc
406 may eliminate a null check if pointer is already dereferenced.
407
e11645f4
NZ
4082013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
409
410 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
411 OOM check.
412 * grub-core/normal/term.c (read_terminal_list): Likewise.
413
77468368
VS
4142013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
415
416 Lift up core size limits on some platforms. Fix potential memory
417 corruption with big core on small memory systems. Document remaining
418 limits.
419
f6b58fe5
VS
4202013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
423 gotoxy to 0,0.
424
19ce697d
VS
4252013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
426
427 Remove all trampoline support. Add -Wtrampolines when
428 present. Remove symbols used for trampolines to make
429 link fail if trampolines are present.
430
73b5d90f
VS
4312013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
432
433 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
434 append out of its parent.
435
cb758e96
VS
4362013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
437
438 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
439 parent.
440
3188131f
VS
4412013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
442
443 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
444 all vars to a macro. All users updated.
445
e42b2514
VS
4462013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
447
448 * grub-core/disk/ieee1275/nand.c: Fix compilation on
449 i386-ieee1275.
450
83e1a1a1
VS
4512013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
452
453 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
454
1d5a880f
VS
4552013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
456
457 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
458
6e4146c4
VS
4592013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
460
461 Move to more hookless approach in IEEE1275 devices handling.
462
99fcda8a
VS
4632013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
464
465 * grub-core/kern/term.c (grub_term_normal_color),
466 (grub_term_highlight_color): Add back lost defaults.
467
73bf57e2
VS
4682013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
469
470 Make elfload not use hooks. Opt for flags and iterators instead.
471
7f8c105f
VS
4722013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
473
474 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
475 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
476
396d4091
VS
4772013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
478
479 * grub-core/script/execute.c (gettext_append): Remove nested functions.
480
4812013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
484 hook pass-through parameter. All users updated and unnested.
485
74a27421
VS
4862013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
487
488 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
489 out of its parent.
490
b46d4213
VS
4912013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
492
493 * grub-core/fs/hfs.c: Remove nested functions.
494
e114c3cc
VS
4952013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
496
497 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
498 the context through.
499 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
500
f9b7d780
VS
5012013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
502
503 * util/grub-editenv.c (list_variables): Move print_var out of its
504 parent.
505
ca9c2608
VS
5062013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
507
508 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
509 function.
510
5d983f5f
VS
5112013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
512
513 * grub-core/gentrigtables.c: Make tables const.
514
3056d3e7
VS
5152013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
516
517 Remove nested functions from videoinfo iterators.
518
e2303774
VS
5192013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
520
521 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
522 for 64-bit platforms.
523
f42e3a2f
VS
5242013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
525
526 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
527 a FOR_CHILDREN macro.
528
be174e5e
VS
5292013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
530
531 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
532 platform from firmware path.
533
0789b672
VS
5342013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
535
536 Enable linux16 on non-BIOS systems for i.a. memtest.
537
538 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
539 correctly.
540 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
541
005a9c32
VS
5422013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
543
544 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
545 Fix end of table condition.
546
ff2b3cd9
VS
5472013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
548
549 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
550 out of its parent.
551
4fc40ff8
VS
5522013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
553
554 * grub-core/fs/jfs.c: Remove nested functions.
555
be42d97a
VS
5562013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
557
558 * grub-core/fs/minix.c: Remove nested functions.
559
99373ce4
VS
5602013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
561
562 * grub-core/fs/iso9660.c: Remove nested functions.
563
5aec2afe
VS
5642013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
565
566 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
567 of parent function.
568
6c69e691
VS
5692013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
570
571 * util/grub-fstest.c: Remove nested functions.
572
43c91882
VS
5732013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
574
575 * grub-core/loader/machoXX.c: Remove nested functions.
576
4eb8b756
CW
5772013-02-27 Colin Watson <cjwatson@ubuntu.com>
578
579 Remove nested functions from disk and file read hooks.
580
581 * include/grub/disk.h (grub_disk_read_hook_t): New type.
582 (struct grub_disk): Add read_hook_data member.
583 * include/grub/file.h (struct grub_file): Likewise.
584 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
585 argument.
586
587 Update all callers.
588
df6da5a5
AB
5892012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
590
591 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
592 Fix off by one error in enumerating extended partitions.
593
21aecde5
AB
5942013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
595
596 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
597 memory leak if device name is not found.
598
f1a19118
AB
5992013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
600
601 * grub-core/normal/menu_entry.c (update_screen): remove
602 unused variable `off' which caused scroll down arrow to be always shown.
603
958bfd20
AB
6042013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
605
606 * grub-core/normal/menu_entry.c (insert_string): fix off by one
607 access to unallocated memory.
608
b7b78edb
AB
6092013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
610
611 * Makefile.util.def: Add partmap/msdos.c to common library.
612 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
613 * grub-core/disk/ldm.c: Check for existence of
614 GRUB_PC_PARTITION_TYPE_LDM.
615
28d468d6
VS
6162013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
617
618 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
619 sizes and display sector size.
620
d55ffb02
VS
6212013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
622
623 Implement new command cmosdump.
624
b5ea6ce0
VS
6252013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
626
627 Support Openfirmware disks with non-512B sectors.
628
629 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
630 size of the disk.
631 * (grub_ofdisk_get_block_size): New function.
632 * (grub_ofdisk_prepare): Use the correct block size.
633 * (grub_ofdisk_read): Likewise.
634 * (grub_ofdisk_write): Likewise.
635 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
636 New proto.
637
cc0e476f
VS
6382013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
639
640 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
641
c5dbdc33
VS
6422013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
643
644 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
645 on first error.
646
3f078c0f
VS
6472013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
648
649 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
650 freeing it.
651
66a93674
VS
6522013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
653
654 Implement USBDebug (full USB stack variant).
655
c9f0c134
VS
6562013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
659 unless they have unexpected values.
660
cfe1288b
VS
6612013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
662
663 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
664 grub_print_error.
665
e42b9969
VS
6662013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
669 zero-out of port structure.
670
cf94fd62
VS
6712013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
674 of extended attributes.
675
f81ef4b5
AB
6762013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
677
678 * util/grub-install.in: change misleading comment about
679 device.map creation
680
af18fdb4
VS
6812013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
682
683 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
684 when menu highlight color isn't set.
685
08bcec50
M
6862013-01-27 C. Masloch <pushbx@38.de>
687
688 Improve FreeDOS direct loading support compatibility.
689
690 * include/grub/i386/relocator.h (grub_relocator16_state):
691 New member ebp.
692 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
693 variable.
694 (grub_relocator16_boot): Handle %ebp.
695 * grub-core/lib/i386/relocator16.S: Likewise.
696 * grub-core/loader/i386/pc/freedos.c:
697 Load BPB to pass kernel which partition to load from.
698 Check that kernel file is not too large.
699 Set register dl to BIOS unit number as well.
700
7782b8a6
CW
7012013-01-22 Colin Watson <cjwatson@ubuntu.com>
702
703 * util/grub-reboot.in (usage): Document the need for
704 GRUB_DEFAULT=saved.
705 * util/grub-set-default.in (usage): Likewise.
706 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
707
e661c180
VS
7082013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
711 than defining WORDS_BIGENDIAN manually.
712
1c22ca9a
VS
7132013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
714
715 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
716 invariants.
717
d44892fe
CW
7182013-01-21 Colin Watson <cjwatson@ubuntu.com>
719
720 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
721 nested.
722 (blit_comb: add_device_width): Likewise.
723
5fdbaed1
CW
7242013-01-21 Colin Watson <cjwatson@ubuntu.com>
725
726 Remove nested functions from USB iterators.
727
728 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
729 (grub_usb_controller_iterate_hook_t): Likewise.
730 (grub_usb_iterate): Add hook_data argument.
731 (grub_usb_controller_iterate): Likewise.
732 (struct grub_usb_controller_dev.iterate): Likewise.
733
734 Update all implementations and callers.
735
4250985a
VS
7362013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
737
738 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
739 margin when not needed.
740
7d8848f3
VS
7412013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
742
bc136973 743 Make color variables global instead of it being per-terminal.
7d8848f3
VS
744
7452013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
746
bc136973
VS
747 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
748 asterisk.
7d8848f3 749
ed12a003
CW
7502013-01-21 Colin Watson <cjwatson@ubuntu.com>
751
752 Fix powerpc and sparc64 build failures caused by un-nesting memory
753 map iterators.
754
6a0db449
CW
7552013-01-21 Colin Watson <cjwatson@ubuntu.com>
756
757 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
758 parameter declarations.
759
ccd86b21
VS
7602013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
761
762 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
763
822b726b
VS
7642013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
765
766 Improve spkmomdem reliability by adding a separator between bytes.
767
115c2cc1
CW
7682013-01-21 Colin Watson <cjwatson@ubuntu.com>
769
770 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
771 an Acer registration utility with several sightings in the wild.
772 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
773
fc524edf
CW
7742013-01-21 Colin Watson <cjwatson@ubuntu.com>
775
776 Remove nested functions from filesystem directory iterators.
777
778 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
779 (struct grub_fs.dir): Add hook_data argument.
780
781 Update all implementations and callers.
782
53d3e4e3
CW
7832013-01-21 Colin Watson <cjwatson@ubuntu.com>
784
785 * docs/grub.texi (Multi-boot manual config): Fix typo for
786 "recommended".
787
c821711f
LL
7882013-01-20 Leif Lindholm <leif.lindholm@arm.com>
789
790 * util/grub-mkimage.c (main): Postpone freeing arguments.output
791 until after its use in generate_image.
792
6a0debbd
CW
7932013-01-20 Colin Watson <cjwatson@ubuntu.com>
794
795 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
796 initrd size to addr_min, since the initrd will be allocated after
797 this address.
798
f41e08db
AB
7992013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
800
801 * conf/Makefile.common: Fix autogen rules to pass definition
802 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
803
77529e0f
LL
8042013-01-20 Leif Lindholm <leif.lindholm@arm.com>
805
806 * include/grub/elf.h: Update ARM definitions based on binutils.
807
b879aa7b
VS
8082013-01-20 Aleš Nesrsta <starous@volny.cz>
809
810 Split long USB transfers into short ones.
811
8eb8284d
AB
8122013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
813
814 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
815 is interrupted by ESC.
816
08dad2dc
VS
8172013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * util/grub-script-check.c (main): Uniform the error message.
820
6c724b85
CW
8212013-01-20 Colin Watson <cjwatson@ubuntu.com>
822
823 Remove nested functions from ELF iterators.
824
25239370
CW
8252013-01-20 Colin Watson <cjwatson@ubuntu.com>
826
827 Remove nested functions from device iterators.
828
829 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
830 (grub_arc_iterate_devs): Add hook_data argument.
831 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
832 (struct grub_ata_dev.iterate): Add hook_data argument.
833 * include/grub/device.h (grub_device_iterate_hook_t): New type.
834 (grub_device_iterate): Add hook_data argument.
835 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
836 (struct grub_disk_dev.iterate): Add hook_data argument.
837 (grub_disk_dev_iterate): Likewise.
838 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
839 Likewise.
840 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
841 Likewise.
842 * include/grub/partition.h (grub_partition_iterate_hook_t): New
843 type.
844 (struct grub_partition_map.iterate): Add hook_data argument.
845 (grub_partition_iterate): Likewise.
846 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
847 (struct grub_scsi_dev.iterate): Add hook_data argument.
848
849 Update all callers.
850
6c0314d6
CW
8512013-01-20 Colin Watson <cjwatson@ubuntu.com>
852
853 Fix typos for "developer" and "development".
854
600dc5f1
VS
8552013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
856
857 Add license header to spkmodem-recv.c.
858
17334a6b
VS
8592013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
860
861 Rewrite spkmodem to use PIT for timing. Double the speed.
862
7d462559
VS
8632013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
864
865 Add new command pcidump.
866
b78d6c32
VS
8672013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
868
869 New terminal outputs using serial: morse and spkmodem.
870
34f71cb8
VS
8712013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
872
873 Improve bidi handling in entry editor.
874
4542e71b
VS
8752013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
876
877 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
878 argument to prevent name collision.
879
09fd6d82
CW
8802013-01-15 Colin Watson <cjwatson@ubuntu.com>
881
882 Remove nested functions from script reading and parsing.
883
884 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
885 getline_data argument, passed to getline.
886 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
887 getline_data argument, passed to grub_parser_split_cmdline.
888 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
889 lexerstate->getline_data to lexerstate->getline.
890 (grub_script_lexer_init): Add getline_data argument, saved in
891 lexerstate->getline_data.
892 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
893 argument, passed to grub_script_parse.
894 * grub-core/script/script.c (grub_script_parse): Add getline_data
895 argument, passed to grub_script_lexer_init.
896 * include/grub/parser.h (grub_parser_split_cmdline): Update
897 prototype. Update all callers to pass appropriate getline data.
898 (struct grub_parser.parse_line): Likewise.
899 (grub_rescue_parse_line): Likewise.
900 * include/grub/reader.h (grub_reader_getline_t): Add void *
901 argument.
902 * include/grub/script_sh.h (struct grub_lexer_param): Add
903 getline_data member.
904 (grub_script_parse): Update prototype. Update all callers to pass
905 appropriate getline data.
906 (grub_script_lexer_init): Likewise.
907 (grub_normal_parse_line): Likewise.
908
909 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
910 data argument.
911 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
912 static instead of nested. Rename to ...
913 (grub_parser_execute_getline): ... this.
914 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
915 data argument.
916 * grub-core/normal/main.c (read_config_file: getline): Make static
917 instead of nested. Rename to ...
918 (read_config_file_getline): ... this.
919 (grub_normal_read_line): Add unused data argument.
920 * grub-core/script/execute.c (grub_script_execute_sourcecode:
921 getline): Make static instead of nested. Rename to ...
922 (grub_script_execute_sourcecode_getline): ... this.
923 * util/grub-script-check.c (main: get_config_line): Make static
924 instead of nested.
925
d0d4b8a0
CW
9262013-01-15 Colin Watson <cjwatson@ubuntu.com>
927
928 Remove nested functions from memory map iterators.
929
930 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
931 argument, passed to hook.
932 * grub-core/kern/i386/coreboot/mmap.c
933 (grub_linuxbios_table_iterate): Likewise.
934 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
935 instead of nested.
936 (grub_machine_mmap_iterate): Add hook_data argument.
937 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
938 Add hook_data argument, passed to hook.
939 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
940 Likewise.
941 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
942 Likewise.
943 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
944 Likewise.
945 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
946 Likewise.
947 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
948 Likewise.
949 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
950 Likewise.
951 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
952 (grub_machine_mmap_iterate): Likewise.
953 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
954 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
955 prototype.
956 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
957 Remove NESTED_FUNC_ATTR from here and from all users.
958 (grub_mmap_iterate): Update prototype.
959 (grub_efi_mmap_iterate): Update prototype. Update all callers to
960 pass appropriate hook data.
961 (grub_machine_mmap_iterate): Likewise.
962
963 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
964 static instead of nested.
965 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
966 Rename to ...
967 (lsmmap_hook): ... this.
968 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
969 Likewise.
970 (grub_efiemu_mmap_fill: fill_hook): Likewise.
971 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
972 heap_init): Likewise.
973 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
974 Rename to ...
975 (mmap_iterate_hook): ... this.
976 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
977 Likewise.
978 * grub-core/lib/ieee1275/relocator.c
979 (grub_relocator_firmware_get_max_events: count): Likewise.
980 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
981 to ...
982 (grub_relocator_firmware_fill_events_iter): ... this.
983 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
984 hook): Likewise. Rename to ...
985 (grub_relocator_alloc_chunk_align_iter): ... this.
986 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
987 Rename to ...
988 (generate_e820_mmap_iter): ... this.
989 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
990 Rename to ...
991 (count_hook): ... this.
992 (grub_linux_boot: hook): Likewise. Rename to ...
993 (grub_linux_boot_mmap_find): ... this.
994 (grub_linux_boot: hook_fill): Likewise. Rename to ...
995 (grub_linux_boot_mmap_fill): ... this.
996 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
997 hook): Likewise. Rename to ...
998 (grub_fill_multiboot_mmap_iter): ... this.
999 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
1000 hook): Likewise. Rename to ...
1001 (count_hook): ... this.
1002 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
1003 hook): Likewise. Rename to ...
1004 (grub_fill_multiboot_mmap_iter): ... this.
1005 * grub-core/loader/powerpc/ieee1275/linux.c
1006 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
1007 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
1008 Likewise. Rename to ...
1009 (alloc_phys_choose): ... this.
1010 (determine_phys_base: get_physbase): Likewise.
1011 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
1012 find_hook): Likewise.
1013 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
1014 (malloc_hook: count_hook): Likewise.
1015 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
1016 Likewise. Rename to ...
1017 (lower_hook): ... this.
1018 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1019 (upper_hook): ... this.
1020 (grub_mmap_get_post64: hook): Likewise. Rename to ...
1021 (post64_hook): ... this.
1022 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
1023 Likewise. Rename to ...
1024 (lower_hook): ... this.
1025 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1026 (upper_hook): ... this.
1027 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
1028 (grub_mmap_iterate: fill_hook): Likewise.
1029 (fill_mask): Pass addr and mask within a single struct.
1030 (grub_cmd_badram: hook): Make static instead of nested. Rename
1031 to ...
1032 (badram_iter): ... this.
1033 (grub_cmd_cutmem: hook): Likewise. Rename to ...
1034 (cutmem_iter): ... this.
1035
22099030
VS
10362013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
1039 delimit path in strings using quotes.
1040 * util/getroot.c (grub_guess_root_devices): Likewise.
1041 (grub_make_system_path_relative_to_its_root): Likewise.
1042 * util/grub-probe.c (probe): Likewise.
1043 * util/ieee1275/ofpath.c (find_obppath): Likewise.
1044 (xrealpath): Likewise.
1045
4a9950ec
VS
10462013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 Fix compilation with older compilers.
1049
1050 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
1051 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
1052 declarations.
1053 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
1054 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
1055 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
1056 identifier with b.
1057 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
1058 * include/grub/crypto.h: Add type defines.
1059 * util/import_gcrypth.sed: Remove duplicate type defines.
1060
adcc6020
VS
10612013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1062
1063 New command list_trusted.
1064
1065 * grub-core/commands/verify.c (grub_cmd_list): New function.
1066
a4528937
CW
10672013-01-13 Colin Watson <cjwatson@ubuntu.com>
1068
1069 * util/grub-mkimage.c (generate_image): Fix "size of public key"
1070 info message.
1071
ca3a7446
CW
10722013-01-13 Colin Watson <cjwatson@ubuntu.com>
1073
1074 Remove nested functions from PCI iterators.
1075
1076 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
1077 passed to hook. Update all callers to pass appropriate hook data.
1078 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
1079 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
1080 Remove NESTED_FUNC_ATTR from here and from all users.
1081 (grub_pci_iterate): Update prototype.
1082 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
1083 instead of nested. Rename to ...
1084 (grub_cs5536_find_iter): ... this.
1085 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
1086 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
1087 Likewise.
1088 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1089 Likewise.
1090 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1091 Likewise.
1092 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1093 Likewise.
1094 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1095 * grub-core/video/radeon_fuloong2e.c
1096 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1097 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1098 find_card): Likewise.
1099 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1100 Likewise.
1101
f8e98fee
VS
11022013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 * grub-core/commands/verify.c: Mark messages for translating.
1105
055b36b6
VS
11062013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1109 fatal.
1110
f7ff879b
VS
11112013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1112
1113 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1114 fatal.
1115
11162013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
1117
1118 * autogen.sh: Do not try to delete nonexistant files.
1119 * util/import_gcrypth.sed: Add some missing header removals.
1120
01323d49
CW
11212013-01-12 Colin Watson <cjwatson@ubuntu.com>
1122
1123 Clean up dangling references to grub-setup.
1124 Fixes Ubuntu bug #1082045.
1125
1126 * docs/grub.texi (Images): Refer generally to grub-install rather
1127 than directly to grub-setup.
1128 (Installing GRUB using grub-install): Remove direct reference to
1129 grub-setup.
1130 (Device map) Likewise.
1131 (Invoking grub-install): Likewise.
1132 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1133 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1134 * util/grub-install.in (usage): Likewise.
1135
1136 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1137 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1138 grub-setup.
1139 * configure.ac: Remove grub_setup output variable.
1140
1141 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1142 to grub-bios-setup.
1143 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1144 grub-setup to grub-sparc64-setup.
1145
5e3b8dcb
VS
11462013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 Import gcrypt public-key cryptography and implement signature checking.
1149
535714bd
VS
11502013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1151
1152 * grub-core/fs/ntfs.c: Ue more appropriate types.
1153 * grub-core/fs/ntfscomp.c: Likewise.
1154 * include/grub/ntfs.h: Likewise.
1155
3e4f3566
VS
11562013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 Support Apple FAT binaries on non-Apple platforms.
1159
1160 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1161 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1162 Likewise.
1163 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1164 Apple FAT binaries.
1165
4dedb13f
VS
11662013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1169 sector devices.
1170
f8861eaf
CW
11712013-01-07 Colin Watson <cjwatson@ubuntu.com>
1172
1173 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1174 explicitly zeroing elements.
1175 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1176 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1177 of elements in a structure already allocated using grub_zalloc.
1178 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1179
86065b0a
CW
11802013-01-07 Colin Watson <cjwatson@ubuntu.com>
1181
1182 * docs/grub.texi (grub_cpu): New subsection.
1183 (grub_platform): Likewise.
1184
c6f1e92f
VS
11852013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1186
1187 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1188
f797ec85
VS
11892013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1192 divisions.
1193
033d0b4b
VS
11942013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1195
1196 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1197 * grub-core/fs/ntfscomp.c: Likewise.
1198 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1199 (grub_ntfs_comp): Likewise.
1200
21d1b9a0
VS
12012013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1204 Rename to ...
1205 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1206 of groups_per_block. All users updated.
1207
10ca8645
VS
12082013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1209
1210 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1211 grub_error properly.
1212 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1213 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1214
a4c3ed4c
VS
12152013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1218 always in /boot/zfs.
1219 Reported by: Yuta Satoh.
1220
0b716507
YS
12212013-01-03 Yuta Satoh <nigoro>
1222
1223 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1224 ${grub_probe}
1225
00c05e22
VS
12262013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 * configure.ac: Extend -Wno-trampolines to host.
1229
dadddb76
VS
12302013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1233 entry->len = 0.
1234
54ce53ca
CW
12352013-01-03 Colin Watson <cjwatson@ubuntu.com>
1236
1237 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1238 (Invoking grub-script-check): Likewise.
1239
8912efca
CW
12402013-01-03 Colin Watson <cjwatson@ubuntu.com>
1241
1242 * docs/grub.texi (Invoking grub-mount): New section.
1243 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1244
c3fc8394
CW
12452013-01-02 Colin Watson <cjwatson@ubuntu.com>
1246
1247 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1248 test failures, so that a failing unit test correctly causes 'make
1249 check' to fail.
1250
45d26abb
CW
12512013-01-02 Colin Watson <cjwatson@ubuntu.com>
1252
1253 Fix failing printf test.
1254
1255 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1256 '$' in the correct order when collecting type information.
1257
971dd2c6
CW
12582013-01-02 Colin Watson <cjwatson@ubuntu.com>
1259
1260 * docs/grub.texi (configfile): Explain environment variable
1261 handling.
1262 (source): New section.
1263 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1264
5c67ea6c
CW
12652012-12-31 Colin Watson <cjwatson@ubuntu.com>
1266
1267 Remove several trivially-unnecessary uses of nested functions.
1268
1269 * grub-core/commands/i386/pc/sendkey.c
1270 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1271 instead of nested.
1272 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1273 Rename to ...
1274 (legacy_file_getline): ... this.
1275 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1276 Likewise.
1277 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1278 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1279 to ...
1280 (probe_dummy_iter): ... this.
1281 * grub-core/kern/i386/coreboot/mmap.c
1282 (grub_linuxbios_table_iterate: check_signature): Likewise.
1283 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1284 check_varstate): Likewise. Mark inline.
1285 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1286 an additional parameter.
1287 (find_long: fnd_long): Likewise. Pass two additional parameters.
1288 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1289 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1290 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1291 Likewise. Rename to ...
1292 (grub_cmos_find_port_iter): ... this.
1293 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1294 Rename to ...
1295 (find_rtc_iter): ... this.
1296
1297 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1298 function directly into the function body, since it is only called
1299 once.
1300
33a68ac6
CW
13012012-12-30 Colin Watson <cjwatson@ubuntu.com>
1302
1303 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1304 __attribute__ ((unused)).
1305 * grub-core/video/bochs.c (find_card): Likewise.
1306 * grub-core/video/cirrus.c (find_card): Likewise.
1307 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1308 * grub-core/video/sis315pro.c (find_card): Likewise.
1309 * grub-core/video/sm712.c (find_card): Likewise.
1310
608b647a
CW
13112012-12-28 Colin Watson <cjwatson@ubuntu.com>
1312
1313 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1314 Fixes Savannah bug #37821.
1315
fd49ceb3
CW
13162012-12-28 Colin Watson <cjwatson@ubuntu.com>
1317
1318 Apply program name transformations at build-time rather than at
1319 run-time. Fixes Debian bug #696465.
1320
1321 * acinclude.m4 (grub_TRANSFORM): New macro.
1322 * configure.ac: Create output variables with transformed names for
1323 most programs.
1324 * util/bash-completion.d/grub-completion.bash.in: Use
1325 pre-transformed variables for program names.
1326 * util/grub-install.in: Likewise.
1327 * util/grub-kbdcomp.in: Likewise.
1328 * util/grub-mkconfig.in: Likewise.
1329 * util/grub-mkconfig_lib.in: Likewise.
1330 * util/grub-mknetdir.in: Likewise.
1331 * util/grub-mkrescue.in: Likewise.
1332 * util/grub-mkstandalone.in: Likewise.
1333 * util/grub-reboot.in: Likewise.
1334 * util/grub-set-default.in: Likewise.
1335 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1336 * tests/util/grub-shell-tester.in: Remove unused assignment.
1337 * tests/util/grub-shell.in: Likewise.
1338 * util/grub.d/00_header.in: Likewise.
1339
7024b3c0
CW
13402012-12-28 Colin Watson <cjwatson@ubuntu.com>
1341
1342 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1343
1344 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1345 HAVE_RAW_DECL_GETS.
1346 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1347
e3501b13
VS
13482012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1349
1350 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1351 Reported by: Eriks Latosheks <foresterlv>.
1352
b40c88a9
VS
13532012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1354
1355 * docs/grub.texi (Network): Update instructions on generating netboot
1356 image.
1357
ce96d01c
VS
13582012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1359
1360 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1361 around device name if necessarry.
1362
0f596201
PFS
13632012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1364
1365 * util/grub-install.in: Follow the symbolic link parameter added
1366 to the file command.
1367
600d5bdb
AB
13682012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1369
1370 * util/grub-install.in: Remove stale TODO.
1371
64ebd2f4
PFS
13722012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1373
1374 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1375 dynamic allocation for the bootpath buffer.
1376
74b2fe3e
DTB
13772012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1378
1379 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1380 window too small.
1381
969b804f
VS
13822012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1385 argument rather than font name. All users updated.
1386 (grub_gfxterm_set_window): Likewise.
1387
b9f5ebd6
VT
13882012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1389
1390 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1391 from working.
1392
258f43b7
VS
13932012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1394
1395 * util/getroot.c (convert_system_partition_to_system_disk): Support
1396 nbd disks.
1397
cc1ce5f9
VS
13982012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1399
1400 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1401 infinite loop on corrupted FS.
1402
e77a16ca
VS
14032012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1404
1405 Fix big-endian mtime.
1406
1407 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1408 together sec and usec.
1409 (grub_ufs_dir): Use correct byteswapping for UFS time.
1410
d9c48c7b
VS
14112012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 Support big-endian UFS1.
1414
1415 * Makefile.util.def (libgrubmods): Add ufs_be.c
1416 * grub-core/Makefile.core.def (ufs1_be): New module.
1417 * grub-core/fs/ufs_be.c: New file.
1418 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1419 the file.
1420
2f9f40ba
LL
14212012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1422
1423 * include/grub/types.h: Fix functionality unaffecting typo in
1424 GRUB_TARGET_WORDSIZE conditional macro.
1425
48ff0889
PFS
14262012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1427
1428 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1429
03711240
GS
14302012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1431
1432 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1433 that /netbsd appears first (when it exists).
1434
a31b11bd
CJ
14352012-10-12 Christoph Junghans <ottxor@gentoo.org>
1436
1437 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1438 Fixes Savannah bug #37558.
1439
e8a5d5d4
CW
14402012-10-12 Colin Watson <cjwatson@ubuntu.com>
1441
1442 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1443 description of extract_entries_configfile.
1444
14452012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
1446
1447 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1448 preferred_address.
1449 (grub_cmd_linux): Likewise.
1450 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1451 preferred_lifetime. Update all users.
1452
288c757d
CW
14532012-09-26 Colin Watson <cjwatson@ubuntu.com>
1454
1455 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1456 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1457
0d35da3f
CW
14582012-09-26 Colin Watson <cjwatson@ubuntu.com>
1459
1460 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1461 errors from grub-probe to /dev/null, not stdout.
1462
b78c3127
VS
14632012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1466 sector 1.
1467
473959f0
CW
14682012-09-24 Colin Watson <cjwatson@ubuntu.com>
1469
1470 * util/grub-install.in: Make the error message if $source_dir
1471 doesn't exist more useful.
1472
794c8c33
CW
14732012-09-22 Colin Watson <cjwatson@ubuntu.com>
1474
1475 Fix grub-emu build on FreeBSD.
1476
1477 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1478 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1479 headers on Linux.
1480 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1481 implementation is currently Linux-specific.
1482 * util/getroot.c (exec_pipe): Define only on Linux or when either
1483 libzfs or libnvpair is unavailable.
1484 (find_root_devices_from_poolname): Remove unused path variable.
1485
86d08fdb
CW
14862012-09-19 Colin Watson <cjwatson@ubuntu.com>
1487
1488 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1489 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1490 should fit before end == 63.
1491
735abf54
CW
14922012-09-19 Colin Watson <cjwatson@ubuntu.com>
1493
1494 * util/grub-setup.c (write_rootdev): Remove unused core_img
1495 parameter. Update all callers.
1496 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1497 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1498 GRUB_SETUP_BIOS.
1499
140acd3c
VS
15002012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1501
1502 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1503 (grub_add_tab): New function.
1504 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1505 * util/grub.d/10_illumos.in: Likewise.
1506 * util/grub.d/10_kfreebsd.in: Likewise.
1507 * util/grub.d/10_linux.in: Likewise.
1508 * util/grub.d/10_netbsd.in: Likewise.
1509 * util/grub.d/10_windows.in: Likewise.
1510 * util/grub.d/10_xnu.in: Likewise.
1511 * util/grub.d/20_linux_xen.in: Likewise.
1512 * util/grub.d/30_os-prober.in: Likewise.
1513
7ddffdad
VS
15142012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1515
1516 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1517 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1518 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1519 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1520 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1521 ieee1275-nocursor.
1522 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1523 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1524
4e092454
VS
15252012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1526
1527 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1528 le-conversion.
1529 Reported by: BURETTE, Bernard.
1530
735abf54 15312012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
1532
1533 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1534 from comment.
1535
dfd39dbd
CW
15362012-09-14 Colin Watson <cjwatson@ubuntu.com>
1537
1538 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1539 IEEE1275 machines. Fixes powerpc-emu compilation.
1540 * include/grub/terminfo.h: Likewise.
1541
3bfa763c
VS
15422012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1543
1544 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1545 a const pointer.
1546 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1547 const pointer.
1548 (efiemu_set_variable): Make vendor_guid a const pointer.
1549
250e475b
VS
15502012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 Don't require grub-mkconfig_lib to generate manpages for programs.
1553
1554 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1555 dependencies, don't add grub-mkconfig_lib.
1556 (program): Pass empty adddeps.
1557 (script): Pass grub-mkconfig_lib as adddeps.
1558
592fd0e4
VS
15592012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1560
1561 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1562 * util/getroot.c (grub_find_device): Likewise.
1563 (get_mdadm_uuid): Likewise.
1564 (grub_util_is_imsm): Likewise.
1565 (grub_util_pull_device): Likewise.
1566 * util/grub-probe.c (probe): Likewise.
1567
801a3027
BG
15682012-09-10 Benoit Gschwind <gschwind>
1569
1570 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1571 (devs): Add devpath_8.
1572
c5052c81
PJ
15732012-09-08 Peter Jones <pjones@redhat.com>
1574
1575 * grub-core/Makefile.core.def (efifwsetup): New module.
1576 * grub-core/commands/efi/efifwsetup.c: New file.
1577 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1578 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1579 New define.
1580 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1581
8e832f71
JS
15822012-09-05 Jiri Slaby <jslaby@suse.cz>
1583
1584 * configure.ac: Add SuSe path.
1585
f0f55752
CW
15862012-09-05 Colin Watson <cjwatson@ubuntu.com>
1587
1588 * NEWS: Fix typo.
1589
ecadc4c2
CW
15902012-09-05 Colin Watson <cjwatson@ubuntu.com>
1591
1592 * util/import_gcry.py: Sort cipher_files, to make build system
1593 generation more deterministic.
1594
64498f25
VS
15952012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1598 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1599 (grub_set_datetime): Likewise.
1600
9cc836a2
VS
16012012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1604 warnings.
1605
bcfcea01
VS
16062012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1609
a4099485
VS
16102012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1613
265c162a
CW
16142012-09-04 Colin Watson <cjwatson@ubuntu.com>
1615
1616 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1617 required for checkouts from bzr, but it may be useful for users or
1618 distributors wishing to update translations against a tarball
1619 distribution, and it can be helpful for the tarball to be a superset
1620 of what's in bzr.
1621
3d171e95
CW
16222012-09-04 Colin Watson <cjwatson@ubuntu.com>
1623
1624 * Makefile.am (EXTRA_DIST): Add
1625 grub-core/tests/boot/linux.init-mips.S,
1626 grub-core/tests/boot/linux.init-ppc.S, and
1627 grub-core/tests/boot/linux-ppc.cfg.
1628
f2c2503e
CW
16292012-09-04 Colin Watson <cjwatson@ubuntu.com>
1630
1631 * grub-core/mmap/mips/loongson: Remove empty directory.
1632
16332012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
1634
1635 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1636 gone.
1637
ab2163d5
CW
16382012-09-04 Colin Watson <cjwatson@ubuntu.com>
1639
1640 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1641 grub-sparc64-setup.
1642
ce938140
GS
16432012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1644
1645 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1646
529f58a5
GS
16472012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1648
1649 * po/POTFILES.in: Regenerated.
1650
16cf79e9
GS
16512012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1652
1653 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1654 (NetBSD): New subsection.
1655
39b27f1e 16562012-07-22 Ales Nesrsta <starous@volny.cz>
1657
1658 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1659 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1660
a885261b
VS
16612012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1662
1663 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1664 * util/grub.d/10_hurd.in: Add missing quoting.
1665 * util/grub.d/10_illumos.in: Likewise.
1666 * util/grub.d/10_kfreebsd.in: Likewise.
1667 * util/grub.d/10_linux.in: Likewise.
1668 * util/grub.d/20_linux_xen.in: Likewise.
1669
7bd29c01
VS
16702012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1671
1672 New command `lsefi'.
1673
1674 * grub-core/Makefile.core.def (lsefi): New module.
1675 * grub-core/commands/efi/lsefi.c: New file.
1676 * include/grub/efi/api.h: Add more GUIDs.
1677
ac625d8f
VS
16782012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1681 (grub_bsd_elf32_hook): Likewise.
1682 (grub_bsd_elf64_size_hook): Likewise.
1683 (grub_bsd_elf64_hook): Likewise.
1684 (grub_bsd_load_elf): Likewise.
1685
e73bb801
VS
16862012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1687
1688 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1689 if hash function is unavailable.
1690 (dec_stream_header): Likewise.
1691
e81db8b5
VS
16922012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1695 filter state.
1696
d187a1c3
VS
16972012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 Fix coreboot compilation.
1700
1701 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1702 (grub_vga_text_init_real): ... this.
1703 (grub_vga_text_fini): Rename to ...
1704 (grub_vga_text_fini_real): ... this.
1705
91a05f64
VS
17062012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1709
6af96df7
VS
17102012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 * grub-core/lib/legacy_parse.c: Support clear and testload.
1713
4d569e12
VS
17142012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1715
1716 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1717
073b57bb
VS
17182012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1721
a706f4cc
VS
17222012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 * grub-core/net/tftp.c (ack): Fix endianness problem.
1725 (tftp_receive): Likewise.
1726 Reported by: Michael Davidsaver.
1727
e7850aa9
VS
17282012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1729
1730 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1731
17322012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1733
1734 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1735 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1736 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1737
35692881
VS
17382012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1739
1740 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1741 efi_mmap_size.
1742 Reported by: Stuart Hayes.
1743
c35fc5bd
VS
17442012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1745
1746 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1747
1748 * grub-core/Makefile.core.def (mda_text): New module.
1749 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1750 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1751 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1752 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1753 here.
1754 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1755 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1756 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1757 here.
1758 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1759 to ..
1760 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1761 ... here
1762 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1763 here.
1764 * grub-core/term/i386/vga_common.c: Removed.
1765 * include/grub/i386/vga_common.h: Likewise.
1766 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1767 (grub_vga_cr_bw_read): Likewise.
1768 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1769 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1770 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1771 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1772 grub_vga_cr_read/grub_vga_cr_write.
1773 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1774
5f91f701
VS
17752012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 * configure.ac: Bump version to 2.00.
1778 * grub-core/normal/main.c (features): Add feature_200_final.
1779
0c4f85f6
VS
17802012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
17812012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1782
1783 * NEWS: Fix unclarity and language mistakes.
1784
f923ad22
VS
17852012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1788 additional size to 3 pages.
1789 Reported by: Stuart Hayes.
1790
d22029ba
VS
17912012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1792
1793 * NEWS: Add 2.00 entry.
1794
58eee08f
VS
17952012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1798 put explicit "/" for empty path.
1799 (wildcard_expand): Improve dprintf.
1800
c59bdff7
VS
18012012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1802
1803 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1804 it's equal to currnode. This can happen with "" symlink.
1805
5e6a440a
YB
18062012-06-27 Yves Blusseau <blusseau@zetam.org>
1807
1808 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1809 echo shell command by printf command.
1810
73a68bcb
VS
18112012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1812
1813 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1814 the value returned by firmware is the maximal position, not diumension.
1815 (grub_terminfo_output_state): Use a more sane fallback.
1816
392a603b
VS
18172012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1818
1819 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1820
42d0867f
VS
18212012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1822
1823 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1824 frequency to 150 MHz.
1825
489509f4
VS
18262012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1827
1828 Apple fixes.
1829
1830 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1831 __APPLE_
1832 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1833 definition.
1834 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1835
9f3fc883
VS
18362012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 Handle slash in HFS label.
1839
1840 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1841 (grub_hfs_dir): Tanslate slash.
1842 (grub_hfs_label): Don't translate slash.
1843
54853fd7
VS
18442012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1847 network protocol listing since it introduces problematic dependency on
1848 net module.
1849
4dc02ddf
VS
18502012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1851
1852 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1853
c50c867d
VS
18542012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 Init video early on yeeloong to avoid being rebooted by watchdog.
1857
1858 * grub-core/Makefile.am (gensm712): New target.
1859 (sm712_start.S): Likewise.
1860 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1861 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1862 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1863 description.
1864 * include/grub/vga.h: Move registry definitions to...
1865 * include/grub/vgaregs.h: ... here.
1866
5f92c8a1
VS
18672012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1868
1869 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1870 signedness.
1871
e9e6f111
VS
18722012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1873
1874 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1875 platforms with firmware disk drivers in the core.
1876
754ad9eb
VS
18772012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1878
1879 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1880 informative verbose message.
1881 (read_lv): Handle 64-bit segment size.
1882
315654c2
VS
18832012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1886
fb022c79
VS
18872012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1888
1889 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1890 character but still remove trainling spaces.
1891 (grub_fat_label): Ignore archive flag.
1892
8645f72c
VS
18932012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1894
1895 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1896 cast between linux_kernel_header and linux_kernel_params.
1897
36498496
VS
18982012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1901 type for size.
1902 (grub_raid6_recover_func_t): Likewise.
1903 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1904 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1905
0b5ea6b8
VS
19062012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1907
1908 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1909
650cfcfe
GS
19102012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1911
1912 Fix overflow.
1913
1914 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1915 [__NetBSD__]: Add explicit cast before bitshift.
1916
8a4d6a44
VS
19172012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 * configure.ac: Bump to 2.00~rc1.
1920
2fb97ed3
VS
19212012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1922
1923 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1924 half of $a0.
1925
1fa097dc
VS
19262012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19272012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1928
1929 * docs/grub.texi: Fix search syntax.
1930 (Multi-boot manual config): Put msdos rather than GPT example.
1931 Grammar corrections.
1932
c890ba78
VS
19332012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1934
1935 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1936
0f92dca7
VS
19372012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1938
1939 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1940
3988c4a0
VS
19412012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1942
1943 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1944 message on double free. Put the value of magic in case of mismatch.
1945
9e86d4c5
VS
19462012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1947
1948 Speed-up video on yeeloong.
1949
1950 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1951 add cached_ptr.
1952 (grub_video_sm712_video_fini): Unmap cached_ptr.
1953 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1954 (grub_video_sm712_set_active_render_target): Removed.
1955 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1956 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1957 sync caches.
1958
ed24c312
VS
19592012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 Avoid flushing the same line multiple times on loongson.
1962
1963 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1964 Step in 32 bytes and not 1 byte.
1965 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1966 Likewise.
1967
d1718e7d
VS
19682012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1969
1970 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1971 subvolumes.
1972
982f1909
VS
19732012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1974
1975 Implement flow control for http.
1976
1977 * grub-core/net/http.c (parse_line): Handle response 206.
1978 (http_receive): Stall if too many packets are in the queue.
1979 (http_establish): Fix range header.
1980 (http_seek): Fix double free.
1981 (http_close): Likewise.
1982 (http_packets_pulled): New function.
1983 (grub_http_protocol): Set http_seek
1984 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1985 (ack_real): Set window depending on i_stall.
1986 (grub_net_send_tcp_packet): Likewise.
1987 (grub_net_tcp_stall): New function.
1988 (grub_net_tcp_unstall): Likewise.
1989 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1990 (grub_net_tcp_unstall): Likewise.
1991
bd407d6e
VS
19922012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1993
1994 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1995
c7564b8e
VS
19962012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1997
1998 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1999
a3706162
VS
20002012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2001
2002 * tests/util/grub-shell.in: Fix a typo.
2003
b27069e0
VS
20042012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2005
2006 Implement flow control for tftp.
2007
2008 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
2009 packets but stop only if stop condition is satisfied.
2010 (grub_net_fs_read_real): Call packets_pulled after real read. Use
2011 `stall' instead of `eof' as stop condition.
2012 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
2013 (http_err): Likewise.
2014 * grub-core/net/tftp.c (ack): Replace the first argument with data
2015 instead of socket.
2016 (tftp_receive): Stall if too many packets are in wait queue.
2017 (tftp_packets_pulled): New function.
2018 (grub_tftp_protocol): Set packets_pulled.
2019 * include/grub/net.h (grub_net_packets): New field count.
2020 (grub_net_put_packet): Increment count.
2021 (grub_net_remove_packet): Likewise.
2022 (grub_net_app_protocol): New field `packets_pulled'.
2023 (grub_net): New field `stall'.
2024
6b9cfac6
VS
20252012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
2028 sync part to handle them.
2029
f35abd81
VS
20302012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
2033 * grub-core/net/drivers/ieee1275/ofnet.c
2034 (grub_ieee1275_net_config_real): Likewise.
2035
0e7ec820
VS
20362012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2037
2038 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
2039 the direct route for server/gateway.
2040
9d611a31
VS
20412012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2042
2043 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
2044 IP address to server name since we may not hame the DNS.
2045
418f45ab
VS
20462012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
2049 freeing random buffer on failure.
2050 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
2051
44a0efc1
VS
20522012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
2055
531e2241
VS
20562012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2057
2058 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
2059 reserved bytes.
2060 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
2061 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
2062 Handle malloc error correctly.
2063
cde393c9
VS
20642012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
2067 blocks.
2068
538478d0
VS
20692012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
2072 increment.
2073
9b55efe0
VS
20742012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2075
2076 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
2077 none is explicitly specified.
2078
9eb832c3
VS
20792012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2080
2081 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
2082 while reallocating.
2083
d6b7c7c9
VS
20842012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2085
2086 Respect netmask from bootp/dhcp.
2087
2088 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2089 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2090 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2091 into ...
2092 (grub_net_add_ipv4_local): ... this.
2093 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2094 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2095 (grub_net_add_ipv4_local): New proto.
2096
67caf9eb
VS
20972012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2098
2099 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2100 determining EFI memory map size.
2101
43657558
VS
21022012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2103
2104 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2105
eb6d0dd3
VS
21062012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2109 when looking for partition separator.
2110
31230544
VS
21112012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2112
2113 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2114 Escape commas.
2115
918a2517
VS
21162012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 Restructure FAT driver to avoid hook in label reading as it hits a
2119 GCC bug.
2120
2121 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2122 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2123 (grub_fat_iterate_dir): Split into ...
2124 (grub_fat_iterate_init): ... this, ...
2125 (grub_fat_iterate_fini): ... this, ...
2126 (grub_fat_iterate_dir_next): ... and this. All users updated.
2127
9f1d654e
VS
21282012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2129
2130 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2131 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2132 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2133 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2134 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2135 New fields last_key and last_key_time.
2136 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2137 extended key-esc into extended key-extended key.
2138
52f0f643
VS
21392012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2140
2141 Avoid unnecessary memcpy of whole video buffer.
2142
2143 * grub-core/video/fb/video_fb.c (dirty): New struct.
2144 (framebuffer): Add members current_dirty and previous_dirty.
2145 (dirty): New function.
2146 (grub_video_fb_fill_rect): Update dirty.
2147 (common_blitter): Likewise.
2148 (grub_video_fb_scroll): Likewise.
2149 (doublebuf_blit_update_screen): Copy only dirty part.
2150 (doublebuf_pageflipping_update_screen): Likewise.
2151 (grub_video_fb_doublebuf_blit_init): Init dirty.
2152 (doublebuf_pageflipping_init): Likewise.
2153 (grub_video_fb_setup): Likewise.
2154
e169a180
VS
21552012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2158 poll rate.
2159
48556879
VS
21602012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 Fix wildcard regexp dot and other special characters handling.
2163 Reported by: Robert Mabee.
2164
2165 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2166 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2167 (split_path): Trigger expansion on '?'.
2168 (unescape): New function.
2169 (wildcard_expand): Unescape parts copied without globbing.
2170 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2171 (grub_script_arglist_to_argv): Don't unescape expansions.
2172
0494408e
VS
21732012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2174
2175 * include/grub/net.h (grub_net_card): New member txbufsize.
2176 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2177 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2178 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2179 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2180 txbufsize.
2181 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2182 compatible property to check for macs. Set
2183 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2184 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2185 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2186 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2187 (send_card_buffer): Use txbuf.
2188 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2189 nested function out of the parent while on it.
2190
cc35fe8f
VS
21912012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2194 presence check.
2195 (grub_ieee1275_net_config_real): Fix config pointer.
2196
970a0a09
VS
21972012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2198
2199 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2200 filename parsing to non-block devices.
2201
3e19bf87
VS
22022012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2203
2204 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2205
c62d1a0c
VS
22062012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2207
2208 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2209 All users updated.
2210
ef76bec3
VS
22112012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2212
2213 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2214 UUID search command even if hints probing failed.
2215
22162012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
2217
2218 * po/POTFILES.in: Regenerated.
2219
70aaf305
VS
22202012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2221
2222 Speed-up video on fuloong.
2223
2224 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2225 New function.
2226 (grub_pci_device_unmap_range): Handle non-cached address.
2227 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2228 add direct_ptr.
2229 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2230 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2231 (grub_video_sis315pro_set_active_render_target): Removed.
2232 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2233 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2234 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2235 sync caches.
2236 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2237 New proto.
2238
10400f0b
VS
22392012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2240
2241 * docs/grub.texi (Multi-boot manual config): New section.
2242
ba67e2c6
VS
22432012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 Avoid slow read-back from VRAM.
2246
2247 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2248 Move from here ...
2249 * grub-core/video/fb/video_fb.c
2250 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2251 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2252 (front_target): Remove front_target. Add pages.
2253 (grub_video_fb_init): Skip setting front_pages.
2254 (grub_video_fb_fini): Likewise.
2255 (doublebuf_blit_update_screen): Use pages.
2256 (grub_video_fb_doublebuf_blit_init): Likewise.
2257 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2258 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2259 (grub_video_fb_setup): Prefer doublebuffing.
2260
377c98cb
VS
22612012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2264 gzio.
2265
eac49cff
VS
22662012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2267
2268 Add loongson tests.
2269
2270 * tests/util/grub-shell.in: Handle loongson.
2271 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2272 drivers.
2273 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2274 Reboot instead of shutdown if REBOOT is defined.
2275
0321415e
VS
22762012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2279 sized ports since unlike on real hardware qemu supports only 32-bit
2280 regs.
2281
3f2bdd8f
VS
22822012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2285 * util/grub-mkrescue.in: Handle loongson.
2286
29a049c9
VS
22872012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2290 Set is_part appropriately.
2291 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2292 names. Canonicalize partition without full disk.
2293
4abde346
VS
22942012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 Revert usb-quiesce since it's wrong.
2297
2298 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2299 (grub_ofdisk_init): Don't do quiesce.
2300
61f1d93b
VS
23012012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2304 PowerMac workaround to Xserves as well.
2305 Information supplied by: Benjamin Herrenschmidt.
2306
a09eb541
VS
23072012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2308
2309 Don't assume that beginning address is also the entry point on ppc.
2310
2311 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2312 (grub_linux_boot): Use linux_entry.
2313 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2314 (grub_linux_load64): Likewise.
2315
505b3c9b
VS
23162012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2317
2318 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2319
cbe0b4ef
VS
23202012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2323 needlessly lose the console.
2324
3006e981
VS
23252012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2326
2327 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2328 space.
2329
4e5a96b0
VS
23302012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2331
7da036bb
VS
2332 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2333 than current grub_get_rtc() not implemented when booted with
2334 coreboot without TSC.
2335
2336 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2337 Add machine/time.h to kernel headers on loongson.
2338 * grub-core/Makefile.core.def (kernel): Remove
2339 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2340 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2341 (grub_get_rtc): Likewise.
2342 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2343 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2344 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2345 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2346 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2347 rather than installing known non-working time source.
2348 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2349 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2350 * include/grub/time.h: Don't include machine/time.h.
2351 * include/grub/efi/time.h: Removed.
2352 * include/grub/i386/efi/time.h: Likewise.
2353 * include/grub/i386/ieee1275/time.h: Likewise.
2354 * include/grub/powerpc/ieee1275/time.h: Likewise.
2355 * include/grub/sparc64/ieee1275/time.h: Likewise.
2356 * include/grub/x86_64/efi/time.h: Likewise.
2357
23582012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2359
2360 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
2361
2362 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2363 value.
2364 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2365 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2366 with dotless variants when any combining above is present.
2367
5561c22d
VS
23682012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2371 text and not binary.
2372
96f7e60e
VS
23732012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2374
2375 Stop polling as soon as we have the packet we were waiting for.
2376
2377 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2378 All users updated.
2379 * grub-core/net/arp.c (have_pending): New var.
2380 (pending_req): Likewise.
2381 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2382 stop indicator.
2383 (grub_net_arp_receive): Set have_pending.
2384 * grub-core/net/dns.c (recv_data): New field stop.
2385 (recv_hook): Set stop.
2386 (grub_net_dns_lookup): Init stop and use as stop condition.
2387 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2388 condition.
2389 * grub-core/net/net.c (grub_net_poll_cards): New argument
2390 stop_condition. Stop when it goes true.
2391 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2392 indicator.
2393 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2394
3e747239
VS
23952012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 Keep TX and RX buffers on EFI rather than always allocate new ones.
2398
2399 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2400 card. All users updated.
2401 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2402 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2403 (get_card_packet): Likewise.
2404 (grub_efinet_findcards): Init new fields.
2405
f695e99a
VS
24062012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2409 compilation error on sparc64.
2410
9e5e66d1
VS
24112012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 Use ITC on IA64 rather than broken routine based on daytime.
2414
2415 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2416 ia64.
2417 (grub_get_rtc) [__ia64__]: Likewise.
2418 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2419 (get_itc): New function.
2420 (grub_rtc_get_time_ms): Likewise.
2421 (grub_machine_init): Calibrate ITC.
2422 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2423 Keep only on non-ia64. Don't export since it's broken and used only
2424 if TSC is unavailable.
2425
a1767404
VS
24262012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2427
2428 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2429 even if it's used.
2430 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2431 Skip if parent is unused.
2432
34b2bced
VS
24332012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2436
5e619f40
VS
24372012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2438
2439 Fix wildcard escaping.
2440
2441 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2442 * grub-core/script/execute.c (wildcard_escape): .. to here.
2443 Don't escape dot.
2444 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2445 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2446 Don't escape dot.
2447 * grub-core/script/execute.c (gettext_append): Always escape.
2448 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2449 * grub-core/script/yylex.l: Don't cut away the escaping.
2450 * tests/grub_script_echo1.in: Add tests with wildcard.
2451
c8ca5855
VS
24522012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2455 (ftdi_hw_configure): Likewise.
2456 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2457 define.
2458 (real_config): Handle 1.5 stop bits.
2459 (pl2303_hw_configure): Likewise.
2460
7183452c
VS
24612012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * Makefile.am: Add ppc linux bootcheck.
2464 * grub-core/tests/boot/linux-ppc.cfg: New file.
2465 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2466
f57c84cd
VS
24672012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 * tests/grub_script_expansion.in: Skip network protocols.
2470
ecfc6207
VS
24712012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2472
2473 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2474
8d03d284
VS
24752012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2476
2477 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2478 --rom-directory.
2479 Add -graft-points.
2480
61c42af0
VS
24812012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2482
2483 ESCC serial driver for conducting sautomated tests in qemu.
2484 Not tested on real hardware.
2485
2486 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2487 * grub-core/term/ieee1275/escc.c: New file.
2488 * grub-core/Makefile.core.def (escc): New module.
2489
08fd1291
VS
24902012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2493 invalid on error.
2494 (serial_hw_fetch): Don't read invalid handle.
2495 (serial_hw_put): Don't write into invalid handle.
2496
08dafeea
VS
24972012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2498
2499 Add a 1.5 stop bits value.
2500
2501 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2502 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2503 GRUB_SERIAL_STOP_BITS_1_5.
2504
9068fdcf
VS
25052012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2508 value rather than let it uninited.
2509
f4d5820f
VS
25102012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * grub-core/commands/wildcard.c (+check_file): New function.
2513 (wildcard_expand): Don't expand to non-existing files, expand with
2514 suffix and not attempt to expand if not needed.
2515
3d2de9a7
VS
25162012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2519 out of partitions containing other partitions.
2520
c5c81ff9
VS
25212012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2524 on some qemu versions with GRUB.
2525
2526 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2527 define.
2528 (grub_openbsd_bootarg_pcibios): New struct.
2529 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2530 Add PCIINFO.
2531
08a14e0b
VS
25322012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2533
2534 * tests/util/grub-shell.in: Trim firmware output on EFI.
2535
cede3ca3
VS
25362012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2537
2538 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2539 and coreboot since it's already in kernel.
2540
558d3a60
VS
25412012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2544 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2545 to here. New return value start. All users updated.
2546 Recursively scan linear mappings.
2547 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2548 proto.
2549 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2550 Use grub_util_get_dm_node_linear_info.
2551 * util/getroot.c (convert_system_partition_to_system_disk): Use
2552 grub_util_info rather than grub_dprintf.
2553 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2554
60fde14d
VS
25552012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2556
2557 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2558
2559 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2560 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2561
24bd8838
VS
25622012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * include/grub/types.h (grub_set_unaligned64): New function.
2565 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2566 (setup): Likewise.
2567
7bc06a49
VS
25682012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2569
2570 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2571 (grub_ofdisk_fini): Quiesce USB devices.
2572
49cea015
VS
25732012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2574
2575 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2576 caches.
2577
8dcbe03b
VS
25782012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2581
5b258735
VS
25822012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * grub-core/disk/pata.c (grub_pata_pio_read)
2585 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2586 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2587
37ba07eb
VS
25882012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2589
2590 Extend automated tests to qemu-mips.
2591
2592 * Makefile.am: reorganise tests and enable qemu-mips.
2593 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2594 * grub-core/tests/boot/linux.init-mips.S: New file.
2595 * tests/partmap_test.in: Handle ata0 disks.
2596 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2597 non-pc i386.
2598
070038f8
VS
25992012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2602 ia64.
2603 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2604 quotes while on it.
2605
004be2cd
VS
26062012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2607
2608 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2609 (grub_halt): Likewise.
2610 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2611
b1622487
VS
26122012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 * grub-core/term/serial.c (grub_serial_register)
2615 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2616 the behaviour in line with x86 platforms.
2617
b7b4ab33
VS
26182012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2619
2620 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2621 (grub_ata_strncpy): Likewise.
2622 (grub_ata_identify): Add missing byteswaps.
2623
5e3535ae
VS
26242012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2627 byte-swap.
2628 (screen_read_char): Likewise.
2629 (grub_vga_text_cls): Likewise.
2630
c21b17e6
VS
26312012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2632
2633 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2634 filenames.
2635 (make_file_path): Likewise.
2636
bf293dec
VS
26372012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2638
2639 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2640 machines.
2641 Tested by: Paulo Flabiano Smorigo.
2642 Crucial information about API supplied by: Coleen <Last name unknown>.
2643 Reviewed by: Coleen <Last name unknown>.
2644
81f6ef0e
VS
26452012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2646
2647 * util/grub-mkimage.c: Disable -Wcast-align.
2648
7284143a
VS
26492012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2652 as they are fatal.
2653
b99f3e00
VS
26542012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2657
944f752d
VS
26582012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * util/grub-probe.c (escape_of_path): Fix double free.
2661
6cce6f38
VS
26622012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2663
2664 * grub-core/commands/videoinfo.c (hook): Show pitch.
2665
1e1eb50e
VS
26662012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2669
1c715b5a
VS
26702012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2671
2672 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2673 (probe): Add ieee1275 to OFW devices.
2674
007ae52d
VS
26752012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2678
4557a36d
VS
26792012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2680
2681 Handle IBM OFW path.
2682
2683 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2684 available.
2685 (of_path_of_scsi): Handle vdevice.
2686
efbeefe9
VS
26872012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2688
2689 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2690 Allocate in multiples of 16 to avoid adding a few bytes free region the
2691 windows bugs upon.
2692
15a940bb
VS
26932012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2694
2695 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2696 Allocate in multiples of 16 to avoid adding a few bytes free region the
2697 windows bugs upon.
2698 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2699
6e5efd60
VS
27002012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2701
2702 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2703 resolutions.
2704 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2705 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2706
0d3d137e
IS
27072012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2708
2709 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2710
45dbe300
VS
27112012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2714 resulted in \\ at the end of the line.
2715
6d8db947
VS
27162012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2719 (grub_parser_cmdline_state): Likewise.
2720 (grub_parser_split_cmdline): Likewise.
2721
de89d338
VS
27222012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2725 /dev/root and /dev/dm-*.
2726
00d41dee
VS
27272012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2730 fix partially stale display.
2731
f95d1f11
VS
27322012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2733
2734 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2735 substraction.
2736
6297e197
VS
27372012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2740 Fix MBR remapping workaround.
2741 (grub_util_biosdisk_read) [__linux__]: Likewise.
2742
8a7ecad3
VS
27432012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2744
2745 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2746
2b34f944
VS
27472012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2748
2749 * configure.ac: Bump to beta6.
2750
684aef11
CW
27512012-05-31 Christer Weinigel <christer@weinigel.se>
2752
2753 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2754
05b0bb91
VS
27552012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2758 (grub_cmd_linux): Likewise.
2759
bda36bfa
CW
27602012-05-31 Christer Weinigel <christer@weinigel.se>
2761
2762 Fix EHCI low-speed.
2763
2764 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2765 (GRUB_EHCI_MULT_TWO): Likewise.
2766 (GRUB_EHCI_MULT_THREE): Likewise.
2767 (GRUB_EHCI_CMASK_MASK): New enum value.
2768 (GRUB_EHCI_SMASK_MASK): Likewise.
2769 (GRUB_EHCI_CMASK_OFF): Likewise.
2770 (GRUB_EHCI_SMASK_OFF): Likewise.
2771 (grub_ehci_pci_iter): Enable periodic schedule.
2772 (grub_ehci_parse_notrun): Likewise.
2773 (grub_ehci_restore_hw): Likewise.
2774 (grub_ehci_setup_qh): Set flags for low speed transfers.
2775 (grub_ehci_find_qh): Use periodic list for low speed.
2776 (grub_ehci_setup_transfer): Check periodic queue as well.
2777 (grub_ehci_check_transfer): Likewise.
2778 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2779
e12bcb1c
PFS
27802012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2781
2782 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2783 parameter is used.
2784
bcc75fb3
PJ
27852012-05-31 Peter Jones <pjones@redhat.com>
2786
2787 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2788 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2789 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2790
f19cb95e
VS
27912012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2794 uninited variable. Allocate at least setup_sects.
2795
a4e5ca80
VS
27962012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2797
2798 Fix handling of EFI with big memory maps.
2799
2800 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2801 (real_mode_mem): Likewise.
2802 (real_mode_target): Likewise.
2803 (real_mode_pages): Likewise.
2804 (prot_mode_pages): Likewise.
2805 (linux_params): New var.
2806 (linux_cmdline): Likewise.
2807 (free_pages): Don't set real mode variables.
2808 (allocate_pages): Don't allocate real mode memory.
2809 (grub_e820_add_region): Remove the limit.
2810 (grub_linux_boot): Allocate and copy real mode memory.
2811 (grub_linux_unload): Free linux_cmdline.
2812 (grub_cmd_linux): Use temporary storage for parameters.
2813 (grub_cmd_initrd): Likewise.
2814 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2815 (linux_kernel_params): Make it 1K big.
2816
ddb73558
VS
28172012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 * Makefile.util.def: Remove -Wno-format.
2820 * grub-core/Makefile.core.def: Likewise.
2821
1c4afb60
VS
28222012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 * tests/cmp_unit_test.c: Add missing failure message.
2825 * tests/example_unit_test.c: Likewise.
2826 * tests/printf_unit_test.c: Likewise.
2827
941e3a6d
VS
28282012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2829
2830 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2831 relaxation of protective MBR requirements.
2832
b105df76
VS
28332012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2834
2835 * configure.ac: Add condition for COND_HOST_XNU.
2836 * Makefile.util.def (10_xnu): New script.
2837 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2838
84e1569e
VS
28392012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2840
2841 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2842 objconv bug.
2843
130c0f77
VS
28442012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2847 Binary on other platforms stays identical.
2848
6fd0b143
VS
28492012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2852 Apple.
2853
0af1751d
VS
28542012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2855
2856 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2857
176d5f7d
VS
28582012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2861 rather than defining size_t ourselves to avoid conflict.
2862
7de5e20a
VS
28632012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2866 initialisation to avoid __bzero reference.
2867
f7143efe
VS
28682012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2871 version.
2872 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2873 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2874 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2875 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2876 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2877
e6ad0555
VS
28782012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2879
2880 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2881 * grub-core/kern/misc.c: Likewise.
2882 * grub-core/loader/i386/xnu.c: Likewise.
2883 * include/grub/i386/tsc.h: Likewise.
2884 * include/grub/symbol.h: Likewise.
2885
4a5a3c4a
VS
28862012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2887
2888 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2889 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2890 on older compiler.
2891
037f6d90
VS
28922012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2895 Implement Apple flavour.
2896 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2897
f7194551
VS
28982012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2901 (memmove) [__APPLE__]: Likewise.
2902 (memcpy) [__APPLE__]: Likewise.
2903 (memset) [__APPLE__]: Likewise.
2904 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2905 (memmove) [__APPLE__]: Likewise.
2906 (memcpy) [__APPLE__]: Likewise.
2907 (memset) [__APPLE__]: Likewise.
2908
85a730ca
VS
29092012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2912 dependency discard.
2913
40e80b94
VS
29142012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2915
2916 * grub-core/normal/main.c (read_config_file): Provide config_file and
2917 config_directory.
2918 * util/grub.d/41_custom.in: Use config_directoy when available.
2919
9da59c32
VS
29202012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2921
2922 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2923 (grub_bfs_dir): Likewise.
2924
2787ae53
PJ
29252012-05-27 Peter Jones <pjones@redhat.com>
2926
2927 The old code gives arguments to a printf function which can't work
2928 correctly, and the compiler complains.
2929
2930 * grub-core/tests/example_functional_test.c (example_test): Add
2931 missing text.
2932 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2933 * include/grub/test.h (grub_test_assert_helper): New declaration.
2934 (grub_test_assert): Use grub_test_assert_helper.
2935
526ef13d
VS
29362012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2937
2938 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2939 (exfctest): ... this to avoid overlong filenames.
2940 All users updated.
2941
20dd511c
VS
29422012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 Handle "." and ".." on squashfs.
2945
2946 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2947 Make inode numbers into stack.
2948 (grub_squash_read_symlink): Use stack.
2949 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2950 (make_root_node): Fill stack.
2951 (grub_squash_open): Use stack.
2952
1d80c62a
VS
29532012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2954
2955 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2956 freeing.
2957
d336f652
VS
29582012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2959
2960 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2961 stderr on test calls.
2962
8b43f587
VS
29632012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2964
2965 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2966
80a3dc3f
VS
29672012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2968
2969 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2970
47e297d4
VS
29712012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2972
2973 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2974 "..".
2975
df042ccb
VS
29762012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2979 (grub_hfsplus_iterate_dir): Add "." and "..".
2980
fc977f48
VS
29812012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2982
2983 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2984 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2985
f3250e5f
VS
29862012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2989 (find_path): Handle "." and "..".
2990
fd8ed4c5
VS
29912012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2992
2993 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2994 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2995 (grub_affs_iterate_dir): Handle hardlinks.
2996
4ce776d2
MG
29972012-05-26 Matthew Garrett <mjg@redhat.com>
2998
2999 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
3000 (grub_efi_console_fini): Likewise.
3001 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
3002 (grub_video_gop_fill_mode_info): Rename to ...
3003 (grub_video_gop_fill_real_mode_info): ... this.
3004 (grub_video_gop_fill_mode_info): New function.
3005 (grub_video_gop_setup): Setup double framebuffer.
3006 (grub_video_gop_get_info_and_fini): Use original framebuffer.
3007 Free offscreen.
3008 (grub_video_gop_swap_buffers): Copy framebuffer.
3009 (grub_video_gop_fini): Free offscreen buffer.
3010 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
3011 New enum.
3012 (grub_efi_gop_blt_pixel): New struct.
3013
683031ba
VS
30142012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 * gentpl.py: Remove error disabling for objconv.
3017
c2deb798
VS
30182012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * configure.ac: Remove -Wunitialized as it's not available on older
3021 compilers.
3022
30232012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
3024
3025 Fix extent overflow comparator.
3026
3027 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
3028 (grub_hfsplus_read_block): Set type.
3029 (grub_hfsplus_cmp_extkey): Compare type.
3030
d6b1fd36
VS
30312012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
3034
0a9aa0f6
VS
30352012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
3038 than 0.
3039
8360e159
VS
30402012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3041
3042 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
3043 (dejavu_bold_14.pf2): New target.
3044
501b9e4b
VS
30452012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 * configure.ac: Fix djvu font detection.
3048
7026b0e2
VS
30492012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
3052 ext* instead of ext2.
3053
c2a51ade
VS
30542012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3055
3056 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
3057 name with \0.
3058
8f803a5d
JU
30592012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
3060
3061 * docs/grub-dev.texi: Remove dot from .png.
3062
13c6353f
VS
30632012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3064
3065 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
3066 protective entry in any slot.
3067 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
3068 if protective entry is found in any slot.
3069
3070 Protective entry in non-first slot make no sense but is a widespread
3071 brain damage.
3072
4cf6be1b
VS
30732012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3074
3075 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
3076
937d1c44
VS
30772012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3078
3079 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
3080 with old reiserfs.
3081 (grub_reiserfs_open): Don't free root.
3082
021d90ec
VS
30832012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
3086 after freeing for safety.
3087
967b2b64
VS
30882012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3091 Reported by: Jordan Uggla.
3092
34274d02
JU
30932012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3094
967b2b64
VS
3095 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3096 actual implementation. Specifically, clarify that the grub menu will
3097 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3098 passed.
34274d02 3099
dcaaae9d
BH
31002012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3101
3102 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3103 of r0.
3104
7086ad52
VS
31052012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 Remove unjustified hard dependency of normal.mod on gfxterm.
3108
3109 * include/grub/term.h (grub_term_output): New member fullscreen.
3110 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3111 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3112 (grub_gfxterm): Set .fullscreen.
3113 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3114 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3115
37ed2c9b
VS
31162012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3119 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 3120 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 3121
a4469c88
VS
31222012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3125
4e461486
VS
31262012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3129 a bad FS.
3130
aa78f5c4
VS
31312012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3134 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3135
197626b5
VS
31362012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3139 (grub_jfs_mount): Fill caseins.
3140 (grub_jfs_find_file): Respect caseins.
3141
8ad3f28c
VS
31422012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3145 through UTF-16.
3146
0c6c324e
VS
31472012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3148
3149 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3150 New argument origpath. All users updated.
3151
c6666ba6
VS
31522012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3155 (read_attr): Ensure that we read start of possibly compressed block.
3156
e28e5fe5
VS
31572012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3158
3159 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3160 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3161 All users updated.
3162
5fc23ab2
VS
31632012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3164
3165 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3166 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3167 (dejavu.pf2): Replace with ...
3168 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3169 this.
3170
79dbc21c
VS
31712012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 * util/grub.d/20_linux_xen.in: Add missing line.
3174
d2fcfb0c
VS
31752012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3178 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3179 (grub_utf16_to_utf8): Likewise.
3180
5560e9d6
VS
31812012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3184 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3185 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3186 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3187 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3188 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3189
31902012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
3191
3192 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3193 a bad FS.
3194
5560e9d6 31952012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
3196
3197 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3198 (grub_udf_read_symlink): Handle read_string failure.
3199
5eae3175
VS
32002012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3201
3202 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3203 comment.
3204
c1ad82db
VS
32052012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 Fix handling of UDF symlinks.
3208
3209 * grub-core/fs/udf.c (read_string): New argument outbuf.
3210 All users updated.
3211 (grub_ufs_read_symlink): Rename to ...
3212 (grub_udf_read_symlink): ... this. All users updated.
3213 Handle symlinks with more than one component.
3214
33eca6e0
VS
32152012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3216
3217 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3218 symlinks. Replace leading colon with a slash.
3219
57f4a70b
VS
32202012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3223 filename.
3224
38c8ee20
VS
32252012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3228 match in inner node.
3229
2e57f28f
VS
32302012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3231
3232 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3233 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3234 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3235 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3236 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3237 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3238 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3239 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3240 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3241
fe8c2f11
VS
32422012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 Use grub-probe and not cmp to check that disk is empty.
3245
3246 * util/grub-install.in: Use grub-probe for zero-check.
3247 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3248 (probe): Handle PRINT_ZERO_CHECK.
3249 (argp_parser): Handle -t zero_check.
3250
32512012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
3252
3253 Flush block cache on adding disk to device map.
3254
3255 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3256 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3257 adding.
3258 (read_device_map): Likewise.
3259 (open_device): Flush on opening.
3260
690434e8
VS
32612012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3262
3263 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3264 (handle_symlink): Fix off-by-one error.
3265 Canonicalize the target.
3266 (grub_cpio_dir): Canonicalize the name.
3267 Fix memory leak.
3268 Set directory.
3269 (grub_cpio_open): Canonicalize the name.
3270
742d2be6
VS
32712012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3274 handling.
3275
3244fe96
VS
32762012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3277
3278 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3279 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3280
8aeb1837
VS
32812012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3284 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 3285 All users updated.
8aeb1837 3286
9133fd05
VS
32872012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3288
3289 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3290 counterpart.
3291
6d521c5b
VS
32922012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 Fix UFS1 big file support.
3295
3296 * grub-core/fs/ufs.c (INODE): Removed.
3297 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3298 64-bit.
3299 (INODE_MODE): Simplify.
3300 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3301 (grub_ufs_lookup_symlink): Don't use INODE.
3302
21b82e17
VS
33032012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3306
3307 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3308 (grub_minix_data): Replace log_block_size with block_size.
3309 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3310 (grub_minix_mount): Fill block_size.
3311
33122012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
3313
3314 * configure.ac: Bump to beta5.
3315
f417ed04
VS
33162012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3317
3318 Fix wrapped HFS+ handling.
3319
3320 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3321 blocks_start. All users updated.
3322 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3323 wrapping offset.
3324 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3325
607d282b
VS
33262012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3327
3328 Fix long symlinks on reiserfs.
3329
3330 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3331 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3332 (grub_reiserfs_iterate_dir): Save size for non-directories.
3333 (grub_reiserfs_open): Don't reread stat block as we already know the
3334 size.
3335 (grub_reiserfs_read): Split into...
3336 (grub_reiserfs_read_real): ... and ...
3337 (grub_reiserfs_read): ...this.
3338
ae16024d
VS
33392012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 Fix non-indexed JFS.
3342
3343 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3344 (grub_jfs_data): New field namecomponentlen.
3345 (grub_jfs_mount): Fill namecomponentlen.
3346 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3347
eea1e26e
VS
33482012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3349
3350 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3351 * tests/grub_script_echo1.in: Add tests.
3352
df760f77
VS
33532012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * util/grub-install.in: Ignore empty devicetree directory.
3356
5efb817d
B
33572012-05-08 Bean <bean123ch@gmail.com>
3358
3359 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3360 All users updated.
3361 (free_rsm): Free header as well.
3362 (free_old_fragments): Fix memory leak.
3363 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3364 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3365 (destroy_pq): Likewise.
3366 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3367
668ea6d2
VS
33682012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3369
3370 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3371 resulting hash as a precaution.
3372
1739b1fe
VS
33732012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3374
3375 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3376 '_' in variable names.
3377 * grub-core/net/net.c (grub_net_network_level_interface_register):
3378 Likewise.
3379
6ae485aa
VS
33802012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3381
3382 Fix AFFS with non-512B blocks.
3383
3384 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3385 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3386 (grub_affs_data): Replace blocksize with log_blocksize.
3387 (grub_affs_read_block): Fix non-512B blocks.
3388 (grub_affs_read_symlink): Likewise.
3389 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3390 (grub_affs_read): Fix non-512B blocks.
3391 (grub_affs_label): Likewise.
3392 (grub_affs_mtime): Likewise.
3393 (grub_affs_mount): Fix block detection routine.
3394
d20fab84
VS
33952012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 Add filesystem mtime to AFFS.
3398
3399 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3400 (aftime2ctime): New function.
3401 (grub_affs_dir): Use aftime2ctime.
3402 (grub_affs_label): Fix return value.
3403 (grub_affs_mtime): New function.
3404 (grub_affs_fs): Add mtime.
3405
e87b10f5
VS
34062012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3407
3408 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3409 UTF-8.
3410
7dceec9b
VS
34112012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3412
3413 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3414 UTF-8.
3415
2f48221f
VS
34162012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3417
3418 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3419
dacd85cf
VS
34202012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3423 flags.
3424 (FLAGS_CASE_SENSITIVE): New enum value.
3425 (cache_entry): New struct.
3426 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3427 cache_size and cache.
3428 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3429 Add log_blocksize and fshelp_flags.
3430 (grub_sfs_read_extent): Handle non-512 blocks.
3431 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3432 (grub_sfs_read_file): Handle non-512 blocks.
3433 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3434 fshelp_flags.
3435 (grub_sfs_read_symlink): Handle non-512 blocks.
3436 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3437 (grub_sfs_dir): Free cache.
3438 (grub_sfs_close): Likewise.
3439
24e9a854
VS
34402012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3443 filesystems.
3444
62ace64d
VS
34452012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3448
83b2e89c
VS
34492012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3452
75ccaea3
VS
34532012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3456 (grub_sfs_read_extent): Likewise.
3457 (grub_sfs_read_block): Likewise.
3458 (grub_sfs_mount): Likewise.
3459 (grub_sfs_iterate_dir): Likewise.
3460 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3461 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3462
1b8463f2
VS
34632012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 Fix errors on compressed NTFS with 512B clusters.
3466
3467 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3468 types.
3469 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3470 not 0.
3471 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3472 Relax check for inline extents.
3473 (ntfscomp): Return correct -1 on error and not 0.
3474
4f8e368f
VS
34752012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * util/grub-install.in: Fix handling of prefix containing spaces.
3478
6f5d5ee8
VS
34792012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3480
3481 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3482 (grub_squash_read_data): Fix offset byte-swapping.
3483
ce41ab7a
VS
34842012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3485
3486 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3487 per common usage and preffered in several parts of code.
3488 (grub_memcmp): Likewise.
3489 (grub_strncmp): Likewise.
3490 * include/grub/misc.h (grub_strcasecmp): Likewise.
3491 (grub_strncasecmp): Likewise.
3492 * Makefile.util.def (cmp_test): New test.
3493 (grub_script_strcmp): Likewise.
3494 * tests/cmp_unit_test.c: New file.
3495 * tests/grub_script_strcmp.in: Likewise.
3496 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3497
49717bf4
VS
34982012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 * include/grub/pci.h: Move enums into no-asm part.
3501
0a308f64
VS
35022012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3503
3504 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3505
1796965f
ST
35062012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3507
3508 * util/getroot.c (find_hurd_root_device): Try to make error message
3509 and comments to translators clearer.
3510
4e9b2819
VS
35112012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3512
3513 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3514
076aeb50
VS
35152012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3518 btrfs.
3519
19424d94
VS
35202012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3521
3522 * docs/grub.cfg: Update.
3523
ebb73076
VS
35242012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3525
3526 * docs/grub.texi (PXE): Remove not present variables.
3527
9a1b669c
VS
35282012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 * grub-core/net/net.c (defserver_set_env): New function.
3531 (defserver_get_env): Likewise.
3532 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3533
d38bf7d3
VS
35342012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3537 entries.
3538
35392012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
3540
3541 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3542 * grub-core/kern/emu/hostdisk.c: Likewise.
3543
e5e4ca48
ST
35442012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3545
3546 Handle hurd userspace partitions.
3547
3548 * util/getroot.c (find_hurd_root_device): New function.
3549 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3550
56bb5dd5
VS
35512012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3554 names.
3555 Reported by: Bastian Blank.
3556
9e8bc27a
VS
35572012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3560 crossing page boundary.
3561
aa01499d
VS
35622012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 Fix B-tree search in BFS, especially in presence of non-ASCII
3565 characters.
3566
3567 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3568 (find_in_b_tree): Use standard bsearch + btree algorithm.
3569
57006035
VS
35702012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3573 and so on.
3574
9d34bb85
MG
35752012-05-03 Matthew Garrett <mjg@redhat.com>
35762012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 Suspend broadcom cards in order to stop their DMA.
3579
3580 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3581 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3582 (pci): Don't build on x86 EFI.
3583 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3584 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3585 New function.
3586 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3587 stop_broadcom if running on EFI.
3588 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3589 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3590 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3591 (grub_pci_find_capability): New proto.
3592
01aab997
VS
35932012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * docs/grub.texi: Remove dot from the extension as it apparently
3596 doesn't work with some makeinfo versions.
3597
fbd8dca6
VS
35982012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3601 with GRUB expectance.
3602
dab797f4
VS
36032012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3604
3605 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3606
1516bfb4
VS
36072012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3608
3609 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3610 zero after directory block since last entry may be not 0-terminated if
3611 it ends on block boundary. Use continue instead of if spanning whole
3612 loop.
3613
a3a0eace
VS
36142012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3615
3616 Support 4K sectors UDF inline files.
3617
3618 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3619 (grub_udf_extended_file_entry): Likewise.
3620 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3621 All users updated.
3622 (get_fshelp_size): New function.
3623 (grub_udf_read_icb): Read whole block.
3624 (grub_udf_iterate_dir): Likewise.
3625 (grub_udf_dir): Likewise.
3626 (grub_udf_open): Likewise.
3627
c82f16c1
VS
36282012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3631
59fd2aac
VS
36322012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3635 inline symlinks in addition to workaround.
3636
3b4afb4d
VS
36372012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3640
f45c794a
VS
36412012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3644
f25cecbd
VS
36452012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3648
bb9a34e8
VS
36492012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3650
3651 Fix reiserfs big seek times.
3652
3653 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3654 exact. All users updated.
3655 (grub_reiserfs_read): Use nearest btree search for seeking.
3656 Fix return value on error.
3657
dc478aea
VS
36582012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3659
3660 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3661 entries.
3662 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3663 * docs/grub.texi: Update menuentry description.
3664
8db10f47
VS
36652012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3666
3667 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3668 crash when embedding onto filesystem.
3669
bcb288ed
VS
36702012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3671
3672 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3673 name.
3674
a626fdd7
VS
36752012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3678
b2f68477
VS
36792012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3680
3681 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3682 commit.
3683
ba15b2af
B
36842012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
36852012-05-01 Bean <bean123ch@gmail.com>
3686
3687 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3688
a188012e
VS
36892012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3690
3691 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3692 Special behaviour for len = 0 to read whole file isn't used anywhere and
3693 can cause buffer ovewrflows in several places.
3694
f0a53ed2
VS
36952012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3696
3697 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3698
5ed554f0
VS
36992012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3700
3701 Handle RAIDZ on non-512B sectors.
3702
3703 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3704 max_children_ashift.
3705 (fill_vdev_info_real): Fill max_children_ashift.
3706 (read_device): Use max_children_ashift.
3707
ddc58357
VS
37082012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3711
e3282399
VS
37122012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3715 disk names.
3716 * docs/grub.texi: Update device.map parts.
3717
ee618bd4
VS
37182012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 Don't scan into non-diskfilter devices having diskfilter names.
3721
3722 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3723 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3724 handling.
3725 (scan_disk_hook): New function.
3726
bdf88864
B
37272012-04-29 Bean <bean123ch@gmail.com>
3728
3729 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3730 allocation.
3731
32745f51
MK
37322012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3733
3734 * configure.ac: Detect starfield theme font path
3735 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3736
bc95c8c0
VS
37372012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3738
3739 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3740 geometry on serial consoles.
3741
147fbcab
VS
37422012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3743
3744 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3745 because of network consoles.
3746
0f42c889
VS
37472012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3748
3749 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3750 handling.
3751
4a3594c9
VS
37522012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3753
3754 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3755 falls on Q syndrom.
3756
5cb53879
VS
37572012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3760 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3761
b282dfe5
VS
37622012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3763
3764 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3765 Allocate at lest 8192 for temporary buffer as required for lzo.
3766
daa59f47
VS
37672012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3770 to cluster_bits, since it's already added in.
3771 (grub_fat_read_data): Likewise.
3772
986748ce
VS
37732012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3776 as long as cluster size is multiple of 512 bytes.
3777
a20f6ad0
VS
37782012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * util/grub-mkrescue.in: Fix locale directory.
3781
385f9abb
VS
37822012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * grub-core/kern/emu/hostdisk.c (map): Make static.
3785
1c557d30
B
37862012-04-23 Bean <bean123ch@gmail.com>
3787
3788 * util/grub-fstest.c (fstest): Add missing break.
3789
524b5d3a
ST
37902012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3791
3792 Fix hurd build.
3793
3794 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3795 not define nr variable.
fe4824e9 3796 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3797 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3798 grub_find_device): Do not define.
524b5d3a 3799
9a06490c
VS
38002012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 Fix kfreebsd compile and behaviour.
3803
3804 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3805 format-security.
3806 * util/getroot.c: Fix wait.h include.
3807 (grub_guess_root_devices): Error if grub_find_device fails.
3808 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3809 (grub_util_get_dev_abstraction): Likewise.
3810 (grub_util_pull_device): Likewise.
3811 (grub_util_get_grub_dev): Likewise.
3812 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3813
48143d96
VS
38142012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 Fix and unify wholedisk detection.
3817
3818 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3819 is_part. All users updated.
3820 (device_is_wholedisk): Removed.
3821 (grub_util_biosdisk_get_grub_dev): Use is_part.
3822
ebbd24f3
VS
38232012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3826 mode.
3827
56f7aa1e
VS
38282012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * configure.ac: Bump to beta4.
3831
9c815e01
VS
38322012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3835 --fs-uuid --set UUID syntax.
3836
59e2651a
VS
38372012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3840 disunification.
3841
54e03cfc
VS
38422012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3845
81092a75
MK
38462012-04-18 Mads Kiilerich <mads@kiilerich.com>
3847
3848 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3849
f8315e14
MG
38502012-04-18 Mike Gilbert <floppym@gentoo.org>
3851
3852 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3853
1501ac21
B
38542012-04-18 Bean <bean123ch@gmail.com>
3855
3856 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3857 place.
3858
cb7f944e
VS
38592012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3862 users updated.
3863 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3864 corresponding to GRUB partitions.
3865 (grub_util_biosdisk_write): Likewise.
3866
b72d44a1
VS
38672012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 Scan mdraid before LVM.
3870
3871 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3872 (grub_diskfilter_register_front): ... this.
3873 (grub_diskfilter_register_back): New function.
3874 All users of grub_diskfilter_register updated.
3875
33d918b8
VS
38762012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 * util/grub-install.in: Fix an automatic target detection bug.
3879
c6ca973d
VS
38802012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * util/grub-install.in: New option --efi-directory.
3883
b41be562
VS
38842012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3887 boot services if we have no other choice.
3888
38892012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3890
3891 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3892 document it.
3893 * tests/util/grub-shell.in: Update to --directory.
3894
e0595a73
VS
38952012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3896
3897 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3898
4ed80652
VS
38992012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3902 (grub_minix_read_file): Likewise.
3903 (grub_minix_read_inode): Likewise.
3904 (grub_minix_find_file): Likewise.
3905 (grub_minix_dir): Likewise.
3906
56008077
VS
39072012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3908
3909 * util/grub-setup.c (setup): Fix partition handling and blocklist
3910 check.
3911
ee520775
VS
39122012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3915 redundant buggy overlap check.
3916
16fc9293
VS
39172012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3918
3919 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3920 and grub-mknetdir.
3921
9bab65c4
VS
39222012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3925 kh.loadflags on pre-2.00 kernels.
3926
3c491b47
VS
39272012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 Terminate UNDI and PXE before launching the payload to avoid problems
3930 with DMA.
3931
3932 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3933 (grub_loader_flags): ... this. All users updated.
3934 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3935 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3936 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3937 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3938 function.
3939 (grub_pxe_restore): Likewise.
3940 (fini_hnd): New var.
3941 (GRUB_MOD_INIT): Register shutdown hook.
3942 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3943 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3944 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3945 (grub_loader_set): Rename second argument to flags.
3946
851ffada
VS
39472012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3948
3949 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3950 written bytes.
3951 (grub_get_num_of_utf8_bytes): New function.
3952 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3953 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3954 executing it.
3955 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3956 (grub_ucs4_to_utf8): Change return type.
3957
491c57a8
VS
39582012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3959
3960 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3961 warning.
851ffada
VS
3962 * grub-core/fs/bfs.c (hop_level): Likewise.
3963 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 3964
756773df
VS
39652012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3966
3967 * grub-core/lib/adler32.c: Recode due to license unclearness.
3968
fd556a96
VS
39692012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3970
3971 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3972 (test_header): Likewise.
3973
9f9d3f69
VS
39742012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 Fix --help formatting.
3977
3978 * util/grub-mkconfig_lib.in (print_option_help): New function.
3979 (grub_fmt): Likewise.
3980 * util/grub-install.in: Use print_option_help and grub_fmt.
3981 * util/grub-kbdcomp.in: Likewise.
3982 * util/grub-mkconfig.in: Likewise.
3983 * util/grub-mknetdir.in: Likewise.
3984 * util/grub-mkrescue.in: Likewise.
3985 * util/grub-mkstandalone.in: Likewise.
3986 * util/grub-reboot.in: Likewise.
3987 * util/grub-set-default.in: Likewise.
3988 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3989
561ec77e
VS
39902012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 * linguas.sh: Remove autogenerated *.po.
3993
7ec2b021
VS
39942012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * po/README: Move language fetcing to ...
3997 * linguas.sh: ... here.
3998 * po/README: Point to linguas.sh.
3999
a88f3270
VS
40002012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * po/README: Exclude ko.po due to disclaimer problems.
4003
d61357ce
VS
40042012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
4007 len = 0.
4008 (grub_gettext_translate_real): Handle 0th string.
4009 (grub_gettext_translate): Ensure that "" isn't translated.
4010
505e41dc
VS
40112012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
4014 TRANSLATORS comment.
4015 (grub_diskfilter_print_partmap): Propagate changing of error into
4016 warning.
4017
e44092db
VS
40182012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4019
4020 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
4021 to uint64_t to prevent overflow.
4022 (grub_diskfilter_lv): Increase start_extent and extent_count
4023 to uint64_t to prevent overflow.
4024
9b83956a
VS
40252012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 * configure.ac: Increase version.
4028
da0d5b3f
VS
40292012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4030
4031 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
4032
4033 * po/Rules-translit: New file.
4034 * po/arabic.sed: Likewise.
4035 * po/cyrillic.sed: Likewise.
4036 * po/greek.sed: Likewise.
4037 * po/hebrew.sed: Likewise.
4038 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
4039 * po/Makefile.in.in: Add extra_dist4.
4040
ac66b453
VS
40412012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4042
4043 Handle big-endian minixfs (fixes minixfs tests on bigendian).
4044
4045 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
4046 modify names. Introduce MODE_BIGENDIAN.
4047 * grub-core/fs/minix_be.c: New file.
4048 * grub-core/fs/minix2_be.c: Likewise
4049 * grub-core/fs/minix3_be.c: Likewise.
4050 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
4051 minix3_be.
4052 * grub-core/Makefile.core.def (minix_be): New module.
4053 (minix2_be): Likewise.
4054 (minix3_be): Likewise.
4055
40562012-04-01 Felix <email@hamburg.de>
4057
4058 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
4059 (devs): Add MBP 2011.
4060
0a2d5a82
VS
40612012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4062
4063 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
4064
d1625889
VS
40652012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 * grub-core/normal/cmdline.c (print_completion): New field
4068 prompt_len.
4069 (grub_cmdline_get): Handle width properly.
4070
6d36a236
VS
40712012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4072
4073 * grub-core/commands/lsacpi.c (options): Add missing terminator.
4074
9576977e
VS
40752012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 4078 after 29th of February.
9576977e 4079
d73ff15d
VS
40802012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 Fix exfat endianness handling.
4083
4084 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
4085 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
4086 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
4087 Byte-swap utf16 when necessary.
4088 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4089
bbb39a45
AB
40902012-03-31 Anton Blanchard <anton@samba.org>
40912012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 Fix btrfs endianness handling.
4094
4095 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4096 (lower_bound): Make root uint64_t. Use root in le.
4097 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4098 (find_path): Fix template key init.
4099 (grub_btrfs_dir): Fix mtime byteswap.
4100 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4101
354e0af7
VS
41022012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4105 recursion_depth. Break infinite resursions. All users updated.
4106
4e75f21c
VS
41072012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4110 after free.
4111 Reported by: Peter Jones.
4112
25581802
AB
41132012-03-31 Anton Blanchard <anton@samba.org>
4114
4115 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4116 8 bit values.
4117
08fbf92e
VS
41182012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 * util/grub-install.in: Fix nvram call for PreP.
4121
5d1182a6
VS
41222012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4123
4124 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4125 the error when some elements are missing into a warning.
4126
3f8cdd90
VS
41272012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4130
51006716
CW
41312012-03-28 Colin Watson <cjwatson@ubuntu.com>
4132
4133 * docs/grub.texi (Invoking grub-probe): New section.
4134 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4135
e1bd676b
VS
41362012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4137
4138 Fix tab and wide character handling in editor and menu.
4139
4140 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4141 agglomerate control characters with combining marks.
4142 (bidi_line_wrap): Allow break on tab.
4143 (grub_unicode_get_comb_start): New function.
4144 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4145 and tab correctly.
4146 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4147 with a space.
4148 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4149 fixed_tab_size. All users updated.
4150 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4151 (grub_term_getcharwidth): Handle \t.
4152 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4153 and copy.
4154
22e6a774
VS
41552012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4156
4157 Handle big-endian mdraid.
4158
4159 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4160 * grub-core/Makefile.core.def (mdraid09_be): New module.
4161 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4162 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4163 * grub-core/disk/mdraid_linux_be.c: New file.
4164
3c0eae66
VS
41652012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4168
b6cf74c9
VS
41692012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4170
4171 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4172 missing quotes which caused confusion among translators.
4173
83c93b9c
VS
41742012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4175
4176 * util/grub-mkconfig_lib.in: Fix typo.
4177
ac6fd218
VS
41782012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4181 spaces.
4182 * tests/grub_script_leading_whitespace.in: New file.
4183 * Makefile.util.def (grub_script_leading_whitespace): New test.
4184
ba287dd8
VS
41852012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4186
4187 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4188 to work.
4189
d2d58d0a
VS
41902012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4191
4192 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4193 starts with control character.
4194
0382d9bb
VS
41952012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4196
4197 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4198 overflow.
4199 (grub_gdb_outbuf): Likewise.
4200
d83ff9f9
VS
42012012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4204 zero terminator. Fixes a crash.
4205
2282da4a
VS
42062012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4209 beyond 4 GiB.
4210 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4211 images independently of preffered adderss field.
4212
0ae4f0bd
VS
42132012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4214
4215 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4216 * grub-core/commands/regexp.c: Likewise.
4217 * grub-core/loader/i386/linux.c: Likewise.
4218 * grub-core/partmap/msdos.c: Likewise.
4219 * grub-core/script/execute.c: Likewise.
4220 * grub-core/term/gfxterm.c: Likewise.
4221
546fbe9b
VS
42222012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4223
4224 Add variable parsing in $"..." and fix several mismatches with bash.
4225
4226 * Makefile.util.def (grub_script_gettext): New test.
4227 * grub-core/script/execute.c (parse_string): New function.
4228 (gettext_append): Likewise.
4229 (grub_script_arglist_to_argv): Use gettext_append.
4230 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4231 * tests/grub_script_gettext.in: New file.
4232
9fdb2d7b
VS
42332012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 Fix handling of leading spaces in scripts.
4236
4237 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4238 spaces.
4239 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4240 other than skipping \r. All users updated.
4241 * tests/grub_script_echo1.in: Add space-related tests.
4242 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4243
1a1ac4f6
VS
42442012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4245
4246 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4247
b63d89b6
VS
42482012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4249
4250 * configure.ac: Bump up the version to beta2.
4251
17f38c0f
VS
42522012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4253
4254 Fix gettext reload bugs (e.g. inability to disable gettext
4255 once enabled).
4256
4257 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4258 main_context and secondary_context. All functions updated.
4259 (grub_gettext_translate): Rename to ...
4260 (grub_gettext_translate_real): ... this. Return NULL on failed
4261 translate.
4262 (grub_gettext_translate): Handle secondary context.
4263 (grub_gettext_delete_list): Close file and zero-out the context.
4264 (grub_mofile_open): Don't call grub_gettext_delete_list.
4265 Don't close file.
4266 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4267 if locale="" to avoid pointless error message.
4268 (grub_gettext_env_write_lang): Update lang even if load fails.
4269 Handle secondary context.
4270 (grub_gettext_reread_prefix): New function.
4271 (read_main): Likewise.
4272 (read_secondary): Likewise.
4273 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4274 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4275 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4276 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4277
8e56f870
VS
42782012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4279
4280 * configure.ac: Decrease warning level to avoid spurious warnings and
4281 to be able to compile with GCC 4.2.
4282 * Makefile.util.def: Remove -Wno-error=logical-op.
4283
82f6d455
WB
42842012-03-10 William Bittner <william.bittner@gmail.com>
4285
4286 * util/import_unicode.py: Add missing brackets around string for
4287 python 3 support.
4288
1ecd61a4
VS
42892012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4290
4291 Fix efi chainloader on network root.
4292
4293 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4294 network devices.
4295 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4296 New function.
4297
14361ee8
VS
42982012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4301 unused show_text member.
4302 * docs/grub.texi: Document "text" property.
4303
922aabf3
VS
43042012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4307 in dprintf.
4308
ec316771
VS
43092012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 Fix IMSM handling on Fedora.
4312
4313 * util/getroot.c (grub_util_is_imsm): New function.
4314 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4315
0f021838
VS
43162012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * Makefile.am: Strip gold section.
4319 * conf/Makefile.common: Likewise.
4320 * gentpl.py: Likewise.
4321 * grub-core/Makefile.core.def: Likewise.
4322 * grub-core/genmod.sh.in: Likewise.
4323
1039c8eb
VS
43242012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4327 * util/grub.d/20_linux_xen.in: Likewise.
4328 Based on Debian patch.
4329
6dd412cd
VS
43302012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 * util/grub.d/10_linux.in: Fix syntax error resulting in
4333 Richard Laager's patch.
4334 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4335
3fd8bae5
VS
43362012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4337
4338 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4339 dependencies.
4340
7eea1671
RL
43412012-03-10 Richard Laager <rlaager@wiktel.com>
4342
4343 * util/grub.d/10_linux.in: Fix ZFS root passing.
4344
e8e0566b
VS
43452012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4348 * grub-core/commands/xnu_uuid.c: Likewise.
4349 * grub-core/loader/efi/appleloader.c: Likewise.
4350 * grub-core/script/execute.c: Likewise.
4351 * grub-core/script/main.c: Likewise.
4352 * util/grub-mkfont.c: Likewise.
4353
1acc5b1f
VS
43542012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * util/grub-mkfont.c (options): Use more appropriate "select" that
4357 "set" for face index.
4358
35d70620
VS
43592012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4360
4361 * util/grub-editenv.c (options): Gettextize command summaries.
4362
c9eb96b5
VS
43632012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4366 "out of memory" error messagge.
4367
1f493136
VS
43682012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4369
4370 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4371 of diskfilter for diskfilter on diskfilter support.
4372
6d790129
VS
43732012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4374
4375 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4376
005f46c9
VS
43772012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4380 themes/starfield.
4381
c8f778a0
VS
43822012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4385
de1e64eb
VS
43862012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4389
c6d54211
VS
43902012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4393 of error message.
4394
dd390777
VS
43952012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4396
4397 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4398
5fd1c522
VS
43992012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4400
4401 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4402 message.
c6d54211 4403 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 4404
fae01f6c
VS
44052012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4408 Gettextize.
4409 * util/grub-mount.c (options): Likewise.
4410
292fdaff
VS
44112012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4412
4413 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4414 gettextize.
4415 * grub-core/commands/search_wrap.c (options): Likewise.
4416
ecdbae77
VS
44172012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4420
52bfedfa
VS
44212012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4424 size calculation.
4425 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4426 none is known.
4427
55b20e58
VS
44282012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4429
4430 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4431 "temporary" since it's used in identifier and is limited in space.
4432
fda9d101
VS
44332012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4434
4435 * po/POTFILES.in: Regenerate. Include *.h since they contain
4436 translatable strings as well.
4437
6a0295e2
VS
44382012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4439
4440 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4441 byte-swap on big-endian.
4442 Reported by: Lennart Sorensen
4443
807fb77c
VS
44442012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4445
4446 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4447 (allocate_pages): Improve dprintf.
4448 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4449 code32_start. Fill code32_start and kernel_alignment in params.
4450 (grub_cmd_initrd): Use prot_init_space.
4451
61ac50ba
VS
44522012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4453
4454 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4455
abdd26dd
VS
44562012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * util/grub-install.in: Add missing dot at the end of sentence.
4459
6e69da9c
VS
44602012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4463 * grub-core/commands/videotest.c: Likewise.
4464 * grub-core/loader/i386/linux.c: Likewise.
4465
4a929343
VS
44662012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4469 sentence.
4470 Reported by: Milo Casagrande.
4471
bb51c6c6
VS
44722012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4475 * grub-core/commands/gptsync.c: Likewise.
4476 * grub-core/commands/hashsum.c: Likewise.
4477 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4478 * grub-core/commands/legacycfg.c: Likewise.
4479 * grub-core/io/gzio.c: Likewise.
4480 * grub-core/net/net.c: Likewise.
4481 * grub-core/term/gfxterm.c: Likewise.
4482 * grub-core/term/terminfo.c: Likewise.
4483 * grub-core/tests/test_blockarg.c: Likewise.
4484 * grub-core/video/video.c: Likewise.
4485 * util/grub-install.in: Likewise.
4486 * util/grub-mkfont.c: Likewise.
4487
b2b149cb
VS
44882012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4489
4490 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4491
c7c080ad
VS
44922012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 4495 Reported by: David Prévot.
c7c080ad 4496
f2e243c0
VS
44972012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4498
4499 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4500 description.
4501
09963c76
VS
45022012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * util/grub-script-check.c (main): Fix a syntax error message which was
4505 unclear.
4506
a50514a8
VS
45072012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4510
4650daec
VS
45112012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4514 messages.
4515
45162012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
4517
4518 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4519 without argument.
4520 * util/grub-mount.c (options): Likewise.
4521
bbc5a342
VS
45222012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4523
4524 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4525
ef292a87
VS
45262012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4527
4528 * grub-core/net/http.c: Add TRANSLATORS comments.
4529 * grub-core/normal/cmdline.c: Likewise.
4530 * grub-core/normal/misc.c: Likewise.
4531 * grub-core/partmap/msdos.c: Likewise.
4532 * grub-core/parttool/msdospart.c: Likewise.
4533 * grub-core/script/execute.c: Likewise.
4534 * grub-core/script/main.c: Likewise.
4535 * grub-core/term/terminfo.c: Likewise.
4536 * grub-core/video/bitmap.c: Likewise.
4537 * util/grub-install.in: Likewise.
4538 * util/grub-mkimage.c: Likewise.
4539 * util/grub-mklayout.c: Likewise.
4540 * util/grub-setup.c: Likewise.
4541
0fc19bd0
VS
45422012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4545 with similar messages in grub-fstest.
4546
d95862ef
VS
45472012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 * util/grub-install.in: Unify "option requires an argument" message
4550 with similar messages in other files.
4551 * util/grub-mkconfig.in: Likewise.
4552
b7308f90
VS
45532012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 * util/grub-set-default.in: Replace printf with gettext_printf (the
4556 string in in question is already translated from grub-reboot)
4557
559dc587
VS
45582012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 * configure.ac: Bump up the version to beta1.
4561
1a11761f
VS
45622012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4563
4564 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4565 case when min_align = 0.
4566
24539abd
VS
45672012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4568
4569 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4570 and fix a case when line_start overflows.
4571
32bd735b
VS
45722012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 * util/grub-reboot.in (usage): Mention id posibility.
4575 * util/grub-set-default.in (usage): Likewise.
4576
1a2fd1e6
VS
45772012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4580 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4581 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4582 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4583 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4584 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4585 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4586
90eeab76
VS
45872012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4588
4589 * grub-core/commands/menuentry.c (options): Remove
4590 GRUB_ARG_OPTION_REPEATABLE.
4591 Reported by: Andreas Vogel
4592
5ad1be82
AV
45932012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4594
4595 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4596
cb055286
HE
45972012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4598
4599 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4600 error.
4601
93b1cd79
VS
46022012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 Use sort -V by the idea of Georgi Georgiev.
4605
4606 * util/grub-mkconfig_lib.in (version_sort): New function.
4607 (version_test_numeric): Use version_sort.
4608
0cdc126c
VS
46092012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4610
4611 Use submenus in grub-mkconfig.
4612
4613 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4614 * util/grub-mkconfig_lib.in (grub_quote): New function.
4615 (gettext_printf): Use gettext and not gettext_quoted to fix several
4616 messages.
4617 * util/grub.d/10_hurd.in: Use submenus.
4618 * util/grub.d/10_kfreebsd.in: Likewise.
4619 * util/grub.d/10_linux.in: Likewise.
4620 * util/grub.d/10_netbsd.in: Likewise.
4621 * util/grub.d/20_linux_xen.in: Likewise.
4622 * util/grub.d/30_os-prober.in: Likewise.
4623 * util/grub.d/10_illumos.in: Add missing quoting.
4624 * util/grub.d/10_windows.in: Likewise.
4625
d9bef9bc
VS
46262012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4627
4628 Fix menu title instability bug.
4629
4630 * grub-core/commands/menuentry.c (options): New option --id.
4631 (grub_normal_add_menu_entry): New argument id. All users updated.
4632 (grub_cmd_menuentry): Handle --id.
4633 (grub_menu_init): Accept unknown arguments.
4634 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4635 feature_menuentry_options.
4636 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4637 saved_entry.
4638 (get_entry_number): Match with id as well.
4639 * include/grub/menu.h (grub_menu_entry): New member id.
4640 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4641 * util/grub.d/00_header.in: Define menuentry_id_option.
4642 * util/grub.d/10_hurd.in: Define id.
4643 * util/grub.d/10_illumos.in: Likewise.
4644 * util/grub.d/10_kfreebsd.in: Likewise.
4645 * util/grub.d/10_linux.in: Likewise.
4646 * util/grub.d/10_netbsd.in: Likewise.
4647 * util/grub.d/10_windows.in: Likewise.
4648 * util/grub.d/20_linux_xen.in: Likewise.
4649 * util/grub.d/30_os-prober.in: Likewise.
4650
46512012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
4652
4653 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4654 "scope" with "body".
4655
7c8d0ce7
VS
46562012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4657
4658 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4659 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4660 prot_size and prot_file_size.
4661
49de079b
VS
46622012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4663
4664 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4665 All users updated. If easily=1 require raid-5/-6 to be full.
4666 (is_node_readable): Likewise.
4667 (scan_devices): Scan incomplete but readable LVs at the end.
4668 (grub_diskfilter_memberlist): Pull missing devices.
4669 (insert_array): Skip scanning until device is complete or scan is
4670 done otherwise.
4671 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4672 check.
4673 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4674 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4675
aff05d45
MG
46762012-03-03 Matthew Garrett <mjg@redhat.com>
46772012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 Avoid EFI boot services when loading Linux.
4680
4681 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4682 avoid_efi_bootservices. All users updated.
4683 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4684 argument avoid_efi_bootservices. All users updated.
4685 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4686 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4687 align, min_align, relocatable, prefered_address. All users updated.
4688 Allocate avoiding boot services if kernel is relocatable.
4689 (grub_cmd_linux): Check if kernel is relocatable.
4690 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4691 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4692 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4693 avoid_efi_boot_services.
4694 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4695 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4696 (linux_kernel_params): Likewise.
4697
3935dde2
MG
46982012-03-03 Matthew Garrett <mjg@redhat.com>
46992012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 Use EDID on EFI.
4702
4703 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4704 datasize_out.
4705 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4706 modes. Set gop_handle.
4707 (grub_video_gop_get_edid): New function.
4708 (grub_gop_get_preferred_mode): Likewise.
4709 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4710 (grub_video_efi_gop_adapter): Set .get_edid.
4711 * include/grub/efi/edid.h: New file.
4712 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4713
32107ec0
VS
47142012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4715
4716 * util/grub-install.in: Load efivars unconditionally.
4717
e70a2c50
VS
47182012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4719
4720 * po/Rules-piglatin: Change suffix from .po-update-en to
4721 .po-update-en-piglatin.
4722
8f9cace1
VS
47232012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 Add a pig farm.
4726
4727 * po/piglatin.sed: New file.
4728 * po/en@piglatin.header: Likewise.
4729 * po/Rules-piglatin: Likewise.
4730 * po/README: Add en@piglatin to autogenerated languages.
4731
8f95d002
VS
47322012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4735 "Command for ...".
4736 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4737 "Check" since we don't check anything.
4738 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4739 is 64-bit one.
4740 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4741 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4742 (grub_md_sha512_real): Likewise.
4743
805a8dcc
VS
47442012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4745
4746 * grub-core/commands/gptsync.c: Fix typographic quoting.
4747 * grub-core/commands/ieee1275/suspend.c: Likewise.
4748 * grub-core/commands/parttool.c: Likewise.
4749 * grub-core/commands/search_wrap.c: Likewise.
4750 * grub-core/commands/videoinfo.c: Likewise.
4751 * grub-core/gfxmenu/gui_label.c: Likewise.
4752 * grub-core/hello/hello.c: Likewise.
4753 * grub-core/kern/emu/main.c: Likewise.
4754 * grub-core/net/net.c: Likewise.
4755 * grub-core/normal/menu.c: Likewise.
4756 * grub-core/normal/menu_text.c: Likewise.
4757 * grub-core/normal/misc.c: Likewise.
4758 * util/grub-editenv.c: Likewise.
4759 * util/grub-install.in: Likewise.
4760 * util/grub-kbdcomp.in: Likewise.
4761 * util/grub-mkconfig.in: Likewise.
4762 * util/grub-mknetdir.in: Likewise.
4763 * util/grub-mkrescue.in: Likewise.
4764 * util/grub-mkstandalone.in: Likewise.
4765 * util/grub-reboot.in: Likewise.
4766 * util/grub-set-default.in: Likewise.
4767 * util/grub-setup.c: Likewise.
4768 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4769
40211ab8
VS
47702012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4773 * grub-core/commands/keystatus.c: Likewise.
4774 * grub-core/commands/loadenv.c: Likewise.
4775 * grub-core/commands/probe.c: Likewise.
4776 * grub-core/commands/regexp.c: Likewise.
4777 * grub-core/commands/true.c: Likewise.
4778 * grub-core/commands/videoinfo.c: Likewise.
4779 * grub-core/disk/cryptodisk.c: Likewise.
4780 * grub-core/disk/ldm.c: Likewise.
4781 * grub-core/disk/loopback.c: Likewise.
4782 * grub-core/disk/luks.c: Likewise.
4783 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4784 * grub-core/kern/disk.c: Likewise.
4785 * grub-core/kern/emu/hostdisk.c: Likewise.
4786
0c7d99c7
VS
47872012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4790 * util/grub-install.in: Add missing quote in the comment.
4791
e7d2559b
VS
47922012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4793
4794 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4795 * grub-core/commands/lsmmap.c: Likewise.
4796 * grub-core/commands/minicmd.c: Likewise.
4797 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4798 * grub-core/commands/regexp.c: Likewise.
4799 * grub-core/gdb/gdb.c: Likewise.
4800 * grub-core/term/gfxterm.c: Likewise.
4801 * util/grub-mkconfig.in: Likewise.
4802 * util/grub-mkfont.c: Likewise.
4803 * util/grub-mklayout.c: Likewise.
4804 * util/grub-mknetdir.in: Likewise.
4805 * util/grub-mkrescue.in: Likewise.
4806 * util/grub.d/30_os-prober.in: Likewise.
4807
49ce9e50
VS
48082012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4811 with "Direct color" and "Packed" with "Packed pixel".
4812 (grub_cmd_videoinfo): Simplify legend.
4813
e4b791fa
VS
48142012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4815
4816 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4817 absolutely unclear error message.
4818
fd1265cb
VS
48192012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * util/grub-mkstandalone.in: Remove confusing leftover print.
4822
8822a8a0
VS
48232012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4824
4825 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4826 comments.
4827 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4828 (GRUB_MOD_INIT): Likewise.
4829 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4830 VGA mode.
4831 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4832 comments.
4833 * util/grub-install.in (usage): Likewise.
4834 Spell ID in whole letters.
4835 Add missing ending dot.
4836 Quote variables.
4837 * util/grub-reboot.in: Fix capitalisation.
4838 * util/grub-set-default.in: Likewise.
4839
937fd0cc
VS
48402012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4843 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4844 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4845 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4846 Disable -Werror for -Wdeprecated-declarations.
4847 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4848 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4849 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4850 (grub_util_get_grub_dev): Make luks handling dependent on
4851 HAVE_DEVICE_MAPPER and not __linux__.
4852 (get_win32_path): Fix format security.
4853 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4854 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4855 Don't try grub_find_zpool_from_dir.
4856 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4857 #ifdef-out paresdir.
4858
1bab1ae3
VS
48592012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4860
4861 * util/grub-pe2elf.c (usage): Add missing noreturn.
4862 (write_section_data): Rename name to shname to avoid shadowing.
4863 (write_symbol_table): Rename name to symname to avoid shadowing.
4864 Fix write_reloc_section call.
4865
ef023e42
VS
48662012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4867
4868 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4869 to ensure that it's after the last byte of .text.
4870
48afcb75
VS
48712012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 * util/ieee1275/ofpath.c (my_isdigit): New function.
4874 (trailing_digits): Use my_isdigit.
4875 (strip_trailing_digits): Likewise.
4876
88d51eff
VS
48772012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4878
4879 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4880 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4881
17edc2ba
VS
48822012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4883
4884 * grub-core/kern/i386/pc/startup.S: Define __start.
4885
ad5518d7
VS
48862012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4887
4888 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4889 strip already transforms he format.
4890
9e95e1bf
VS
48912012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4892
4893 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4894
9cc3ee5c
VS
48952012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4896
4897 * util/grub-install.in: Add missing gettext init.
4898 * util/grub-kbdcomp.in: Likewise.
4899 * util/grub-mkconfig.in: Likewise.
4900 * util/grub-mknetdir.in: Likewise.
4901 * util/grub-mkrescue.in: Likewise.
4902 * util/grub-mkstandalone.in: Likewise.
4903 * util/grub-reboot.in: Likewise.
4904 * util/grub-set-default.in: Likewise.
4905 * util/grub.d/00_header.in: Likewise.
4906 * util/grub.d/10_hurd.in: Likewise.
4907 * util/grub.d/10_windows.in: Likewise.
4908 * util/grub.d/30_os-prober.in: Likewise.
4909 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4910
49e08a06
VS
49112012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4912
4913 * po/Rules-swiss: Fix header comment.
4914
3809cb41
AV
49152012-02-29 Andreas Vogel <anvoit>
4916
4917 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4918 resulted in leak of arguments.
4919
fa6ec573
VS
49202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4921
4922 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4923 reed_solomon_size const definition instead of computing it since
4924 Apple assembler doesn't support the later.
4925
22899b9c
VS
49262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4927
4928 * gentpl.py (kernel): Rewrite Apple part.
4929
a132afc3
VS
49302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4931
4932 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4933
9d742bd4
VS
49342012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4935
4936 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4937 ELF section gap.
4938 (load_image): Likewise.
4939
f04a9a21
VS
49402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4941
4942 * configure.ac: Fix a typo in previous commit.
4943
46cf439c
VS
49442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 Don't add -Wl,-N on Apple platform.
4947
4948 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4949 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4950
c4c48c54
VS
49512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 * grub-core/Makefile.core.def (lzma_decompress): Use
4954 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4955
31a12124
VS
49562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * grub-core/genmod.sh.in: Rewrite the Apple part.
4959
4f3aa1af
VS
49602012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4963 comparison.
4964
7bd8b0c7
VS
49652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * acinclude.m4 (grub_CHECK_PIC): New test.
4968 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4969
97304d7c
VS
49702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4971
4972 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4973 to avoid the warning.
4974
fb883812
VS
49752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4978 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4979 after. All users updated.
4980
a121c964
VS
49812012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 Use the common size routine in hostfs so we can read disks as well.
4984
4985 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4986 (grub_util_get_fd_size): ... this. Return size in bytes.
4987 All users updated.
4988 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4989 grub_util_get_fd_size.
4990
c66d6410
VS
49912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4992
4993 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4994 Add blocksize retrieval.
4995
dfc8aeb0
VS
49962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 * configure.ac: Restore CFLAGS after efiemu check.
4999
403e25a5
VS
50002012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
5003 Apple bug.
5004
382775d1
VS
50052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
5008
6fd4e6e4
VS
50092012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5010
5011 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
5012 (grub_cmd_halt): Likewise.
5013
bea359d6
VS
50142012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
5017 for local arithmetics.
5018 Break %sp init into 2 instructions.
5019 Add 0 byte at the end.
5020
32eb6ee1
VS
50212012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5022
5023 * grub-core/disk/diskfilter.c (read_segment): Initialise err
5024 before loops.
5025
e8377389
VS
50262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
5029 for context.
5030
8cb17de7
VS
50312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 * grub-core/disk/ldm.c (make_vg): Init part.name.
5034 (grub_ldm_detect): Silence spurious warning.
5035 (grub_util_is_ldm): Likewise.
5036
595717e6
VS
50372012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5038
5039 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
5040 sane value to avoid a spurious warning.
5041
c4b7e588
VS
50422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
5045 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
5046
59824957
VS
50472012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5048
5049 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
5050 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
5051
70115b99
VS
50522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
5055 hardcoding the relevant info.
5056
56733740
VS
50572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
5060 missing const qualifiers.
5061 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
5062
43481481
VS
50632012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5064
5065 * util/getroot.c [__APPLE__]: Add missing includes.
5066 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
5067
3cb38f01
VS
50682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 * util/grub-mkimage.c (generate_image): Silence spurious warning.
5071
d9dbf11e
VS
50722012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5073
5074 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
5075 avoid conflicts.
5076
0c42a45d
VS
50772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
5080
46c34eb0
VS
50812012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
5084 and grub_file_close call.
5085
99ce1597
VS
50862012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5087
5088 Add LZSS Mach-O support (needed for new xnu kernelcache).
5089
5090 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5091 * grub-core/loader/lzss.c: New file.
5092 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5093 on Mach-O open failure.
5094 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5095 Don't free cmdsXX in uncompressedXX is set.
5096 (grub_macho_file): Init new fields.
5097 New argument is_64bit. All users updated.
5098 Handle compressed. Error out if no suitable architecture is found.
5099 Don't close file.
5100 (grub_macho_open): New argument is_64bit. All users updated.
5101 * grub-core/loader/macho32.c: Add defines for new fields.
5102 * grub-core/loader/macho64.c: Likewise.
5103 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5104 (grub_macho_parse): Handle compressed.
5105 Defer actual processing if compressed.
5106 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5107 "filename". All users updated.
5108 (grub_macho_size): New argument "filename". All users updated.
5109 (grub_macho_get_entry_point): Likewise.
5110 (grub_macho_load): Handle compressed.
5111 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5112 (GRUB_MACHO_LZSS_OFFSET): New define.
5113 (grub_decompress_lzss): New proto.
5114 * include/grub/machoload.h (grub_macho_file): New fields to handle
5115 compressed.
5116 (grub_macho_contains_macho64): Remove proto.
5117 (grub_macho_contains_macho32): Likewise.
5118 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5119
ebd17d6f
VS
51202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5121
5122 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5123
2702b4e4
VS
51242012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5125
5126 Fix make dist.
5127
5128 * Makefile.am (starfield_theme_files): New var.
5129 (starfield_DATA): Use starfield_theme_files.
5130 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5131 Add bootcheck-related files.
5132 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5133 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5134 and font_char_metrics.txt.
5135 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5136 (setjmp): Add lib/ia64/longjmp.S.
5137 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5138 * po/POTFILES.in: Regenerate.
5139 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5140 DISTFILES.common.extra1.
5141 * util/devicemap.c: Removed.
5142 * grub-core/lib/i386/relocator_backward.S: Likewise.
5143 * util/import_gcry.py: Remove unused files. Add extra_dist for
5144 ChangeLog.
5145
cf1adfdf
VS
51462012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5149 grub_gettext_delete_list before changing grub_gettext_max to avoid
5150 running out of array bounds.
5151
51522012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
5153
5154 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5155 grub_vga_text_init/grub_vga_text_fini.
5156
cf1adfdf 51572012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
5158
5159 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5160
541d92e9
VS
51612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5162
5163 * configure.ac: Bump to 2.00~beta0.
5164
7931dddf
VS
51652012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5168 missing initialisation.
5169
f1b16fa3
VS
51702012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5171
5172 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5173
83ddae23
VS
51742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5175
5176 Support v2 xnu boot arguments.
5177
5178 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5179 New argument fsbfreq_out.
5180 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5181 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5182 be used.
5183 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5184 darwin_version.
5185 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5186 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5187 (grub_xnu_boot_params): Rename to ...
5188 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5189 (grub_xnu_boot_params_v2): New struct.
5190
dc693fe6
VS
51912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5192
5193 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5194 zeroing of CRC field before computing CRC.
5195
5a6e39c2
VS
51962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5199 Change order of allocations to decrease fragmentation.
5200
6c21f5d7
VS
52012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5202
5203 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5204
cfe456dc
CW
52052012-02-27 Colin Watson <cjwatson@ubuntu.com>
5206
5207 Use write-combining MTRR to speed up video with buggy BIOSes.
5208
5209 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5210 (cpuid): New define.
5211 (rdmsr): Likewise.
5212 (wrmsr): Likewise.
5213 (mtrr_base): Likewise.
5214 (mtrr_mask): Likewise.
5215 (grub_vbe_enable_mtrr_entry): New function.
5216 (grub_vbe_enable_mtrr): Likewise.
5217 (grub_vbe_disable_mtrr): Likewise.
5218 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5219 control off to BIOS.
5220 (grub_video_vbe_init): Fill mtrr.
5221 (grub_video_vbe_fini): Disable mtrr.
5222 (grub_video_vbe_get_info_and_fini): Likewise.
5223 (grub_video_vbe_setup): Enable mtrr.
5224
e3c78337
CW
52252012-02-27 Colin Watson <cjwatson@ubuntu.com>
5226
5227 * include/grub/partition.h (grub_partition_map): Change prototype of
5228 embed to take a maximum value for nsectors.
5229 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5230 * include/grub/fs.h (grub_fs): Likewise.
5231 * grub-core/partmap/msdos.c (embed_signatures): New array.
5232 (pc_partition_map_embed): Check for and avoid sectors matching any
5233 of the signatures in embed_signatures, up to max_nsectors.
5234 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5235 returned sector map to max_nsectors.
5236 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5237 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5238 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5239 * util/grub-setup.c (setup): Allow for the embedding area being
5240 split into multiple blocklists. Tell dest_partmap->embed the
5241 maximum number of sectors we care about.
5242
52432012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5244
5245 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5246 Specify blocklist_install and reserver_first_sector for all fs.
5247 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5248 blocklists.
5249
984b973f
VS
52502012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5251
5252 * util/grub-install.in: Clarify strings.
5253 Fix source dir check.
5254
f122e0d6
RL
52552012-02-27 Richard Laager <rlaager@wiktel.com>
5256
5257 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5258 "zfs" and "fuse.zfs" as synonyms.
5259
071114bb
VS
52602012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5261
5262 * configure.ac: Put platform and target_cpu substitutions back since
5263 they are used for directories.
5264
817e6abc
RL
52652012-02-27 Richard Laager <rlaager@wiktel.com>
52662012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5269 * util/grub.d/20_linux_xen.in: Likewise.
5270
897b7419
RL
52712012-02-27 Richard Laager <rlaager@wiktel.com>
5272
5273 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5274 with full paths.
5275
a414bd15
RL
52762012-02-27 Richard Laager <rlaager@wiktel.com>
5277
5278 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5279 unescape.
5280
30ac48c4
VS
52812012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5282
5283 Don't use insecure popen in getroot.
5284
5285 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5286 (exec_pipe): ... here.
5287 (find_root_devices_from_poolname): Use exec_pipe.
5288
53f13848
VS
52892012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 Remove platform and target_cpu replacement.
5292
5293 * configure.ac: Remove platform and target_cpu substitutions.
5294 * tests/util/grub-shell.in: Use modinfo.
5295 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5296 explicitly.
5297
90cb2803
VS
52982012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5299
5300 Autodetect platform in grub-install but allow override.
5301
5302 * util/grub-install.in: Autodetect platform. Support --target and
5303 --directory. Read platform from modinfo.sh.
5304
b9136427
VS
53052012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5306
5307 Support btrfs multi-volume probe.
5308
5309 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5310 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5311 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5312 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5313 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5314 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5315 grub_find_root_devices_from_btrfs if on btrfs.
5316
c36e5cd1
VS
53172012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5318
5319 Remove any awareness of *.c util files about target.
5320
5321 * Makefile.util.def (grub-setup): Split to ...
5322 (grub-bios-setup): ... and this.
5323 (grub-sparc64-setup): ... and this.
5324 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5325 * docs/man/grub-setup.h2m: Split into ...
5326 * docs/man/grub-sparc64-setup.h2m: ... this.
5327 * docs/man/grub-bios-setup.h2m: ... and this.
5328 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5329 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5330 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5331 (grub_target_addr_t): Remove.
5332 (grub_target_size_t): Remove.
5333 (grub_target_ssize_t): Remove.
5334 * util/grub-install.in: Use new grub-*-setup.
5335 * util/grub-mkimagexx.c (Elf_Word): New define.
5336 (Elf_Half): Likewise.
5337 (Elf_Section): Likewise.
5338 (ELF_ST_TYPE): Likewise.
5339 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5340 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5341
584b2f8a
VS
53422012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5343
5344 Replace grub_target_addr with more appropriate types.
5345
5346 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5347 grub_target_addr with grub_addr.
5348 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5349 grub_target_addr with grub_port.
5350 (grub_cmd_write): Likewise.
5351 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5352 grub_target_addr with grub_addr.
5353 (grub_cmd_write): Likewise.
5354 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5355
5a0dc6fb
VS
53562012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5357
5358 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5359 const qualifier for vendor_guid.
5360
786aff6e
VS
53612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5362
5363 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5364 const qualifier.
5365 (efiemu_memequal): Likewise.
5366 (find_variable): Likewise.
5367
49017b17
VS
53682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 Fix missing console prototype on qemu-mips.
5371
5372 * include/grub/mips/qemu_mips/console.h: New file.
5373
c5988629
MG
53742012-02-27 Matthew Garrett <mjg@redhat.com>
53752012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5378 * include/grub/efi/efi.h: Likewise.
5379 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5380 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5381 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5382 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5383 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5384 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5385
e33f8d69
MG
53862012-02-27 Matthew Garrett <mjg@redhat.com>
5387
5388 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5389
fb312cd9
VS
53902012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5391
5392 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5393 error.
5394
7134247c
VS
53952012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5396
5397 * configure.ac: Remove inappropriate use of program_transform_name
5398 on grubdir and bootdir but allow explicit specification of those
5399 variables.
5400
6a313124
VS
54012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5402
5403 * util/grub-mknetdir.in (grub_prefix): Removed.
5404 (subdir): Use @bootdirname@ and @grubdirname@.
5405
2311c5ca
VS
54062012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5409
7d5d60f7
VS
54102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5411
5412 * po/POTFILES.in: Regenerated.
5413
8151bc82
VS
54142012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5415
5416 Remove improper use of program_transform_name on pkglibrootdir.
5417
5418 * configure.ac (pkglibrootdir): Removed.
5419 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5420 * util/grub-mkimage.c: Likewise.
5421
b4a6a533
VS
54222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5425 warning.
5426
668f304f
VS
54272012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5428
5429 * util/grub-install.in: Use file identifier if no UUID is available
5430 or user explicitly prompted for it.
5431
665f2341
NP
54322012-02-27 Navdeep Parhar <nparhar@gmail.com>
5433
5434 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5435 (freebsd_get_zfs): New function.
5436 (grub_freebsd_boot): Pass zfs UUID.
5437 (grub_cmd_freebsd): Set zfs UUID.
5438
8151bc82 54392012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
5440
5441 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5442 pkglibrootdir.
5443
e4c498a1
MG
54442012-02-27 Mike Gilbert <floppym@gentoo.org>
5445
5446 Add configure flag to control libzfs integration.
5447
5448 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5449
1e9a9a3f
VS
54502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5453 device.
5454 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5455 small devices.
5456
036985b8
VS
54572012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5458
5459 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5460 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5461 be used on non-modules.
5462
5463 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5464 Rename to grub_boot_init.
5465 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5466 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5467 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5468 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5469 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5470 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5471 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5472 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5473 includes.
5474 (grub_machine_init): Remove empty inits.
5475 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5476 includes.
5477 (grub_machine_init): Remove empty inits.
5478 * grub-core/term/arc/console.c: Remove explicit proto.
5479 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5480 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5481 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5482 grub_at_keyboard_fini.
5483 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5484 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5485 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5486 grub_gfxterm_fini.
5487 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5488 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5489 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5490 grub_vgatext_fini.
5491 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5492 * grub-core/term/serial.c (GRUB_MOD_INIT)
5493 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5494 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5495 grub_serial_fini.
5496 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5497 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5498 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5499 grub_terminfo_fini.
5500 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5501 (GRUB_MOD_FINI): Likewise.
5502 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5503 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5504 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5505 grub_video_radeon_fuloong2e_fini.
5506 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5507 [LOONGSON]: Rename to grub_video_sis315pro_init.
5508 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5509 grub_video_sis315pro_fini.
5510 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5511 [LOONGSON]: Rename to grub_video_sm712_init.
5512 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5513 grub_video_sm712_fini.
5514 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5515 (grub_at_keyboard_fini): Likewise.
5516 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5517 Don't declare grub_{modname}_init.
5518 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5519 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5520 New proto.
5521 (grub_keylayouts_fini) [!EMU]: Likewise.
5522 * include/grub/serial.h (grub_serial_init) [!EMU]:
5523 New proto.
5524 (grub_serial_fini) [!EMU]: Likewise.
5525 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5526 New proto.
5527 (grub_terminfo_fini) [!EMU]: Likewise.
5528 * include/grub/video.h (grub_font_init) [!EMU]:
5529 New proto.
5530 (grub_font_fini) [!EMU]: Likewise.
5531 (grub_gfxterm_init) [!EMU]: Likewise.
5532 (grub_gfxterm_fini) [!EMU]: Likewise.
5533 (grub_video_sm712_init) [!EMU]: Likewise.
5534 (grub_video_sm712_fini) [!EMU]: Likewise.
5535 (grub_video_sis315pro_init) [!EMU]: Likewise.
5536 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5537 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5538 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5539
d5534665
VS
55402012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5541
5542 Make nand a prefix for nand devices.
5543
5544 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5545
10133b5f
VS
55462012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5549 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5550
8e307a62
VS
55512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * include/grub/env.h (grub_env_find): Remove prototype.
5554 * grub-core/kern/env.c (grub_env_find): Make static.
5555 (grub_env_set): Remove useless set.
5556
a4c65f34
VS
55572012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5558
5559 * grub-core/kern/i386/realmode.S: Remove useless align.
5560
d87893d5
VS
55612012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5562
5563 * include/grub/dl.h (grub_dl_load_file): Don't export.
5564
50159add
VS
55652012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5566
5567 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5568 grub_dprintf.
5569
b2582b84
VS
55702012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5571
5572 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5573 grub_errors.
5574 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5575 not reloading whole superblock but only the part which is really needed.
5576 Remove useless grub_errors.
5577 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5578 grub_errors.
5579
e2a83395
VS
55802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5581
5582 Don't export grub_get_rtc.
5583
5584 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5585 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5586
e7d2a906
VS
55872012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5590
6cf1363b
VS
55912012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5592
5593 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 5594 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 5595
eece3349
VS
55962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5597
5598 Remove prio_list.
5599
5600 * include/grub/list.h (grub_prio_list): Removed.
5601 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5602 GRUB_COMMAND_PRIO_MASK.
5603 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5604 GRUB_COMMAND_FLAG_ACTIVE.
5605 (grub_prio_list_insert): Removed.
5606 (grub_prio_list_remove): Likewise.
5607 (GRUB_AS_PRIO_LIST): Likewise.
5608 (GRUB_AS_PRIO_LIST_P): Likewise.
5609 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5610 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5611 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5612 * grub-core/kern/command.c (grub_register_command_prio): Inline
5613 the prio_list code.
5614 (grub_unregister_command): Likewise.
5615
94f064b4
VS
56162012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 Fix interrupt mixup from previous commit.
5619
5620 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5621 (grub_realidt): New var.
5622 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5623 Load idt.
5624 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5625 New declaration.
5626 (grub_relocator16_boot): Set grub_relocator16_idt.
5627 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5628 (LOCAL(realidt)): ... this.
5629 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5630 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5631 (grub_realidt): New variable.
5632
27317084
VS
56332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5634
5635 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5636 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5637 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5638 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5639 Gettextize.
5640 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5641 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5642 * po/POTFILES.in: Regenerate.
5643
47b40053
VS
56442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5645
5646 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5647 errors.
5648
2b343101
VS
56492012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5650
5651 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5652 \0.
5653 (add_length): Likewise.
5654
ff27c3dd
LK
56552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
56562012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5657
5658 GDB serial and backtrace support.
5659
5660 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5661 (prot_to_real): Likewise.
5662 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5663 * grub-core/Makefile.core.def (backtrace): New module.
5664 (gdb): Likewise.
5665 * grub-core/gdb/cstub.c: New file.
5666 * grub-core/gdb/gdb.c: Likewise.
5667 * grub-core/gdb/i386/idt.c: Likewise.
5668 * grub-core/gdb/i386/machdep.S: Likewise.
5669 * grub-core/gdb/i386/signal.c: Likewise.
5670 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 5671 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
5672 * include/grub/backtrace.h: Likewise.
5673 * include/grub/gdb.h: Likewise.
5674 * include/grub/i386/gdb.h: Likewise.
5675
56762012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
5677
5678 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5679 New function.
5680 (add_length): Likewise.
5681 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5682 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5683 proto.
5684 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5685 __argp_get_display_len.
5686
ff27c3dd 56872012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
5688
5689 $"..." support in scripts.
5690
5691 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5692 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5693 * grub-core/script/yylex.l: Likewise.
5694 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5695 value.
5696
ff27c3dd 56972012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
5698
5699 * gentpl.py: Remove obsolete pkglib_DATA handling.
5700
ff27c3dd 57012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
5702
5703 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5704 mailing list.
5705
5706 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5707 * util/grub-kbdcomp.in: Likewise.
5708 * util/grub-mkconfig.in: Likewise.
5709 * util/grub-mkconfig_lib.in: Likewise.
5710 * util/grub-mknetdir.in: Likewise.
5711 * util/grub-mkrescue.in: Likewise.
5712 * util/grub-mkstandalone.in: Likewise.
5713 * util/grub-reboot.in: Likewise.
5714 * util/grub-set-default.in: Likewise.
5715 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5716
ff27c3dd 57172012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
5718
5719 Remove GRUB_PREFIX.
5720
5721 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5722 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5723 used for backward compatibility.
5724
ff27c3dd 57252012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
5726
5727 Add new all_video module.
5728
5729 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5730 * grub-core/Makefile.core.def (all_video): New module.
5731 * grub-core/genmoddep.awk: Generate dependency of all_video from
5732 video.lst.
5733 * grub-core/lib/fake_module.c: New file.
5734 * grub-core/normal/main.c (features): Add feature_all_video_module.
5735 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5736 don't do explicit search again.
47454da5 5737 insmod all_video in load_video if available.
22c7ce85 5738
ff27c3dd 57392012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
5740
5741 Another round of string clarification and adding TRANSLATORS comments.
5742
ff27c3dd 57432012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
5744
5745 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5746
ff27c3dd 57472012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
5748
5749 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5750 to grub_ssize_t.
5751 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5752 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5753
ff27c3dd 57542012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
5755
5756 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5757 trailing newline implicitly. All users updated.
5758
ff27c3dd 57592012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
5760
5761 Implement serial on IEEE1275 and EFI.
5762
5763 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5764 on emu. Mention arc and emu as the only platforms without serial
5765 support.
5766 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5767 ieee1275 platforms.
5768 * grub-core/term/efi/serial.c: New file.
5769 * grub-core/term/ieee1275/serial.c: Likewise.
5770 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5771 specification if no ns8250 driver is available.
5772 (grub_cmd_serial): Likewise.
5773 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5774 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5775 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5776 (grub_efi_parity_type_t): New type.
5777 (grub_efi_stop_bits_t): Likewise.
5778 (grub_efi_serial_io_interface): New struct.
5779 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5780 available for all interfaces.
5781 Add EFI and IEEE1275 fields.
5782 (grub_ofserial_init): New proto.
5783 (grub_efiserial_init): Likeiwse.
5784 * util/grub.d/00_header.in: Don't check for the presence of serial
5785 module.
5786
ff27c3dd 57872012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
5788
5789 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5790 name as if it was an alias.
5791
114076ef
VS
57922012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 * grub-core/commands/lsacpi.c (options): Fix typo.
5795
6a656b0e
VS
57962012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 Convert grub-emu to argp.
5799
5800 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5801 emu.
5802 * util/argp_common.c: Rename to ...
5803 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5804 Add missing includes.
5805 * grub-core/kern/emu/main.c: Convert to argp.
5806 * po/POTFILES.in: Regenerate.
5807 * util/grub-install.in (usage): Make first letter lowcase in messages
5808 for uniformity.
5809 * util/grub-setup.c (options): Likewise.
5810
1e3f8ae8
VS
58112012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5814 Put back accidently commented-out code.
5815
ed167a80
VS
58162012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5819 loop check using Brent algorithm.
5820 (grub_hfsplus_btree_search): Likewise.
5821
6753c0ec
VS
58222012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5823
5824 * util/grub-install.in: Fix usage of wrong device for PreP install.
5825
4e27343f
VS
58262012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5827
5828 * conf/Makefile.common (CFLAGS_GNULIB): Add
5829 -Wno-unsafe-loop-optimizations.
5830 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5831 on tools.
5832 * grub-core/commands/legacycfg.c: Add pragma to skip
5833 -Wunsafe-loop-optimizations.
5834 (check_password_md5_real): Fix loop counter type.
5835 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5836 reading.
5837 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5838 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5839 loop condition.
5840 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5841 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5842 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5843 condition.
5844 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5845 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5846 avoid possible infinite loops.
5847 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5848 and -Wunsafe-loop-optimizations.
5849 * grub-core/script/yylex.l: Likewise.
5850 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5851 (print_glyphs): Avoid infinite loops.
5852 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5853
697f18b0
GS
58542012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5855
5856 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5857 to avoid infinite loop.
5858 (disp_acpi_rsdt_table): Likewise.
5859
274416e8
VS
58602012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5861
5862 * grub-core/font/font.c (grub_font_load): Add support for default
5863 path for fonts ($prefix/fonts).
5864 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5865 for checking if string is a path.
5866 * grub-core/normal/main.c (features): Add feature_default_font_path.
5867 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5868 * util/grub.d/00_header.in: Use default directory if possible.
5869 * util/grub-install.in: Install unicode.pf2.
5870
b3e08622
VS
58712012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5872
5873 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5874 * po/Rules-swiss: New file.
5875 * po/swiss.sed: Likewise.
5876
fe42ce09
VS
58772012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5878
5879 * grub-core/fs/btrfs.c (find_device): Fix typos.
5880 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5881 * util/grub-mkrelpath.c (argp_parser): Likewise.
5882 Reported by: Yuri Chornoivan.
5883
72f1d065
DO
58842012-02-23 Dalet Omega <daletomega@gmail.com>
5885
5886 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5887 for usual informative messages.
5888
c5884973
DO
58892012-02-23 Dalet Omega <daletomega@gmail.com>
5890
5891 Starfield theme.
5892
5893 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5894 * conf/Makefile.common: Define starfielddir.
5895 * configure.ac: Configure starfield.
5896 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5897 * themes/starfield/README: Likewise.
5898 * themes/starfield/blob_w.png: Likewise.
5899 * themes/starfield/boot_menu_c.png: Likewise.
5900 * themes/starfield/boot_menu_e.png: Likewise.
5901 * themes/starfield/boot_menu_n.png: Likewise.
5902 * themes/starfield/boot_menu_ne.png: Likewise.
5903 * themes/starfield/boot_menu_nw.png: Likewise.
5904 * themes/starfield/boot_menu_s.png: Likewise.
5905 * themes/starfield/boot_menu_se.png: Likewise.
5906 * themes/starfield/boot_menu_sw.png: Likewise.
5907 * themes/starfield/boot_menu_w.png: Likewise.
5908 * themes/starfield/slider_c.png: Likewise.
5909 * themes/starfield/slider_n.png: Likewise.
5910 * themes/starfield/slider_s.png: Likewise.
5911 * themes/starfield/src/blob_nw.xcf: Likewise.
5912 * themes/starfield/src/bootmenu/: Likewise.
5913 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5914 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5915 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5916 * themes/starfield/src/slider_c.xcf: Likewise.
5917 * themes/starfield/src/slider_n.xcf: Likewise.
5918 * themes/starfield/src/slider_s.xcf: Likewise.
5919 * themes/starfield/src/terminalbox/: Likewise.
5920 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5921 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5922 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5923 * themes/starfield/starfield.png: Likewise.
5924 * themes/starfield/terminal_box_c.png: Likewise.
5925 * themes/starfield/terminal_box_e.png: Likewise.
5926 * themes/starfield/terminal_box_n.png: Likewise.
5927 * themes/starfield/terminal_box_ne.png: Likewise.
5928 * themes/starfield/terminal_box_nw.png: Likewise.
5929 * themes/starfield/terminal_box_s.png: Likewise.
5930 * themes/starfield/terminal_box_se.png: Likewise.
5931 * themes/starfield/terminal_box_sw.png: Likewise.
5932 * themes/starfield/terminal_box_w.png: Likewise.
5933 * themes/starfield/theme.txt: Likewise.
5934
17d73325
VS
59352012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5936
5937 * util/grub.d/00_header.in: Add missing export theme.
5938
dbebaf92
VS
59392012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5940
5941 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5942 already included.
5943 Reported by: Eren D.
5944
3d68bffb
VS
59452012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 * conf/Makefile.common (grubdatadir): Removed.
5948 (Makefile.am): Move eveything grubdata to pkgdata.
5949
4b59234d
VS
59502012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5951
5952 * grub-core/commands/acpihalt.c (get_sleep_type):
5953 Remove unused variable.
5954
463dcadc
VS
59552012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5956
5957 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5958 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5959 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5960 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5961 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5962 i18n with gettext no-op.
5963 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5964 GRUB_ACPI_OPCODE_STRING_CONST.
5965 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5966 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5967
e5b90c82
VS
59682012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 * po/POTFILES.in: Regenerate.
5971
2a704ca9
VS
59722012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5973
5974 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5975 -Wno-error=missing-noreturn.
5976
84f9d341
VS
59772012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5980 condition to avoid possibly infinite loops.
5981 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5982 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5983
d46683f9
VS
59842012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5987 condition to avoid possibly infinite loops.
5988
c44866b2
VS
59892012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5990
5991 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5992 on show_error.
5993
96790539
VS
59942012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5995
5996 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5997
1ba7e295
VS
59982012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5999
6000 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
6001
21ffe8f1
VS
60022012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6003
6004 * util/bin2h.c (usage): Add missing attribute noreturn.
6005
0ccb6b3c
VS
60062012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6007
6008 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
6009 if the size isn't divisible by 512.
6010
b00d7fb6
VS
60112012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 Make list_push and list_remove functions rather than inline functions
6014 to decrease size and avoid aliasing violations.
6015
6016 * include/grub/list.h (grub_list_push): Move to ...
6017 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
6018 * include/grub/list.h (grub_list_remove): Move to ...
6019 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
6020
9d369087
VS
60212012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
6024 and -Wunused-result.
6025
af0250d9
VS
60262012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6027
6028 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
6029 Reported by: Seth Goldberg
6030
aad32b14
VS
60312012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6032
6033 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
6034
ac96441c
ST
60352012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6036
6037 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
6038 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
6039 command line.
6040 * docs/grub.texi (Simple configuration): Document
6041 GRUB_CMDLINE_GNUMACH.
6042
60432012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
6044
6045 * conf/Makefile.common (platform_SCRIPTS): New variable.
6046 (platform_PROGRAMS): Likewise.
6047 * gentpl.py: Mark *,module and *.image for install.
6048 * grub-core/gdb_grub.in: Add a notice of expected environment.
6049 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
6050 (gmodule.pl): Likewise.
6051
ac96441c 60522012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
6053
6054 Replace grub_checkkey with grub_getkey_noblock.
6055
6056 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
6057 (grub_getkey_noblock): ... this. All users updated.
6058
ac96441c 60592012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
6060
6061 * grub-core/kern/emu/console.c: Move to ...
6062 * grub-core/term/emu/console.c: ...here.
6063 (grub_ncurses_getkey): Fix return value if no key is detected.
6064
e51b5666
VS
60652012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
6068 (grub_unit_test_fini): Likewise.
6069 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
6070
60712012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 * include/grub/test.h (GRUB_UNIT_TEST)
6074
d9a62292
VS
60752012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6076
6077 * grub-core/script/execute.c (grub_script_break): Clarify logic.
6078 Better error handling.
6079 (grub_script_return): Likewise.
6080 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6081
77c9182f
VS
60822012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6083
6084 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
6085 rimplicit redifinition.
6086
edb13cf9
VS
60872012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6088
6089 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6090 GRUB.
6091
a9e9dc7c
VS
60922012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6095 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6096 prompt here.
6097
b4ba8e02
VS
60982012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6101 as GRUB_ERR_BUG. Don't malloc if no device is available.
6102
dded5540
VS
61032012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6106 Mark calling with invalid term as GRUB_ERR_BUG.
6107
0cf69874
VS
61082012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6111 packets rather than raising an error.
6112
59bfe502
VS
61132012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6116 in if.
6117
db5fc596
VS
61182012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6119
6120 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6121 diagnostic to dprintf.
6122 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6123
e4b7f404
VS
61242012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6127 device name.
6128
e7b02f9e
VS
61292012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6132 (grub_ntfs_iterate_dir): Likewise.
6133
0331e102
VS
61342012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6135
6136 Efiemu stylistic fixes and gettext.
6137
6138 * grub-core/efiemu/i386/loadcore32.c
6139 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6140 * grub-core/efiemu/i386/loadcore64.c
6141 (grub_arch_efiemu_relocate_symbols64): Likewise.
6142 * grub-core/efiemu/i386/pc/cfgtables.c
6143 (grub_machine_efiemu_init_tables): Likewise.
6144 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6145 (grub_efiemu_loadcore_initXX): Add a filename argument.
6146 All users updated.
6147 Improved error message.
6148 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6149 Add a filename argument.
6150 All users updated.
6151 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6152 Reclassify double relocation as GRUB_ERR_BUG.
6153
306fc074
VS
61542012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6157 handling.
6158
794d8ef2
VS
61592012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6162 on partition.
6163
61642012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
6165
6166 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6167
794d8ef2 61682012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
6169
6170 Improve string. Gettextize.
6171
78dde88e
VS
61722012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6175 utils.
6176 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6177
4786a90f
VS
61782012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6179
6180 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6181 [GRUB_UTIL]: New function.
6182 (insert_array) [GRUB_UTIL]: Store partmaps.
6183 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6184 partmaps.
6185 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6186 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6187 (probe_abstraction): Print diskfilter and not raid.
6188 Reported by: Lennart Sorensen
6189
0b6225bd
VS
61902012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6191
6192 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6193 * util/grub-mkimagexx.c (MASK3): New define.
6194 (add_value_to_slot_20b): Use MASK3.
6195 (add_value_to_slot_21): Likewise.
6196 (relocate_addresses): Fix format specification.
6197 (load_image): Explicitly init symtab_section.
6198
b055f8f6
VS
61992012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6202 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6203
b77c2fb7
VS
62042012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6205
6206 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6207 on powerpc.
6208 Reported by: Lennart Sorensen
6209
e3ec28ab
VS
62102012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * gentpl.py: Add missing license header.
6213 * docs/grub.texi: Update copyright year.
6214
c8d9ead6
GS
62152012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6216
6217 Source grub-mkconfig_lib from the build directory at build time.
6218 Suggested by: Vladimir Serbinenko.
6219
6220 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6221 * util/grub-install.in: Define pkgdatadir if not already set, and source
6222 grub-mkconfig_lib from there.
6223 * util/grub-kbdcomp.in: Likewise.
6224 * util/grub-mkconfig.in: Likewise.
6225 * util/grub-mknetdir.in: Likewise.
6226 * util/grub-mkrescue.in: Likewise.
6227 * util/grub-mkstandalone.in: Likewise.
6228 * util/grub-reboot.in: Likewise.
6229 * util/grub-set-default.in: Likewise.
6230 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6231
ebcecdf1
VS
62322012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6233
6234 Increase warning level.
6235
6236 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6237 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6238 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6239 (TARGET_CFLAGS): Likewise.
6240 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6241 * grub-core/Makefile.core.def (decompressor_xz): Add
6242 -Wno-unreachable-code.
6243 (normal): Add -Wno-redundant-decls.
6244 (xzio): Add -Wno-unreachable-code.
6245 (lzopio): Add -Wno-redundant-decls -Wno-error.
6246 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6247 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6248 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6249 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6250 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6251 * grub-core/kern/i386/coreboot/init.c: Add exception to
6252 -Wsuggest-attribute=noreturn.
6253 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6254 * grub-core/kern/ia64/dl_helper.c: Likewise.
6255 * grub-core/kern/mips/dl.c: Likewise.
6256 * grub-core/kern/sparc64/dl.c: Likewise.
6257 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6258 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6259 (memcmp): Likewise.
6260 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6261 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6262 * grub-core/loader/mips/linux.c: Likewise.
6263 * grub-core/loader/multiboot_elfxx.c: Likewise.
6264 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6265 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6266 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6267 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6268 fixme.
6269 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6270 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6271 Fix prototype.
6272
37bb97fe
VS
62732012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6276 address.
6277
29a3550b
VS
62782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6281 Avoid improper use of strings.
6282 (grub_cmd_legacy_initrdnounzip): Likewise.
6283
dfdffd0d
VS
62842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6285
6286 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6287 attribute.
6288 (grub_util_info): Likewise.
6289 (grub_util_error): Likewise.
6290
102fae4a
VS
62912012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6292
6293 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6294 * util/grub-fstest.c (fstest): Likewise.
6295
7e94d044
VS
62962012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6297
6298 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6299 (grub_md_sha512_real): Likewise.
6300 (grub_util_get_geli_uuid): Likewise.
6301 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6302 (grub_util_biosdisk_open): Fix format specification.
6303 Respect format security.
6304 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6305 (xrealloc): Likewise.
6306 (xasprintf): Likewise.
6307
5ebd9769
VS
63082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 * util/import_gcry.py: Include grub/crypto.h in init.c.
6311
495fc8c1
VS
63122012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6315 (generate_image): Make prefix a const char *.
6316 Fix format specifications. Respect format security.
6317 Avoid void * arithmetics.
6318 Avoid shadowing.
6319 (argp_parser): Remove unused variable. Respect format security.
6320 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6321 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6322 (count_funcs): Remove unused variable.
6323 (relocate_addresses): Fix format specification.
6324 Disable x86-64 with elf32. Remove unused variables.
6325 (add_fixup_entry): Avoid shadowing.
6326 (make_reloc_section): Fix format specification.
6327 Use assert.
6328 (locate_sections): Fix format specifications.
6329 (load_image): Avoid shadowing.
6330
043c2ea3
VS
63312012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6334 Fix format specifications. Respect format security.
6335 Don't translate already translated grub_errmsg.
6336 (argp_parser): Remove unused variable
6337
3ec65a81
VS
63382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6341
a4d9fe4a
VS
63422012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6345 (main): Likewise. Use xmalloc. Respect format security.
6346
15b81d49
VS
63472012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6348
6349 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6350 a const char *.
6351 (argp_parser): Remove unused variable.
6352
31731fc0
VS
63532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6356 (add_pixel): Make static.
6357 (add_font): Likewise.
6358 (write_string_section): Make name and str a const char *.
6359 (write_be16_section): Make name a const char *.
6360 (print_glyphs): Make static.
6361 (write_font_ascii_bitmap): Likewise.
6362 (write_font_width_spec): Likewise.
6363 (write_font_pf2): Likewise.
6364 (argp_parser): Remove unused variable.
6365 Respect format security.
6366 (main): Avoid shadowing. Respect format security.
6367
0809527b
VS
63682012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 * util/grub-editenv.c (argp_parser): Make static.
6371 (create_envblk_file): Use xmalloc.
6372 (open_envblk_file): Likewise.
6373 Resepect format security.
6374 (set_variables): Respect format security.
6375
45b0c8b7
VS
63762012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6377
6378 * util/getroot.c (grub_find_device): Respect format security.
6379 (get_mdadm_uuid): Remove unused variable.
6380 (grub_util_pull_device): Dont call gettext on already translated
6381 grub_errmsg.
6382 (find_system_device): Remove unused variable.
6383 (grub_util_get_grub_dev): Likewise.
6384 (grub_make_system_path_relative_to_its_root): Respect format security.
6385
1b024b4e
VS
63862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6387
6388 * util/grub-fstest.c (execute_command): Make first argument
6389 a const char *.
6390 (read_file): Avoid shadowing.
6391 Reuse underlying error message if device open fails.
6392 (cmd_cmp): Respect format security.
6393 (root): Make const char *.
6394 (fstest): Remove args argument and use global copy.
6395 Respect format security.
6396 (argp_parser): Make static.
6397 (main): Make default_root const char *.
6398
5d1d4e28
VS
63992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 * util/grub-mount.c (root): Make const char *.
6402 (execute_command): Make first argument a const char *.
6403 (fuse_init): Respect format security.
6404 (argp_parser): Make static. Remove unused variable.
6405 (main): Make default_root a const char *.
6406 Respect format security.
6407
36eb7379
VS
64082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6409
6410 * util/grub-probe.c (probe): Don't call gettext on already translated
6411 grub_errmsg.
6412 Remove unused variables.
6413 (argp_parser): Remove unused variable.
6414
76fb2ea9
VS
64152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6416
6417 * util/grub-script-check.c (argp_parser): Remove unused variable.
6418 (main): Rename read to curread to avoid shadowing.
6419
56c98584
VS
64202012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6421
6422 * util/misc.c (grub_util_write_image_at): Fix format specification.
6423 (grub_util_write_image): Likewise.
6424 (grub_script_execute_argument_to_string): Removed (unused).
6425 (grub_script_execute_menuentry): Likewise.
6426 (grub_putchar): Likewise.
6427
164ebb48
VS
64282012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6429
6430 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6431 (FUNCTION) [GRUB_UTIL]: Likewise.
6432 (VARIABLE) [GRUB_UTIL]: Likewise.
6433
44318d61
VS
64342012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6435
6436 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6437 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6438
31a26002
VS
64392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6440
6441 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6442 buffer.
6443
64442012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6447 (LzmaEnc_SaveState): Removed (unused).
6448 (LzmaEnc_RestoreState): Likewise.
6449 (LzmaEnc_InitPriceTables): Made static.
6450 (LzmaEnc_Construct): Likewise.
6451 (LzmaEnc_FreeLits): Likewise.
6452 (LzmaEnc_Destruct): Likewise.
6453 (LzmaEnc_Init): Likewise.
6454 (LzmaEnc_InitPrices): Likewise.
6455 (LzmaEnc_Finish): Likewise.
6456 (LzmaEnc_PrepareForLzma2): Removed (unused).
6457 (LzmaEnc_MemPrepare): Likewise.
6458 (LzmaEnc_GetNumAvailableBytes): Likewise.
6459 (LzmaEnc_GetCurBuf): Likewise.
6460 (LzmaEnc_CodeOneMemBlock): Likewise.
6461
6fa67967
VS
64622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6463
6464 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6465 (grub_util_ldm_embed): Likewise.
6466
9a7428e6
VS
64672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 * util/grub-editenv.c (print_var): Rename name to varname to
6470 avoid shadowing.
6471 (main): Rename index to curindex to avoid shadowing.
31a26002 6472 Make filename a const char *.
9a7428e6 6473
4f96abd1
VS
64742012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6477 to arg_getline to avoid shadowing.
6478
44d10dad
VS
64792012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6480
6481 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6482 disk_ to avoid shadowing.
6483
340ba63e
VS
64842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6485
6486 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6487 curindex to avoid shadowing.
6488 Make static.
6489 (MatchFinder_GetNumAvailableBytes): Make static.
6490
22965bce
VS
64912012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6494 avoid shadowing.
6495
7b5784d4
VS
64962012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6497
6498 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6499 argument from encrypt to do_encrypt to avoid shadowing.
6500
6f48ca01
VS
65012012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6502
6503 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6504 incorrect nesting of #if's.
6505
a4ea2dff
VS
65062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6507
6508 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6509 checks which are always false on some platforms.
6510 (grub_cmd_lsacpi): Likewise.
6511 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6512 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6513 Likewise.
6514
def9fc1b
VS
65152012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6518 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6519
a67b2a04
VS
65202012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6521
6522 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6523 re_dfa_t to avoid breaking alignment invariants.
6524 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6525 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6526
44c6828d
VS
65272012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6530 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6531
bebe0dd0
VS
65322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6533
6534 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6535 Fix declaration.
6536
a9cdb3cf
VS
65372012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6538
6539 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6540 conserve alignment invariants.
6541 (grub_ehci_ehcc_read16): Likewise.
6542 (grub_ehci_oper_read32): Likewise.
6543 (grub_ehci_oper_write32): Likewise.
6544 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6545 Conserve alignment invariants.
6546
ccc3b1b8
VS
65472012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6550 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6551 declarations.
6552
987fbd95
VS
65532012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6554
6555 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6556 Remove unused variable.
6557
0df363f3
VS
65582012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6559
6560 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6561 Remove set in if.
6562
b2c0c4a6
VS
65632012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6564
6565 * include/grub/net.h: Remove double declarations.
6566
690c531f
VS
65672012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6568
6569 Remove "payload" command in ia64 Linux loader since I couldn't
6570 find any evidence of it being used for anything.
6571 Replace "relocate" command with an environment variable
6572
6573 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6574 fields.
6575 (ia64_boot_payload): Removed.
6576 (last_payload): Likewise.
6577 (RELOCATE_OFF): Likewise.
6578 (RELOCATE_ON): Likewise.
6579 (RELOCATE_FORCE): Likewise.
6580 (relocate): Likewise.
6581 (free_pages): Don't free payloads.
6582 (grub_load_elf64): Use common error messages.
6583 Use "linux_relocate" variable.
6584 Increase the space after boot_params.
6585 (grub_cmd_payload): Removed.
6586 (grub_cmd_relocate): Likewise.
6587 (grub_cmd_fpswa): Improve messages.
6588 (cmd_payload): Removed.
6589 (cmd_relocate): Likewise.
6590 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6591 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6592
01783768
VS
65932012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6594
6595 Convert UHCI to DMA framework.
6596
6597 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6598 (grub_uhci_pci_iter): Fill new members
6599 (grub_alloc_td): Use P2V and V2P functions.
6600 (grub_free_queue): Likewise.
6601 (grub_alloc_qh): Likewise.
6602 (grub_uhci_setup_transfer): Likewise.
6603 (grub_uhci_check_transfer): Likewise.
6604
43206939
VS
66052012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6606
6607 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6608 Remove assignment in if while on it.
6609
571e140e
VS
66102012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * util/grub-mkstandalone.in: Fix modules directory.
6613
a9d96eeb
VS
66142012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6615
6616 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6617 on i386-pc target.
6618 (argp_parser): Accept "auto" as compression specification.
6619
e4e37e8d
VS
66202012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 Fix `help' with unloaded modules.
6623
6624 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6625 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6626 (grub_dyncmd_dispatcher): Small stylistic fix.
6627 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6628 explicit help is requested.
6629
e1ea3ade
VS
66302012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6631
6632 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6633 Explicitly init restart while on it.
6634
27556881
VS
66352012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6636
6637 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6638 uninited variable.
6639
d65f6b36
VS
66402012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6641
6642 * util/grub-mknetdir.in: Use . rather than source for POSIX
6643 compatibility.
6644
0a1e473c
VS
66452012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6648
ce6647c8
VS
66492012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6650
6651 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6652 variable.
6653
66747894
VS
66542012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6655
6656 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6657 without quotes.
6658
71645f6e
VS
66592012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6660
6661 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6662
0e1c1f61
VS
66632012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6666 iteration of partitions.
6667
9c4b5c13
VS
66682012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6669
6670 Improve gettext support. Stylistic fixes and error handling fixes while
6671 on it.
6672
215c90cb
VS
66732012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6676 part. Instead setup the correct stack in RM.
6677 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6678 for stack.
6679 * include/grub/i386/relocator_private.h: New file.
6680
b5c1f9bf
VS
66812012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6682
6683 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6684 argument.
6685 * util/grub-fstest.c (options): Add missing DEVICE part.
6686
b525fd83
VS
66872012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6688
6689 Clarify and unify messages.
6690
6691 * grub-core/commands/hashsum.c (options): Unify messages.
6692 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6693 literal-only message as translatable.
6694 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6695 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6696 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6697 commands.
6698 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6699 key, not the key used to unlock. Clarify what it's used for.
6700 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6701 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6702 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6703 * util/grub-editenv.c (options): Unify "verbose" message.
6704 * util/grub-fstest.c (read_file): Unify error message.
6705 (fstest): Add quotes around commands.
6706 (options): Unify "verbose" message.
6707 * util/grub-install.in: Add quotes around variable name.
6708 * util/grub-kbdcomp.in: Unify error message.
6709 * util/grub-mkfont.c (main): Likewise.
6710 * util/grub-mkrescue.in: Likewise.
6711 * util/grub-mklayout.c (options): Unify "verbose" message.
6712 * util/grub-mkstandalone.in: Unify help and verbose messages.
6713 * util/grub-mount.c (options): Unify "verbose" message.
6714 * util/grub-probe.c (options): Likewise.
6715 * util/grub-script-check.c (options): Likewise.
6716 * util/grub-setup.c (setup): Unify no-terminator message.
6717 (options): Use DEVICE and not DEV.
6718 Unify "verbose" message.
6719 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6720
0ae70393
VS
67212012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 Improve and unify messages.
6724
6725 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6726 name. All users updated.
6727 Print filename in error.
6728 (read_device_map): Print filename in error.
6729 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6730 (grub_util_get_os_disk): Likewise.
6731 (grub_util_biosdisk_get_grub_dev): Likewise.
6732 (grub_util_check_block_device): Likewise.
6733 (grub_util_check_char_device): Likewise.
6734 (grub_make_system_path_relative_to_its_root): Likewise.
6735 * util/grub-editenv.c (create_envblk_file): Likewise.
6736 (open_envblk_file): Likewise.
6737 (write_envblk): Likewise.
6738 * util/grub-fstest.c (cmd_cp): Likewise.
6739 (cmd_cat): Likewise.
6740 (cmd_cmp): Likewise.
6741 * util/grub-menulst2cfg.c (main): Likewise.
6742 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6743 (write_font_width_spec): Likewise.
6744 (write_font_pf2): Likewise.
6745 * util/grub-mkimage.c (generate_image): New argument outname.
6746 All users updated.
6747 Remove unreacheable message.
6748 (options): Unify messages.
6749 (help_filter): Likewise.
6750 * util/grub-mklayout.c (usage): Removed (unused).
6751 (main): Print filename in error.
6752 * util/grub-mkrescue.in: Fix wrong quoting.
6753 * util/grub-setup.c (setup): Print filename in error.
6754 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6755 (check_sas): Likewise.
6756 * util/misc.c (grub_util_get_fp_size): Removed.
6757 (grub_util_get_image_size): Print filename in error.
6758 (grub_util_read_at): Removed.
6759 (grub_util_read_image): Print filename in error.
6760 (grub_util_load_image): Likewise.
6761 (grub_util_write_image_at): New argument filename. All users updated.
6762 Print filename in error.
6763 (grub_util_write_image): New argument filename. All users updated.
6764 Print filename in error.
6765 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6766 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6767
0a96117d
VS
67682012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 * grub-core/Makefile.core.def (pxechain): New module.
6771 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6772 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6773 function.
6774 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6775 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6776
aca002f7
VS
67772012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6778
6779 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6780 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6781 * include/grub/err.h (grub_error_saved): New struct.
6782 (grub_errmsg): Make array size explicit.
6783 * include/grub/misc.h (grub_error_save): New function.
6784 (grub_error_load): Likewise.
6785 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6786 (grub_error_push): Update `errno' member name.
6787 (grub_error_pop): Likewise
6788 * grub-core/net/tftp.c (tftp_data): New member save_err.
6789 (tftp_receive): Save error.
6790 (tftp_open): Restore error.
6791
a51dab13
VS
67922012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6793
6794 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6795 to real mode down to execute A20-related code in protected mode as
6796 intended.
6797
eb6e6649
GS
67982012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6799
6800 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6801 NULL when the argument `level' has an unexpected value.
6802
92cd0f6e
VS
68032012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 Move platform-dependent files from $prefix to $prefix/$platform.
6806
6807 * config.h.in (GRUB_TARGET_CPU): New definition.
6808 (GRUB_PLATFORM): Likewise.
6809 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6810 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6811 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6812 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6813 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6814 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6815 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6816 * grub-core/normal/term.c (read_terminal_list): Likewise.
6817 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6818 $prefix/locale.
6819 (grub_gettext_init_ext): Likewise.
6820 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6821 grub_platform.
6822 * util/grub-install.in: Update directories.
6823 * util/grub-mknetdir.in: Likewise.
6824 * util/grub-mkrescue.in: Likewise.
6825
db606889
VS
68262012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6827
6828 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6829 grub_error framework. All users updated.
6830
c39992a4
VS
68312012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6832
6833 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6834 lists (by always binsearching), improve caching (cache strings
6835 used for binsearch, not only results), improve
6836 maintainability (by using more structured binary search) and correct
6837 error handling.
6838
1e5ec32f
VS
68392012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6840
6841 * grub-core/script/execute.c (grub_script_return): Fix warning.
6842
ac576cde
VS
68432012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6844
6845 * grub-core/script/execute.c (grub_script_return): Fix potential
6846 NULL-dereference.
6847 Reported by: Jim Meyering.
6848
498453f6
VS
68492012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 * po/POTFILES.in: Regenerate.
6852 * util/grub-install.in: Gettextize the strings missed in first pass.
6853
8be63f2e
VS
68542012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 * Makefile.util.def (grub-mkdevicemap): Removed.
6857 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6858 * include/grub/util/deviceiter.h: Removed.
6859 * util/deviceiter.c: Likewise.
6860 * util/getroot.c (grub_util_get_os_disk): New function.
6861 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6862 replacement for EFI.
6863 * util/grub-mkdevicemap.c: Removed.
6864 * util/grub-probe.c (probe): Handle PRINT_DISK.
6865 (argp_parser): Handle -t disk.
6866
8e1e4e39
VS
68672012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6868
6869 * util/grub-mkfont.c: Migrate to argp.
6870 * util/grub-mklayout.c: Likewise.
6871 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6872 * util/grub-mkrelpath.c: Likewise.
6873 * util/grub-probe.c: Likewise.
6874 * util/grub-script-check.c: Likewise.
6875
4459819a
VS
68762012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * util/grub-reboot.in: Add missing datarootdir.
6879 Add missing newline.
6880 * util/grub-set-default.in: Add missing datarootdir.
6881 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6882 * util/grub-mkrescue.in: Likewise.
6883
f65741c7
VS
68842012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6885
6886 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6887
c1a33466
VS
68882012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6889
6890 * util/grub-kbdcomp.in: Add decent help and gettextize.
6891 * docs/man/grub-kbdcomp.h2m: New file.
6892
c76899a0
VS
68932012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 Migrate grub-mkimage.c to argp.
6896
6897 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6898 (grub-setup): Likewise.
6899 * util/grub-setup.c (print_version): Move to ...
6900 * util/argp_common.c (print_version): ... here.
6901 * util/grub-setup.c (argp_program_version_hook): Move to ...
6902 * util/argp_common.c (argp_program_version_hook): ... here.
6903 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6904 safety.
6905 * util/grub-mkimage.c (main): Migrate to argp.
6906
57db0757
VS
69072012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6908
6909 * util/grub-mkrescue.in: Use same message as
6910 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6911 for better translations.
6912
18534ad9
VS
69132012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6914
6915 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6916 options with generic grub-mkrescue.in with the goal of future
6917 merge.
6918
c84ba308
VS
69192012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6920
6921 * grub-core/kern/mm.c: Add missing include of i18n.h
6922 * grub-core/lib/relocator.c: Likewise.
6923
347998c2
VS
69242012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6925
6926 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6927 error.
6928 (allocate_pages): Check return value.
6929 Replace fatal with error.
6930 (grub_linux_boot): Replace printf with dprintf.
6931 Check find_mmap_size return value.
6932 Replace fatal with error.
6933 Don't call grub_machine_fini.
6934 (grub_load_elf64): Replace printf with dprintf.
6935 (grub_cmd_linux): Likewise.
6936 (grub_cmd_initrd): Likewise.
6937 (grub_cmd_payload): Likewise.
6938
c779226e
VS
69392012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6942 message.
6943 * grub-core/video/radeon_fuloong2e.c
6944 (grub_video_radeon_fuloong2e_setup): Likewise.
6945 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6946 * grub-core/video/video.c (grub_video_set_mode): Don't override
6947 standard out of memory message.
6948
dc87d45a
GS
69492012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6950
6951 NetBSD disk wedge support.
6952
6953 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6954 [__NetBSD__]: Handle NetBSD disk wedges.
6955 * util/getroot.c (convert_system_partition_to_system_disk)
6956 [__NetBSD__]: Likewise.
6957
055f856f
MW
69582012-02-03 Mark Wooding <mdw@distorted.org.uk>
6959
6960 * util/grub-mkconfig.in: Use umask rather than chmod to create
6961 grub.cfg.new to avoid insecure grub.cfg.
6962
4a9f8346
VS
69632012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6964
6965 * grub-core/commands/ls.c: Gettextize.
6966 * grub-core/commands/setpci.c: Likewise.
6967 * grub-core/commands/videotest.c: Likewise.
6968 * grub-core/disk/geli.c: Likewise.
6969 * grub-core/kern/mm.c: Likewise.
6970 * grub-core/lib/relocator.c: Likewise.
6971 * grub-core/loader/efi/appleloader.c: Likewise.
6972 * grub-core/loader/i386/xnu.c: Likewise.
6973 * grub-core/loader/ia64/efi/linux.c: Likewise.
6974 * grub-core/loader/xnu.c: Likewise.
6975 * grub-core/net/dns.c: Likewise.
6976 * grub-core/net/net.c: Likewise.
6977 * grub-core/script/lexer.c: Likewise.
6978 * grub-core/script/parser.y: Likewise.
6979 * grub-core/script/yylex.l: Likewise.
6980 * util/getroot.c: Likewise.
6981 * util/grub-setup.c: Likewise.
6982
a646a366
VS
69832012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6986 number.
6987
54e2be26
VS
69882012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6989
6990 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6991
f7c71e68
VS
69922012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6993
6994 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6995 macro.
6996 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6997 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6998
a32d5c71
VS
69992012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7000
7001 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
7002 * util/grub-install.in: Gettextize.
7003 * util/grub-mkconfig.in: Likewise.
7004 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
7005 if not available.
7006 (grub_warn): Gettextize.
7007 * util/grub-mknetdir.in: Gettextize.
7008 * util/grub-mkrescue.in: Likewise.
7009 * util/grub-mkstandalone.in: Likewise.
7010 * util/grub-reboot.in: Likewise.
7011 * util/grub-set-default.in: Likewise.
7012 * util/grub.d/00_header.in: Likewise.
7013 * util/grub.d/10_hurd.in: Likewise.
7014 * util/grub.d/10_kfreebsd.in: Likewise.
7015 * util/grub.d/10_linux.in: Likewise.
7016 * util/grub.d/10_netbsd.in: Likewise.
7017 * util/grub.d/10_windows.in: Likewise.
7018 * util/grub.d/20_linux_xen.in: Likewise.
7019 * util/grub.d/30_os-prober.in: Likewise.
7020 * po/POTFILES-shell.in: Regenerate.
7021
69edd81a
RL
70222012-02-03 Richard Laager <rlaager@wiktel.com>
7023
7024 * util/grub-mkimage.c (main): Fix format-security warning.
7025 * util/grub-mkrelpath.c (main): Likewise.
7026 * util/grub-probe.c (main): Likewise.
7027
65f08dbf
RL
70282012-02-03 Richard Laager <rlaager@wiktel.com>
7029
7030 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
7031 failure.
7032 Put back lost PRINT_DRIVE.
7033
e9084abe
RL
70342012-02-03 Richard Laager <rlaager@wiktel.com>
7035
7036 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
7037 (grub_guess_root_devices): Replace strlen with sizeof.
7038 Avoid crash.
7039 (find_root_devices_from_poolname): Remove unused variable.
7040 Handle raidzN.
7041
cf5f7ee7
VS
70422012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7043
7044 Support install on multi-device filesystems.
7045
7046 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
7047 (grub_guess_root_devices): ...this. Return char **. All users updated.
7048 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
7049 Removed.
7050 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
7051 (find_root_devices_from_poolname): ... here.
7052 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
7053 Support zfs-fuse.
7054 (grub_guess_root_device): Rename to ...
7055 (grub_guess_root_devices): ... this. Return char **. All users updated.
7056 * util/grub-install.in: Handle multi-device filesystems.
7057 * util/grub-probe.c (probe). Make device_names a char **. Add delim
7058 argument. All users updated.
7059 Handle multi-device filesystems.
7060 Use 'delim' as separator.
7061 Remove device check to allow filesystems on file.
7062 (main): Support -0 argument. Handle multi-device.
7063 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
7064 Fix a cross-device check while on it.
7065 (arguments): Remove root_dev.
7066 (argp_parser): Remove -r.
7067 (main): Remove root_dev.
7068
2f53a9ed
VS
70692012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
7072
17e1d934
VS
70732012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
7076 symbol.
7077 Reported by: NODA, Kai <nodakai>.
7078
d3e3fab5
VS
70792012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7080
7081 Fix ehci on amd64.
7082
7083 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
7084 pointers.
7085 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
7086 (grub_ehci_setup_qh): Likewise.
7087 (grub_ehci_find_qh): Likewise.
7088 (grub_ehci_transaction): Likewise.
7089 (grub_ehci_setup_transfer): Likewise.
7090 (grub_ehci_check_transfer): Likewise.
7091 (grub_ehci_portstatus): Likewise.
7092 (grub_ehci_detect_dev): Likewise.
7093 (grub_ehci_transfer_controller_data): New field td_last_phys.
7094 (grub_ehci_setup_transfer): Fill td_last_phys.
7095 (grub_ehci_check_transfer): Use td_last_phys.
7096
3008675b
SG
70972012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7098
7099 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7100 if no submenu is present.
7101
fc9b5652
AN
71022012-02-01 Aleš Nesrsta <starous@volny.cz>
7103
7104 CBI support.
7105
7106 * include/grub/usb.h (grub_usbms_protocol_t): New values
7107 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7108 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7109 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7110 (grub_usbms_dev): Add subclass, protocol and intrpt.
7111 Remove in_maxsz and out_maxsz.
7112 (grub_usbms_reset): Rename to ...
7113 (grub_usbms_bo_reset): .. this.
7114 (grub_usbms_cbi_cmd): New function.
7115 (grub_usbms_cbi_reset): Likewise.
7116 (grub_usbms_reset): Likewise.
7117 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7118 (grub_usbms_transfer): Rename to ...
7119 (grub_usbms_transfer_bo): ... this.
7120 (grub_usbms_transfer_cbi): Likewise.
7121 (grub_usbms_transfer): Likewise.
7122
a2b81d53
AN
71232012-02-01 Aleš Nesrsta <starous@volny.cz>
71242012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7125
7126 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7127 the support for the CS5536 modification thereos and few bugfixes.
7128
7129 * grub-core/Makefile.core.def (ehci): New module.
7130 * grub-core/bus/usb/ehci.c: New file.
7131 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7132 port and hubaddr. All users updated.
7133 Save port and hubaddr into dev structure.
7134 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7135 define.
7136 * include/grub/pci.h (grub_dma_phys2virt): New function.
7137 (grub_dma_virt2phys): Likewise.
7138 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7139
b1d51f02
VS
71402012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7141
7142 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7143 check as some mkfs implementations omit it.
7144
fc694106
VS
71452012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7146
7147 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7148
6c0920e3
VS
71492012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7152 Add new member volname2.
7153 (grub_jfs_label): Use volname2 if available.
7154
d1a46f9a
VS
71552012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7156
7157 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7158 over last_mounted as seen in image generated by mkfs.nilfs2.
7159 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7160
dec8ed14
VS
71612012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7162
7163 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7164 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7165 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7166
7397c69b
VS
71672012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7168
7169 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7170 over the sector.
7171
b3fe42ad
VS
71722012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7173
7174 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7175 subvolume name (by removing a bogus and useless check).
7176
10476bb0
VS
71772012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7178
7179 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7180 sizeof while on it.
7181
9c08ad87
VS
71822012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7183
7184 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7185 (grub_scsi_read_capacity10): ... this.
7186 (grub_scsi_read_capacity16): New function.
7187 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7188 0xffffffff.
7189 Fix off-by-one error.
7190 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7191 64-bit unsigned.
7192 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7193 (grub_scsi_read_capacity10): ... this.
7194 (grub_scsi_read_capacity_data): Rename to ...
7195 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7196 (grub_scsi_read_capacity16): New struct.
7197 (grub_scsi_read_capacity16_data): Likewise.
7198 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7199 grub_scsi_cmd_read_capacity10.
7200 New command grub_scsi_cmd_read_capacity16.
7201
bc8d0f45
VS
72022012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7203
7204 SCSI >2TiB support.
7205
7206 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7207 (grub_scsi_write16): Likewise.
7208 (grub_scsi_read): Use read16 when necessary.
7209 (grub_scsi_write): Likewise.
7210 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7211 (grub_scsi_write16): Likewise.
7212 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7213
cc774926
VS
72142012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7215
7216 SCSI write support (for usbms mainly).
7217
7218 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7219 a const pointer.
7220 (grub_scsi_write): Implement.
7221 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7222
67639fd7
VS
72232012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7224
7225 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7226 variable.
7227
9079d3ed
VS
72282012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7229
7230 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7231
c6a6f204
VS
72322012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7233
7234 * po/POTFILES.in: Regenerate.
7235
ecbf8cd1
VS
72362012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7237
7238 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7239 with grub_printf to avoid unnecessary fatal failure.
7240
0b3b3b38
VS
72412012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7242
7243 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7244 (INT_MAX): Likewise.
7245 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7246 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7247 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7248 (strcpy): Likewise.
7249 (strstr): Likewise.
7250 (strchr): Likewise.
7251 (strncpy): Likewise.
7252 (strcat): Likewise.
7253 (strncat): Likewise.
7254 (strcoll): Likewise.
7255 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7256 (GRUB_INT_MAX): Likewise.
7257
db7337a3
VS
72582012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7259
7260 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7261 unexpected error.
7262 (optimize_utf8): Likewise.
7263 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7264
f37c87e1
VS
72652012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7266
7267 * grub-core/boot/i386/pc/lnxboot.S: Use
7268 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7269 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7270 location.
7271 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7272 definition.
7273 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7274
63fe43f3
VS
72752012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7276
7277 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7278 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7279 now to avoid double free.
7280 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7281 hostdisk.
7282 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7283 * util/grub-probe.c (escape_of_path): Always return a new copy.
7284 (print_full_name): Escape path.
7285 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7286 Fix hints on abstractions.
7287
ebe2c961
VS
72882012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7289
7290 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7291 Don't add "root" line if no compatibility hont is available.
7292 Suggested by: Seth Goldberg.
7293
2b5336a2
VS
72942012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7297 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7298 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7299 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7300
74310bd8
VS
73012012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7302
7303 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7304
c30582ba
VS
73052012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7306
7307 * util/grub-pe2elf.c (ehdr): Make static.
7308 (shdr): Likewise.
7309 (num_sections): Likewise.
7310 (offset): Likewise.
7311
5f47782c
VS
73122012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 Eliminate ofpath limits and possible overflows.
7315
7316 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7317 (OF_PATH_MAX): Removed.
7318 (MAX_DISK_CAT): New const.
7319 (find_obppath): Use allocated rather than preallocated buffer.
7320 Return result. Argument of_path removed. All users updated.
7321 Add missing fdstat.
7322 (xrealpath): New function.
7323 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7324 Allocate rather than use preallocated buffer. All users updated.
7325 (__of_path_common): Use allocated rather than preallocatecd buffer.
7326 Return result. Argument of_path removed. All users updated.
7327 (vendor_is_ATA): Read only needed part form the file.
7328 (check_sas): Allocate depending on contents rather than fixed.
7329 (main) [STANDALONE]: Handle NULL result.
7330
f990cbf9
VS
73312012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7332
7333 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7334
9c6e84b8
VS
73352012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7336
7337 Cryptodisk write support.
7338
7339 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7340 (grub_cryptodisk_decrypt): Moved logic to ...
7341 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7342 (grub_cryptodisk_write): Implement.
7343 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7344 (grub_util_fd_write): ... this. Make global.
7345 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7346
87cf9744
VS
73472012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7348
7349 * include/grub/list.h (grub_list_remove): Don't crash if element is
7350 removed twice.
7351
ca8c0baf
VS
73522012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 Rename ofconsole to console.
7355
7356 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7357 as sysnonym to console.
7358 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7359 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7360 Rename grub_ofconsole_ to grub_console_. All users updated
7361 (grub_console_term_output): Rename "ofconsole" to "console".
7362 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7363 as "console".
7364
64c8b8f6
VS
73652012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7366
7367 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7368 handling.
7369 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7370 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7371 GRUB_DISK_DEVICE_FILE_ID.
7372
f6c434d5
VS
73732012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7376 and improve performance.
7377
5858b42d
VS
73782012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7381 missing ieee1275/ prefix on whole disk.
7382
4ed3c26b
VS
73832012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7384
7385 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7386 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7387
df71143e
VS
73882012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7389
7390 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7391
076e7c0f
VS
73922012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7393
7394 Merge common RAID and LVM logic to an abstract diskfilter.
7395 Add LDM support using the same framework.
7396
7397 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7398 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7399 (libgrubmods): Remove grub-core/disk/raid.c and
7400 grub-core/partmap/gpt.c.
7401 * grub-core/Makefile.core.def (ldm): New module.
7402 (raid): Renamed to diskfilter. All users updated.
7403 * grub-core/disk/raid.c: Moved to ...
7404 * grub-core/disk/diskfilter.c: ... here.
7405 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7406 (lv_num): New var.
7407 (find_array): Renamed to ...
7408 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7409 (grub_is_array_readable): Renamed to ...
7410 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7411 (insert_array): New argument id.
7412 (is_node_readable): New function.
7413 (scan_device): Rename to ...
7414 (scan_disk): .. this. Restrict to one disk.
7415 (scan_devices): New function.
7416 (grub_diskfilter_iterate): Support multi-LV.
7417 Skip invisible and nameless LVs.
7418 (grub_diskfilter_memberlist): Support multi-LV.
7419 (grub_diskfilter_read_node): New function.
7420 (grub_raid_read): Most of logic moved to ...
7421 (read_segment): ... here
7422 (read_lv): New function.
7423 (grub_diskfilter_get_vg_by_uuid): New function.
7424 (grub_diskfilter_make_raid): Likewise.
7425 * grub-core/disk/ldm.c: New file.
7426 * grub-core/disk/lvm.c (vg_list): Removed.
7427 (lv_count): Likewise.
7428 (scan_depth): Likewise.
7429 (is_lv_readable): Likewise.
7430 (grub_lvm_getvalue): Advance pointer past the number.
7431 (find_lv): Removed.
7432 (do_lvm_scan): Refactored into ...
7433 (grub_lvm_detect): ... this. Support raid.
7434 (grub_lvm_iterate): Removed.
7435 (grub_lvm_memberlist): Likewise.
7436 (grub_lvm_open): Likewise.
7437 (grub_lvm_close): Likewise.
7438 (read_lv): Likewise.
7439 (read_node): Likewise.
7440 (is_node_readable): Likewise.
7441 (is_lv_readable): Likewise.
7442 (grub_lvm_read): Likewise.
7443 (grub_lvm_write): Likewise.
7444 (grub_lvm_dev): Use diskfilter
7445 (GRUB_MOD_INIT): Likewise.
7446 (GRUB_MOD_FINI): Likewise.
7447 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7448 new interface.
7449 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7450 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7451 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7452 grub_diskfilter_read_node.
7453 Fix a bug with xor.
7454 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7455 grub_diskfilter_read_node.
7456 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7457 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7458 (grub_disk_dev_iterate): Move from here...
7459 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7460 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7461 Make global.
7462 (grub_hostdisk_find_partition_start): Likewise.
7463 (grub_hostdisk_os_dev_to_grub_drive): New function.
7464 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7465 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7466 * util/getroot.c (make_device_name): ... here.
7467 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7468 Move to ...
7469 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7470 * grub-core/kern/emu/hostdisk.c
7471 (convert_system_partition_to_system_disk): Move to ...
7472 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7473 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7474 * util/getroot.c (device_is_wholedisk): ... here.
7475 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7476 * util/getroot.c (find_system_device): ... here.
7477 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7478 Move to ...
7479 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7480 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7481 Move to ...
7482 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7483 Handle LDM.
7484 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7485 Move to ...
7486 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7487 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7488 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7489 DISKFILTER.
7490 * include/grub/raid.h: Renamed to ...
7491 * include/grub/diskfilter.h: ... this.
7492 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7493 (GRUB_RAID_LAYOUT_*): Make into array.
7494 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7495 (grub_diskfilter_vg): New struct.
7496 (grub_diskfilter_pv_id): Likewise.
7497 (grub_raid_member): Removed.
7498 (grub_raid_array): Likewise.
7499 (grub_diskfilter_pv): New struct.
7500 (grub_diskfilter_lv): Likewise.
7501 (grub_diskfilter_segment): Likewise.
7502 (grub_diskfilter_node): Likewise.
7503 (grub_diskfilter_get_vg_by_uuid): New proto.
7504 (grub_raid_register): Inline.
7505 (grub_diskfilter_unregister): Likewise.
7506 (grub_diskfilter_make_raid): New proto.
7507 (grub_diskfilter_vg_register): Likewise.
7508 (grub_diskfilter_read_node): Likewise.
7509 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7510 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7511 (grub_util_is_ldm): Likewise.
7512 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7513 (grub_hostdisk_find_partition_start): Likewise.
7514 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7515 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7516 New definition.
7517 (grub_gpt_partition_map_iterate): New proto.
7518 * include/grub/lvm.h (grub_lvm_vg): Removed.
7519 (grub_lvm_pv): Likewise.
7520 (grub_lvm_lv): Likewise.
7521 (grub_lvm_segment): Likewise.
7522 (grub_lvm_node): Likewise.
7523 * util/getroot.c [...]
7524 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7525 (probe_abstraction): Likewise.
7526 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7527 (main): Remove dead logic.
7528
8a7f9b9c
VS
75292012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7530
7531 Simplify root device discover and don't fail when trying to open
7532 incorrect devices.
7533
7534 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7535 function.
7536 (get_diskname_from_path): Likewise.
7537 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7538 of iterating.
7539
30545b85
VS
75402012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7543
28ea58cf
VS
75442012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7545
7546 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7547 pastthe end.
7548
692dabca
VS
75492012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 * util/grub-install.in: Add missing \.
7552 Reported by: gentoofan
7553
f6e4ea70
VS
75542012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7555
7556 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7557 (direct_read): Use correct compressed size.
7558 (grub_squash_read_data): Likewise.
7559
75602012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
7561
7562 * docs/grub.texi (Platform limitations): New section.
7563 (Platform-specific operations): Likewise.
7564 * docs/grub-dev.texi (Porting): Likewise.
7565
76261110
VS
75662012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7567
7568 IEEE1275 disk write support.
7569
7570 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7571 const void *.
7572 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7573 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7574 and seek loginc to ...
7575 (grub_ofdisk_prepare): ... here.
7576 (grub_ofdisk_write): Implement.
7577
fc36d603
VS
75782012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7579
7580 ARC disk write support.
7581
7582 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7583 (reopen): New argument writable. All users updated.
7584 Handle required access mode.
7585 (grub_arcdisk_write): Implement.
7586 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7587 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7588
e06c2e7a
VS
75892012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7590
7591 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7592 (read_sblock): Don't attempt to read superblocks outside the disk size.
7593
ff447958
VS
75942012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7597 first superblock to find the second one when possible.
7598
9e88df39
VS
75992012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7600
7601 * util/grub-install.in: Fix an ARC bug.
7602 Print a warning if no platform-specific setup is available.
7603
bb26e4ff
VS
76042012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 Use static allocation rather than scratch pointer in reed_solomon.
7607 It decreases its size significantly and avoids a variable in .text.
7608
7609 * grub-core/lib/reed_solomon.c (scratch): Removed.
7610 (chosenstat): New const or static array.
7611 (sigma): Likewise.
7612 (errpot): Likewise.
7613 (errpos): Likewise.
7614 (sy): Likewise.
7615 (mstat): Likewise.
7616 (errvals): Likewise.
7617 (eqstat): Likewise.
7618 (pol_evaluate): Replace x with log_x argument. All users updated.
7619 (syndroms): Removed.
7620 (gauss_solve): Use statically allocated arrays.
7621 (rs_recover): Likewise.
7622 Calculate syndroms directly.
7623 (decode_block): Use statically allocated arrays.
7624 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7625 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7626
2e13ede5
VS
76272012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7628
7629 Eliminate fixed limit on reed solomon decoder length.
7630
7631 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7632 rather than hardcoding the address.
7633 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7634 no_reed_solomon_length.
7635 Move gate_a20 to no-reed-solomon part.
7636 Don't force a particular size of no reed-solomon part.
7637 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7638 Removed.
7639 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7640 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7641
f8a9ab12
VS
76422012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7643
7644 * grub-core/commands/wildcard.c (match_files): Handle filenames
7645 without explicit device.
7646 (wildcard_expand): Don't add explicit device if not already present.
7647 * tests/grub_script_echo1.in: Add a new expansion test.
7648
87edb894
VS
76492012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7650
7651 Replace single-linked with double-linked lists. It results in more
7652 compact and more efficient code.
7653
7654 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7655 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7656 (grub_list_remove): Moved from here ...
7657 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7658 (grub_prio_list_insert): Set prev.
7659 * include/grub/list.h (grub_list): Add prev. All users updated.
7660
48b391e9
VS
76612012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 Handle newer autotools. Add some missing quotes while on it.
7664
7665 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7666 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7667 (pkgdata_DATA): ... here.
7668 * Makefile.util.def (update-grub_lib): Removed.
7669 * conf/Makefile.common (pkglib_DATA): Removed.
7670 (pkglib_SCRIPTS): Likewise.
7671 (pkgdata_DATA): New variable.
7672 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7673 needed.
7674 Add missing quotes.
7675 Remove unused variable while on it.
7676 * tests/util/grub-shell.in: Likewise.
7677 * util/grub-install.in: Likewise.
7678 * util/grub-mkconfig.in: Likewise.
7679 * util/grub-mknetdir.in: Likewise.
7680 * util/grub-mkrescue.in: Likewise.
7681 * util/grub-mkstandalone.in: Likewise.
7682 * util/grub.d/00_header.in: Likewise.
7683 * util/grub.d/10_hurd.in: Likewise.
7684 * util/grub.d/10_illumos.in: Likewise.
7685 * util/grub.d/10_kfreebsd.in: Likewise.
7686 * util/grub.d/10_linux.in: Likewise.
7687 * util/grub.d/10_netbsd.in: Likewise.
7688 * util/grub.d/10_windows.in: Likewise.
7689 * util/grub.d/20_linux_xen.in: Likewise.
7690 * util/grub.d/30_os-prober.in: Likewise.
7691 * util/update-grub_lib.in: Removed.
7692
76932012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
7694
7695 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7696 a workaround for intel problem.
7697
66832792
PRP
76982012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
76992012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
77002012-01-23 pfsmorigo
7701
7702 * util/grub-install.in: Support dd'in into PreP partition.
7703 * util/grub-probe.c (probe): Support discovering partition type.
7704 (main): Support -t msdos_parttype.
7705
7816a17e
VS
77062012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7707
7708 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7709 infinite recursion using counter.
7710 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7711 init to skip it if the magic check fails.
7712 (dec_stream_header): Init s->crc32.
7713
8f9d3a8c
ZB
77142012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
77152012-01-22 Zachary Bedell <pendorbound@gmail.com>
77162012-01-22 Richard Laager <rlaager@wiktel.com>
7717
7718 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7719 All users updated.
7720 (find_bestub): Determine correct size.
7721 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7722 (scan_disk): Align the size down.
7723 Call check pool before find_bestub to have ashift.
7724
b055dd32
VS
77252012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7726
7727 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7728 dprintf in no-malloc zone.
7729
d779e9bd
ML
77302012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7731
7732 * configure.ac: Add back in test for limits.h.
7733
b508af69
VS
77342012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7735
7736 Support 4K-sector NTFS.
7737
7738 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7739 (grub_ntfs_data): Remove blocksize.
7740 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7741 Remove data argument. All users updated.
7742
dad9c8b5
VS
77432012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7746 being in .text to avoid dprel references.
7747 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7748 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7749 (grub_arch_highmemsize): Likewise.
7750 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7751 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7752 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7753
d43a777e
VS
77542012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7755
7756 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7757
7758 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7759 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7760
34e4208f
VS
77612012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7762
7763 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7764 GRUB_UTIL.
7765 (grub_set_datetime_cmos): Likewise.
7766
3ec0fc1c
VS
77672012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7768
7769 Make XZ compression parameters dependent on target and not host CPU.
7770
7771 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7772 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7773
22489834
VS
77742012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7775
7776 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7777 set but not used variable.
7778
8502fbca
VS
77792012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7780
7781 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7782 created when no uuid support is compiled into mkfs.reiser.
7783
76df2068
VS
77842012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7785
7786 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7787 (utf8_to_macroman): Do the opposite.
7788 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7789
64e3f8f6
VS
77902012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7791
7792 * configure.ac: Refise build qemu_mips w/o unifont.
7793
9c271078
VS
77942012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7795
7796 Eliminate grub_min/grub_max prone to overflow usage.
7797
7798 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7799 (poll_nonroot_hub): Likewise.
7800 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7801 (grub_affs_label): Likewise.
7802 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7803 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7804 (grub_hfs_label): Likewise.
7805 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7806 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7807 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7808 (zap_leaf_array_get): Likewise.
7809 (dnode_get_path): Likewise.
7810 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7811 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7812 * grub-core/script/execute.c (grub_script_break): Likewise.
7813 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7814 grub_max.
7815 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7816 * include/grub/misc.h (grub_min): Removed.
7817 (grub_max): Likewise.
7818
80662dbc
VS
78192012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7820
7821 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7822 direct.inode = 0.
7823
e6da1467
VS
78242012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7825
7826 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7827
b1ac4cb1
VS
78282012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7829
7830 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7831
b4bf7c3b
VS
78322012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7833
7834 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7835 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7836
8ee1101a
VS
78372012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7838
7839 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7840 rather than a hack for grub_strncasemap.
7841
78422012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7843
7844 Support multiple initrds
7845 Note: part of this was accidently committed in r3739.
7846
7847 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7848 initrd.
7849 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7850 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7851 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7852 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7853 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7854
4d1e2bc9
VS
78552012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7856
7857 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7858 disks with unknown size.
7859 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7860
75b49ebe
VS
78612012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7862
7863 Remove defines pertaining to arbitrary limits not affecting GRUB
7864 anymore.
7865
7866 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7867 (EXT2_MAX_SYMLINKCNT): Likewise.
7868 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7869 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7870 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7871 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7872 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7873 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7874 (DN_MAX_OBJECT_SHIFT): Likewise.
7875 (DN_MAX_OFFSET_SHIFT): Likewise.
7876 (DN_MAX_OBJECT): Likewise.
7877 (DNODES_PER_LEVEL_SHIFT): Likewise.
7878 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7879 (SPA_MAXBLOCKSIZE): Likewise.
7880 (SPA_BLOCKSIZES): Likewise.
7881 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7882 (MZAP_MAX_BLKSZ): Likewise.
7883
74a1dce7
VS
78842012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7885
7886 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7887 handle NULL appropriately.
7888 Remove MIN.
7889
30c7d3ce
VS
78902012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7891
7892 Fix efiemu.
7893
7894 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7895 cpu/types.h.
7896 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7897 * configure.ac: Fix efiemu check.
7898
3c76ea0c
VS
78992012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7902 grub_probe.
7903 Reported by: adamwill
7904
7e532280
SG
79052012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7906
7907 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7908
30492374
VS
79092012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7910
7911 Fix handling of wide characters in gfxterm.
7912
7913 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7914 (clear_char): Likewise.
7915 (paint_char): Skip code == NULL chars.
7916 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7917
e70cb72f
VS
79182012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7919
7920 * grub-core/normal/charset.c: Move comment to right place.
7921
5c827cf9
VS
79222012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7923
7924 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7925 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7926 (grub_affs_mount): Revert the correct version checking.
7927
53603892
VS
79282012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7929
7930 * docs/grub.texi (Unicode): Mention several other unsupported features.
7931
ff094b9b
VS
79322011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7935 case statements as compile-time one.
7936 (direct_read): Prevent spurious warnings.
7937 (grub_squash_read_data): Likewise.
7938
c029da8a
VS
79392011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7940
7941 Various squash4 fixes and LZO and XZ support.
7942
7943 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7944 Add xzembed source files.
7945 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7946 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7947 (grub_squash_inode): New subtype long_dir.
7948 (SQUASH_TYPE_LONG_DIR): New inode type.
7949 (COMPRESSION): New enum.
7950 (XZBUFSIZ): New const.
7951 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7952 (read_chunk): Use data->decompress.
7953 (zlib_decompress): New function.
7954 (lzo_decompress): Likewise.
7955 (xz_decompress): Likewise.
7956 (squash_mount): Set new data fields.
7957 (grub_squash_iterate_dir): Handle long dir.
7958 (squash_unmount): Free xzdec and xzbuf.
7959 (grub_squash_open): Check ino type.
7960 (direct_read): Stylistic fixes. Use data->decompress.
7961 (grub_squash_read_data): Likewise.
7962 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7963 (get_byte): Likewise.
7964 (grub_zlib_disk_read): Removed.
7965 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7966 (GRUB_POSIX_BOOL_DEFINED): New define.
7967 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7968 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7969 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7970 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7971
7a45a539
VS
79722011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7973
7974 Don't override more informative errors.
7975
7976 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7977 * grub-core/font/font.c (open_section): Likewise.
7978 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7979 filename. Don't override errors.
7980 (grub_cmd_openbsd_ramdisk): Don't override errors.
7981 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7982 (grub_cmd_initrd): Likewise.
7983 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7984 (grub_cmd_initrd): Likewise.
7985 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7986 (grub_cmd_linux): Likewise.
7987 (grub_cmd_initrd): Likewise.
7988 (grub_cmd_payload): Likewise.
7989 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7990 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7991 (grub_cmd_module): Likewise.
7992 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7993 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7994 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7995 (grub_cmd_xnu_mkext): Likewise.
7996 (grub_cmd_xnu_ramdisk): Likewise.
7997 (grub_xnu_check_os_bundle_required): Likewise.
7998 (grub_xnu_load_kext_from_dir): Likewise.
7999 (grub_cmd_xnu_kextdir): Likewise.
8000 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
8001
b2d004db
VS
80022011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8003
8004 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
8005 as 1024 in block size field. Found on one of my test images.
8006 Small optimisation while on it.
8007
ec000eac
VS
80082011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8009
8010 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
8011 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
8012 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
8013 performance fixes while on it.
8014 (grub_sfs_close): Fix memory leak while on it.
8015 (grub_sfs_label): Convert Latin1 to UTF-8.
8016
f50e1165
VS
80172011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8018
8019 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
8020 space to avoid overflows.
8021 (grub_hfs_label): Convert from macroman to UTF-8.
8022
2ae254de
VS
80232011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8024
8025 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
8026
0108f491
VS
80272011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8028
8029 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
8030
f45f5f89
VS
80312011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8032
8033 * unicode: Import Unicode 6.0 data.
8034
4d8c4765
VS
80352011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8036
63fa8ef9
VS
8037 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
8038 outside of range.
8039
80402011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8041
8042 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
8043
8044 * include/grub/charset.h (grub_getend): New function.
8045 * grub-core/script/function.c (grub_script_function_find): Use
8046 grub_getend.
8047 * grub-core/normal/completion.c (add_completion): Likewise.
8048
f3cb4a4e
VS
80492011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8050
8051 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
8052 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
8053 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
8054 (GRUB_UNICODE_TAG_END): Likewise.
8055 (GRUB_UNICODE_LAST_VALID): Likewise.
8056
5da8dbc5
VS
80572011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8058
8059 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
8060 len and make it smaller. All users updated.
8061 * util/import_unicode.py: Put length and not end character.
8062 Check length.
8063
8569f13d
VS
80642011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8065
8066 Make better Unicode-compliant and unify some UTF-8 code pathes.
8067
8068 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
8069 valid character.
8070 (grub_is_valid_utf8): Use grub_utf8_process.
8071 Check resulting code range.
8072 (grub_utf8_to_ucs4): Use grub_utf8_process.
8073 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
8074 valid character.
8075
cc4fddf5
VS
80762011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8077
8078 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
8079
bbc47747
VS
80802011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 * docs/grub.texi (Filesystems): Mention AFS.
8083
f63d6bf4
VS
80842011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8085
8086 * docs/grub.texi (Filesystems): Clarify restrictions.
8087 (Regexp): Mention non-Unicode regexp behaviour.
8088 (Other): Mention non-Unicode matching behaviour.
8089
74bbf0db
VS
80902011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8091
f63d6bf4 8092 Make HFS implementation use MacRoman.
74bbf0db
VS
8093
8094 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8095 (macroman): New const array.
8096 (macroman_to_utf8): New function.
8097 (utf8_to_macroman): Likewise.
8098 (grub_hfs_find_dir): Use utf8_to_macroman.
8099 (grub_hfs_dir): Use macroman_to_utf8.
8100 Set case_insensitive.
8101
4ea0316e
VS
81022011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8103
8104 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8105
d3c13cbd
VS
81062011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8107
8108 Integrate hints into autogeneration scripts.
8109
8110 * docs/grub.texi (Filesystems): Add a hostdisk example.
8111 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8112 (grub-probe): Add ofpath.
8113 * gentpl.py: Remove group nosparc64.
8114 * grub-core/commands/search.c (cache_entry): New struct.
8115 (cache): New var.
8116 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8117 * grub-core/commands/search_wrap.c (options): Add platform-specific
8118 hint options.
8119 (grub_cmd_search): Handle platform-specific hints.
8120 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8121 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8122 (grub_util_biosdisk_data): Likewise.
8123 (grub_util_biosdisk_open): Set device_map.
8124 (read_device_map): Handle "" as indication of no map.
8125 Set device_map.
8126 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8127 (grub_util_biosdisk_get_compatibility_hint): New function.
8128 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8129 * include/grub/emu/hostdisk.h
8130 (grub_util_biosdisk_get_compatibility_hint): New proto.
8131 * util/grub-install.in: Don't call grub-mkdevicemap.
8132 Add platform-specific hint to load.cfg.
8133 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8134 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8135 hints. Set root preliminary to compatibility hint, not to OS name.
8136 * util/grub-probe.c (PRINT_*): Add hints.
8137 (print): Make static.
8138 (escape_of_path): New function.
8139 (guess_bios_drive): Likewise.
8140 (guess_efi_drive): Likewise.
8141 (guess_baremetal_drive): Likewise.
8142 (print_full_name): Likewise.
8143 (probe): Handle hints.
8144 (main): Likewise.
8145 * util/ieee1275/devicemap.c: Removed.
8146 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8147 updated.
8148 (grub_util_devname_to_ofpath): Return NULL on failure.
8149
8150 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8151 resource leak.
8152 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8153
8154 * po/POTFILES.in: Regenerated.
8155
8156 Allow purely long options
8157
8158 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8159 (SHORT_ARG_USAGE): Likewise.
8160 (grub_arg_show_help): Compare opt with help_options.
8161 (parse_option): Receive opt as argument. If makes big simplificatons.
8162 All users updated
8163
00ce2df3
VS
81642011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8165
8166 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8167 Restructure to avoid warning.
8168
e77e325f
VS
81692011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8170
8171 * util/grub-install.in: Account for possible escaped comma in device
8172 name.
8173
165099ea
VS
81742011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8175
8176 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8177 channel.
8178
ce4a999d
VS
81792011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8180
8181 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8182 allocation and zero-setting.
8183 (grub_ieee1275_get_devname): Check that alias is complete.
8184
379586ad
VS
81852011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8186
8187 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8188 unaligned segments.
8189
9197b0ad
VS
81902011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8191
8192 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8193 prefix.
8194 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8195 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8196 Add ieee1275 prefix.
8197
edddb7f9
VS
81982011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8199
8200 * docs/grub.texi (Filesystems): Update.
8201
a1a8b1b9
VS
82022011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8203
8204 Support odc, newc and bigendian cpio formats.
8205
8206 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8207 * grub-core/Makefile.core.def (newc): New module.
8208 (odc): Likewise.
8209 (cpio_be): Likewise.
8210 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8211 (MAGIC): Likewise.
8212 (MAGIC2): Likewise.
8213 (head) [MODE_ODC]: Adapt for the format.
8214 (head) [MODE_NEWC]: Likewise.
8215 (head) [!MODE_*]: Write fields of interest as arrays.
8216 (MAGIC_USTAR): Removed.
8217 (read_number) [MODE_NEWC]: Change to hex.
8218 (read_number) [!MODE_*]: Parse binary arrays.
8219 (grub_cpio_find_file): Factor out the code for better structure and
8220 always use read_number.
8221 (grub_cpio_mount): Use MAGIC and MAGIC2.
8222 (grub_cpio_dir): Exit on first hook non-0 return.
8223 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8224 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8225 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8226 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8227 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8228 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8229 * grub-core/fs/newc.c: New file.
8230 * grub-core/fs/odc.c: Likewise.
8231 * grub-core/fs/cpio_be.c: Likewise.
8232
58eba9ee
VS
82332011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8234
8235 Fix handling of tar numbers occupying the whole field.
8236
8237 * grub-core/fs/cpio.c (read_number): New function.
8238 (grub_cpio_find_file): Use read_number instead of strtoull.
8239
a54a0e12
VS
82402011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8241
8242 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8243 occupying the whole field size.
8244
a6120aca
LA
82452011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8246
8247 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8248
a93964ce
VS
82492011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8250
8251 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8252
3ea1ca46
SG
82532011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8254
8255 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8256 TARGET_IMG_LDFLAGS.
8257
b87f7ef2
VS
82582011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8259
8260 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8261 (mountinfo_entry): Increase the field size to take escaping into
8262 account.
8263 (find_root_device_from_libzfs): Add one byte to size of strings for
8264 security.
8265
62092395
VS
82662011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8267
8268 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8269 an assert.
8270 * util/grub-setup.c (setup): Likewise.
8271
1f0b1a77
VS
82722011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8273
8274 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8275 _LzmaDecodeA.
8276
8eba9997
VS
82772011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8278
8279 * docs/grub.texi (Internationalisation): New section.
8280
dd0c91e9
VS
82812011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8282
8283 * docs/grub.texi (Loopback booting): New section.
8284
82852011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
8286
8287 * util/grub-mkstandalone.in: Fix minor typo errors.
8288
198e150a
VS
82892011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8290
8291 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8292
8293 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8294 net/icmp.c and net/icmp6.c.
8295 (http): New module.
8296 (priority_queue): Likewise.
8297 * grub-core/io/bufio.c: Rewritten.
8298 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8299 TYPE_WITH_CONFIGFILE_OPTION.
8300 (legacy_commands): Add bootp and dhcp.
8301 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8302 (grub_legacy_parse): Likewise.
8303 * grub-core/lib/priority_queue.c: New file.
8304 * grub-core/net/arp.c: Add missing license header.
8305 (arp_find_entry): Removed.
8306 (arp_find_entry): Likewise.
8307 (grub_net_arp_resolve): Rename to ...
8308 (grub_net_arp_send_request): ...this.
8309 (grub_net_arp_receive): New card argument.
8310 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8311 Set router and DNS server.
8312 (grub_net_configure_by_dhcp_ack): Handle routing information.
8313 (grub_cmd_bootp): Set checksum.
8314 (grub_bootp_init): Remove net_dhcp.
8315 * grub-core/net/dns.c: New file.
8316 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8317 completion.
8318 (get_card_packet): Handle allocation.
8319 (grub_efinet_findcards): Set mtu.
8320 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8321 (get_card_packet): Handle allocation.
8322 (emucard): Set mtu.
8323 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8324 (GRUB_MOD_INIT): Set mtu.
8325 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8326 mtu.
8327 (get_card_packet): Handle allocation.
8328 (grub_ofnet_findcards): Set mtu.
8329 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8330 assert.
8331 (grub_net_recv_ethernet_packet): Handle IPv6.
8332 * grub-core/net/http.c: New file.
8333 * grub-core/net/icmp.c: Likewise.
8334 * grub-core/net/icmp6.c: Likewise.
8335 * grub-core/net/ip.c (ip6addr): New type.
8336 (ip6hdr): Likewise.
8337 (reassemble): Likewise.
8338 (cmp): New function.
8339 (reassembles): New variable.
8340 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8341 (id): New variable.
8342 (send_fragmented): New function.
8343 (grub_net_send_ip_packet): Rename to ...
8344 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8345 Handle non-UDP.
8346 (grub_net_recv_ip_packets): Rename to ...
8347 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8348 (free_rsm): New function.
8349 (free_old_fragments): Likewise.
8350 (grub_net_recv_ip4_packets): New function.
8351 (grub_net_send_ip6_packet): Likewise.
8352 (grub_net_send_ip_packet): Likewise.
8353 (grub_net_recv_ip6_packets): Likewise.
8354 (grub_net_recv_ip_packets): Likewise.
8355 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8356 (LINK_LAYER_CACHE_SIZE): New const.
8357 (link_layer_find_entry): New function.
8358 (grub_net_link_layer_add_address): Likewise.
8359 (grub_net_link_layer_resolve_check): Likewise.
8360 (grub_net_link_layer_resolve): Likewise.
8361 (grub_net_ipv6_get_slaac): Likewise.
8362 (grub_net_ipv6_get_link_local): Likewise.
8363 (grub_cmd_ipv6_autoconf): Likewise.
8364 (parse_ip): Handle one number representation.
8365 (parse_ip6): New functoion.
8366 (match_net): Handle IPv6.
8367 (grub_net_resolve_address): Handle IPv6 and DNS.
8368 (grub_net_resolve_net_address): Handle IPv6.
8369 (route_cmp): New function.
8370 (grub_net_route_address): Find best route.
8371 (grub_net_addr_to_str): Handle IPv6.
8372 (grub_net_addr_cmp): New function.
8373 (grub_net_add_addr): Register local route.
8374 (print_net_address): Handle net address.
8375 (grub_net_poll_cards): Retransmit TCP.
8376 (grub_net_poll_cards_idle_real): Likewise.
8377 (have_ahead): New function.
8378 (grub_net_seek_real): Use underlying seek.
8379 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8380 * grub-core/net/tcp.c: New file.
8381 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8382 (cmp): New function.
8383 (ack): Likewise.
8384 (tftp_receive): Handle unordered input.
8385 (destroy_pq): New function.
8386 (tftp_close): Close pq.
8387 * grub-core/net/udp.c: Put missing license header.
8388 (grub_net_udp_socket): New function.
8389 (udp_socket_register): Likewise.
8390 (grub_net_udp_close): Likewise.
8391 (grub_net_recv_udp_packet): Check checksum.
8392 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8393 * include/grub/misc.h (grub_memchr): New function.
8394 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8395 (grub_net_card_driver): Return buf in recv.
8396 (grub_net_slaac_mac_list): New struct.
8397 (grub_network_level_protocol_id): Add ipv6.
8398 (grub_net_network_level_addr): Likewise.
8399 (grub_net_network_level_net_addr): Likewise.
8400 (grub_net_app_protocol): Add seek.
8401 (grub_net_socket): Removed.
8402 (grub_net_sockets): Likewise.
8403 (grub_net_socket_register): Likewise.
8404 (grub_net_socket_unregister): Likewise.
8405 (FOR_NET_SOCKETS): Likewise.
8406 (grub_net_add_addr): Add const.
8407 (GRUB_NET_BOOTP_*): New enum.
8408 (grub_net_addr_cmp): New proto.
8409 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8410 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8411 (grub_net_hwaddr_to_str): NEw proto.
8412 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8413 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8414 (grub_dns_init): New proto.
8415 (grub_dns_fini): Likewise.
8416 (grub_net_tcp_retransmit): Likewise.
8417 (grub_net_link_layer_add_address): Likewise.
8418 (grub_net_link_layer_resolve_check): Likewise.
8419 (grub_net_link_layer_resolve): Likewise.
8420 (grub_net_dns_lookup): Likewise.
8421 (grub_net_add_dns_server): Likewise.
8422 (grub_net_remove_dns_server): Likewise.
8423 (GRUB_NET_TRIES): New const.
8424 (GRUB_NET_INTERVAL): Likewise.
8425 * include/grub/net/arp.h: Mostly rewritten.
8426 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8427 * include/grub/net/ip.h: Mostly rewritten.
8428 * include/grub/net/netbuff.h: Indent.
8429 * include/grub/net/tcp.h: New file.
8430 * include/grub/net/udp.h: Mostly rewritten.
8431 * include/grub/priority_queue.h: New file.
8432 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8433 (grub_swap_bytes64_compile_time): Likewise.
8434 (grub_cpu_to_be16_compile_time): Likewise.
8435 (grub_cpu_to_be32_compile_time): Likewise.
8436 (grub_cpu_to_be64_compile_time): Likewise.
8437 (grub_be_to_cpu64_compile_time): Likewise.
8438
215c1800
VS
84392011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8440
8441 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8442 UINT_TO_PTR with cast.
8443
c17e546c
VS
84442011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8445
8446 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8447 don't use them.
8448
ff6b18b6
VS
84492011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8450
8451 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8452 already there.
8453
70ffcc93
VS
84542011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8455
8456 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8457 confusing ipxe.
8458
e5f4d260
VS
84592011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8460
8461 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8462 Add missing const attribute.
8463 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8464 Likewise.
8465 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8466 Likewise.
8467
8e54b4b7
VS
84682011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8469
8470 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8471 misaligned access.
8472 (serpent_setkey): Likewise.
8473 (serpent_encrypt_internal): Likewise.
8474 (serpent_decrypt_internal): Likewise.
8475 (serpent_encrypt): Don't put an alignment-increasing cast.
8476 (serpent_decrypt): Likewise.
8477 (serpent_test): Likewise.
8478
813c0a2b
VS
84792011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8480
8481 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8482
f2b60fbd
VS
84832011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8484
8485 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8486
8487 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8488 grub_addr_t casts.
8489 (PTR_TO_UINT64): Likewise.
8490 (PTR_TO_UINT32): Likewise.
8491
5ef5c511
VS
84922011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8493
8494 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8495 because of stack.
8496 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8497 limit.
8498
c476e6df
VS
84992011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8500
8501 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8502 text_width > available width a bit more gracefully.
8503
384ad7cc
VS
85042011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8505
8506 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8507 current address calculation.
8508
96f8caf8
VS
85092011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8510
8511 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8512 stack.
8513 (encode_block): Likewise.
8514
276b7a8b
VS
85152011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8516
8517 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8518 certainety.
8519
e3fd394a
VS
85202011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8521
8522 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8523 non-RS part to avoid RS messing with GDT.
8524 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8525 Increase to suit in realmode routines.
8526
85272011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8528
8529 * grub-core/kern/i386/realmode.S: Increase alignment.
8530 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8531
ee9c2e7a
VS
85322011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8533
8534 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8535 be deterministic.
8536 (syndroms): Compute 0 syndrom.
8537 (rs_recover): Use 0 syndrom.
8538
7a7f7cc9
VS
85392011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8540
8541 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8542
a14b16d1
VS
85432011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8544
8545 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8546 brackets.
8547
9f59e9fc
VS
85482011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8549
ca1b552c
VS
8550 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8551 account.
8552 (get_top_pad): Likewise.
8553 (get_right_pad): Likewise.
8554 (get_bottom_pad): Likewise.
8555
85562011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8557
8558 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 8559
e739d698
VS
85602011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8561
8562 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8563 attribute as the structure isn't guaranteed to be properly aligned.
8564 (grub_efi_pci_device_path): Likewise.
8565 (grub_efi_pccard_device_path): Likewise.
8566 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8567 specify the size of `memory_type'.
8568 (grub_efi_vendor_device_path): Likewise.
8569 (grub_efi_controller_device_path): Likewise.
8570 (grub_efi_acpi_device_path): Likewise.
8571 (grub_efi_expanded_acpi_device_path): Likewise.
8572 (grub_efi_atapi_device_path): Likewise.
8573 (grub_efi_scsi_device_path): Likewise.
8574 (grub_efi_fibre_channel_device_path): Likewise.
8575 (grub_efi_1394_device_path): Likewise.
8576 (grub_efi_usb_device_path): Likewise.
8577 (grub_efi_usb_class_device_path): Likewise.
8578 (grub_efi_i2o_device_path): Likewise.
8579 (grub_efi_mac_address_device_path): Likewise.
8580 (grub_efi_ipv4_device_path): Likewise.
8581 (grub_efi_ipv6_device_path): Likewise.
8582 (grub_efi_infiniband_device_path): Likewise.
8583 (grub_efi_uart_device_path): Likewise.
8584 (grub_efi_vendor_messaging_device_path): Likewise.
8585 (grub_efi_hard_drive_device_path): Likewise.
8586 (grub_efi_cdrom_device_path): Likewise.
8587 (grub_efi_vendor_media_device_path): Likewise.
8588 (grub_efi_file_path_device_path): Likewise.
8589 (grub_efi_protocol_device_path): Likewise.
8590 (grub_efi_piwg_device_path): Likewise.
8591 (grub_efi_bios_device_path): Likewise.
8592
cb8f88ea
VS
85932011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8596 (grub_ucs4_to_utf8_alloc): Likewise.
8597 (grub_ucs4_to_utf8): Likewise.
8598 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8599 (grub_ucs4_to_utf8_alloc): Likewise.
8600
309e5352
VS
86012011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 AFFS never uses unicode.
8604
8605 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8606 (grub_latin1_to_utf8): New inline function.
8607 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8608
e7987e1b
VS
86092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8610
8611 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8612 overflow.
8613
efc2616e
VS
86142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8615
8616 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8617 (grub_squash_dirent_header): Likewise.
8618 (read_chunk): Don't double swap.
8619 (grub_squash_iterate_dir): Fix swap sizes.
8620
3c349f5a
VS
86212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8622
8623 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8624
b453412d
VS
86252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8626
8627 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8628 (grub_hfs_iterate_dir): Likewise.
8629
12e9d4d1
VS
86302011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8631
8632 Fix video on platforms where unaligned access is forbidden.
8633 Make several optimisations while on it.
8634
8635 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8636 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8637 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8638 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8639 Disable.
8640 (grub_video_fbblit_replace_16bit_1bit):
8641 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8642 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8643 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8644 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8645 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8646 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8647 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8648 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8649 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8650 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8651 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8652 (grub_video_fbblit_replace_index_RGB888): Likewise.
8653 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8654 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8655 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8656 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8657 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8658 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8659 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8660 Disable.
8661 (grub_video_fbblit_blend_XXX565_1bit):
8662 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8663 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8664 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8665 void *.
8666 * grub-core/video/fb/video_fb.c (common_blitter)
8667 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8668 (grub_video_fb_create_render_target_from_pointer)
8669 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8670 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8671 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8672 definition.
8673 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8674
ace96609
VS
86752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8676
8677 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8678 HH22 and HM10 relocations.
8679
fd261d73
VS
86802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8683
e59b7857
VS
86842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8685
8686 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8687 allocation succeeded.
8688
9b4baaa4
VS
86892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8690
8691 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8692 argument a u8 pointer. All users updated.
8693 Handle unaligned buffers.
8694
dc713193
VS
86952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8696
8697 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8698 add_part to workaround compiler bug.
8699
30dd48c2
VS
87002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8701
8702 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8703
0c6087a8
VS
87042011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8707 Reserve alignment invariants.
8708 (grub_multiboot_load): Likewise.
8709 (retrieve_video_parameters): Likewise.
8710 (grub_multiboot_make_mbi): Likewise.
8711
c2e77777
VS
87122011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8713
8714 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8715 incorrect pointer.
8716
b70b6d11
VS
87172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8718
8719 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8720 (grub_pata_pio_write): Likewise.
8721
02a2bf83
VS
87222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8723
8724 Add noreturn attributes and remove unreachable code.
8725
8726 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8727 code.
8728 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8729 code. Mark as noreturn.
8730 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8731 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8732 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8733 unreachable code.
8734 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8735 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8736 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8737 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8738 * include/grub/kernel.h (grub_main): Mark as noreturn.
8739 * include/grub/reader.h (grub_rescue_run): Likewise.
8740
2019d09e
VS
87412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8742
8743 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8744 redundant declaration.
8745
d1c501ee
VS
87462011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8747
8748 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8749 redundant declaration.
8750 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8751
61664420
VS
87522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8753
8754 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8755 to ensure alignment.
8756 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8757 alignment. Ensure tmp alignment.
8758 (grub_cmd_hdparm): Ensure buf alignment.
8759 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8760 to ensure alignment.
8761 (grub_ata_dumpinfo): Ensure text alignment.
8762 (grub_atapi_identify): Preserve alignment invariant.
8763 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8764
0d51ee20
VS
87652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8766
8767 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8768 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8769 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8770 * include/grub/misc.h (grub_reboot)
8771 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8772 (grub_halt) [__mips__]: Likewise.
8773
753ef8c1
VS
87742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8777 Remove redundant declaration.
8778 (grub_mmap_get_post64): Likewise.
8779 (grub_mmap_get_upper): Likewise.
8780 (grub_mmap_get_lower): Likewise.
8781
85c85365
VS
87822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8783
8784 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8785 uint32_t * to ensure alignment.
8786 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8787
a23f2cc4
VS
87882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8789
93018f64
VS
8790 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8791 uint16_t * to ensure alignment.
8792 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8793 alignment.
8794
87952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8796
8797 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
8798 to ensure alignment.
8799 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8800
58acccd6
VS
88012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8802
8803 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8804 Handle unaligned pointers.
8805 (u32at): Likewise.
8806 (u64at): Likewise.
8807 (fixup): Use byte access instead of v16at.
8808 (find_attr): Fix imporper usage of v32at.
8809 (read_data): Likewise.
8810 (list_file): Handle byte-swapping and unaligned strings.
8811 (grub_ntfs_label): Likewise.
8812
9b05cad7
VS
88132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8816 as it's not necessarily aligned.
8817
b3950b84
VS
88182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8819
8820 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8821 redundant declaration.
8822 (grub_serial_init): Likewise.
8823 (grub_terminfo_init): Likewise.
8824
fcd232b7
VS
88252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8828 function.
8829 (ZAP_HASH_IDX): Likewise.
8830 (ZAP_LEAF_HASH_SHIFT): Likewise.
8831 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8832 (LEAF_HASH): Likewise.
8833 (ZAP_LEAF_NUMCHUNKS): Likewise.
8834 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8835 alignment invariants. Return pointer. All users updated.
8836 (ZAP_LEAF_ENTRY): Make into inline function.
8837 (NBBY): Removed.
8838 (xor): LIkewise.
8839 (xor_out): Use grub_crypto_xor.
8840 (dnode_get_path): Use grub_get_unaligned.
8841 (nvlist_find_value): Likewise.
8842 (grub_zfs_nvlist_lookup_uint64): Likewise.
8843 (grub_zfs_nvlist_lookup_string): Likewise.
8844 (get_nvlist_size): Likewise.
8845 (grub_zfs_open): Likewise.
8846 (fill_fs_info): Likewise.
8847 (grub_zfs_dir): Likewise.
8848 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8849 alignment invariants.
8850 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8851 necessarily aligned.
8852
f138623a
VS
88532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8856
564840dc
VS
88572011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8860 arithmetic to conserve alignment invariants.
8861
9b40df20
VS
88622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8863
8864 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8865 redundant declaration.
8866 (grub_efiemu_mm_obtain_request): Likewise.
8867 (grub_efiemu_prepare): Likewise.
8868
d1c930f9
VS
88692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8870
8871 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8872 to match types.
8873
4c5f3056
VS
88742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8875
8876 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8877 case of aunaligned recptr.
8878 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8879 alignment.
8880 (grub_hfsplus_btree_search): Handle unaligned index.
8881
728cba91
VS
88822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8883
8884 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8885 to get freetag and skip.
8886
eb561f31
VS
88872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8888
8889 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8890 array.
8891 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8892 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8893
20993fbb
VS
88942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8897 name for checksum and fix allocation algorithm.
8898
1f313b94
VS
88992011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 * include/grub/types.h (grub_properly_aligned_t): New type.
8902 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8903 (grub_get_unaligned16): Add explicit casts.
8904 (grub_get_unaligned32): Likewise.
8905 (grub_get_unaligned64): Likewise.
8906 (grub_set_unaligned16): New function.
8907 (grub_set_unaligned32): Likewise.
8908
47ae27ec
VS
89092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8912
78c2cd1c
VS
89132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8914
8915 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8916 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8917 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8918
53072f9b
VS
89192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8920
8921 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8922 conditionals.
8923
055dc239
VS
89242011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8927 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8928
496bd074
VS
89292011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8930
8931 Unify and improve RAID and crypto xor.
8932
8933 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8934 changed to grub_crypto_xor
8935 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8936 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8937 Use bigger types when possible.
8938
ef6e4335
VS
89392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 * grub-core/disk/raid.c (scan_devices): Fix condition.
8942
5d048bf2
VS
89432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8946 Make name a const ptr.
8947
ee533335
VS
89482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8949
8950 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8951 first argument a const pointer.
8952 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8953 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8954 proto.
8955 (grub_children_iterate): Likewise.
8956 (grub_machine_mmap_iterate): Remove redundant declaration.
8957
cc8f3668
VS
89582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8959
8960 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8961 (grub_cmd_acpi) [!x86]: Disable EBDA.
8962
c5fc563a
VS
89632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8964
8965 Enable UTF8 in gnulib regexp.
8966
8967 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8968 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8969 (isupper): Use grub_isupper.
8970 (isascii): New inline function.
8971 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8972 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8973 * grub-core/normal/charset.c (grub_utf8_process): New function.
8974 (grub_utf8_to_utf16): Use grub_utf8_process.
8975 (grub_encode_utf8_character): New function.
8976 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8977 * include/grub/charset.h (grub_utf8_process): New declaration.
8978 (grub_encode_utf8_character): Likewise.
8979 * include/grub/misc.h (grub_islower): New inline function.
8980 (grub_isupper): Likewise.
8981 (grub_strchrsub): Moved down to fix the definitions.
8982
0af2346f
VS
89832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8984
8985 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8986 specification.
8987
74dbd244
VS
89882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 * include/grub/loader.h (grub_loader_register_preboot_hook):
8991 Use struct preboot * and not void * for handle. All users updated.
8992 (grub_loader_unregister_preboot_hook): Likewise.
8993
1bc8f60d
VS
89942011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8997 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8998 UTF-16-BE. All users updated.
8999 (grub_hfsplus_cmp_catkey): Fix unicode handling.
9000 (grub_hfsplus_iterate_dir): Likewise.
9001 (grub_hfsplus_label): Likewise.
9002
48d6e456
VS
90032011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
9004
9005 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
9006
bf3a3857
VS
90072011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
9008
9009 Add missing const qualifiers.
9010
9011 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
9012 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
9013 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
9014 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
9015 (grub_lvm_check_flag): Likewise.
9016 * grub-core/efiemu/i386/coredetect.c
9017 (grub_efiemu_get_default_core_name): Likewise
9018 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9019 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
9020 * grub-core/fs/ntfs.c (fixup): Likewise.
9021 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
9022 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
9023 (fzap_lookup): Likewise.
9024 (zap_lookup): Likewise.
9025 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
9026 * grub-core/lib/legacy_parse.c (check_option): Likewise.
9027 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
9028 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
9029 (grub_freebsd_add_meta_module): Likewise.
9030 (grub_cmd_freebsd_module): Likewise.
9031 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
9032 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
9033 (grub_xnu_writetree_get_size): Likewise.
9034 (grub_xnu_writetree_toheap_real): Likewise.
9035 (grub_xnu_find_key): Likewise.
9036 (grub_xnu_create_key): Likewise.
9037 (grub_xnu_create_value): Likewise.
9038 (grub_xnu_register_memory): Likewise.
9039 (grub_xnu_check_os_bundle_required): Likewise.
9040 (grub_xnu_scan_dir_for_kexts): Likewise.
9041 (grub_xnu_load_kext_from_dir): Likewise.
9042 * grub-core/normal/color.c (color_list): Likewise.
9043 * grub-core/normal/completion.c (current_word): Likewise.
9044 * grub-core/normal/menu_entry.c (insert_string): Likewise.
9045 * grub-core/term/serial.c (grub_serial_find): Likewise.
9046 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
9047 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
9048 Likewise.
9049 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
9050 (grub_freebsd_add_meta_module): Likewise.
9051 * include/grub/lib/arg.h (grub_arg_option): Likewise.
9052 * include/grub/net.h (grub_net_card_driver): Likewise.
9053 (grub_net_card): Likewise.
9054 (grub_net_app_protocol): Likewise.
9055 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
9056 * include/grub/serial.h (grub_serial_find): Likewise.
9057 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
9058 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
9059 (grub_xnu_create_value): Likewise.
9060 (grub_xnu_find_key): Likewise.
9061 (grub_xnu_scan_dir_for_kexts): Likewise.
9062 (grub_xnu_load_kext_from_dir): Likewise.
9063
9064 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
9065 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
9066 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
9067 Moved from here ...
9068 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
9069
112b4837
CW
90702011-11-28 Colin Watson <cjwatson@ubuntu.com>
9071
9072 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
9073
49e891ac
VS
90742011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
9075
9076 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
9077 (read_device): Fix size calculation.
9078
fd258e5c
RM
90792011-11-25 Robert Millan <rmh@gnu.org>
9080
9081 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
9082 (find_root_device_from_libzfs): Add zpool output parser to be used
9083 as fallback when libzfs isn't available.
9084
78845dc2
SG
90852011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
9086
9087 * po/Makefile.in.in: Add missing escape-continuation.
9088
adac5211
VS
90892011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9090
9091 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9092
10b64f1c
VS
90932011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9096
bb416954
VS
90972011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9098
9099 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9100
bdfe9eeb
VS
91012011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9102
9103 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9104
581ffa8a
VS
91052011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9106
9107 * grub-core/lib/adler32.c: Add missing license specification.
9108 * grub-core/lib/crc64.c: Likewise.
9109 * grub-core/loader/i386/pc/plan9.c: Likewise.
9110 * grub-core/partmap/plan.c: Likewise.
9111
2536cf64
LK
91122011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9113
9114 Add facility to debug GRUB with gdb under qemu.
9115
9116 * grub-core/gdb_grub.in: New file.
9117 * grub-core/gmodule.pl.in: Likewise.
9118 * grub-core/Makefile.core.def (gmodule.pl): New script.
9119 (gdb_grub): Likewise.
9120
bc108a4a
VS
91212011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 * util/grub-mount.c (argp_parser): Accept relative pathes.
9124 * util/grub-fstest.c (argp_parser): Likewise.
9125
111c1778
VS
91262011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9127
9128 Plan9 support.
9129
9130 * Makefile.util.def (libgrubmods): Add
9131 grub-core/partmap/plan.c.
9132 * docs/grub.texi: Notice Plan9 support.
9133 * grub-core/Makefile.core.def (plan9): New module.
9134 (part_plan): Likewise.
9135 * grub-core/loader/i386/pc/plan9.c: New file.
9136 * grub-core/partmap/plan.c: Likewise.
9137 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9138 define.
9139 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9140 * include/grub/mm.h (grub_extend_alloc): New inline function.
9141
c30be3b6
VS
91422011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9143
9144 Make Reed-Solomon faster by using power of generator representation of
9145 GF(256)*.
9146
9147 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9148 (gf_double_t): Likewise.
9149 (gf_invert): Removed.
9150 (gf_powx): New array.
9151 (gf_powx_inv): Likewise.
9152 (scratch): Move higher.
9153 (gf_reduce): Removed.
9154 (gf_mul): Use powx.
9155 (gf_invert): Likewise.
9156 (init_inverts): Replaced with ...
9157 (init_powx): ...this. All users updated.
9158 (pol_evaluate): Replace multiplications with additions.
9159 (rs_encode): Likewise.
9160 (gauss_eliminate): Call gf_invert.
9161 (grub_reed_solomon_add_redundancy): Call init_powx.
9162 (grub_reed_solomon_recover): Call init_powx unconditionally.
9163
fa5aeffc
VS
91642011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9167
a346b81c
VS
91682011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9169
9170 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9171 disk->partiton for safety.
9172
d89ee414
VS
91732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9174
9175 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9176 Fix a memory leak.
9177 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9178
91ee7b6d
VS
91792011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9180
9181 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9182
91e5a33d
VS
91832011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9184
9185 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9186
9edd7be2
VS
91872011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 Fix spaces handling in proc/self/mountinfo.
9190
9191 * util/getroot.c (unescape): New function.
9192 (grub_find_root_device_from_mountinfo): Use unescape.
9193
ba102053
VS
91942011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 Support ZFS embedding.
9197
9198 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9199 (grub_zfs_fs): Register grub_zfs_embed.
9200
aa94b870
VS
92012011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9202
9203 Fix MIPS compilation.
9204
9205 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9206 * include/grub/offsets.h: Rename decompressor fields from
9207 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9208 * util/grub-mkimage.c (image_targets): Use new names.
9209
5fbdac14
VS
92102011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9211
9212 Defer multiboot device parsing until we're in compressed part.
9213
9214 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9215 bsd_part. setdevice has fallen into disuse.
9216 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9217 (bsd_part): Likewise.
9218 (boot_dev): New variable.
9219 (multiboot_trampoline): Don't parse multiboot device.
9220 Pass multiboot device in %edx.
9221 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9222 grub_boot_device.
9223 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9224 Likewise.
9225 * grub-core/kern/i386/pc/startup.S: Save edx.
9226 (grub_boot_drive): Removed.
9227 (grub_install_dos_part): Likewise.
9228 (grub_install_bsd_part): Likewise.
9229 (grub_boot_device): New variable.
9230 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9231 (grub_install_bsd_part): Likewise.
9232 (grub_boot_drive): Likewise.
9233 (grub_boot_device): New variable.
9234 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9235 Removed.
9236 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9237 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9238 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9239 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9240 * util/grub-install.in: Remove redundant condition.
9241
691cbb58
VS
92422011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 Fix bug introduced by previous commit.
9245
9246 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9247
60240b8b
VS
92482011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9249
9250 Use decompressors framework on i386-pc. It increases core size
9251 by 46 bytes but improves compatibility and maintainability.
9252
9253 * grub-core/Makefile.core.def (lzma_decompress): New image.
9254 (kernel): Add i386_pc_ldflags.
9255 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9256 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9257 to real_to_prot, prot_to_real and device info.
9258 * include/grub/offsets.h: Renamed decompressor offsets.
9259 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9260 (image_target_desc): Remove raw_size and rename decompressor fields.
9261 (compress_kernel): Handle lzma.
9262 (generate_image): Handle decompressors on i386-pc.
9263
e9d3421c
VS
92642011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9265
9266 * configure.ac: Add -fno-asynchronous-unwind-tables.
9267
2b23074a
VS
92682011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9269
9270 Move assembly code to C by using intwrap. It increases core size
9271 by 88 bytes but improves compatibility and maintainability.
9272
9273 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9274 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9275 ... here. Translated to C.
9276 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9277 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9278 ... here. Translated to C.
9279 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9280 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9281 ... here. Translated to C.
9282 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9283 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9284 ... here. Translated to C.
9285 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9286 * grub-core/term/i386/pc/console.c (grub_console_cls):
9287 ... here. Translated to C.
9288 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9289 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9290 ... here. Translated to C.
9291 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9292 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9293 Translated to C.
9294 * grub-core/term/i386/pc/console.c (int10_9): New function.
9295 (grub_console_putchar): Likewise.
9296 * include/grub/i386/pc/console.h: Removed the not anymore shared
9297 functions.
9298
678f4b67
VS
92992011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9300
9301 Move grub_chainloader_real_boot out of the kernel.
9302
9303 * grub-core/Makefile.am: Remove machine/loader.h.
9304 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9305 Removed.
9306 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9307 variable.
9308 (grub_relocator16_keep_a20_enabled): Likewise.
9309 (grub_relocator16_boot): Fill new variables.
9310 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9311 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9312 relocator.
9313 (grub_chainloader_unload): Likewise.
9314 (grub_chainloader_cmd): Likewise.
9315 * include/grub/i386/pc/loader.h: Removed.
9316 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9317 and esi. All initialisers updated.
9318
4626edf6
VS
93192011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
93202011-11-12 Colin Watson <cjwatson@ubuntu.com>
9321
9322 * Makefile.util.def (grub-mount): New util.
9323 * .bzrignore: Add grub-mount.
9324 * configure.ac: Check for fuse and enable grub-mount if available.
9325 * docs/man/grub-mount.h2m: New file.
9326 * util/grub-mount.c: Likewise.
9327
10f0117b
VS
93282011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 * grub-core/commands/efi/fixvideo.c: Gettextize.
9331 * grub-core/commands/hashsum.c: Likewise.
9332 * grub-core/commands/i386/cmostest.c: Likewise.
9333 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9334 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9335 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9336 * grub-core/commands/lsmmap.c: Likewise.
9337 * grub-core/commands/menuentry.c: Likewise.
9338 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9339 * grub-core/commands/setpci.c: Likewise.
9340 * grub-core/loader/i386/bsd.c: Likewise.
9341 * grub-core/loader/i386/linux.c: Likewise.
9342 * util/getroot.c: Likewise.
9343 * util/grub-editenv.c: Likewise.
9344 * util/grub-fstest.c: Likewise.
9345 * util/grub-mkfont.c: Likewise.
9346 * util/grub-mkimage.c: Likewise.
9347 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9348 * util/grub-pe2elf.c: Likewise.
9349 * util/grub-probe.c: Likewise.
9350 * util/grub-setup.c: Likewise.
9351 * util/ieee1275/ofpath.c: Likewise.
9352 * util/misc.c: Likewise.
9353 * util/raid.c: Likewise.
9354
566f779b
RM
93552011-11-11 Robert Millan <rmh@gnu.org>
9356
9357 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9358 __attribute__((unused)) from `os_dev', which *is* being used.
9359
b50787de
VS
93602011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9361
9362 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9363 forgotten define.
9364 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9365 GRUB_IA64_DL_GOT_ALIGN.
9366 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9367 GRUB_IA64_DL_TRAMP_ALIGN.
9368
119d11c8
VS
93692011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 Replace grub_fatal with normal errors in i386 linux loader.
9372
9373 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9374 (allocate_pages): Check find_efi_mmap_size return value.
9375 (grub_e820_add_region): Return error.
9376 (grub_linux_boot): Check mmap return value.
9377
6e0632e2
VS
93782011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9379
9380 * grub-core/commands/acpihalt.c: Gettextized.
9381 * grub-core/commands/cacheinfo.c: Likewise.
9382 * grub-core/commands/cmp.c: Likewise.
9383 * grub-core/commands/efi/loadbios.c: Likewise.
9384 * grub-core/commands/gptsync.c: Likewise.
9385 * grub-core/commands/ieee1275/suspend.c: Likewise.
9386 * grub-core/commands/legacycfg.c: Likewise.
9387 * grub-core/commands/memrw.c: Likewise.
9388 * grub-core/commands/minicmd.c: Likewise.
9389 * grub-core/commands/parttool.c: Likewise.
9390 * grub-core/commands/time.c: Likewise.
9391 * grub-core/commands/videoinfo.c: Likewise.
9392 * grub-core/disk/geli.c: Likewise.
9393 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9394 * grub-core/disk/luks.c: Likewise.
9395 * grub-core/disk/lvm.c: Likewise.
9396 * grub-core/font/font_cmd.c: Likewise.
9397 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9398 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9399 * grub-core/gfxmenu/view.c: Likewise.
9400 * grub-core/kern/emu/hostdisk.c: Likewise.
9401 * grub-core/kern/emu/main.c: Likewise.
9402 * grub-core/kern/emu/misc.c: Likewise.
9403 * grub-core/kern/emu/mm.c: Likewise.
9404 * grub-core/kern/mips/arc/init.c: Likewise.
9405 * grub-core/kern/mips/loongson/init.c: Likewise.
9406 * grub-core/kern/partition.c: Likewise.
9407 * grub-core/lib/i386/halt.c: Likewise.
9408 * grub-core/lib/mips/arc/reboot.c: Likewise.
9409 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9410 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9411 * grub-core/loader/i386/xnu.c: Likewise.
9412 * grub-core/loader/multiboot.c: Likewise.
9413 * grub-core/net/bootp.c: Likewise.
9414 * grub-core/net/net.c: Likewise.
9415 * grub-core/normal/term.c: Likewise.
9416 * grub-core/partmap/bsdlabel.c: Likewise.
9417 * grub-core/parttool/msdospart.c: Likewise.
9418 * grub-core/term/gfxterm.c: Likewise.
9419 * grub-core/term/terminfo.c: Likewise.
9420 * grub-core/video/i386/pc/vbe.c: Likewise.
9421 * util/grub-menulst2cfg.c: Likewise.
9422 * util/grub-mkdevicemap.c: Likewise.
9423 * util/grub-mklayout.c: Likewise.
9424 * util/grub-mkrelpath.c: Likewise.
9425 * util/grub-script-check.c: Likewise.
9426 * util/ieee1275/grub-ofpathname.c: Likewise.
9427 * util/resolve.c: Likewise.
9428
073aa7a9
VS
94292011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 Support %1$d syntax.
9432
9433 * tests/printf_unit_test.c: New file.
9434 * Makefile.util.def (printf_test): New test.
9435 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9436
c76b5417
VS
94372011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9438
9439 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9440 fix.
9441
df067ad1
VS
94422011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9445 dprintf.
9446 * grub-core/font/font.c (grub_font_load): Likewise.
9447
5b289bc5
VS
94482011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9449
9450 * util/grub-macho2img.c: Add comment concerning gettext.
9451 * grub-core/lib/legacy_parse.c: Likewise.
9452
c1860f87
VS
94532011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9454
9455 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9456 (grub_xvasprintf): Likewise.
9457
d35d0d37
VS
94582011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9459
9460 Add const keyword to grub_env_get and gettextize week days.
9461
9462 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9463 (grub_read_hook_datetime): Return const char *.
9464 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9465 updated.
9466 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9467 Mark for gettext.
9468 (grub_get_weekday_name): Return const char *. Call gettext.
9469 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9470 char * and len as the argument. All users updated.
9471 (grub_script_argv_split_append): Receive const char *.
9472 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9473 * include/grub/env.h (grub_env_get): Likewise.
9474 (grub_env_read_hook_t): Return const char *.
9475 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9476 (grub_script_argv_split_append): Likewise.
9477
9aed8a71
VS
94782011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9479
9480 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9481
067fdf00
VS
94822011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9483
9484 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9485 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9486
a8bd9d39
VS
94872011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9488
9489 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9490 Fix prototype.
9491
f7ce5baf
VS
94922011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 Fix mips compilation.
9495
9496 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9497 normal decoder.
9498 (hashes): Use in embed decoder as well (for sizes).
9499 (dec_stream_header): Fix embed decompressor logic.
9500 (dec_stream_footer): Likewise.
9501
9bb182f3
VS
95022011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9503
9504 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9505 an error and not a fatal on unrecognised relocation types.
9506
63a9e6f6
VS
95072011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9508
9509 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9510 Issue error rather than printf on unknown arguments.
9511
4c458569
VS
95122011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9513
9514 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9515 Make buf a const.
9516
e2d22baf
VS
95172011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9518
9519 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9520 Fix module name.
9521
53dc8590
VS
95222011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9525 leftover debug printf.
9526
6c189294
VS
95272011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9528
9529 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9530
f7688369
VS
95312011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9534 A stylistic fix.
9535
11a775a3
VS
95362011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9537
9538 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9539
33f784e8
SL
95402011-11-10 Shea Levy <slevy@tieronedesign.com>
9541
9542 Allow all modules to perform serial IO
9543
9544 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9545 * include/grub/serial.h (grub_serial_port_configure): New inline
9546 function.
9547 (grub_serial_port_fetch): Likewise.
9548 (grub_serial_port_put): Likewise.
9549 (grub_serial_port_fini): Likewise.
9550 (grub_serial_find): New proto.
9551
f6276525
VS
95522011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 Put symlink at the end of the node and fix a potential
9555 memory corruption.
9556
9557 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9558 Make symlink into an array.
9559 (set_rockridge): Set have_symlink and alloc_dirents.
9560 (grub_iso9660_read_symlink): Use new layout.
9561 (grub_iso9660_iterate_dir): Fix memory corruption.
9562 Use new layout.
9563 (grub_iso9660_dir): Set have_symlink.
9564 (grub_iso9660_open): Likewise.
9565
c3591189
VS
95662011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9567
9568 Remove local keyword.
9569
9570 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9571 (version_test_gt): Likewise.
9572 (version_find_latest): Likewise.
9573 (gettext_printf): Likewise.
9574 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9575
cb544caa
VS
95762011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9577
9578 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9579
45bd824d
VS
95802011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9581
9582 Fix ZFS memory and resource leaks.
9583
9584 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9585 All users updated.
9586 Free type on exit.
9587 (fill_vdev_info): New parameter inserted. All users updated.
9588 (check_pool_label): Likewise.
9589 (scan_disk): Likewise.
9590 (scan_devices): Close non-inserted disks.
9591 (fzap_iterate): Free l.
9592 (unmount_device): Free children descripto memory.
9593
ad9a2f44
VS
95942011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9595
9596 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9597 argument (access out of bounds).
9598
6b68db81
VS
95992011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9602 >= 6 drives.
9603
28840fda
VS
96042011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9605
9606 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9607 Fix declaration.
9608
8a5a3a5b
VS
96092011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 Fix several memory leaks.
9612
9613 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9614 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9615 (grub_cpio_dir): Likewise.
9616 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9617 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9618 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9619 (grub_romfs_label): Likewise.
9620 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9621 (squash_unmount): New function.
9622 (grub_squash_dir): Fix memory leak.
9623 (grub_squash_open): Likewise.
9624 (grub_squash_read): Likewise.
9625 (grub_squash_mtime): Likewise.
9626 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9627 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9628 * util/grub-fstest.c (fstest): Likewise.
9629
57b01250
VS
96302011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9633 avoid accessing beyond the array.
9634
19e81ba7
VS
96352011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9638
52b656c0
VS
96392011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9640
9641 Several AFFS fixes.
9642
9643 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9644 (GRUB_AFFS_FLAG_FFS): Removed.
9645 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9646 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9647 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9648 (grub_fshelp_node): Make block 32-bit.
9649 Add block_cache and last_block_cache.
9650 (grub_affs_read_block): Fill and use block cache.
9651 (grub_affs_read_file): Removed.
9652 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9653 boot block.
9654 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9655 safety.
9656 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9657 space.
9658 (grub_affs_close): Free block cache.
9659 (grub_affs_read): Use grub_fshelp_read_file directly.
9660
438a746a
VS
96612011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9664 with no error set.
9665
49a45021
VS
96662011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9667
9668 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9669 used variable.
9670 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9671 Likewise.
9672
3ae17eb8
VS
96732011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9674
9675 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9676
9677 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9678 byteswap when needed.
9679
27610c38
VS
96802011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 Fix FreeBSD compilation.
9683
9684 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9685 to avoid circular dependency.
9686 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9687 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9688 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9689
4a19b601
VS
96902011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9691
9692 Fix ZFS crypto error types.
9693
9694 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9695 (grub_gcm_decrypt): Likewise.
9696 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9697 from PBKDF2.
9698
958ee221
VS
96992011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9700
9701 Illumos support.
9702
9703 * Makefile.util.def (10_illumos): New script.
9704 * configure.ac: Set COND_HOST_ILLUMOS.
9705 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9706 Support Illumos calls.
9707 (find_partition_start) [__sun__]: Likewise.
9708 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9709 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9710 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9711 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9712 device.
9713 * util/grub-probe.c (probe) [__sun__]: Do character check.
9714 * util/grub.d/10_illumos.in: New file.
9715
cac14fb6
VS
97162011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9717
9718 Support escaped commas in hostdisk.
9719
9720 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9721 (find_grub_drive): Use unescape_cmp.
9722 (make_device_name): Escape commas.
9723
78e08dc3
VS
97242011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9725
9726 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9727
9f421dd1
VS
97282011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9729
9730 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9731 variable.
9732
ed64e9e2
VS
97332011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9734
9735 Support trampoline jumps on powerpc.
9736
9737 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9738 __ia64__ path.
9739 (grub_dl_load_segments): Set mod->sz.
9740 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9741 segments.
9742 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9743 (jump): Likewise.
9744 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9745 function.
9746 (trampoline): New struct.
9747 (trampoline_template): New const.
9748 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9749 * include/grub/dl.h (grub_dl): Add sz element.
9750 [__powerpc__]: Follow __ia64__.
9751 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9752 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9753 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9754 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9755
3084ede4
VS
97562011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9757
9758 ZFS crypto support.
9759
9760 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9761 * grub-core/Makefile.core.def (zfscrypt): New module.
9762 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9763 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9764 it. All users updated.
9765 (grub_zfs_decrypt): New var.
9766 (grub_zfs_load_key): Likewise.
9767 (zio_checksum_functions): Add SHA256+MAC.
9768 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9769 (zio_read): Handle encrypted blocks.
9770 (zap_verify): Remove incorrect check.
9771 (fzap_iterate): Handle non-standard fzap.
9772 (zap_iterate): Likewise.
9773 (zap_iterate_u64): New function.
9774 (dnode_get_fullpath): Load keys.
9775 * grub-core/fs/zfs/zfscrypt.c: New file.
9776 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9777 (grub_crypto_ecb_encrypt): Make input const.
9778 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9779 (grub_crypto_ecb_encrypt): Make input const.
9780 (GRUB_CIPHER_AES): New macro.
9781 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9782 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9783 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9784 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9785 prefix. All users updated.
9786 (grub_zfs_add_key): New proto.
9787 (grub_zfs_decrypt): Likewise.
9788 (grub_zfs_load_key): Likewise.
9789 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9790 * util/grub-fstest.c (options): Add -K option.
9791 (argp_parser): Likewise.
9792
b632b404
VS
97932011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9794
9795 Support zle compression on ZFS.
9796
9797 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9798 (decomp_table): Add zle.
9799 * include/grub/zfs/zio.h (zio_compress): Add zle.
9800
c7ba4f69
VS
98012011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9802
9803 Support BtrFS embedding.
9804
9805 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9806 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9807 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9808 * util/grub-setup.c (setup): Use fs embedding if available.
9809 Add additional sanity check.
9810
455377d9
VS
98112011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 * util/grub-install.in: Fix condition for config_opt.
9814
c2fd16ca
VS
98152011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 Support third redundancy strip on raidz3.
9818
9819 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9820 Return error on singularity. All users updated.
9821 (read_device): Don't stop on 3rd failure on raidz3.
9822
8622923b
VS
98232011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9824
9825 Support case-insensitive ZFS subvolumes.
9826
9827 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9828 All users updated.
9829 (zap_hash): Likewise.
9830 (name_cmp): New function.
9831 (zap_leaf_array_equal): New parameter case_insensitive.
9832 All users updated.
9833 (zap_leaf_lookup): Likewise.
9834 (fzap_lookup): Likewise.
9835 (zap_lookup): Likewise.
9836 (dnode_get_path): New parameter case_insensitive. Retrieve case
9837 sensitiviness of a volume. All users updated.
9838 (dnode_get_fullpath): New parameter case_insensitive.
9839 All users updated.
9840 (grub_zfs_dir): Set info.case_insensitiveness.
9841
95f2e860
VS
98422011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 Support second redundancy strip on raidz(2,3).
9845
9846 * grub-core/fs/zfs/zfs.c (powx): New array.
9847 (powx_inv): Likewise.
9848 (poly): New const.
9849 (xor_out): New function.
9850 (gf_mul): Likewise.
9851 (recovery): Likewise.
9852 (read_device): Use second redundancy strip.
9853
11ee4389
VS
98542011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9855
9856 Use a power of generator representation of GF(256) multiplication group
9857 to save space time and complexity.
9858
9859 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9860 (raid6_table2): Likewise.
9861 (powx): New array.
9862 (powx_inv): Likewise.
9863 (poly): New const.
9864 (grub_raid_block_mul): Replace with ...
9865 (grub_raid_block_mulx): ...this.
9866 (grub_raid6_init_table): Rewritten.
9867 (grub_raid6_recover): Use power of generator representation.
9868
09e2763f
VS
98692011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9872 for the right device.
9873
8bec9a28
VS
98742011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9875
9876 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9877 expected by grub-mkimage and it's more clear since there is no implicit
9878 padding.
9879
dbd3a32e
VS
98802011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9881
9882 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9883 disk.
9884 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9885
182c872a
PMH
98862011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9887
9888 * util/grub-mkrescue.in: Fix handling xorriso option.
9889
1e51cabd
VS
98902011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9891
9892 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9893 NULL.
9894
9cc3581d 98952011-11-03 crocket <crockabiscuit@gmail.com>
9896
9897 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9898
158dc1ea
VS
98992011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9900
9901 XZ CRC64 and SHA256 support.
9902
9903 * Makefile.util.def (libgrubmods): Add crc64.c.
9904 * grub-core/Makefile.core.def (crc64): New module.
9905 * grub-core/lib/crc64.c: New file.
9906 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9907 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9908 Fix the type.
9909 (MAX_HASH_SIZE): New define.
9910 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9911 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9912 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9913 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9914 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9915 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9916 Handle non-crc32 hashes.
9917 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9918 (dec_stream_header): Handle non-crc32 hashes.
9919 (dec_stream_footer): Likewise.
9920 (dec_block_header): Likewise.
9921 (dec_main): Likewise.
9922 (xz_dec_init): Likewise.
9923 (xz_dec_reset): Likewise.
9924 (xz_dec_end): Likewise.
9925 * util/import_gcry.py: Add CRC64 line.
9926
9d9b3d2f
VS
99272011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9928
9929 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9930 as well.
9931
7d0ac931
VS
99322011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9933
9934 Make reiserfs label retrieval similar to other *_label functions.
9935
9936 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9937 (REISERFS_MAX_LABEL_LENGTH): Removed.
9938 (REISERFS_LABEL_OFFSET): Likewise.
9939 (grub_reiserfs_label): Rewritten.
9940
99412011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9942
9943 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9944 field.
9945
cf5ba824
VS
99462011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9949
17744004
VS
99502011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9951
9952 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9953 drive failure on both raidz and raidz2.
9954
aca5aefc
VS
99552011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 Fix RAIDZ(2) for >= 5 devices.
9958
9959 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9960 asize argument. All users updated.
9961
ce8ca56e
VS
99622011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9963
9964 Fix RAIDZ(2).
9965
9966 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9967 (fill_vdev_info_real): Set ashift.
9968 (read_device): Rewrite RAIDZ part based on reverse engineering.
9969
7c01e783
VS
99702011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9973 don't report potentially unavialiable fields in debug output.
9974 (find_path): Fix double-free and memory leak.
9975
ce109e84
VS
99762011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9977
9978 Read label on UFS1.
9979
9980 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9981 (grub_ufs_fs): Always set .label.
9982
87661123
VS
99832011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 Use shifts in UFS.
9986
9987 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9988 (grub_ufs_data): New field log2_blksz.
9989 (grub_ufs_read_file): Use shifts.
9990 (grub_ufs_mount): Check block size and logarithm it.
9991
46bc1dc2
VS
99922011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9993
9994 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9995 long symlinks.
9996
19ee2987
VS
99972011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 Handle symlinks and long names on tar and cpio.
10000
10001 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
10002 (ATTR_FILE): Likewise.
10003 (ATTR_DIR): Likewise.
10004 (ATTR_LNK): Likewise.
10005 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
10006 (grub_cpio_find_file): Fill mode, handle linkname field as well as
10007 L and K entries.
10008 (grub_cpio_mount): Zero-fill data.
10009 (handle_symlink): New function.
46bc1dc2
VS
10010 (grub_cpio_dir): Handle symlinks.
10011 (grub_cpio_open): Likewise.
10012 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 10013
c83a08d8
VS
100142011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10015
10016 Fix iso9660 filename limitations and fix memory leaks.
10017
10018 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
10019 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
10020
45cdd3ea
VS
100212011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10022
10023 Fix JFS file name length limitations.
10024
10025 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
10026 (grub_jfs_diropen): Fix maximum filename length.
10027 (grub_jfs_getent): Fix filename length.
10028 (grub_jfs_lookup_symlink): Fix size checks.
10029
94ef05c2
VS
100302011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10031
10032 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
10033 string.
10034
785ab8c7
VS
100352011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10036
eb0b6b45
VS
10037 Leverage BFS implementation to read AFS.
10038
10039 * Makefile.util.def (libgrubmods): Add afs.c.
10040 * grub-core/Makefile.core.def (afs): New module
10041 * grub-core/fs/afs.c: New file.
10042 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
10043
100442011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10045
10046 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 10047
c4a1628f
VS
100482011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10049
10050 * grub-core/fs/bfs.c: Run indent.
10051
5825b379
VS
100522011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10053
10054 BFS implementation based on the specification.
10055
10056 * grub-core/fs/bfs.c: New file.
10057 * Makefile.util.def (libgrubmods): Add bfs.c.
10058 * grub-core/Makefile.core.def (bfs): New module.
10059
42b2a706
VS
100602011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10061
10062 * util/grub-fstest.c (cmd_cp): Clarify error message.
10063 (cmd_cmp): Likewise.
10064
61b99bfc
YB
100652011-10-30 Yves Blusseau <blusseau@zetam.org>
10066
10067 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
10068 and befs_be.
10069
faba3d16
VS
100702011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
10071
10072 Remove afs and befs because of copyright problem.
10073
10074 * grub-core/fs/afs.c: Removed.
10075 * grub-core/fs/afs_be.c: Removed.
10076 * grub-core/fs/befs.c: Removed.
10077 * grub-core/fs/befs_be.c: Removed.
10078 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
10079 * grub-core/Makefile.core.def (afs): Removed.
10080 (afs_be): Likewise.
10081 (befs): Likewise.
10082 (befs_be): Likewise.
10083
c39224b0
VS
100842011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10085
10086 Prefer rockridge over Joliet.
10087
10088 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10089 to ...
10090 (set_rockridge): ... here.
10091 (grub_iso9660_mount): Check rockridge on the primary label when
10092 discovering. Ignore Joliet if Rockridge is present.
10093
e551115a
VS
100942011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10095
10096 Use shifts in nilfs2.
10097
10098 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10099 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10100 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10101 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10102 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10103 (grub_nilfs2_entries_per_block): Replaced with ...
10104 (grub_nilfs2_log_entries_per_block_log): ... this.
10105 (grub_nilfs2_blocks_per_group): Replaced with ...
10106 (grub_nilfs2_blocks_per_group_log): ... this.
10107 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10108 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10109 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10110 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10111 (grub_nilfs2_palloc_entry_offset): Replaced ...
10112 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10113 (grub_nilfs2_dat_translate): Use shifts.
10114 (grub_nilfs2_read_inode): Likewise.
10115 (GRUB_MOD_INIT): Ensure that logs are correct.
10116
564dd58c
VS
101172011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 Use shifts in minix filesystem.
10120
10121 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10122 (GRUB_MINIX_ZONE2SECT): Likewise.
10123 (grub_minix_data): Replace block_size with log_block_size.
10124 (grub_minix_read_file): Use shifts.
10125 (grub_minix_mount): Check block size and take a logarithm.
10126
ed9ba06d
VS
101272011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10128
10129 Use shifts in squash4.
10130
10131 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10132 (squash_mount): Check block size and take logarithm.
10133 (direct_read): Use shifts.
10134
ad03fe76
VS
101352011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 Correct befs block counting logic.
10138
10139 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10140 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10141 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10142 (grub_afs_read_inode): Use block_shift.
10143 (RANGE_SHIFT): New definition.
10144 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10145 unexpected conditions, use shifts and appropriate types.
10146 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10147
6563f63d
VS
101482011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 * grub-core/disk/raid.c (scan_devices): Check partition.
10151 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10152
5b1ae25f
VS
101532011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10154
10155 Support BFS (befs) UUID.
10156
10157 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10158 (grub_afs_small_data_element_header): New struct.
10159 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10160 (grub_afs_read_attribute) [MODE_BFS]: New function.
10161 (grub_afs_iterate_dir): Allocate for complete inode.
10162 (grub_afs_mount): Likewise.
10163 (grub_afs_uuid) [MODE_BFS]: New function.
10164 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10165
f8d82408
VS
101662011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10167
10168 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10169 (zfs_unmount): Fix memory leak.
10170
5773fb64
VS
101712011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10172
10173 Support NTFS reparse points.
10174
10175 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10176 (symlink_descriptor): New struct.
10177 (grub_ntfs_read_symlink): New function.
10178 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10179 (grub_ntfs_open): Likewise.
10180
91c3fdde
VS
101812011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10182
10183 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10184
3be82e10
VS
101852011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10186
10187 fstest xnu_uuid subcommand.
10188
10189 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10190 grub-core/commands/xnu_uuid.c.
10191 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10192 (fstest): Handle xnu_uuid.
10193 (options): Document xnu_uuid.
10194 (argp_parser): Parse xnu_uuid.
10195
8e32442e
VS
101962011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10197
10198 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10199 -l argument. Add newline at the end if printing.
10200 (GRUB_MOD_INIT): Document -l.
10201
52a05075
VS
102022011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10203
10204 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10205
1869edb5
VS
102062011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10207
10208 ZFS multi-device and version 33 support.
10209
10210 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10211 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10212 (grub_zfs_data): Add multidev-ice-related fields.
10213 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10214 (dva_get_offset): Make dva const.
10215 (zfs_fetch_nvlist): New function.
10216 (fill_vdev_info_real): Likewise.
10217 (fill_vdev_info): Likewise.
10218 (check_pool_label): Likewise.
10219 (scan_disk): Likewise.
10220 (scan_devices): Likewise.
10221 (read_device): Likewise.
10222 (read_dva): Likewise.
10223 (zio_read_gang): Use read_dva.
10224 (zio_read_data): Likewise.
10225 (zap_leaf_lookup): Add missing endian conversion.
10226 (zap_verify): Add missing endian conversion. All users updated.
10227 (fzap_lookup): Likewise.
10228 (fzap_iterate): Likewise.
10229 (dnode_get_path): Handle SA bonus.
10230 (nvlist_find_value): Make input const. All users updated.
10231 (unmount_device): New function.
10232 (zfs_unmount): Use unmount_device.
10233 (zfs_mount): Use scan_disk.
10234 (zfs_mtime): New function.
10235 (grub_zfs_open): Handle system attributes.
10236 (fill_fs_info): Likewise.
10237 (grub_zfs_dir): Likewise.
10238 (grub_zfs_fs): Add mtime.
10239 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10240 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10241 (SA_MTIME_OFFSET): Likewise.
10242 (SA_SYMLINK_OFFSET): Likewise.
10243 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10244 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10245 (fstest): Support zfsinfo.
10246 (argp_parser): Likewise.
10247
186b4028
VS
102482011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10249
10250 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10251 error.
10252
102532011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
10254
10255 ZFS fixes.
10256
10257 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10258 sharing the same block. Iterate over correct number of indices.
10259 (dnode_get_path): Handle symlinks correctly.
10260
c0584900
VS
102612011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10262
10263 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10264
67e2bd71
VS
102652011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10266
10267 Read label on HFS+.
10268
10269 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10270 (grub_hfsplus_btree_search): Fix types.
10271 (grub_hfsplus_label): Implement.
10272
e9cc6b7b
VS
102732011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10274
10275 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10276
19832ddb
VS
102772011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10278
10279 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10280
66b40850
VS
102812011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10282
10283 Fix symlink handling on iso9660.
10284
10285 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10286 All users updated.
10287 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10288 (grub_iso9660_read_symlink): Moved most of code ...
10289 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10290
db821363
VS
102912011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10294 Use union to avoid breaking strict-aliasing rules.
10295
e1211949
VS
102962011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10297
10298 Support multi-extent iso files.
10299
10300 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10301 Add node.
10302 (grub_fshelp_node): Revamp. All users updated.
10303 (FLAG_*): New enum.
10304 (read_node): New function.
10305 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10306 All users updated.
10307 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10308 (get_node_size): New function.
10309 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10310 entries.
10311 Fix memory leak on . and ..
10312 (grub_iso9660_read): Use read_node.
10313 (grub_iso9660_close): Free node.
10314
d4888031
VS
103152011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10316
10317 Fix tar 4G limit and handle paths containing dot.
10318
10319 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10320 (canonicalize): New function.
10321 (grub_cpio_find_file): Use canonicalize. Store offs in
10322 grub_disk_addr_t.
10323 (grub_cpio_dir): Use grub_disk_addr_t.
10324 (grub_cpio_open): Likewise.
10325
9f12e664
VS
103262011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10327
10328 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10329
10330 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10331 unused flags.
10332 (grub_squash_inode): Add long_file and block_size.
10333 (grub_squash_cache_inode): New struct.
10334 (grub_squash_dirent): Make types into enum.
10335 (SQUASH_TYPE_LONG_REGULAR): New type.
10336 (grub_squash_frag_desc): Add field size.
10337 (SQUASH_BLOCK_FLAGS): New enum.
10338 (grub_squash_data): Use grub_squash_cache_inode.
10339 (grub_fshelp_node): Make ino_chunk 64-bit.
10340 (read_chunk): Minor argument change. All users updated.
10341 (squash_mount): Use correct le_to_cpu.
10342 (grub_squash_open): Handle LONG_REGULAR.
10343 (direct_read): New function.
10344 (grub_squash_read_data): Handle blocks correctly.
10345
9f326fba
VS
103462011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10349
f4d9b64b
VS
103502011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10351
10352 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10353
5bbd28b8
VS
103542011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10355
10356 Fix 2G limit on ZFS.
10357
10358 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10359 types.
10360 (uberblock_verify): Likewise.
10361 (dmu_read): Likewise.
10362 (grub_zfs_read): Likewise. Remove invalid cast.
10363
68c72069
VS
103642011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10367 (grub_jfs_blkno): Fix incorrect shift.
10368 (grub_jfs_read_file): Use more appropriate types.
10369
6e536dc8
VS
103702011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10371
10372 Support triple indirect on minix2 and minix3.
10373
10374 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10375 Declare triple_indir_zone.
10376 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10377 indirect.
10378
e0864e7a
VS
103792011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10380
10381 Minix FS fixes.
10382
10383 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10384 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10385 Rename ctime to mtime. All users updated.
10386 (grub_minix_get_file_block): Fix types and double indirect computations.
10387
89481cab
VS
103882011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10389
10390 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10391 if no label is found.
10392 (grub_fat_iterate_dir): Fix file size type.
10393 (grub_fat_iterate_dir): Likewise.
10394
f646e143
VS
103952011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10396
10397 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10398 save some space.
10399 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10400 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10401
534d769e
VS
104022011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10403
10404 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10405
e084ba18
VS
104062011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10407
10408 * util/import_gcry.py: Accept space between # and include.
10409
3471ecdf
VS
104102011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10411
10412 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10413
124df5f6
VS
104142011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10415
10416 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10417
10418 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10419 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10420 yylex_strncpy.
10421 * grub-core/script/yylex.l: Add fine-grained #pragma.
10422
4defb8d5
VS
104232011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10424
10425 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10426 New inline function.
10427 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10428 Likewise.
10429 (memset) [GRUB_UTIL]: Likewise.
10430 (memcmp) [GRUB_UTIL]: Likewise.
10431
4e94ae65
VS
104322011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10433
10434 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10435 inline function rather than a define.
10436
18c575e5
VS
104372011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10438
10439 * util/grub-setup.c: Add missing include.
10440
f8bc22a8
VS
104412011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10442
10443 * util/ieee1275/grub-ofpathname.c: Add missing include.
10444
3ce69fc9
VS
104452011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10446
10447 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10448 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10449 Likewise.
10450
d1e293bb
VS
104512011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10452
10453 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10454 grub_memcmp usage.
10455
7a5c54a4
VS
104562011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10457
10458 * util/grub-install.in: Add datarootdir as per automake manual
10459 suggestion.
10460 * util/grub-mknetdir.in: Likewise.
10461
104622011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
10463
10464 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10465 suggestion.
10466 * util/grub.d/10_kfreebsd.in: Likewise.
10467 * util/grub.d/10_linux.in: Likewise.
10468 * util/grub.d/10_netbsd.in: Likewise.
10469 * util/grub.d/10_windows.in: Likewise.
10470 * util/grub.d/20_linux_xen.in: Likewise.
10471
766f7d08
VS
104722011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 Remove redundant grub_kernel_image_size.
10475
10476 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10477 _edata and _start.
10478 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10479 the small code. It moves it only by few bytes but simplifies the code.
10480 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10481 _start.
10482 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10483 (grub_kernel_image_size): Removed.
10484 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10485 (grub_kernel_image_size): Removed.
10486 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10487 compiled with Apple toolchain.
10488 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10489 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10490 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10491 (grub_total_module_size): Likewise.
10492 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10493 Removed.
10494 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10495 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10496 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10497 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10498 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10499 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10500 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10501 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10502 Removed.
10503 (grub_total_module_size): Removed.
10504 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10505 (image_targets): Likewise.
10506 Set .compressed_size to no field on sparc.
10507 (generate_image): Remove kernel_image_size handling.
10508
fcf1d672
SJ
105092011-10-19 Szymon Janc <szymon@janc.net.pl>
10510
10511 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10512 NULL pointer dereference.
10513
de9c615e
VS
105142011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10515
10516 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10517 done with a dedicated section.
10518
10519 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10520 Ensure the correct position of boot_path.
10521 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10522 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10523 other fields.
10524 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10525 * include/grub/boot.h: Removed. All references removed.
10526 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10527 Removed.
10528 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10529
e55599dc
VS
105302011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10531
10532 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10533 name.
10534
36dd20ad
VS
105352011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10536
10537 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10538
f8f72eb8
VS
105392011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10540
10541 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10542 Don't add the bogus brackets.
10543
a374751b
VS
105442011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10545
10546 ExFAT support.
10547
10548 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10549 * grub-core/Makefile.core.def (exfat): New module.
10550 * grub-core/fs/exfat.c: New file.
10551 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10552 (GRUB_FAT_ATTR_*): Make into an enum.
10553 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10554 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10555 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10556 (GRUB_FAT_MAXFILE): Removed.
10557 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10558 (grub_current_fat_bpb_t): New type.
10559 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10560 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10561 (grub_fat_dir_node_t): New type.
10562 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10563 (fat_log2) [MODE_EXFAT]: Removed.
10564 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10565 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10566 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10567 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10568 (grub_fat_label) [MODE_EXFAT]: New function.
10569 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10570 reserved_first_sector to 0.
10571
544c2487
VS
105722011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10573
10574 Move grub_reboot out of the kernel.
10575
10576 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10577 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10578 * grub-core/lib/efi/reboot.c: ... here.
10579 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10580 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10581 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10582 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10583 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10584 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10585 * grub-core/lib/ieee1275/reboot.c: ... here.
10586 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10587 * grub-core/lib/mips/arc/reboot.c: ... here.
10588 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10589 * grub-core/lib/mips/loongson/reboot.c: ...here.
10590 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10591 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10592 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10593 * include/grub/i386/reboot.h: New file.
10594 * include/grub/mips/loongson/ec.h: Fix includes.
10595 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10596 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10597 * grub-core/lib/i386/reboot.c: New file.
10598
a97501d2
VS
105992011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10600
10601 Make grub_prefix into module to fix the arbitrary limit and save
10602 some space.
10603
10604 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10605 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10606 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10607 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10608 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10609 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10610 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10611 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10612 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10613 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10614 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10615 * include/grub/ia64/efi/kernel.h: Removed.
10616 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10617 (grub_prefix): Removed.
10618 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10619 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10620 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10621 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10622 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10623 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10624 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10625 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10626 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10627 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10628 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10629 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10630 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10631 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10632 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10633 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10634 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10635 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10636 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10637 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10638 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10639 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10640 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10641 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10642 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10643 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10644 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10645 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10646 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10647 from module.
10648 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10649 prefix_end.
10650 (image_targets): Likewise.
10651 (generate_image): Put prefix as a module.
10652
39705fad
VS
106532011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10654
10655 Replace grub_module_iterate with FOR_MODULES.
10656
10657 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10658 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10659 (grub_efi_modules_addr): ...this.
10660 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10661 (grub_efi_init): Set grub_modbase.
10662 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10663 (grub_modbase): New variable.
10664 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10665 (grub_modbase): New variable.
10666 (grub_machine_init): Set grub_modbase.
10667 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10668 (grub_modbase): New variable.
10669 (grub_machine_init): Set grub_modbase.
10670 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10671 (grub_modbase): New variable.
10672 (grub_machine_init): Set grub_modbase.
10673 * grub-core/kern/main.c (grub_module_iterate): Remove.
10674 (grub_modules_get_end): Use grub_modbase.
10675 (grub_load_modules): Use FOR_MODULES.
10676 (grub_load_config): Likewise.
10677 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10678 (grub_modbase): New variable.
10679 (grub_machine_init): Set grub_modbase.
10680 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10681 (grub_modbase): New variable.
10682 (grub_machine_init): Set grub_modbase.
10683 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10684 Removed.
10685 (grub_modbase): New variable.
10686 (grub_machine_init): Set grub_modbase.
10687 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10688 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10689 (grub_module_iterate): Likewise.
10690 (grub_modbase): New variable declaration.
10691 (FOR_MODULES): New macro.
10692
2afb7f6c
VS
106932011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10694
10695 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10696 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10697
366e34fa
VS
106982011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10699
10700 Fix few obvious type discrepancies.
10701
10702 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10703 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10704 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10705 variable.
10706 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10707 and connected types.
10708 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10709 offset.
10710 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10711 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10712 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10713 and connected types.
10714
177b960e
VS
107152011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10716
10717 Fix python 3.x incompatibilities.
10718
10719 * gentpl.py: Put brackets around print strings.
10720 * util/import_gcry.py: Open explicitly as utf-8.
10721 Use in instead of has_key.
10722
3b619ae1
VS
107232011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10724
10725 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10726 (GRUB_XFS_INO_AGBITS): Make into inline function.
10727 (GRUB_XFS_INO_INOINAG): Likewise.
10728 (GRUB_XFS_INO_AG): Likewise.
10729 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10730 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10731 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10732 (GRUB_XFS_EXTENT_SIZE): Likewise.
10733 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10734 (GRUB_XFS_NEXT_DIRENT): Likewise.
10735 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10736 (grub_xfs_read_file): Fix offset type.
10737
8bcebcb8
RM
107382011-10-15 Robert Millan <rmh@gnu.org>
10739
10740 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10741
0017e5ef
RM
107422011-10-15 Robert Millan <rmh@gnu.org>
10743
10744 Fix build problem on FreeBSD and GNU/kFreeBSD.
10745
10746 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10747
d8919552
VS
107482011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10749
10750 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10751
10752 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10753 types.
10754 (grub_hfsplus_btree_recoffset): Likewise.
10755 (grub_hfsplus_btree_recptr): Likewise.
10756 (grub_hfsplus_find_block): Likewise.
10757 (grub_hfsplus_btree_search): Likewise.
10758 (grub_hfsplus_read_block): Likewise.
10759 (grub_hfsplus_read_file): Likewise.
10760 (grub_hfsplus_mount): Likewise.
10761 (grub_hfsplus_btree_iterate_node): Likewise.
10762 (grub_hfsplus_btree_search): Likewise.
10763 (grub_hfsplus_iterate_dir): Likewise.
10764 (grub_hfsplus_read): A small code simplification.
10765
c81296b6
VS
107662011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10767
10768 * grub-core/kern/emu/hostdisk.c
10769 (convert_system_partition_to_system_disk): Don't assume that children
10770 of mapper nodes are mapper nodes.
10771
0eb8ffb1
VS
107722011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10773
10774 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10775 * include/grub/misc.h (grub_isxdigit): New function.
10776 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10777 switched to grub_isxdigit.
10778 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10779 number starting with a letter.
10780
a98f4a08
RM
107812011-10-09 Robert Millan <rmh@gnu.org>
10782
10783 LVM support for FreeBSD and GNU/kFreeBSD.
10784
10785 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10786 GNU/kFreeBSD.
10787 (LVM_DEV_MAPPER_STRING): Move from here ...
10788 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10789 * util/getroot.c: Include `<grub/util/lvm.h>'.
10790 (grub_util_get_dev_abstraction): Enable
10791 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10792 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10793 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10794 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10795 support it.
10796 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10797 GNU/kFreeBSD.
10798 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10799 when LVM abstraction is required for ${GRUB_DEVICE}.
10800
050e8e90
SJ
108012011-10-06 Szymon Janc <szymon@janc.net.pl>
10802
10803 Add support for LZO compression in GRUB:
10804 - import of minilzo library,
10805 - LZO decompression for btrfs,
10806 - lzop files decompression.
10807
10808 * grub-core/io/lzopio.c: New file.
10809 * grub-core/lib/adler32.c: Likewise.
10810 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10811 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10812 * grub-core/lib/minilzo/minilzo.c: Likewise.
10813 * grub-core/lib/minilzo/minilzo.h: Likewise.
10814 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10815 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10816 grub-core/lib/minilzo/minilzo.c to common.
10817 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10818 cflags in cppflags.
10819 * grub-core/Makefile.core.def (btrfs): Likewise.
10820 * grub-core/Makefile.core.def (lzopio): New module.
10821 (adler32): Likewise.
10822 * grub-core/fs/btrfs.c: Include minilzo.h.
10823 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10824 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10825 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10826 (grub_btrfs_lzo_decompress): New function.
10827 (grub_btrfs_extent_read): Add support for LZO compression type.
10828 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10829 (GRUB_USHRT_MAX): Likewise.
10830 (GRUB_UINT_MAX): Likewise.
10831 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10832 (UINT_MAX): Likewise.
10833 (CHAR_BIT): Likewise.
10834 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10835 grub-core/lib/posix_wrap/limits.h
10836 (UCHAR_MAX): Likewise.
10837 * include/grub/file.h (grub_file_filter_id): New compression filter
10838 GRUB_FILE_FILTER_LZOPIO.
10839 * include/grub/file.h (grub_file_filter_id): Set
10840 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10841 * include/grub/types.h (grub_get_unaligned16): New function.
10842 (grub_get_unaligned32): Likewise.
10843 (grub_get_unaligned64): Likewise.
10844 * util/import_gcry.py (cryptolist): Add adler32.
10845
0eb8ffb1
VS
108462011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10847
10848 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10849 in perspective decreases the complexity of build system and fixes
10850 compilation right now.
10851
ce79cc99 108522011-10-01 Ales Nesrsta <starous@volny.cz>
10853
10854 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10855 (fixed problem related to using UHCI with coreboot).
10856
8667a314
BC
108572011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10858
10859 * gentpl.py: Use Autogen macros so that the output template file
10860 (Makefile.tpl) size is reduced.
10861
fc5efcc0
MK
108622011-09-29 Mads Kiilerich <mads@kiilerich.com>
10863
10864 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10865 extra_dist.
10866
d1ab689d
ML
108672011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10868
10869 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10870 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10871
c05de032
ML
108722011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10873
10874 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10875 _fullpath.
10876
cca7ccd8
ML
108772011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10878
10879 Remove extra declaration of sleep for mingw32.
10880
10881 * util/misc.c (sleep) [__MINGW32__]: Removed.
10882 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10883
e0b0dc83
GS
108842011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10885
10886 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10887 type and packname.
10888 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10889 Resurrected.
10890 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10891 (grub_netbsd_btinfo_bootwedge): New struct.
10892 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10893 New function.
10894 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10895
91a1a164
TH
108962011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10897
10898 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10899 loader.
10900
2ded951e
AB
109012011-09-28 Andreas Born <futur.andy@googlemail.com>
10902
10903 Fix incorrect identifiers in bash-completion.
10904
10905 * util/bash-completion.d/grub-completion.bash.in
10906 (_grub_mkpasswd-pbkdf2): Rename to ...
10907 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10908 (_grub_script-check): Rename to ...
10909 (_grub_script_check): ... this. All users updated.
10910
69915030
VS
109112011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10914 Return 0 if disk isn't biosdisk.
10915
20fd15f9
GS
109162011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10917
10918 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10919 on NetBSD.
10920 * Makefile.util.def (grub-fstest): Likewise.
10921
1a7d7db9
GS
109222011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10923
10924 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10925 Get sector size from disk label.
10926
2221ab6c
CW
109272011-09-05 Colin Watson <cjwatson@ubuntu.com>
10928
10929 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10930 */README* as well as README*.
10931 Reported by: Axel Beckert.
10932
ca51c4a0
VS
109332011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10934
10935 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10936 case of less than 256 MiB of RAM.
10937
ab80f326
VS
109382011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10939
10940 * grub-core/commands/wildcard.c (make_regex): Handle @.
10941
4155e697
VS
109422011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10943
10944 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10945
ab178c08
SJ
109462011-08-21 Szymon Janc <szymon@janc.net.pl>
10947
10948 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10949 AC_LANG_CONFTEST macros.
10950
7dc3c686
SJ
109512011-08-20 Szymon Janc <szymon@janc.net.pl>
10952
10953 Add grub-fstest option to uncompress data for commands.
10954
10955 * util/grub-fstest.c (uncompress): New var.
10956 (options): New option -u.
10957
fe8d4a7b
SJ
109582011-08-20 Szymon Janc <szymon@janc.net.pl>
10959
10960 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10961 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10962
a5219af1
SJ
109632011-08-20 Szymon Janc <szymon@janc.net.pl>
10964
10965 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10966 file type was not recognized correctly (not gzip or corrupted).
10967
f87abff5
VS
109682011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10969
10970 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10971 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10972
d94497ea
VS
109732011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10974
10975 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10976 loongson.
10977 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10978 video_radeon_fuloong2e.
10979 * grub-core/video/radeon_fuloong2e.c: New file.
10980 * include/grub/video.h (grub_video_id_t): Add new ID
10981 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10982
0d1fd011
VS
109832011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10984
10985 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10986 define.
10987 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10988 that PRID matches the detected subplatform and reset the subplatform
10989 if it doesn't.
10990
84beb0ee
VS
109912011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10992
10993 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10994
1227c133
VS
109952011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 Fix PCI iterating on functions >= 4.
10998
10999 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
11000 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
11001 Removed.
11002 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
11003 (grub_pci_read): Fix bitmask.
11004 (grub_pci_read_word): Likewise.
11005 (grub_pci_read_byte): Likewise.
11006 (grub_pci_write): Likewise.
11007 (grub_pci_write_word): Likewise.
11008 (grub_pci_write_byte): Likewise.
11009
9594c689
VS
110102011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11011
11012 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
11013 can still be specified in TARGET_CFLAGS)
11014
14a2562c
VS
110152011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
11018
11019 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
11020 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
11021 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
11022 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
11023 (FULOONG): Rename to ...
11024 (FULOONG2F): ... this. All users updated.
11025 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
11026 (machtype_fuloong2f_str): ... this.
11027 (machtype_fuloong2e_str): New string.
11028 Check for machtype_fuloong2e_str.
11029 * grub-core/loader/mips/linux.c (loongson_machtypes)
11030 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
11031 * grub-core/term/serial.c (loongson_defserial)
11032 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
11033 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
11034 loongson_defserial.
11035 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
11036 Rename to ...
11037 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
11038 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
11039 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
11040 to IMAGE_FULOONG2F_FLASH. All users updated.
11041 (image_targets): Rename images.
11042 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
11043
b526cbb6
SJ
110442011-08-19 Szymon Janc <szymon@janc.net.pl>
11045
11046 Make enable of disk cache statistics code configurable.
11047
11048 * configure.ac: --enable-cache-stats added.
11049 * config.h.in (DISK_CACHE_STATS): New define.
11050 * grub-core/Makefile.core.def (cacheinfo): New command.
11051 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
11052 * grub-core/commands/cacheinfo.c: New file.
11053 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
11054 moved to cacheinfo.c.
11055 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
11056 debug code.
11057 * include/grub/disk.h: Likewise.
11058
fb739ccd
SJ
110592011-08-19 Szymon Janc <szymon@janc.net.pl>
11060
11061 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
11062 * grub-core/Makefile.am: Likewise.
11063
2bba8cfd
VS
110642011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11065
11066 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
11067 non-zero pull.
11068
43526629
VS
110692011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11070
11071 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
11072 All users updated.
11073 (grub_jfs_lookup_symlink): Use correct starting inode.
11074
5c144cc8
VS
110752011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11076
11077 * util/grub-setup.c (main): Add missing gcry initialisation.
11078
b1257f65
VS
110792011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11080
11081 Don't accept text modes on EFI when booting Linux.
11082
11083 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
11084 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
11085
828bc390
ML
110862011-08-15 Mario Limonciello <mario_limonciello@dell.com>
110872011-08-15 Colin Watson <cjwatson@ubuntu.com>
11088
11089 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11090 use of "/path/.." as in grub-install for EFI as well as handling
11091 symlinks correctly.
11092 Fixes Debian bug #637768.
11093
5f60ccac
CW
110942011-08-15 Colin Watson <cjwatson@ubuntu.com>
11095
11096 * util/grub-probe.c: Remove duplicate #include.
11097
6dc212f9
RM
110982011-08-10 Robert Millan <rmh@gnu.org>
11099
11100 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11101
11102 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11103 function.
11104 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11105 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11106
66816d85
RM
111072011-08-03 Robert Millan <rmh@gnu.org>
11108
11109 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11110 la_array as packed.
11111 Reported by: Zachary Bedell
11112
20168fca
CW
111132011-07-26 Colin Watson <cjwatson@ubuntu.com>
11114
11115 * configure.ac: The Loongson port requires grub-mkfont due to its
11116 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11117 be built.
11118
303b6246
CW
111192011-07-26 Colin Watson <cjwatson@ubuntu.com>
11120
11121 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11122 processing arguments (otherwise help2man fails when GRUB has not yet
11123 been installed).
11124
6795300e
VS
111252011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11126
41aa28ea
VS
11127 New script grub-mkstandalone.
11128
11129 * Makefile.util.def (grub-mkstandalone): New script.
11130 * docs/man/grub-mkstandalone.h2m: New file.
11131 * util/grub-mkstandalone.in: Likewise.
11132
111332011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11134
11135 Support ATA disks with 4K sectors.
6795300e
VS
11136
11137 * include/grub/ata.h (grub_ata): New member log_sector_size.
11138 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11139 (grub_ata_identify): Read sector size.
11140 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11141
92227597
VS
111422011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11143
11144 * util/grub-install.in: Don't use uhci outside of x86.
11145
c77069f5
VS
111462011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11147
11148 * util/grub-mkrescue.in: Add missing quotes.
11149
111502011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
11151
11152 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11153 dereference.
11154
583168a2
VS
111552011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11156
11157 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11158
6be1c01f
VS
111592011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11160
11161 * include/grub/video.h: add missing EXPORT_FUND on
11162 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11163
a1167439
VS
111642011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11165
11166 * include/grub/mips/kernel.h: Fix define conflict.
11167
bf66054f
VS
111682011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11169
11170 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11171 all four ways.
11172
8fc4fa45
CW
111732011-07-21 Colin Watson <cjwatson@ubuntu.com>
11174
11175 Preferred resolution detection for VBE.
11176
11177 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11178 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11179 the Flat Panel extension, in line with the X.org VESA driver.
11180 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11181 New function.
11182 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11183 (grub_vbe_bios_read_edid): Likewise.
11184 (grub_vbe_get_preferred_mode): Likewise.
11185 (grub_video_vbe_setup): When the mode is "auto", try to get the
11186 preferred mode from VBE, and use the largest mode that is no larger
11187 than the preferred mode (some BIOSes expose a preferred mode that is
11188 not in their mode list!). If this fails, fall back to 640x480 as a
11189 safe conservative choice.
11190 (grub_video_vbe_get_edid): New function.
11191 (grub_video_vbe_adapter): Add get_edid.
11192 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11193 (struct grub_video_adapter): Add get_edid.
11194 (grub_video_edid_checksum): Add prototype.
11195 (grub_video_edid_preferred_mode): Likewise.
11196 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11197 structure.
11198
11199 * grub-core/commands/videoinfo.c (print_edid): New function.
11200 (grub_cmd_videoinfo): Print EDID if available.
11201
11202 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11203 is more appropriate on a wider range of platforms than 640x480.
11204 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11205 documentation.
11206
ca5572a9
VS
112072011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11208
11209 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11210
e4bcf625
VS
112112011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11212
11213 * po/POTFILES.in: Regenerate.
11214
c4edd548
VS
112152011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11216
11217 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11218 incorrect memory usage.
11219
16a2bab0
VS
112202011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11221
11222 * util/grub-install.in: Source grub-mkconfig_lib.
11223
2e418de6
VS
112242011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 Remove getroot.c from core on emu platform.
11227
11228 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11229 kern/emu/raid.c.
11230 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11231 useless.
11232 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11233 * util/getroot.c (get_win32_path): ... here.
11234 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11235 * util/getroot.c (fini_libzfs): ... here.
11236 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11237 * util/getroot.c (grub_get_libzfs_handle): ... here.
11238 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11239 Moved from here...
11240 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11241 * grub-core/kern/emu/misc.c
11242 (grub_make_system_path_relative_to_its_root): Moved from here...
11243 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11244 * grub-core/kern/emu/getroot.c: Moved from here ...
11245 * util/getroot.c: ... here. All users updated.
11246 * grub-core/kern/emu/raid.c: Moved from here ...
11247 * util/raid.c: ... here. All users updated.
11248
def9832a
VS
112492011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11250
11251 * po/POTFILES.in: Regenerate.
11252
cd8fe79a
VS
112532011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11254
11255 Fix compilation on GNU/Linux.
11256
11257 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11258 Disable geli.
11259 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11260 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11261 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11262
a251b719
VS
112632011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
112642011-07-07 Michael Gorven <michael@gorven.za.net>
112652011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11266
11267 LUKS and GELI support.
11268
11269 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11270 grub-core/disk/luks.c, grub-core/disk/geli.c,
11271 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11272 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11273 grub-core/lib/arg.c.
11274 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11275 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11276 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11277 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11278 (grub-bin2h): Add libgcry.a.
11279 (grub-mkimage): Likewise.
11280 (grub-mkrelpath): Likewise.
11281 (grub-script-check): Likewise.
11282 (grub-editenv): Likewise.
11283 (grub-mkpasswd-pbkdf2): Likewise.
11284 (grub-pe2elf): Likewise.
11285 (grub-fstest): Likewise.
11286 (grub-mkfont): Likewise.
11287 (grub-mkdevicemap): Likewise.
11288 (grub-probe): Likewise.
11289 (grub-ofpath): Likewise.
11290 (grub-mklayout): Likewise.
11291 (example_unit_test): Likewise.
11292 (grub-menulst2cfg): Likewise.
11293 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11294 * grub-core/Makefile.core.def (cryptodisk): New module.
11295 (luks): Likewise.
11296 (geli): Likewise.
11297 * grub-core/disk/AFSplitter.c: New file.
11298 * grub-core/disk/cryptodisk.c: Likewise.
11299 * grub-core/disk/geli.c: Likewise.
11300 * grub-core/disk/luks.c: Likewise.
11301 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11302 grub_util_is_lvm.
11303 (grub_util_get_dm_abstraction): New function.
11304 (grub_util_follow_gpart_up): Likewise.
11305 (grub_util_get_geom_abstraction): Likewise.
11306 (grub_util_get_dev_abstraction): Use new functions.
11307 (grub_util_pull_device): Pull GELI and LUKS.
11308 (grub_util_get_grub_dev): Handle LUKS and GELI.
11309 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11310 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11311 (follow_geom_up): Removed.
11312 (grub_util_fd_seek): New function.
11313 (open_device): Use grub_util_fd_seek.
11314 (nread): Rename to ..
11315 (grub_util_fd_read): ... this. All users updated.
11316 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11317 (grub_crypto_cbc_decrypt): Likewise.
11318 (grub_crypto_hmac_write): Likewise.
11319 (grub_crypto_hmac_buffer): Likewise.
11320 (grub_password_get): Extend to util.
11321 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11322 New member modname.
11323 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11324 * include/grub/cryptodisk.h: New file.
11325 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11326 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11327 LUKS and GELI.
11328 (grub_util_follow_gpart_up): New proto.
11329 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11330 (grub_util_fd_read): Likewise.
11331 (grub_cryptodisk_cheat_mount): Likewise.
11332 (grub_util_cryptodisk_print_uuid): Likewise.
11333 (grub_util_get_fd_sectors): Likewise.
11334 * util/grub-fstest.c (mount_crypt): New var.
11335 (fstest): Mount crypto if requested.
11336 (options): New option -C.
11337 (argp_parser): Parse -C.
11338 (main): Init and fini gcry.
11339 * util/grub-install.in: Support cryptodisk install.
11340 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11341 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11342 cryptodisk.
11343 (prepare_grub_to_access_device): Likewise.
11344 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11345 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11346 (probe_cryptodisk_uuid): New function.
11347 (probe_abstraction): Likewise.
11348 (probe): Use new functions.
11349 * util/import_gcry.py: Create Makefile.utilgcry.def.
11350 Add modname member.
11351
9bfdcbbc
VS
113522011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11353
11354 Lazy device scanning.
11355
11356 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11357 (grub-setup): Remove util/raid.c.
11358 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11359 * grub-core/disk/lvm.c (scan_depth): New variable.
11360 (grub_lvm_iterate): Rescan if necessary.
11361 (find_lv): New function based on grub_lvm_open.
11362 (grub_lvm_open): Use find_lv. Rescan on error.
11363 (is_node_readable): New function.
11364 (is_lv_readable): Likewise.
11365 (grub_lvm_scan_device): Skip already found disks.
11366 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11367 Stop if searched device is found and readable.
11368 * grub-core/disk/raid.c (inscnt): New variable.
11369 (scan_depth): Likewise.
11370 (scan_devices): New function based on grub_raid_register. Abort if
11371 looked for device is found.
11372 (grub_raid_iterate): Rescan if needed.
11373 (find_array): NEw function based on -grub_raid_open.
11374 (grub_raid_open): Use find_array and rescan.
11375 (insert_array): Set became_readable_at.
11376 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11377 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11378 New function.
11379 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11380 (grub_util_pull_device): New function.
11381 (grub_util_get_grub_dev): Call grub_util_pull_device.
11382 * util/raid.c: Moved to ..
11383 * grub-core/kern/emu/raid.c: ... here.
11384 (grub_util_raid_getmembers): New parameter "bootable".
11385 All users updated. Support 1.x.
11386 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11387 All users updated.
11388 * include/grub/disk.h (grub_disk_pull_t): New enum.
11389 (grub_disk_dev): Change iterate prototype.
11390 All users updated.
11391 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11392 New proto.
11393 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11394 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11395 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11396 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11397 All users updated.
11398 * include/grub/util/raid.h: Removed.
11399
1c358e59
VS
114002011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11401
11402 * po/POTFILES.in: Regenerate.
11403
abee94ed
VS
114042011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11405
11406 Unify sparc init with other ieee1275.
11407
11408 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11409 instead of kern/sparc64/ieee1275/init.c.
11410 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11411 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11412 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11413 grub/machine/kernel.h.
11414 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11415 (grub_claim_heap) [__sparc__]: Use sparc version.
11416 (grub_machine_init): Moved args parsing to
11417 (grub_parse_cmdline): ...this.
11418 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11419 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11420 New definition.
11421 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11422
11423 Move BOOTP to separate file.
11424
11425 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11426 * grub-core/net/net.c: Move all BOOTP functions to
11427 * grub-core/net/bootp.c: ... here.
11428
11429 Use frame interface on PXE.
11430
11431 * grub-core/Makefile.core.def (pxecmd): Removed.
11432 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11433 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11434 * grub-core/i386/pc/pxe.c: Moved from here ...
11435 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11436 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11437 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11438
11439 EFI network support.
11440
11441 * grub-core/Makefile.core.def (efinet): New module.
11442 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11443 here...
11444 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11445 All users updated.
11446 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11447 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11448 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11449 * grub-core/net/drivers/efi/efinet.c: New file.
11450 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11451 (grub_efi_net_config): New extern var.
11452
11453 Various cleanups and bugfixes.
11454
11455 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11456 error.
11457 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11458 disk declared as partition.
11459 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11460 leak on failure.
11461 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11462 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11463 (grub_debug_zalloc): Likewise.
11464 (grub_debug_realloc): Likewise.
11465 (grub_debug_memalign): Likewise.
11466 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11467 Check that target is IPv4.
11468 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11469 local-mac-address as fallback.
11470 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11471 memory leak.
11472 * grub-core/net/ip.c (ipchksum): Rename to ...
11473 (grub_net_ip_chksum): ... this. All users updated.
11474 (grub_net_recv_ip_packets): Special handling for DHCP.
11475 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11476
11477 Unify prefix handling
11478
11479 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11480 (grub_machine_get_bootlocation): ... this.
11481 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11482 (grub_machine_get_bootlocation): ... this.
11483 (grub_prefix): New variable.
11484 (prefix): Removed.
11485 (root_dev): New variable.
11486 (dir): Likewise.
11487 (main): Use new variables.
11488 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11489 Revamped into ...
11490 (grub_machine_get_bootlocation): ... this.
11491 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11492 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11493 (grub_machine_get_bootlocation): ... this.
11494 (grub_machine_set_prefix): Removed.
11495 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11496 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11497 Revamped into ...
11498 (grub_machine_get_bootlocation): ... this.
11499 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11500 (grub_set_prefix_and_root): ... this. All users updated.
11501 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11502 Revamped into ...
11503 (grub_machine_get_bootlocation): ... this.
11504 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11505 (grub_machine_get_bootlocation): New proto.
11506 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11507
11508 Less intrusive and more reliable seek on network implementation.
11509
11510 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11511 (grub_file_seek): Don't call grub_file_net_seek.
11512 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11513 (grub_net_fs_read_real): .. this.
11514 (grub_net_seek_real): Use net->offset.
11515 (grub_net_fs_read): Seek if necessary.
11516
11517 Unify IEEE1275 netwotk config with the other platforms.
11518
11519 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11520 New variable.
11521 (grub_machine_get_bootlocation): Support network.
11522 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11523 Support type and device parsing.
11524 (grub_ieee1275_get_device_type): New function.
11525 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11526 into ...
11527 (grub_ieee1275_net_config_real): ... this.
11528 (grub_ofnet_probecards): Removed.
11529 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11530 * include/grub/ieee1275/ofnet.h: Removed.
11531 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11532 extern var.
11533 (grub_ieee1275_get_device_type): New function.
11534
11535 Unify network device closing across platforms and make more robust.
11536
11537 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11538 grub_grubnet_fini.
11539 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11540 already.
11541 * grub-core/net/net.c (grub_net_network_level_interface_register):
11542 Update num_ifaces.
11543 (grub_net_card_unregister): Close all interfaces.
11544 (receive_packets): Don't poll if no iterfaces are registered.
11545 Open if necessary.
11546 (grub_net_fini_hw): New function.
11547 (grub_net_restore_hw): Likewise.
11548 (fini_hnd): New variable.
11549 (GRUB_MOD_INIT): Register preboot hook.
11550 (GRUB_MOD_FINI): Run and unregister preboot hook.
11551
11552 Poll network cards when idle.
11553
11554 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11555 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11556 * grub-core/net/net.c (receive_packets): Save last poll time.
11557 (grub_net_poll_cards_idle_real): New function.
11558 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11559 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11560 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11561
11562 Rename ofnet interfaces.
11563
11564 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11565 (grub_ofnet_findcards): Use ofnet_%s names.
11566
11567 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11568
11569 Cleanup socket opening.
11570
11571 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11572 (grub_net_fs_close): Likewise.
11573 (grub_net_fs_read_real): Use eof member.
11574 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11575 (+grub_net_udp_close): New inline function.
11576
11577 * include/grub/net/tftp.h: Moved to the top of ...
11578 * grub-core/net/tftp.c: ... here.
11579 * include/grub/net/ip.h: Moved mostly to the top of ...
11580 * grub-core/net/ip.c: ... here.
11581 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11582 * grub-core/net/ethernet.c: ... here.
11583
11584 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11585
11586 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11587 FS name.
11588
11589 * include/grub/net/ip.h (ipv4_ini): Removed.
11590 (ipv4_fini): Likewise.
11591
11592 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11593 (grub_net_send_ip_packets): Likewise.
11594
cf1337aa
VS
115952011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11596
11597 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11598 grub_read_cmos prototype.
11599
93c06ff9
VS
116002011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11601
11602 VGA text support in qemu-mips
11603
11604 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11605 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11606 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11607 text.
11608 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11609 * grub-core/kern/vga_init.c: ... this.
11610 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11611 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11612 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11613 Adjust.
11614 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11615 GRUB_MACHINE_PCI_IO_BASE.
11616
748ccabe
VS
116172011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11618
11619 MIPS qemu flash support.
11620
11621 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11622 magic.
11623 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11624 (grub_machine_init): Probe memory if its size isn't known.
11625 * util/grub-mkimage.c (image_targets): Add flash targets.
11626 (generate_image): Handle flash targets.
11627
d7345994
VS
116282011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11629
11630 MIPS qemu at_keyboard support.
11631
11632 * gentpl.py (videoinkernel): Add qemu-mips.
11633 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11634 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11635 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11636 modules.
11637 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11638 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11639 * grub-core/term/serial.c (grub_serial_register)
11640 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11641
a07a81b3
VS
116422011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11643
11644 CMOS support on sparc.
11645
11646 * gentpl.py (cmos): Add powerpc and sparc.
11647 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11648 powerpc and sparc.
11649 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11650 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11651 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11652 grub_set_datetime_cmos.
11653 * grub-core/lib/ieee1275/cmos.c: New file.
11654 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11655 (find_rtc): Set no_ieee1275_rtc on error.
11656 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11657 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11658 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11659 fail. Move value to argument. All users updated
11660 (grub_cmos_write): Likewise.
11661 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11662 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11663 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11664 grub_get_datetime_cmos and grub_set_datetime_cmos.
11665
77546584
GS
116662011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11667
11668 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11669 sourcing grub-mkconfig_lib.
11670 * util/update-grub_lib.in: Likewise.
11671 * util/grub.d/00_header.in: Likewise.
11672 * util/grub.d/10_hurd.in: Likewise.
11673 * util/grub.d/10_kfreebsd.in: Likewise.
11674 * util/grub.d/10_linux.in: Likewise.
11675 * util/grub.d/10_netbsd.in: Likewise.
11676 * util/grub.d/10_windows.in: Likewise.
11677 * util/grub.d/20_linux_xen.in: Likewise.
11678 * util/grub.d/30_os-prober.in: Likewise.
11679
54894791
CW
116802011-06-28 Colin Watson <cjwatson@ubuntu.com>
11681
11682 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11683 default_bg_color rather than black.
11684 (grub_gfxterm_fullscreen): Likewise.
11685 (grub_gfxterm_background_color_cmd): Save new background color in
11686 default_bg_color.
11687
8d5d8444
VS
116882011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11689
11690 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11691
5afeb5bd
VS
116922011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11693
11694 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11695 mismerge.
11696
ba7df45e
VS
116972011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11698
11699 Chainloading on coreboot support.
11700
11701 * grub-core/Makefile.core.def (chain): Add coreboot.
11702 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11703
d0b526b2
VS
117042011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11705
11706 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11707 if it happens.
11708
5ff1d945
VS
117092011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11710
11711 Implement time command.
11712
11713 * grub-core/Makefile.core.def (time): New module.
11714 * grub-core/commands/time.c: New file.
11715 * grub-core/script/parser.y: Remove "time" keyword.
11716 * grub-core/script/yylex.l: Likewise.
11717
5ebaad7e
VS
117182011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11719
11720 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11721
bdea3798
VS
117222011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11723
11724 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11725 when handling leftovers.
11726
b28c5655
VS
117272011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11728
11729 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11730 so that help2man doesn't fail.
11731
b6f945dc
VS
117322011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11733
11734 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11735 type in pointers on sparc64.
11736 (get_card_packet): Likewise.
11737
f9b75e8a
CW
117382011-06-27 Colin Watson <cjwatson@ubuntu.com>
11739
11740 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11741 with `*'.
11742 (grub_cmd_videoinfo): Fetch current video mode.
11743
1e3d9b86
VS
117442011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11745
11746 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11747 because of underlying system restrictions.
11748
efff4b1c
VS
117492011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11750
11751 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11752 necessary.
11753
9fc9ce37
VS
117542011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11755
11756 Coreboot video support.
11757
11758 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11759 (vbe): Likewise.
11760 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11761 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11762 here ...
11763 * grub-core/kern/i386/int.S: ... here.
11764 * grub-core/video/i386/pc/vbe.c: Updated includes.
11765 * grub-core/video/i386/pc/vga.c: Likewise.
11766 * include/grub/i386/coreboot/memory.h
11767 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11768 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11769 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11770 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11771 Disable interrupts.
11772 * include/grub/i386/pc/vga.h: Removed. All users updated.
11773
41bec7fe
VS
117742011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11775
11776 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11777 definitions for dprintf.
11778 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11779
ca80309d
VS
117802011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11781
11782 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11783 prototype.
11784 (get_card_packet): Likewise.
11785
9e322ce8
YB
117862011-06-26 Yves Blusseau <blusseau@zetam.org>
11787
11788 Display the path of the file when file is not found
11789
11790 * grub-core/fs/fat.c: Display the filename when file is not found.
11791 * grub-core/fs/fshelp.c: Likewise.
11792 * grub-core/fs/hfs.c: Likewise.
11793 * grub-core/fs/jfs.c: Likewise.
11794 * grub-core/fs/minix.c: Likewise.
11795 * grub-core/fs/ufs.c: Likewise.
11796 * grub-core/fs/btrfs.c: Likewise.
11797 * grub-core/commands/i386/pc/play.c: Likewise.
11798
cbf597af
SJ
117992011-06-26 Szymon Janc <szymon@janc.net.pl>
11800
11801 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11802 pointer checks before calling grub_free().
11803 * grub-core/commands/wildcard.c (match_devices): Likewise.
11804 * grub-core/commands/wildcard.c (match_files): Likewise.
11805 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11806 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11807 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11808 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11809 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11810 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11811 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11812 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11813 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11814
6295b32f
P
118152011-06-25 Patrick <p55@mailinator.com>
11816
11817 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11818
77c0840b
VS
118192011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11820
11821 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11822 (grub_pxe_send): Likewise.
11823 (GRUB_MOD_INIT): Fix types.
11824
40ea05de
SJ
118252011-06-24 Szymon Janc <szymon@janc.net.pl>
11826
11827 * grub-core/io/xzio.c: Fix code style issues
11828
90162423
MRA
118292011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
118302011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
11831
11832 Network infrastructure.
11833 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11834
11835 * include/grub/net/arp.h: New file.
90162423
MRA
11836 * include/grub/net/device.h: Likewise.
11837 * include/grub/net/ethernet.h: Likewise.
11838 * include/grub/net/ip.h: Likewise.
11839 * include/grub/net/netbuff.h: Likewise.
11840 * include/grub/net/tftp.h: Likewise.
11841 * include/grub/net/udp.h: Likewise.
11842 * include/grub/ieee1275/ofnet.h: Likewise.
11843 * include/grub/emu/export.h: Likewise.
11844 * include/grub/net.h: Likewise.
11845 * grub-core/net/arp.c: Likewise.
11846 * grub-core/net/ethernet.c: Likewise.
11847 * grub-core/net/ip.c: Likewise.
11848 * grub-core/net/udp.c: Likewise.
11849 * grub-core/net/tftp.c: Likewise.
11850 * grub-core/net/netbuff.c: Likewise.
11851 * grub-core/net/net.c: Likewise.
11852 * grub-core/net/drivers/emu/emunet.c: Likewise.
11853 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11854 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11855 export.h.
11856 * grub-core/Makefile.core.def (net): New module.
11857 (tftp): Likewise.
11858 (ofnet): Likewise.
11859 (emunet): Likewise.
11860 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11861 network protocols.
11862 * grub-core/kern/device.c (grub_net_open) : New variable.
11863 (grub_device_open): Handle network device.
11864 (grub_device_close): Likewise.
11865 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11866 (grub_grubnet_fini): Likewise.
11867 (grub_file_seek): Seek in network device.
11868 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11869 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11870 network root.
11871 (grub_machine_fini): Call grub_grubnet_fini.
11872 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11873 network.
11874 (grub_ieee1275_get_aliasdevname): New function.
11875 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11876 Add unofficial Solaris network info.
11877 (grub_multiboot_make_mbi): Likewise.
11878 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11879 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11880 * include/grub/device.h (grub_fs): Removed.
11881 * include/grub/err.h (grub_err_t): Add network-related values.
11882 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11883 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11884 (grub_ieee1275_get_aliasdevname): New proto.
11885 * include/grub/net.h: Rewritten.
423a1849 11886
031f22a0
VS
118872011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11888
11889 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11890 names.
11891
4388ca72
VS
118922011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11895 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11896 it truncates the output.
11897 Reported by: Ximin Luo.
11898
98e2f506
VS
118992011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11900
11901 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11902
2a5e94d8
VS
119032011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11904
11905 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11906 partmap before abstraction.
11907
535c1910
AK
119082011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11909
11910 * util/grub-mkconfig_lib.in: Add missing quotes.
11911
bc09e1a2
VS
119122011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11913
11914 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11915 old method if mountinfo would return /dev/root and /dev/root doesn't
11916 exist.
11917
290766fb
VS
119182011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11919
11920 ZFS zlib support
11921
11922 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11923 (decomp_table): Add zlib entries.
11924 (zio_read): USe 8 bits for compression function rather than 3.
11925 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11926
119272011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11928
11929 * grub-core/disk/ahci.c: Add missing license statements.
11930 * grub-core/fs/romfs.c: Likewise.
11931 * grub-core/lib/ia64/setjmp.S: Likewise.
11932 * grub-core/loader/i386/pc/freedos.c: Likewise.
11933 * grub-core/loader/ia64/efi/linux.c: Likewise.
11934 * grub-core/video/colors.c: Likewise.
11935 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11936
5ab3f48a
VS
119372011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11938
11939 AHCI support.
11940
11941 * grub-core/Makefile.core.def (ata_pthru): Removed.
11942 (ahci): New module.
11943 (pata): Likewise.
11944 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11945 on unload.
11946 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11947 readwrite.
11948 (grub_hdparm_do_check_powermode_cmd): Likewise.
11949 (grub_hdparm_do_smart_cmd): Likewise.
11950 (grub_hdparm_set_val_cmd): Likewise.
11951 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11952 * grub-core/disk/ahci.c: New file.
11953 * grub-core/disk/ata.c: Factor out the low-level part into ...
11954 * grub-core/disk/pata.c: ... here.
11955 * grub-core/disk/ata_pthru.c: Contents moved to ...
11956 * grub-core/disk/pata.c: ... here.
11957 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11958 (grub_scsi_iterate): Use grub_scsi_names.
11959 (grub_scsi_open): Likewise.
11960 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11961 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11962 (grub_ata_regs_t): New struct.
11963 (grub_disk_ata_pass_through_parms): Likewise.
11964 (grub_ata_device): Renamed to ...
11965 (grub_ata): ... this.
11966 (grub_ata_dev): New struct.
11967 Removed all low-level inline functions.
11968 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11969 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11970 iterate hooks and open. All users updated.
11971 * util/grub-install.in: Handle AHCI disk module.
11972
c31dc5f5
SJ
119732011-06-23 Szymon Janc <szymon@janc.net.pl>
11974
11975 Add support for DRI and RSTn markers in JPEG files.
11976
11977 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11978 (JPEG_MARKER_RST0): Likewise.
11979 (JPEG_MARKER_RST1): Likewise.
11980 (JPEG_MARKER_RST2): Likewise.
11981 (JPEG_MARKER_RST3): Likewise.
11982 (JPEG_MARKER_RST4): Likewise.
11983 (JPEG_MARKER_RST5): Likewise.
11984 (JPEG_MARKER_RST6): Likewise.
11985 (JPEG_MARKER_RST7): Likewise.
11986 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11987 (grub_jpeg_decode_dri): New function.
11988 (grub_jpeg_decode_sos): Move image data related part into
11989 grub_jpeg_decode_data function.
11990 (grub_jpeg_decode_data): New function.
11991 (grub_jpeg_reset): New function.
11992 (grub_jpeg_decode_jpeg): Handle new markers.
11993
fe12fd5b
VS
119942011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11995
11996 * util/ieee1275/ofpath.c (check_sas): Close fd.
11997 (main): Free of_path.
11998 Reported by: David Volgyes <dvolgyes>.
11999
03147f46
VS
120002011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12001
12002 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
12003 Reported by: David Volgyes <dvolgyes>.
12004
cad3237f
VS
120052011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12006
12007 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
12008 file after stat.
12009 Reported by: David Volgyes <dvolgyes>.
12010
13548d26
VS
120112011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
12014
12015 Reported by: David Volgyes <dvolgyes>.
12016
e061a1b5
VS
120172011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12018
12019 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
12020 Prevent memory leak.
12021
1abe47dc
VS
120222011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12023
12024 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
12025 (main): Close file.
e061a1b5 12026 Reported by: David Volgyes <dvolgyes>.
1abe47dc 12027
fbc62666
VS
120282011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12029
12030 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
12031 to continue if allocation is failed.
12032
12033 Reported by: David Volgyes <dvolgyes>.
12034
e98c83e9
DV
120352011-06-23 David Volgyes <dvolgyes>
12036
12037 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
12038 dereference.
12039
a199a8cd
VS
120402011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12041
12042 Fix spurious warning.
12043
12044 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
12045 (acorn_partition_map_find): Use .bin member.
12046
e2d1dba0
VS
120472011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12048
12049 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
12050 /dev/root as a valid device.
12051
8a5d6919
JM
120522011-06-23 Jim Meyering <meyering@redhat.com>
12053
e2d1dba0
VS
12054 Avoid NULL deref in grub_device_open.
12055
8a5d6919
JM
12056 * grub-core/kern/device.c (grub_device_open): Don't dereference
12057 a NULL pointer upon failed grub_env_get.
12058
f7db6f4a
VS
120592011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12060
12061 Support non-512B sectors and agglomerate reads.
12062
12063 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
12064 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
12065 (disk_io_guid): Removed.
12066 (make_devices): Locate solely by BlockIO.
12067 (grub_efidisk_open): Fill log_sector_size and total_sectors.
12068 (grub_efidisk_read): Use read_blocks.
12069 (grub_efidisk_write): Use write_blocks.
12070 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
12071 log_sector_size.
12072 (get_safe_sectors): Handle non-512B sectors.
12073 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
12074 sectors.
12075 (grub_biosdisk_write): Handle non-512B sectors.
12076 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
12077 (grub_scsi_read): Remove special non-512B block handling (now handled
12078 one level up).
12079 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
12080 and do sanity checks.
12081 (grub_disk_adjust_range): Handle non-512B sectors.
12082 (transform_sector): New function.
12083 (grub_disk_read_small): Likewise.
12084 (grub_disk_read): Rewritten.
12085 (grub_disk_write): Handle non-512B sectors.
12086 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
12087 log_sector_size.
12088 (open_device): Use log_sector_size.
12089 (grub_util_biosdisk_read): Likewise.
12090 (grub_util_biosdisk_write): Likewise.
12091 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12092 non-512B sectors.
12093 (pc_partition_map_embed): Likewise.
12094 * include/grub/disk.h (grub_disk): New field log_sector_size.
12095 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12096 (GRUB_DISK_CACHE_BITS): Increased to 6.
12097 * util/grub-fstest.c (fstest): New command testload.
12098 (argp_parser): Likewise.
12099
881ac815
RM
121002011-06-16 Robert Millan <rmh@gnu.org>
12101
12102 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12103 `ata' driver on kernel of FreeBSD 9.
12104
12105 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12106 (get_ataraid_disk_name): New functions.
12107 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12108 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12109 get_ataraid_disk_name() and get_ada_disk_name().
12110
1e9aef7d
CW
121112011-06-13 Colin Watson <cjwatson@ubuntu.com>
12112
12113 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12114 input format.
12115
351c7c8a
CW
121162011-05-29 Colin Watson <cjwatson@ubuntu.com>
12117
12118 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12119 `ftp.gnu.org' for `alpha.gnu.org'.
12120
6b4e6430
CW
121212011-05-27 Colin Watson <cjwatson@ubuntu.com>
12122
12123 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12124 partitions under /dev/disk/by-id/.
12125
c64db050
CW
121262011-05-27 Colin Watson <cjwatson@ubuntu.com>
12127
12128 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12129 after ten consecutive open failures. Scanning all the way up to
12130 10000 is excessive and can cause serious performance problems in
12131 some configurations.
12132 Fixes Ubuntu bug #787461.
12133
245f4aba
VS
121342011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12135
12136 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12137 opening new one.
12138
f767c929
VS
121392011-05-21 Colin Watson <cjwatson@ubuntu.com>
121402011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12141
12142 Don't stat devices unless we have to.
12143
12144 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12145 dir == /dev/mapper.
12146 (grub_guess_root_device): Use already known os_dev if possible.
12147 * grub-core/kern/emu/hostdisk.c
12148 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12149 if device is known to be a dm one.
12150
f35fa3a6
CW
121512011-05-20 Colin Watson <cjwatson@ubuntu.com>
12152
12153 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12154 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12155 Reported by: Pawel Tecza.
12156
9a79fcf2
VS
121572011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12158
12159 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12160 (lsefisystab): Likewise.
12161 (lssal): Likewise.
12162 (lsefimmap): Likewise.
12163 (hdparm): Enable on qemu-mips.
12164 (setjmp): Add ia64 nodist.
12165 (serial): Simplify tags.
12166
63e3eea9
CW
121672011-05-18 Colin Watson <cjwatson@ubuntu.com>
12168
12169 * Makefile.util.def (grub-ofpathname): Install manual page.
12170
09728256
CW
121712011-05-18 Colin Watson <cjwatson@ubuntu.com>
12172
12173 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12174
8b63a142
CW
121752011-05-18 Colin Watson <cjwatson@ubuntu.com>
12176
12177 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12178
e775d8ed
VS
121792011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12180
12181 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12182 into dprintf.
12183
bf947d36
VS
121842011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12185
12186 Use full 64-bit division.
12187
12188 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12189 (grub_divmod64): ... this.
12190 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12191 version.
12192
b84f26c5
CW
121932011-05-18 Colin Watson <cjwatson@ubuntu.com>
12194
12195 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12196 `source'.
12197
5626056f
CW
121982011-05-18 Colin Watson <cjwatson@ubuntu.com>
12199
12200 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12201 to avoid accidents when debugging with 'sh -x'.
12202 * grub-core/gensyminfo.sh.in: Likewise.
12203 * tests/example_scripted_test.in: Likewise.
12204 * tests/grub_cmd_regexp.in: Likewise.
12205 * tests/grub_script_blanklines.in: Likewise.
12206 * tests/grub_script_dollar.in: Likewise.
12207 * tests/grub_script_expansion.in: Likewise.
12208 * tests/grub_script_final_semicolon.in: Likewise.
12209 * tests/partmap_test.in: Likewise.
12210 * tests/util/grub-shell-tester.in: Likewise.
12211 * tests/util/grub-shell.in: Likewise.
12212
e2965f4a
CW
122132011-05-18 Colin Watson <cjwatson@ubuntu.com>
12214
12215 Move gfxmenu color handling to video, so that gfxterm can use it
12216 too.
12217
12218 * grub-core/gfxmenu/named_colors.c: Move to ...
12219 * grub-core/video/colors.c: ... here. Rename
12220 grub_gui_get_named_color to grub_video_get_named_color.
12221 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12222 * grub-core/video/colors.c (my_isxdigit): ... here.
12223 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12224 Move to ...
12225 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12226 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12227 to ...
12228 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12229
12230 * include/grub/gui.h (grub_gui_color_t): Move to ...
12231 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12232 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12233 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12234 * include/grub/gui.h (grub_gui_map_color): Move to ...
12235 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12236 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12237 to ...
12238 * include/grub/video.h (grub_video_get_named_color): ... here.
12239 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12240 * include/grub/video.h (grub_video_parse_color): ... here.
12241
12242 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12243 video/colors.c.
12244 (gfxmenu): Remove gfxmenu/named_colors.c.
12245 (video) [videomodules]: Add video/colors.c.
12246
12247 Add a background_color command.
12248
12249 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12250 function.
12251 (GRUB_MOD_INIT): Register background_color command.
12252 (GRUB_MOD_FINI): Unregister background_color command.
12253 (redraw_screen_rect): Allow blend/replace of text layer to be
12254 controlled independently from whether there is a background bitmap.
12255 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12256 changing bitmap.
12257
1e4b4390
VS
122582011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12259
26618ff0
VS
12260 Patch BPB in ntldr and chainloader --bpb.
12261
1e4b4390
VS
12262 * grub-core/fs/fat.c: Include grub/fat.h.
12263 (grub_fat_bpb): Moved to ...
12264 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12265 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12266 grub/ntfs.h.
12267 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12268 Moved from here...
12269 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12270 here.
12271 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12272 New function.
12273 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12274 (GRUB_MOD_INIT): Show --bpb.
12275 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12276 * grub-core/normal/main.c (features): New variable.
12277 (GRUB_MOD_INIT): Set feature_* variables.
12278 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12279 proto.
12280 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12281
cf02731e
VS
122822011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12283
12284 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12285 for cleanness.
12286
e3a1073f
VS
122872011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12288
12289 FreeDOS direct loading support.
12290
12291 * docs/grub.texi (Supported OS): Add FreeDOS.
12292 * grub-core/Makefile.core.def (freedos): New module.
12293 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12294 variable.
12295 (grub_relocator16_boot): Handle %ebx.
12296 * grub-core/lib/i386/relocator16.S: Likewise.
12297 * grub-core/loader/i386/pc/freedos.c: New file.
12298
05caa461
VS
122992011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12300
12301 Long Linux command line support.
12302
12303 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12304 (maximal_cmdline_size): New variable.
12305 (allocate_pages): Use maximal_cmdline_size.
12306 (grub_cmd_linux): Set and use maximal_cmdline_size.
12307 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12308 (allocate_pages): Use maximal_cmdline_size.
12309 (grub_cmd_linux): Set and use maximal_cmdline_size.
12310 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12311 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12312 and cmdline_size.
12313
a2491e23
VS
123142011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
123152011-05-18 Colin Watson <cjwatson@ubuntu.com>
12316
12317 Improve devmapper support
12318
12319 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12320 (grub_util_is_lvm): New function.
12321 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12322 than lvm if not dmraid.
12323 Handle mapped md nodes.
12324 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12325 (grub_util_device_is_mapped): ... this. Make always available. All users
12326 updated.
12327 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12328 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12329 dmraid nodes.
12330 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12331
6ad6223e
VS
123322011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12333
12334 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12335
12336 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12337 * grub-core/modinfo.sh.in: New file.
12338 * grub-core/Makefile.core.def (modinfo.sh): New script.
12339 * util/grub-mknetdir.in: Use modinfo.sh.
12340 * util/grub-mkrescue.in: Likewise.
12341
543a8f6e
VS
123422011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12343
12344 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12345 Fix potential usage of Elf32 instead of Elf64 when compiling on
12346 32-bit architecture. Add endianness macros while on it.
12347
4959e111
VS
123482011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12349
12350 Use mipsel- rather than mips- in directories involving mipsel ports to
12351 allow both endiannesses coexist.
12352
12353 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12354 mips. All conditions adjusted.
12355 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12356 variable.
12357 * util/grub-install.in: Adjust conditions to take renaming into account.
12358 * util/grub-mkimage.c (image_targets): Likewise. New target
12359 mips-qemu_mips-elf for bigendian mips.
12360
35341bbc
VS
123612011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12362
12363 Avoid unnecessary copying on MIPS.
12364
12365 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12366 early if src == dest.
12367 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12368 compression is none.
12369
b772baed
VS
123702011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12371
12372 Reduce memory footprint on SGI by putting modules before the kernel
12373 as opposed to after.
12374
12375 * grub-core/Makefile.core.def (kernel): Increase linking address.
12376 (none_decompress): Likewise.
12377 (xz_decompress): Likewise.
12378 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12379 address.
12380 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12381 layout change.
12382 (grub_arch_modules_addr): New function.
12383 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12384 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12385 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12386 here.
12387 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12388 (grub_total_modules_size): ... this. Make global.
12389 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12390 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12391 New definition.
12392 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12393 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12394 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12395 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12396 * util/grub-mkimage.c (image_target_desc): New flag
12397 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12398 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12399 (generate_image): Handle images with modules before kernel.
12400
566a1917
VS
124012011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12402
12403 Prevent potential loss of memory map by overwrite on qemu-mips.
12404
12405 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12406 Save ram size in $s4.
12407 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12408 All users changed to grub_arch_memsize.
12409 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12410 Loongson.
12411 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12412 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12413 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12414 external variable.
12415
5d420cd9
CW
124162011-05-17 Colin Watson <cjwatson@ubuntu.com>
12417
12418 * .bzrignore: Remove grub-dumpbios.
12419
d064b830
CW
124202011-05-17 Colin Watson <cjwatson@ubuntu.com>
12421
12422 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12423 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12424 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12425 existing options which append).
12426 * docs/grub.texi (Simple configuration): Document new options.
12427 Reported by: Ian Jackson. Fixes Debian bug #617538.
12428
3ca2b466
CW
124292011-05-17 Colin Watson <cjwatson@ubuntu.com>
12430
12431 * util/grub-fstest.c (cmd_cat): New function.
12432 (fstest): Handle CMD_CAT.
12433 (options): Add cat.
12434 (argp_parser): Handle cat.
12435
24c9143a
CW
124362011-05-17 Colin Watson <cjwatson@ubuntu.com>
12437
12438 * Makefile.util.def (grub-bin2h): Don't install.
12439 * docs/man/grub-bin2h.h2m: Remove.
12440
90f7ac19
VS
124412011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12442
12443 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12444 place.
12445
8d4a5178
VS
124462011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12447
12448 Reenable qemu-mips port.
12449
12450 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12451 Fix small arc bug while on it.
12452 * gentpl.py: Handle qemu_mips.
12453 * grub-core/Makefile.am: Likewise.
12454 * grub-core/Makefile.core.def: Likewise.
12455 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12456 inappropriate includes.
12457 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12458 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12459 * grub-core/kern/main.c (grub_modules_get_end)
12460 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12461 * grub-core/kern/mips/qemu-mips: Moved to ..
12462 * grub-core/kern/mips/qemu_mips: ... this.
12463 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12464 (grub_machine_init): Call terminfo_init and serial_init.
12465 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12466 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12467 New variable.
12468 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12469 parameter passing.
12470 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12471 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12472 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12473 * include/grub/mips/qemu_mips/cmos.h: New file.
12474 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12475 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12476 Removed.
12477 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12478 Use correct mips-style address.
12479 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12480 (GRUB_TICKS_PER_SECOND): Removed.
12481 (grub_get_rtc): Likewise.
12482 (grub_cpu_idle): Likewise.
12483 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12484 New definition.
12485 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12486 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12487 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12488 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12489 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12490 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12491 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12492 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12493
400b9371
VS
124942011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12495
12496 SGI ARCS port.
12497
12498 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12499 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12500 platforms.
12501 * configure.ac: New target mips-arc.
12502 * gentpl.py: Likewise.
12503 * grub-core/Makefile.am: Likewise.
12504 * grub-core/Makefile.core.def: Likewise.
12505 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12506 (none_decompress): Likewise.
12507 (lsdev): New module.
12508 (datetime): Use lib/arc/datetime.c on ARC.
12509 (part_dvh): New module.
12510 * grub-core/commands/arc/lsdev.c: New file.
12511 * grub-core/disk/arc/arcdisk.c: Likewise.
12512 * grub-core/kern/mips/arc/init.c: Likewise.
12513 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12514 aligned addresses.
12515 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12516 support.
12517 (grub_arch_dl_relocate_symbols): Likewise.
12518 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12519 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12520 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12521 platforms.
12522 * grub-core/lib/arc/datetime.c: New file.
12523 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12524 pci.h on non-loongson.
12525 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12526 (grub_linux_boot): Set unused registers to 0.
12527 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12528 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12529 * grub-core/mmap/mips/uppermem.c: ...here.
12530 * grub-core/partmap/dvh.c: New file.
12531 * grub-core/term/arc/console.c: Likewise.
12532 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12533 (grub_terminfo_set_current): Add terminal "arc".
12534 (grub_terminfo_readkey): Support ARC sequences.
12535 * include/grub/arc/arc.h: New file.
12536 * include/grub/arc/console.h: Likewise.
12537 * include/grub/disk.h (grub_disk_dev_id): Add
12538 GRUB_DISK_DEVICE_ARCDISK_ID.
12539 * include/grub/mips/arc/kernel.h: New file.
12540 * include/grub/mips/arc/memory.h: Likewise.
12541 * include/grub/mips/arc/time.h: Likewise.
12542 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12543 * include/grub/mips/kernel.h (grub_halt): ... here.
12544 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12545 here...
12546 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12547 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12548 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12549 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12550 proto.
12551 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12552 from here ...
12553 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12554 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12555 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12556 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12557 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12558 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12559 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12560 (grub_phys_addr_t): Moved from here ...
12561 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12562 (grub_vtop): Moved from here ...
12563 * include/grub/mips/memory.h (grub_vtop): ... here.
12564 (grub_map_memory): Moved from here ...
12565 * include/grub/mips/memory.h (grub_map_memory): ... here.
12566 (grub_unmap_memory): Moved from here ...
12567 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12568 (grub_machine_mmap_iterate): Moved from here ...
12569 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12570 (grub_mmap_get_lower): Moved from here ...
12571 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12572 (grub_mmap_get_upper): Moved from here ...
12573 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12574 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12575 here ...
12576 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12577 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12578 here ...
12579 * include/grub/mips/time.h (grub_get_rtc): ... here.
12580 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12581 here ...
12582 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12583 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12584 here ...
12585 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12586 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12587 definition.
12588 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12589 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12590 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12591 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12592 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12593 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12594 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12595 (GRUB_MACHINE_LINK_ADDR): Likewise.
12596 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12597 to 6.
12598 * util/grub-install.in: Run dvhtool on ARC.
12599 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 12600 (generate_image): Handle ECOFF output for mips-arc.
400b9371 12601
c8ecc840
VS
126022011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12603
12604 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12605 blocks.
12606
153a4b55
VS
126072011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12608
12609 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12610 after enabling port.
12611
ff44d107
VS
126122011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12613
12614 Skip incorrect USB devices.
12615
12616 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12617 configcnt == 0.
12618 * include/grub/usb.h (grub_usb_err_t): New enum value
12619 GRUB_USB_ERR_BADDEVICE.
12620
638dbe4f
VS
126212011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12622
12623 Fuloong video init support.
12624
12625 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12626 well.
12627 (grub_vga_read_arx): New function.
12628 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12629 definition.
12630 (framebuffer): New members io, mmioptr and mmiobase.
12631 (read_sis_cmd): New function.
12632 (write_sis_cmd): Likewise.
12633 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12634 rather than 640x400.
12635 * grub-core/video/sis315_init.c: New file.
12636
c3fc520c
VS
126372011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12638
12639 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12640 non-loongson.
12641 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12642 to grub_dl_register_symbol.
12643
67b1e5c9
VS
126442011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12645
12646 Fix compilation errors.
12647
12648 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12649 potentially unused.
12650 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12651 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12652 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12653 to loongson machines.
12654
b756f75f
VS
126552011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12656
12657 Several FS mtime support.
12658
12659 * grub-core/fs/affs.c (grub_affs_time): New struct.
12660 (grub_affs_file): New field mtime.
12661 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12662 type. Removed 'size'. New field 'di'. All users updated.
12663 (grub_affs_mount): Simplify checsum checking.
12664 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12665 (grub_affs_dir): Handle mtime.
12666 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12667 (grub_cpio_dir): Likewise.
12668 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12669 (grub_hfs_filerec): New field mtime.
12670 (grub_hfs_dir): Handle mtime.
12671 (grub_hfs_mtime): New function.
12672 (grub_hfs_fs): Register grub_hfs_mtime.
12673 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12674 (grub_iso9660_dir): New field mtime.
12675 (grub_fshelp_node): New field dirent.
12676 (iso9660_to_unixtime): New function.
12677 (iso9660_to_unixtime2): Likewise.
12678 (grub_iso9660_read_symlink): Use node->dirent.
12679 (grub_iso9660_iterate_dir): Likewise.
12680 (grub_iso9660_dir): Set mtime.
12681 (grub_iso9660_mtime): New function.
12682 (grub_iso9660_fs): Register grub_iso9660_mtime.
12683 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12684 (grub_jfs_inode): New fields atime, ctime and mtime.
12685 (grub_jfs_dir): Set mtime.
12686 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12687 * grub-core/fs/ntfs.c (list_file): Set mtime.
12688 (grub_ntfs_dir): Likewise.
12689 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12690 (grub_reiserfs_iterate_dir): Set mtime.
12691 (grub_reiserfs_dir): Likewise.
12692 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12693 (grub_fshelp_node): Likewise.
12694 (grub_sfs_iterate_dir): Set mtime.
12695 (grub_sfs_dir): Likewise.
12696 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12697 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12698 (grub_xfs_inode): New fields atime, mtime, ctime.
12699 (grub_xfs_dir): Set mtime.
12700 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12701 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12702 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12703
12704 Support UDF symlinks.
12705
12706 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12707 (grub_ufs_read_symlink): New function. All users updated.
12708
12709 Check amiga partmap checksum.
12710
12711 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12712 (grub_amiga_partition): Likewise.
12713 (amiga_partition_map_checksum): New function.
12714 (amiga_partition_map_iterate): Check checksum.
12715
5470225d
VS
127162011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12717
12718 ROMFS support.
12719
12720 * Makefile.util.def (libgrubmods.a): Add romfs.
12721 * grub-core/Makefile.core.def (romfs): New module.
12722 * grub-core/fs/romfs.c: New file.
12723
d4680a35
VS
127242011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12725
12726 Squashfs v4 support.
12727
12728 * Makefile.util.def (libgrubmods.a): Add squash4.
12729 * grub-core/Makefile.core.def (squash4): New module.
12730 * grub-core/fs/squash4.c: New file.
12731 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12732 disk_input_start, disk_input.
12733 (get_byte): Handle disk_input.
12734 (grub_zlib_disk_read): New function.
12735 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12736
bcb18e74
FZ
127372011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
127382011-05-15 Feiran Zheng <famcool@gmail.com>
12739
12740 * Makefile.util.def (libgrubmods.a): Add minix3.
12741 * grub-core/Makefile.core.def (minix3): New module.
12742 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12743 (GRUB_MINIX_BSIZE): Removed.
12744 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12745 (grub_minix_ino_t): New type.
12746 (grub_minix_le_to_cpu_ino): New macro.
12747 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12748 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12749 (grub_minix_data): New field block_size.
12750 (grub_minix_read_file): Handle 64-bit correctly.
12751 * grub-core/fs/minix3.c: New file.
12752
32297d5f
TG
127532011-05-15 Tristan Gingold <gingold@free.fr>
127542011-05-15 Robert Millan <rmh.grub@aybabtu.com>
127552011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12756
12757 IA64 support.
12758
12759 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12760 * configure.ac: Add ia64-efi target.
12761 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12762 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12763 * gentpl.py: Add ia64_efi platform.
12764 Rename x86_efi to efi and Add ia64-efi. All users updated.
12765 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12766 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12767 Remove kern/generic/rtc_get_time_ms.c on EFI.
12768 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12769 kern/ia64/dl_helper.c on ia64-efi.
12770 Add kern/emu/cache.c on emu.
12771 (linux): Use on loader/ia64/efi/linux.c on ia64.
12772 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12773 whether symbol is a function.
12774 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12775 (grub_symbol): New field 'isfunc'.
12776 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12777 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12778 (grub_dl_load_segments): Place all sections into the same region.
12779 [__ia64__]: Create trampolines and got.
12780 [GRUB_MACHINE_EMU]: Call mprotect.
12781 (grub_dl_resolve_symbols): Resolve symbol type as well.
12782 [__ia64__]: Create function descriptors.
12783 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12784 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12785 (grub_get_rtc): New function.
12786 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12787 * grub-core/kern/emu/cache.S: Renamed to ...
12788 * grub-core/kern/emu/cache_s.S: ... this.
12789 [__ia64__]: Add a nop.
12790 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12791 [__ia64__]: New function.
12792 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12793 * grub-core/kern/ia64/dl.c: New file.
12794 * grub-core/kern/ia64/dl_helper.c: Likewise.
12795 * grub-core/kern/ia64/efi/init.c: New file.
12796 * grub-core/kern/ia64/efi/startup.S: Likewise.
12797 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12798 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12799 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12800 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12801 * grub-core/loader/ia64/efi/linux.c: New file.
12802 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12803 (GRUB_MOD_DEP): Likewise.
12804 (grub_dl) [__ia64__]: New fields got and tramp.
12805 (grub_dl): New field 'base'.
12806 (grub_dl_register_symbol): New argument isfunc. All users updated.
12807 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12808 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12809 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12810 (grub_ia64_dl_get_tramp_got_size): New proto.
12811 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12812 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12813 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12814 * include/grub/efi/api.h: Skip call wrappers on ia64.
12815 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12816 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12817 * include/grub/elf.h (ELF_ST_INFO): New definition.
12818 * include/grub/ia64/efi/kernel.h: New file.
12819 * include/grub/ia64/efi/memory.h: Likewise.
12820 * include/grub/ia64/efi/time.h: Likewise.
12821 * include/grub/ia64/kernel.h: Likewise.
12822 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12823 * include/grub/ia64/time.h: New file.
12824 * include/grub/ia64/types.h: Likewise.
12825 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12826 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12827 New protos.
12828 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12829 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12830 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12831 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12832 All users updated.
12833 (EFI64_HEADER_SIZE): New definition. All users updated.
12834 (image_targets): Add ia64-efi.
12835 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12836 jumpers_addr. All users updated.
12837 Create function descriptors.
12838 (count_funcs): New function.
12839 (unaligned_uint32): New struct.
12840 (MASK20): New definition.
12841 (MASK19): Likewise.
12842 (MASKF21): Likewise.
12843 (add_value_to_slot_20b): New function.
12844 (add_value_to_slot_21_real): Likewise.
12845 (add_value_to_slot_21): Likewise.
12846 (ia64_kernel_trampoline): New struct.
12847 (nopm): New variable.
12848 (jump): Likewise.
12849 (make_trampoline): New function.
12850 (relocate_addresses): Handle ia64.
12851 (make_reloc_section): Likewise.
12852 (load_image): Likewise.
12853
983b414d
VS
128542011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12855
12856 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12857 warning. Move variables before code while on it.
12858
5d063cdc
VS
128592011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12860
12861 Fuloong support.
12862
12863 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12864 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12865 * grub-core/boot/mips/loongson/fuloong.S: New file.
12866 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12867 Explicitly init CS5536.
12868 [FULOONG]: Don't use serial until CS5536 is available.
12869 Set GPIO based on dumps.
12870 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12871 [FULOONG]: Handle GPIO and memory controller differences.
12872 Parse machine type in $a2.
12873 * grub-core/boot/mips/startup_raw.S: Determine and save the
12874 architecture.
12875 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12876 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12877 init on architecture type.
12878 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12879 SIS315E. Don't init at_keyboard on fuloong.
12880 (grub_halt): Support Fuloong.
12881 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12882 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12883 (loongson_machtypes): New array.
12884 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12885 type.
12886 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12887 config. All users updated. Handle CS5536 serial.
12888 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12889 default port on machine type. Register serial as inactive.
12890 * grub-core/video/sis315pro.c: New file.
12891 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12892 definition.
12893 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12894 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12895 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12896 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12897 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12898 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12899 to ...
12900 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12901 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12902 definition.
12903 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12904 (grub_arch_machine): New extern var.
12905 * include/grub/mips/loongson/serial.h
12906 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12907 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12908 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12909 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12910 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12911 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12912 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12913 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12914 * include/grub/term.h (grub_term_register_input_inactive): New inline
12915 function.
12916 (grub_term_register_output_inactive): Likewise.
12917 * include/grub/video.h (grub_video_driver_id): New value
12918 GRUB_VIDEO_DRIVER_SIS315PRO.
12919 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12920 New field "names". All users updated.
12921 New field value IMAGE_FULOONG_FLASH.
12922 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12923
6ada82d1
JU
129242011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12925
12926 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12927 and add some clarification.
12928
90c571a4
VS
129292011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12930
12931 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12932 platforms if kernel is compressed.
12933
de04eecf
VS
129342011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12935
12936 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12937 unused modules since currently referrence counter isn't reliable and
12938 there isn't much memory to recover there anyway.
12939
57688121
VS
129402011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12941
12942 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12943 rather than resetting it to allow modules to reference themselves
12944 in init.
12945
3d2c7e35
VS
129462011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12947
12948 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12949 counter on dependencies since grub_dl_unref already handles this.
12950
b25db218
VS
129512011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12952
12953 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12954 on error if not already done.
12955
25a45338
VS
129562011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12957
12958 Fix few potential memory misusage.
12959
12960 * grub-core/font/font.c (load_font_index): Don't free char_index to
12961 avoid double free.
b25db218
VS
12962 (grub_font_load): Zero-fill font at alloc for safety.
12963 Close file on error.
12964 (free_font): Free bmp_idx.
25a45338 12965
0cac83df
VS
129662011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12967
12968 * docs/grub.texi (Installation): Fix several outdated claims.
12969
2217a143
VS
129702011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12971
12972 Handle module_license on windows.
12973
12974 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12975 sections shifted.
12976 (insert_string): Make argument const char * instead of char *.
12977 (write_section_data): Handle long section names.
12978 Handle module_license.
12979
d4de6b01
VS
129802011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12983 handle class-free menuentries.
12984 (grub_normal_add_menu_entry): Add a check to be sure.
12985
4c2a3b43
VS
129862011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12987
12988 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12989 PgUp and PgDown.
12990
85c6210f
VS
129912011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * configure.ac: Bump version to 1.99.
12994
36084912
VS
129952011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12996
12997 Give ATA device a bit more time on first try in order to allow disks
12998 to spin up.
12999
13000 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
13001 if dev->present is 1. Reset dev->present on failure.
13002 (grub_ata_device_initialize): Set dev->present to 1.
13003 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
13004 (grub_ata_device): New member 'present'.
13005
bda0e219
VS
130062011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13007
13008 * util/grub-mkimage.c (generate_image): Update hash.
13009
19e1c41b
VS
130102011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13011
13012 Flush caches on DMA memory.
13013
13014 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
13015 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
13016 (grub_dma_free): Likewise.
13017 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
13018
91bbcc0c
VS
130192011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13020
13021 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
13022 to avoid asm treating ld and sd as macros.
13023
60ddfad3
VS
130242011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13025
13026 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
13027 decompressor.
13028
a298aa04
VS
130292011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13030
13031 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
13032 grub_decompress_core since later would fail if grub_decompress_core
13033 is too far.
13034
9b44feca
VS
130352011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13036
13037 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
13038 R_MIPS_JALR since it's used by newer compiler.
13039
56dbe7b4
VS
130402011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
13043
52856af2
VS
130442011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13045
13046 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
13047 file_path to 0 for surety.
13048 (grub_chainloader_boot): Set exit_data to NULL.
13049 Unset the loader once done.
13050 (grub_cmd_chainloader): Fix confusing error message if file is empty.
13051
9c9bfc6d
VS
130522011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13053
13054 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
13055 unknown key into a dprintf.
13056
dd94a3df
VS
130572011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13058
13059 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
13060 on first non-existant partition.
13061
fa68d99c
VS
130622011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13063
13064 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
13065 openning fails.
13066 Reported by: Mark Korenberg.
13067
157effb7
VS
130682011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
13071 overflow.
13072
ea75312f
VS
130732011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13074
13075 * util/grub-mkimage.c (main): Explicitely flush and sync the output
13076 before closing to ensure that it will be readable by grub-setup.
13077
072b5d31
VS
130782011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13079
13080 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
13081 (devpath_1): Use MAKE_PIWG_PATH.
13082 (devpath_2): Likewise.
13083 (devpath_3): Likewise.
13084 (devpath_4): Likewise.
13085 (devpath_5): Likewise.
13086 (devpath_6): Likewise.
13087
13088 The appleldr.mod was checked that to be binary identical to previous
13089 version.
13090
7fae0051
Z
130912011-05-05 Zach <mikezackles>
13092
13093 Support 2010 Macbooks.
13094
13095 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13096 (devs): Add devpath_6.
13097
7c515bee
VS
130982011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13099
13100 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13101 /dev/random. /dev/urandom is good enough for our purposes (salting).
13102
ed660bd8
VS
131032011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13104
13105 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13106
ee5614b7
VS
131072011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13108
13109 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13110 hexadecimal.
13111
664889a6
VS
131122011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13115 and not 0 on failure.
13116
bd405bbc
CW
131172011-05-03 Colin Watson <cjwatson@ubuntu.com>
13118
13119 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13120 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13121 disk; otherwise grub_fs_probe will not fall back to the next
13122 filesystem.
13123 (grub_pxefs_open): Likewise, for consistency.
13124 Reported and tested by: Ezekiel Grave.
13125
4ebff753
CW
131262011-05-03 Colin Watson <cjwatson@ubuntu.com>
13127
13128 * tests/partmap_test.in: Don't hardcode path to parted.
13129 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13130
8f942553
CW
131312011-05-01 Colin Watson <cjwatson@ubuntu.com>
13132
13133 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13134 of `ls' to find out which devices are available.
13135
3c62402d
VS
131362011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13137
13138 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13139 than source address for efi mmap buffer.
13140
723f63f2
VS
131412011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13142
13143 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13144 wrong action on non-detecting the magic.
13145
68797f92
VS
131462011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13147
13148 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13149 already supplied by another part of the module (fixes compilation on
13150 FreeBSD).
13151
6be8715d
VS
131522011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13153
13154 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13155 match the one used by mdadm.
13156
e91dba5b
CW
131572011-04-21 Colin Watson <cjwatson@ubuntu.com>
13158
13159 * po/README: Add instructions for creating po/LINGUAS.
13160
c85140b3
CW
131612011-04-21 Colin Watson <cjwatson@ubuntu.com>
13162
13163 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13164 #551428.
13165
13166 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13167 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13168 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13169 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13170 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13171 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13172 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13173 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13174 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13175 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13176 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13177 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13178 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13179 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13180 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13181 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13182 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13183 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13184 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13185 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13186 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13187 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13188
92051871
CW
131892011-04-21 Colin Watson <cjwatson@ubuntu.com>
13190
13191 * grub-core/kern/emu/getroot.c
13192 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13193 test that was incorrectly reintroduced in r3214.
13194 Reported by: Ian Dall. Fixes Savannah bug #33133.
13195
b13f79a4
CW
131962011-04-21 Colin Watson <cjwatson@ubuntu.com>
13197
13198 Fix stack pointer handling in 16-bit relocator.
13199
13200 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13201 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13202 Fixes Ubuntu bug #683904.
13203
9b710a88
VS
132042011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13205
13206 * configure.ac: Bump version to 1.99~rc2.
13207
d97e7b59
VS
132082011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13209
13210 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13211 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13212 * grub-core/lib/x86_64/setjmp.S: Likewise.
13213 * grub-core/lib/mips/setjmp.S: Likewise.
13214 * grub-core/lib/powerpc/setjmp.S: Likewise.
13215 * grub-core/lib/sparc64/setjmp.S: Likewise.
13216
0624551c
VS
132172011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13218
13219 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13220 * grub-core/lib/efi/datetime.c: Likewise.
13221
e8f28d4c
VS
132222011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13223
13224 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13225 New function.
13226 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13227 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13228 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13229
bba79a15
VS
132302011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13231
13232 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13233 bitmap.
13234 (grub_gfxterm_term_init): Likewise.
13235
abc474ef
VS
132362011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13237
13238 Take into account the decorations the computing menu entry width.
13239
13240 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13241 (grub_gfxmenu_create_box): Register get_border_width.
13242 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13243 if available.
13244 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13245 get_border_width.
13246
e74b3947
EP
132472011-04-18 Endres Puschner <code@e7p.de>
13248
13249 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13250 Don't skip first class.
13251
34faa595
VS
132522011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13253
13254 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13255 chunks.
13256 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13257
93a777e3
VS
132582011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13259
13260 Complete 64-bit division support.
13261
13262 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13263 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13264 * include/grub/misc.h (grub_divmod64): Rename to ...
13265 (grub_divmod64_full): ... this.
13266 (grub_divmod64): New inline function.
13267
a5102d94
VS
132682011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13269
13270 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13271
f3fb7b36
VS
132722011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13273
13274 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13275 performing the necessary test.
13276
9ac718b0
VS
132772011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13278
13279 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13280 (kfreebsd.elf): Likewise.
13281 (pc-chainloader.elf): Likewise.
13282 (ntldr.elf): Likewise.
13283
50d2cc5a
VS
132842011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13285
13286 Identify RAID by its UUID rather than (guessed) name.
13287
13288 * grub-core/disk/raid.c (ascii2hex): New function.
13289 (grub_raid_open): Accept mduuid/%s specification.
13290 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13291 (get_mdadm_uuid): ... this.
13292 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13293
e03f7bea
VS
132942011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13295
13296 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13297 to negative size.
13298
e74c3112
CW
132992011-04-13 Colin Watson <cjwatson@ubuntu.com>
13300
13301 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13302 btrfs subvolume.
13303 * util/grub.d/20_linux_xen.in: Likewise.
13304
78fa584f
CW
133052011-04-13 Colin Watson <cjwatson@ubuntu.com>
13306
13307 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13308 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13309
13310 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13311 Build a list of relevant visible mounts using the mnt_id and
13312 parent_mnt_id fields, and then scan that list at the end.
13313
9d5f8162
CW
133142011-04-12 Colin Watson <cjwatson@ubuntu.com>
13315
13316 * docs/grub.texi (normal): New section.
13317 (normal_exit): New section.
13318 (Embedded configuration): Add reference to normal.
13319 (GRUB only offers a rescue shell): Likewise.
13320 * docs/grub-dev.texi (Error Handling): Fix typo.
13321
09a9d66f
CW
133222011-04-12 Colin Watson <cjwatson@ubuntu.com>
13323
13324 * NEWS: Drop obsolete entry about probe-only btrfs support.
13325
0c676933
CW
133262011-04-12 Colin Watson <cjwatson@ubuntu.com>
13327
13328 * util/import_gcry.py: Fix typo.
13329
ec9f5e0d
VS
133302011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13331
13332 * NEWS: Add btrfs support.
13333
fe6b2cba
VS
133342011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
133352011-04-11 Colin Watson <cjwatson@ubuntu.com>
13336
13337 BtrFS support. Written by me (Vladimir) with important bugfixes and
13338 even more important testing by Colin.
13339
13340 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13341 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13342 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13343 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13344 mem_input_off and mem_input. All users updated to accept in-RAM input.
13345 (gzio_seek): New function.
13346 (test_zlib_header): Likewise.
13347 (grub_gzio_read): Likewise.
13348 (grub_zlib_decompress): Likewise.
13349 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13350 Accept partial and non-virtual mounts.
13351 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13352 avoid receiving /dev/dm-X as device.
13353 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13354 Handle bind and partial mounts.
13355 * grub-core/lib/crc.c: New file.
13356 * include/grub/deflate.h: Likewise.
13357 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13358 proto.
13359 * include/grub/lib/crc.h: New file.
13360
e745cf0c
VS
133612011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13362
13363 Implement automatic module license checking according to new GNU
13364 guidelines.
13365
13366 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13367 (grub_dl_load_core): Use grub_dl_check_license.
13368 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13369 (GRUB_MOD_LICENSE): Likewise.
13370 (GRUB_MOD_DUAL_LICENSE): Likewise.
13371 All modules updated.
13372
2a9bc016
CW
133732011-04-11 Colin Watson <cjwatson@ubuntu.com>
13374
13375 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13376 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13377 loaders.
13378 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13379
8a3bc88e
VS
133802011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13381
13382 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13383
af869a4a
VS
133842011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13385
13386 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13387 failed.
13388
9ee8d94f
VS
133892011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13390
13391 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13392 parenthesis in the middle of the filename.
13393
b01abe3e
VS
133942011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13395
13396 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13397 rather than trying to put initrd way too high.
13398 Reported by: Ryan Lortie <desrt@desrt.ca>
13399
335bda1e
VS
134002011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13401
13402 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13403 improperly removed string.
13404
5ca1a64d
VS
134052011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13406
13407 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13408 is_disk.
13409 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13410 (open_device) Likewise.
13411 (grub_util_biosdisk_close): Likewise.
d8ce9995 13412 Reported by: Mark Korenberg.
5ca1a64d 13413
cbac5b1e
AK
134142011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13415
13416 * util/grub-mkconfig_lib.in: Add missing quotes.
13417
088cdb65
CW
134182011-04-10 Colin Watson <cjwatson@ubuntu.com>
13419
13420 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13421 is NULL.
13422
8b8a81fa
VS
134232011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 Dynamically count the number of lines for the lower banner.
13426
13427 * grub-core/normal/menu_entry.c (per_term_screen): New member
13428 num_entries.
13429 (print_down): Use num_entries.
13430 (update_screen): Likewise.
13431 (grub_menu_entry_run): Set num_entries.
13432 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13433 num_entries.
13434 (grub_print_message_indented): Move real part to ...
13435 (grub_print_message_indented_real): ... here. Additional argument
13436 dry_run.
13437 (draw_border): Additional argument num_entries.
13438 (print_message): Additional argument dry_run.
13439 (print_entries): Receive menu viewer data.
13440 (grub_menu_init_page): New argment num_entries.
13441 (menu_text_set_chosen_entry): Use num_entries.
13442 (grub_menu_try_text): Likewise.
13443 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13444 All users updated.
13445 (grub_ucs4_count_lines): New function.
13446 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13447 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13448 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13449 (grub_term_border_height): Likewise.
13450 (grub_term_num_entries): Likewise.
13451
277f955b
VS
134522011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13453
13454 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13455 Remove now unused string.
13456
536ce85a
CW
134572011-04-09 Colin Watson <cjwatson@ubuntu.com>
13458
13459 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13460 build system.
13461 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13462
13463 (Comment): Fix typo.
13464 (Getting started): General copy-editing.
13465 (Typical Development Experience): Likewise.
13466 (Error Handling): Likewise.
13467 (Video API): Likewise.
13468
2cf09e32
CW
134692011-04-09 Colin Watson <cjwatson@ubuntu.com>
13470
13471 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13472 throughout.
13473
1ec652f4
VS
134742011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13475
13476 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13477 directory.
13478
2c583728
CW
134792011-04-08 Colin Watson <cjwatson@ubuntu.com>
13480
13481 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13482 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13483 "development".
13484
d7a565e9
VS
134852011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13486
13487 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13488 grub_strcpy since the lines aren't necessarily 0-terminated.
13489
7c2e4909
VS
134902011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13491
13492 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13493 root on legacy.
13494
34c09785
VS
134952011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13496
13497 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13498 (GRUB_MOD_INIT): DEVICE isn't optional.
13499
6a6f8058
VS
135002011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13501
13502 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13503 word on new line if it's too long anyway. Fixes a hang.
13504
2e335e90
VS
135052011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13506
13507 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13508 const.
13509 * util/grub-setup.c (main): Reuse md device name if available.
13510 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13511 not GRUB name as argument.
13512 Based on patch by: Florian Wagner <fwagner>.
13513
10a7a867
VS
135142011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13515
13516 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13517 Place mbi on low memory for better compatibility.
13518
7a3d6cd9
VS
135192011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13520
13521 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13522
18dd6b47
VS
135232011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
135242011-04-08 Colin Watson <cjwatson@ubuntu.com>
13525
13526 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 13527 * conf/Makefile.common: Likewise.
18dd6b47 13528
3c0e3f14
VS
135292011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13530
f7148863
VS
13531 * grub-core/normal/menu.c: Add missing include.
13532
135332011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13534
13535 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 13536
6d1fa41f
MZ
135372011-04-08 Martin Zuther <mzuther@mzuther.de>
13538
13539 * util/grub-mkconfig.in: Ignore emacsen backup.
13540
478182a8
VS
135412011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13542
13543 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13544 on open.
13545 (grub_util_biosdisk_close): Likewise.
13546
72a89a54
VS
135472011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13548
13549 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13550 const attribute and use grub_isdigit.
13551
b5ebecfa
A
135522011-04-06 Andrey <dev_null@ukr.net>
13553
13554 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13555 gcc warning.
13556
7755f66e
VS
135572011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13558
13559 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13560 useful grub_dprintf's.
13561
461121ff
VS
135622011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13563
13564 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13565
2a961775
VS
135662011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13567
13568 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13569
adf594cc
VS
135702011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13571
13572 Output errors if theme loading failed.
13573
13574 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13575 grub_gfxterm_fullscreen on error paths to ...
13576 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13577 theme loading error.
13578
665900a3
VS
135792011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13580
13581 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13582 space for older compilers.
13583 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13584
a562b479
VS
135852011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13586
13587 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13588 and report them as not RAID members since they are useless for GRUB.
13589 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13590
850e9373
VS
135912011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13592
13593 Increase LVM implementation robustness in order not to crash on
13594 configurations like pvmove. Previously code assumed that in some places
13595 only lvs or only pvs are used whereas it seems that they are used
13596 interchangeably.
13597
13598 * grub-core/disk/lvm.c (read_node): New function.
13599 (read_lv): Use read_node.
13600 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13601 Match volumes only at the end when all lvs are found. Take both
13602 pvs (first) and lvs (second) into account.
13603 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13604 mirror_* into node_*. All users updated.
13605 (grub_lvm_stripe): Merge this ...
13606 (grub_lvm_mirror): ... and this ...
13607 (grub_lvm_node): ... into this. All users updated.
13608
6f332153
VS
136092011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13610
13611 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13612 of function to allow further scanning for LVMs.
13613
829ea451
VS
136142011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13615
13616 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13617 on failed seek as it breaks open fd reusage.
13618
09ceb9a5
VS
136192011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13620
13621 * util/grub-install.in: Add a recommendation to use --recheck before
13622 reporting bugs.
13623
67e11623
VS
136242011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13625
13626 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13627 are obtained.
13628
caee5efd
VS
136292011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13630
13631 GRUB developper manual based on existing Internals section and
13632 contributions by the various authors with active copyright assignment.
13633
13634 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13635 * docs/font_char_metrics.png: New file.
13636 * docs/font_char_metrics.txt: Likewise.
13637 * docs/grub-dev.texi: Likewise.
13638 * docs/grub.texi (Internals): Move from here ...
13639 * docs/grub-dev.texi: ... here.
13640
2cccc747
CW
136412011-04-01 Colin Watson <cjwatson@ubuntu.com>
13642
13643 Store the loopback device as data on loopback grub_disk structures,
13644 rather than the file it points to. This fixes use of freed memory
13645 if an existing loopback device is replaced.
13646
13647 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13648 disk->data, not dev->file.
13649 (grub_loopback_read): Adjust file assignment to match.
13650 Fixes Ubuntu bug #742967.
13651
186ae367
CW
136522011-04-01 Colin Watson <cjwatson@ubuntu.com>
13653
13654 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13655 when replacing an existing device.
13656
cfed2ad0
VS
136572011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13658
13659 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13660 memory corruptions.
13661
13662 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13663 unsigned.
13664 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13665 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13666 (grub_jfs_read_inode): Likewise.
13667 (grub_jfs_opendir): Likewise. Remove now useless casts.
13668 (grub_jfs_getent): Likewise.
13669 Make ino a grub_uint32_t rather than int.
13670 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13671 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13672 division and module with bit operations.
13673 (grub_jfs_find_file): Make ino a grub_uint32_t.
13674 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13675
05d2ed32
CW
136762011-04-01 Colin Watson <cjwatson@ubuntu.com>
13677
13678 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13679 warning. (This was in fact always initialised before use, but GCC
13680 wasn't smart enough to prove that.)
13681 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13682
91dc6073
VS
136832011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13684
13685 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13686 stack alignment.
13687 (efi_wrap_1): Likewise.
13688 (efi_wrap_2): Likewise.
13689 (efi_wrap_3): Likewise.
13690 (efi_wrap_4): Likewise.
13691 (efi_wrap_5): Likewise.
13692 (efi_wrap_6): Likewise.
13693 (efi_wrap_10): Likewise.
13694 Based on information by: Red Hat/Peter Jones.
13695
a8afc1d1
CW
136962011-03-31 Colin Watson <cjwatson@ubuntu.com>
13697
13698 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13699 set-but-not-used variable.
13700
a826cc7d
CW
137012011-03-31 Colin Watson <cjwatson@ubuntu.com>
13702
13703 * docs/grub.texi (Simple configuration): Be more explicit about
13704 GRUB_DEFAULT, and add an example.
13705 Reported by: Leslie Rhorer.
13706
875b67ba
CW
137072011-03-30 Colin Watson <cjwatson@ubuntu.com>
13708
13709 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13710 shell".
13711
fd7cd914
AS
137122011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13713
13714 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13715 * util/grub.d/20_linux_xen.in: Likewise.
13716
090b1b6a
VS
137172011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13718
13719 * util/grub.d/10_linux.in: Try alternative config filenames where
13720 we parse config file.
13721 * util/grub.d/20_linux_xen.in: Likewise.
13722
baad885c
AS
137232011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13724
13725 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13726 * util/grub.d/20_linux_xen.in: Likewise.
13727
241e41f5
VS
137282011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13729
13730 * grub-core/disk/raid.c (insert_array): Add few potentially
13731 useful grub_util_info.
13732 (grub_raid_register): Likewise.
13733
56445fb2
VS
137342011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13735
13736 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13737 Preserve partition number in mdadm code path.
13738
c871b1c6
VS
137392011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13740
13741 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13742 few potentially useful grub_util_info.
13743
5e631b4f
CW
137442011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13745
13746 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13747
2d5d0333
CW
137482011-03-30 Colin Watson <cjwatson@ubuntu.com>
13749
13750 * docs/grub.texi (default): Use @example rather than nested
13751 itemized lists to avoid breaking gendocs.
13752
3d7ed04e
CW
137532011-03-30 Colin Watson <cjwatson@ubuntu.com>
13754
13755 * docs/grub.texi (Future): Update.
13756
abf04200 137572011-03-30 Colin Watson <cjwatson@ubuntu.com>
13758
13759 * docs/grub.texi (Environment): New chapter.
13760 (Changes from GRUB Legacy): Link to "Environment block" section for
13761 details of limitations.
13762 (Simple configuration): Likewise. Link to documentation of gfxmode
13763 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13764 respectively.
13765 (Shell-like scripting): Note that normal variables are stored in the
13766 environment.
13767 (gettext): Link to documentation of lang and locale_dir.
13768 (list_env): New section.
13769 (load_env): New section.
13770 (save_env): New section.
13771
13772 (Reporting bugs): Fix typo.
13773
e1ad0edd
VS
137742011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13775
13776 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13777 the example.
13778
5d803174
VS
137792011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 * grub-core/term/at_keyboard.c (set_scancodes)
13782 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13783
2a2da1d0
CW
137842011-03-30 Colin Watson <cjwatson@ubuntu.com>
13785
13786 * docs/grub.texi (Menu-specific commands): Remove some semantics
13787 that were true in GRUB Legacy but not in GRUB 2.
13788 (submenu): New section.
13789 (false): New section.
13790 (read): New section.
13791 (true): New section.
13792
a7527639
CW
137932011-03-30 Colin Watson <cjwatson@ubuntu.com>
13794
13795 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13796
137972011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
13798
13799 * docs/grub.texi (Simple configuration): Explain some of the
13800 current limitations of grub-mkconfig.
8a748df2 13801 Reported by: Leslie Rhorer.
e30af029 13802
fc858482
VS
138032011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13804
13805 Old macs search for boot.efi rather than for bootia32.efi.
13806
13807 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13808 * util/grub-mkrescue.in: Likewise.
13809 Suggested by: Peter Jones.
13810
e1eb511d
VS
138112011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13812
13813 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13814
70e75364
VS
138152011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13818 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13819 (grub_lvm_mirror): New struct.
13820 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13821 (grub_lvm_iterate): Iterate only visible volumes.
13822 (grub_lvm_read): Factor out to ..
13823 (read_lv): ... this. Support mirrors.
13824 (grub_lvm_read): New wrapper function.
13825 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13826 stripped or mirrored.
13827
fc18f6a3
VS
138282011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13829
13830 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13831
5c650f4c
CW
138322011-03-29 Colin Watson <cjwatson@ubuntu.com>
13833
13834 * docs/grub.texi (loopback): New section.
13835
61d7156b
CW
138362011-03-29 Colin Watson <cjwatson@ubuntu.com>
13837
13838 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13839 removed -p option.
13840
994b8264
CW
138412011-03-29 Colin Watson <cjwatson@ubuntu.com>
13842
13843 * docs/grub.texi (BIOS installation): New section, partly based on
13844 previous text in other sections.
13845 (Installing GRUB using grub-install): Replace BIOS discussion with a
13846 cross-reference.
13847 (Images): Likewise.
13848
9e4d19e0
VS
138492011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13852 [HAVE_DIOCGDINFO]: Add safety checks.
13853
a307c0b2
VS
138542011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13855
13856 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13857 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13858
b4db4f39
CW
138592011-03-29 Colin Watson <cjwatson@ubuntu.com>
13860
13861 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13862 real_sb->size is zero (e.g. RAID-0), get the disk size from
13863 real_sb->data_size instead.
13864 Fixes Ubuntu bug #743136.
13865
35e5f84c
VS
138662011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13867
13868 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13869 printf clauses for printing size and start.
13870
d2e29d81
VS
138712011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13872
13873 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13874 Reported and tested by: Timothy Nikkel.
13875
ed5587af
VS
138762011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13877
13878 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13879 (dirty_region_add_real): ... this.
13880 (dirty_region_add): Don't discard margin refresh when performing
13881 scheduled repaint.
13882
a1dc717c
VS
138832011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13884
13885 * grub-core/lib/relocator.c (allocate_regstart)
13886 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13887 terminals are capabple of malloc-free operation.
13888 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13889 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13890
9f3677d3
VS
138912011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13892
13893 * util/grub-setup.c: Copy the partition table zone if floppy support
13894 is disabled, even if no partition table is found.
13895
13896 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13897 during POST if an invalid partition table is contained in the PBR
13898 of the active partition when GRUB is installed to a partition.
13899
24148725
CW
139002011-03-28 Colin Watson <cjwatson@debian.org>
13901
13902 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13903 comment.
13904
f329eda7
CW
139052011-03-28 Colin Watson <cjwatson@debian.org>
13906
13907 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13908 to be specific about what kind of RAID device we're scanning for.
13909
c482ad98
SG
139102011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13911
13912 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13913 return freed string.
13914
5ee04984
VS
139152011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13916
13917 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13918
f4727da9
VS
139192011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13920
13921 Use libgeom on FreeBSD to detect partitions.
13922
13923 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13924 (grub-mkrelpath): Likewise.
13925 (grub-script-check): Likewise.
13926 (grub-editenv): Likewise.
13927 (grub-mkpasswd-pbkdf2): Likewise.
13928 (grub-fstest): Likewise.
13929 (grub-mkfont): Likewise.
13930 (grub-mkdevicemap): Likewise.
13931 (grub-probe): Likewise.
13932 (grub-setup): Likewise.
13933 (grub-ofpathname): Likewise.
13934 (grub-mklayout): Likewise.
13935 (example_unit_test): Likewise.
13936 (grub-menulst2cfg): Likewise.
13937 * grub-core/Makefile.core.def (grub-emu): Likewise.
13938 (grub-emu-lite): Likewise.
13939 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13940 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13941 define HAVE_DIOCGDINFO.
13942 (follow_geom_up) [FreeBSD]: New function.
13943 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13944 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13945 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13946 unconditionally of HAVE_DIOCGDINFO.
13947
82fe6c75
VS
139482011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13949
13950 Fix FreeBSD compilation problem.
13951
13952 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13953 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13954
4c6c9431
CW
139552011-03-24 Colin Watson <cjwatson@ubuntu.com>
13956
13957 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13958 Switch back to page zero before loading a kernel, since some kernel
13959 drivers expect that.
13960 Thanks to: Felix Kuehling.
13961
c7064d94
VS
139622011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13963
13964 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13965 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13966 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13967
3f71cded
VS
139682011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13969
13970 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13971 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13972
ef6de21a
VS
139732011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13974
13975 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13976 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13977 malloc is disabled.
13978
8bc66a2c
VS
139792011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13980
13981 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13982 for modules headers when counting the needed allocation size.
13983
5657722c
VS
139842011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13985
13986 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13987 if no ASCII character is found to prevent crash.
13988
41a85f55
AK
139892011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13990
13991 * grub-core/video/bitmap.c (match_extension): Ignore case.
13992
59e1e5f1
VS
139932011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13994
13995 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13996
bd4d051a
VS
139972011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13998
13999 * grub-core/script/parser.y: Declare "time" as valid argument.
14000
bae7fcc1
PJ
140012011-03-23 Peter Jones <pjones@redhat.com>
14002
14003 Fix incorrect assert failure reporting.
14004
14005 * grub-core/tests/example_functional_test.c (example_test): Add
14006 a failure comment.
14007 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
14008 (failure_start): ...this. Check that malloc succeeded.
14009 Don't call xvasprintf. Return failure struct.
14010 (failure_append_vtext): New function.
14011 (failure_append_text): Likewise.
14012 (add_failure): Likewise.
14013 (grub_test_assert_helper): Likewise.
14014 * include/grub/test.h (grub_test_assert_helper): New declaration.
14015 (grub_test_assert): Macro rewritten.
14016
537dc9be
VS
140172011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
14020
fa3e01bf
VS
140212011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14022
14023 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
14024
b1d28404
VS
140252011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14026
14027 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
14028 into GRUB-style one.
14029
2e3e2e09
VS
140302011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14031
14032 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
14033 error and not grub_errno.
14034 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
14035
ed57e557
VS
140362011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14037
14038 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
14039 GRUB_USB_SPEED_NONE in case of failure and not the error code.
14040
d1611f01
VS
140412011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14042
14043 * grub-core/efiemu/i386/pc/cfgtables.c
14044 (grub_machine_efiemu_init_tables): Make declaration a prototype.
14045 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
14046 (grub_xnu_unlock): Likewise.
14047 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
14048
7d4e39d6
VS
140492011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14050
14051 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
14052 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
14053 * grub-core/commands/hashsum.c (aliases): Likewise.
14054 * grub-core/commands/setpci.c (pci_registers): Likewise.
14055 * grub-core/disk/usbms.c (attach_hook): Likewise.
14056 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
14057 (zio_checksum_table): Likewise.
14058 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
14059 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
14060 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
14061 * grub-core/lib/relocator.c (leftovers): Likewise.
14062 (extra_blocks): Likewise.
14063 * grub-core/loader/i386/bsd.c (relocator): Likewise.
14064 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
14065 (modules_last): Likewise.
14066 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
14067 (devices): Likewise.
14068 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
14069 (modules_last): Likewise.
14070 * grub-core/normal/auth.c (users): Likewise.
14071 * grub-core/normal/context.c (initial_menu): Likewise.
14072 (current_menu): Likewise.
14073 * grub-core/normal/crypto.c (crypto_specs): Likewise.
14074 * grub-core/term/serial.c (grub_serial_ports): Likewise.
14075 (grub_serial_terminfo_input_template): Likewise.
14076 (grub_serial_terminfo_output_template): Likewise.
14077 (grub_serial_terminfo_input): Likewise.
14078 (grub_serial_terminfo_output): Likewise.
14079 (registered): Likewise.
14080 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
14081
40fc4659
VS
140822011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14083
14084 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
14085 grub_video_mode_type_t.
14086 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
14087 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
14088 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14089
2da48d28
VS
140902011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14091
14092 * util/grub-install.in: Correct the x86-64 name as x86_64.
14093
9b43bf39
CW
140942011-03-11 Colin Watson <cjwatson@ubuntu.com>
14095
14096 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14097 initial chunk read from the kernel always includes GRUB's multiboot
14098 header, which is now outside the first sector.
14099
be1a7ce0
CW
141002011-03-09 Colin Watson <cjwatson@ubuntu.com>
14101
14102 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14103 cached mmap_size, so that this works correctly when called multiple
14104 times.
14105 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14106
83a3c48d
CW
141072011-03-09 Colin Watson <cjwatson@ubuntu.com>
14108
14109 * docs/grub.texi (Simple configuration): Tidy up formatting.
14110
57d75699
SJ
141112011-03-07 Szymon Janc <szymon@janc.net.pl>
14112
14113 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14114 Set-but-not-used variable removed.
14115
028501a0
VS
141162011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 Workaround yet another IEEE1275 bug.
14119
14120 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14121 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14122 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14123 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14124 is set.
14125 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14126 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14127
d998657d
VS
141282011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14129
14130 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14131 error.
14132
fee7cdd4
CW
141332011-02-11 Colin Watson <cjwatson@ubuntu.com>
14134
14135 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14136 empty, since in that case we can only generate either nothing or a
14137 syntactically invalid configuration file.
14138 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14139
97286eb5
CW
141402011-02-09 Colin Watson <cjwatson@ubuntu.com>
14141
14142 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14143 (Making a GRUB bootable CD-ROM): Likewise.
14144 (Invoking grub-mkrescue): New section.
14145 Reported by: Yann Dirson. Fixes Debian bug #612585.
14146
22b28eb3
CW
141472011-02-09 Colin Watson <cjwatson@ubuntu.com>
14148
14149 * util/grub-install.in: Remove unnecessary brackets from tr
14150 arguments.
14151 * util/grub.d/10_hurd.in: Likewise.
14152 * util/grub.d/10_kfreebsd.in: Likewise.
14153 * util/grub.d/10_linux.in: Likewise.
14154 * util/grub.d/20_linux_xen.in: Likewise.
14155 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14156
7e735e43
CW
141572011-02-08 Colin Watson <cjwatson@ubuntu.com>
14158
14159 * include/grub/file.h (not_easly_seekable): Rename to ...
14160 (not_easily_seekable): ... this. Update all users.
14161
800f1881
CW
141622011-01-28 Colin Watson <cjwatson@ubuntu.com>
14163
14164 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14165 grub-mkrescue.
14166
3281d3d6
VS
141672011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14168
14169 * util/grub-mkimage.c (generate_image): Refuse to create the images
14170 bigger than the actual flash (512K) in Loongson machines. 512K is also
14171 the biggest chip supported by them.
14172
3533413c
VS
141732011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14174
14175 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14176
73ae4f4f
VS
141772011-01-22 Anthony DeRobertis <anthony@derobert.net>
14178
14179 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14180 super_offset field.
14181
37f4f608
VS
141822011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14183
14184 * util/grub-install.in: Ignore install device on platforms
14185 where it doesn't make sense. Always use UUIDs except on pc, efi and
14186 sparc64.
14187 Reported by: Daniel Kahn Gillmor.
14188
03a4ccb5
VS
141892011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14190
14191 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14192
ffc8f4d8
VS
141932011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14194
14195 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14196 (iterate_real): Don't rely on partition being non-NULL.
14197
80f23be7
VS
141982011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14199
14200 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14201 supported platforms. Put a compile time assert for this rather than
14202 generate a warning with 32-bit shift.
14203
5d4f4dd5
VS
142042011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14205
14206 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14207 logical expression more readable.
14208
e489601a
VS
142092011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14210
14211 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14212 even if some elements have a name.
14213 Reported by: Alexander GQ Gerasiov.
14214
96e0a6ea
CW
142152011-01-22 Colin Watson <cjwatson@ubuntu.com>
14216
14217 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14218 path unreadable if `grub-probe -t abstraction' fails, for example if
14219 memberlist fails on an LVM volume group.
14220 Reported by: Darius Jahandarie.
14221
81431e2b
CW
142222011-01-22 Colin Watson <cjwatson@ubuntu.com>
14223
14224 * docs/grub.texi (Simple configuration): Document
14225 GRUB_PRELOAD_MODULES.
14226
5e79d66a
CW
142272011-01-17 Colin Watson <cjwatson@ubuntu.com>
14228
14229 * .bzrignore: Remove nonexistent grub-pbkdf2.
14230
646ada34
VS
142312011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14232
14233 * configure.ac: Bump version to 1.99~rc1.
14234
04360337
VS
142352011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14236
14237 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14238 for safety.
14239
46c9db88
VS
142402011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14241
14242 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14243 module.
14244
142452011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
14246
14247 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14248
4fbf1852
VS
142492011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14250
14251 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14252 diskdevid.
14253
f1632d4d
VS
142542011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14255
14256 Fix compilation on cygwin.
14257
14258 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14259 -R .drectve on cygwin.
14260 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14261 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14262 (COND_CYGWIN): New condition.
14263 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14264 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14265 not @TARGET_OBJ2ELF@.
14266 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14267 type to determine whether aux is to be used.
14268
0b5e127b
VS
142692011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14270
14271 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14272 realpath'ed device string.
14273 Handle floppy (somewhat).
14274 Issue error in unknown case rather than garbage.
14275 Reported by: Axel Beckert.
14276
173b71e9
VS
142772011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14278
14279 * util/grub.d/00_header.in (load_video): Handle the case when no video
14280 drivers available.
14281 Thanks to: Axel Beckert.
14282
f8f479db
VS
142832011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14284
14285 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14286 variable. Fixes problem on big endian platforms.
14287
8fc0a245
VS
142882011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14289
14290 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14291 It doesn't work well there.
14292
b8494fbe
VS
142932011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14294
14295 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14296 warning.
14297 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14298 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14299 counter.
14300
b44a558c
VS
143012011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14302
14303 Use alias->path rather than buggy "canon".
14304
14305 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14306 (ofdisk_hash_add): New argument curcan. All users updated.
14307
51fa856c
CW
143082011-01-11 Colin Watson <cjwatson@ubuntu.com>
14309
14310 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14311
9da068a5
VS
143122011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14313
14314 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14315 loadmask before doing any calculations. Use correct type for offset.
14316 (grub_linux_load64): Likewise.
14317
86205c94
CW
143182011-01-11 Colin Watson <cjwatson@ubuntu.com>
14319
14320 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14321 with NULL.
14322 (console_grub_equivalences_unshift): Likewise.
14323 Reported by: Daniel Dehennin.
14324
4531a206
VS
143252011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14326
14327 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14328 (set_env_limn_ro): Likewise.
14329 (GRUB_MOD_INIT): Likewise.
14330 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14331 ARRAY_SIZE while on it.
14332 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14333 * grub-core/normal/context.c (grub_env_export): Move from here ...
14334 * grub-core/kern/env.c (grub_env_export): ... here.
14335 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14336 prefix.
14337 * grub-core/kern/main.c (grub_main): Export root and prefix.
14338 * include/grub/env.h (grub_env_export): Export.
14339 Reported by: Seth Goldberg.
14340
45146057
VS
143412011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14342
14343 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14344 Take into account space used by ELF sections and multiboot palette.
14345 Reported by: Grégoire Sutre.
14346
f093110b
VS
143472011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14348
14349 * BUGS: New file.
14350
3395fe52
VS
143512011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14352
14353 Pass more appropriate video id to Linux.
14354
14355 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14356 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14357 fill have_vga.
14358 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14359 shift params->lfb_size.
14360 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14361
c2fa6cbb
VS
143622011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14363
14364 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14365
b3ff6ff0
VS
143662011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14369 separator and pass bootpath/devid even if only one of them is available.
14370 Reported by: Seth Goldberg.
14371
ae67942e
VS
143722011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14373
14374 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14375 implementations bug on them.
14376
14377 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14378 memory.
14379 (filter_memory_map): Likewise.
14380
d570097a
VS
143812011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14382
14383 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14384 Reported by: nebuchadnezzar.
14385
a508e776
VS
143862011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14387
14388 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14389 Reported by: nebuchadnezzar.
14390
dcb883b1
VS
143912011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14392
14393 Submenu default support.
14394
14395 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14396 auto_boot. All users updated.
14397 Declared static.
14398 Handle chosen and default with submenus.
14399 (grub_menu_execute_with_fallback): Declared static.
14400 Don't notify failure if autobooted. Upper level does it.
14401 (menuentry_eq): New function.
14402 (get_entry_number): Use menuentry_eq.
14403 (show_menu): New parameter "autobooted". All users updated.
14404 (grub_show_menu): Likewise.
14405 * include/grub/normal.h (grub_show_menu): Likewise.
14406 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14407 (grub_menu_execute_with_fallback): Likewise.
14408
6fef99b4
VS
144092011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14410
14411 * util/grub-mklayout.c (usage): Update help text.
14412
47a77af5
VS
144132011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14414
14415 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14416
ce6bb3ee
VS
144172011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14418
14419 * util/grub-menulst2cfg.c (main): Trim the line.
14420
db87be2a
VS
144212011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14422
14423 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14424 (grub_machine_init): Don't check amount of low memory as reportedly
14425 INT 12h can be broken and if low memory is too low we wouldn't have
14426 gotten into grub_machine_init anyway.
14427
c49849cc
VS
144282011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14429
14430 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14431 (grub_machine_mmap_iterate): Take low memory into account
14432
b1969b30
VS
144332011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14434
14435 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14436 badfs.
14437 Reported by: TiCPU.
14438
cf0eaf13
VS
144392011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14440
14441 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14442 members errors.
14443
1f060f39
GS
144442011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14445
14446 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14447 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14448
a21e5672
GS
144492011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14450
14451 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14452 openbsd and netbsd types being in part_bsd module.
14453
c88172fa
VS
144542011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14455
14456 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14457 (_FILE_OFFSET_BITS): Likewise.
14458 Reported by: Seth Goldberg.
14459
53798c4b
GS
144602011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14461
14462 * configure.ac: Check for libdevmapper header.
14463
e7121b69
VS
144642011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14465
14466 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14467 avoid aliasing.
14468 (fzap_lookup): Likewise.
14469 (dnode_get): Likewise.
14470 (make_mdn): Likewise.
14471 (zfs_mount): Likewise.
14472 (fzap_iterate): Use temporary pointer to avoid aliasing.
14473 (grub_zfs_read): Likewise.
14474 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14475 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14476 pointers to avoid aliasing.
14477 (grub_cmd_xnu_kernel64): Likewise.
14478 (grub_xnu_load_driver): Likewise.
14479
fc836af9
VS
144802011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14483 aliasing warning.
14484 (grub_cmd_terminal_output): Likewise.
14485 Reported and tested by: Grégoire Sutre.
14486
f9f37648
VS
144872011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14488
14489 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14490 warning.
14491 Reported and tested by: Grégoire Sutre.
14492
ec1dfd63
VS
144932011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14494
14495 * configure.ac: Do CPU substitution even if it's specified explicitly.
14496 Reported and tested by: Alain Greppin.
14497
9462775a
VS
144982011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14499
14500 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14501 Reported and tested by: Alain Greppin.
14502
0fd48e35
VS
145032011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14504
14505 Satisfy some bison versions need for inttypes.h.
14506
14507 * grub-core/lib/posix_wrap/inttypes.h: New file.
14508 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14509 (int16_t): Likewise.
14510 (int32_t): Likewise.
14511 (int64_t): Likewise.
14512 Reported and tested by: Alain Greppin.
14513
43f1bc83
VS
145142011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14517 Silence spurious warning.
14518 Reported and tested by: Alain Greppin.
14519
64d1f041
SJ
145202011-01-07 Szymon Janc <szymon@janc.net.pl>
14521
14522 * docs/grub.texi (Support automatic decompression): Update with xz
14523 decompression support.
14524
25953e10
SJ
145252011-01-07 Szymon Janc <szymon@janc.net.pl>
14526
14527 Improve loaders' kernel command line handling.
14528
14529 * grub-core/lib/cmdline.c: New file.
14530 * include/grub/lib/cmdline.h: Likewise.
14531 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14532 grub_create_loader_cmdline to create kernel command line.
14533 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14534 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14535 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14536 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14537 (linux): Add lib/cmdline.c on common.
14538
e72d259f
VS
145392011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14540
14541 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14542 inopos might be unaligned.
14543
c0cf26da
VS
145442011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14545
14546 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14547 endian transformations.
14548 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14549 Based on report by: Doug Nazar.
14550
0ca09e6c
DN
145512011-01-07 Doug Nazar <nazard.michi@gmail.com>
14552
14553 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14554 array->members[i].start_sector.
14555 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14556
014b6806
VS
145572011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14558
14559 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14560 Reported and tested by: Grégoire Sutre.
14561
415502c2
CW
145622011-01-06 Colin Watson <cjwatson@ubuntu.com>
14563
14564 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14565 avoid causing test failures by clearing the screen.
14566
71b6a2b7
CW
145672011-01-06 Colin Watson <cjwatson@ubuntu.com>
14568
14569 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14570 Fix prefix check to handle the case where dir ends with a slash
14571 (most significantly, "/" itself).
14572 Reported by: Michael Vogt.
14573
b3f8d28a
VS
145742011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14575
14576 Run terminfo_cls on initing terminfo output to clear the screen and
14577 move the cursor to (0,0).
14578
14579 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14580 Call grub_terminfo_output_init.
14581 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14582 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14583 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14584
4c3e4f37
VS
145852011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14586
14587 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14588 only when needed.
14589
488f71f1
VS
145902011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14591
14592 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14593 CTRL.
14594
18a38098
VS
145952011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14596
14597 The E820 type 5 is BADRAM, not EXEC_CODE.
14598
14599 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14600 (GRUB_E820_BADRAM): New define.
14601 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14602 into reserved. Propagate BADRAM.
14603 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14604 (GRUB_E820_BADRAM): New define.
14605
9eae2084
VS
146062011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14607
14608 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14609 Ignore the memory post-4G.
14610 (grub_relocator_firmware_alloc_region): Additional debug statement.
14611
ebc71d28
VS
146122011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14613
14614 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14615 names.
14616 Reported by: David Pravec.
14617
446fa400
VS
146182011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14619
14620 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14621 BIOSes.
14622
a0159f37
VS
146232011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14624
14625 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14626 Prevent overflow.
14627 (grub_reed_solomon_recover): Likewise.
14628
e5146ca1
VS
146292011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14630
14631 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14632
146332011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
14634
14635 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14636 variable.
14637
5b1bdf12
CW
146382011-01-04 Colin Watson <cjwatson@ubuntu.com>
14639
14640 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14641 descriptions of extract_legacy_entries_source and
14642 extract_legacy_entries_configfile.
14643 Reported by: Seung Soo, Ha.
14644
99d925aa
CW
146452011-01-03 Colin Watson <cjwatson@ubuntu.com>
14646
14647 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14648 on devices that do not implement function 0.
14649
4af0504b
DV
146502011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14651
14652 * grub-core/fs/hfsplus.c: Make parent unsigned.
14653 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14654 overflows.
14655 (grub_hfsplus_cmp_extkey): Likewise
14656
469ee10a
VS
146572011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14658
14659 * util/grub-install.in: Correctly use bootloader_id and not
14660 GRUB_DISTRIBUTOR on efibootmgr line.
14661
323a8e9c
VS
146622011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14663
14664 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14665
1b394975
IC
146662010-12-31 Ian Campbell <ijc@hellion.org.uk>
14667
14668 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14669 Xen and reorder menu item wording to make it clearer that this entry
14670 will launch Xen. Print separate messages when loading Xen and
14671 Linux.
14672
275bff5f
VS
146732010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14674
14675 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14676 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14677 loop in case of incorrect amiga partmap.
14678
307806cb
VS
146792010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14680
14681 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14682 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14683 Reported by:EHeM.
14684
b12b923e
VS
146852010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14686
14687 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14688 spurious warning.
14689 Reported by: crocket
14690
14b48a19
VS
146912010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14692
14693 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14694 Preload EFIemu.
14695 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14696
693db2df
VS
146972010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14698
14699 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14700 is loaded
14701 (grub_cmd_xnu_kextdir): Likewise.
14702 (grub_cmd_xnu_splash): Likewise.
14703
c7638645
VS
147042010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14705
14706 Avoid using Reed-Solomon with 0 redundancy.
14707
14708 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14709 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14710 or 0 redundancy.
14711 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14712 (grub_reed_solomon_recover): Likewise.
14713
25dd4780
VS
147142010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14715
14716 Don't use disk subsystem in freebsd_boot.
14717
14718 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14719 (freebsd_biosdev): Likewise.
14720 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14721 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14722
0b2db943
VS
147232010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14724
14725 Handling of files of unknown size is currently limited. They can't be
14726 used e.g. for initrd or modules. Moreover gzip handling of not
14727 easily seekable files is buggy. Disable unknown file size for now. May
14728 be inefficient but works.
14729
14730 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14731 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14732
5c408d0f
MP
147332010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14734
14735 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14736 floppy probe.
14737
190a011a
JD
147382010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14739
14740 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14741
022d01b8
SL
147422010-12-25 Shea Levy <shlevy>
14743
14744 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14745
c4855fdc
VS
147462010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14747
14748 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14749 Windows Server 2008.
14750 Reported by: Devin Giddings.
14751
0354b867
VS
147522010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14753
14754 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14755 writing an error message because of async power management.
14756 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14757 (grub_reboot): Likewise.
14758
ab66c69f
JU
147592010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14760
14761 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14762 keep unit tests from failing when they shouldn't.
14763
1426ef35
CW
147642010-12-21 Colin Watson <cjwatson@ubuntu.com>
14765
14766 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14767 previous patch increased the size of the RS code by 20 bytes (at
14768 least with gcc-4.4), so increase this by 20 bytes to match.
14769 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14770
20641b6b
CW
147712010-12-21 Colin Watson <cjwatson@ubuntu.com>
14772
14773 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14774 scratch area. Make sure to initialise chosen in standalone mode as
14775 well as non-standalone.
14776 Reported by: Robert Hooker and Andy Whitcroft.
14777 Tested by: Andy Whitcroft.
14778
d060ad60
CW
147792010-12-21 Colin Watson <cjwatson@ubuntu.com>
14780
14781 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14782 constructing a new unescaped string and passing it to grub_xputs in
14783 one go, rather than passing characters to grub_printf one at a time.
14784
b889cfad
CW
147852010-12-21 Colin Watson <cjwatson@ubuntu.com>
14786
14787 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14788 initialising utf16.
14789
4e01b6c8
CW
147902010-12-21 Colin Watson <cjwatson@ubuntu.com>
14791
14792 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14793 comment. Add an extra layer of quotation, requiring the output of
14794 this function to be used in a printf format string.
14795 (gettext_printf): New function.
14796 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14797 Extract translatable strings from here-documents and use a temporary
14798 variable instead, so that xgettext can find them.
14799 * util/grub.d/10_kfreebsd.in: Likewise.
14800 * util/grub.d/10_linux.in: Likewise.
14801 * util/grub.d/20_linux_xen.in: Likewise.
14802
14803 * po/grub.d.sed: New file.
14804 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14805 arguments. Set c-format flags on all strings extracted from
14806 util/grub.d/ (xgettext refuses to include these itself for strings
14807 it extracted from a shell file, but these really are c-format).
14808
5318fe98
VS
148092010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14810
14811 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14812 Avoid next pointing to nowhere.
14813
6c85b743
VS
148142010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14815
14816 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14817 rather than assuming than rootblock is exactly in the middle.
14818 (grub_affs_label): Likewise.
14819
a2a08a35
VS
148202010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14821
14822 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14823 reserved_first_sector to 0.
14824 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14825 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14826 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14827
7059d1ec
VS
148282010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14829
14830 Fix handling of UTF-16 UDF labels.
14831
14832 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14833 (read_string): .. here.
14834 (grub_udf_label): Use read_string.
14835
30aff4cb
BC
148362010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14837
14838 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14839 editor under argument scope.
14840 Reported by: Jordan Uggla
14841
5cf86f4b
VS
148422010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14843
14844 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14845
32570200
CW
148462010-12-18 Colin Watson <cjwatson@ubuntu.com>
14847
14848 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14849 line, and other keys scroll an entire page (previous handling was
14850 for \r and \n to scroll a page and other keys to scroll two lines).
14851
e1dffcf2
VS
148522010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14853
14854 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14855 Set ptrdest to correct get_physical_target_address rather than
14856 incorrect get_virtual_current_address.
14857
b04298cf 148582010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14859
14860 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14861 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14862
5367ecd3
CW
148632010-12-10 Colin Watson <cjwatson@ubuntu.com>
14864
14865 * .bzrignore: Ignore grub-core/rs_decoder.S.
14866
1fb430f8
CW
148672010-12-10 Colin Watson <cjwatson@ubuntu.com>
14868
14869 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14870 .mo/.mo.gz opening sequence to ...
14871 (grub_mofile_open_lang): ... here.
14872 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14873 * util/grub.d/00_header.in (grub_lang): Include country part of
14874 locale.
14875 Reported by: Mario Limonciello.
14876
a94a6671
RM
148772010-12-09 Robert Millan <rmh@gnu.org>
14878
14879 * NEWS: Document addition of ZFS support.
14880
24b7938b
CW
148812010-12-04 Colin Watson <cjwatson@ubuntu.com>
14882
14883 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14884 rather than `/ 2', as the latter requires -Wa,--divide which would
14885 require bumping our minimum binutils version.
14886
bddc3ef6
BC
148872010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14888
14889 * util/grub-script-check.c (main): Print script line number on
14890 error.
14891
bf78d5b2
RM
148922010-12-01 Robert Millan <rmh@gnu.org>
14893
14894 * grub-core/fs/zfs/zfs.c: New file.
14895 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14896 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14897 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14898 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14899
14900 * include/grub/zfs/dmu.h: Likewise.
14901 * include/grub/zfs/dmu_objset.h: Likewise.
14902 * include/grub/zfs/dnode.h: Likewise.
14903 * include/grub/zfs/dsl_dataset.h: Likewise.
14904 * include/grub/zfs/dsl_dir.h: Likewise.
14905 * include/grub/zfs/sa_impl.h: Likewise.
14906 * include/grub/zfs/spa.h: Likewise.
14907 * include/grub/zfs/uberblock_impl.h: Likewise.
14908 * include/grub/zfs/vdev_impl.h: Likewise.
14909 * include/grub/zfs/zap_impl.h: Likewise.
14910 * include/grub/zfs/zap_leaf.h: Likewise.
14911 * include/grub/zfs/zfs.h: Likewise.
14912 * include/grub/zfs/zfs_acl.h: Likewise.
14913 * include/grub/zfs/zfs_znode.h: Likewise.
14914 * include/grub/zfs/zil.h: Likewise.
14915 * include/grub/zfs/zio.h: Likewise.
14916 * include/grub/zfs/zio_checksum.h: Likewise.
14917
14918 * Makefile.util.def: Build ZFS into libgrubmods.
14919 * grub-core/Makefile.core.def: Build zfs.mod.
14920
3f0f3831
SJ
149212010-11-30 Szymon Janc <szymon@janc.net.pl>
14922
14923 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14924 variable.
14925 * grub-core/commands/wildcard.c (match_files): Likewise.
14926
3a4253b2
RM
149272010-11-30 Robert Millan <rmh@gnu.org>
14928
14929 * grub-core/loader/i386/bsd.c
14930 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14931 whether kernel is loaded using grub_loader_is_loaded(), rather
14932 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14933 certain error conditions.
14934
8c317b27
RM
149352010-11-30 Robert Millan <rmh@gnu.org>
14936
c5c9cd3e
RM
14937 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14938 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 14939
49d3ab46
VS
149402010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14941
14942 Avoid using tricks for initialising endian variables.
14943
14944 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14945 Make const.
14946 (GRUB_MOD_INIT): Don't byte-swap.
14947 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14948 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14949 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14950 (grub_swap_bytes32_compile_time): Likewise.
14951 (grub_cpu_to_le32_compile_time): Likewise.
14952 (grub_cpu_to_le16_compile_time): Likewise.
14953
f420a804
VS
149542010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14955
14956 * util/grub-setup.c (setup): Stop recommending --force. People who
14957 understand the dangers of blocklists are able to find this option
14958 anyway and the ones who don't shouldn't use it anyway.
14959
4e7db17b
RM
149602010-11-26 Robert Millan <rmh@gnu.org>
14961
14962 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14963 Update all users.
14964
9be57a0d
CW
149652010-11-26 Colin Watson <cjwatson@ubuntu.com>
14966
14967 Fix LVM-on-RAID probing.
14968
14969 * util/grub-probe.c (probe): Remember which disk was detected as
14970 RAID (perhaps an LVM physical volume). Use that disk's raidname
14971 rather than that of the top-level disk.
14972
2c7859b3 149732010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 14974
d7647bb6
BC
14975 Fix cmdline argument quotes for setparams command of menuentry
14976 definitions.
7e623b0d
BC
14977
14978 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14979 quotes for arguments.
f866fe80 14980 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 14981 grub_strchrsub function instead.
f866fe80 14982
7955bea0 14983 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 14984
74f72a64
CW
149852010-11-24 Colin Watson <cjwatson@ubuntu.com>
14986
14987 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14988 effort by skipping "." and ".." entries up-front.
14989 Suggested by: Michael Lazarev.
14990
5a407278
CW
149912010-11-24 Colin Watson <cjwatson@ubuntu.com>
14992
14993 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14994 ldflags to ldadd, to fix link line ordering.
14995 (none_decompress): Likewise.
14996
3030d8ec
CW
149972010-11-24 Colin Watson <cjwatson@ubuntu.com>
14998
14999 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
15000 platforms.
15001 (grub-emu-lite): Remove kern/emu/cache.S.
15002
b7fbac12
CW
150032010-11-23 Colin Watson <cjwatson@ubuntu.com>
15004
15005 * util/deviceiter.c (compare_devices): If the by-id link for a
15006 device couldn't be resolved, fall back to sorting by the by-id link
15007 rather than segfaulting.
15008 Reported and tested by: Daniel Mierswa.
15009
5225f328
CW
150102010-11-23 Colin Watson <cjwatson@ubuntu.com>
15011
15012 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
15013 ldflags, to fix link line ordering.
15014
038b3ce8
CW
150152010-11-23 Colin Watson <cjwatson@ubuntu.com>
15016
15017 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
15018 linkers are picky about this.
15019
bf16e98e
CW
150202010-11-23 Colin Watson <cjwatson@ubuntu.com>
15021
15022 * grub-core/Makefile.am (command.lst): Adjust sed expression
15023 ordering so that extended and priority commands aren't treated as
15024 ordinary commands.
15025
7242bab6
CW
150262010-11-23 Colin Watson <cjwatson@ubuntu.com>
15027
15028 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15029 Remove byte-swapping function calls, which are not valid in
15030 structure initialisers.
15031 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
15032 non-const.
15033 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
15034 grub_gpt_partition_type_bios_boot.
15035
14e8b279
CW
150362010-11-22 Colin Watson <cjwatson@ubuntu.com>
15037
15038 Fix test program build on GNU/kFreeBSD.
15039
15040 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
15041 $(LIBNVPAIR)' library dependencies.
15042
e6f63338 150432010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
15044
15045 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
15046
cf8ffc38
CW
150472010-11-22 Colin Watson <cjwatson@ubuntu.com>
15048
15049 * util/grub-install.in: Remove excessive quoting that broke
15050 installations to RAID devices.
15051
7f8b0fd7
VS
150522010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15053
15054 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
15055 bootloader version instead of 0.
15056
dfd240b1
VS
150572010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15058
15059 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
15060 warning.
15061
7b61e609
VS
150622010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15063
15064 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
15065 retrieve the metadat sector if size isn't known.
15066 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15067
9dfe92d0
RM
150682010-11-18 Robert Millan <rmh@gnu.org>
15069
15070 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
15071 with grub_memcmp().
15072
41cc919e
VS
150732010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
15074
15075 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
15076 arrow.
15077 Reported by: Jordan Uggla.
15078
1afcc914
VS
150792010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15080
15081 Make better UTF compliant.
15082
15083 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
15084 sequences as incorrect.
15085 (grub_is_valid_utf8): Likewise.
15086 (grub_utf8_to_ucs4): Likewise.
15087 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
15088 (grub_ucs4_to_utf8_alloc): Likewise.
15089 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15090
f1808884
VS
150912010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15092
15093 Make legacy_source behave like source.
15094
15095 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15096 grub_show_menu.
15097 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15098
24ec575b
CW
150992010-11-16 Colin Watson <cjwatson@debian.org>
15100
15101 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15102 (-Wunused implies -Wunused-parameter, but not vice versa).
15103
72b7c7aa
CW
151042010-11-16 Colin Watson <cjwatson@ubuntu.com>
15105
15106 * configure.ac: Make error messages less confusing by testing for
15107 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15108 accepted, but produces a diagnostic if something else is wrong).
15109
e98937aa
VS
151102010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15111
15112 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15113 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15114 (now unused).
15115 (grub_keyboard_controller_init)
15116 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15117 read the initial state since controller isn't inited yet.
15118
f6bbabc3
VS
151192010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15120
15121 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15122 allocate_regbeg may need to create new chunk header.
15123
22e7dbb2
VS
151242010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15125
15126 Fix quoting in legacy parser.
15127
15128 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15129 single quotes.
15130 (grub_legacy_parse): Likewise.
15131 Reported by: Jordan Uggla.
15132 Tested by: Jordan Uggla.
15133
03f80960
VS
151342010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15135
15136 Don't add -lgcc on i386 and x86_64.
15137
15138 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15139 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15140 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15141
779dc15b
VS
151422010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15143
15144 * configure.ac: Add -Wno-trampolines when supported.
15145
d20a3b37
MV
151462010-11-14 Modestas Vainius <modax@debian.org>
15147
15148 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15149 fakeraid.
15150
e5360933
GC
151512010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15152
15153 Add generic logical block size support for UDF.
15154
15155 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15156 (GRUB_UDF_BLKSZ): Removed.
15157 (struct grub_udf_data): New field "lbshift" to hold the logical block
15158 size of the file system in log2 format. All users updated.
15159 (sblocklist): Change type to unsigned.
15160 (grub_udf_mount): Change type of "sblklist" to unsigned.
15161 Move AVDP search before VRS recognition, because the latter requires
15162 knowledge of the logical block size, which is detected during the
15163 former.
15164 Detect and validate logical block size during AVDP search, adding
15165 support for block sizes 512, 1024 and 4096.
15166 Make VRS recognition independent of block size.
15167
cb0229c5
GC
151682010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15169
15170 Properly handle deleted files on UDF.
15171
15172 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15173 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15174 set.
15175
406858a8
GC
151762010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15177
15178 Support reading files larger than 2 GiB.
15179
15180 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15181 "offset" to grub_off_t.
15182 (grub_udf_read_file): Likewise for parameter "pos".
15183
130da6a7
VS
151842010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15185
15186 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15187 unavailable.
15188 (Simple configuration): Refer to Changes from GRUB Legacy about
15189 save_env availability.
15190
65e93f6b
VS
151912010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15192
15193 * util/grub-install.in: Ignore empty partition table detection
15194 instead of trying to include part_ module.
15195
1fd08bf1
VS
151962010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15197
15198 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15199 LVM on RAID support.
15200
de1a024f
VS
152012010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15202
15203 Properly define WORDS_BIGENDIAN in wrapped environments.
15204
15205 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15206 definition.
15207 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15208
15209 Reported by: Manoel Rebelo Abranches.
15210 Tested by: Manoel Rebelo Abranches.
15211
bc5dd0b9
VS
152122010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15213
15214 * util/grub-mkconfig.in: Fix quoting.
15215
58c184be
VS
152162010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15217
15218 Support big ext2 files.
15219
15220 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15221 (grub_ext2_read_block): Support triple indirect blocks.
15222 (grub_ext2_read_file): Use 64-bit types and read size_high.
15223 (grub_ext2_open): Read size_high.
15224 Reported by: Ximin Luo.
15225 Tested by: Manoel Rebelo Abranches.
15226
5f0c02b3
VS
152272010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15228
15229 * util/grub-install.in: Handle filenames containing spaces.
15230 Reported by: Jordan Uggla.
15231 Tested by: Jordan Uggla.
15232
4417aae6
VS
152332010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15234
15235 * util/grub-mkconfig.in (grub_script_check): New variable.
15236 Use grub_script_check instead of grub-script-check.
15237 Reported by: Barry Jackson.
15238
7625a68e
VS
152392010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15240
15241 * docs/grub.texi (menu): Correct the order.
15242 Reported by: D. Hugh Redelmeier.
15243
10001ac5
VS
152442010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15245
15246 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15247 jump.
15248
9c4cf53b
MRA
152492010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15250
10001ac5
VS
15251 * include/grub/elfload.h (grub_elf32_size): New parameter.
15252 All users updated.
9c4cf53b
MRA
15253 Return maximum segments alignment.
15254 (grub_elf64_size): Likewise.
15255 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15256 Return maximum segments alignment.
15257 (grub_elf64_size): Likewise.
15258 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
15259 (grub_linux_claimmap_iterate): New function. Uses the
15260 "available" property in the "memory" node for memory allocation
15261 for kernel in the PowerPC loader.
9c4cf53b
MRA
15262 (grub_linux_load32): Correctly find linux entry point offset.
15263 (grub_linux_load64): Likewise.
15264
d2bf06bf
RM
152652010-11-07 Robert Millan <rmh@gnu.org>
15266
15267 On mips-yeeloong, build with -march=loongson2f when this flag is
15268 available (GCC >= 4.4).
15269 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15270 `-march=mips3'.
15271 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15272 or otherwise add -march=mips3.
15273
898c99a2
BC
152742010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15275
87220a68
BC
15276 Suppress shell expansion on echo '*' and echo "*" like cases.
15277 Reported by: Jordan Uggla.
898c99a2
BC
15278
15279 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15280 string arguments before shell expansion.
15281 * tests/grub_cmd_echo.in: New testcases.
15282
4f9b406a
RM
152832010-11-07 Robert Millan <rmh@gnu.org>
15284
15285 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15286 transition.
15287
80c6d25e
VS
152882010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15289
15290 * grub-core/kern/emu/hostdisk.c
15291 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15292
4a1a0153
VS
152932010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15294
15295 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15296 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15297 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15298
34706ddc
VS
152992010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15300
15301 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15302
6972dea9
VS
153032010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15304
15305 * util/grub-install.in: Replace useless recomendation to pass
15306 --modules with a recomendation to report a bug.
15307
9c693bd6
VS
153082010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15309
15310 Properly register serial terminfo.
15311 Reported by: Jordan Uggla
15312
15313 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15314 const.
15315 (grub_serial_terminfo_output_template): Likewise.
15316 (grub_cmd_serial): Register "serial" with terminfo.
15317 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15318 grub_serial_terminfo_output.
15319
6c9e4c0c
RM
153202010-11-05 Robert Millan <rmh@gnu.org>
15321
15322 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15323 needed).
15324
b9b3839f
RM
153252010-11-05 Robert Millan <rmh@gnu.org>
15326
15327 On Yeeloong, pass machine type information to Linux.
15328
15329 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15330 (LOONGSON_MACHTYPE): New macro, set to
15331 "machtype=lemote-yeeloong-2f-8.9inches".
15332 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15333 additional argument to Linux.
15334
1a3aaff4
RM
153352010-11-04 Robert Millan <rmh@gnu.org>
15336
15337 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15338 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15339 (its SATA disks are detected as slaveless IDE master drives on
15340 kFreeBSD).
15341 Reported by Carsten Aulbert.
15342
a75f4f62
CW
153432010-11-02 Colin Watson <cjwatson@ubuntu.com>
15344
15345 * util/bin2h.c (main): Fix spelling error in generated output.
15346
33b4b0c6
GS
153472010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15348
15349 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15350
2b36fbf4
VS
153512010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15352
15353 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15354 vga= option is supplied.
15355
74aaf558
VS
153562010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15357
15358 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15359 * util/grub.d/10_kfreebsd.in: Likewise.
15360 * util/grub.d/10_linux.in: Likewise.
15361 * util/grub.d/20_linux_xen.in: Likewise.
15362
6428dec3
VS
153632010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15364
15365 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15366 argument as an argument to no-argument option.
15367
f8729d98
VS
153682010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15369
15370 * util/grub.d/10_linux.in: Add missing load_video with explicit
15371 GRUB_GFXPAYLOAD_LINUX.
15372
89d68fa6
VS
153732010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15374
15375 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15376
3a1197cd
VS
153772010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15378
15379 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15380 elements with invlid index.
15381 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15382 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15383 members.
15384 * include/grub/raid.h (grub_raid_member): New struct.
15385 (grub_raid_array): Transform devices and start_sector into usage of
15386 grub_raid_member. All users updated
15387 (allocated_devs): New member.
15388
71574288
VS
153892010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15390
15391 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15392 is modified
15393
8d40ec65
BC
153942010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15395
15396 NetBSD build fix for getline function conflict from gnulib.
15397
15398 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15399 components that depend on gnulib headers.
15400 (libgrubmods.a): Renamed from earlier libgrub.a.
15401 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15402
95b9257e
VS
154032010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15404
15405 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15406 install rather than creating a broken install.
15407
26c53dc6
VS
154082010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15409
15410 * util/grub-setup.c (argp): Remove misleading example of installing to
15411 a partition.
15412
4171b3c5
VS
154132010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15414
15415 * util/grub-setup.c (setup): Clarify the error message.
15416
18568d18
VS
154172010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15418
15419 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15420
4f6a2e21
VS
154212010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15422
15423 * grub-core/kern/emu/misc.c
15424 (grub_make_system_path_relative_to_its_root)
15425 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15426
154272010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
15428
15429 * grub-core/kern/emu/misc.c
15430 (grub_make_system_path_relative_to_its_root): Revert r2882.
15431
e138c458
VS
154322010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15433
15434 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15435 useless field head. All users updated.
15436 (free_subchunk): Correct handling of IN_REGION subchunk.
15437
0cbcdf0e
CW
154382010-10-22 Colin Watson <cjwatson@ubuntu.com>
15439
15440 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15441 (Supported kernels): Likewise.
15442
b65ea155
GS
154432010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15444
15445 Make mktemp invocations portable.
15446
15447 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15448 exit if mktemp fails.
15449 * tests/grub_script_blockarg.in: Likewise.
15450 * tests/partmap_test.in: Likewise.
15451 * tests/util/grub-shell-tester.in: Likewise.
15452 * tests/util/grub-shell.in: Likewise.
15453 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15454 * Makefile.am: Likewise, and chain shell commands with `&&'
15455 instead of ';'.
15456 * util/grub-mkrescue.in: Use the same explicit template as above, and
15457 exit if mktemp fails.
15458
05f43cdd
BC
154592010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15460
15461 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15462 Linux kernel, reported by Dennis Schridde.
15463
800e6a9b
SJ
154642010-10-17 Szymon Janc <szymon@janc.net.pl>
15465
15466 * grub-core/normal/auth.c (grub_auth_check_authentication):
15467 Set-but-not-used variable removed.
15468
d82df574
VS
154692010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15470
15471 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15472 32-bit linux protocol.
15473
7bced458
VS
154742010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15475
15476 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15477 cursor shape for sanity.
15478
5b027690
VS
154792010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15480
15481 * docs/grub.texi (Installation): Document buggy BIOS install.
15482
ba5f65cf
VS
154832010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15484
15485 * docs/grub.texi (Installation): Indent.
15486
fdf2ec9c
VS
154872010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15488
15489 * util/grub-setup.c (setup): New parameter allow_floppy.
15490 (arguments): New member allow_floppy.
15491 (argp_parser): Handle --allow-floppy.
15492 (main): Pass allow_floppy.
15493 * util/grub-install.in: New option --allow-floppy passed though to
15494 grub-setup.
15495
861dfd4c
VS
154962010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15497
15498 * util/grub-install.in: Handle partitionless disks.
15499
f77a8c24
VS
155002010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15501
15502 * util/grub-setup.c (setup): Don't clean blocklists before readability
15503 verfification.
15504
27d9ee32
VS
155052010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15506
15507 * docs/grub.texi (Installation): Document embedding zone. Remove
15508 obsolete grub-install example.
15509
6bdda8f8
SJ
155102010-10-16 Szymon Janc <szymon@janc.net.pl>
15511
15512 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15513 Set-but-not-used variable ifdef'ed.
15514 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15515 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15516 variable removed.
15517 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15518 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15519 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15520 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15521 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15522 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15523 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15524 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15525 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15526 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15527 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15528 Likewise.
15529
e19b016b
VS
155302010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15531
15532 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15533 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15534 enum value.
15535
6c8d3002
VS
155362010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15539 synonym to _S5_. Needed for some DSDTs.
15540
c32b51c9
VS
155412010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15542
15543 Userspace ACPI parser debugging.
15544
15545 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15546 headers and add relevant defines. Don't include standard headers.
15547 (main) [GRUB_DSDT_TEST]: New function.
15548 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15549 Don't declare functions.
15550
fbfbeb39
VS
155512010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15552
15553 Remove dead grub_efi_mm_fini.
15554
15555 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15556 (ALLOCATED_PAGES_SIZE): Likewise.
15557 (MAX_ALLOCATED_PAGES): Likewise.
15558 (allocated_pages): Likewise.
15559 (grub_efi_allocate_pages): Don't record allocated pages.
15560 (grub_efi_free_pages): Likewise.
15561 (grub_efi_mm_init): Likewise.
15562 (grub_efi_mm_fini): Removed.
15563
65f7ed7c
VS
155642010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15565
15566 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15567 (grub_efi_mm_init): Take into account the memory map size increase.
15568
24977b44
VS
155692010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15570
15571 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15572 (serial_hw_put): Wait based on real time rather than port reads. Don't
15573 roken ports.
15574 * include/grub/serial.h (grub_serial_port): New field broken.
15575
1eb01cd2
RM
155762010-10-16 Robert Millan <rmh@gnu.org>
15577
15578 * grub-core/kern/emu/misc.c
15579 (grub_make_system_path_relative_to_its_root): Fix premature return
15580 when processing non-root ZFS filesystems.
5f8b440b 15581 Reported by Sergio Talens-Oliag.
1eb01cd2 15582
2d5fed60
RM
155832010-10-15 Robert Millan <rmh@gnu.org>
15584
15585 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15586 guarantee compressed ones are processed first.
15587
d0f4c1ea
VS
155882010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15589
15590 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15591 grub_efiemu_autocore.
15592
d87c681f
VS
155932010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15594
15595 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15596 rather than 0x1b.
15597 (grub_console_getkey): Use correct jae opcode rather than ja.
15598
219b3564
RM
155992010-10-12 Robert Millan <rmh@gnu.org>
15600
15601 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15602 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15603 variable. All references updated.
15604
15605 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15606
20c6bb7e
VS
156072010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15608
15609 Correctly distinguish mdraid flavours.
15610
15611 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15612 (insert_array): New argument raid.
15613 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15614 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15615 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15616
74baff84
VS
156172010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15618
15619 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15620 handling of special keys.
15621
3ef068df 156222010-10-02 Aleš Nesrsta <starous@volny.cz>
15623
c7980ad9
VS
15624 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15625 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 15626
a9455194 156272010-10-02 Aleš Nesrsta <starous@volny.cz>
15628
c7980ad9
VS
15629 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15630 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15631 users updated.
a9455194 15632 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 15633 Use right endpoint when querying descriptor.
a9455194 15634
441cfe65
VS
156352010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15636
15637 Clear out 0x80 color bit on EFI.
15638 Tested by: decoder
15639 Reported by: decoder and meta tech.
15640
15641 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15642 (grub_console_setcolorstate): Clear out 0x80 bit.
15643 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15644 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15645 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15646
bf26bcc4
VS
156472010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15648
15649 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15650 Set to "auto".
15651
6e3c515d
VS
156522010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15653
15654 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15655 mo_file after freeing.
15656
e6d983ba
VS
156572010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15658
15659 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15660
74ccb5b5
VS
156612010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15662
15663 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15664 flags.
15665
17821956
VS
156662010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15667
15668 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15669 usage.
15670
ee74fa48
VS
156712010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15672
15673 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15674
15675 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15676 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15677 and terminfo.h when needed.
15678 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15679 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15680 (terminfo): Enable only on terminfokernel.
15681 (extcmd): Likewise.
15682 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15683 * include/grub/lib/arg.h: Likewise.
15684 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15685 incorrect usage of ->.
15686
aa438e68
VS
156872010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15688
15689 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15690 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15691
57994012
VS
156922010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15693
15694 Fix coreboot compilation.
15695
15696 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15697 Take VBE info into account even if only text is supported.
15698 (fill_vbe_info): Take into account the case when only VGA text
15699 is supported.
15700 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15701 on coreboot, multiboot and qemu.
15702
2a406611
VS
157032010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15704
15705 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15706 debug messages.
15707 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15708
d33613fc
VS
157092010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15710
15711 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15712 parameters.
15713
44a1b432
VS
157142010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15715
15716 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15717 if they were BSD-style.
15718
edde54e6
VS
157192010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15720
15721 * grub-core/boot/i386/pc/lnxboot.S: Replace
15722 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15723 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15724
b65830fa
VS
157252010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15726
15727 Write embedding zone using Reed-Solomon.
15728
15729 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15730 * grub-core/Makefile.am (rs_decoder.S): New target.
15731 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15732 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15733 (multiboot): Move to RS part.
15734 (post_reed_solomon): New label.
15735 (grub_boot_drive): Move to non-RS part since it's modified in memory
15736 on boot.
15737 Include rs_decoder.S.
15738 * grub-core/lib/reed_solomon.c: New file.
15739 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15740 New definition.
15741 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15742 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15743 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15744 * include/grub/partition.h (grub_partition_map): Change prototype of
15745 embed to allow returning additional sectors.
15746 * include/grub/reed_solomon.h: New file.
15747 * util/grub-setup.c (setup): Handle Reed-Solomon.
15748
0b4b227f
CW
157492010-09-28 Colin Watson <cjwatson@ubuntu.com>
15750
15751 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15752 i386 and x86-64 definedness tests.
15753
f772623b
YB
157542010-09-27 Yves Blusseau <blusseau@zetam.org>
15755
15756 Fix generation of kernel_syms.lst
15757
15758 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15759 ASM_PREFIX
15760
8e57a6ca
RM
157612010-09-26 Robert Millan <rmh@gnu.org>
15762
15763 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15764
15765 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15766 the pool is an array of devices, iterate through it and return the
15767 first device that passes a stat() test (instead of blindly returning
15768 the first one).
15769
f9130836
RM
157702010-09-26 Robert Millan <rmh@gnu.org>
15771
15772 Build fixes for GNU/kFreeBSD.
15773
15774 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15775 to programs that require ZFS conversion.
15776 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15777 kernels that don't have FLOPPY_MAJOR.
15778
96510faf
BC
157792010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15780
15781 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15782
449333eb
BC
157832010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15784
15785 Fix grub-emu build.
15786
15787 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15788 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15789 mdraid09 and mdraid1x.
15790
e1fd1939
CW
157912010-09-24 Colin Watson <cjwatson@ubuntu.com>
15792
15793 Re-enable grub-extras.
15794
15795 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15796 avoid confusing Automake. Run autogen only twice, once for the top
15797 level and once for grub-core. Add Makefile.util.def and
15798 Makefile.core.def from extra modules to the appropriate autogen
15799 invocations. If Makefile.common exists in an extra module, include
15800 it in both Makefile.util.am and grub-core/Makefile.core.am;
15801 similarly, include any Makefile.util.common file in Makefile.util.am
15802 and any Makefile.core.common file in grub-core/Makefile.core.am.
15803 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15804 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15805 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15806 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15807
15808 * gentpl.py (gvar_add): Turn GVARS into a set.
15809 (global_variable_initializers): Sort global variables on output.
15810 (vars_init): New function.
15811 (first_time): Likewise.
15812 (library): Ensure that non-global variable initialisations are
15813 emitted before the first time we emit code for a library block.
15814 Append to variables rather than setting them. Only emit
15815 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15816 each conditional path.
15817 (program): installdir() emits an Autogen macro, so must be passed to
15818 var_add rather than gvar_add.
15819 (data): Likewise.
15820 (script): Likewise.
15821 (rules): New function, centralising handling for different target
15822 types. Set up Guile association lists for first_time and vars_init,
15823 and send most output to a diversion so that variable initialisations
15824 can be emitted first.
15825 (module_rules): Use new rules function.
15826 (kernel_rules): Likewise.
15827 (image_rules): Likewise.
15828 (library_rules): Likewise.
15829 (program_rules): Likewise.
15830 (script_rules): Likewise.
15831 (data_rules): Likewise.
15832
15833 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15834
15835 * .bzrignore: Add contrib and grub-core/contrib. Remove
15836 grub-core/Makefile.gcry.am.
15837
1d12cf29
YB
158382010-09-24 Yves Blusseau <blusseau@zetam.org>
15839
15840 * grub-core/lib/LzFind.c: Add missing include.
15841 * grub-core/lib/LzmaEnc.c: Likewise.
15842 * grub-core/script/lexer.c: Likewise.
15843 * grub-core/script/yylex.l: Likewise.
15844 * util/grub-macho2img.c: Likewise.
15845 * util/grub-menulst2cfg.c: Likewise.
15846 * util/grub-mklayout.c: Likewise.
15847 * util/grub-mkpasswd-pbkdf2.c
15848 * util/grub-mkrelpath.c: Likewise.
15849 * util/resolve.c: Likewise.
15850
dd363028
BC
158512010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15852
15853 * Makefile.util.def (example_unit_test): Add
15854 grub-core/gnulib/libgnu.a.
15855
f5a109e2
GS
158562010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15857
15858 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15859
6d0fa83c
VS
158602010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15861
15862 Support xz compression on yeeloong.
15863
15864 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15865 * configure.ac: Check for LZMA.
15866 * grub-core/Makefile.core.def (xz_decompress): New target.
15867 (none_decompress): Likewise.
15868 * grub-core/boot/decompressor/minilib.c: New file.
15869 * grub-core/boot/decompressor/none.c: Likewise.
15870 * grub-core/boot/decompressor/xz.c: Likewise.
15871 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15872 * grub-core/kern/mips/cache_flush.S: Likewise.
15873 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15874 * grub-core/kern/mips/startup.S: Move first stage to ...
15875 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15876 nomacro.
15877 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15878 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15879 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15880 Allocate statically.
15881 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15882 Allocate statically or use scratch. Don't check CRC32.
15883 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15884 Allocate statically. Don't check CRC32.
15885 * include/grub/decompressor.h: New file.
15886 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15887 Removed.
15888 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15889 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15890 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15891 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15892 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15893 * util/grub-mkimage.c (grub_compression_t): New type.
15894 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15895 (image_target_desc): New field default_compression.
15896 (image_targets): Adjust yeeloong targets.
15897 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15898 (compress_kernel): New parameter comp.
15899 (generate_image): Likewise. Handle new compression case.
15900 (options): New option --compression
15901 (help): Likewise.
15902 (main): Handle new option.
15903
1b655af6
GS
159042010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15905
15906 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15907
8f03f0b5
CW
159082010-09-22 Colin Watson <cjwatson@ubuntu.com>
15909
15910 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15911 typo in __i386__ conditional.
15912
7835dfd3
VS
159132010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15914
15915 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15916 include.
15917
e255597e
VS
159182010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15919
6d0fa83c 15920 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
15921
15922 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15923 new tags as supported.
15924 (acpiv2_size): New function.
15925 (grub_multiboot_get_mbi_size): Take new tags into account.
15926 (grub_multiboot_make_mbi): Add new tags.
15927 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 15928
6cc14051 159292010-09-21 Aleš Nesrsta <starous@volny.cz>
15930
15931 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15932 Added missing configuration of USB device.
15933
df7769d8
CW
159342010-09-21 Colin Watson <cjwatson@ubuntu.com>
15935
15936 * grub-core/normal/menu_entry.c (run): Make sure we always return
15937 a value.
15938
b031012d
CW
159392010-09-21 Colin Watson <cjwatson@ubuntu.com>
15940
15941 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15942 NumberOfPages is UINT64 according to the UEFI specification, not
15943 UINTN. Fix printf format.
15944
174de8f3
CW
159452010-09-21 Colin Watson <cjwatson@ubuntu.com>
15946
15947 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15948 `err' to grub_usb_err_t.
15949 Reported and tested by: KESHAV P.R.
15950
d7dbe923
CW
159512010-09-21 Colin Watson <cjwatson@ubuntu.com>
15952
15953 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15954 tpart non-const, so that we can assign to it. (Since this is a
15955 typedef, the constness refers to the pointer rather than what it
15956 points to.)
15957
8d5e2af3
CW
159582010-09-21 Colin Watson <cjwatson@ubuntu.com>
15959
15960 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15961 $(top_srcdir)/grub-core/gnulib as well as
15962 $(top_builddir)/grub-core/gnulib.
15963 Reported by: KESHAV P.R.
15964
5c527783
CW
159652010-09-21 Colin Watson <cjwatson@ubuntu.com>
15966
15967 * util/grub-install.in: Fix the bootloader ID option to be
15968 consistently --bootloader-id, not --bootloader_id.
15969 Reported by: KESHAV P.R.
15970
d309a16e
CW
159712010-09-21 Colin Watson <cjwatson@ubuntu.com>
15972
15973 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15974 check hash checksum." consistently translatable.
15975
b830cd16
YB
159762010-09-21 Yves Blusseau <blusseau@zetam.org>
15977
15978 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15979 $(top_builddir).
15980
c4fe27a8
CW
159812010-09-21 Colin Watson <cjwatson@ubuntu.com>
15982
15983 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15984 (GRUB_MOD_INIT): Register sha1sum command.
15985 (GRUB_MOD_FINI): Unregister sha1sum command.
15986
a4c1d277
YB
159872010-09-21 Yves Blusseau <blusseau@zetam.org>
15988
15989 Keep boot and grub directory names in sync with utils scripts
15990
15991 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15992 * config.h.in: Add previous macros.
15993 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15994 * util/grub-install.in: Use $bootdir and $grubdir variables.
15995
4eff79d2
CW
159962010-09-21 Colin Watson <cjwatson@ubuntu.com>
15997
15998 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15999 convert partition names to disk names if the new `convert' parameter
16000 is set.
16001 (grub_util_biosdisk_get_grub_dev): If opening the disk device
16002 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
16003 disk in its own right. This can happen with Xen disk images.
16004
934d7e44
YB
160052010-09-21 Yves Blusseau <blusseau@zetam.org>
16006
16007 * util/grub-editenv.c: Update strings to avoid warnings when generating
16008 grub.pot file.
16009 * util/grub-setup.c: Likewise.
934d7e44 16010
df3367cc
VS
160112010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16012
16013 * configure.ac: Change version to 1.99~beta0.
16014
77a94e98
VS
160152010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16016
16017 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
16018 Add BADRAM.
16019 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
16020 Likewise.
16021 * include/multiboot.h: Resynced with specification.
16022 * include/multiboot2.h: Likewise.
16023
269004c1
CW
160242010-09-21 Colin Watson <cjwatson@ubuntu.com>
16025
16026 Fix po directory handling.
16027
16028 * configure.ac: Create po/Makefile.in rather than po/Makefile.
16029 * grub-core/gnulib/Makefile.am: Import gettext module.
16030 * m4/gnulib-cache.m4: Likewise.
16031 * m4/gnulib-comp.m4: Likewise.
16032 * m4/gettext.m4: New file, from gnulib.
16033 * m4/glibc2.m4: Likewise.
16034 * m4/iconv.m4: Likewise.
16035 * m4/intdiv0.m4: Likewise.
16036 * m4/intl.m4: Likewise.
16037 * m4/intldir.m4: Likewise.
16038 * m4/intlmacosx.m4: Likewise.
16039 * m4/intmax.m4: Likewise.
16040 * m4/inttypes-pri.m4: Likewise.
16041 * m4/lcmessage.m4: Likewise.
16042 * m4/lib-ld.m4: Likewise.
16043 * m4/lib-link.m4: Likewise.
16044 * m4/lib-prefix.m4: Likewise.
16045 * m4/lock.m4: Likewise.
16046 * m4/nls.m4: Likewise.
16047 * m4/po.m4: Likewise.
16048 * m4/printf-posix.m4: Likewise.
16049 * m4/progtest.m4: Likewise.
16050 * m4/threadlib.m4: Likewise.
16051 * m4/uintmax_t.m4: Likewise.
16052 * m4/visibility.m4: Likewise.
16053 * po/Makefile.am: Remove.
16054 * po/Makefile.in.in: New file, from gettext.
16055 ($(DOMAIN).pot-update): Support POTFILES-shell.
16056 * po/Makevars: New file.
16057 * po/POTFILES-shell: Rename to ...
16058 * po/POTFILES-shell.in: ... this. Update.
16059 * po/POTFILES: Rename to ...
16060 * po/POTFILES.in: ... this. Update.
16061 * po/Rules-quot: New file, from gettext.
16062 * po/boldquot.sed: Likewise.
16063 * po/en@boldquot.header: Likewise.
16064 * po/en@quot.header: Likewise.
16065 * po/insert-header.sin: Likewise.
16066 * po/quot.sed: Likewise.
16067 * po/remove-potcdate.sin: Likewise.
16068
3e0fa5d0
VS
160692010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16070
16071 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
16072
ade9bd66
VS
160732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16074
16075 * util/grub.d/20_linux_xen.in: Use submenus.
16076
fc55cc4c
VS
160772010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16078
16079 Support submenus.
16080
16081 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
16082 parameter submenu. All users updated.
16083 * grub-core/normal/main.c (free_menu): Rename to ...
16084 (grub_normal_free_menu): ... this. Made global.
16085 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
16086 if requested.
16087 * grub-core/normal/menu_entry.c (screen): New field submenu.
16088 (make_screen): Set submenu.
16089 (run): Open new context if requested.
16090 * include/grub/menu.h (grub_menu_entry): New field submenu.
16091 * include/grub/normal.h (grub_normal_free_menu): New proto.
16092
600cedf7
VS
160932010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16094
16095 Menu entries extractor.
16096
16097 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16098 variants.
16099 (GRUB_MOD_INIT): Register new variants.
16100 (GRUB_MOD_FINI): Unregister new variants.
16101 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16102 into grub_cmd_legacy_source.
16103 (grub_cmd_legacy_source): Implement extractor variants.
16104 (GRUB_MOD_INIT): Register new variants.
16105 (GRUB_MOD_FINI): Unregister new variants.
16106 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16107 as an extractor.
16108 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16109 search as an extractor.
16110 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16111 test as an extractor.
16112 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16113 as an extractor.
16114 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16115 (grub_env_new_context): New function.
16116 (grub_env_context_open): Likewise.
16117 (grub_env_extractor_open): Likewise.
16118 (grub_env_extractor_close): Likewise.
16119 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16120 grub_extractor_level.
16121 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16122 * include/grub/env.h (grub_env_extractor_open): New proto.
16123 (grub_env_extractor_close): Likewise.
16124 * include/grub/normal.h (grub_extractor_level): New external variable.
16125
7bda3a87
VS
161262010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16127
16128 Make cutmem accept a region specification.
16129 Suggested by: Samuel Thibault
16130
16131 * grub-core/mmap/mmap.c (parsemem): New function.
16132 (grub_cmd_cutmem): Handle new arguments.
16133
2ea57f88
VS
161342010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16135
16136 New command cutmem.
16137
16138 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16139 (GRUB_MOD_INIT): Register new command.
16140 (GRUB_MOD_FINI): Unregister new command.
16141
74342e31
VS
161422010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16143
16144 Support some annoying BSD and Minix subpartitions.
16145
16146 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16147 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16148 Properly handle concatenation.
16149 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16150 * grub-core/normal/completion.c (iterate_partition): Likewise.
16151 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16152 contain partition. All users updated.
16153 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16154 struct.
16155 (grub_openbsdlabel_partition_map): Likewise.
16156 (bsdlabel_partition_map_iterate): Rename to ..
16157 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16158 (bsdlabel_partition_map_iterate): New function.
16159 (netopenbsdlabel_partition_map_iterate): Likewise.
16160 (netbsdlabel_partition_map_iterate): Likewise.
16161 (openbsdlabel_partition_map_iterate): Likewise.
16162 (GRUB_MOD_INIT): Register new partmaps.
16163 (GRUB_MOD_FINI): Unregister new partmaps.
16164 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16165 (grub_partition_msdos_iterate): ... this. All users updated.
16166 Don't support embedding other than in a minix partition.
16167 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16168 proto.
16169 * include/grub/partition.h (grub_partition): New field msdostype.
16170 * util/grub-install.in: Handle openbsd and netbsd types being in
16171 part_bsd module.
16172
1e8d555b
VS
161732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16174
16175 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16176
16177 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16178 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16179 (mdraid09): ... this.
16180 (mdraid1x): New module.
16181 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16182 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16183
899d8af4
VS
161842010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16185
16186 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16187 vsprintf.
16188
40901acd
CW
161892010-09-20 Colin Watson <cjwatson@ubuntu.com>
16190
16191 * grub-core/commands/efi/lsefimmap.c: Correct header.
16192 * NEWS: Update.
16193
dfe3b247
CW
161942010-09-20 Colin Watson <cjwatson@ubuntu.com>
16195
16196 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16197 as printf format strings; the translations might contain '%' which
16198 could cause a crash.
16199 (main): Likewise.
16200 * util/grub-fstest.c (argp_parser): Likewise.
16201 * util/grub-setup.c (argp_parser): Likewise.
16202 (main): Likewise.
16203
3286a4b4
VS
162042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16205
16206 Use argp in grub-fstest.
16207
16208 * util/grub-fstest.c: Don't include getopt.h.
16209 Include argp.h.
16210 (root): New variable.
16211 (args_count): Likewise.
16212 (nparm): Likewise.
16213 (num_disks): Likewise.
16214 (images): Likewise.
16215 (cmd): Likewise.
16216 (debug_str): Likewise.
16217 (args): Likewise.
16218 (options): Transformed to argp.
16219 (usage): Removed.
16220 (main): Split argument parsing into ...
16221 (argp_parser): ... this. Changed to argp format.
16222 (argp): New variable.
16223 (main): Use argp_parse.
16224
3dccbe4b
TG
162252010-09-20 Tristan Gingold <gingold@free.fr>
162262010-09-20 Robert Millan <rmh.grub@aybabtu.com>
162272010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16228
16229 * grub-core/commands/efi/lsefimmap.c: New file.
16230 * grub-core/Makefile.core.def (lsefimmap): New module.
16231 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16232
38c259a7
VS
162332010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16234
16235 Pause the execution (10s max) if any errors are displayed so the user
16236 has a chance to see them.
16237
16238 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16239 (grub_print_error): Increment grub_err_printed_errors.
16240 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16241 execution if any errors were displayed.
16242 (show_menu): Remove old code for pause.
16243 * grub-core/normal/menu_entry.c (run): Likewise.
16244 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16245 users updated.
16246 (grub_normal_get_char_counter): Likewise.
16247 * include/grub/err.h (grub_err_printed_errors): New external variable.
16248 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16249
f218b09c
VS
162502010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16251
16252 Support multiboot VBE info.
16253
16254 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16255 Take VBE info into account.
16256 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16257 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16258 Call fill_vbe_info when appropriate.
16259 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16260 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16261 as supported.
16262 (grub_multiboot_get_mbi_size): Take new tags into account.
16263 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16264 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16265 Call fill_vbe_tag when appropriate.
16266 (grub_multiboot_make_mbi): Properly align tags.
16267 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16268 function.
16269 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16270 proto.
16271 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16272
a9cc5438
VS
162732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 Suport manual terminal geometry specification.
16276
16277 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16278 Save state in grub_ofconsole_terminfo_output.
16279 (grub_ofconsole_term): Use grub_terminfo_getwh.
16280 (grub_ofconsole_getwh): Removed.
16281 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16282 (grub_serial_term): Use grub_terminfo_getwh.
16283 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16284 (options): New struct.
16285 (OPTION_*): New enum.
16286 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16287 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16288 width and height.
16289 (grub_terminfo_getwh): New proto.
16290 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16291
1a8fed20
VS
162922010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16293
16294 Handle legacy "terminal" command.
16295
16296 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16297 and FLAG_TERMINAL.
16298 (legacy_commands): Add terminal and title.
16299 (grub_legacy_parse): Handle terminal. Simplify title handling.
16300
41e9c57d
VS
163012010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16302
16303 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16304 parameters overflow.
16305
61c874c5
CW
163062010-09-20 Colin Watson <cjwatson@ubuntu.com>
16307
16308 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16309 widthspec.h.
16310
16311 * docs/grub.texi (Shell-like scripting): Document `!'.
16312 (Network): Simplify using new i386-pc-pxe format. Mention
16313 grub-mknetdir.
16314
16315 * NEWS: Update.
16316
943682b4
CW
163172010-09-20 Colin Watson <cjwatson@ubuntu.com>
16318
16319 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16320 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16321 when needed.
16322
6d3d698d
CW
163232010-09-20 Colin Watson <cjwatson@ubuntu.com>
16324
16325 * grub-core/commands/efi/lsefisystab.c: Correct header.
16326 * grub-core/commands/efi/lssal.c: Likewise.
16327 * grub-core/commands/testload.c: Likewise.
16328
c982589f
CW
163292010-09-20 Colin Watson <cjwatson@ubuntu.com>
16330
16331 * util/grub-mkrescue.in: Add explicit root argument to --set to
16332 prevent the UUID being interpreted as an argument to --set (matches
16333 previous change to prepare_grub_to_access_device).
16334
a63c31b6
CW
163352010-09-20 Colin Watson <cjwatson@ubuntu.com>
16336
16337 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16338 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16339 the verbosity of later #ifs.
16340 (find_partition_start): Define this function on FreeBSD too.
16341 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16342 function.
16343 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16344 on FreeBSD.
16345
6439b8ee
YB
163462010-09-20 Yves Blusseau <blusseau@zetam.org>
16347
16348 * util/grub-editenv.c: Use argp instead of getopt.
16349
c5930ec8
YB
163502010-09-20 Yves Blusseau <blusseau@zetam.org>
16351
16352 * util/grub-setup.c: Use argp instead of getopt.
16353
15c69261
YB
163542010-09-20 Yves Blusseau <blusseau@zetam.org>
16355
16356 Use gnulib-tool to create gnulib source files.
16357
16358 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16359 grub-core/gnulib directories
16360 * .bzignore: Add **/.deps and autogenerated gnulib files
16361 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16362 of gnulib macros, add grub-core/gnulib/Makefile
16363 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16364 include m4 directory to aclocal.
16365 * Makefile.util.def: Remove direct compilation of gnulib source files
16366 and use the new grub-core/gnulib/libgnu.a.
16367 * build-aux/config.rpath: move config.rpath from top directory to
16368 build-aux
16369 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16370 in gnulib headers
16371 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16372 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16373 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16374 header.
16375 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16376 string.
16377
e511c9f5
YB
163782010-09-20 Yves Blusseau <blusseau@zetam.org>
16379
16380 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16381 grub-core/genmod.sh and grub-core/gensyminfo.sh
16382
c2dede05
BC
163832010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16384
16385 Add a test for echo command options.
16386
16387 * tests/grub_cmd_echo.in: New test.
16388 * Makefile.util.def: Rules for new test.
16389
c55f5018
SJ
163902010-09-20 Szymon Janc <szymon@janc.net.pl>
16391
16392 Remove crc.mod and move crc command to hashsum.mod.
16393 Remove lib/crc.c - users updated to use gcrypt implementation.
16394
16395 * grub-core/commands/crc.c: Removed.
16396 * grub-core/Makefile.core.def (crc): Module removed.
16397 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16398 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16399 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16400 * grub-core/lib/crc.c: Removed.
16401 * include/grub/lib/crc.h: Removed.
16402 * Makefile.util.def (crc): Remove lib/crc.c
16403 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16404 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16405 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16406 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16407 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16408 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16409
e0337366
VS
164102010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16411
16412 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16413
742f9232
VS
164142010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16415
16416 Split config.h for util and core.
16417
16418 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16419 (ADDR32): Likewise.
16420 (DATA32): Likewise.
16421 (BSS_START_SYMBOL): Likewise.
16422 (END_SYMBOL): Likewise.
16423 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16424 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16425 * config.h.in: New file.
16426 * configure.ac: Use config-util.h as config define file.
16427 Rename MACHINE into GRUB_MACHINE. All users updated.
16428 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16429 updated.
16430 (NESTED_FUNC_ATTR): Likewise.
16431 Substitue new variables.
16432 (COND_HAVE_ASM_USCORE): New conditional.
16433 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16434 (kernel_syms.lst): Use ASM_PREFIX.
16435 * grub-core/kern/emu/console.c: Include config-util.h.
16436 * grub-core/kern/emu/misc.c: Likewise.
16437 * grub-core/kern/emu/mm.c: Likewise.
16438 * include/grub/emu/misc.h: Likewise.
16439 * include/grub/libgcc.h: Likewise.
16440
39feb0e8
VS
164412010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16442
16443 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16444 constants usage.
16445 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16446 Fix GRUB_TERM_KEY_* constants usage.
16447 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16448
9af6dac3
VS
164492010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16450
16451 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16452 print pointer.
16453 * grub-core/bus/usb/uhci.c: Remove empty define.
16454 (grub_uhci_check_transfer): Add missing cast.
16455 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16456 print pointer.
16457 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16458 PRIuGRUB_SIZE.
16459 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16460
d6d94820
VS
164612010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16462
16463 * grub-core/Makefile.core.def (legacycfg): Add
16464 lib/i386/pc/vesa_modes_table.c on emu.
16465
3572f2b6
BC
164662010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16467
16468 Reduce number of temporary files generated by build system.
16469
16470 * grub-core/gencmdlist.sh: Removed.
16471 * grub-core/genfslist.sh: Removed.
16472 * grub-core/genhandlerlist.sh: Removed.
16473 * grub-core/genmodsrc.sh: Removed.
16474 * grub-core/genpartmaplist.sh: Removed.
16475 * grub-core/genparttoollist.sh: Removed.
16476 * grub-core/gentermiinallist.sh: Removed.
16477 * grub-core/genvideolist.sh: Removed.
16478
16479 * grub-core/genmod.sh.in: New file.
16480 * grub-core/gensyminfo.sh.in: New file.
16481
16482 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16483 * conf/Makefile.extra-dist: Update with new files.
16484 * gentpl.py: Remove rules related to unnecessary temporary files.
16485 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16486 and und-* files.
16487 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16488 genmod.sh scripts.
16489 * grub-core/bus/usb/uhci.c: Remove empty #define.
16490 * grub-core/genmoddep.awk: Updated with new syminfo format.
16491 * util/bash-completion.d/Makefile.am: Add config.log to
16492 CLEANFILES.
16493
c836b030
YB
164942010-09-19 Yves Blusseau <blusseau@zetam.org>
16495
16496 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16497
2f4e8053
BC
164982010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16499
16500 * util/grub-mkconfig.in: Check the config script for syntax errors
16501 before saving.
16502
75831c34
CW
165032010-09-19 Colin Watson <cjwatson@ubuntu.com>
165042010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16505
16506 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16507 platforms.
16508 * util/grub-install.in: Add EFI and IEEE1275 support.
16509 * util/i386/efi/grub-install.in: Removed.
16510 * util/ieee1275/grub-install.in: Likewise.
16511
eaf41b25
VS
165122010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16513
16514 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16515 (grub_cmd_cmosclean): Likewise.
16516 (GRUB_MOD_INIT): Register command cmosclean.
16517 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16518 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16519
1a9130dd
CPE
165202010-09-18 Carles Pina i Estany <carles@pina.cat>
165212010-09-18 Aleš Nesrsta <starous@volny.cz>
165222010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16523
16524 Add keyboard layouts support.
16525
16526 * Makefile.util.def (grub-mklayout): New file.
16527 (grub-kbdcomp): New script.
16528 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16529 Add keyboard_layouts.h.
16530 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16531 commands/boot.c on yeeloong.
16532 (keylayouts): New module.
16533 * grub-core/bus/usb/ohci.c
16534 * grub-core/bus/usb/uhci.c
16535 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16536 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16537 (attach_root_port): Likewise.
16538 (poll_nonroot_hub): Likewise.
16539 (grub_usb_poll_devices): Likewise.
16540 (detach_device): Close transfer.
16541 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16542 function.
16543 (grub_usb_bulk_setup_readwrite): Likewise.
16544 (grub_usb_bulk_finish_readwrite): Likewise.
16545 * grub-core/commands/keylayouts.c: New file.
16546 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16547 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16548 aliases.
16549 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16550 support scancode 2.
16551 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16552 * include/grub/keyboard_layouts.h: New file.
16553 * util/grub-mklayout.c: New file.
16554 * util/grub-kbdcomp.in: Likewise.
16555
a1d84a5e
VS
165562010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16557
16558 Unify memory types.
16559
16560 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16561 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16562 types.
16563 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16564 (grub_upper_mem): Likewise.
16565 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16566 * include/grub/memory.h (grub_memory_type_t): New enum.
16567 All users updated.
16568
9696382e
VS
165692010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16570
16571 * grub-core/Makefile.core.def (lsapm): New module.
16572 * grub-core/commands/i386/pc/lsapm.c: New file.
16573 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16574 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16575 Likewise.
16576 * include/grub/i386/pc/apm.h: New file.
16577 * include/multiboot.h (multiboot_apm_info): New struct.
16578
165792010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16580
16581 GRUB-legacy configuration file support.
16582
16583 * Makefile.util.def (grub-menulst2cfg): New util.
16584 * docs/man/grub-menulst2cfg.h2m: New file.
16585 * grub-core/Makefile.core.def (legacycfg): New module.
16586 * grub-core/commands/legacycfg.c: New file.
16587 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16588 (grub_normal_add_menu_entry): ... this.
16589 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16590 (grub_normal_set_password): ...this.
16591 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16592 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16593 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16594 * grub-core/lib/legacy_parse.c: New file.
16595 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16596 * include/grub/i386/pc/vesa_modes_table.h: New file.
16597 * include/grub/legacy_parse.h: Likewise.
16598 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16599 * util/grub-menulst2cfg.c: New file.
16600
bf8d1338
CW
166012010-09-17 Colin Watson <cjwatson@ubuntu.com>
16602
16603 * grub-core/kern/emu/hostdisk.c
16604 (convert_system_partition_to_system_disk): Initialise node.
16605
9c0bad2e
CW
166062010-09-17 Colin Watson <cjwatson@ubuntu.com>
16607
16608 * grub-core/kern/emu/hostdisk.c
16609 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16610 leak.
16611 Reported and based on patch by: Modestas Vainius.
16612
a939d135
CW
166132010-09-17 Colin Watson <cjwatson@ubuntu.com>
16614
16615 Fix DM-RAID probing with recent versions of device-mapper udev
16616 rules.
16617
16618 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16619 canonicalise device paths under /dev/mapper/.
16620 (convert_system_partition_to_system_disk): Compare the
16621 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16622 path, since device nodes under /dev/mapper/ are often symlinks.
16623
0f7ee3c9
YB
166242010-09-17 Yves Blusseau <blusseau@zetam.org>
16625
16626 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16627
10854d0d
YB
166282010-09-16 Yves Blusseau <blusseau@zetam.org>
16629
16630 * configure.ac: Avoid some annoying error messages if freetype-config
16631 program is not found.
16632
108538d8
CW
166332010-09-16 Colin Watson <cjwatson@ubuntu.com>
16634
16635 Support RAID on virtio devices, and others.
16636
16637 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16638 Rename to ...
16639 [__MINGW32__] (grub_find_device): ... this.
16640 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16641 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16642 reasonable default if dir is NULL.
16643 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16644 ...
16645 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16646 (grub_guess_root_device): Update callers.
16647 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16648
16649 * util/raid.c (grub_util_getdiskname): Remove.
16650 (grub_util_raid_getmembers): Use grub_find_device rather than
16651 grub_util_getdiskname.
16652
e5bfc130
CW
166532010-09-16 Colin Watson <cjwatson@ubuntu.com>
16654
16655 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16656 needing to be compiled with serial support.
16657 (ls): Indicate that multiple files are accepted.
16658 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16659 indicate that multiple files are accepted.
16660
be458ae2
CW
166612010-09-16 Colin Watson <cjwatson@ubuntu.com>
16662
16663 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16664 libgrub_a_init.c, and util/bash-completion.d/grub.
16665
cb731b5e
VS
166662010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 * util/grub-setup.c (setup): Fix incorrect container semantics.
16669
35139e8a
VS
166702010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16671
16672 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16673 misusage.
16674 Reported by: J. Nick Terry
16675
e50fca4a
VS
166762010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 Move embedding routines to partmap sources files.
16679
16680 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16681 [GRUB_UTIL]: New variable.
16682 (gpt_partition_map_iterate): Set part.parent.
16683 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16684 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16685 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16686 New function.
16687 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16688 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16689 (grub_partition_map) [GRUB_UTIL]: New field embed.
16690 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16691 (setup): Use ->embed.
16692
f00478b7
VS
166932010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16694
16695 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16696 function.
16697 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16698 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16699
2b94e3ff
YB
167002010-09-15 Yves Blusseau <blusseau@zetam.org>
16701
16702 Add function to get completions from usage.
16703
16704 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16705 completions from usage. Use LC_ALL=C to get options properly.
16706
2e04a006
VS
167072010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16708
16709 * grub-core/gnulib/basename-lgpl.c: Imported.
16710 * grub-core/gnulib/basename.c: Likewise.
16711 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16712 * grub-core/gnulib/dirname.c: Likewise.
16713 * grub-core/gnulib/dirname.h: Likewise.
16714 * grub-core/gnulib/stripslash.c: Likewise.
16715
5dcdf93a
VS
167162010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16717
16718 * grub-core/gnulib/error.c: Resynced.
16719 * grub-core/gnulib/getopt.c: Likewise.
16720 * grub-core/gnulib/getopt_int.h: Likewise.
16721 * grub-core/gnulib/regex.h: Likewise.
16722 * grub-core/gnulib/regex_internal.c: Likewise.
16723 * grub-core/gnulib/regex_internal.h: Likewise.
16724
014f47b7
SJ
167252010-09-15 Szymon Janc <szymon@janc.net.pl>
16726
16727 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16728 CRC calculations and validity checks.
16729 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16730 calculations.
16731
dd521a4a
SJ
167322010-09-15 Szymon Janc <szymon@janc.net.pl>
16733
16734 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16735
79c4eeb9
VS
167362010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16737
16738 Fix incorrect echo options handling.
16739 Reported by: Yves Blusseau.
16740
16741 * include/grub/command.h (grub_command_flags_t): New flags
16742 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16743 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16744 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16745
ed80f7d5
VS
167462010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16747
16748 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16749 users updated.
16750 (GRUB_COMMAND_FLAG_MENU): Likewise.
16751 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16752 (GRUB_COMMAND_FLAG_TITLE): Removed.
16753 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16754 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16755 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16756 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16757 (grub_command_flags_t): New enum. All users updated.
16758
5fe7620a
SG
167592010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16760
16761 Fix solaris compilation.
16762
16763 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16764 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16765 (grub-emu-list): Likewise.
16766
545b752f
VS
167672010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16768
16769 Remove deprecated root command.
16770
16771 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16772 updated.
16773
6c1a338c
VS
167742010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16775
16776 * util/i386/pc/grub-setup.c: Merge this ...
16777 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16778 * util/grub-setup.c: ... into this.
16779 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16780 New struct.
16781
167822010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16783
16784 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16785 possible.
16786
d2ea4551
VS
167872010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16788
16789 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16790 allocate p.
16791
3c3b5040
VS
167922010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16793
16794 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16795 explicit root argument to set to prevent UUID to be interpreted as
16796 argument to set.
16797
b71c3fae
VS
167982010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16799
16800 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16801
275433e6
VS
168022010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16803
16804 Don't export grub_gate_a20.
16805
16806 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16807 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16808 to ...
16809 (grub_gate_a20): ... this. All users updated.
16810 * include/grub/i386/pc/init.h: Removed. All users updated.
16811
a5dbb1f1
VS
168122010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16813
16814 Create euro.pf2 which supports most European languages.
16815
16816 * Makefile.am (grubdata_DATA): Add euro.pf2.
16817 (euro.pf2): New target.
16818 (CLEANFILES): Add euro.pf2.
16819
62a747cb
VS
168202010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16821
16822 * configure.ac: Disable emu-usb by default to prevent inadvertent
16823 device takeover.
16824
608e43b1
VS
168252010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16826
16827 Disable usbserial on grub-emu since our libusb code isn't good enough
16828 yet.
16829
16830 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16831 (usbserial_pl2303): Likewise.
16832 (usbserial_ftdi): Likewise.
16833
94564f81
VS
168342010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16835
16836 * include/grub/disk.h (grub_disk): Remove has_partitions.
16837 All users updated.
16838 * disk/loopback.c (grub_loopback): Remove has_partitions.
16839 All users updated.
16840 (options): Remove partitions. All users updated.
16841 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16842 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16843 actual partition table is found.
16844
3352800b
VS
168452010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 Remove readability checks (too many false negatives).
16848
16849 * util/grub-install.in: Remove readability checks.
16850 * util/grub-mkconfig.in: Likewise.
16851 * util/grub.d/10_hurd.in: Likewise.
16852 * util/grub.d/10_kfreebsd.in: Likewise.
16853 * util/grub.d/10_linux.in: Likewise.
16854 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16855 way.
16856
2419f17a
VS
168572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16858
16859 Enable acpi shutdown on all ACPI platforms.
16860
16861 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16862 on coreboo, multiboot and EFI.
16863 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16864 (grub_acpi_halt): Likewise.
16865 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16866 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16867 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16868 * grub-core/lib/i386/halt.c (grub_halt)
16869 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16870
0575c7c3
VS
168712010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16872
16873 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16874 context.
16875
54ac3cd1
VS
168762010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16877
16878 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16879 * grub-core/video/efi_uga.c: Likewise.
16880
b2a30ac5
VS
168812010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16882
16883 Filter devaliases and never open same device twice.
16884
16885 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16886 (last_ihandle): Likewise.
16887 (ofdisk_hash_ent): New member shortest.
16888 (ofdisk_hash_add): Add canonical path too.
16889 (scan): New function.
16890 (grub_ofdisk_iterate): Iterate over hashed entries.
16891 (compute_dev_path): Don't add :0.
16892 (grub_ofdisk_open): Don't really open the disk.
16893 (grub_ofdisk_close): Avoid closing unrelated disk.
16894 (grub_ofdisk_read): Implement reopen logic.
16895 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16896 New function.
16897 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16898 New proto.
16899
fb53b340
VS
169002010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16901
16902 Fix sparc64.
16903
16904 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16905 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16906 right address. Add sparc64_ieee1275_ldflags.
16907 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16908 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16909 to grub_host_to_target_addr
16910 (load_image): Likewise.
16911
f452b040
VS
169122010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16913
16914 * grub-core/normal/completion.c (complete_file): Handle device
16915 containing slash.
16916 Fix based on patch by Doug Nazar.
16917
9b5b2541
VS
169182010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16919
16920 grub-mknetdir script.
16921
16922 * Makefile.util.def (grub-mknetdir): New module.
16923 * tests/util/grub-shell.in: Support boot=net
16924 * util/grub-mknetdir.in: New file.
16925
9d2be652
VS
169262010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 videoinfo on non-vbe.
16929
16930 * grub-core/Makefile.core.def (vbeinfo): Removed.
16931 (vbetest): Removed.
16932 (videoinfo): New module.
16933 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16934 * grub-core/commands/i386/pc/vbetest.c: Removed.
16935 * grub-core/commands/videoinfo.c: New file.
16936 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16937 specification.
16938 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16939 as vbetest.
16940 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16941 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16942 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16943 mode_number. New parameter mode. All users updated.
16944 (grub_video_gop_iterate): New function.
16945 (grub_video_efi_gop): New member iterate.
16946 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16947 (grub_vbe_set_video_mode): Remove setting useless fields.
16948 (vbe2videoinfo): New function.
16949 (grub_video_vbe_iterate): Likewise.
16950 (grub_video_vbe_setup): Use vbe2videoinfo.
16951 (grub_video_vbe_print_adapter_specific_info): New function.
16952 (grub_video_vbe_adapter): New fields iterate and
16953 print_adapter_specific_info.
16954 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16955 All users updated.
16956 (grub_video_mode_info): New field mode_number.
16957 (grub_video_adapter): New fields iterate and
16958 print_adapter_specific_info.
16959
179503f5
TG
169602010-09-13 Tristan Gingold <gingold@free.fr>
169612010-09-13 Robert Millan <rmh.grub@aybabtu.com>
169622010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16963
16964 * grub-core/commands/efi/lsefisystab.c: New file.
16965 * grub-core/commands/efi/lssal.c: Likewise.
16966 * grub-core/Makefile.core.def (lsacpi): New module.
16967 (lsefisystab): Likewise.
16968 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16969 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16970 (grub_efi_sal_system_table): New struct.
16971 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16972 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16973 (grub_efi_sal_system_table_platform_features): Likewise.
16974 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16975 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16976 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16977 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16978
cf9827de
VS
169792010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16980
16981 Support explicit user claim that a device is BIOS-visible.
16982
16983 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16984 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16985 * grub-core/kern/emu/hostdisk.c
16986 (convert_system_partition_to_system_disk): Support mdX.
16987 (find_system_device): New parameter add. All users updated.
16988 (grub_util_biosdisk_is_present): New function.
16989 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16990 proto.
16991
53f0eb1f
VS
169922010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16993
16994 Search hints support.
16995
16996 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16997 All users updated.
16998
b23ffd70
YB
169992010-09-13 Yves Blusseau <blusseau@zetam.org>
17000
17001 Bash completion script for util commands
17002
17003 * Makefile.am: Add util/bash-completion.d directory
17004 * configure.ac: Likewise.
17005 * util/bash-completion.d/Makefile.am: New file.
17006 * util/bash-completion.d/grub-completion.bash.in: Likewise.
17007
d547dc28
VS
170082010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17009
17010 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
17011 (print_backlog): set backlog_ucs4 and backlog_glyphs.
17012 Reported by: Yves Blusseau.
17013
2fc8ccb9
VS
170142010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17015
17016 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
17017 partition size and offset.
17018
d8a84076
VS
170192010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17020
17021 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
17022
84fb3b3d
VS
170232010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17024
17025 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
17026
768ec2e2
VS
170272010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17028
17029 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
17030 (grub_xvasprintf): Likewise.
17031
4870900f
VS
170322010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17033
17034 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
17035
faca6bec
VS
170362010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17037
17038 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
17039 args ending with NULL.
17040
170412010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
17042
17043 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
17044 pointer.
17045
3c70f225
SJ
170462010-09-11 Szymon Janc <szymon@janc.net.pl>
17047
17048 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
17049
4df7996d
VS
170502010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17051
17052 Shutdown using ACPI.
17053
17054 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
17055 * grub-core/commands/acpihalt.c: New file.
17056 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
17057 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
17058 (grub_acpi_halt): New proto.
17059 (GRUB_ACPI_SLP_EN): New const.
17060 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
17061 (GRUB_ACPI_OPCODE_*): New enum.
17062 (GRUB_ACPI_EXTOPCODE_*): Likewise.
17063
126b4c32
TG
170642010-09-11 Tristan Gingold <gingold@free.fr>
170652010-09-11 Robert Millan <rmh.grub@aybabtu.com>
170662010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17067
17068 * commands/lsacpi.c: New file.
17069 * grub-core/Makefile.core.def (lsacpi): New module.
17070 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
17071 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
17072 (grub_acpi_madt_entry_header): New struct.
17073 (grub_acpi_madt): Likewise.
17074 (grub_acpi_madt_entry_interrupt_override): Likewise.
17075 (grub_acpi_madt_entry_sapic): Likewise.
17076 (grub_acpi_madt_entry_lsapic): Likewise.
17077 (grub_acpi_madt_entry_platform_int_source): Likewise.
17078 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
17079 (PRIuGRUB_UINT32_T): Likewise.
17080 (PRIxGRUB_UINT64_T): Likewise.
17081
1aa4fe88
VS
170822010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17083
17084 Implement loading palette on ieee1275_fb.
17085
17086 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
17087 (have_setcolors): Likewise.
17088 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17089 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17090 (grub_video_ieee1275_set_palette): Implement.
17091
25761e13
VS
170922010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
170932010-09-11 Colin Watson <cjwatson@ubuntu.com>
17094
17095 * util/grub-install.in (grub_partition): New variable.
17096 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17097 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17098 Fixes a bug reported by Yves Blusseau.
17099
050abaea
VS
171002010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17101
17102 Fix emu on mipsel.
17103
17104 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17105 =grub_cpu_flush_cache on all mips and not only yeeloong.
17106 * configure.ac (COND_mips): New conditional.
17107 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17108 platforms.
17109 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17110 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17111 [GRUB_LINKER_HAVE_INIT]: New function.
17112 (grub_emu_post_init): Likewise.
17113 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17114 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17115 * include/grub/cache.h (_mips): Include mips/cache.h.
17116 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17117 LVM and RAID prototypes.
17118 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17119 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17120 function.
17121
5ed7d816
CW
171222010-09-10 Colin Watson <cjwatson@ubuntu.com>
17123
17124 * util/grub-install.in: Don't try to verify core.img until after
17125 running grub-mkimage to create it.
17126
90367e04
RM
171272010-09-10 Robert Millan <rmh@gnu.org>
17128
17129 * util/grub.d/10_hurd.in: Add misc readability checks.
17130 * util/grub.d/10_kfreebsd.in: Likewise.
17131 * util/grub.d/10_linux.in: Likewise.
17132
c452fa66
CW
171332010-09-10 Colin Watson <cjwatson@ubuntu.com>
17134
17135 * util/grub-install.in: ${imgext} won't be defined here until the
17136 install branch is merged. For the meantime, only verify core.img on
17137 i386-pc and sparc64-ieee1275 platforms.
17138
c38fe9f4
RM
171392010-09-10 Robert Millan <rmh@gnu.org>
17140
17141 Solaris support in grub_find_zpool_from_dir(). Thanks
17142 Seth Goldberg for referring to getextmntent() facility.
17143
17144 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17145 `sys/mkdev.h'.
17146 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17147 `<sys/mnttab.h>'.
17148 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17149 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17150 method for finding zpool name.
17151
905f7773
CW
171522010-09-10 Colin Watson <cjwatson@ubuntu.com>
17153
17154 grub-fstest needs the host and hostfs modules while other utilities
17155 actively require those modules to be absent, so grub-fstest needs
17156 its own initialisation and finalisation code.
17157
17158 * Makefile.am (grub_fstest.pp): New target.
17159 (grub_fstest_init.lst): Likewise.
17160 (grub_fstest_init.c): Likewise.
17161 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17162
fb90b546
RM
171632010-09-10 Robert Millan <rmh@gnu.org>
17164
17165 * configure.ac: Check for `struct statfs.f_fstypename' and
17166 `struct statfs.f_mntfromname'.
17167
17168 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17169 kFreeBSD-specific code.
17170
66d4bea5
RM
171712010-09-10 Robert Millan <rmh@gnu.org>
17172
17173 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17174 on ZFS. Now non-main filesystems are supported as / too.
17175
b6a690ee
CW
171762010-09-09 Colin Watson <cjwatson@ubuntu.com>
17177
17178 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17179 and grub-core/disk/host.c to ...
17180 (grub-fstest): ... here. Having the host disk implementation
17181 present confuses grub-probe and other utility programs.
17182
17183 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17184 when writing to a file, not when writing to stdout.
17185
8901b00c 171862010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17187
17188 * tests/partmap_test.in: New test for partitions.
17189 * Makefile.util.def: Rules for new test.
17190
7bf45fdd
RM
171912010-09-09 Robert Millan <rmh@gnu.org>
17192
17193 * util/grub-probe.c (probe): Fix a pair of unhandled error
17194 conditions.
17195
4dfbc574
RM
171962010-09-09 Robert Millan <rmh@gnu.org>
17197
17198 Basic Btrfs support (detection and UUID).
17199
17200 * grub-core/fs/btrfs.c: New file.
17201 * Makefile.util.def (library): Register btrfs.c.
17202 * grub-core/Makefile.core.def: Likewise.
17203
6b8e78ae
RM
172042010-09-08 Robert Millan <rmh@gnu.org>
17205
17206 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17207 with (optional) parameters to specify device and relative path.
17208 * util/grub-install.in: Use is_path_readable_by_grub() to
17209 verify readability of a few critical files.
17210 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17211 verify readability of grub.cfg.new.
17212
27f21a8b
VS
172132010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17214
17215 Split minix.mod into minix.mod and minix2.mod.
17216
17217 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17218 * grub-core/Makefile.core.def (minix2): New module.
17219 * grub-core/fs/minix.c: Use definitions instead of runtime version
17220 checking.
17221 * grub-core/fs/minix2.c: New file.
17222
c0e53ea5
YB
172232010-09-08 Yves Blusseau <blusseau@zetam.org>
17224
17225 Add new --boot-directory option to replace --root-directory
17226
17227 * util/grub-install.in: Add new --boot-directory option
17228 * util/grub-reboot.in: Likewise.
17229 * util/grub-set-default.in: Likewise.
17230
b9fe6ea2
YB
172312010-09-08 Yves Blusseau <blusseau@zetam.org>
17232
17233 * util/grub-mkconfig.in: Use new variable.
17234
d87aedff
YB
172352010-09-08 Yves Blusseau <blusseau@zetam.org>
17236
17237 * configure.ac: Define some useful variables.
17238
e55e8495
VS
172392010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17240
17241 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17242 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17243 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17244 Use terminfo and don't use cursor-on/cursor-off unless it's known
17245 to work.
17246 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17247 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17248
6fa6d675
CW
172492010-09-08 Colin Watson <cjwatson@ubuntu.com>
17250
17251 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17252 starts with "(,", fill the drive containing the loaded image in
17253 between those two characters, but expect that a full partition
17254 specification including partition map names will follow.
17255
92f2aef0
RM
172562010-09-08 Robert Millan <rmh@gnu.org>
17257
17258 * configure.ac: Remove `--enable-grub-fstest' option.
17259 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17260
17261 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17262 `grub-fstest' instead of `grub-probe' for readability verification.
17263 * util/grub-probe.c (probe): Remove readability verification kludge.
17264
99fd620d
RM
172652010-09-08 Robert Millan <rmh@gnu.org>
17266
17267 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17268 initializing `GRUB_FS'.
17269
058e30ac 172702010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17271
17272 Not command (!) support to GRUB script.
17273
17274 * tests/grub_script_not.in: New test.
17275 * Makefile.util.def: Rules for new test.
17276
17277 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17278 ! command as a special case.
17279 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17280
b61d05ed 172812010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17282
058e30ac 17283 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17284 grub_free.
b61d05ed 17285
4d69c786 172862010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17287
17288 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17289
aa3119c4 172902010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17291
17292 * docs/grub.texi (Shell-like scripting): Documentation for break,
17293 continue, shift and return commands.
17294
db0f7e3d
VS
172952010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17296
17297 Rename CD-ROM to cd on BIOS.
17298
17299 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17300 "cd".
17301 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17302
88b87c93
VS
173032010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17304
17305 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17306 * util/grub-probe.c (main): Likewise.
17307 * util/i386/pc/grub-setup.c (main): Likewise.
17308 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17309 Reported and debugged by: alexxy
17310
294f324d
VS
173112010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17312
17313 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17314 diagnostic info.
17315
d7ee3441
JS
173162010-09-05 Jo Shields <directhex@apebox.org>
17317
17318 * util/grub.d/30_os-prober.in: Add missing classes.
17319
d7e06c1f
VS
173202010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17321
17322 * docs/grub.texi (Theme file format): Document new position format.
17323
fc157e53
VS
173242010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17325
17326 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17327 a table. Use @code instead of @verbatim.
17328
506e9a1c
CB
173292010-09-05 Colin D Bennett <colin@gibibit.com>
17330
17331 Gfxmenu documentation.
17332
17333 * docs/grub.texi (Theme file format): New chapter.
17334
f0aff67c
SJ
173352010-09-05 Szymon Janc <szymon@janc.net.pl>
17336
17337 * grub-core/Makefile.core.def (xzio): New module.
17338 * grub-core/io/xzio.c: New file.
17339 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17340 * grub-core/lib/xzembed/xz_config.h: Likewise.
17341 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17342 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17343 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17344 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17345 * grub-core/lib/xzembed/xz_private.h: Likewise.
17346 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17347 * include/grub/file.h (grub_file_filter_id): New compression filter
17348 GRUB_FILE_FILTER_XZIO.
17349
82a85062
VS
173502010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17351
17352 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17353 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17354 size.
17355
3579415d
VS
173562010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17357
17358 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17359 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17360
5124ae6d
VS
173612010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17362
17363 Uncompressed checksum support.
17364
17365 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17366 (check_list): New parameter uncompress.
17367 (grub_cmd_hashsum): Handle --uncompress.
17368
9aadb3d1
VS
173692010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17370
17371 Reintroduce testload.
17372
17373 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17374 from here ...
17375 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17376 (GRUB_MOD_INIT): New function.
17377 (GRUB_MOD_FINI): Likewise.
17378 * grub-core/Makefile.core.def (testload): New module.
17379
a17792c3
SJ
173802010-09-05 Szymon Janc <szymon@janc.net.pl>
17381
17382 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17383 (uint8_t): New type.
17384 (uint16_t): Likewise.
17385 (uint32_t): Likewise.
17386 (uint64_t): Likewise.
17387
b81e40a3
SJ
173882010-09-05 Szymon Janc <szymon@janc.net.pl>
17389
17390 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17391
fc2ef117
VS
173922010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17393
17394 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17395 Made static.
17396 (grub_gzfile_open): Removed. All users updated.
17397 (GRUB_MOD_INIT): New function.
17398 (GRUB_MOD_FINI): Likewise.
17399 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17400 (grub_file_filters_enabled): Likewise.
17401 (grub_file_open): Handle filters.
17402 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17403 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17404 * include/grub/file.h (grub_file_filter_id_t): New type.
17405 (grub_file_filter_t): Likewise.
17406 (grub_file_filters_all): New extern variable.
17407 (grub_file_filters_enabled): Likewise.
17408 (grub_file_filter_register): New inline function.
17409 (grub_file_filter_unregister): Likewise.
17410 (grub_file_filter_disable): Likewise.
17411 (grub_file_filter_disable_compression): Likewise.
17412 * include/grub/gzio.h: Removed.
17413
35ee15e0
BC
174142010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17415
17416 Filename expansion support for wildcards in GRUB script.
17417
17418 * tests/grub_script_expansion.in: New test.
17419 * Makefile.util.def: Rule for new test.
17420
17421 * grub-core/commands/wildcard.c: New file, implements filename
17422 expansion support for GRUB script.
17423 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17424 * grub-core/script/argv.c: Cosmetic changes.
17425 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17426 Refactored to perform wildcard expansion on arguments.
17427 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17428 struct.
17429
17430 * tests/util/grub-shell.in: Fix quoting for read input.
17431
5f0c4aca
BC
174322010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17433
17434 Support for updating environment variables with matched substrings
17435 of regexp.
17436
17437 * tests/grub_cmd_regexp.in: New test.
17438 * Makefile.util.def: Rule for new test.
17439
17440 * grub-core/commands/regexp.c: New option -s to update environment
17441 variables with regexp matches.
17442
3759a35f
SJ
174432010-09-04 Szymon Janc <szymon@janc.net.pl>
17444
17445 * include/grub/file.h (grub_file): New member not_easly_seekable.
17446 (grub_file_seekable): New inline function.
17447 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17448 easily seekable.
17449 (grub_gzio_open): Set not_easly_seekable.
17450 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17451 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17452
ed8c6dec
BC
174532010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17454
17455 Support for options to appear multiple times on cmdline.
17456
17457 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17458 * grub-core/commands/extcmd.c: Support for repeatable option.
17459 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17460 repeatable option support.
17461
17462 Refactor menuentry into a regular command.
17463
17464 * grub-core/commands/menuentry.c: New file, menuentry command
17465 implementation.
17466 * grub-core/Makefile.core.def: Rule update for normal.mod.
17467 * grub-core/normal/main.c: Moved menuentry creation to
17468 grub-core/commands/menuentry.c.
17469 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17470 (grub_menu_execute_entry_real): Removed.
17471 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17472 function.
17473 (grub_script_execute_menuentry): Removed.
17474 * grub-core/script/parser.y (menuentry): Removed.
17475 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17476 * grub-core/script/yylex.l (menuentry): Removed.
17477 * include/grub/menu.h (grub_menu_init): New prototype.
17478 (grub_menu_fini): New prototype.
17479 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17480 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17481 (grub_script_execute_sourcecode): New prototype.
17482
dacd0cf0
BC
174832010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17484
17485 "return" command for GRUB script functions.
17486
17487 * tests/grub_script_return.in: New test.
17488 * Makefile.util.def: Rules for new test.
17489
17490 * grub-core/script/execute.c (grub_script_return): New function.
17491 * grub-core/script/main.c: Register/unregister return commaond.
17492 * include/grub/script_sh.h (grub_script_return): New prototype.
17493
52e72f9d
BC
174942010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17495
17496 "setparams" command to update positional parameters.
17497
17498 * tests/grub_script_setparams.in: New test.
17499 * Makefile.util.def: Rules for new test.
17500
17501 * grub-core/script/argv.c (grub_script_argv_make): New function.
17502 * grub-core/script/execute.c (replace_scope): New function.
17503 (grub_script_setparams): New function.
17504 * grub-core/script/lexer.c: Remove unused variables.
17505 * grub-core/script/main.c: Register/unregister setparams command.
17506 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17507 (grub_script_setparams): New prototype.
17508
25b60c91
BC
175092010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17510
17511 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17512 grub_free order.
17513
37e7bf68
BC
175142010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17515
17516 Support for passing block of commands as an argument to extcmds.
17517
17518 * Makefile.util.def: Rules for new test.
17519 * tests/grub_script_blockarg.in: New test.
17520 * grub-core/tests/test_blockarg.c: New file, block argument
17521 command used in the test.
17522
17523 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17524 (grub_register_extcmd_prio): New function prototype.
17525 (grub_extcmd_dispatcher): New function prototype.
17526 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17527 type.
17528 * include/grub/script_sh.h (struct grub_script): New members
17529 `children', `next_siblings' and `refcnt' for block arguments and
17530 reference counting.
17531 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17532 (grub_script_arg): New member `script' for block argument.
17533 (grub_script_argv): New member `script' for block argument.
17534 (grub_parser_param): New member `scripts' for block argument.
17535 (grub_script_mem_free): New extern function prototype.
17536 (grub_script_ref): New function prototype.
17537 (grub_script_unref): New function prototype.
17538
17539 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17540 extcmd form to support block arguments.
17541 * grub-core/script/argv.c: Block arguments support.
17542 * grub-core/script/execute.c: Likewise.
17543 * grub-core/script/lexer.c: Likewise.
17544 * grub-core/script/main.c: Likewise.
17545 * grub-core/script/script.c: Likewise.
17546 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17547 non-terminals.
17548
17549 * grub-core/commands/acpi.c: Update extcmd implementations with
17550 grub_extcmd_context_t.
17551 * grub-core/commands/cat.c: Likewise.
17552 * grub-core/commands/echo.c: Likewise.
17553 * grub-core/commands/extcmd.c: Likewise.
17554 * grub-core/commands/hashsum.c: Likewise.
17555 * grub-core/commands/hdparm.c: Likewise.
17556 * grub-core/commands/help.c: Likewise.
17557 * grub-core/commands/hexdump.c: Likewise.
17558 * grub-core/commands/i386/cpuid.c: Likewise.
17559 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17560 * grub-core/commands/i386/pc/halt.c: Likewise.
17561 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17562 * grub-core/commands/iorw.c: Likewise.
17563 * grub-core/commands/keystatus.c: Likewise.
17564 * grub-core/commands/loadenv.c: Likewise.
17565 * grub-core/commands/ls.c: Likewise.
17566 * grub-core/commands/lspci.c: Likewise.
17567 * grub-core/commands/memrw.c: Likewise.
17568 * grub-core/commands/probe.c: Likewise.
17569 * grub-core/commands/search_wrap.c: Likewise.
17570 * grub-core/commands/setpci.c: Likewise.
17571 * grub-core/commands/sleep.c: Likewise.
17572 * grub-core/disk/loopback.c: Likewise.
17573 * grub-core/hello/hello.c: Likewise.
17574 * grub-core/loader/i386/bsd.c: Likewise.
17575 * grub-core/loader/xnu.c: Likewise.
17576 * grub-core/term/gfxterm.c: Likewise.
17577 * grub-core/term/serial.c: Likewise.
17578 * grub-core/tests/lib/functional_test.c: Likewise.
17579
888d1500
BC
175802010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17581
17582 Multi-line quoted strings support.
17583
17584 * grub-core/script/lexer.c (append_newline): Removed.
17585 (grub_script_lexer_yywrap): Refactored.
17586 (grub_script_lexer_init): Refactored.
17587 * grub-core/script/yylex.l (yywrap): New function.
17588 (grub_lexer_resplit): New function.
17589 (grub_lexer_unput): New function.
17590 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17591 and resplit.
17592 * tests/grub_script_echo1.in: Added few more testcases.
17593
dda060dd
VS
175942010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17595
17596 * grub-core/kern/misc.c: Don't add abort alias in utils.
17597 Reported by: echoline.
17598
6556eba9
BC
175992010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17600
17601 Add missing files into "make dist" tarball for other platforms.
17602
17603 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17604 * conf/Makefile.common (dist_noinst_DATA): New variable.
17605 * conf/Makefile.extra-dist: Added missing make dist files.
17606 * grub-core/Makefile.core.def: Likewise.
17607
c8e7bf5f
VS
176082010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17609
17610 Compress grub_prefix.
17611
17612 * grub-core/boot/i386/pc/lnxboot.S: Use
17613 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17614 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17615 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17616 GRUB_MACHINE_PREFIX_END. All users updated.
17617 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17618 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17619 + 0x40.
17620 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17621 * util/grub-mkimage.c (image_target_desc): Change data_end to
17622 prefix_end. All users updated.
17623
a7c00cdb
VS
176242010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17625
17626 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17627 value.
17628 (grub_openbsd_boot): Likewise.
17629 (grub_netbsd_boot): Likewise.
17630 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17631 (grub_xnu_boot): Likewise.
17632
9f915872
VS
176332010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17634
17635 * configure.ac: Clean LIBS variable after tests.
17636
efa1bee7
CW
176372010-09-02 Colin Watson <cjwatson@ubuntu.com>
17638
17639 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17640
61d720e5
VS
176412010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17642
17643 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17644 echo if libdevmapper will be used.
17645
ef8e0ec8
IT
176462010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17647
17648 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17649 constant for the same file.
17650
03e261d8
VS
176512010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17652
17653 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17654
c2a4eba6
CW
176552010-09-02 Colin Watson <cjwatson@ubuntu.com>
17656
17657 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17658 grub-core/*.pp.
17659
9056cbf3
CW
176602010-09-02 Colin Watson <cjwatson@ubuntu.com>
17661
17662 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17663 required by the boot protocol.
17664
17665 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17666 ebp and edi members.
17667 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17668 state.ebp and state.edi.
17669 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17670 %ebp and %edi according to grub_relocator32_ebp and
17671 grub_relocator32_edi respectively.
17672 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17673 and state.edi.
17674
529cc99a
VS
176752010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17676
17677 Add i386-pc-pxe image target.
17678
17679 * util/grub-mkimage.c (image_target_desc): New enum value
17680 IMAGE_I386_PC_PXE.
17681 (image_targets): New target i386-pc-pxe.
17682 (generate_image): Handle i386-pc-pxe image.
17683
9a093920
VS
176842010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17685
17686 Fix grub_pxe_scan.
17687
17688 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17689 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17690 All users updated.
17691 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17692 (grub_pxe_pxenv): Correct type.
17693
f9cefc4e
CW
176942010-09-01 Colin Watson <cjwatson@ubuntu.com>
17695
17696 * NEWS: Document most of the important changes since 1.98.
17697
4066f57f
CW
176982010-09-01 Colin Watson <cjwatson@ubuntu.com>
17699
17700 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17701 generated manual page) a little.
17702
da2891f9
CW
177032010-09-01 Colin Watson <cjwatson@ubuntu.com>
17704
17705 * docs/grub.texi: Add myself as an author.
17706
ad717fae
VS
177072010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17708
17709 * Makefile.util.def (libgrub.a): Add missing sunpc.
17710 Reported by: Seth Goldberg.
17711
eefe8abd
VS
177122010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17713
17714 Interrupt wrapping and code simplifications.
17715
9494ef9a
VS
17716 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17717 x86_noieee1275 which are functionaly equivalent in this case.
17718 (grub-install): Make source on each platform explicit. Enable on
17719 all noemu.
17720 * gentpl.py (x86_efi_pc): Removed group.
17721 (x86_noefi): Likewise.
17722 (i386_noefi): Likewise.
17723 (x86_noieee1275): Likewise.
17724 (i386_noieee1275): Likewise.
17725 (i386_noefi_noieee1275): Likewise.
17726 (i386_pc_qemu_coreboot): Likewise.
17727 (i386_coreboot_multiboot): Likewise.
17728 (i386_pc_coreboot_multiboot_qemu): Likewise.
17729 (x86_noefi_mips): Likewise.
17730 (noieee1275): Likewise.
17731 (ieee1275_mips): Likewise.
17732 (noemu_noieee1275): Likewise.
17733 (cmos): New group.
17734 (usb): Likewise.
17735 (videoinkernel): Likewise.
17736 (videomodules): Likewise.
eefe8abd 17737 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
17738 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17739 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17740 include/grub/loader.h, include/grub/msdos_partition.h,
17741 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17742 include/grub/machine/console.h, include/grub/machine/vga.h,
17743 include/grub/machine/vbe.h, include/grub/machine/init.h,
17744 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17745 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 17746 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
17747 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17748 * grub-core/Makefile.core.def (kernel): Explicit the source for
17749 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17750 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17751 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17752 Use videoinkernel tag.
17753 (usb): Enable on all usb.
17754 (usbserial_common): Likewise.
17755 (usbserial_pl2303): Likewise.
17756 (usbserial_ftdi): Likewise.
17757 (uhci): Enable on all x86.
17758 (ohci): Enable on all pci.
17759 (cmostest): Enable on all CMOS.
17760 (acpi): Include commands/acpi.c on all platforms.
17761 (halt): Add relevant lib/*/halt.c.
17762 (hdparm): Enable on all pci.
17763 (lspci): Likewise.
17764 (usbtest): Enable on all usb.
17765 (ata): Enable on all pci.
17766 (ata_pthru): Likewise.
17767 (usbms): Enable on all usb.
17768 (usb_keyboard): Likewise.
17769 (font): Use tag videomodules.
17770 (bufio): Likewise.
17771 (datetime): Use tag cmos. Enable on all noemu.
17772 (mmap): Use tags common and x86.
17773 (gfxterm): Use tag videomodules.
17774 (bitmap): Likewise.
17775 (bitmap_scale): Likewise.
17776 (video_fb): Likewise.
17777 (video): Likewise.
17778 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17779 adjust padding accordingly. All users updated.
17780 (grub_ohci_transaction): Fix bad format specification.
17781 (GRUB_MOD_INIT): Add asserts for struct size.
17782 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17783 (grub_alloc_td): Likewise.
17784 (grub_free_queue): Likewise.
17785 (grub_uhci_transfer): Likewise.
17786 (grub_uhci_transaction): Fix bad format specification.
17787 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17788 (grub_usb_bulk_readwrite): Likewise.
17789 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17790 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17791 Made static.
17792 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17793 Made static.
17794 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17795 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17796 Transformed into C.
17797 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17798 Moved from here ...
17799 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17800 ... here. Transformed into C. Made static.
17801 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17802 Moved from here ...
17803 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17804 ... here. Transformed into C. Made static.
17805 * grub-core/kern/i386/pc/startup.S
17806 (grub_biosdisk_check_int13_extensions): Moved from here ...
17807 * grub-core/disk/i386/pc/biosdisk.c
17808 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17809 Made static.
17810 * grub-core/kern/i386/pc/startup.S
17811 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17812 * grub-core/disk/i386/pc/biosdisk.c
17813 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17814 Transformed into C. Made static.
17815 * grub-core/kern/i386/pc/startup.S
17816 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17817 * grub-core/disk/i386/pc/biosdisk.c
17818 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17819 Transformed into C. Made static.
17820 * grub-core/kern/i386/pc/startup.S
17821 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17822 * grub-core/disk/i386/pc/biosdisk.c
17823 (grub_biosdisk_get_diskinfo_standard): ... here.
17824 Transformed into C. Made static.
17825 * grub-core/kern/i386/pc/startup.S
17826 (grub_biosdisk_get_num_floppies): Moved from here ...
17827 * grub-core/disk/i386/pc/biosdisk.c
17828 (grub_biosdisk_get_num_floppies): ... here.
17829 Transformed into C. Made static.
17830 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17831 New function.
17832 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17833 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17834 Transformed into C. Made static.
17835 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17836 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17837 Transformed into C. Made static.
17838 * grub-core/kern/i386/ieee1275/init.c: Removed.
17839 * grub-core/kern/i386/misc.S: Likewise.
17840 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17841 Splitted from here ...
17842 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17843 Transformed into C. Made static. All users updated.
17844 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17845 Transformed into C. Made static. All users updated.
17846 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17847 Moved from here...
17848 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17849 Transformed into C. Made static. All users updated.
17850 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17851 Moved from here...
17852 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17853 Transformed into C. Made static. All users updated.
17854 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17855 Removed (replaced by C version).
17856 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17857 Moved from here...
17858 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17859 Transformed into C. Made static.
17860 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17861 Moved from here...
17862 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17863 ... here. Transformed into C.
17864 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17865 Moved from here...
17866 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17867 ... here. Transformed into C.
17868 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17869 Moved from here...
17870 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17871 ... here. Transformed into C. Made static.
17872 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17873 Moved from here...
17874 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17875 ... here. Transformed into C.
21ed554b
VS
17876 * grub-core/kern/i386/pc/startup.S
17877 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17878 * grub-core/video/i386/pc/vbe.c
17879 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
17880 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17881 Moved from here...
17882 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17883 ... here. Transformed into C.
17884 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17885 Moved from here...
17886 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17887 ... here. Transformed into C.
17888 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17889 Moved from here...
17890 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17891 ... here. Transformed into C.
17892 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17893 Moved from here...
17894 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17895 ... here. Transformed into C.
17896 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17897 Moved from here...
17898 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17899 ... here. Transformed into C. Made static.
17900 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17901 Moved from here...
17902 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17903 ... here. Transformed into C. Made static.
17904 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17905 Moved from here...
17906 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17907 ... here. Transformed into C. Made static.
17908 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17909 pxe_rm_entry as third argument.
17910 (grub_bios_interrupt): New function.
17911 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17912 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17913 of calling grub_stop.
17914 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17915 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17916 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17917 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17918 * grub-core/lib/i386/halt.c: Moved from here ...
17919 * grub-core/lib/i386/halt.c: ... here.
17920 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17921 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17922 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17923 grub_stop_floppy.
17924 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17925 * include/grub/i386/coreboot/init.h: Removed.
17926 * include/grub/i386/multiboot/init.h: Likewise.
17927 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17928 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17929 * include/grub/i386/pc/int.h: New file.
17930 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17931 (grub_pxe_scan): Removed.
17932 (grub_pxe_call): Update prototype.
17933 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17934 prototypes.
17935 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17936 * include/grub/i386/qemu/init.h: Removed.
17937 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17938 noreturn.
17939 (grub_halt): Likewise.
17940 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17941 (grub_reboot): Likewise.
17942 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17943 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
17944 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17945
215dd471
RM
179462010-08-30 Robert Millan <rmh@gnu.org>
17947
17948 * NEWS: Document addition of ZFS support in `grub-install' and
17949 `grub-mkconfig'.
17950
ebd65b82
BC
179512010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17952
17953 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17954 dprintf output.
17955
11721d19
VS
179562010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17957
17958 Remove leftover embedding of font objects.
17959
17960 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17961 * util/grub-install.in (font): Removed.
17962 * util/grub-mkimage.c (generate_image): Remove font support. All users
17963 updated.
17964
37837d4e
VS
179652010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17966
17967 Remove leftover embedding of font objects.
17968
17969 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17970 * util/grub-install.in (font): Removed.
17971 * util/grub-mkimage.c (generate_image): Remove font support. All users
17972 updated.
17973
b4c1aae0
VS
179742010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17975
17976 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 17977 Reported by: Ian Turner
b4c1aae0 17978
8920a08d
VS
179792010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17980
17981 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17982 timeout to avoid indefinite boot stalling.
17983
f21db033
VS
179842010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17985
17986 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17987 (grub_env_write_color_highlight): Likewise.
17988
9a9de209
VS
179892010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17990
17991 * grub-core/normal/term.c (print_more): Return to normal and not
17992 to standard state after printing "---MORE---".
17993
3dca01d7
VS
179942010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17995
17996 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17997 Mask out the bit 0x80 since it has other meaning that specifiing color.
17998
0b986c40
VS
179992010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18000
18001 New relocator. Allows for more kernel support and more straightforward
18002 loader writing.
18003
18004 * Makefile.am (BOOTTARGET): New variable.
18005 (QEMU32): Likewise.
18006 (linux.init.x86_64): New target.
18007 (linux.init.i386): Likewise.
18008 (multiboot.elf): Likewise.
18009 (kfreebsd.elf): Likewise.
18010 (kfreebsd.aout): Likewise.
18011 (pc-chainloader.elf): Likewise.
18012 (pc-chainloader.bin): Likewise.
18013 (ntldr.elf): Likewise.
18014 (ntldr.bin): Likewise.
18015 (multiboot2.elf): Likewise.
18016 (kfreebsd.init.x86_64): Likewise.
18017 (kfreebsd.init.i386): Likewise.
18018 (knetbsd.init.i386): Likewise.
18019 (kopenbsd.init.i386): Likewise.
18020 (knetbsd.init.x86_64): Likewise.
18021 (kopenbsd.init.x86_64): Likewise.
18022 (linux-initramfs.i386): Likewise.
18023 (linux-initramfs.x86_64): Likewise.
18024 (kfreebsd-mfsroot.i386.img): Likewise.
18025 (knetbsd.image.i386): Likewise.
18026 (kopenbsd.image.i386): Likewise.
18027 (kopenbsd.image.x86_64): Likewise.
18028 (knetbsd.miniroot-image.i386.img): Likewise.
18029 (kfreebsd-mfsroot.x86_64.img): Likewise.
18030 (knetbsd.image.x86_64): Likewise.
18031 (knetbsd.miniroot-image.x86_64.img): Likewise.
18032 (kfreebsd-mfsroot.i386.gz): Likewise.
18033 (bootcheck-kfreebsd-i386): Likewise.
18034 (kfreebsd-mfsroot.x86_64.gz): Likewise.
18035 (bootcheck-kfreebsd-x86_64): Likewise.
18036 (knetbsd.miniroot-image.i386.gz): Likewise.
18037 (bootcheck-knetbsd-i386): Likewise.
18038 (bootcheck-kopenbsd-i386): Likewise.
18039 (bootcheck-kopenbsd-x86_64): Likewise.
18040 (knetbsd.miniroot-image.x86_64.gz): Likewise.
18041 (bootcheck-knetbsd-x86_64): Likewise.
18042 (bootcheck-linux-i386): Likewise.
18043 (bootcheck-linux-x86_64): Likewise.
18044 (bootcheck-linux16-i386): Likewise.
18045 (bootcheck-linux16-x86_64): Likewise.
18046 (bootcheck-multiboot): Likewise.
18047 (bootcheck-multiboot2): Likewise.
18048 (bootcheck-kfreebsd-aout): Likewise.
18049 (bootcheck-pc-chainloader): Likewise.
18050 (bootcheck-ntldr): Likewise.
18051 (CLEANFILES): Add new targets.
18052 (BOOTCHECKS): New variable.
18053 (.PHONY): Add bootchecks.
18054 (SUCCESSFUL_BOOT_STRING): New variable.
18055 (BOOTCHECK_TIMEOUT): Likewise.
18056 (bootcheck): New target
18057 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
18058 * configure.ac: Correct efiemu excuse.
18059 * docs/grub.texi (Supported kernels): New chapter.
18060 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
18061 include/grub/mm_private.h. Simplify inclusion of
18062 include/grub/boot.h, include/grub/loader.h
18063 and include/grub/msdos_partition.h
18064 (KERNEL_HEADER_FILES) [i386_coreboot]:
18065 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
18066 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
18067 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
18068 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
18069 include/grub/machine/loader.h.
18070 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
18071 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
18072 extra_dist.
18073 (pci.mod): Enable on i386-multiboot.
18074 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
18075 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
18076 i386-qemu.
18077 (relocator.mod): Rewritten.
18078 (aout.mod): Enable on all x86.
18079 (bsd.mod): Likewise.
18080 (ntldr.mod): New module.
18081 (linux.mod): Use loader/i386/linux.c on all x86.
18082 (xnu.mod): Enable on all x86.
18083 (vga_text.mod): disable on EFI and QEMU.
18084 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
18085 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
18086 * grub-core/efiemu/loadcore.c: Likewise.
18087 * grub-core/efiemu/main.c: Likewise.
18088 (grub_efiemu_exit_boot_services): Removed.
18089 (grub_efiemu_finish_boot_services): Likewise.
18090 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18091 function.
18092 * grub-core/efiemu/i386/nocfgtables.c: New file.
18093 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18094 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18095 (grub_efi_finish_boot_services): Moved from here ...
18096 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18097 Fille finish memory map and related data.
18098 (finish_mmap_buf): New variable.
18099 (grub_efi_uintn_t finish_mmap_size): Likewise.
18100 (grub_efi_uintn_t finish_key): Likewise.
18101 (grub_efi_uintn_t finish_desc_size): Likewise.
18102 (grub_efi_uint32_t finish_desc_version): Likewise.
18103 (grub_efi_is_finished): Likewise.
18104 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18105 finished.
18106 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18107 (grub_elf64_phdr_iterate): Likewise.
18108 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18109 (grub_os_area_size): Likewise.
18110 (grub_machine_init): Don't reserve os area.
18111 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18112 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18113 * grub-core/kern/i386/loader.S: Removed.
18114 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18115 (grub_os_area_size): Likewise.
18116 (grub_machine_init): Don't reserve os area.
18117 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18118 Don't call grub_dl_unload_all.
18119 Don't include loader.S.
18120 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18121 Declare the memory after _end as available.
18122 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 18123 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 18124 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
18125 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18126 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18127 * include/grub/mm_private.h (grub_mm_header): ... here.
18128 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18129 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
18130 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18131 (grub_mm_region): ..here. Removed addr. Added pre_size.
18132 All users updated.
18133 * grub-core/kern/mm.c (base): Renamed to ...
18134 (grub_mm_base): ... this. Made global.
18135 (grub_real_malloc): Alloc from end of region.
18136 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18137 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18138 * grub-core/kern/powerpc/cache_flush.S: ... here.
18139 * grub-core/lib/efi/relocator.c: New file.
18140 * grub-core/lib/i386/relocator.c: Rewritten.
18141 * grub-core/lib/i386/relocator16.S: New file.
18142 * grub-core/lib/i386/relocator32.S: Likewise.
18143 * grub-core/lib/i386/relocator64.S: Likewise.
18144 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18145 * grub-core/lib/i386/relocator_common.S: New file.
18146 * grub-core/lib/ieee1275/relocator.c: Likewise.
18147 * grub-core/lib/mips/relocator.c: Rewritten.
18148 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18149 stylistic adjustments.
18150 * grub-core/lib/powerpc/relocator.c: New file.
18151 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18152 * grub-core/lib/relocator.c: Rewritten.
18153 * grub-core/lib/x86_64/relocator_asm.S: New file.
18154 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18155 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18156 (bsd_tag): New struct.
18157 (tags): New variable.
18158 (tags_last): Likewise.
18159 (netbsd_module): New struct.
18160 (netbsd_mods): New variable.
18161 (netbsd_mods_last): Likewise.
18162 (openbsd_opts): New parameter "serial".
18163 (OPENBSD_SERIAL_ARG): New definition.
18164 (netbsd_opts): New parameter "serial".
18165 (NETBSD_SERIAL_ARG): New definition.
18166 (grub_freebsd_add_meta): Reorganised into ...
18167 (grub_bsd_add_meta): ...this. All users updated.
18168 (grub_freebsd_add_mmap): Reorganised into ...
18169 (generate_e820_mmap): ...this...
18170 (grub_bsd_add_mmap): ...and this. All users updated.
18171 (grub_freebsd_list_modules): Use tags.
18172 (grub_netbsd_add_meta_module): New function.
18173 (grub_netbsd_list_modules): Likewise.
18174 (grub_freebsd_boot): Use relocator and finish EFI.
18175 (grub_openbsd_boot): Likewise.
18176 (grub_netbsd_setup_video): New function.
18177 (grub_netbsd_add_modules): Likewise.
18178 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18179 and finish EFI.
18180 (grub_bsd_unload): Unload tags.
18181 (grub_bsd_load_aout): Use relocator.
18182 (grub_bsd_elf32_size_hook): New function.
18183 (grub_bsd_elf32_hook): Use relocator.
18184 (grub_bsd_elf64_size_hook): New function.
18185 (grub_bsd_elf64_hook): Use relocator.
18186 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18187 (grub_bsd_load): Zero-out openbsd_ramdisk.
18188 (grub_bsd_load): Use relocator.
18189 (grub_cmd_openbsd): Support serial.
18190 (grub_cmd_netbsd): Support modules.
18191 (grub_cmd_freebsd_module): Use relocator.
18192 (grub_netbsd_module_load): New function.
18193 (grub_cmd_netbsd_module): Likewise.
18194 (grub_cmd_openbsd_ramdisk): Likewise.
18195 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18196 kopenbsd_ramdisk.
18197 (GRUB_MOD_FINI): Unregister new commands.
18198 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18199 (grub_freebsd_load_elfmodule_obj): Use relocator.
18200 (grub_freebsd_load_elfmodule): Likewise.
18201 (grub_freebsd_load_elf_meta): Likewise.
18202 (grub_netbsd_load_elf_meta): New function.
18203 (grub_openbsd_find_ramdisk): Likewise.
18204 * grub-core/loader/i386/bsd_helper.S: Removed.
18205 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18206 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18207 * grub-core/loader/i386/efi/linux.c: Likewise.
18208 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18209 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18210 (DEFAULT_VIDEO_MODE): Likewise.
18211 (real_mode_target): New variable.
18212 (prot_mode_target): Likewise.
18213 (initrd_mem_target): Likewise.
18214 (relocator): Likewise.
18215 (efi_mmap_buf): Likewise.
18216 (efi_mmap_size): Likewise.
18217 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18218 (free_pages): Use relocator.
18219 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18220 (grub_linux_setup_video): Return error.
18221 (grub_linux_trampoline_start): Removed.
18222 (grub_linux_trampoline_end): Likewise.
18223 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18224 andd video parameters depending on firmware.
18225 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18226 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18227 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18228 (grub_cmd_initrd): Use relocator.
18229 * grub-core/loader/i386/linux_trampoline.S: Removed.
18230 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18231 (elf_sec_entsize): Likewise.
18232 (elf_sec_shstrndx): Likewise.
18233 (elf_sections): Likewise.
18234 (grub_multiboot_load): Use relocator.
18235 (grub_multiboot_get_mbi_size): Account for sections.
18236 (grub_multiboot_make_mbi): Use relocator and support sections.
18237 (grub_multiboot_add_elfsyms): New function.
18238 (grub_multiboot_free_mbi): Free sections.
18239 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18240 (grub_linux_real_target): Likewise.
18241 (grub_linux_real_chunk): Likewise.
18242 (grub_linux16_prot_size): Likewise.
18243 (grub_linux16_boot): Use relocator.
18244 (grub_linux_unload): Unload relocator.
18245 (grub_cmd_linux): Use relocator.
18246 (grub_cmd_initrd): Likewise.
18247 * grub-core/loader/i386/pc/ntldr.c: New file.
18248 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18249 Don't try to guess CPU frequency.
18250 (grub_xnu_set_video): Stretch bitmap.
18251 (grub_xnu_boot): Use relocator.
18252 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18253 (grub_linux_unload): Free relocator.
18254 (grub_linux_load32): Use relocator.
18255 (grub_linux_load64): Likewise.
18256 (grub_cmd_initrd): Likewise.
18257 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18258 (grub_multiboot_unload): Unload relocator.
18259 (grub_cmd_multiboot): Use relocator.
18260 (grub_cmd_module): Likewise.
18261 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18262 Use relocator and support sections.
18263 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18264 (elf_sec_entsize): Likewise.
18265 (elf_sec_shstrndx): Likewise.
18266 (elf_sections): Likewise.
18267 (grub_multiboot_load): Use relocator.
18268 (grub_multiboot_get_mbi_size): Account for sections.
18269 (grub_multiboot_make_mbi): Use relocator and support sections.
18270 (grub_multiboot_add_elfsyms): New function.
18271 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18272 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18273 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18274 Prototype changed. All users updated.
18275 (grub_xnu_align_heap): Simplified.
18276 (grub_xnu_writetree_toheap): Likewise.
18277 (grub_xnu_unload): Unload relocator.
18278 (grub_cmd_xnu_kernel): Use relocator.
18279 (grub_cmd_xnu_kernel64): Likewise.
18280 (grub_xnu_register_memory): Simplified.
18281 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
18282 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18283 EFI is finished.
18284 (grub_console_checkkey): Likewise.
18285 (grub_console_getkey): Likewise.
18286 (grub_console_getwh): Likewise.
18287 (grub_console_getxy): Likewise.
18288 (grub_console_gotoxy): Likewise.
18289 (grub_console_cls): Likewise.
18290 (grub_console_setcolorstate): Likewise.
18291 (grub_console_setcursor): Likewise.
18292 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18293 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18294 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18295 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18296 * grub-core/tests/boot/kernel-8086.S: Likewise.
18297 * grub-core/tests/boot/kernel-i386.S: Likewise.
18298 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18299 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18300 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18301 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18302 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18303 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18304 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18305 * grub-core/tests/boot/linux.cfg: Likewise.
18306 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18307 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18308 * grub-core/tests/boot/linux16.cfg: Likewise.
18309 * grub-core/tests/boot/multiboot.cfg: Likewise.
18310 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18311 * grub-core/tests/boot/ntldr.cfg: Likewise.
18312 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18313 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18314 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18315 New definition.
18316 * include/grub/dl.h (grub_dl_unload_all): Removed.
18317 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18318 (grub_efi_finish_boot_services): Change prototype.
18319 (grub_efi_is_finished): New variable.
18320 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18321 Changed prototype.
18322 (grub_efiemu_finish_boot_services): Removed.
18323 (grub_machine_efiemu_init_tables): New prototype.
18324 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18325 (grub_elf64_phdr_iterate): Likewise.
18326 * include/grub/i386/bsd.h: Include relocator.h.
18327 (freebsd_tag_header): New struct.
18328 (grub_openbsd_bios_mmap): Removed.
18329 (grub_unix_real_boot): Removed.
18330 (grub_freebsd_load_elfmodule32): Changed prototype.
18331 (grub_freebsd_load_elfmodule_obj64): Likewise.
18332 (grub_freebsd_load_elf_meta32): Likewise.
18333 (grub_freebsd_load_elf_meta64): Likewise.
18334 (grub_freebsd_add_meta): Removed.
18335 (grub_netbsd_load_elf_meta32): New prototype.
18336 (grub_netbsd_load_elf_meta64): Likewise.
18337 (grub_bsd_add_meta): Likewise.
18338 (grub_openbsd_ramdisk_descriptor): New struct.
18339 (grub_openbsd_find_ramdisk32): New prototype.
18340 (grub_openbsd_find_ramdisk64): Likewise.
18341 * include/grub/i386/coreboot/loader.h: Removed.
18342 * include/grub/i386/efi/loader.h: Likewise.
18343 * include/grub/i386/ieee1275/loader.h: Likewise.
18344 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18345 to grub_uint32_t.
18346 * include/grub/i386/loader.h: Removed.
18347 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18348 value.
18349 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18350 (grub_phys_addr_t): New type.
18351 (grub_vtop): New inline function.
18352 (grub_map_memory): Likewise.
18353 (grub_unmap_memory): Likewise.
18354 * include/grub/i386/multiboot/loader.h: Removed.
18355 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18356 (NETBSD_BTINFO_CONSOLE): New definition.
18357 (NETBSD_BTINFO_SYMTAB): Likewise.
18358 (NETBSD_BTINFO_MODULES): Likewise.
18359 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18360 (grub_netbsd_bootinfo): New struct.
18361 (grub_netbsd_btinfo_common): Use explicit bitsize.
18362 (grub_netbsd_btinfo_mmap_entry): Removed.
18363 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18364 (grub_netbsd_btinfo_bootdisk): New struct.
18365 (grub_netbsd_btinfo_symtab): Likewise.
18366 (grub_netbsd_btinfo_serial): Likewise.
18367 (grub_netbsd_btinfo_modules): Likewise.
18368 (grub_netbsd_btinfo_framebuf): Likewise.
18369 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18370 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18371 Likewise.
18372 (grub_openbsd_bootargs): Use explicit bitsize.
18373 (grub_openbsd_bootarg_console): New struct.
18374 (GRUB_OPENBSD_COM_MAJOR): New definition.
18375 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18376 * include/grub/i386/pc/efiemu.h: Removed.
18377 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18378 * include/grub/i386/qemu/loader.h: Removed.
18379 * include/grub/i386/relocator.h: Rewritten.
18380 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18381 * include/grub/mips/memory.h: New file.
18382 * include/grub/mips/multiboot.h: Rewritten.
18383 * include/grub/mips/relocator.h: Rewritten.
18384 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18385 (grub_vtop): New function.
18386 (grub_map_memory): Likewise.
18387 (grub_unmap_memory): Likewise.
18388 * include/grub/misc.h (ALIGN_DOWN): New definition.
18389 * include/grub/mm.h (grub_mm_check_real): New proto.
18390 (GRUB_MM_CHECK): New definition.
18391 * include/grub/mm_private.h: New file.
18392 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18393 (grub_multiboot_get_mbi_size): Removed.
18394 (grub_multiboot_make_mbi): Change prottype.
18395 (grub_multiboot_set_accepts_video): New proto.
18396 (grub_multiboot_add_elfsyms): Likewise.
18397 (grub_multiboot_payload_eip): New variable.
18398 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18399 New prototype.
18400 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18401 New definition.
18402 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18403 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18404 * include/grub/powerpc/ieee1275/loader.h: Removed.
18405 * include/grub/powerpc/memory.h: New file.
18406 * include/grub/powerpc/relocator.h: Likewise.
18407 * include/grub/relocator.h: Likewise.
18408 * include/grub/relocator_private.h: Likewise.
18409 * include/grub/sparc64/ieee1275/loader.h: Removed.
18410 * include/grub/x86_64/memory.h: New file.
18411 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18412 (grub_xnu_heap_malloc): Likewise.
18413 (grub_xnu_heap_real_start): Removed.
18414 (grub_xnu_heap_start): Likewise.
18415 (grub_xnu_relocator): New variable.
18416 (grub_xnu_heap_target_start): Likewise.
18417 * tests/util/grub-shell.in: Support non-pc.
18418 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 18419
5303b85d
VS
184202010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18421
18422 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18423 on malloc error.
18424 (grub_bidi_logical_to_visual): Check that malloc succeded.
18425 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18426 puts.
18427 (grub_xputs_normal): Likewise.
18428
d768d159
VS
184292010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18430
18431 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18432 extra_dist.
18433
184342010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18435
18436 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18437
5bf84df4
VS
184382010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18439
18440 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18441
3626810e
VS
184422010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18443
18444 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18445 dprintf.
18446
a7363f53
BC
184472010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18448
18449 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18450
902f75f6
VS
184512010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18452
18453 * grub-core/normal/term.c (print_more): Fix a memory leak.
18454 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18455 (grub_xputs_normal): Likewise.
18456
3c707967
VS
184572010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18458
18459 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18460 the begining of the string
18461
2053cc07
VS
184622010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18463
18464 * grub-core/script/script.c (grub_script_parse): Free parsed on
18465 failure.
18466
46422ebf
VS
184672010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18468
18469 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18470 on failure.
18471
9e0fa3f6
VS
184722010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18473
18474 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18475 return.
18476
3393cf16
VS
184772010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18478
18479 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18480 (scroll_up): Fix a memory leak.
18481
b17540cb
VS
184822010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18483
18484 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18485 errors.
18486
67140446
VS
184872010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18488
18489 Handle USB pendrives exposed as floppies.
18490
18491 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18492 floppy.
18493 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18494 Check for partitions on all devices.
18495
e35e46fc
VS
184962010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18497
18498 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18499 (readkey): Likewise.
18500
d24c6190
BC
185012010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18502
18503 Multiple variable names support to "export" command.
18504
18505 * normal/context.c (grub_cmd_export): "export" command supports
18506 multiple variable names.
18507
04ddcc6a
ST
185082010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18509
18510 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18511 --target=drive output to Mach device name.
18512
0c8b61d8
BC
185132010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18514
18515 New Automake based build system for GRUB.
18516
18517 * ABOUT-NLS: New file.
18518 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18519 in Makefile.util.def file.
18520 * Makefile.util.def: New file. Autogen build definitions file for
18521 GRUB host utils.
18522 * conf/Makefile.common: New file. Common variables for GRUB host
18523 utils and target modules.
18524 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18525 * docs/Makefile.am: New file. Automake file for docs.
18526 * gentpl.py: New file. Python script to generate Autogen
18527 template.
18528 * grub-core/Makefile.am: New file. GRUB target modules' rules
18529 that doesn't fit in Makefile.core.def file.
18530 * grub-core/Makefile.core.def: New file. Autogen build
18531 definitions file for GRUB target modules.
18532 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18533 specific setjmp.S file.
18534 * po/Makefile.am: New file.
18535
18536 * .bzrignore: New ignores.
18537 * INSTALL: New requirements, without Ruby.
18538 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18539 * autogen.sh: Updated to invoke autogen as necessary.
18540 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18541 and defines for Automake conditionals.
18542 * geninit.sh: Refactoring.
18543
18544 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18545 necessary.
18546 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18547 New prototype.
18548
18549 * include/grub/test.h: Fix functional test modules' naming.
18550 * grub-core/tests/example_functional_test.c: Fix test module name.
18551
18552 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18553 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18554 * util/grub-editenv.c: Likewise.
18555 * util/grub-fstest.c: Likewise.
18556 * util/grub-mkdevicemap.c: Likewise.
18557 * util/grub-mkfont.c: Likewise.
18558 * util/grub-mkimage.c: Likewise.
18559 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18560 * util/grub-probe.c: Likewise.
18561 * util/grub-script-check.c: Likewise.
18562 * util/i386/pc/grub-setup.c: Likewise.
18563 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18564
18565 * tests/util/grub-shell.in: Fix override directory path.
18566 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18567 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18568
18569 * util/lvm.c: Update #includes.
18570 * util/raid.c: Likewise.
18571 * util/resolve.c: Likewise.
18572 * grub-core/bus/emu/pci.c: Likewise.
18573 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18574 * grub-core/lib/posix_wrap/string.h: Likewise.
18575 * grub-core/kern/emu/main.c: Likewise.
18576
18577 * grub-core/gensymlist.sh: New file. Script for generating kernel
18578 symbols file.
18579 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18580
18581 * grub-core/gentrigtables.c: Fix unused variable warnings.
18582
18583 * Makefile.in: Removed.
18584 * conf/any-emu.rmk: Removed.
18585 * conf/common.rmk: Removed.
18586 * conf/i386-coreboot.rmk: Removed.
18587 * conf/i386-efi.rmk: Removed.
18588 * conf/i386-ieee1275.rmk: Removed.
18589 * conf/i386-multiboot.rmk: Removed.
18590 * conf/i386-pc.rmk: Removed.
18591 * conf/i386-qemu.rmk: Removed.
18592 * conf/i386.rmk: Removed.
18593 * conf/mips-yeeloong.rmk: Removed.
18594 * conf/mips.rmk: Removed.
18595 * conf/powerpc-ieee1275.rmk: Removed.
18596 * conf/sparc64-ieee1275.rmk: Removed.
18597 * conf/tests.rmk: Removed.
18598 * conf/x86-efi.rmk: Removed.
18599 * conf/x86_64-efi.rmk: Removed.
18600 * gendistlist.sh: Removed.
18601 * geninitheader.sh: Removed.
18602 * genkernsyms.sh.in: Removed.
18603 * genmk.rb: Removed.
18604 * gensymlist.sh.in: Removed.
18605 * mkinstalldirs: Removed.
18606 * boot: Moved ...
18607 * grub-core/boot: ... to here.
18608 * bus: Moved ...
18609 * grub-core/bus: ... to here.
18610 * commands: Moved ...
18611 * grub-core/commands: ... to here.
18612 * disk: Moved ...
18613 * grub-core/disk: ... to here.
18614 * efiemu: Moved ...
18615 * grub-core/efiemu: ... to here.
18616 * font: Moved ...
18617 * grub-core/font: ... to here.
18618 * fs: Moved ...
18619 * grub-core/fs: ... to here.
18620 * gencmdlist.sh: Moved ...
18621 * grub-core/gencmdlist.sh: ... to here.
18622 * genemuinit.sh: Moved ...
18623 * grub-core/genemuinit.sh: ... to here.
18624 * genemuinitheader.sh: Moved ...
18625 * grub-core/genemuinitheader.sh: ... to here.
18626 * genfslist.sh: Moved ...
18627 * grub-core/genfslist.sh: ... to here.
18628 * genhandlerlist.sh: Moved ...
18629 * grub-core/genhandlerlist.sh: ... to here.
18630 * genmoddep.awk: Moved ...
18631 * grub-core/genmoddep.awk: ... to here.
18632 * genmodsrc.sh: Moved ...
18633 * grub-core/genmodsrc.sh: ... to here.
18634 * genpartmaplist.sh: Moved ...
18635 * grub-core/genpartmaplist.sh: ... to here.
18636 * genparttoollist.sh: Moved ...
18637 * grub-core/genparttoollist.sh: ... to here.
18638 * genterminallist.sh: Moved ...
18639 * grub-core/genterminallist.sh: ... to here.
18640 * gentrigtables.c: Moved ...
18641 * grub-core/gentrigtables.c: ... to here.
18642 * genvideolist.sh: Moved ...
18643 * grub-core/genvideolist.sh: ... to here.
18644 * gettext: Moved ...
18645 * grub-core/gettext: ... to here.
18646 * gfxmenu: Moved ...
18647 * grub-core/gfxmenu: ... to here.
18648 * gnulib: Moved ...
18649 * grub-core/gnulib: ... to here.
18650 * hello: Moved ...
18651 * grub-core/hello: ... to here.
18652 * hook: Moved ...
18653 * grub-core/hook: ... to here.
18654 * io: Moved ...
18655 * grub-core/io: ... to here.
18656 * kern: Moved ...
18657 * grub-core/kern: ... to here.
18658 * lib: Moved ...
18659 * grub-core/lib: ... to here.
18660 * loader: Moved ...
18661 * grub-core/loader: ... to here.
18662 * mmap: Moved ...
18663 * grub-core/mmap: ... to here.
18664 * normal: Moved ...
18665 * grub-core/normal: ... to here.
18666 * partmap: Moved ...
18667 * grub-core/partmap: ... to here.
18668 * parttool: Moved ...
18669 * grub-core/parttool: ... to here.
18670 * script: Moved ...
18671 * grub-core/script: ... to here.
18672 * term: Moved ...
18673 * grub-core/term: ... to here
18674 * tests/example_functional_test.c: Moved ...
18675 * grub-core/tests/example_functional_test.c: ... to here.
18676 * tests/lib/functional_test.c: Moved ...
18677 * grub-core/tests/lib/functional_test.c: ... to here.
18678 * tests/lib/test.c: Moved ...
18679 * grub-core/tests/lib/test.c: ... to here.
18680 * video: Moved ...
18681 * grub-core/video: ... to here.
18682
645586e6
BC
186832010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18684
18685 Replace --enable-grub-emu-modules with grub-emu-lite.
18686
18687 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18688 cache.S.
18689
18690 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18691 * kern/emu/full.c: New file. For grub-emu specific initialization.
18692 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18693 * kern/emu/main.c: Call initialization function grub_emu_init.
18694
18695 * Makefile.in: Include grub-emu-lite in install.
18696 * commands/parttool.c: Use grub_no_autoload to differentiate
18697 between grub-emu and grub-emu-lite.
18698 * include/grub/misc.h: New variable grub_no_autoload.
18699
18700 * conf/any-emu.rmk: New rules for grub-emu-lite.
18701 * configure.ac: Remove --enable-grub-emu-modules.
18702 * genmk.rb: Cleanup unnecessary rules.
18703 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18704
18705 * normal/main.c: Don't load list files on grub-emu-lite.
18706 * util/misc.c (grub_arch_sync_caches): Removed.
18707
f86a4030
CW
187082010-08-23 Colin Watson <cjwatson@ubuntu.com>
18709
18710 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18711 grub-mkimage rather than grub-mkelfimage.
18712 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18713
06776944
VS
187142010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18715
18716 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18717 a key after CapsLock or NumLock. It's just a qemu bug.
18718
df262419
VS
187192010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18720
18721 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18722 needed by libusb wrapper.
18723
b40ea81b
ST
187242010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18725
18726 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18727
dee50575
VS
187282010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18729
18730 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18731 --nounzip is passed.
18732
fb1d7b79
VS
187332010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18734
18735 USB hotunplugging and USB serial support.
18736
18737 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18738 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18739 (grub_uhci_transfer): Respect timeout and set *actual.
18740 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18741 non-standard length.
18742 (grub_usb_device_attach): Autoload modules.
18743 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18744 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18745 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18746 users updated.
18747 (grub_usb_add_hub): Fill nports and children.
18748 (attach_root_port): Receive hub instead of controller.
18749 All users updated. Fill hub->devices.
18750 (grub_usb_root_hub): Allocate hub->devices.
18751 (detach_device): New function.
18752 (poll_nonroot_hub): Fill children and detach devices.
18753 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18754 actual arguments. All users updated.
18755 (grub_usb_bulk_read_extended): New function.
18756 * bus/usb/serial/common.c: New file.
18757 * bus/usb/serial/ftdi.c: Likewise.
18758 * bus/usb/serial/pl2303.c: Likewise.
18759 * commands/terminal.c (handle_command): Support wildcard.
18760 * commands/usbtest.c: Output "Unknown" instead of empty string.
18761 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18762 (usbserial_common_mod_SOURCES): New variable.
18763 (usbserial_common_mod_CFLAGS): Likewise.
18764 (usbserial_common_mod_LDFLAGS): Likewise.
18765 (pkglib_MODULES): Add usbserial_pl2303.mod.
18766 (usbserial_pl2303_mod_SOURCES): New variable.
18767 (usbserial_pl2303_mod_CFLAGS): Likewise.
18768 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18769 (pkglib_MODULES): Add usbserial_ftdi.mod.
18770 (usbserial_ftdi_mod_SOURCES): New variable.
18771 (usbserial_ftdi_mod_CFLAGS): Likewise.
18772 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18773 (pkglib_MODULES): Add serial.mod.
18774 (serial_mod_SOURCES): New variable.
18775 (serial_mod_CFLAGS): Likewise.
18776 (serial_mod_LDFLAGS): Likewise.
18777 * conf/i386-pc.rmk: Likewise.
18778 * conf/mips-yeeloong.rmk: Likewise.
18779 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18780 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18781 * disk/usbms.c (first_available_slot): New variable.
18782 (grub_usbms_attach): Don't reuse free slots due to potential cache
18783 problems.
18784 * include/grub/serial.h: Moved to ..
18785 * include/grub/ns8250.h: ...this.
18786 * include/grub/serial.h: New file.
18787 * include/grub/term.h (grub_term_poll_usb): New variable.
18788 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18789 readkey. All users updated.
18790 (grub_terminfo_output_state): Pass term to put.
18791 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18792 (grub_usb_controller_dev): Add timeout and actual arguments to
18793 transfer. All users updated.
18794 (grub_usb_interface): New field detach_data.
18795 (grub_usb_device): New fields children and nports.
18796 (grub_usb_ep_type_t): New type.
18797 (grub_usb_get_ep_type): New function.
18798 (grub_usb_bulk_read_extended): Likewise.
18799 * include/grub/usbdesc.h (grub_usb_desc): New type.
18800 * include/grub/usbserial.h: New file.
18801 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18802 * kern/term.c (grub_term_poll_usb): New variable.
18803 (grub_getkey): Call grub_term_poll_usb if set.
18804 (grub_checkkey): Likewise.
18805 (grub_getkeystatus): Likewise.
18806 * term/serial.c: Moved controller-specific parts to ...
18807 * term/ns8250.c: ... here.
18808 * term/serial.c: Mostly rewritten.
18809 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18810 according to spec.
18811
21a313de
RM
188122010-08-20 Robert Millan <rmh@gnu.org>
18813
18814 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18815 a separate module and maybe other interesting combinations.
18816
18817 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18818 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18819 (kfreebsd_entry): Add generic filesystem module load routine.
18820 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18821
63c734a6
CW
188222010-08-20 Colin Watson <cjwatson@ubuntu.com>
18823
18824 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18825 "numcenter" (I misunderstood the purpose of this entry).
18826 * docs/grub.texi (sendkey): Likewise.
18827
c4d16542
CW
188282010-08-20 Colin Watson <cjwatson@ubuntu.com>
18829
18830 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18831 status flag options; simply omitting the option is equivalent and
18832 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18833 (keysym_table): Rename "num5numlock" to "numlock".
18834 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18835 can uniformly say that only the last of multiple `sendkey'
18836 invocations has any effect.
18837 * docs/grub.texi (sendkey): New section.
18838
93541d66
CW
188392010-08-19 Colin Watson <cjwatson@ubuntu.com>
18840
18841 * commands/i386/pc/sendkey.c (options): Fix three typos.
18842
b4ece5e1
VS
188432010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18844
18845 Implement sendkey support.
18846
18847 * commands/i386/pc/sendkey.c: New file.
18848 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18849 (sendkey_mod_SOURCES): New variable.
18850 (sendkey_mod_CFLAGS): Likewise.
18851 (sendkey_mod_LDFLAGS): Likewise.
18852
51f1f5af
CW
188532010-08-18 Colin Watson <cjwatson@ubuntu.com>
18854
18855 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18856 fix warnings from Autoconf.
18857
9da94e05
CW
188582010-08-18 Colin Watson <cjwatson@ubuntu.com>
18859
18860 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18861 to avoid false positives with some assemblers that output things
18862 like "someprefix_func" as part of their output.
18863
729a0f2e
RM
188642010-08-15 Robert Millan <rmh@gnu.org>
18865
18866 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18867 errors.
18868 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18869 grub_get_libzfs_handle() errors.
18870
f3710e08
RM
188712010-08-14 Robert Millan <rmh@gnu.org>
18872
18873 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18874 filesystem is not ZFS.
18875
7a3c13de
BC
188762010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18877
18878 Fix for misspelled color names defaulting to black/black (bug
18879 reported by Doug Nazar)
18880
18881 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18882 status to prototype.
18883 * normal/color.c (grub_parse_color_name_pair): Return failure
18884 status.
18885 (grub_env_write_color_normal): Ignore bad color names.
18886 (grub_env_write_color_highlight): Likewise.
18887 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18888
ab8ba50d
BC
188892010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18890
18891 "shift" command support to GRUB script.
18892
18893 * include/grub/script_sh.h (grub_script_shift): New prototype.
18894 * script/execute.c (grub_script_shift): New function.
18895 * script/main.c (grub_script_init): Register shift command.
18896 (grub_script_fini): Unregister shift command.
18897 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18898
18899 * tests/grub_script_shift.in: New testcase.
18900 * conf/tests.rmk: Rules for new testcase.
18901
4d61999e
BC
189022010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18903
18904 "continue" command support to GRUB script.
18905
18906 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18907 (grub_script_break): Continue support.
18908 * script/main.c (grub_script_init): Register continue command.
18909 (grub_script_fini): Unregister continue command.
18910
18911 * tests/grub_script_continue.in: New testcase.
18912 * conf/tests.rmk: Rules for new testcase.
18913
4df51e00
BC
189142010-08-12 BVK Chaitanya <bvk@dbook>
18915
18916 "break" command support to GRUB script.
18917
18918 * conf/common.rmk: Rule updates to grub-script-check.
18919 * include/grub/misc.h (grub_min): New function.
18920 * include/grub/script_sh.h (grub_script_init): New prototype.
18921 (grub_script_fini): New prototype.
18922 (grub_script_break): New prototype.
18923 * script/main.c (grub_script_init): New function.
18924 (grub_script_fini): New function.
18925 * script/execute.c (grub_script_break): New function.
18926 * normal/main.c: Calls to grub_script_{init,fini}.
18927 * util/grub-script-check.c (grub_script_break): New function.
18928
18929 * tests/grub_script_break.in: New testcase.
18930 * conf/tests.rmk: Rules for new test case.
18931
f12c8420
BC
189322010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18933
18934 Function parameters support to GRUB script.
18935
18936 * script/yylex.l (VARIABLE): Regular expression update.
18937 * script/function.c (grub_script_function_call): Moved ...
18938 * script/execute.c (grub_script_function_call): ... to here.
18939 (grub_script_execute_arglist_to_argv): Removed.
18940 (grub_script_arglist_to_argv): New function.
18941 * script/argv.c: New file.
18942 (grub_script_argv_free): New function.
18943 (grub_script_argv_next): Likewise.
18944 (grub_script_argv_append): Likewise.
18945 (grub_script_argv_split_append): Likewise.
18946 * include/grub/script_sh.h (grub_script_argv): New struct.
18947 (grub_script_argv_free): New function.
18948 (grub_script_argv_next): Likewise.
18949 (grub_script_argv_append): Likewise.
18950 (grub_script_argv_split_append): Likewise.
18951
18952 * conf/common.rmk (normal.mod): New source script/argv.c.
18953
18954 * tests/grub_script_echo1.in: More tests.
18955 * tests/grub_script_vars1.in: Likewise.
18956 * tests/grub_script_functions.in: New test case.
18957 * conf/tests.rmk: Rules for new testcase.
18958
8022b748
BC
189592010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18960
18961 Remove grub_script_cmdblock struct.
18962
18963 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18964 * script/parser.y: Likewise.
18965 * script/execute.c: Rename cmdblock suffix to cmdlist.
18966 * script/script.c: Likewise.
18967 * util/grub-script-check.c: Likewise.
18968
79a6ba61
YB
189692010-08-11 Yves Blusseau <blusseau@zetam.org>
18970
18971 * .bzrignore: add grub-macho2img
18972
d04b9414
VS
189732010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18974
18975 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18976
f947ab49
VS
189772010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18978
18979 Remove the dump of sm712 initialisation sequence.
18980
18981 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18982 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18983 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18984 (GRUB_VGA_CR_*): Added many registers.
18985 (GRUB_VGA_SR_*): Likewise.
18986 (GRUB_VGA_GR_*): Likewise.
18987 (grub_vga_write_arx): New function.
18988 (grub_video_hw_config): New struct.
18989 (grub_vga_set_geometry): New function.
18990 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18991 GRUB_PCI_CLASS_SUBCLASS_VGA.
18992 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18993 * video/sm712.c (grub_sm712_write_reg): New function
18994 (grub_sm712_read_reg): Likewise.
18995 (grub_sm712_sr_write): Likewise.
18996 (grub_sm712_gr_write): Likewise.
18997 (grub_sm712_cr_write): Likewise.
18998 (grub_sm712_write_arx): Likewise.
18999 (grub_sm712_cr_shadow_write): Likewise.
19000 (grub_sm712_write_dda_lookup): Likewise.
19001 (grub_video_sm712_setup): Initialise the video rather then
19002 blindly replay the dump.
19003 (main) [TEST]: Add a routine to be able to compile as standalone for
19004 tests.
19005 * video/sm712_init.c (sm712_init): Removed.
19006 (sm712_sr_seq1): New array.
19007 (sm712_sr_seq2): Likewise.
19008
f0206638
VS
190092010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19010
19011 * include/grub/vga.h: Add missing grub/pci.h include.
19012
2764da3b
YB
190132010-08-10 Yves Blusseau <blusseau@zetam.org>
19014
19015 * util/grub-macho2img.c (main): fix typo
19016
cf0c775e
VS
190172010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19018
19019 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
19020 (grub_vga_gr_read): Likewise.
19021 (grub_vga_cr_write): Likewise.
19022 (grub_vga_cr_read): Likewise.
19023 (grub_vga_sr_write): Likewise.
19024 (grub_vga_sr_read): Likewise.
19025 (grub_vga_palette_read): Likewise.
19026 (grub_vga_palette_write): Likewise.
19027 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
19028 (grub_sm712_sr_read): New function.
19029 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
19030 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
19031
07f360e9
RM
190322010-08-09 Robert Millan <rmh@gnu.org>
19033
19034 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
19035 out unused variables on non-ZFS build.
19036
346c2072
RM
190372010-08-08 Robert Millan <rmh@gnu.org>
19038
19039 Fix path generation for sub-filesystems in ZFS.
19040
19041 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
19042 missing slash.
19043
71175420
RM
190442010-08-08 Robert Millan <rmh@gnu.org>
19045
19046 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
19047
0d8286f3
RM
190482010-08-08 Robert Millan <rmh@gnu.org>
19049
19050 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
19051 exist, issue a proper error message (rely on `ls' for translated
19052 strings).
19053
55dd2924
RM
190542010-08-08 Robert Millan <rmh@gnu.org>
19055
19056 Fix grub-probe invocation.
19057
19058 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
19059
d3dd9e80
RM
190602010-08-04 Robert Millan <rmh@gnu.org>
19061
19062 * configure.ac: Remove checks for getfsstat() and getmntany().
19063 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
19064 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
19065 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
19066 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
19067 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
19068 function.
19069 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
19070 via find_mount_point_from_dir() and getfsstat() / getmntany().
19071
0de22aa9
RM
190722010-08-04 Robert Millan <rmh@gnu.org>
19073
19074 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19075 (grub_find_zpool_from_mount_point): Merge into ...
19076 (grub_find_zpool_from_dir): ... this.
19077 * kern/emu/misc.c: Likewise.
19078
19079 * kern/emu/misc.c
19080 (grub_make_system_path_relative_to_its_root): Replace
19081 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
19082 with grub_find_zpool_from_dir().
19083 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
19084
62858144
RM
190852010-08-04 Robert Millan <rmh@gnu.org>
19086
19087 Support OpenSolaris in ZFS device resolution.
19088
19089 * configure.ac: Check for getmntany().
19090 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19091 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19092 support.
19093
9dd6fd50
RM
190942010-08-03 Robert Millan <rmh@gnu.org>
19095
19096 Fix grub-emu build.
19097
19098 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19099 * include/grub/emu/misc.h: ... here.
19100
19101 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19102 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19103
19104 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19105 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19106 (grub_get_libzfs_handle): Move to ...
19107 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19108 (grub_get_libzfs_handle): ... here.
19109
c9f7ff97
BC
191102010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19111
19112 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19113 as command name case.
19114
a870a783
CW
191152010-08-02 Colin Watson <cjwatson@ubuntu.com>
19116
19117 * disk/raid.c (insert_array): Select unique numbers for named arrays
19118 as well, for use as keys in the disk cache.
19119
c7db243b
RM
191202010-08-01 Robert Millan <rmh@gnu.org>
19121
19122 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19123 kFreeBSD device name, except on ZFS where the filesystem label is
19124 used.
19125 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19126 `/boot/zfs/zpool.cache'.
19127 Set mountfrom kernel variable using ${kfreebsd_device}.
19128
f7abdefb
RM
191292010-08-01 Robert Millan <rmh@gnu.org>
19130
19131 Make it even harder to use uninitialized `libzfs_handle' (and
19132 make the interface a bit simpler).
19133
19134 * include/grub/util/misc.h (grub_util_init_libzfs)
19135 (libzfs_handle): Remove.
19136 (grub_get_libzfs_handle): New prototype.
19137
19138 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19139 attribute.
19140 (grub_util_init_libzfs): Remove.
19141 (grub_get_libzfs_handle): New function.
19142
19143 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19144 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19145 accessing `libzfs_handle' directly.
19146
c882acc0
RM
191472010-08-01 Robert Millan <rmh@gnu.org>
19148
19149 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19150 (grub_find_zpool_from_mount_point): New function prototypes.
19151
19152 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19153 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19154
19155 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19156 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19157 `static' attribute.
19158
19159 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19160 finding zpool from mount point into ...
19161 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19162
19163 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19164 requested path is part of a ZFS pool, use
19165 grub_find_zpool_from_mount_point() to detect its filesystem name,
19166 and generate a path with `/fsname@path' syntax.
19167
8bfe31d8
CW
191682010-08-01 Colin Watson <cjwatson@ubuntu.com>
19169
19170 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19171 (void) rather than () so that this is a proper prototype.
19172
553df63d
VS
191732010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19174
19175 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19176
8687cf07
VS
191772010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19178
19179 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19180 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19181
ea9be8ea
CW
191822010-08-01 Colin Watson <cjwatson@ubuntu.com>
19183
19184 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19185
6eea041a
CW
191862010-08-01 Colin Watson <cjwatson@ubuntu.com>
19187
19188 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19189
2cfb45df
CW
191902010-08-01 Colin Watson <cjwatson@ubuntu.com>
19191
19192 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19193 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19194 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19195 disable gfxpayload.
19196 (Shell-like scripting): Add real content.
19197 (Serial terminal): Suggest `terminal_input serial; terminal_output
19198 serial' rather than putting the two commands on separate lines,
19199 since console input will be inoperative after the first command.
19200 (menuentry): Document --class, --users, and --hotkey options.
19201 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19202 Vladimir Serbinenko).
19203
7decd202
VS
192042010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
192052010-08-01 Colin Watson <cjwatson@ubuntu.com>
19206
19207 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19208
c882acc0
RM
192092010-08-01 Robert Millan <rmh@gnu.org>
19210
19211 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19212 (grub_find_zpool_from_mount_point): New function prototypes.
19213
19214 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19215 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19216
19217 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19218 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19219 `static' attribute.
19220
19221 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19222 finding zpool from mount point into ...
19223 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19224
19225 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19226 requested path is part of a ZFS pool, use
19227 grub_find_zpool_from_mount_point() to detect its filesystem name,
19228 and generate a path with `/fsname@path' syntax.
19229
deb0caa3
RM
192302010-08-01 Robert Millan <rmh@gnu.org>
19231
19232 Prevent accidental use of uninitialized libzfs_handle.
19233
19234 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19235 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19236 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19237
ce04ef47
CW
192382010-08-01 Colin Watson <cjwatson@ubuntu.com>
19239
19240 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19241 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19242
ebf53056
RM
192432010-08-01 Robert Millan <rmh@gnu.org>
19244
19245 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 19246
3710bb6b
RM
192472010-07-31 Robert Millan <rmh@gnu.org>
19248
19249 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19250
8072efeb
RM
192512010-07-31 Robert Millan <rmh@gnu.org>
19252
19253 * kern/emu/misc.c: Add missing license header.
19254
3169f4c7
RM
192552010-07-31 Robert Millan <rmh@gnu.org>
19256
19257 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19258
19259 * include/grub/util/libnvpair.h: Include `<config.h>'.
19260 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19261 declaring libnvpair prototypes ourselves.
19262 * include/grub/util/libzfs.h: Include `<config.h>'.
19263 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19264 declaring libzfs prototypes ourselves.
19265
19266 (libzfs_handle): Moved to ...
19267 * include/grub/util/misc.h (libzfs_handle): ... here.
19268 Include `<grub/util/libzfs.h>'.
19269
c9a00aee
RM
192702010-07-30 Robert Millan <rmh@gnu.org>
19271
19272 * include/grub/emu/misc.h: Add missing license header.
19273
a184f9c8
RM
192742010-07-30 Robert Millan <rmh@gnu.org>
19275
19276 Enable `grub-probe -t device' resolution on ZFS.
19277
19278 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19279 * include/grub/util/libnvpair.h: New file.
19280 * include/grub/util/libzfs.h: New file.
19281
19282 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19283 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19284 `<grub/util/libnvpair.h>'.
19285 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19286
19287 (find_mount_point_from_dir): New static function.
19288 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19289 function.
19290 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19291 find_root_device_from_libzfs() before ressorting to find_root_device().
19292
19293 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19294 prototype.
19295 * util/misc.c: Include `<grub/util/libzfs.h>'.
19296 (grub_util_init_libzfs): New function.
19297 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19298 [HAVE_LIBZFS] (fini_libzfs): New static function.
19299 (grub_util_init_libzfs): New function.
19300 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19301
f7790cdd
RM
193022010-07-30 Robert Millan <rmh@gnu.org>
19303
19304 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19305 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19306 `warn_unused_result' attribute.
19307 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19308 (grub_xasprintf, grub_xvasprintf): Likewise.
19309 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19310
0806b63c
RM
193112010-07-29 Robert Millan <rmh@gnu.org>
19312
19313 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19314 (probe): Handle `PRINT_FS_LABEL'.
19315 (main): Handle `-t fs_label'.
19316
9f841f5c
RM
193172010-07-29 Robert Millan <rmh@gnu.org>
19318
19319 * configure.ac: Remove grub-mkisofs checks.
19320
46371121
VS
193212010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19322
19323 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19324 Reported by: Lennart Sorensen.
19325
193262010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19327
19328 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19329 prior to terminal_input/terminal_output separation. It's been over 1.5
19330 years and those versions weren't widely deployed.
19331
a9600892
CW
193322010-07-22 Colin Watson <cjwatson@ubuntu.com>
19333
19334 * disk/raid.c (insert_array): Don't count named arrays when looking
19335 for unused array numbers.
697e053c 19336 Reported and tested by: Michael Guntsche.
a9600892 19337
c03507df
CW
193382010-07-20 Colin Watson <cjwatson@ubuntu.com>
19339
19340 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19341 implementation of this so that grub-emu links again, with a note
19342 that this should support hotplugging in the future.
19343
b26f1c11
CW
193442010-07-20 Colin Watson <cjwatson@ubuntu.com>
19345
19346 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19347
efc9d7f1
CW
193482010-07-20 Colin Watson <cjwatson@ubuntu.com>
19349
19350 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19351 handle on failure.
19352 (grub_loopback_close): Remove empty function.
19353 (grub_loopback_dev): Remove close method.
19354
dd8ff5c9
CW
193552010-07-20 Colin Watson <cjwatson@ubuntu.com>
19356
19357 Disable EFI cursor when the EFI console becomes inactive.
19358
19359 * term/efi/console.c (grub_efi_console_init): New function.
19360 (grub_efi_console_fini): New function.
19361 (grub_console_term_output): Register init and fini methods.
19362
5e3bec67
VS
193632010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19364
19365 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19366 sh script.
19367
afaec079
VS
193682010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19369
19370 * disk/loopback.c (grub_loopback): Replace filename with file.
19371 (delete_loopback): Handle new semantics.
19372 (grub_cmd_loopback): Likewise.
19373 (grub_loopback_iterate): Likewise.
19374 (grub_loopback_close): Likewise.
19375
a6a11f3c
VS
193762010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19377
19378 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19379 with -p "".
19380 Reported by: Tito Keitel.
19381
64a638b0
VS
193822010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19383
19384 * docs/grub.texi (Naming convention): Document new naming convention.
19385
ab8ba957
VS
193862010-07-20 Vadim Solomin <vadic052@gmail.com>
193872010-07-20 Colin Watson <cjwatson@ubuntu.com>
19388
19389 Generate device.map in something closer to the old ordering.
19390
19391 * util/deviceiter.c (struct device): New declaration.
19392 (compare_file_names): Rename to ...
19393 (compare_devices): ... this. Sort by kernel name in preference to
19394 the stable by-id name, but keep the latter as a fallback comparison.
19395 Update header comment.
19396 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19397 of `struct device' rather than of plain file names.
19398
a29d6a4b
TF
193992010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19400
19401 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19402 on i386.
19403
39d824e8
VS
194042010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19405
19406 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19407 hardcoding size.
19408 (setv1table): Likewise.
19409
f058276b
FZ
194102010-07-20 Colin Watson <cjwatson@ubuntu.com>
19411
19412 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19413 removing the homehost if present.
19414 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19415 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19416 removing the homehost if present.
19417 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19418 if possible.
19419 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19420
19421 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19422 parameter. Set its pointer target to 0.
19423 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19424 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19425 `data_offset' value from the superblock for 1.x metadata.
19426 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19427 data on the device.
19428 (insert_array): Record the start sector of data on the device.
19429 (grub_raid_register): Pass start_sector parameters to
19430 grub_raid_list->detect and insert_array.
19431 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19432 member.
19433 (struct grub_raid): Add start_sector parameter to `detect'.
19434
19435 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19436 __attribute__ ((packed)), leaving a comment.
19437 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19438 (grub_mdraid_detect_09): ... here and ...
19439 (grub_mdraid_detect_1x): ... here.
19440
194412010-07-20 Peter Henn <peter.henn@web.de>
19442
19443 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19444 chunk size and disk size, which are already given as sector counts
19445 as distinct from the 0.90 units. Fetch the correct device number
19446 from the role table instead of using the table index.
19447
194482010-07-20 Felix Zielcke <fzielcke@z-51.de>
19449
19450 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19451 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19452 (WriteMostly1): New macro.
19453 Set array->name to NULL for metadata format 0.90. Add support for
19454 metadata 1.x. Fix some comments.
19455 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19456 few comments.
19457 * util/getroot.c (grub_util_get_grub_dev): Add support for
19458 /dev/md/name style devices.
19459
4b761da9
CW
194602010-07-20 Colin Watson <cjwatson@ubuntu.com>
19461
19462 * .bzrignore: Ignore 20_linux_xen.
19463
5771289a
CW
194642010-07-17 Colin Watson <cjwatson@ubuntu.com>
19465
19466 * util/import_unicode.py: Remove unnecessary imports.
19467
5dab68df
AN
194682010-07-17 Aleš Nesrsta <starous@volny.cz>
19469
19470 Hotplugging and USB hub support.
19471
19472 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19473 (grub_ohci): Likewise.
19474 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19475 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19476 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19477 (GRUB_OHCI_CTRL_EDS): Likewise.
19478 (GRUB_OHCI_BULK_EDS): Likewise.
19479 (GRUB_OHCI_TDS): Likewise.
19480 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19481 (grub_ohci_ed_phys2virt): New function.
19482 (grub_ohci_virt_to_phys): Likewise.
19483 (grub_ohci_td_phys2virt): Likewise.
19484 (grub_ohci_td_virt2phys): Likewise.
19485 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19486 attachment.
19487 (grub_ohci_find_ed): New function.
19488 (grub_ohci_alloc_td): Likewise.
19489 (grub_ohci_free_td): Likewise.
19490 (grub_ohci_free_tds): Likewise.
19491 (grub_ohci_transfer): Use previously allocated memory.
19492 (grub_ohci_portstatus): Reset status changed bit.
19493 (grub_ohci_detect_dev): Supply status changed.
19494 (grub_ohci_fini_hw): Free memory.
19495 (grub_ohci_restore_hw): Reallocate memory.
19496 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19497 Reset status change.
19498 (grub_uhci_detect_dev): Supply status_change.
19499 * bus/usb/usb.c (attach_hooks): New var.
19500 (grub_usb_device_attach): New function.
19501 (grub_usb_register_attach_hook_class): Likewise.
19502 (grub_usb_unregister_attach_hook_class): Likewise.
19503 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19504 (grub_usb_add_hub): Reset connection changed bit.
19505 (attach_root_port): New function.
19506 (grub_usb_root_hub): Likewise.
19507 (poll_nonroot_hub): Likewise.
19508 (grub_usb_poll_devices): Likewise.
19509 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19510 * disk/usbms.c (grub_usbms_open): Use device hooks.
19511 (grub_usbms_iterate) :Poll devices.
19512 (grub_usbms_finddevs): Split into ...
19513 (grub_usbms_attach): ... this ...
19514 (grub_usbms_attach): ... and this.
19515 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19516 in detect_dev.
19517 (grub_usb_interface): New fields attached and detach_hook.
19518 (grub_usb_attach_hook_class): New type.
19519 (grub_usb_attach_desc): New struct.
19520 (grub_usb_register_attach_hook_class): New function.
19521 (grub_usb_unregister_attach_hook_class): Likewise.
19522 (grub_usb_poll_devices): Likewise.
19523 (grub_usb_device_attach): Likewise.
19524 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19525 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19526
3222efaf
VS
195272010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19528
19529 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19530 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19531 delta determination style. Works with most NetBSD partitions too.
19532
139b714a
VS
195332010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19534
19535 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19536 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19537
986aad56
VS
195382010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19539
19540 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19541
99be513c
AB
195422010-07-14 Anton Blanchard <anton@samba.org>
19543
19544 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19545 ET_DYN files.
19546
18075f62
GS
195472010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19548
19549 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19550
8d9a5b15
GS
195512010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19552
19553 * kern/partition.c (grub_partition_check_containment): New function to
19554 check that a partition is physically contained in a parent. Since
19555 offsets are relative (and non-negative), this reduces to checking that
19556 the partition ends before its parent.
19557 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19558 (grub_partition_iterate): Likewise.
19559 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19560 comments.
19561 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19562 partitions that start before their parent, and add debug printfs.
19563
19563c25
CW
195642010-07-13 Colin Watson <cjwatson@ubuntu.com>
19565
19566 * Makefile.in (.SUFFIX): Spell correctly, as ...
19567 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19568 bare module name without `.mod', e.g. `test') tried to invoke a
19569 Modula-2 compiler.
19570
1a1f1e67
CW
195712010-07-13 Colin Watson <cjwatson@ubuntu.com>
19572
19573 * README: Point to the Info manual.
19574
811b0dca
JS
195752010-07-13 Jiro SEKIBA <jir@unicus.jp>
19576
19577 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19578 2nd superblock position from partition size.
19579
e4f4eafc
CW
195802010-07-10 Colin Watson <cjwatson@ubuntu.com>
19581
19582 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19583 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19584 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19585 outputs.
19586
4274c30f
VS
195872010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19588
19589 Restructure SCSI .id handling.
19590 Reported and tested by: Aleš Nesrsta.
19591
19592 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19593 (grub_atapi_dev): Changed .name to "ata". New field .id.
19594 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19595 (grub_usbms_dev): New field .id.
19596 * disk/scsi.c (grub_scsi_iterate): Generate name.
19597 (grub_scsi_open): Parse name.
19598 * include/grub/scsi.h (grub_make_scsi_id): New function.
19599 (grub_scsi_dev): Change iterate and open to number instead of naming
19600 busses. All users updated.
19601 (grub_scsi): Remove name. Add .bus.
19602
5bc24388
VS
196032010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19604
19605 * commands/help.c (grub_cmd_help): Fix a typo.
19606
249975ba
VS
196072010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19608
19609 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19610 Reported and tested by: Colin Watson.
19611
3eaac1a1
VS
196122010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19613
19614 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19615 in this context.
19616
becce1b1
VS
196172010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19618
19619 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19620
f7bf0918
CW
196212010-07-07 Colin Watson <cjwatson@ubuntu.com>
19622
19623 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19624 indentation.
19625
0b0f9620
CW
196262010-07-06 Colin Watson <cjwatson@ubuntu.com>
19627
19628 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19629 and disk/raid6_recover.c.
19630 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19631 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19632
1e545469
CW
196332010-07-06 Colin Watson <cjwatson@ubuntu.com>
19634
19635 * term/gfxterm.c (repaint_schedulded): Rename to ...
19636 (repaint_scheduled): ... this. Update all callers.
19637 (repaint_was_schedulded): Rename to ...
19638 (repaint_was_scheduled): ... this. Update all callers.
19639
5357687a
CW
196402010-07-06 Colin Watson <cjwatson@ubuntu.com>
19641
19642 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19643 which we expect to be handled by upper layers.
19644
29d7e783
BC
196452010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19646
19647 * bus/usb/usbhub.c: #include time.h header.
19648
37582066
CW
196492010-07-06 Colin Watson <cjwatson@ubuntu.com>
19650
19651 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19652 entry_name also for entries without stat blocks (e.g. ".."); fixes
19653 corruption of the first entry in a directory.
19654
c8c06953
CW
196552010-07-06 Colin Watson <cjwatson@ubuntu.com>
19656
19657 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19658 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19659 doesn't work otherwise.
19660
e75056f1
CW
196612010-07-05 Colin Watson <cjwatson@ubuntu.com>
19662
19663 * docs/grub.texi (Features): Update list of supported file systems.
19664 (GNU/Linux): Update for GRUB 2.
19665 (Serial terminal): Remove mention of --disable-serial, which was a
19666 GRUB Legacy configure option. Update instructions to use
19667 `terminal_input' and `terminal_output' rather than `terminal'.
19668 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19669 configuration' and `Installing GRUB using grub-install'.
19670 (Menu entry editor): Update for GRUB 2.
19671 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19672 Document new -a, -u, and -v options.
19673 (initrd): New section.
19674 (initrd16): New section.
19675 (linux): New section.
19676 (linux16): New section.
19677 (search): The `var' argument to `--set' is optional.
19678 (GRUB only offers a rescue shell): Go into a little more detail on
19679 drive ordering.
19680
5cf69151
CW
196812010-07-05 Colin Watson <cjwatson@ubuntu.com>
19682
19683 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19684
e3f90044
CW
196852010-07-05 Colin Watson <cjwatson@ubuntu.com>
19686
19687 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19688 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19689
38d8f4f3
CW
196902010-07-05 Colin Watson <cjwatson@ubuntu.com>
19691
19692 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19693 install_prefix, in line with install_dos_part and install_bsd_part.
19694 Add new prefix variable, which is copied to install_prefix after
19695 comparing core.img in memory with the one read from disk in the
19696 no-embedding case, and use that rather than overwriting
19697 install_prefix immediately when installing to a partition.
19698 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19699 Bicakci.
19700
57ebd41e
GS
197012010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19702
19703 * configure.ac: Avoid == in test command, it's not portable.
19704 * util/grub.d/30_os-prober.in: Likewise.
19705
cb7f64b2
CW
197062010-07-04 Colin Watson <cjwatson@ubuntu.com>
19707
19708 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19709
6b654bb0
GS
197102010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19711
19712 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19713 multiple (top-level) partmaps.
19714
72a2026d
VS
197152010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19716
19717 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 19718 Reported by: Tino Keitel.
72a2026d 19719
df3eb88f
VS
197202010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19721
19722 Bidi and diacritics support.
19723
19724 * Makefile.in (widthspec.bin): New target.
19725 (widthspec.h): Likewise.
19726 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19727 * autogen.sh: Generate unidata.c.
19728 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19729 * commands/ls.c (grub_ls_list_devices): Likewise.
19730 (grub_ls_list_files): Likewise.
19731 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19732 (grub_mini_cmd_lsmod): Likewise.
19733 * commands/read.c: Likewise.
19734 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19735 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19736 * lib/arg.c (grub_arg_show_help): Likewise.
19737 * lib/crypto.c (grub_password_get): Likewise.
19738 * normal/auth.c (grub_username_get): Likewise.
19739 * normal/misc.c (grub_normal_print_device_info): Likewise.
19740 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19741 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19742 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19743 (normal/charset.c_DEPENDENCIES): New variable.
19744 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19745 (pkglib_MODULES): Remove charset.mod.
19746 (charset_mod_SOURCES): Removed.
19747 (charset_mod_CFLAGS): Likewise.
19748 (charset_mod_LDFLAGS): Likewise.
19749 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19750 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19751 and term/tparm.c.
19752 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19753 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19754 (kernel_img_HEADERS): Add terminfo.h.
19755 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19756 Fill ->font. Reverse ascii bitmaps.
19757 (grub_font_get_xheight): New function.
19758 * font/font.c (grub_font_get_string_width): Moved from here ...
19759 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19760 * font/font.c (grub_font_draw_string): Moved from here ...
19761 * gfxmenu/font.c (grub_font_draw_string): ... here.
19762 * font/font.c (grub_font_dup_glyph): New function.
19763 (grub_font_blit_glyph): Likewise.
19764 (grub_font_blit_glyph_mirror): Likewise.
19765 (blit_comb): Likewise.
19766 (grub_font_construct_dry_run): Likewise.
19767 (grub_font_get_constructed_device_width): Likewise.
19768 (grub_font_construct_glyph): Likewise.
19769 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19770 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19771 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19772 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19773 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19774 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19775 (grub_font_get_xheight): New proto.
19776 (grub_font_get_constructed_device_width): Likewise.
19777 (grub_font_construct_glyph): Likewise.
19778 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19779 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19780 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19781 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19782 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19783 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19784 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19785 (grub_console_getcharwidth): Likewise.
19786 * include/grub/misc.h (grub_xputs): New proto.
19787 (grub_puts): Inlined.
19788 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19789 (grub_normal_get_line_counter): Removed.
19790 (grub_install_newline_hook): Likewise.
19791 (grub_normal_get_char_counter): New proto.
19792 (grub_normal_reset_more): Likewise.
19793 (grub_xputs_normal): Likewise.
19794 * include/grub/powerpc/ieee1275/console.h: Removed.
19795 * include/grub/sparc64/ieee1275/console.h: Likewise.
19796 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19797 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19798 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19799 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19800 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19801 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19802 (grub_term_input): Pass reference to self. All users updated.
19803 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19804 Pass reference to self. New fields normal_color, highlight_color and
19805 data. All users updated.
19806 (grub_putchar): Removed.
19807 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19808 (grub_unicode_estimate_width): New function.
19809 (grub_term_getcharwidth): Add defaults.
19810 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19811 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19812 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19813 (grub_cls): Remove EXPORT_FUNC.
19814 (grub_setcolorstate): Inline.
19815 (grub_newline_hook): Removed.
19816 * include/grub/terminfo.h: Rewritten. All users updated.
19817 * include/grub/unicode.h: New file.
19818 * include/grub/video.h (grub_video_signed_rect): New type.
19819 * kern/emu/console.c (grub_console_highlight_color): Removed.
19820 (grub_console_normal_color): Likewise.
19821 (grub_console_standard_color): Made static.
19822 (grub_ncurses_putchar): Remove mapping.
19823 (grub_ncurses_getcharwidth): Removed.
19824 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19825 (grub_ncurses_setcolor): Removed.
19826 (grub_ncurses_getcolor): Likewise.
19827 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19828 (grub_console_putchar): ... this.
19829 (grub_console_putchar): Handle argument difference.
19830 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19831 console_init_early and console_init_lately.
19832 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19833 * kern/misc.c (grub_puts): Removed.
19834 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19835 (grub_vsnprintf_real): Remove str = NULL support.
19836 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19837 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19838 * kern/term.c (grub_putcode): Renamed to ...
19839 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19840 (grub_putchar): Removed.
19841 (grub_xputs_dumb): New function.
19842 (grub_xputs): New variable.
19843 * lib/charset.c: Move from here ...
19844 * normal/charset.c: ... to here.
19845 (grub_ucs4_to_utf8): New function.
19846 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19847 (join_types): New variable.
19848 (unpack_join): New function.
19849 (bidi_types): New variable.
19850 (unpack_bidi): New function.
19851 (get_bidi_type): Likewise.
19852 (get_join_type): Likewise.
19853 (is_mirrored): Likewise.
19854 (grub_unicode_get_comb_type): Likewise.
19855 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19856 (is_type_after): Likewise.
19857 (grub_unicode_aglomerate_comb): Likewise.
19858 (bidi_line_wrap): Likewise.
19859 (grub_bidi_line_logical_to_visual): Likewise.
19860 (grub_bidi_logical_to_visual): Likewise.
19861 (grub_unicode_mirror_code): Likewise.
19862 (grub_unicode_shape_code): Likewise.
19863 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19864 Don't use grub_putchar.
19865 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19866 (grub_normal_reader_init): Likewise.
19867 (grub_xputs_saved): New variable.
19868 (GRUB_MOD_INIT): Set grub_xputs.
19869 (GRUB_MOD_FINI): Restore grub_xputs.
19870 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19871 (menu_init): Avoid printing gfxmenu error.
19872 (show_menu): Use grub_normal_get_char_counter.
19873 * normal/menu_entry.c (update_screen): Fix out-of-array.
19874 (complete): Avoid NULL dereferencing.
19875 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19876 * normal/menu_text.c (print_spaces): Removed.
19877 (grub_print_ucs4): Likewise.
19878 (grub_print_message_indented): Use grub_print_ucs4.
19879 (print_message): Use grub_putcode.
19880 (print_entry): Hanlde diacritics.
19881 * normal/term.c (term_state): New type.
19882 (grub_more_lines): Removed.
19883 (term_states): New variable.
19884 (grub_normal_line_counter): Renamed to ..
19885 (grub_normal_char_counter): ...this. All users updated.
19886 (grub_normal_get_line_counter): Renamed to ...
19887 (grub_normal_get_char_counter): ... this.
19888 (grub_normal_reset_more): New function.
19889 (process_newline): Removed.
19890 (print_more): New function.
19891 (grub_install_newline_hook): Removed.
19892 (map_code): New function.
19893 (grub_puts_terminal): Use grub_print_ucs4.
19894 (putglyph): New function.
19895 (putcode_real): Likewise.
19896 (grub_putcode): Use putcode_real.
19897 (get_maxwidth): New function.
19898 (get_startwidth): Likewise.
19899 (print_ucs4_terminal): Likewise.
19900 (find_term_state): Likewise.
19901 (put_glyphs_terminal): Likewise.
19902 (print_backlog): Likewise.
19903 (print_ucs4_real): Likewise.
19904 (grub_print_ucs4): Likewise.
19905 (grub_xputs_normal): Likewise.
19906 * term/efi/console.c (grub_console_putchar): Output diacritics.
19907 (grub_console_getcharwidth): Removed.
19908 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19909 * term/gfxterm.c (clear_char): Free chars.
19910 (scroll_up): Avoid leaking memory.
19911 (grub_gfxterm_putchar): Support diacritics.
19912 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19913 * term/i386/pc/console.c (grub_console_term_output): Declare as
19914 GRUB_TERM_CODE_TYPE_VGA.
19915 * term/i386/pc/vga.c (grub_vga_term): Declare as
19916 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19917 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19918 GRUB_TERM_CODE_TYPE_VGA.
19919 * term/i386/vga_common.c (map_char): Removed.
19920 (grub_console_putchar): Likewise.
19921 (grub_console_getcharwidth): Likewise.
19922 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19923 (colors): Reordered to match terminfo.
19924 (grub_ofconsole_normal_color): Removed.
19925 (grub_ofconsole_writeesc): Likewise.
19926 (grub_ofconsole_highlight_color): Likewise.
19927 (grub_ofconsole_getcharwidth): Likewise.
19928 (grub_ofconsole_setcolorstate): Likewise.
19929 (grub_ofconsole_setcolor): Likewise.
19930 (grub_ofconsole_getcolor): Likewise.
19931 (grub_ofconsole_readkey): Renamed to ...
19932 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19933 key.
19934 (grub_ofconsole_checkkey): Removed.
19935 (grub_ofconsole_getkey): Likewise.
19936 (grub_ofconsole_getxy): Likewise.
19937 (grub_ofconsole_gotoxy): Likewise.
19938 (grub_ofconsole_cls): Likewise.
19939 (grub_ofconsole_refresh): Likewise.
19940 (grub_ofconsole_terminfo_input): New struct.
19941 (grub_ofconsole_terminfo_output): Likewise.
19942 (grub_ofconsole_term_input): Use terminfo.
19943 (grub_ofconsole_term_output): Likewise.
19944 (grub_console_init): Split into ...
19945 (grub_console_init_early): ...this and ...
19946 (grub_console_init_lately): ...this. Use terminfo.
19947 (grub_ofconsole_putchar): Renamed to ...
19948 (put): ... this. Remove mapping.
19949 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19950 * term/serial.c: Simplify using terminfo.
19951 (xpos): Removed.
19952 (ypos): Likewise.
19953 (keep_track): Likewise.
19954 (registered): Likewise.
19955 (input_buf): Likewise.
19956 (npending): Likewise.
19957 (serial_translate_key_sequence): Likewise.
19958 (fill_input_buf): Likewise.
19959 (grub_serial_checkkey): Likewise.
19960 (grub_serial_getkey): Likewise.
19961 (grub_serial_getxy): Likewise.
19962 (grub_serial_gotoxy): Likewise.
19963 (grub_serial_putchar): Likewise.
19964 (grub_serial_cls): Likewise.
19965 (grub_serial_setcolorstate): Likewise.
19966 (grub_serial_setcursor): Likewise.
19967 (serial_hw_init): Use serial_hw_fetch.
19968 (grub_serial_terminfo_input): New variable.
19969 (grub_serial_terminfo_output): Likewise.
19970 (grub_serial_term_input): Use terminfo.
19971 (grub_serial_term_output): Likewise.
19972 * term/terminfo.c (putstr): Use put.
19973 (grub_terminfo_all_free): New function
19974 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19975 (grub_terminfo_output_register): New function.
19976 (grub_terminfo_output_unregister): Likewise.
19977 (grub_terminfo_getxy): Likewise.
19978 (grub_terminfo_readkey): Likewise.
19979 (grub_terminfo_checkkey): Likewise.
19980 (grub_terminfo_getkey): Likewise.
19981 (grub_terminfo_input_init): Likewise.
19982 (print_terminfo): Likewise.
19983 (grub_cmd_terminfo): Handle encoding.
19984 (grub_terminfo_gotoxy): Track position.
19985 (grub_terminfo_cls): Likewise.
19986 (grub_terminfo_putchar): Likewise.
19987 (grub_terminfo_setcolorstate): Handle colors
19988 (grub_terminfo_cursor_on): This ...
19989 (grub_terminfo_cursor_off): ... and this merged into ...
19990 (grub_terminfo_setcursor): ... this.
19991 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19992 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19993 * unicode/BidiMirroring.txt: Likewise.
19994 * unicode/UnicodeData.txt: Likewise.
19995 * unicode/COPYING: Likewise.
19996 * util/grub-editenv.c (grub_putchar): Removed.
19997 (grub_xputs_real): New function.
19998 (grub_xputs): New variable.
19999 * util/grub-fstest.c (grub_putchar): Removed.
20000 (grub_xputs_real): New function.
20001 (grub_xputs): New variable.
20002 * util/grub-mkdevicemap.c (grub_putchar): Removed.
20003 (grub_xputs_real): New function.
20004 (grub_xputs): New variable.
20005 * util/grub-probe.c (grub_putchar): Removed.
20006 (grub_xputs_real): New function.
20007 (grub_xputs): New variable.
20008 * util/grub-script-check.c (grub_putchar): Removed.
20009 (grub_xputs_real): New function.
20010 (grub_xputs): New variable.
20011 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
20012 (grub_xputs_real): New function.
20013 (grub_xputs): New variable.
20014 * util/import_unicode.py: New file.
20015 * util/grub-mkfont.c (ft_errmsgs): New array.
20016 (grub_glyph_info): Make bitmap a pointer.
20017 (file_formats): New type WIDTH_SPEC.
20018 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
20019 (options): Add width-spec.
20020 (help): Likewise.
20021 (add_char): Renamed to ...
20022 (add_glyph): ... this.
20023 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
20024 (glyph_replace): New type.
20025 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
20026 (add_char): New function.
20027 (add_subst): Likewise.
20028 (process_cursive): Likewise.
20029 (add_font): Handle GSUB.
20030 (write_font_width_spec): New function.
20031 (main): Sort glyphs.
20032 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
20033 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
20034 * kern/term.c (grub_cls): Moved from here...
20035 * normal/term.c (grub_cls): ... here.
20036
50f0bcda
CW
200372010-07-02 Colin Watson <cjwatson@ubuntu.com>
20038
20039 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
20040 suitable for using within the format argument of printf when
20041 converting grub_size_t.
20042 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
20043 "x" to convert grub_size_t arguments.
20044
40372103
VS
200452010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20046
20047 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
20048 too long captions.
20049 (list_get_minimal_size): Take selection box into account.
20050
942a10c7
VS
200512010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20052
20053 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
20054 NULL font.
20055
2bdb2892
CW
200562010-07-02 Colin Watson <cjwatson@ubuntu.com>
20057
20058 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
20059 devices when iterating over /dev/disk/by-id; they will be handled
20060 later if appropriate, which they aren't always (e.g. LVM).
20061
e03ed6c1
CW
200622010-07-02 Colin Watson <cjwatson@ubuntu.com>
20063
20064 * include/grub/misc.h (grub_reboot): Declare as noreturn.
20065 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
20066 fails.
20067 (grub_halt): Likewise.
20068 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
20069 reset-all fails.
20070 (grub_halt): Don't return, even if all of shut-down, power-off, and
20071 poweroff fail.
20072
47695765
CW
200732010-07-02 Colin Watson <cjwatson@ubuntu.com>
20074
20075 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
20076 arguments, not three.
20077
507736c8
CW
200782010-07-02 Colin Watson <cjwatson@ubuntu.com>
20079
20080 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20081 * util/grub.d/10_linux.in: Use it to check for LVM, so that
20082 LVM-on-RAID is handled correctly.
20083
e3c8cd37
CW
200842010-07-02 Colin Watson <cjwatson@ubuntu.com>
20085
20086 * docs/grub.texi (Changes from GRUB Legacy): New section.
20087 (Future): Fix typo.
20088
8d4a2fec
CW
200892010-07-02 Colin Watson <cjwatson@ubuntu.com>
20090
20091 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20092 grub.d/README accidentally ends up executable for one reason or
20093 another. Ignore it.
20094
1c4827be
VS
200952010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20096
20097 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20098 (gpt_partition_map_iterate): Support non-512B sectors.
20099
d9a0c941
VS
201002010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20101
20102 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20103 Tested by: Seth Goldberg.
20104
48f27e87
VS
201052010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20106
20107 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20108 Properly align mbi.
20109 Reported by: Seth Goldberg.
20110
b0c4f956
VS
201112010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20112
20113 * util/grub-mkrescue.in: Avoid module duplication.
20114
105a2e8c
SF
201152010-07-01 Sean Finney <seanius@seanius.net>
20116
20117 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20118
5944958c
SF
201192010-07-01 Sean Finney <seanius@seanius.net>
20120
20121 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20122
201232010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20124
20125 * disk/lvm.c (grub_lvm_checkvalue): New function.
20126 (grub_lvm_check_flag): Likewise.
20127
b79889ba
RM
201282010-07-01 Robert Millan <rmh@gnu.org>
20129
20130 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20131 Support 'p' as partition separator on kernel of FreeBSD (used
20132 with GPT labels).
20133 (grub_util_biosdisk_get_grub_dev): Likewise.
20134
ec1d04f1
VS
201352010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20136
20137 Yeeloong firmware port.
20138
20139 * boot/mips/yeeloong/fwstart.S: New file.
20140 * bus/cs5536.c (gpiodump): New const.
20141 (set_io_space): New function.
20142 (set_iod): Likewise.
20143 (set_p2d): Likewise.
20144 (grub_cs5536_init_geode): Likewise.
20145 * commands/mips/yeeloong/lsspd.c: New file.
20146 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20147 (serial_mod_SOURCES): New variable.
20148 (serial_mod_CFLAGS): Likewise.
20149 (serial_mod_LDFLAGS): Likewise.
20150 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20151 term/terminfo.c and term/tparm.c.
20152 (pkglib_IMAGES): Add fwstart.img.
20153 (fwstart_img_SOURCES): New variable.
20154 (fwstart_img_CFLAGS): Likewise.
20155 (fwstart_img_ASFLAGS): Likewise.
20156 (fwstart_img_LDFLAGS): Likewise.
20157 (fwstart_img_FORMAT): Likewise.
20158 (pkglib_MODULES): Add lsspd.mod.
20159 (lsspd_mod_SOURCES): New variable.
20160 (lsspd_mod_CFLAGS): Likewise.
20161 (lsspd_mod_LDFLAGS): Likewise.
20162 (pkglib_MODULES): Add halt.mod.
20163 (halt_mod_SOURCES): New variable.
20164 (halt_mod_CFLAGS): Likewise.
20165 (halt_mod_LDFLAGS): Likewise.
20166 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20167 (serial_mod_SOURCES): Removed.
20168 (serial_mod_CFLAGS): Likewise.
20169 (serial_mod_LDFLAGS): Likewise.
20170 * disk/ata.c (check_device): New function.
20171 (grub_ata_device_initialize): Use check_device.
20172 (grub_ata_iterate): Recheck devices.
20173 (grub_ata_open): Likewise.
20174 (grub_atapi_iterate): Likewise.
20175 (grub_atapi_open): Likewise.
20176 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20177 (GRUB_ATA_CH1_PORT1): Likewise.
20178 (GRUB_ATA_CH0_PORT2): Likewise.
20179 (GRUB_ATA_CH1_PORT2): Likewise.
20180 * include/grub/mips/loongson.h: New file.
20181 * include/grub/mips/yeeloong/ec.h: Likewise.
20182 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20183 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20184 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20185 * include/grub/misc.h (grub_halt): Declare as noreturn.
20186 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20187 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20188 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20189 (UART_ENABLE_DTRRTS): Likewise.
20190 (UART_ENABLE_MODEM): Removed.
20191 (UART_ENABLE_OUT2): New const.
20192 * include/grub/term.h (grub_term_register_input_active): New function.
20193 (grub_term_register_output_active): Likewise.
20194 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20195 argument.
20196 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20197 (init_pci): New function.
20198 (grub_machine_init): Execute platform init when firmware. Init serial.
20199 (grub_halt): Implement.
20200 (grub_exit): Likewise.
20201 (grub_reboot): Likewise.
20202 * term/serial.c (serial_hw_init): Update macros.
20203 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20204 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20205 (image_targets): New target mipsel-yeeloong-flash.
20206 (generate_image): Support IMAGE_YEELOONG_FLASH.
20207 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20208 (grub_video_sm712_setup): Init card.
20209 (grub_video_sm712_set_palette): Removed.
20210 * video/sm712_init.c: New file.
20211
ff4a70d2
CW
202122010-06-30 Colin Watson <cjwatson@ubuntu.com>
20213
20214 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20215 PATH when running help2man and then run it on the unadorned
20216 executable names, rather than passing $(builddir)/* paths to
20217 help2man. This avoids the build directory ending up in generated
20218 manual pages.
20219
1246efeb
CW
202202010-06-29 Colin Watson <cjwatson@ubuntu.com>
20221
20222 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20223 to avoid accidents when debugging with 'sh -x'.
20224 * util/grub-mkrescue.in: Likewise.
20225 * util/grub.d/00_header.in: Likewise.
20226 * util/grub.d/10_hurd.in: Likewise.
20227 * util/grub.d/10_kfreebsd.in: Likewise.
20228 * util/grub.d/10_linux.in: Likewise.
20229 * util/grub.d/10_netbsd.in: Likewise.
20230 * util/grub.d/10_windows.in: Likewise.
20231 * util/grub.d/20_linux_xen.in: Likewise.
20232 * util/grub.d/30_os-prober.in: Likewise.
20233 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20234
1ba9b889
CW
202352010-06-29 Colin Watson <cjwatson@ubuntu.com>
20236
20237 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20238 last character in the buffer.
20239 Reported by: Vladimir Serbinenko.
20240
dccaf99d
RM
202412010-06-29 Robert Millan <rmh@gnu.org>
20242
20243 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20244 (Command-line and menu entry commands): Document `badram' command.
20245
d500ed12
RM
202462010-06-28 Robert Millan <rmh@gnu.org>
20247
20248 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20249 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20250 command using ${GRUB_BADRAM} as parameter.
20251
20bc84a6
CW
202522010-06-28 Colin Watson <cjwatson@ubuntu.com>
20253
20254 * docs/grub.texi (Device map): New section.
20255 (Themes): New section (stub).
20256 * Makefile.in (docs/grub.info): The info documentation now builds
20257 without errors. Make sure it stays that way.
20258
4045dee1
VS
202592010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20260
20261 Use normal parser for menu entries.
20262 Reported by: Thomas Frauendorfer
20263
20264 * include/grub/parser.h (grub_parser_execute): Don't export.
20265 * normal/menu.c (grub_menu_execute_entry_real): New function.
20266 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20267
bca58c7b
CW
202682010-06-28 Colin Watson <cjwatson@ubuntu.com>
20269
20270 * docs/grub.texi (Embedded configuration): New section (replacing
20271 old "Preset Menu" stub).
20272 (Images): New section.
20273 (configfile): Note that any menu entries defined in `file' are shown
20274 immediately.
20275
dec53e63
JT
202762010-06-28 Josh Triplett <josh@joshtriplett.org>
20277
20278 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20279
c06e40f7
CW
202802010-06-28 Colin Watson <cjwatson@ubuntu.com>
20281
20282 * util/grub-install.in: Add --debug-image= option.
20283
cb88052b
CW
202842010-06-28 Colin Watson <cjwatson@ubuntu.com>
20285
20286 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20287 possible on Linux.
20288
20289 * util/deviceiter.c (check_device): Rename to ...
20290 (check_device_readable_unique): ... this. Update all callers.
20291 Maintain and check a list of which devices (by canonicalized name)
20292 have already been seen.
20293 (clear_seen_devices): New function.
20294 (compare_file_names) [__linux__]: New function.
20295 (grub_util_iterate_devices): Clear the list of seen devices on exit
20296 and (just in case) on entry.
20297 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20298 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20299 seen-devices list, superseded by general code in check_device.
20300
bbe34652
CW
203012010-06-28 Colin Watson <cjwatson@ubuntu.com>
20302
20303 * commands/cat.c (options): New variable.
20304 (grub_cmd_cat): Parse options. If the --dos option is given, print
20305 DOS-style "\r\n" line endings as simple newlines (Debian bug
20306 #586358).
20307 (GRUB_MOD_INIT): Use extcmd.
20308 (GRUB_MOD_FINI): Likewise.
20309 * docs/grub.texi (cat): Document --dos.
20310
412e09f3
VS
203112010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20312
20313 XEN with Linux grub-mkconfig support.
20314
20315 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20316 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20317 GRUB_CMDLINE_XEN_DEFAULT.
20318 * util/grub.d/20_linux_xen.in: New file.
20319
53f3ef38 203202010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
20321
20322 Initialise VGA video on qemu ourselves.
20323
20324 * boot/i386/qemu/boot.S: Don't call 0xc000.
20325 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20326 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20327 (kernel_img_HEADERS): Add pci.h.
20328 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20329 * configure.ac: Force unifont on qemu and yeeloong.
20330 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20331 (grub_vga_palette_write): Use correct register.
20332 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20333 Call grub_qemu_init_cirrus.
20334 * kern/i386/qemu/init.c: New file.
20335 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20336
20337 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20338
c75be4fb
PR
203392010-06-26 Pavel Roskin <proski@gnu.org>
20340
20341 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20342 13.
20343
d8034603
CW
203442010-06-26 Colin Watson <cjwatson@ubuntu.com>
20345
20346 * docs/grub.texi (Simple configuration): Explain that
20347 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20348 set to `true' to disable their respective recovery entries, not
20349 merely set.
20350
3fa06487
CW
203512010-06-26 Colin Watson <cjwatson@ubuntu.com>
20352
20353 Make the `source' command slightly faster.
20354
20355 * normal/main.c (grub_normal_execute): Don't re-read list files when
20356 nested.
20357
e9b29642
CW
203582010-06-23 Colin Watson <cjwatson@ubuntu.com>
20359
20360 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20361 field position and mask size to red fields from mode_info, not
20362 green.
20363 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20364 Remove redundant tag->common.framebuffer_type assignment.
20365 Reported by: Seth Goldberg.
20366
e726542f
CW
203672010-06-23 Colin Watson <cjwatson@ubuntu.com>
20368
20369 Sync up other versions of the Linux loader with Robert Millan's
20370 change of 2010-01-09, "Make loader output a bit more user-friendly".
20371
20372 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20373 grub_dprintf().
20374 (grub_cmd_linux): Likewise.
20375 (grub_cmd_initrd): Likewise.
20376 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20377 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20378
d6e98a17
CW
203792010-06-21 Colin Watson <cjwatson@ubuntu.com>
20380
20381 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20382 larger than MEMORY_MAP_SIZE.
20383
14d3f08e
BC
203842010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20385
20386 Fix parallel build.
20387
20388 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20389 dependency.
20390 * script/parser.y: #include grub_script.tab.h header.
20391
4f9613a3
VS
203922010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20393
20394 Support >3GiB and <16MiB RAM in i386-qemu.
20395
20396 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20397 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20398 (grub_lower_mem): Removed.
20399 (grub_upper_mem): Likewise.
20400 (mem_size): Made static.
20401 (above_4g): New variable.
20402 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20403 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20404 support.
20405
05e51879
VS
204062010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20407
20408 Cirrus 5446 and Bochs video cards support.
20409
20410 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20411 video_bochs.mod
20412 (video_cirrus_mod_SOURCES): New variable.
20413 (video_cirrus_mod_CFLAGS): Likewise.
20414 (video_cirrus_mod_LDFLAGS): Likewise.
20415 (video_bochs_mod_SOURCES): Likewise.
20416 (video_bochs_mod_CFLAGS): Likewise.
20417 (video_bochs_mod_LDFLAGS): Likewise.
20418 * include/grub/vga.h: New file.
20419 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20420 (grub_video_fb_set_page_t): New type.
20421 (grub_video_fb_setup): New prototype.
20422 (grub_video_fb_swap_buffers): Likewise.
20423 (grub_video_fb_get_info_and_fini): Likewise.
20424 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20425 (CRTC_DATA_PORT): Likewise.
20426 (CRTC_CURSOR): Likewise.
20427 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20428 (CRTC_CURSOR_ADDR_LOW): Likewise.
20429 (CRTC_CURSOR_DISABLE): Likewise.
20430 (update_cursor): Use grub_vga_cr_write.
20431 (grub_vga_text_setcursor): Likewise.
20432 * video/bochs.c: New file.
20433 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20434 (palette): Likewise.
20435 (palette_size): Likewise.
20436 (framebuffer): New variable.
20437 (grub_video_fb_init): Use 'framebuffer'.
20438 (grub_video_fb_fini): Likewise.
20439 (grub_video_fb_get_info): Likewise.
20440 (grub_video_fb_get_palette): Likewise.
20441 (grub_video_fb_set_palette): Likewise.
20442 (grub_video_fb_set_viewport): Likewise.
20443 (grub_video_fb_get_viewport): Likewise.
20444 (grub_video_fb_map_color): Likewise.
20445 (grub_video_fb_map_rgb): Likewise.
20446 (grub_video_fb_map_rgba): Likewise.
20447 (grub_video_fb_unmap_color): Likewise.
20448 (grub_video_fb_unmap_color_int): Likewise.
20449 (grub_video_fb_fill_rect): Likewise.
20450 (grub_video_fb_blit_bitmap): Likewise.
20451 (grub_video_fb_blit_render_target): Likewise.
20452 (grub_video_fb_scroll): Likewise.
20453 (grub_video_fb_create_render_target): Likewise.
20454 (grub_video_fb_doublebuf_blit_init): Likewise.
20455 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20456 (doublebuf_pageflipping_update_screen): New function.
20457 (doublebuf_pageflipping_init): Likewise.
20458 (grub_video_fb_setup): Likewise.
20459 (grub_video_fb_swap_buffers): Likewise.
20460 (grub_video_fb_get_info_and_fini): Likewise.
20461 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20462 All users updated.
20463 (doublebuf_pageflipping_commit): Restructured into ...
20464 (doublebuf_pageflipping_set_page): ... this.
20465 (doublebuf_pageflipping_update_screen): Removed.
20466 (doublebuf_pageflipping_init): Likewise.
20467 (double_buffering_init): Likewise.
20468 (grub_video_vbe_setup): Use grub_video_fb_setup.
20469 (grub_video_vbe_swap_buffers): Removed.
20470 (grub_video_vbe_set_active_render_target): Likewise.
20471 (grub_video_vbe_get_active_render_target): Likewise.
20472 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20473 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20474 grub_video_fb_set_active_render_target and
20475 grub_video_fb_get_active_render_target.
20476 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20477 (SEQUENCER_DATA_PORT): Likewise.
20478 (MAP_MASK_REGISTER): Likewise.
20479 (CRTC_ADDR_PORT): Likewise.
20480 (CRTC_DATA_PORT): Likewise.
20481 (START_ADDR_HIGH_REGISTER): Likewise.
20482 (START_ADDR_LOW_REGISTER): Likewise.
20483 (GRAPHICS_ADDR_PORT): Likewise.
20484 (GRAPHICS_DATA_PORT): Likewise.
20485 (READ_MAP_REGISTER): Likewise.
20486 (INPUT_STATUS1_REGISTER): Likewise.
20487 (INPUT_STATUS1_VERTR_BIT): Likewise.
20488 (get_map_mask): Use grub_vga_sr_read.
20489 (set_map_mask): Use grub_vga_sr_write.
20490 (set_read_map): Use grub_vga_gr_write.
20491 (set_start_address): Use grub_vga_cr_write.
20492 * video/sm712.c (framebuffer): Remove leftover fields.
20493
4321c64a
CW
204942010-06-20 Colin Watson <cjwatson@ubuntu.com>
20495
20496 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20497 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20498 instead. Replace the gfxterm backend check with a check that
20499 ${GRUB_PREFIX}/video.lst is non-empty.
20500 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20501 again.
20502 (load_video): New generated function. Call it before loading
20503 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20504 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20505 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20506 * docs/grub.texi (Simple configuration): Document
20507 GRUB_VIDEO_BACKEND.
20508
205092010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20510
20511 Use video functions in linux and xnu loaders.
20512
20513 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20514 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20515 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20516 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20517 loader/i386/pc/linux.c.
20518 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20519 (find_line_len): Removed.
20520 (find_framebuf): Likewise.
20521 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20522 * loader/i386/efi/xnu.c: Removed.
20523 * loader/i386/pc/xnu.c: Moved from here...
20524 * loader/i386/xnu.c: ...here.
20525
20526 Enable priorities in video drivers.
20527
20528 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20529 (grub_video_adapter): New field prio.
20530 (grub_video_register): Respect prio when inserting.
20531 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20532 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20533 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20534 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20535 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20536 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20537 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20538
20539 Fix SDL driver ID.
20540
20541 * include/grub/video.h (grub_video_driver_id_t): New value
20542 GRUB_VIDEO_DRIVER_SDL.
20543 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20544
7d24e434
CW
205452010-06-17 Colin Watson <cjwatson@ubuntu.com>
20546
20547 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20548 argument to printf.
20549 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20550
c88a83f6
CW
205512010-06-17 Colin Watson <cjwatson@ubuntu.com>
20552
20553 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20554 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20555
094dfb69
CW
205562010-06-17 Colin Watson <cjwatson@ubuntu.com>
20557
20558 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20559 directly, and recommend grub-install instead.
20560 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20561
2164da6b
CW
205622010-06-17 Colin Watson <cjwatson@ubuntu.com>
20563
20564 Fix i386-pc prefix handling with nested partitions (Debian bug
20565 #585068). Note that the case where the core image is booted using
20566 multiboot and relocated from its original location still requires
20567 more work.
20568
20569 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20570 with "(,", fill the boot drive in between those two characters, but
20571 expect that a full partition specification including partition map
20572 names will follow.
20573 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20574 specified, write a prefix without the drive name but including a
20575 full partition specification.
20576
044e2e60
CW
205772010-06-16 Colin Watson <cjwatson@ubuntu.com>
20578
20579 * util/grub-mkconfig.in: Ignore non-option arguments, for
20580 compatibility with older versions (before 2010-06-12) which did the
20581 same. In particular, this makes it easier to ship an update-grub
20582 wrapper which is compatible with that used with GRUB Legacy (Debian
20583 bug #586056).
20584
5591324f
GS
205852010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20586
20587 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20588 for manual page generation.
20589
662e24d5
GS
205902010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20591
20592 * po/POTFILES: Remove leftover commands/handler.c.
20593
8d70754e
CW
205942010-06-14 Colin Watson <cjwatson@ubuntu.com>
20595
20596 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20597 left this script non-functional.
20598
41160e2e
CW
205992010-06-14 Colin Watson <cjwatson@ubuntu.com>
20600
20601 * docs/man/grub-emu.h2m: New file.
20602
b5309cc1
CW
206032010-06-13 Colin Watson <cjwatson@ubuntu.com>
20604
20605 * docs/grub.texi (Commands): Document reduced command set in rescue
20606 mode.
20607 (cpuid): New section.
20608
fcb2d090
GS
206092010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20610
20611 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20612 new partition naming style.
20613 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20614
96e5c556
BC
206152010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20616
20617 Add "-o grub.iso" like cmdline options support.
20618
20619 * util/grub-install.in: Improve cmdline option parsing.
20620 * util/grub-mkconfig.in: Likewise.
20621 * util/grub-mkrescue.in: Likewise.
20622 * util/grub-reboot.in: Likewise.
20623 * util/grub-set-default.in: Likewise.
20624 * util/i386/efi/grub-install.in: Likewise.
20625 * util/ieee1275/grub-install.in: Likewise.
20626 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20627
c16be99b
CW
206282010-06-12 Colin Watson <cjwatson@ubuntu.com>
20629
20630 * .bzrignore: Ignore 41_custom.
20631
ce08a9fb
TS
206322010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20633
20634 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20635
7beac90c
CW
206362010-06-12 Colin Watson <cjwatson@ubuntu.com>
20637
20638 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20639 prototype declarations.
20640
20641 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20642 generating fs, partmap, and video lists.
20643 * include/grub/fs.h (grub_fs_register): Omit prototype if
20644 GRUB_LST_GENERATOR is defined.
20645 * include/grub/partition.h (grub_partition_map_register): Likewise.
20646 * include/grub/video.h (grub_video_register): Likewise.
20647
1c8f0f8d
JM
206482010-06-12 Javier Martín <lordhabbit@gmail.com>
20649
20650 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20651
a6085973
TS
206522010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20653
20654 * util/grub-mkrescue.in: Support --xorriso argument.
20655
25c56d29
VS
206562010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20657
20658 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20659 Suggested by: Thomas Schmitt.
20660
e03e4b24
VS
206612010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20662
20663 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20664 Suggested by: Thomas Schmitt.
20665
57711df6
VS
206662010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20667
20668 custom.cfg support.
20669
20670 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20671 * util/grub.d/41_custom.in: New file.
20672
ee62c427
CW
206732010-06-12 Colin Watson <cjwatson@ubuntu.com>
20674
20675 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20676 been merged back into normal.
20677
283af07a
CW
206782010-06-11 Colin Watson <cjwatson@ubuntu.com>
20679
20680 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20681 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20682
56a0d956
CW
206832010-06-11 Colin Watson <cjwatson@ubuntu.com>
20684
20685 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20686 when generating manual pages.
20687 * docs/man/grub-bin2h.h2m: New file.
20688 * docs/man/grub-editenv.h2m: New file.
20689 * docs/man/grub-fstest.h2m: New file.
20690 * docs/man/grub-install.h2m: New file.
20691 * docs/man/grub-macho2img.h2m: New file.
20692 * docs/man/grub-mkconfig.h2m: New file.
20693 * docs/man/grub-mkdevicemap.h2m: New file.
20694 * docs/man/grub-mkfont.h2m: New file.
20695 * docs/man/grub-mkimage.h2m: New file.
20696 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20697 * docs/man/grub-mkrelpath.h2m: New file.
20698 * docs/man/grub-mkrescue.h2m: New file.
20699 * docs/man/grub-ofpathname.h2m: New file.
20700 * docs/man/grub-pe2elf.h2m: New file.
20701 * docs/man/grub-probe.h2m: New file.
20702 * docs/man/grub-reboot.h2m: New file.
20703 * docs/man/grub-script-check.h2m: New file.
20704 * docs/man/grub-set-default.h2m: New file.
20705 * docs/man/grub-setup.h2m: New file.
20706
3a37e322
VS
207072010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20708
20709 Use FOR_* macros instead of *_iterate whenever possible.
20710
20711 * commands/handler.c: Removed.
20712 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20713 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20714 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20715 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20716 (grub_probe_SOURCES): Remove kern/parser.c.
20717 (util/grub-script-check.c_DEPENDENCIES): Removed.
20718 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20719 and grub_script_check_init.c.
20720 (grub_script_check_init.lst): Removed.
20721 (grub_script_check_init.h): Likewise.
20722 (grub_script_check_init.c): Likewise.
20723 (pkglib_MODULES): Remove handler.mod and sh.mod.
20724 (handler_mod_SOURCES): Removed.
20725 (handler_mod_CFLAGS): Likewise.
20726 (handler_mod_LDFLAGS): Likewise.
20727 (normal_mod_SOURCES): Remove normal/handler.c.
20728 Add script/main.c, script/script.c, script/execute.c,
20729 script/function.c, script/lexer.c, grub_script.tab.c
20730 and grub_script.yy.c.
20731 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20732 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20733 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20734 (grub_setup_SOURCES): Remove kern/parser.c.
20735 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20736 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20737 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20738 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20739 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20740 (grub_setup_SOURCES): Remove kern/parser.c.
20741 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20742 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20743 * include/grub/command.h (grub_command_iterate): Removed.
20744 (FOR_COMMANDS): New macro.
20745 * include/grub/dl.h (grub_dl): New member next.
20746 (grub_dl_iterate): Removed.
20747 (grub_dl_head): New variable declaration.
20748 (FOR_DL_MODULES): New macro.
20749 * include/grub/fs.h: Include list.h.
20750 (grub_fs): Make next first element.
20751 (grub_fs_list): New variable declaration.
20752 (grub_fs_register): Make inline.
20753 (grub_fs_unregister): Likewise.
20754 (grub_fs_iterate): Removed.
20755 (FOR_FILESYSTEMS): New macro.
20756 * include/grub/handler.h: Removed.
20757 * include/grub/list.h (grub_list_hook_t): Removed.
20758 (grub_list_test_t): Likewise.
20759 (grub_list_pop): Likewise.
20760 (grub_list_iterate): Likewise.
20761 (grub_list_insert): Likewise.
20762 (FOR_LIST_ELEMENTS): New macro.
20763 * include/grub/parser.h (grub_parser_class): Removed.
20764 (grub_parser_register): Likewise.
20765 (grub_parser_unregister): Likewise.
20766 (grub_parser_get_current): Likewise.
20767 (grub_parser_set_current): Likewise.
20768 (grub_register_rescue_parser): Likewise.
20769 (grub_rescue_parse_line): New function.
20770 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20771 * include/grub/script_sh.h (grub_script_function_list): New variable
20772 declaration.
20773 (FOR_SCRIPT_FUNCTIONS): New macro.
20774 (grub_script_function_iterate): Removed.
20775 (grub_normal_parse_line): New prototype.
20776 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20777 (FOR_DISABLED_TERM_INPUTS): Likewise.
20778 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20779 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20780 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20781 element.
20782 (grub_video_register): Inline.
20783 (grub_video_unregister): Likewise.
20784 (grub_video_adapter_list): New variable declaration.
20785 (grub_video_iterate): Removed.
20786 (FOR_VIDEO_ADAPTERS): New macro.
20787 * kern/dl.c (grub_dl_list): Removed. All users updated.
20788 (grub_dl_iterate): Removed.
20789 * kern/fs.c (grub_fs_list): Make global.
20790 (grub_fs_register): Removed.
20791 (grub_fs_unregister): Likewise.
20792 (grub_fs_iterate): Likewise.
20793 * kern/handler.c: Removed.
20794 * kern/list.c (grub_list_pop): Removed.
20795 (grub_list_iterate): Likewise.
20796 (grub_list_insert): Likewise.
20797 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20798 (grub_prio_list_insert): Don't use grub_list_insert.
20799 * kern/main.c (grub_register_rescue_parser): Don't call
20800 grub_register_rescue_parser.
20801 * kern/parser.c (grub_parser_class): Removed.
20802 (grub_parser_execute): Use grub_rescue_parse_line.
20803 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20804 (grub_rescue_parser): Removed.
20805 (grub_register_rescue_parser): Likewise.
20806 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20807 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20808 (grub_auth_check_authentication): Likewise.
20809 * normal/completion.c (iterate_command): Removed.
20810 (grub_normal_do_completion): Use FOR_COMMANDS.
20811 * normal/handler.c: Removed.
20812 * normal/main.c (read_config_file): Remove parser changing.
20813 (grub_normal_execute): Don't call read_handler_list.
20814 (grub_normal_read_line_real): Statically allocate prompt.
20815 (grub_cmdline_run): Use grub_normal_parse_line.
20816 (GRUB_MOD_FINI): Don't call free_handler_list.
20817 * normal/menu_entry.c (run): Likewise.
20818 * script/function.c (grub_script_function_list): Make global.
20819 (grub_script_function_iterate): Removed.
20820 * script/main.c (grub_normal_parse_line): Make global.
20821 (grub_sh_parser): Removed.
20822 (GRUB_MOD_INIT): Likewise.
20823 (GRUB_MOD_FINI): Likewise.
20824 * tests/lib/functional_test.c (grub_functional_test): Use
20825 FOR_LIST_ELEMENTS.
20826 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20827 (grub_test_run): Use FOR_LIST_ELEMENTS.
20828 * tests/lib/unit_test.c (main): Likewise.
20829 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20830 grub_list_pop.
20831 * util/grub-fstest.c (grub_term_input_class): Removed.
20832 (grub_term_output_class): Likewise.
20833 * util/grub-probe.c: Likewise.
20834 * util/i386/pc/grub-setup.c: Likewise.
20835 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20836 * util/grub-script-check.c (main): Don't call grub_init_all and
20837 grub_fini_all.
20838 * video/video.c (grub_video_adapter_list): Make global.
20839 (grub_video_register): Removed.
20840 (grub_video_unregister): Likewise.
20841 (grub_video_iterate): Likewise.
20842
6289c3a7
VS
208432010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20844
20845 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20846 reported by Henrique Ferreiro.
20847
91460247
RM
208482010-06-09 Robert Millan <rmh@gnu.org>
20849
20850 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20851 ones, when both are available.
20852
0ea7c4f9
GS
208532010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20854
20855 Make --version uniform and avoid hard-coded program name.
20856
20857 * util/grub-mkimage.c (main): Use `program_name' instead of
20858 hard-coded string.
20859 * util/i386/pc/grub-setup.c (main): Likewise.
20860 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20861 * util/grub-install.in: Save the basename of $0 in $self, and use the
20862 latter in informational messages. Use the same format for --version
20863 as the binary programs.
20864 * util/grub-mkconfig.in: Likewise.
20865 * util/grub-mkrescue.in: Likewise.
20866 * util/grub-reboot.in: Likewise.
20867 * util/grub-set-default.in: Likewise.
20868 * util/i386/efi/grub-install.in: Likewise.
20869 * util/ieee1275/grub-install.in: Likewise.
20870 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20871
e8a6f3b6
GS
208722010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20873
20874 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20875 embedding area. Use <= instead of == when checking for non-emptiness.
20876
f4d095d7
GS
208772010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20878
20879 * configure.ac: Add `.' to the directories searched for unifont.
20880
50e532ca
CW
208812010-06-08 Colin Watson <cjwatson@ubuntu.com>
20882
20883 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20884 grub_script.yy.h.
20885
d39f3dec
CW
208862010-06-08 Colin Watson <cjwatson@ubuntu.com>
20887
20888 * docs/grub.texi (History): Expand to cover GRUB 2.
20889 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20890 commands, not `terminal'.
20891 (serial): Likewise.
20892 (terminal_input): New section.
20893 (terminal_output): New section.
20894 (uppermem): New section (stub).
20895 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20896
6ef0ddb4
CW
208972010-06-08 Colin Watson <cjwatson@ubuntu.com>
20898
20899 * docs/grub.texi (Security): Menu entries are unrestricted by
20900 default, not restricted to superusers as I had previously thought.
20901 Reword to account for this.
20902
e0f4c438
CW
209032010-06-07 Colin Watson <cjwatson@ubuntu.com>
20904
20905 * kern/emu/misc.c (device_mapper_null_log): New function.
20906 (grub_device_mapper_supported): New function.
20907 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20908 prototype.
20909 * kern/emu/hostdisk.c (find_partition_start): Check whether
20910 device-mapper is supported before trying to use it.
20911 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20912
da908200
CW
209132010-06-07 Colin Watson <cjwatson@ubuntu.com>
20914
20915 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20916 (File name syntax): Likewise.
20917 (help): --all is no longer supported in GRUB 2. Be more precise
20918 about pattern matching.
20919
fb55c3ac
CW
209202010-06-07 Colin Watson <cjwatson@ubuntu.com>
20921
20922 * normal/completion.c (grub_normal_do_completion): When completing
20923 arguments to "set" and the current word contains an equals sign,
20924 skip to after the equals sign before starting completion.
20925
258c2573
CW
209262010-06-07 Colin Watson <cjwatson@ubuntu.com>
20927
20928 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20929
ee75515e
CW
209302010-06-07 Colin Watson <cjwatson@ubuntu.com>
20931
20932 * docs/grub.texi (Network): New section.
20933 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20934 `(nd)' as in GRUB Legacy.
20935 (pxe_unload): New section.
20936
a6a700aa
CW
209372010-06-07 Colin Watson <cjwatson@ubuntu.com>
20938
20939 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20940 in the rescue shell, so recommend using `set' instead. Thanks,
20941 Jordan Uggla.
20942
4003dd38
CW
209432010-06-07 Colin Watson <cjwatson@ubuntu.com>
20944
20945 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20946 (password): New section.
20947 (password_pbkdf2): New section.
20948 (search): New section.
20949 (Security): New section.
20950 (Troubleshooting): New section, currently very incomplete.
20951 (Invoking grub-mkpasswd-pbkdf2): New section.
20952 (Internals): New section, currently very incomplete.
20953
e1cbcc40
CW
209542010-06-07 Colin Watson <cjwatson@ubuntu.com>
20955
20956 * util/grub.d/00_header.in: Add some more quoting (of
20957 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20958 work again.
20959 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20960
db8fa1ad
CW
209612010-06-07 Colin Watson <cjwatson@ubuntu.com>
20962
20963 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20964 to `count', fixing variable shadowing that broke the -c option.
20965
209662010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
20967
20968 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20969 in case they contain spaces.
20970
f28a9212
CW
209712010-06-04 Colin Watson <cjwatson@ubuntu.com>
20972
20973 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20974 "part_" to partmap module names, in line with grub-install.
20975 Reported by: Jindřich Makovička (Debian bug #584426).
20976
9cdfe32f
CW
209772010-06-04 Colin Watson <cjwatson@ubuntu.com>
20978
20979 * util/grub-mkimage.c: Make target-related error messages slightly
20980 more helpful; -O talks about "format". Explicitly point to the use
20981 of -O if no target is specified.
20982 Reported by: Didier Raboud (Debian bug #584415).
20983
795b593a
CW
209842010-06-03 Colin Watson <cjwatson@ubuntu.com>
20985
20986 * INSTALL: Document several build requirements for optional features
20987 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20988
9d9b5833
GS
209892010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20990
20991 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20992 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20993 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20994
0819fec8
CW
209952010-06-02 Colin Watson <cjwatson@ubuntu.com>
20996
20997 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20998 Thanks to Jordan Uggla for spotting this.
20999
49396b4f
VS
210002010-06-02 Aleš Nesrsta <starous@volny.cz>
21001
21002 Finally make USB usable.
21003
21004 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
21005 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
21006 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
21007 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
21008 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
21009 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
21010 (GRUB_OHCI_FSMPS): Likewise.
21011 (GRUB_OHCI_PERIODIC_START): Likewise.
21012 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
21013 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
21014 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
21015 (GRUB_OHCI_SET_PORT_RESET): Likewise.
21016 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
21017 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
21018 (grub_ohci_transaction): Likewise.
21019 (grub_ohci_transfer): Improve condition detection algorithms.
21020 Handle toggle property. Program the transactions correctly.
21021 Improve error handling. Various important fixups.
21022 (grub_ohci_portstatus): Put register writes in right order.
21023 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
21024 (grub_uhci_transfer): Don't show "failed" message on success.
21025 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
21026 array.
21027 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
21028 determine its size.
21029 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
21030 before initialization is completed. Use IN direction for empty
21031 transfers. Use last_trans and compute toggle.
21032 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
21033 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
21034 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
21035 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
21036 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
21037 (grub_usb_device): Increase toggle to 256.
21038 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
21039 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
21040 GRUB_USBMS_SUBCLASS_SFF8070.
21041 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
21042 (grub_scsi_inquiry): New member page and alloc_length.
21043 (grub_scsi_request_sense): New structure.
21044 (grub_scsi_request_sense_data): Likewise.
21045 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
21046 control.
21047 * disk/scsi.c (grub_scsi_request_sense): New function.
21048 (grub_scsi_test_unit_ready): Likewise.
21049 (grub_scsi_inquiry): Fill new fields.
21050 (grub_scsi_read_capacity): Likewise.
21051 (grub_scsi_read10): Add request sense at the end.
21052 (grub_scsi_read12): Likewise.
21053 (grub_scsi_write10): Likewise.
21054 (grub_scsi_write12): Likewise.
21055 (grub_scsi_open): Add Test Unit Ready.
21056 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
21057 Support additional subclasses. Con't clear halt yet. Activate the
21058 proper config. Calculate LUNs correctly.
21059 (grub_usbms_transfer): Various important fixups.
21060
210612010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21062
21063 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
21064 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
21065 (grub_ohci_fini_hw): New function.
21066 (grub_ohci_restore_hw): Likewise.
21067 (GRUB_MOD_INIT(ohci)): Register preboot hook.
21068 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
21069 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
21070
210712010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21072
21073 Dedicated DMA allocations.
21074
21075 * bus/pci.c (grub_memalign_dma32): New function
21076 (grub_dma_free): Likewise.
21077 (grub_dma_get_virt): Likewise.
21078 (grub_dma_get_phys): Likewise.
21079 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
21080 (grub_ohci_pci_iter): Use dma32_alloc.
21081 (grub_ohci_transfer): Likewise.
21082 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21083 (grub_usb_bulk_readwrite): Likewise.
21084 * include/grub/pci.h: Add declarations.
21085
210862010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21087
21088 CS5536 support.
21089
21090 * bus/cs5536.c: New file.
21091 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21092 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21093 (cs5536_mod_SOURCES): New variable.
21094 (cs5536_mod_CFLAGS): Likewise.
21095 (cs5536_mod_LDFLAGS): Likewise.
21096 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21097 machine/pci.h.
21098 (kernel_img_SOURCES): Add bus/cs5536.c.
21099 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21100 usb_keyboard.mod.
21101 (usb_mod_SOURCES): New variable.
21102 (usb_mod_CFLAGS): New variable.
21103 (usb_mod_LDFLAGS): New variable.
21104 (usbtest_mod_SOURCES): New variable.
21105 (usbtest_mod_CFLAGS): New variable.
21106 (usbtest_mod_LDFLAGS): New variable.
21107 (ohci_mod_SOURCES): New variable.
21108 (ohci_mod_CFLAGS): New variable.
21109 (ohci_mod_LDFLAGS): New variable.
21110 (usbms_mod_SOURCES): New variable.
21111 (usbms_mod_CFLAGS): New variable.
21112 (usbms_mod_LDFLAGS): New variable.
21113 (usb_keyboard_mod_SOURCES): New variable.
21114 (usb_keyboard_mod_CFLAGS): New variable.
21115 (usb_keyboard_mod_LDFLAGS): New variable.
21116 * include/grub/smbus.h: New file.
21117 * include/grub/cs5536.h: New file.
21118
0b35b2a9
CW
211192010-06-02 Colin Watson <cjwatson@ubuntu.com>
21120
21121 * util/grub.d/00_header.in: Add safety check to make sure that
21122 ${locale_dir} exists before trying to probe it.
21123
ca0afd5b
CW
211242010-06-02 Colin Watson <cjwatson@ubuntu.com>
21125
21126 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21127 per the GNU Coding Standards; this is now too obscure to be worth
21128 documenting.
21129 (QNX): Likewise.
21130 (chainloader): Remove cross-reference to `SCO UnixWare'.
21131
1c41aa78
CW
211322010-06-02 Colin Watson <cjwatson@ubuntu.com>
21133
21134 * docs/grub.texi (Chain-loading): New section.
21135 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21136 adjusted for GRUB 2.
21137 (SCO UnixWare): Likewise.
21138 (QNX): Likewise.
21139 (chainloader): Add reference to `Block list syntax'.
21140 (drivemap): New section.
21141 (parttool): New section.
21142
bb8ea0f5
CW
211432010-06-02 Colin Watson <cjwatson@ubuntu.com>
21144
21145 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21146 the grub shell'.
21147 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21148 (Installing GRUB using grub-install): Remove reference to the grub
21149 shell; mention `grub-mkimage' and `grub-setup' instead.
21150 (Invoking grub-install): Likewise.
21151 (Interface): Add reference to `Menu entry editor'.
21152 (serial): Remove `--device' option.
21153
288dd6ed
CW
211542010-06-02 Colin Watson <cjwatson@ubuntu.com>
21155
21156 * docs/grub.texi (Configuration): New section, documenting
21157 configuration file generation using grub-mkconfig. I've left a slot
21158 for documenting the full shell scripting format but have not yet
21159 started on writing that up.
21160 (Invoking grub-mkconfig): New section.
21161
34c9f0e9
CW
211622010-06-02 Colin Watson <cjwatson@ubuntu.com>
21163
21164 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21165 (GNU GRUB manual): Likewise.
21166 (General commands): Update description of `terminfo' for GRUB 2.
21167
9121567e
CW
211682010-06-02 Colin Watson <cjwatson@ubuntu.com>
21169
21170 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21171 (GRUB_MOD_INIT): Fix capitalisation.
21172 * docs/grub.texi (Command-line and menu entry commands): Document
21173 gettext and gptsync commands.
21174
ab631611
CW
211752010-06-02 Colin Watson <cjwatson@ubuntu.com>
21176
21177 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21178 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21179
bde4a9ac
CW
211802010-06-01 Colin Watson <cjwatson@ubuntu.com>
21181
21182 Add btrfs probing support, currently only in the single-device case.
21183
21184 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21185 function.
21186 (grub_guess_root_device): Call find_root_device_from_mountinfo
21187 before looking in /dev.
21188
b1d17e10
VS
211892010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21190
21191 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21192 GRUB_DISK_SIZE_UNKNOWN.
21193 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21194
dfbfe004
JS
211952010-05-31 Jiro SEKIBA <jir@unicus.jp>
21196
21197 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21198 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21199 corrupted or not synced properly.
21200
c2ffc8e9
VS
212012010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21202
21203 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21204 Reported by: Seth Goldberg.
21205
56293166
VS
212062010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21207
21208 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21209 addition of dest.
21210 Reported by: Seth Goldberg.
21211
7620e7de
VS
212122010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21213
21214 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21215 Reported by: Seth Goldberg.
21216
c837af3f
VS
212172010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21218
21219 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21220 64-bit address as signed on MIPS.
21221
c7c75cf4
CW
212222010-05-28 Colin Watson <cjwatson@ubuntu.com>
21223
21224 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21225 to the empty string.
21226
fa4b8490
BC
212272010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21228
21229 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21230
21231 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21232 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21233 * kern/misc.c (__enable_execute_stack): Disable on
21234 GRUB_MACHINE_EMU.
21235
a33075b9
CW
212362010-05-28 Colin Watson <cjwatson@ubuntu.com>
21237
21238 Make grub-probe work with symbolic links under /dev/mapper as well
21239 as with real block devices. The Linux world seems to be (at best)
21240 in transition here, and GRUB shouldn't get caught in the middle.
21241
21242 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21243 /dev/mapper.
21244
d8708134
CW
212452010-05-27 Colin Watson <cjwatson@ubuntu.com>
21246
21247 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21248 input files (in which case exit zero).
21249
db2102a0
CW
212502010-05-27 Colin Watson <cjwatson@ubuntu.com>
21251
21252 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21253 return NULL for various reasons even if it has a maximum-length
21254 buffer: for example, there might be a symlink loop, or the path
21255 might exceed PATH_MAX. If this happens, return NULL.
21256
5fdba519
RM
212572010-05-27 Robert Millan <rmh@gnu.org>
21258
21259 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21260 partmap module to handle cross-partmap setups.
21261 Reported by Orestes Mas. Gràcies!
21262
d1d368e4
CW
212632010-05-27 Colin Watson <cjwatson@ubuntu.com>
21264
21265 * util/grub-mkrescue.in: Initialise override_dir rather than
21266 assuming that it's unset or empty in the environment.
21267
95ac3c73
GS
212682010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21269
21270 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21271 variable index into p_index to suppress a warning with -Wshadow.
21272
7d8c0213
BC
212732010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21274
21275 * INSTALL: Added flex >= 2.5.35 requirement.
21276
db4d5813
VS
212772010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21278
21279 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21280
f24f4300
VS
212812010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21282
21283 cmostest support.
21284
21285 * commands/i386/cmostest.c: New file.
21286 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21287 (cmostest_mod_SOURCES): New variable.
21288 (cmostest_mod_CFLAGS): Likewise.
21289 (cmostest_mod_LDFLAGS): Likewise.
21290 * conf/i386-pc.rmk: Likewise.
21291 * docs/grub.texi (Vendor power-on keys): New section.
21292 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21293 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21294 and GRUB_BUTTON_CMOS_ADDRESS.
21295 * util/grub.d/00_header.in: Handle powering-on by separate button.
21296
ad603f61
VS
212972010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21298
21299 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21300 Removed drawing_scrollbar argument. All users updated
21301 Fixes #29792.
21302 Reported by Jo Shields
21303
3ecb080a
VS
213042010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21305
21306 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21307 buffer since gfxterm handles double repaint.
21308
5f2316c1
VS
213092010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21310
21311 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21312 * term/gfxterm.c (real_scroll): Likewise.
21313
9a25f885
VS
213142010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21315
21316 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21317 before calling BIOS.
21318
39fbb79a
VS
213192010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21320
21321 * include/grub/i18n.h: Always enable grub_gettext.
21322
228cfa97
VS
213232010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21324
21325 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21326 partition naming style.
21327
21717c8f
CW
213282010-05-21 Colin Watson <cjwatson@ubuntu.com>
21329
21330 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21331 not the first option.
21332
c0f48e65
CW
213332010-05-20 Colin Watson <cjwatson@ubuntu.com>
21334
21335 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21336
96779aec
CW
213372010-05-20 Colin Watson <cjwatson@ubuntu.com>
21338
21339 * util/misc.c: Move inclusion of <limits.h> to ...
21340 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21341
fa9d256e
GS
213422010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21343
21344 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21345 Fix merge error in NetBSD code.
21346 (find_partition_start) [__NetBSD__]: Likewise.
21347
123b7a85
BC
213482010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21349
21350 Fix grub-mkrescue usage unit testing.
21351
21352 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21353
74276c0d
CF
213542010-05-18 Christian Franke <franke@computer.org>
21355
21356 * util/grub.d/10_windows.in: Use path names instead of
21357 drive letters to prevent warning from Cygwin 1.7.
21358 Add drivemap command to menuentry if needed.
21359
c4f7b523
ST
213602010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21361
21362 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21363 gnumach and gnumach.gz.
21364
95b97950
VS
213652010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21366
21367 * include/grub/i18n.h (gettext): Inline instead of using #define.
21368 (grub_gettext): Likewise.
21369 (_): Likewise.
21370
01b8d2d7
VS
213712010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21372
21373 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21374 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21375 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21376 (main): Add a slash after pkglibdirroot.
21377
654e1d1e
VS
213782010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21379
21380 * util/grub-install.in: Add missing "in" keyword.
21381
26966aeb
VS
213822010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21383
21384 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21385 Reported by: Seth Goldberg.
21386
75006747
VS
213872010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21388
21389 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21390
74cbf5bd
CW
213912010-05-18 Colin Watson <cjwatson@ubuntu.com>
21392
21393 * configure.ac: Check for Linux device-mapper support.
21394
21395 * util/hostdisk.c (device_is_mapped): New function.
21396 (find_partition_start): New function, partly broken out from
21397 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21398 device-mapper support added.
21399 (linux_find_partition): Use find_partition_start.
21400 (convert_system_partition_to_system_disk): Add `st' argument.
21401 Support Linux /dev/mapper/* devices if device-mapper support is
21402 available; only DM-RAID devices are understood at present.
21403 (find_system_device): Add `st' argument. Pass it to
21404 convert_system_partition_to_system_disk.
21405 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21406 find_system_device and convert_system_partition_to_system_disk. Use
21407 find_partition_start.
21408
21409 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21410 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21411 * util/deviceiter.c [__linux__]: Define MINOR.
21412 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21413 * util/mkdevicemap.c (grub_putchar): New function.
21414 (grub_getkey): New function.
21415 (grub_refresh): New function.
21416 (main): Set debug=all if -v -v is used.
21417
355b51e9
CW
214182010-05-18 Colin Watson <cjwatson@ubuntu.com>
21419
21420 Fix build with non-GNU libcs.
21421
21422 * util/misc.c (canonicalize_file_name): Move to ...
21423 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21424 grub_make_system_path_relative_to_its_root.
21425
7fb5c25f
CW
214262010-05-18 Colin Watson <cjwatson@ubuntu.com>
21427
21428 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21429 we handle finding grub-mkimage. Default to finding grub-mkimage in
21430 ${bindir} with program_transform_name applied, and provide a
21431 --grub-mkimage option to override this.
21432
1d3293d6
VS
214332010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21434
21435 Remove grub-mkisofs.
21436
21437 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21438 (grub_mkisofs_SOURCES): Removed.
21439 (grub_mkisofs_CFLAGS): Removed.
21440 * util/mkisofs/defaults.h: Removed.
21441 * util/mkisofs/eltorito.c: Likewise.
21442 * util/mkisofs/exclude.h: Likewise.
21443 * util/mkisofs/hash.c: Likewise.
21444 * util/mkisofs/include/: Likewise.
21445 * util/mkisofs/include/fctldefs.h: Likewise.
21446 * util/mkisofs/include/mconfig.h: Likewise.
21447 * util/mkisofs/include/prototyp.h: Likewise.
21448 * util/mkisofs/include/statdefs.h: Likewise.
21449 * util/mkisofs/iso9660.h: Likewise.
21450 * util/mkisofs/joliet.c: Likewise.
21451 * util/mkisofs/match.c: Likewise.
21452 * util/mkisofs/match.h: Likewise.
21453 * util/mkisofs/mkisofs.c: Likewise.
21454 * util/mkisofs/mkisofs.h: Likewise.
21455 * util/mkisofs/msdos_partition.h: Likewise.
21456 * util/mkisofs/multi.c: Likewise.
21457 * util/mkisofs/name.c: Likewise.
21458 * util/mkisofs/rock.c: Likewise.
21459 * util/mkisofs/tree.c: Likewise.
21460 * util/mkisofs/write.c: Likewise.
21461
5dde9afe
VS
214622010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21463
21464 Unify grub-mkimage accross platforms.
21465
21466 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21467 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21468 (grub_mkelfimage_SOURCES): Removed.
21469 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21470 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21471 (bin_UTILITIES): Add grub-mkimage.
21472 (grub_mkimage_SOURCES): New variable.
21473 (kernel_img_HEADERS): Remove machine/kernel.h.
21474 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21475 (pkglib_PROGRAMS): Add kernel.img.
21476 (kernel_img_HEADERS): Add machine/kernel.h.
21477 (kernel_img_FORMAT): Removed.
21478 (bin_UTILITIES): Remove grub-mkimage.
21479 (grub_mkimage_SOURCES): Removed.
21480 (grub_mkimage_CFLAGS): Likewise.
21481 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21482 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21483 (pkglib_PROGRAMS): Add kernel.img.
21484 (bin_UTILITIES): Remove grub-mkimage.
21485 (grub_mkimage_SOURCES): Removed.
21486 (grub_mkimage_CFLAGS): Likewise.
21487 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21488 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21489 (pkglib_PROGRAMS): Add kernel.img.
21490 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21491 (pkglib_PROGRAMS): Add kernel.img.
21492 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21493 (grub_mkimage_SOURCES): Removed.
21494 (grub_mkimage_CFLAGS): Likewise.
21495 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21496 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21497 (pkglib_PROGRAMS): Add kernel.img.
21498 (bin_UTILITIES): Remove grub-mkimage.
21499 (grub_mkimage_SOURCES): Removed.
21500 (grub_mkimage_CFLAGS): Likewise.
21501 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21502 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21503 (grub_mkimage_SOURCES): Removed.
21504 (grub_mkimage_CFLAGS): Likewise.
21505 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21506 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21507 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21508 (grub_pe32_optional_header): ... this.
21509 (grub_pe64_optional_header): ... and this. All users updated.
21510 (GRUB_PE32_PE32_MAGIC): Split into ..
21511 (GRUB_PE32_PE32_MAGIC): .. this.
21512 (GRUB_PE32_PE64_MAGIC): .. and this.
21513 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21514 * include/grub/elf.h (PT_GNU_STACK): New definition.
21515 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21516 * include/grub/i386/efi/kernel.h: Likewise.
21517 * include/grub/i386/kernel.h: Likewise.
21518 * include/grub/i386/pc/kernel.h: Likewise.
21519 * include/grub/i386/qemu/boot.h: Likewise.
21520 * include/grub/mips/kernel.h: Likewise.
21521 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21522 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21523 * include/grub/powerpc/kernel.h: Likewise.
21524 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21525 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21526 * include/grub/sparc64/kernel.h: Likewise.
21527 * include/grub/x86_64/efi/kernel.h: Likewise.
21528 * include/grub/x86_64/kernel.h: Likewise.
21529 * include/grub/offsets.h: New file.
21530 * include/grub/kernel.h (grub_module_info): Split into ...
21531 (grub_module_info32): ... this.
21532 (grub_module_info64): ... and this.
21533 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21534 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21535 (grub_boot_blocklist): Moved from here ...
21536 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21537 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21538 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21539 * include/grub/types.h (grub_target_to_host16): Removed.
21540 (grub_target_to_host32): Likewise.
21541 (grub_target_to_host64): Likewise.
21542 (grub_host_to_target16): Likewise.
21543 (grub_host_to_target32): Likewise.
21544 (grub_host_to_target64): Likewise.
21545 (grub_host_to_target_addr): Likewise.
21546
21547 Support grub-mkrescue for efi, coreboot and qemu.
21548
21549 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21550 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21551 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21552 * util/grub-mkrawimage.c: Moved from here ...
21553 * util/grub-mkimage.c: ... here. All users updated.
21554 (ALIGN_ADDR): Use image_target.
21555 (TARGET_NO_FIELD): New const.
21556 (image_target_desc): New type.
21557 (image_targets): New array.
21558 (grub_target_to_host64): Use image_target.
21559 (grub_target_to_host32): Likewise.
21560 (grub_target_to_host16): Likewise.
21561 (grub_host_to_target64): Likewise.
21562 (grub_host_to_target32): Likewise.
21563 (grub_host_to_target16): Likewise.
21564 (grub_host_to_target_addr): Likewise.
21565 (generate_image): Handle multiimage.
21566 (main): Require -O parameter. All users updated.
21567 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21568 util/efi/grub-mkimage.c
21569 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21570 New option --rom-directory.
21571 Use xorriso.
21572 * util/i386/efi/grub-mkimage.c: Removed.
21573 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21574 (grub_target_to_host32): Likewise.
21575 (grub_target_to_host64): Likewise.
21576 (grub_host_to_target16): Likewise.
21577 (grub_host_to_target32): Likewise.
21578 (grub_host_to_target64): Likewise.
21579 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21580 (grub_target_to_host32): Likewise.
21581 (grub_target_to_host64): Likewise.
21582 (grub_host_to_target16): Likewise.
21583 (grub_host_to_target32): Likewise.
21584 (grub_host_to_target64): Likewise.
21585
f4fc97d0
BC
215862010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21587
21588 Source tree is reorganized for emu build.
21589
21590 * include/grub/util/console.h: Move from here...
21591 * include/grub/emu/console.h: ...to here.
21592 * include/grub/util/getroot.h: Move from here...
21593 * include/grub/emu/getroot.h: ...to here.
21594 * include/grub/util/hostdisk.h: Move from here...
21595 * include/grub/emu/hostdisk.h: ...to here.
21596 * util/console.c: Move from here...
21597 * kern/emu/console.c: ...to here.
21598 * util/getroot.c: Move from here...
21599 * kern/emu/getroot.c: ...to here.
21600 * util/grub-emu.c: Move from here...
21601 * kern/emu/main.c: ...to here.
21602 * util/hostdisk.c: Move from here...
21603 * kern/emu/hostdisk.c: ...to here.
21604 * util/hostfs.c: Move from here...
21605 * kern/emu/hostfs.c: ...to here.
21606 * util/mm.c: Move from here...
21607 * kern/emu/mm.c: ...to here.
21608 * util/pci.c: Move from here...
21609 * bus/emu/pci.c: ...to here.
21610 * util/sdl.c: Move from here...
21611 * video/emu/sdl.c: ...to here.
21612 * util/time.c: Move from here...
21613 * kern/emu/time.c: ...to here.
21614 * util/usb.c: Move from here...
21615 * bus/usb/emu/usb.c: ...to here.
21616
21617 * include/grub/emu/misc.h: New header for grub-emu functions.
21618 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21619
21620 * conf/any-emu.rmk: Rule updates for above renames.
21621 * conf/common.rmk: Likewise.
21622 * conf/i386-pc.rmk: Likewise.
21623 * conf/i386-qemu.rmk: Likewise.
21624 * conf/mips.rmk: Likewise.
21625 * conf/sparc64-ieee1275.rmk: Likewise.
21626 * conf/x86-efi.rmk: Likewise.
21627
21628 * disk/lvm.h: #include updates for above renames.
21629 * util/grub-mkrelpath.c: Likewise.
21630 * util/grub-probe.c: Likewise.
21631 * util/i386/pc/grub-setup.c: Likewise.
21632 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21633 * kern/emu/console.c: Likewise.
21634 * kern/emu/getroot.c: Likewise.
21635 * kern/emu/hostdisk.c: Likewise.
21636 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21637
21638 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21639 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21640 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21641 * util/misc.c: Remove grub-emu functions.
21642
cced9145
VS
216432010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21644
21645 Fix gfxmenu crash.
21646 Reported by: Thorsten Grützmacher.
21647
21648 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21649 timeout hook.
21650 (circprog_set_property): Register and unregister timeout hook.
21651 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21652 (label_destroy): Free template. and unregister hook.
21653 (label_set_state): New function.
21654 (label_set_property): Handle templates and hooks.
21655 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21656 timeout hook.
21657 (progress_bar_set_property): Register and unregister timeout hook.
21658 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21659 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21660 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21661 (update_timeout_visit): Removed.
21662 (update_timeouts): New function.
21663 (redraw_timeouts): Likewise.
21664 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21665 (grub_gfxmenu_clear_timeout): Likewise.
21666 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21667 (grub_gfxmenu_timeout_notify): Likewise.
21668 (grub_gfxmenu_timeout_notifications): New external variable.
21669 (grub_gfxmenu_timeout_register): New function.
21670 (grub_gfxmenu_timeout_unregister): Likewise.
21671
c6e5caab
VS
216722010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21673
21674 Transform (broken) vga terminal into (working) vga video driver.
21675
21676 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21677 video/i386/pc/vga.c.
21678 * include/grub/video.h (grub_video_driver_id):
21679 Add GRUB_VIDEO_DRIVER_VGA.
21680 * term/i386/pc/vga.c: Renamed to ...
21681 * video/i386/pc/vga.c: ...this
21682 (DEBUG_VGA): Removed.
21683 (CHAR_WIDTH): Likewise.
21684 (CHAR_HEIGHT): Likewise.
21685 (TEXT_WIDTH): Likewise.
21686 (TEXT_HEIGHT): Likewise.
21687 (DEFAULT_FG_COLOR): Likewise.
21688 (DEFAULT_BG_COLOR): Likewise.
21689 (colored_char): Likewise.
21690 (xpos): Likewise.
21691 (ypos): Likewise.
21692 (cursor_state): Likewise.
21693 (fg_color): Likewise.
21694 (bg_color): Likewise.
21695 (text_buf): Likewise.
21696 (page): Likewise.
21697 (font): Likewise.
21698 (framebuffer): New variable.
21699 (set_read_map): Disabled.
21700 (setup): New variable.
21701 (is_target): Likewise.
21702 (grub_vga_mod_init): Likewise.
21703 (grub_vga_mod_fini): Likewise.
21704 (check_vga_mem): Likewise.
21705 (write_char): Likewise.
21706 (write_cursor): Likewise.
21707 (scroll_up): Likewise.
21708 (grub_vga_putchar): Likewise.
21709 (grub_vga_getcharwidth): Likewise.
21710 (grub_vga_getwh): Likewise.
21711 (grub_vga_getxy): Likewise.
21712 (grub_vga_gotoxy): Likewise.
21713 (grub_vga_cls): Likewise.
21714 (grub_vga_setcolorstate): Likewise.
21715 (grub_vga_setcursor): Likewise.
21716 (grub_video_vga_init): New function.
21717 (grub_video_vga_setup): Likewise.
21718 (grub_video_vga_fini): Likewise.
21719 (update_target): Likewise.
21720 (grub_video_vga_blit_bitmap): Likewise.
21721 (grub_video_vga_blit_render_target): Likewise.
21722 (grub_video_vga_set_active_render_target): Likewise.
21723 (grub_video_vga_get_active_render_target): Likewise.
21724 (grub_video_vga_swap_buffers): Likewise.
21725 (grub_video_vga_set_palette): Likewise.
21726 (grub_video_vga_get_info_and_fini): Likewise.
21727 (grub_vga_term): Removed.
21728 (grub_video_vga_adapter): New variable.
21729 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21730 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21731
2bf61a98
VS
217322010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21733
21734 * video/readers/jpeg.c: Indented.
21735
09ddcd11
VS
217362010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21737
21738 Various jpeg cleanups.
21739
21740 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21741 (grub_jpeg_decode_quan_table): Use sizeof.
21742 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21743
e5507505
PH
217442010-05-05 Peter Hurley <No e-mail available> (tiny change)
21745
21746 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21747 tables. Ignore non-last ac bit.
21748 (grub_jpeg_decode_quan_table): Likewise.
21749
7e720a9b
VS
217502010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21751
21752 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21753 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21754 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21755 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21756 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21757 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21758
a7fc080b
VS
217592010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21760
21761 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21762 error.
21763
2bf6012d
VS
217642010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21765
21766 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21767
265d68cd
VS
217682010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21769
21770 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21771 condition.
21772
217732010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
21774
21775 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21776 part.
21777
265d68cd 217782010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
21779
21780 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21781 pointers.
21782
265d68cd 217832010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
21784
21785 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21786
d1b61374
CF
217872010-05-01 Christian Franke <franke@computer.org>
21788
21789 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21790 Remove broken Cygwin path conversion.
21791 * util/misc.c: [__CYGWIN__] Add include and define.
21792 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21793 for Cygwin 1.7.
21794 (make_system_path_relative_to_its_root): Simplify loop, replace early
21795 return by break.
21796 [__CYGWIN__] Add conversion to win32 path.
21797 Include "/" case in trailing slash removal.
21798
3558c6e9
VS
217992010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21800
21801 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21802 Reported by: Seth Goldberg
21803
f5f3ff93
VS
218042010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21805
21806 * commands/help.c (grub_cmd_help): Fix a typo.
21807 Reported by: Seth Goldberg
21808
d8b5cd40
VS
218092010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21810
21811 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21812 name and add N_.
21813 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21814 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21815 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21816 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21817 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21818 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21819 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21820 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21821 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21822 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21823 * normal/context.c (GRUB_MOD_INIT): Likewise.
21824 * normal/main.c (GRUB_MOD_INIT): Likewise.
21825 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21826 * term/serial.c (GRUB_MOD_INIT): Likewise.
21827 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21828
88c14915
VS
218292010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21830
21831 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21832 extra == 0.
21833
165134bc
VS
218342010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21835
21836 * commands/iorw.c: New file.
21837 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21838 (iorw_mod_SOURCES): New variable.
21839 (iorw_mod_CFLAGS): Likewise.
21840 (iorw_mod_LDFLAGS): Likewise.
21841
c5ac9b32
VS
218422010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21843
21844 Hotkey support
21845
21846 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21847 * normal/main.c (hotkey_aliases): New variable.
21848 (grub_normal_add_menu_entry): Parse "--hotkey".
21849 * normal/menu_text.c (run_menu): Handle hotkeys.
21850
ce60689c
VS
218512010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21852
21853 * kern/i386/coreboot/init.c (grub_machine_init): Call
21854 grub_machine_mmap_init on qemu.
21855
0359d006
VS
218562010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21857
21858 * boot/i386/qemu/boot.S: Add a missing .code16.
21859
7819a456
VS
218602010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21861
21862 Use LBIO on coreboot.
21863
21864 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21865 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21866 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21867 New declaration.
21868 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21869 grub_machine_mmap_init on coreboot.
21870 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21871 GRUB_LINUXBIOS_MEMBER_LINK.
21872 (grub_machine_mmap_iterate): Fix declaration.
21873 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21874
7210dca9
VS
218752010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21876
21877 Split coreboot and multiboot ports.
21878
21879 * conf/i386-multiboot.rmk: New file.
21880 * configure.ac: Add multiboot port.
21881 * include/grub/i386/multiboot/boot.h: New file.
21882 * include/grub/i386/multiboot/console.h: Likewise.
21883 * include/grub/i386/multiboot/init.h: Likewise.
21884 * include/grub/i386/multiboot/kernel.h: Likewise.
21885 * include/grub/i386/multiboot/loader.h: Likewise.
21886 * include/grub/i386/multiboot/memory.h: Likewise.
21887 * include/grub/i386/multiboot/serial.h: Likewise.
21888 * include/grub/i386/multiboot/time.h: Likewise.
21889 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21890 * loader/multiboot.c: Likewise.
21891 * loader/multiboot_mbi2.c: Likewise.
21892 * util/grub-mkrescue.in: Generate multiboot rescue.
21893
6f8aaf68
VS
218942010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21895
3080f7a7
VS
21896 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21897
218982010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21899
21900 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
21901
21902 * commands/terminal.c (abstract_terminal): New struct.
21903 (handle_command): New function. Based on grub_cmd_terminal_input.
21904 (grub_cmd_terminal_input): Use handle_command.
21905 (grub_cmd_terminal_output): Use handle_command.
21906
a8ebb841
BC
219072010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21908
21909 Fix comment handling.
21910
21911 * tests/grub_script_comments.in: New testcase.
21912 * conf/tests.rmk: Rules for new testcase.
21913 * script/yylex.l: Updated flex rules.
21914
bb06ba08
ST
219152010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21916
21917 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
21918 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21919 if argc is 1.
bb06ba08 21920
cc9d2425
VS
219212010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21922
21923 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21924 autogen issues.
21925
460d8402
CF
219262010-04-26 Christian Franke <franke@computer.org>
21927
21928 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21929 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21930 (grub_get_prefix): Remove function.
21931 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21932 make_system_path_relative_to_its_root ().
21933 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21934
553c01f9
CF
219352010-04-24 Christian Franke <franke@computer.org>
21936
21937 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21938 (kernel_img_LDFLAGS): Remove -static-libgcc.
21939
2aec1692
CF
219402010-04-24 Christian Franke <franke@computer.org>
21941
21942 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21943 and CHECK_END_SYMBOL if grub-emu is built.
21944 Unset TARGET_OBJ2ELF if grub-emu is built
21945 without module support.
21946
f67dc308
JS
219472010-04-24 Jiro SEKIBA <jir@unicus.jp>
21948
21949 Nilfs2 support.
21950
21951 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21952 (grub_fstest_SOURCES): Likewise.
21953 (pkglib_MODULES): Add nilfs2.mod.
21954 (nilfs2_mod_SOURCES): New variable.
21955 (nilfs2_mod_CFLAGS): Likewise.
21956 (nilfs2_mod_LDFLAGS): Likewise.
21957 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21958 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21959 * fs/nilfs2.c: New file.
21960
4ba8d354
VS
219612010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21962
21963 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21964 is not supported.
21965
0d2c20c6
GS
219662010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21967
21968 Add grub-mkconfig support for NetBSD.
21969
21970 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21971 * util/grub-mkconfig.in: export new NetBSD specific variables.
21972 * po/POTFILES-shell: added 10_netbsd.in.
21973 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21974
bc4a2d83
BC
219752010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21976
21977 Fix emu build with grub-emu-pci and grub-emu-modules.
21978
21979 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21980 functions.
21981 * include/grub/libpciaccess.h: New file.
21982 * conf/any-emu.rmk: Update kernel headers for emu build.
21983
f48c87aa
VS
219842010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21985
21986 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21987
18959385
VS
219882010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21989
21990 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21991
0037de3f
VS
219922010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21993
21994 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21995 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21996 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21997 util/ieee1275/ofpath.c.
21998 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21999 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
22000 * include/grub/sparc64/ieee1275/boot.h
22001 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
22002 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
22003 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
22004 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
22005 const char *.
22006 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
22007 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
22008 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
22009 install.
22010
38e55e90
GS
220112010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22012
22013 * util/grub-mkconfig.in: Corrected two == equality tests.
22014 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
22015 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
22016 expect a number appended to it.
22017 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
22018 expects a number appended to it.
22019
a9e6ff28
VS
220202010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22021
22022 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
22023
0b830b8f
VS
220242010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22025
22026 * util/hostdisk.c (make_device_name): Change to new partition naming.
22027
0973daeb
VS
220282010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
22029
22030 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
22031
460d8402 220322010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
22033
22034 * Makefile.in: Add missing localedir setting.
22035
0b456309
CW
220362010-04-14 Colin Watson <cjwatson@ubuntu.com>
22037
22038 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
22039 mistake in r2156. Noticed by Anthony Fok.
22040
22041 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
22042 @localedir@.
22043 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
22044
08f46d62
BC
220452010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
22046
22047 Fix a spurious, uninitialized variable warning.
22048
22049 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
22050 Initialize variable, shdr.
22051 (grub_freebsd_load_elfmodule): Likewise.
22052 (grub_freebsd_load_elf_meta): Likewise.
22053
8c4a72d4
BC
220542010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
22055
22056 Fix for escaped dollar in double quoted strings.
22057
22058 * script/yylex.l: Updated flex rules.
22059 * conf/tests.rmk: Rule for new testcase.
22060 * tests/grub_script_dollar.in: New testcase.
22061
ce44826e
CPE
220622010-04-13 Carles Pina i Estany <carles@pina.cat>
220632010-04-13 Colin Watson <cjwatson@ubuntu.com>
22064
22065 Enclose all translated strings in grub.cfg in single quotes, and
22066 escape them appropriately (Ubuntu bug #552921).
22067
22068 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
22069 * util/grub.d/10_hurd.in: Use it.
22070 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22071 * util/grub.d/10_linux.in (linux_entry): Likewise.
22072
4b0cd8f8
VS
220732010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22074
22075 Fix cygwin compilation.
22076
22077 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
22078 * include/grub/misc.h (__register_frame_info)
22079 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
22080 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22081 * kern/misc.c (__register_frame_info)
22082 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
22083 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22084
01fcf061
VS
220852010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22086
22087 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22088
5d04b11e
VS
220892010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22090
22091 Unify libgcc processing.
22092
22093 * Makefile.in (kernel_img_LDFLAGS): New variable.
22094 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22095 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22096 overwriting.
22097 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22098 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22099 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22100 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22101 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22102 overwriting. Remove -lgcc and -static-libgcc
22103 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22104 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22105 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22106 (kernel_img_LDFLAGS): Append instead of overwriting.
22107 Remove -lgcc and -static-libgcc
22108 * conf/sparc64-ieee1275.rmk: Likewise.
22109 * include/grub/powerpc/libgcc.h: Move to ...
22110 * include/grub/libgcc.h: .. this.
22111 * include/grub/libgcc.h: Don't export most of the function on x86.
22112 (__bswapsi2): New export.
22113 (__bswapdi2): Likewise.
22114 * include/grub/mips/libgcc.h: Removed.
22115 * include/grub/sparc64/libgcc.h: Likewise.
22116
b7f3ac29
VS
221172010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22118
22119 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22120 disk_info_msg (conflicts with gettexting into languages with cases).
22121
2c7031b1
GS
221222010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22123
22124 Add grub-probe support for NetBSD.
22125
22126 * util/getroot.c (find_root_device): Convert block device to
22127 character device on NetBSD.
22128 * util/probe.c (probe): Require character device on NetBSD.
22129 * util/hostdisk.c: NetBSD specific headers.
22130 (configure_device_driver): new function to tune device driver
22131 parameters (currently only for NetBSD floppy driver).
22132 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22133 via disklabel ioctl).
22134 (open_device): call configure_device_driver on NetBSD.
22135 (convert_system_partition_to_system_disk): NetBSD specific code.
22136 (device_is_wholedisk): Likewise.
22137 (grub_util_biosdisk_get_grub_dev): Likewise.
22138 (make_device_name): Fixed a typo in bsd_part_str.
22139 * configure.ac: check for opendisk() and getrawpartition() on
22140 NetBSD and set LIBUTIL.
22141 * Makefile.in: add LIBUTIL to LIBS.
22142
f516290c
BC
221432010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22144
22145 Documentation fix.
22146
22147 * util/grub-script-check.c: Better help message.
22148
d8dcc0df
BC
221492010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22150
22151 Fix FreeBSD build.
22152
22153 * configure.ac: Flex version check.
22154 * conf/common.rmk: Add -Wno-error to sh.mod.
22155 * script/yylex.l: Remove all #pragma.
22156
6734334a
VS
221572010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22158
22159 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22160 prototype.
22161 Reported by: Seth Goldberg.
22162
daea6abd
VS
221632010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22164
22165 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22166 Rename "module" to "module2".
22167 Reported by: Seth Goldberg.
22168
f2fd9d2b
VS
221692010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22170
22171 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22172 EXPORT_FUNC.
22173 Reported by: Seth Goldberg.
22174
be124579
VS
221752010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22176
22177 * lib/posix_wrap/locale.h: Add missing file.
22178 Reported by: Seth Goldberg.
22179
ef5da797
VS
221802010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22181
22182 grub-emu module load support.
22183
22184 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22185 NO_DYNAMIC_MODULES switched to this.
22186 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22187 (CFLAGS): Likewise.
22188 * conf/any-emu.rmk: Generate symlist.
22189 (kernel_img_HEADERS): Add util/datetime.h.
22190 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22191 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22192 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22193 kern/$(target_cpu)/cache.S.
22194 * configure.ac (grub-emu-modules): New option.
22195 * genmk.rb: Handle multiple source lists.
22196 * include/grub/sdl.h: New file.
22197 * include/grub/libusb.h: Likewise.
22198 * util/grub-emu.c (main): Hanle (host) root.
22199 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22200 GRUB_ERR_UNKNOWN_DEVICE.
22201 * util/misc.c: Move mm functions to ...
22202 * util/mm.c: ... here. All users updated.
22203
47822096
VS
222042010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22205
22206 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22207 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22208 missing files.
22209 (maintainer-clean): Remove libgcrypt-grub.
22210
5d7e7445
VS
222112010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22212
22213 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22214
25f4e252
EC
222152010-04-09 EFI Coder <eficoder@hotmail.com>
22216
22217 * normal/menu_text.c (print_message): Clean up the message and show
22218 the Fn information when on EFI
22219 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22220
027de555
VS
222212010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22222
22223 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22224 All users updated.
22225 * normal/crypto.c (read_crypto_list): Likewise.
22226 * normal/dyncmd.c (read_command_list): Likewise.
22227 * normal/term.c (read_terminal_list): Likewise.
22228 * normal/main.c (read_lists): Use explicit prefix.
22229 (read_lists_hook): Use read_lists.
22230 (grub_normal_execute): Likewise.
22231
47779711
VS
222322010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22233
22234 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22235 Reported by: Thomas Schmitt.
22236 Add -no-emul-boot to grub-mkisofs parameters.
22237
1118c32e
VS
222382010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22239
22240 * font/font.c: Indented.
22241
7d652447
BC
222422010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22243
22244 Elif support to GRUB script (by Deepak Vankadaru).
22245
22246 * tests/grub_script_if.in: New testcase.
22247 * conf/tests.rmk: Rule for new testcase.
22248 * script/parser.y: Grammar rules for elif.
22249
34bb22df
BC
222502010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22251
22252 While and until loops support to GRUB script.
22253
22254 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22255 (grub_script_create_cmdwhile): New function prototype.
22256 (grub_script_execute_cmdwhile): New function prototype.
22257 * script/execute.c (grub_script_execute_cmdwhile): New function.
22258 * script/parser.y (command): New commands.
22259 (whilecmd): New grammar rule.
22260 (untilcmd): New grammar rule.
22261 * script/script.c (grub_script_create_cmdwhile): New function.
22262 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22263 function.
22264
22265 * tests/grub_script_while1.in: New testcase.
22266 * conf/tests.rmk: Rule for new testcase.
22267
e215d8e0
VS
222682010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22269
22270 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22271 as *.jpg.
22272
d7c43ba1
MV
222732010-04-09 Mario Vazquez <mariovazq@gmail.com>
22274
22275 GRUB_BACKGROUND support.
22276
22277 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22278 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22279
d64795c0
VS
222802010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22281
22282 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 22283 Idea by: Mario Vazquez
d64795c0
VS
22284
22285 * util/grub.d/00_header.in: Load pf2 and image modules.
22286
f267f83a
VS
222872010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22288
22289 grub-mkconfig multiple terminal support.
22290
22291 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22292 * util/grub.d/00_header.in: Likewise.
22293
b7841ceb
VS
222942010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22295
22296 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22297 we use cd $(srcdir).
22298
df60998c
CW
222992010-04-08 Colin Watson <cjwatson@ubuntu.com>
22300
22301 * util/grub.d/10_linux.in: Only use the first word of
22302 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22303 spaces in GRUB_DISTRIBUTOR.
22304 * util/grub.d/10_kfreebsd.in: Likewise.
22305 * util/grub.d/10_hurd.in: Likewise.
22306
fa09c82e
BC
223072010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22308
14e18ae3 22309 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
22310
22311 * tests/util/grub-shell.in: Remove -serial stdio option.
22312
daf892b3
BC
223132010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22314
22315 POSIX header file wrappers.
22316
22317 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22318 equivalents.
22319 * lib/posix_wrap/ctype.h: Likewise.
22320 * lib/posix_wrap/errno.h: Likewise.
22321 * lib/posix_wrap/langinfo.h: Likewise.
22322 * lib/posix_wrap/limits.h: Likewise.
22323 * lib/posix_wrap/localcharset.h: Likewise.
22324 * lib/posix_wrap/stdint.h: Likewise.
22325 * lib/posix_wrap/stdio.h: Likewise.
22326 * lib/posix_wrap/stdlib.h: Likewise.
22327 * lib/posix_wrap/string.h: Likewise.
22328 * lib/posix_wrap/sys/types.h: Likewise.
22329 * lib/posix_wrap/unistd.h: Likewise.
22330 * lib/posix_wrap/wchar.h: Likewise.
22331 * lib/posix_wrap/wctype.h: Likewise.
22332 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22333 (grub_script.yy.h): Likewise.
22334 * script/yylex.l: Remove POSIX emulation #defines.
22335 * Makefile.in (POSIX_CFLAGS): New variable.
22336 (GNULIB_UTIL_CFLAGS): Likewise.
22337
22338 Regexp support.
22339
22340 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22341 (regexp_mod_SOURCES): New variable.
22342 (regexp_mod_CFLAGS): Likewise.
22343 (regexp_mod_LDFLAGS): Likewise.
22344 * commands/regexp.c: New file.
22345 * gnulib/regcomp.c: New file. Imported from gnulib.
22346 * gnulib/regex.c: Likewise.
22347 * gnulib/regex_internal.c: Likewise.
22348 * gnulib/regex_internal.h: Likewise.
22349 * gnulib/regexec.c: Likewise.
22350 * gnulib/regex.h: Likewise.
22351
974ac4f7
VS
223522010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22353
22354 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22355 unsupported video mode types.
22356
2622c3ff
VS
223572010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22358
22359 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22360
064cb524
VS
223612010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22362
22363 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22364 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22365
a8c3b552
VS
223662010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22367
22368 Remove unused grub_vga_get_font.
22369
22370 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22371 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22372
187bbe3d
GS
223732010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22374
22375 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22376 * include/grub/misc.h: Likewise.
22377
b9396631
GS
223782010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22379
22380 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22381 for which failure is fatal.
22382
50479feb
GS
223832010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22384
22385 * util/grub-install.in: Use mkdir -p to create grub directory.
22386 * util/i386/efi/grub-install.in: Likewise.
22387 * util/ieee1275/grub-install.in: Likewise.
22388
b1654fdf
GS
223892010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22390
22391 * Makefile.in (LEX): new variable.
22392
bd5a6415
GS
223932010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22394
22395 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22396 `=' and added double quotes on operands of this equality test.
22397
3db3a82b
VS
223982010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22399
22400 * Makefile.in (uninstall): Remove a leftover debug echo.
22401 Reported by: Grégoire Sutre
22402
38023412
VS
224032010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22404
22405 MIPS multiboot2 support.
22406
22407 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22408 (multiboot2_mod_SOURCES): New variable.
22409 (multiboot2_mod_CFLAGS): Likewise.
22410 (multiboot2_mod_LDFLAGS): Likewise.
22411 (multiboot2_mod_ASFLAGS): Likewise.
22412 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22413 definition.
22414 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22415 (MULTIBOOT_MBI_REGISTER): Likewise.
22416 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22417 (MULTIBOOT_ELF32_MACHINE): Likewise.
22418 (MULTIBOOT_ELF64_MACHINE): Likewise.
22419 * include/grub/mips/multiboot.h: New file.
22420 * include/grub/video.h (grub_video_driver_id): New type
22421 GRUB_VIDEO_DRIVER_SM712.
22422 (grub_video_get_info_and_fini): Export.
22423 (grub_video_get_palette): Likewise.
22424 (grub_video_get_driver_id): Likewise.
22425 * include/multiboot2.h: Resynced with spec.
22426 * loader/i386/multiboot.c: Moved from here ...
22427 * loader/multiboot.c: ... here. All users updated.
22428 (grub_multiboot_boot): Use platform-specific macros.
22429 * loader/i386/multiboot_elfxx.c: Moved from here ...
22430 * loader/multiboot_elfxx.c: ... here. All users updated.
22431 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22432 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22433 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22434
47674667
VS
224352010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22436
22437 Import gnulib argp module.
22438
22439 * gnulib/argp-ba.c: New file.
22440 * gnulib/argp-eexst.c: Likewise.
22441 * gnulib/argp-fmtstream.c: Likewise.
22442 * gnulib/argp-fmtstream.h: Likewise.
22443 * gnulib/argp-fs-xinl.c: Likewise.
22444 * gnulib/argp-help.c: Likewise.
22445 * gnulib/argp-namefrob.h: Likewise.
22446 * gnulib/argp-parse.c: Likewise.
22447 * gnulib/argp-pin.c: Likewise.
22448 * gnulib/argp-pv.c: Likewise.
22449 * gnulib/argp-pvh.c: Likewise.
22450 * gnulib/argp-version-etc.c: Likewise.
22451 * gnulib/argp-version-etc.h: Likewise.
22452 * gnulib/argp-xinl.c: Likewise.
22453 * gnulib/argp.h: Likewise.
22454
495442ed
VS
224552010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22456
22457 * kern/device.c (grub_device_iterate): Clear errors after failed
22458 opening device.
22459
f9fd65df
VS
224602010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22461
22462 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22463 returned by firmware.
22464
af09641e
VS
224652010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22466
22467 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22468 compilation on coreboot and qemu
22469
016883a5
VS
224702010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22471
22472 * include/multiboot2.h: Resync with spec.
22473
f97e1f7d
VS
224742010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22475
22476 Multiboot2 tag support
22477
22478 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22479 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22480 Remove loader/multiboot_loader.c.
22481 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22482 (grub_multiboot2_real_boot): Likewise.
22483 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22484 (grub_get_multiboot_mmap_count): New proto.
22485 (grub_fill_multiboot_mmap): Likewise.
22486 (grub_multiboot_set_video_mode): Likewise.
22487 (grub_multiboot_set_console): Likewise.
22488 (grub_multiboot_load): Likewise.
22489 (grub_multiboot_load_elf): Likewise.
22490 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22491 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22492 * include/multiboot.h: Resynced with specification.
22493 * include/multiboot2.h: Resynced with specification.
22494 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22495 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22496 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22497 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22498 users updated.
22499 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22500 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22501 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22502 Removed.
22503 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22504 Moved from here...
22505 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22506 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22507 Moved from here...
22508 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22509 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22510 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22511 All users updated.
22512 * loader/i386/multiboot_mbi2.c: New file.
22513
3506b90b
VS
225142010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22515
22516 Resync with gnulib.
22517
22518 * Makefile.in (GNULIB_CFLAGS): New variable.
22519 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22520 (grub_script_check_CFLAGS): New variable.
22521 * gnulib/alloca.h: Resync with gnulib.
22522 * gnulib/error.c: Likewise.
22523 * gnulib/error.h: Likewise.
22524 * gnulib/fnmatch.c: Likewise.
22525 * gnulib/fnmatch_loop.c: Likewise.
22526 * gnulib/getdelim.c: Likewise.
22527 * gnulib/getline.c: Likewise.
22528 * gnulib/getopt.c: Likewise.
22529 * gnulib/getopt1.c: Likewise.
22530 * gnulib/getopt_int.h: Likewise.
22531 * gnulib/gettext.h: Likewise.
22532 * gnulib/progname.c: Likewise.
22533 * gnulib/progname.h: Likewise.
22534
394a3120
GS
225352010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22536
22537 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22538 which is the case with --disabled-nls.
22539
22540 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22541 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22542 * util/misc.c: Likewise.
22543 * util/mkisofs/mkisofs.c: Likewise.
22544 * util/mkisofs/mkisofs.h: Likewise.
22545
969d1c78
VS
225462010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22547
22548 Simplify Apple CC support.
22549
22550 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22551 Add 0 byte at the end not to have a symbol with empty target.
22552 * mmap/i386/pc/mmap_helper.S: Likewise.
22553 * genmk.rb: Ignore errors 2030 and 2050.
22554 * kern/i386/pc/startup.S: Use LOCAL when possible.
22555
8d2977bb
BC
225562010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22557
22558 Testcase and the fix for final semicolon on cmdline.
22559
22560 * tests/grub_script_final_semicolon.in: New testcase.
22561 * conf/tests.rmk: Rules for the new testcase.
22562 * script/parser.y: Grammar fix.
22563
a7bd6915
BC
225642010-03-26 BVK Chaitanya <bvk@localhost>
22565
22566 Blank lines testcase for GRUB script.
22567
22568 * tests/grub_script_blanklines.in: New testcase.
22569 * conf/tests.rmk: Rules for the new testcase.
22570
e4ff6628
VS
225712010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22572
22573 Don't use __FILE__.
22574
22575 * genmk.rb: Add -DGRUB_FILE to all C targets.
22576 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22577 * include/grub/list.h: Likewise.
22578 * include/grub/misc.h: Likewise.
22579 * include/grub/mm.h: Likewise.
22580 * include/grub/test.h: Likewise.
22581 * kern/mm.c: Likewise.
22582 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22583
6a5cf6b6
VS
225842010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22585
22586 Sunpc partitions support.
22587
22588 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22589 (grub_fstest_SOURCES): Likewise.
22590 (pkglib_MODULES): Add part_sunpc.mod.
22591 (part_sunpc_mod_SOURCES): New variable.
22592 (part_sunpc_mod_CFLAGS): Likewise.
22593 (part_sunpc_mod_LDFLAGS): Likewise.
22594 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22595 * partmap/sunpc.c: New file.
22596
746d9045
BC
225972010-03-26 BVK Chaitanya <bvk@localhost>
22598
22599 For loop support to GRUB script.
22600
22601 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22602 (grub_script_create_cmdfor): New function prototype.
22603 (grub_script_execute_cmdfor): New function prototype.
22604 * script/execute.c (grub_script_execute_cmdfor): New function.
22605 * script/parser.y (command): New for command.
22606 (forcmd): New grammar rule.
22607 * script/script.c (grub_script_create_cmdfor): New function.
22608 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22609 function.
22610 * tests/grub_script_for1.in: New testcase.
22611 * conf/tests.rmk: Rules for new testcase.
22612
18486b18
VS
226132010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22614
22615 Nested partitions
22616
22617 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22618 'partition' is NULL, grub_partition_get_start already does that.
22619 * commands/loadenv.c (check_blocklists): Likewise.
22620 (write_blocklists): Likewise.
22621 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22622 (grub_fstest_SOURCES): Likewise.
22623 (pkglib_MODULES): Add part_bsd.mod.
22624 (part_bsd_mod_SOURCES): New variable.
22625 (part_bsd_mod_CFLAGS): Likewise.
22626 (part_bsd_mod_LDFLAGS): Likewise.
22627 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22628 (grub_emu_SOURCES): Likewise.
22629 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22630 * include/grub/bsdlabel.h: New file.
22631 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22632 'get_name'.
22633 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22634 (grub_partition_map_list): New variable.
22635 (grub_partition_map_register): Inline.
22636 (grub_partition_map_unregister): Likewise.
22637 (FOR_PARTITION_MAPS): New macro.
22638 (grub_partition_map_iterate): Removed.
22639 (grub_partition_get_start): Handle nested partitions.
22640 * include/grub/msdos_partition.h: Remove bsd-related entries.
22641 (grub_pc_partition): Remove.
22642 * kern/disk.c (grub_disk_close): Free partition data.
22643 (grub_disk_adjust_range): Handle nested partitions.
22644 * kern/partition.c (grub_partition_map_probe): New function.
22645 (grub_partition_probe): Parse name to number, handle subpartitions.
22646 (get_partmap): New function.
22647 (grub_partition_iterate): Handle subpartitions.
22648 (grub_partition_get_name): Likewise.
22649 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22650 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22651 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22652 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22653 Set 'number'.
22654 (acorn_partition_map_probe): Remove.
22655 (acorn_partition_map_get_name): Likewise.
22656 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22657 Set 'number'.
22658 Set 'index' to 0 since there can be only one partition entry per sector.
22659 (amiga_partition_map_probe): Remove.
22660 (amiga_partition_map_get_name): Likewise.
22661 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22662 Set 'number'.
22663 Set 'offset' and 'index' to real positions of partitions.
22664 (apple_partition_map_probe): Remove.
22665 (apple_partition_map_get_name): Likewise.
22666 * partmap/bsdlabel.c: New file.
22667 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22668 Set 'number'.
22669 Allocate 'data' so it can be correctly freed.
22670 Set 'index' to offset inside sector.
22671 (gpt_partition_map_probe): Remove.
22672 (gpt_partition_map_get_name): Likewise.
22673 * partmap/msdos.c (grub_partition_parse): Remove.
22674 (pc_partition_map_iterate): Don't force raw access.
22675 Set 'number'.
22676 Make 'ext_offset' a local variable.
22677 (pc_partition_map_probe): Remove.
22678 (pc_partition_map_get_name): Remove.
22679 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22680 Set 'number'.
22681 (sun_partition_map_probe): Remove.
22682 (sun_partition_map_get_name): Likewise.
22683 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22684 (grub_pcpart_type): Likewise.
22685 * util/hostdisk.c (open_device): Handle new numbering scheme.
22686 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22687 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22688 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22689 * util/grub-install.in: Insert all subpartition modules.
22690 * util/ieee1275/grub-install.in: Likewise.
22691
a3940f88
AG
226922010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22693
22694 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22695 grammar.
22696
21b99926 226972010-03-24 Colin Watson <cjwatson@ubuntu.com>
22698
22699 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22700
bed1d352
CW
227012010-03-21 Colin Watson <cjwatson@ubuntu.com>
22702
22703 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22704 match where 'make install' puts them.
22705 * util/i386/efi/grub-install.in: Likewise.
22706
c9f58427
CW
227072010-03-19 Colin Watson <cjwatson@ubuntu.com>
22708
22709 * .bzrignore: Add gentrigtables, grub-script-check,
22710 grub_script_check_init.c, grub_script_check_init.h, and
22711 trigtables.c.
22712
f84afb27
VS
227132010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22714
22715 * kern/parser.c: Indented.
22716
ed0e3d30
VS
227172010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22718
22719 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22720
0ea81d98
VS
227212010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22722
22723 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22724 alpha_mask_size == 0 case.
22725
0cdc2a09
BC
227262010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22727
22728 GRUB shell lexer and parser improvements.
22729
22730 * conf/any-emu.rmk: Build rule updates.
22731 * conf/common.rmk: Likewise.
22732 * conf/i386-coreboot.rmk: Likewise.
22733 * conf/i386-efi.rmk: Likewise.
22734 * conf/i386-ieee1275.rmk: Likewise.
22735 * conf/i386-pc.rmk: Likewise.
22736 * conf/powerpc-ieee1275.rmk: Likewise.
22737 * conf/x86_64-efi.rmk: Likewise.
22738
22739 * configure.ac: Configure check for flex.
22740
22741 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22742 types.
22743 (grub_lexer_param): Struct member updates.
22744 (grub_parser_param): Likewise.
22745 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22746 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22747 (grub_script_lexer_init): Prototype update.
22748 (grub_script_lexer_record_start): Likewise.
22749 (grub_script_lexer_record_stop): Likewise.
22750 (grub_script_lexer_yywrap): New function prototype.
22751 (grub_script_lexer_fini): Likewise.
22752 (grub_script_execute_argument_to_string): Removed by...
22753 (grub_script_execute_argument_to_argv): ...better version.
22754
22755 * script/execute.c (ROUND_UPTO): New macro.
22756 (grub_script_execute_cmdline): Out of memory fixes.
22757 (grub_script_execute_menuentry): Likewise.
22758 (grub_script_execute_argument_to_string): Removed. Update all
22759 users by...
22760 (grub_script_execute_argument_to_argv): ...better version.
22761 * script/function.c (grub_script_function_create): Use
22762 grub_script_execute_argument_to_argv instead of
22763 grub_script_execute_argument_to_string.
22764
22765 * script/lexer.c (check_varstate): Removed.
22766 (check_textstate): Removed.
22767 (grub_script_lexer_record_start): Likewise.
22768 (grub_script_lexer_record_stop): Likewise.
22769 (recordchar): Replaced with...
22770 (grub_script_lexer_record): ...new function.
22771 (nextchar): Removed.
22772 (grub_script_lexer_init): Rewritten.
22773 (grub_script_yylex): Rewritten.
22774 (append_newline): New function.
22775 (grub_script_lexer_yywrap): New function.
22776 (grub_script_lexer_fini): New function.
22777 (grub_script_yyerror): Sets error flag.
22778
22779 * script/yylex.l: New file.
22780 (grub_lexer_yyfree): Wrapper for flex yyffre.
22781 (grub_lexer_yyalloc): Likewise.
22782 (grub_lexer_yyrealloc): Likewise.
22783 * script/parser.y: Refactored.
22784
22785 * script/script.c (grub_script_arg_add): Out of memory fixes.
22786 (grub_script_add_arglist): Likewise.
22787 (grub_script_create_cmdline): Likewise.
22788 (grub_script_create_cmdmenu): Likewise.
22789 (grub_script_add_cmd): Likewise.
22790 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22791 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22792 unnecessary code.
22793
22794 * tests/grub_script_echo1.in: New testcase.
22795 * tests/grub_script_vars1.in: New testcase.
22796 * tests/grub_script_echo_keywords.in: New testcase.
22797
1d63a066
VS
227982010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22799
22800 Remove some redundancy in build system.
22801
22802 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22803 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22804 (TARGET_LDFLAGS): Add -nostdlib.
22805 (TARGET_IMG_LDFLAGS): Likewise.
22806 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22807 anything since mmap isn't available.
22808 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22809 Add util/time.c.
22810 (pkglib_MODULES): Remove reboot.mod.
22811 (reboot_mod_SOURCES): Removed.
22812 (reboot_mod_CFLAGS): Likewise.
22813 (reboot_mod_LDFLAGS): Likewise.
22814 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22815 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22816 (DEFSYMFILES): Add kernel_syms.lst.
22817 (kernel_img_HEADERS): Add common headers.
22818 (symlist.c): New target.
22819 (kernel_syms.lst): Likewise.
22820 (pkglib_MODULES): Add memdisk.mod.
22821 (memdisk_mod_SOURCES): New variable.
22822 (memdisk_mod_CFLAGS): Likewise.
22823 (memdisk_mod_LDFLAGS): Likewise.
22824 (pkglib_MODULES): Add reboot.mod.
22825 (reboot_mod_SOURCES): New variable.
22826 (reboot_mod_CFLAGS): Likewise.
22827 (reboot_mod_LDFLAGS): Likewise.
22828 (pkglib_MODULES): Add date.mod.
22829 (date_mod_SOURCES): New variable.
22830 (date_mod_CFLAGS): Likewise.
22831 (date_mod_LDFLAGS): Likewise.
22832 (pkglib_MODULES): Add datehook.mod.
22833 (datehook_mod_SOURCES): New variable.
22834 (datehook_mod_CFLAGS): Likewise.
22835 (datehook_mod_LDFLAGS): Likewise.
22836 (pkglib_MODULES): Add lsmmap.mod.
22837 (lsmmap_mod_SOURCES): New variable.
22838 (lsmmap_mod_CFLAGS): Likewise.
22839 (lsmmap_mod_LDFLAGS): Likewise.
22840 (pkglib_MODULES): Add boot.mod.
22841 (boot_mod_SOURCES): New variable.
22842 (boot_mod_CFLAGS): Likewise.
22843 (boot_mod_LDFLAGS): Likewise.
22844 * conf/i386-coreboot.rmk: Removed redundant parts.
22845 * conf/i386-ieee1275.rmk: Likewise.
22846 * conf/i386-pc.rmk: Likewise.
22847 * conf/mips-yeeloong.rmk: Likewise.
22848 * conf/mips.rmk: Likewise.
22849 * conf/powerpc-ieee1275.rmk: Likewise.
22850 * conf/sparc64-ieee1275.rmk: Likewise.
22851 * conf/x86_64-efi.rmk: Likewise.
22852 * conf/i386-coreboot.rmk: Moved qemu parts ..
22853 * conf/i386-qemu.rmk: ... here
22854 * conf/i386-efi.rmk: Moved common parts to...
22855 * conf/x86-efi.rmk: ... here.
22856 * conf/i386.rmk: Added modules common to all x86 variants.
22857 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22858 * disk/memdisk.c: Remove grub/machine/kernel.h.
22859 * gensymlist.sh.in: Include symbol.h.
22860 * hook/datehook.c: Correct module name.
22861 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22862 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22863 * include/grub/i386/efi/serial.h: New file.
22864 * include/grub/x86_64/efi/serial.h: Likewise.
22865 * util/time.c: Likewise.
22866 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22867
463ac55f
CK
228682010-03-14 Colin King <colin.king@ubuntu.com>
228692010-03-14 Colin Watson <cjwatson@ubuntu.com>
22870
22871 Shrink the pre-partition-table part of boot.img by eight bytes.
22872
22873 * boot/i386/pc/boot.S (ERR): New macro.
22874 (chs_mode): Use ERR.
22875 (geometry_error): Likewise.
22876 (hd_probe_error): Remove. This is only used once, so we wrwite
22877 it inline instead.
22878 (read_error): Instead of printing read_error_string, just set up
22879 %si and fall through to ...
22880 (error_message): ... this new function, also used by ERR.
22881
08e46ede
CW
228822010-03-14 Colin Watson <cjwatson@ubuntu.com>
22883
22884 Speed up consecutive hostdisk operations on the same device.
22885
22886 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22887 (grub_util_biosdisk_open): Initialise disk->data.
22888 (struct linux_partition_cache): New structure.
22889 (linux_find_partition): Cache partition start positions; these are
22890 expensive to compute on every read and write.
22891 (open_device): Cache open file descriptor in disk->data, so that we
22892 don't have to reopen it and flush the buffer cache for consecutive
22893 operations on the same device.
22894 (grub_util_biosdisk_close): New function.
22895 (grub_util_biosdisk_dev): Set `close' member.
22896
22897 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22898 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22899 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22900 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22901 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22902
4a6d2d06
VS
229032010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22904
22905 Compile parts of grub-emu as modules.
22906
22907 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22908 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22909 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22910 (all-local): Add $(GRUB_EMU).
22911 (install-local): Install $(GRUB_EMU).
22912 (uninstall): Uninstall $(GRUB_EMU).
22913 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22914 * kern/dl.c: Likewise.
22915 * commands/sleep.c: Not include machine/time.h.
22916 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22917 (COMMON_CFLAGS): Likewise.
22918 (sbin_UTILITIES): Remove grub-emu.
22919 (grub_emu_SOURCES): Removed.
22920 (kernel_img_RELOCATABLE): New variable.
22921 (pkglib_PROGRAMS): Add kernel.img.
22922 (kernel_img_SOURCES): New variable
22923 (kernel_img_CFLAGS): Likewise.
22924 (kernel_img_LDFLAGS): Likewise.
22925 (TARGET_NO_STRIP): Likewise.
22926 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22927 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22928 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22929 (grub-emu): New target.
22930 (GRUB_EMU): New variable.
22931 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22932 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22933 * loader/xnu.c: Likewise.
22934 * include/grub/pci.h: Likewise.
22935 * genemuinit.sh: New file.
22936 * genemuinitheader.sh: Likewise.
22937 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22938 Support TARGET_NO_DYNAMIC_MODULES.
22939 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22940 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22941 * disk/loopback.c: Likewise.
22942 * font/font_cmd.c: Likewise.
22943 * partmap/acorn.c: Likewise.
22944 * partmap/amiga.c: Likewise.
22945 * partmap/apple.c: Likewise.
22946 * partmap/gpt.c: Likewise.
22947 * partmap/msdos.c: Likewise.
22948 * partmap/sun.c: Likewise.
22949 * parttool/msdospart.c: Likewise.
22950 * term/gfxterm.c: Likewise.
22951 * video/bitmap.c: Likewise.
22952 * video/readers/jpeg.c: Likewise.
22953 * video/readers/png.c: Likewise.
22954 * video/readers/tga.c: Likewise.
22955 * video/video.c: Likewise.
22956 * util/grub-emu.c (read_command_list): Removed.
22957 (main): Don't call util_init_nls.
22958 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22959 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22960
91fdd2ed
VS
229612010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22962
22963 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22964 date.mod, datehook.mod.
22965 (datetime_mod_SOURCES): New variable.
22966 (datetime_mod_CFLAGS): Likewise.
22967 (datetime_mod_LDFLAGS): Likewise.
22968 (date_mod_SOURCES): Likewise.
22969 (date_mod_CFLAGS): Likewise.
22970 (date_mod_LDFLAGS): Likewise.
22971 (datehook_mod_SOURCES): Likewise.
22972 (datehook_mod_CFLAGS): Likewise.
22973 (datehook_mod_LDFLAGS): Likewise.
22974 * conf/sparc64-ieee1275.rmk: Likewise.
22975 * lib/ieee1275/datetime.c: New file.
22976
873ccae6
VS
229772010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22978
22979 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22980 (ieee1275_fb_mod_SOURCES): New variable.
22981 (ieee1275_fb_mod_CFLAGS): Likewise.
22982 (ieee1275_fb_mod_LDFLAGS): Likewise.
22983 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22984 New proto.
22985 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22986 (HEAP_MAX_ADDR): Likewise.
22987 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22988 type.
22989 Correct stop condition.
22990 (grub_ieee1275_devices_iterate): New function.
22991 * video/ieee1275.c: New file.
22992
601c97c0
VS
229932010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22994
22995 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22996
22997 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22998 as scratch.
22999 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
23000 SCRATCH_PAD_DISKBOOT as scratch.
23001 (bootit): Pass Openfirmware pointer in %o4.
23002 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
23003 of 0x200000.
23004 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
23005 with util/grub-mkrawimage.c.
23006 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
23007 * include/grub/aout.h (AOUT_MID_SUN): New definition.
23008 (grub_aout_get_type) [GRUB_UTIL]: Removed.
23009 (grub_aout_load) [GRUB_UTIL]: Likewise.
23010 * include/grub/kernel.h (grub_modules_get_end): New proto.
23011 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
23012 (SCRATCH_PAD_BOOT): New definition.
23013 (SCRATCH_PAD_DISKBOOT): Likewise.
23014 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
23015 * include/grub/sparc64/ieee1275/ieee1275.h
23016 (grub_ieee1275_original_stack): New variable
23017 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23018 New definition
23019 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
23020 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
23021 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
23022 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
23023 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
23024 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
23025 (grub_platform_image_format_t): New type.
23026 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
23027 * kern/main.c (grub_modules_get_end)
23028 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
23029 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
23030 (codestart): Switch stacks.
23031 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
23032 variable.
23033 (grub_heap_init): Use grub_modules_get_end.
23034 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
23035 stack.
23036 * util/grub-mkrawimage.c (generate_image): Support sparc64.
23037 (main): Likewise.
23038 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
23039
d68b491e
TG
230402010-03-14 Thorsten Glaser <tg@mirbsd.org>
23041
23042 * util/grub-mkrescue.in: Base ISO UUID on UTC.
23043
4e02ed50
MK
230442010-03-08 Matt Kraai <kraai@ftbfs.org>
23045
23046 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
23047 bug #559005).
23048
1f15fc1e
VS
230492010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
23050
23051 * genmoddep.awk: Output all missing symbols and not only first.
23052
fce5d8ff
VS
230532010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23054
23055 * NEWS: Put the date of 1.98 release.
23056
d1e8a02f
VS
230572010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23058
23059 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
23060 ft2build.h.
23061
696fd607
VS
230622010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23063
23064 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
23065 completition in the middle of string.
23066
33e2e6f3
VS
230672010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23068
23069 * util/grub-mkrescue.in: Use mktemp with explicit template.
23070
b1f6d291
VS
230712010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23072
23073 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
23074
2ac227c7
VS
230752010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23076
23077 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
23078 right pointer.
23079
8f9a632b
VS
230802010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23081
23082 Fix FreeBSD compilation.
23083
23084 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
23085 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
23086
60b03859
VS
230872010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23088
23089 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23090
48a5a769
VS
230912010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23092
23093 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23094
3ab4bd77
VS
230952010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23096
23097 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23098
d116e0d8
RM
230992010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23100
23101 Support relative image path in theme file.
23102
23103 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23104 (image_set_property): Handle theme_dir and relative path.
23105
c7ef54aa
VS
231062010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23107
23108 * configure.ac: Alias amd64 to x86_64.
23109
fcee14ed
VS
231102010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23111
23112 * NEWS: mention multiboot on EFI.
23113
d0780363
VS
231142010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23115
23116 * kern/main.c (grub_load_modules): Handle errors from init functions of
23117 embeded modules.
23118
41168ea4
VS
231192010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23120
23121 * normal/autofs.c (autoload_fs_module): Handle errors.
23122
b54d93ac
VS
231232010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23124
23125 Disable linux.mod on qemu-mips since it's not functional and leads
23126 to compilation failure.
23127
23128 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23129 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23130 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23131 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23132 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23133 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23134 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23135 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23136 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23137 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23138 Reported by: BVK Chaitanya
23139
fc8345da
JU
231402010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23141
23142 * INSTALL: Add gettext as a dependency and add qemu to a new section
23143 "Prerequisites for make-check".
23144
4760f979
CF
231452010-03-04 Christian Franke <franke@computer.org>
23146
23147 * util/grub-pe2elf.c: Add missing include "progname.h".
23148
f209b5b2
VS
231492010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23150
23151 * normal/crypto.c (read_crypto_list): Fix a typo.
23152 Reported by: Seth Goldberg.
23153
b4b7be98
VS
231542010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23155
23156 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 23157 Reported by: Seth Goldberg.
b4b7be98 23158
c0ee0385
VS
231592010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23160
23161 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23162 ascii.bitmaps.
23163
a8efbf64
VS
231642010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23165
23166 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 23167 Reported by: Seth Goldberg.
a8efbf64 23168
08dcd913
VS
231692010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23170
23171 * util/i386/efi/grub-install.in: Copy gettext files.
23172
c4d0b332
VS
231732010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23174
23175 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23176
c6f2fe52
VS
231772010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23178
23179 Wait for user entry basing on presence of output rather than on errors.
23180
23181 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23182 (grub_install_newline_hook): Likewise.
23183 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23184 * normal/menu.c (show_menu): Check line_counter to determine presence
23185 of output.
23186 * normal/term.c (grub_normal_line_counter): New variable.
23187 (grub_normal_get_line_counter): New function.
23188 (grub_install_newline_hook): Likewise.
23189
5382b1e4
VS
231902010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23191
23192 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23193
5519963b
VS
231942010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23195
23196 * configure.ac: Update version to 1.98.
23197
72b28631
VS
231982010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23199
23200 * util/grub.d/10_linux.in (linux_entry): Don't default to
23201 gfxpayload=keep if Linux doesn't support video handover.
23202
c140a180
VS
232032010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23204
23205 Don't compile video modules on yeeloong since video subsystem is part
23206 of kernel.
23207
23208 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23209 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23210 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23211 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23212 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23213 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23214 * include/grub/bitmap_scale.h: Likewise.
23215 * include/grub/bufio.h: Likewise.
23216 * include/grub/font.h: Likewise.
23217 * include/grub/gfxterm.h: Likewise.
23218 * include/grub/video.h: Likewise.
23219 * include/grub/vbe.h: Don't include video_fb.h.
23220 * video/i386/pc/vbe.c: Include video_fb.h.
23221 * commands/i386/pc/vbetest.c: Include video.h.
23222
a0ca21c2
CW
232232010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23224
23225 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23226 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23227 default entry if GRUB_SAVEDEFAULT=true. This allows using
23228 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23229 saving a new default on every boot.
23230
4a8a763c
VS
232312010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23232
23233 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23234 * normal/term.c (read_terminal_list): Likewise.
23235 * normal/main.c (grub_normal_init_page): Likewise.
23236 (grub_normal_read_line_real): Likewise.
23237
607ffde2
VS
232382010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23239
23240 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23241 memory leak.
23242 Reported by: Seth Goldberg.
23243
2b8fa975
CW
232442010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23245
23246 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23247 duplicate declaration of `start'.
23248
618307dd
VS
232492010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23250
23251 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23252 filename.
23253 Reported by: Georgy Buranov
23254
7dd05b96 232552010-02-20 Carles Pina i Estany <carles@pina.cat>
23256
23257 * util/grub-mkrawimage.c (usage): Change string formatting to
23258 improve gettext.
23259
d1484a42
MRA
232602010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23261
23262 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23263 backspace keys.
23264
42b1d186
VS
232652010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23266
23267 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23268 Reported by: Michael Suchanek.
23269
232702010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
23271
23272 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23273 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23274
d9f31a41
VS
232752010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23276
23277 Remove any reference to non-free fonts.
23278
23279 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23280 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23281 uses non-free components.
23282 * font/font.c (grub_font_get_name): Remove example name.
23283 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23284 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23285 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23286 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23287
2793c71e
GB
232882010-02-16 Georgy Buranov <gburanov@gmail.com>
23289
23290 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23291
402e3779
VS
232922010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23293
23294 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23295 Double divisor.
23296 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23297 features.
23298 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23299
0dd1e0dd
VS
233002010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23301
23302 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23303
6fa7cfce
ST
233042010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23305
23306 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23307 * docs/grub.texi (Command-line and menu entry commands): Document play
23308 command.
23309
37c8483b
ST
233102010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23311
23312 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23313 parse arguments as inline tempo and notes. Move code for playing notes
23314 to...
23315 (play): ... new function.
23316
14da0fb7
ST
233172010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23318
23319 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23320 grub_uint16_t instead of short.
23321 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23322 disk from little endian to cpu endianness.
23323
04459e70
ST
233242010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23325
23326 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23327 GRUB_TICKS_PER_SECOND instead of 120.
23328
a0876943
VS
233292010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23330
23331 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23332 escape sequence after \e.
23333
e29f95dc
VS
233342010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23335
23336 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23337 non-ASCII characters.
23338
d27859b2
VS
233392010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23340
23341 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23342 set root in single quotes to prevent \, from being unescaped.
23343
bc028f2f
VS
233442010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23345
23346 Prevent unknown commands from stopping menuentry execution.
23347
23348 * script/execute.c (grub_script_execute_cmdline): Print error after
23349 unknown command.
23350
095f5f82
VS
233512010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23352
23353 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23354 Reported by: Pavel Pisa.
23355
8c717950
VS
233562010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23357
23358 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23359
904935c3
VS
233602010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23361
23362 Merge grub_ieee1275_map_physical into grub_map and rename to
23363 grub_ieee1275_map
23364
23365 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23366 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23367 Remove.
23368 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23369 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23370 necessary.
23371 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23372
5b59a4e3
VS
233732010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23374
23375 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23376 opening and not after.
23377
69e137e8
VS
233782010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23379
23380 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23381 constants.
23382
2c0fcc36
VS
233832010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23384
23385 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23386 (alloc_phys): Use ALIGN_UP instead of align_addr.
23387
8c6052ce
VS
233882010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23389
23390 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23391
17cec782
VS
233922010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23393
23394 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23395
e0128bbd
VS
233962010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23397
23398 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23399 verbose dprintf.
23400
ca62070b
VS
234012010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23402
23403 Fix over-4GiB seek on sparc64.
23404
23405 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23406 Replace pos_i and pos_lo with pos. All users updated.
23407 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23408 New constant.
23409 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23410 Likewise.
23411 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23412 and pos_lo.
23413
bdca2607
VS
234142010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23415
23416 * util/grub-mkrawimage.c (main): Call set_program_name.
23417
da278c4d
VS
234182010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23419
23420 Properly align 64-bit targets.
23421
23422 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23423 (generate_image): Use ALIGN_ADDR.
23424
b274d734
VS
234252010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23426
23427 Properly create cross-endian images.
23428
23429 * include/grub/types.h (grub_host_to_target_addr): New macro
23430 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23431
82da2062
VS
234322010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23433
23434 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23435
7cae4377
VS
234362010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23437
23438 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23439
23440 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23441 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23442 (grub_linux_boot): Divide by 64K when on VESA.
23443
65a533e7
VS
234442010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23445
23446 Support GRUB_GFXPAYLOAD_LINUX.
23447
23448 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23449 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23450
dd01d397
VS
234512010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23452
23453 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23454 to show messages instead of discarding them.
23455 Process errors after executing command and not before. Keep old method
23456 too as precaution.
23457
660960d6
VS
234582010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23459
23460 * configure.ac: Check for ft2build.h.
23461
62509f04
VS
234622010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23463
23464 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23465
473df63d
VS
234662010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23467
23468 * genkernsyms.sh.in: Use TARGET_CC.
23469
c98d2a13
CW
234702010-02-07 Colin Watson <cjwatson@ubuntu.com>
23471
23472 * NEWS: Update.
23473
6e14234c
VS
234742010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23475
23476 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
23477 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23478 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 23479
b255e9cf
YB
234802010-02-07 Yves Blusseau <blusseau@zetam.org>
23481
6e14234c 23482 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 23483
98e6959d
VS
234842010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23485
23486 Fix warnings in grub-emu when compiling with maximum warning options.
23487
23488 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23489 (grub_arch_modules_addr): Return 0 and not NULL.
23490 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 23491 (xstrdup): Use newstr instead of dup.
f88d801b
VS
23492 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23493 of disk to dsk to avoid shadowing.
74e4934e
VS
23494 (find_free_slot): Fix prototype.
23495 * util/getroot.c (grub_util_is_dmraid): Make static.
23496 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23497 Add missing prototype.
23498 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 23499
74e31b5c
VS
235002010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23501
23502 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23503 appropriately.
23504
6b2ad14b
VS
235052010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23506
23507 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23508 code out.
23509
8f891adc
VS
235102010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23511
23512 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23513 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23514 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23515 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23516 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23517 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23518
74b45184
VS
235192010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23520
23521 * include/grub/err.h (grub_err_printf): Don't export.
23522
a4bced77
VS
235232010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23524
23525 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23526
007d0695
VS
235272010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23528
23529 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23530 * kern/misc.c (grub_gettext_dummy): Make static.
23531
b6c0d9c2
VS
235322010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23533
23534 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23535 by non-valid ones.
23536 * kern/term.c (grub_putchar): Likewise.
23537
f51a90d0
VS
235382010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23539
23540 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23541 buggy hook call and memory leak.
23542
6846cec5
VS
235432010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23544
23545 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23546
468d69fe
VS
235472010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23548
23549 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23550
51906b8c
VS
235512010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23552
23553 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23554 modevar.
23555 Return grub_errno on allocation error.
23556
09706ce5
VS
235572010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23558
23559 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23560
911df80c
YB
235612010-02-06 Yves Blusseau <blusseau@zetam.org>
23562
23563 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23564 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23565
3746a6bc
VS
235662010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23567
23568 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23569 non-pxe disk.
23570 (grub_pxefs_open): Likewise.
23571
09706ce5
VS
235722010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23573
23574 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23575 * util/grub.d/10_kfreebsd.in: Likewise.
23576 * util/grub.d/10_linux.in: Likewise.
23577
7cc192d9
VS
235782010-02-06 Colin D Bennett <colin@gibibit.com>
23579
23580 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23581 (gfxmenu_mod_SOURCES): New variable.
23582 (gfxmenu_mod_CFLAGS): Likewise.
23583 (gfxmenu_mod_LDFLAGS): Likewise.
23584 * include/grub/term.h (grub_term_set_current_output): Declare
23585 argument as const.
23586 * docs/gfxmenu-theme-example.txt: New file.
23587 * gfxmenu/gfxmenu.c: Likewise.
23588 * gfxmenu/gui_box.c: Likewise.
23589 * gfxmenu/gui_canvas.c: Likewise.
23590 * gfxmenu/gui_circular_progress.c: Likewise.
23591 * gfxmenu/gui_image.c: Likewise.
23592 * gfxmenu/gui_label.c: Likewise.
23593 * gfxmenu/gui_list.c: Likewise.
23594 * gfxmenu/gui_progress_bar.c: Likewise.
23595 * gfxmenu/gui_string_util.c: Likewise.
23596 * gfxmenu/gui_util.c: Likewise.
23597 * gfxmenu/icon_manager.c: Likewise.
23598 * gfxmenu/model.c: Likewise.
23599 * gfxmenu/named_colors.c: Likewise.
23600 * gfxmenu/theme_loader.c: Likewise.
23601 * gfxmenu/view.c: Likewise.
23602 * gfxmenu/widget-box.c: Likewise.
23603 * include/grub/gfxmenu_model.h: Likewise.
23604 * include/grub/gfxmenu_view.h: Likewise.
23605 * include/grub/gfxwidgets.h: Likewise.
23606 * include/grub/gui.h: Likewise.
23607 * include/grub/gui_string_util.h: Likewise.
23608 * include/grub/icon_manager.h: Likewise.
23609
236102010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23611
23612 Agglomerate scrolling in gfxterm.
23613
23614 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23615 (grub_virtual_screen_setup): Initialise 'total_screen'.
23616 (write_char): Split to ...
23617 (paint_char): ... this ...
23618 (write_char): ... and this.
23619 (paint_char): Handle delayed scrolling.
23620 (draw_cursor): Likewise.
23621 (scroll_up): Split to ...
23622 (real_scroll): ... this ...
23623 (scroll_up): ... and this.
23624 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23625 characters.
23626 (grub_gfxterm_refresh): Call real_scroll.
23627
236282010-02-06 Colin D Bennett <colin@gibibit.com>
23629
23630 * include/grub/misc.h (grub_iscntrl): New inline function.
23631 (grub_isalnum): Likewise.
23632 (grub_strtol): Likewise.
23633
236342010-02-06 Colin D Bennett <colin@gibibit.com>
23635
23636 * normal/menu_text.c (get_entry_number): Move from here ...
23637 * normal/menu.c (get_entry_number): ... moved here.
23638 * include/grub/menu.h (grub_menu_get_default_entry_index):
23639 New prototype.
23640 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23641 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23642 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23643 (grub_menu_viewer_should_return): Likewise.
23644 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23645 * normal/menu_text.c (run_menu): Enable menu switching.
23646 * normal/menu_viewer.c (should_return): New variable.
23647 (menu_viewer_changed): Likewise.
23648 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23649 (grub_menu_viewer_should_return): New function.
23650 (menuviewer_write_hook): Likewise.
23651 (grub_menu_viewer_init): Likewise.
23652
236532010-02-06 Colin D Bennet <colin@gibibit.com>
236542010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23655
23656 Support for gfxterm in a window.
23657
23658 * include/grub/gfxterm.h: New file.
23659 * include/grub/video.h (struct grub_video_rect): New declaration.
23660 (grub_video_rect_t): Likewise.
23661 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23662 (refcount): New variable.
23663 (render_target): Likewise.
23664 (window): Likewise.
23665 (repaint_callback): Likewise.
23666 (grub_virtual_screen_setup): Use 'render_target'.
23667 (init_window): New function.
23668 (grub_gfxterm_init_window): Likewise.
23669 (grub_gfxterm_init): Check reference counter.
23670 Use init_window.
23671 (destroy_window): New function.
23672 (grub_gfxterm_destroy_window): Likewise.
23673 (grub_gfxterm_fini): Check reference counter.
23674 Use destroy_window.
23675 (redraw_screen_rect): Restore viewport.
23676 Use 'render_target' and 'window'.
23677 Call 'repaint_callback'.
23678 (write_char): Use 'render_target'.
23679 (draw_cursor): Likewise.
23680 (scroll_up): Restore viewport.
23681 Use 'render_target' and 'window'.
23682 Call 'repaint_callback'.
23683 (grub_gfxterm_cls): Likewise.
23684 (grub_gfxterm_refresh): Use 'window'.
23685 (grub_gfxterm_set_repaint_callback): New function.
23686 (grub_gfxterm_background_image_cmd): Use 'window'.
23687 (grub_gfxterm_get_term): New function.
23688 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23689
236902010-02-06 Colin D Bennett <colin@gibibit.com>
23691
23692 Bitmap scaling support.
23693
23694 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23695 (bitmap_scale_mod_SOURCES): New variable.
23696 (bitmap_scale_mod_CFLAGS): Likewise.
23697 (bitmap_scale_mod_LDFLAGS): Likewise.
23698 * include/grub/bitmap_scale.h: New file.
23699 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23700 (background_image_cmd_options): New variable.
23701 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23702 (cmd): Rename and change type to ...
23703 (background_image_cmd_handle): ... this. All users updated.
23704 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23705 * video/bitmap_scale.c: New file.
23706
237072010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23708
23709 SDL support.
23710
23711 * Makefile.in (LIBSDL): New variable.
23712 (enable_grub_emu_sdl): Likewise.
23713 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23714 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23715 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23716 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23717 * util/sdl.c: New file.
23718
237192010-02-06 Colin D Bennett <colin@gibibit.com>
237202010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23721
23722 Double buffering support.
23723
23724 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23725 * include/grub/video.h: Update comment.
23726 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23727 New type.
23728 (grub_video_fb_doublebuf_blit_init): New prototype.
23729 * term/gfxterm.c (scroll_up): Support double buffering.
23730 (grub_gfxterm_refresh): Likewise.
23731 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23732 (grub_video_fb_doublebuf_blit_init): Likewise.
23733 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23734 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23735 'displayed_page', 'render_page' and 'update_screen'.
23736 (grub_video_vbe_fini): Free offscreen buffer.
23737 (doublebuf_pageflipping_commit): New function.
23738 (doublebuf_pageflipping_update_screen): Likewise.
23739 (doublebuf_pageflipping_init): Likewise.
23740 (double_buffering_init): Likewise.
23741 (grub_video_vbe_setup): Enable doublebuffering.
23742 (grub_video_vbe_swap_buffers): Implement.
23743 (grub_video_vbe_set_active_render_target): Handle double buffering.
23744 (grub_video_vbe_get_active_render_target): Likewise.
23745 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23746 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23747 (grub_video_vbe_enable_double_buffering): Likewise.
23748 (grub_video_vbe_swap_buffers): Use update_screen.
23749 (grub_video_set_mode): Use double buffering.
23750
237512010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23752
23753 * maintainance/gentrigtables.py: Remove.
23754 * lib/trig.c: Likewise.
23755
23756 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23757
23758 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23759 `trigtables.c'.
23760 (trigtables.c): New rule.
23761 (gentrigtables): Likewise.
23762 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23763
237642010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23765
23766 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23767 integer constants.
23768
237692010-02-06 Colin D Bennet <colin@gibibit.com>
23770
23771 Trigonometry support.
23772
23773 * include/grub/trig.h: New file.
23774 * lib/trig.c: Likewise.
23775 * maintainance/gentrigtables.py: Likewise.
23776 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23777 (trig_mod_SOURCES): New variable.
23778 (trig_mod_CFLAGS): Likewise.
23779 (trig_mod_LDFLAGS): Likewise.
23780
5562834e
VS
237812010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23782
23783 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23784 disk devices.
23785
4f8528fc
VS
237862010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23787
23788 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23789 error.
23790
2b4068e9
VS
237912010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23792
23793 * util/hostdisk.c (open_device): Don't use partition device when reading
23794 before the partition.
23795 (grub_util_biosdisk_read): Don't read from partition and before the
23796 partition in single operation.
23797 (grub_util_biosdisk_write): Don't write to partition and before the
23798 partition in single operation.
23799
399f6e4d
TL
238002010-02-03 Torsten Landschoff <torsten@debian.org>
23801
23802 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23803 last sectors.
23804
996649b0
VS
238052010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23806
23807 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23808 CDROM reads.
23809 (grub_biosdisk_write): Refuse to write to CDROM.
23810
3b205d4d
VS
238112010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23812
23813 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23814
61e89d9d
VS
238152010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23816
23817 * font/font.c (find_glyph): Check that bmp_idx is available before
23818 using it.
23819 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23820 with (font == NULL).
23821
bf7fcba2
CS
238222010-01-28 Christian Schmitt <chris@ilovelinux.de>
23823
23824 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23825
f45d2663
BC
238262010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23827
23828 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23829 * util/grub-script-check.c (getline): Fix empty lines case.
23830
ec1444e6
RM
238312010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23832
23833 * Makefile.in (check): Exit with fail status when one of the tests
23834 fails.
23835 * tests/example_functional_test.c (example_test): Fix reversed assert.
23836 * tests/example_unit_test.c (example_test): Likewise.
23837
2e1cb9bb
CW
238382010-01-28 Colin Watson <cjwatson@ubuntu.com>
23839
23840 * util/grub.d/10_linux.in: This script does not use any of the
23841 contents of gettext.sh, only the external command `gettext', so stop
23842 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23843 the same prefix as GRUB.)
23844 * util/grub.d/10_kfreebsd.in: Likewise.
23845
63533ab0
VS
238462010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23847
23848 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23849 of the line.
23850
989e1f93
VS
238512010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23852
23853 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23854 last sectors.
23855
e709ebe2
VS
238562010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23857
23858 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23859 having a 4KiB and not 32KiB buffer size.
23860
27dea7ed
RM
238612010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23862
23863 * util/hostfs.c: Include `<errno.h>'.
23864 (grub_hostfs_read): Handle errors from fseeko() and fread().
23865
67667b9c
RM
238662010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23867
23868 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23869 loop when using read hooks on files whose size isn't sector-aligned.
23870
c294d9d8
RM
238712010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23872
23873 Remove unused parameter.
23874
23875 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23876 (grub_iso9660_open): Remove initialization of `data->length'.
23877
af75a9f1
RM
238782010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23879
23880 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23881 memleak conditions.
23882
254e2ce5 238832010-01-27 Carles Pina i Estany <carles@pina.cat>
23884
23885 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23886 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23887
b510928c 238882010-01-26 Carles Pina i Estany <carles@pina.cat>
23889
23890 * util/bin2h.c (usage): Fix warning (space after backslash).
23891
aa2f9dd2 238922010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 23893
23894 * font/font.c: Include `grub/fontformat.h.
23895 Remove font file format constants.
23896 (grub_font_load): Use the new macros.
23897 * include/grub/fontformat.h: New file.
23898 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23899 (write_font_pf2): Use the new macros.
23900
94e7e712
RM
239012010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23902
23903 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23904 does.
23905
3973a59a
RM
239062010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23907
23908 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23909
23910 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23911 (_start): Macroify `0x7F'.
23912
23913 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23914 (make_install_device): Use "(pxe)" as fallback prefix when booting
23915 via PXE.
23916
42e0cba3
GS
239172010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23918
23919 * configure.ac: Reset LIBS after check for libgcc symbols.
23920
847effd8
CW
239212010-01-25 Colin Watson <cjwatson@ubuntu.com>
23922
23923 * util/hostdisk.c (open_device): Add trailing newline to debug
23924 message.
23925
ea4a7e35
GS
239262010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23927
23928 * configure.ac: Check for `limits.h'.
23929 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23930
67951a53
RM
239312010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23932
23933 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23934 capitalize error strings.
23935
c273d4ce
ST
239362010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23937
23938 * util/grub.d/10_hurd.in: Add a recovery mode.
23939
69be5b74
VS
239402010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23941
23942 * configure.ac: Check for libgcc symbols with -nostdlib.
23943
fc9e5810
BC
239442010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23945
23946 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23947
4b358c0a
VS
239482010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23949
23950 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23951 stack since heap may be unavailable at that point.
23952 (grub_ofconsole_gotoxy): Likewise.
23953
454fcd1c
VS
239542010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23955
23956 * configure.ac: Check for _restgpr_14_x.
23957 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23958 and _savegpr_* prototypes.
23959
566863ca
RM
239602010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23961
23962 Use generic grub_reboot() for i386-efi.
23963
23964 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23965 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23966 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23967
bf86e59a
VS
239682010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23969
23970 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23971 presence of "prefix" variable as it breaks when normal.mod is
23972 embedded.
23973
d645e0f8
VS
239742010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23975
23976 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23977 stack since heap is unavailable at that point.
23978
f9ab2e25
VS
239792010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23980
23981 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23982 (grub_freebsd_bootinfo): Rewritten.
23983 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23984
01fc7054
VS
239852010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23986
23987 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23988
caab4fd6
RM
239892010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23990
23991 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23992 domain now.
23993
67eb1427
FZ
239942010-01-20 Felix Zielcke <fzielcke@z-51.de>
23995
23996 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23997 around for handling "/" to the correct fix. Fix a memory leak. Use
23998 xstrdup instead of strdup.
23999
a9ed4ff3
VS
240002010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24001
24002 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
24003
240042010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
24005
24006 Optimise glyph lookup by Basic Multilingual Plane lookup array.
24007
24008 * font/font.c (struct grub_font): New member 'bmp_idx'.
24009 (font_init): Initialise 'bmp_idx'.
24010 (load_font_index): Fill 'bmp_idx'.
24011 (find_glyph): Make inline. Use bmp_idx for BMP characters.
24012
48209f4f
VS
240132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24014
24015 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
24016 unnecessary calls.
24017
9f0a4bb7
VS
240182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24019
24020 Move context handling out of the kernel.
24021
24022 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
24023 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
24024 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
24025 * conf/i386-efi.rmk: Likewise.
24026 * conf/i386-ieee1275.rmk: Likewise.
24027 * conf/i386-pc.rmk: Likewise.
24028 * conf/powerpc-ieee1275.rmk: Likewise.
24029 * conf/sparc64-ieee1275.rmk: Likewise.
24030 * conf/x86_64-efi.rmk: Likewise.
24031 * include/grub/env.h: Include grub/menu.h.
24032 (grub_env_var_type): Removed.
24033 (grub_env_var): Replaced field 'type' with 'global'.
24034 (grub_env_find): New prototype.
24035 (grub_env_context_open): Remove EXPORT_FUNC.
24036 (grub_env_context_close): Likewise.
24037 (grub_env_export): Likewise.
24038 (grub_env_set_data_slot): Removed.
24039 (grub_env_get_data_slot): Likewise.
24040 (grub_env_unset_data_slot): Likewise.
24041 (grub_env_unset_menu): New prototype.
24042 (grub_env_set_menu): Likewise.
24043 (grub_env_get_menu): Likewise.
24044 * include/grub/env_private.h: New file.
24045 * include/grub/normal.h (grub_context_init): New prototype.
24046 (grub_context_fini): Likewise.
24047 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
24048 * normal/context.c (grub_cmd_export): ... to here.
24049 * kern/env.c: Include env_private.h.
24050 (HASHSZ): Moved to include/grub/env_private.h.
24051 (grub_env_context): Likewise.
24052 (grub_env_sorted_var): Likewise.
24053 (current_context): Renamed from this ...
24054 (grub_current_context): ...to this. 'static' removed. All users updated.
24055 (grub_env_find): Removed 'static'.
24056 (grub_env_context_open): Moved to normal/context.c.
24057 (grub_env_context_close): Likewise.
24058 (grub_env_export): Likewise.
24059 (mangle_data_slot_name): Removed.
24060 (grub_env_set_data_slot): Likewise.
24061 (grub_env_get_data_slot): Likewise.
24062 (grub_env_unset_data_slot): Likewise.
24063 * kern/main.c (grub_set_root_dev): Don't export root.
24064 It will be done later.
24065 (grub_main): Don't export prefix.
24066 It will be done later.
24067 * normal/context.c: New file.
24068 * normal/main.c (free_menu): Use grub_env_unset_menu.
24069 (grub_normal_add_menu_entry): Use grub_env_get_menu.
24070 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
24071 (GRUB_MOD_INIT(normal)): Call grub_context_init.
24072 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
24073
8dd35b8c
VS
240742010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24075
24076 setpci support.
24077
24078 * commands/setpci.c: New file.
24079 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
24080 (setpci_mod_SOURCES): New variable.
24081 (setpci_mod_CFLAGS): Likewise.
24082 (setpci_mod_LDFLAGS): Likewise.
24083
449193d5
VS
240842010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24085
24086 Byte-addressable PCI configuration space.
24087
24088 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24089 dword address.
24090 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24091 GRUB_PCI_REG_CACHELINE.
24092 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24093 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24094 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24095 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24096 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24097 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24098 grub_pci_make_address.
24099 (lock_rom_area): Likewise.
24100 * commands/lspci.c (grub_lspci_iter): Use macroses
24101 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24102 of grub_pci_make_address.
24103 * disk/ata.c (grub_ata_pciinit): Likewise.
24104 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24105 (GRUB_PCI_REG_VENDOR): Likewise.
24106 (GRUB_PCI_REG_DEVICE): Likewise.
24107 (GRUB_PCI_REG_COMMAND): Likewise.
24108 (GRUB_PCI_REG_STATUS): Likewise.
24109 (GRUB_PCI_REG_REVISION): Likewise.
24110 (GRUB_PCI_REG_CLASS): Likewise.
24111 (GRUB_PCI_REG_CACHELINE): Likewise.
24112 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24113 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24114 (GRUB_PCI_REG_BIST): Likewise.
24115 (GRUB_PCI_REG_ADDRESSES): Likewise.
24116 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24117 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24118 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24119 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24120 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24121 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24122 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24123 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24124 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24125 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24126 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24127 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24128 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24129 (GRUB_PCI_REG_MIN_GNT): Likewise.
24130 (GRUB_PCI_REG_MAX_LAT): Likewise.
24131 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24132 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24133 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 24134 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
24135 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24136 space.
24137
96d73208
RM
241382010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24139
24140 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24141 can be reliably determined to be supported.
24142
d4484482
RM
241432010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24144
24145 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24146 that VESA is supported.
24147 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24148 supported.
24149
00308ecf
VS
241502010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24151
24152 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24153
f66924a4
RM
241542010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24155
24156 * util/misc.c (make_system_path_relative_to_its_root): Work around
24157 special-casing of "/", as previous incarnation of this routine did.
24158
cbca0ada
VS
241592010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24160
24161 Fix any-emu compilation.
24162
24163 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24164 * grub_bin2h_SOURCES: New variable.
24165
34a66d99
RM
241662010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24167
24168 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24169
94fabf58
RM
241702010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24171
24172 * util/grub.d/00_header.in: Fix handling of locale_dir.
24173
02cf98ca
VS
241742010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24175
24176 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24177 as possible unifont location (Gentoo).
24178 Reported by: Alexander Brüning
24179
327dbcd7
VS
241802010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24181
24182 Don't try to generate lists for kernel.img.
24183
24184 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24185 (pkglib_MODULES): Remove kernel.img.
24186 (kernel_img_EXPORTS): Removed.
24187 (kernel_img_RELOCATABLE): New variable.
24188 * conf/x86_64-efi.rmk: Likewise.
24189 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24190
ca467290
VS
241912010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24192
24193 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24194 grub_xasprintf or grub_snprintf.
24195 (grub_vsprintf): Likewise.
24196 (grub_snprintf): New proto.
24197 (grub_vsnprintf): Likewise.
24198 (grub_xasprintf): Likewise.
24199 (grub_xvasprintf): Likewise.
24200 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24201 (grub_sprintf): Removed.
24202 (grub_vsnprintf): New function.
24203 (grub_snprintf): Likewise.
24204 (grub_xvasprintf): Likewise.
24205 (grub_xasprintf): Likewise.
24206 (grub_vsprintf): Renamed to ...
24207 (grub_vsnprintf_real): ...this. New argument max_len.
24208
aca655fd
BC
242092010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24210
24211 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24212 fix grub-script-check warning.
24213
7ee92c32
VS
242142010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24215
24216 * include/grub/font.h (grub_font_load): Fix prototype.
24217
f80927ca
VS
242182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24219
24220 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24221
119c50ea
VS
242222010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24223
24224 * include/grub/x86_64/at_keyboard.h: New file.
24225
47d5f3c1
VS
242262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24227
24228 * loader/mips/linux.c: Include missing grub/i18n.h.
24229
55ff5266
RM
242302009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24231
24232 * normal/menu.c (notify_execution_failure): Clarify error message.
24233
c893cc87
RM
242342009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24235
24236 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24237 return value (and revert all return statements). Update users.
24238
917dd370
CW
242392010-01-20 Dan Merillat <debian@dan.merillat.org>
24240
24241 * kern/device.c (grub_device_iterate): Allocate new part_ent
24242 structure based on sizeof (*p) rather than sizeof (p->next), to
24243 account for structure padding.
24244
24245 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24246 disk is NULL, which might happen for LVM physical volumes with no
24247 LVM signature.
24248
d4a4ee57
RM
242492009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24250
24251 * loader/mips/linux.c (grub_cmd_initrd)
24252 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24253
242542009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24255
24256 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24257 (grub_video_video_init, grub_video_bitmap_init)
24258 (grub_font_manager_init, grub_term_gfxterm_init)
24259 (grub_at_keyboard_init): New extern declarations.
24260 (grub_machine_init): Initialize gfxterm and at_keyboard.
24261
24262 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24263
24264 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24265 `gfxterm.mod' into core image.
24266
24267 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24268 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24269 (kernel_img_FORMAT): Copy to ...
24270
24271 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24272 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24273 (kernel_img_FORMAT): ... here, and ...
24274
24275 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24276 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24277 (kernel_img_FORMAT): ... here.
24278
24279 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24280 and input (at_keyboard) terminals in kernel.
24281 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24282
24283 (pkglib_MODULES): Remove `pci.mod'.
24284 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24285 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24286 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24287 (at_keyboard_mod_LDFLAGS): Remove variables.
24288
242892010-01-11 Felix Zielcke <fzielcke@z-51.de>
24290
24291 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24292
242932009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24294
24295 * include/grub/mips/libgcc.h: Only export symbols for functions
24296 that libgcc provides.
24297
242982009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24299
24300 MIPS support.
24301
24302 * bus/bonito.c: New file.
24303 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24304 GRUB_PCI_NUM_DEVICES.
24305 * term/i386/pc/serial.c: Move to ...
24306 * term/serial.c: ... here. All users updated.
24307 * util/i386/pc/grub-mkimage.c: Move to ...
24308 * util/grub-mkrawimage.c: ... here. All users updated.
24309 * term/i386/pc/at_keyboard.c: Move to ...
24310 * term/at_keyboard.c: ... here. All users updated.
24311 * conf/mips-qemu-mips.rmk: New file.
24312 * conf/mips-yeeloong.rmk: Likewise.
24313 * conf/mips.rmk: Likewise.
24314 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24315 mipsel-qemu-mips.
24316 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24317 to port addresses.
24318 (grub_ata_pciinit): Support CS5536.
24319 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24320 * font/font_cmd.c (loadfont_command): Open file before passing it to
24321 grub_font_load.
24322 (pseudo_file_read): New function.
24323 (pseudo_file_close): Likewise.
24324 (pseudo_fs): New structure.
24325 (load_font_module): New function.
24326 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24327 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24328 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24329 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24330 * include/grub/i386/at_keyboard.h: Split into ...
24331 * include/grub/at_keyboard.h: ... this ...
24332 * include/grub/i386/at_keyboard.h: ... and this.
24333 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24334 New prototype.
24335 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24336 updated.
24337 (grub_elf64_size): Likewise.
24338 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24339 filename.
24340 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24341 * include/grub/i386/coreboot/serial.h: Rewritten.
24342 * include/grub/i386/ieee1275/serial.h: Include
24343 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24344 * include/grub/i386/pc/serial.h: Moved from here ...
24345 * include/grub/serial.h: ... to here. All users updated.
24346 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24347 (GRUB_PCI_NUM_BUS): Likewise.
24348 (GRUB_PCI_NUM_DEVICES): Likewise.
24349 (grub_pci_device_map_range): Add missing volatile keyword.
24350 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24351 * include/grub/mips/at_keyboard.h: New file.
24352 * include/grub/mips/cache.h: Likewise.
24353 * include/grub/mips/io.h: Likewise.
24354 * include/grub/mips/kernel.h: Likewise.
24355 * include/grub/mips/libgcc.h: Likewise.
24356 * include/grub/mips/pci.h: Likewise.
24357 * include/grub/mips/qemu-mips/boot.h: Likewise.
24358 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24359 * include/grub/mips/qemu-mips/loader.h: Likewise.
24360 * include/grub/mips/qemu-mips/memory.h: Likewise.
24361 * include/grub/mips/qemu-mips/serial.h: Likewise.
24362 * include/grub/mips/qemu-mips/time.h: Likewise.
24363 * include/grub/mips/relocator.h: Likewise.
24364 * include/grub/mips/time.h: Likewise.
24365 * include/grub/mips/types.h: Likewise.
24366 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24367 * include/grub/mips/yeeloong/boot.h: Likewise.
24368 * include/grub/mips/yeeloong/kernel.h: Likewise.
24369 * include/grub/mips/yeeloong/loader.h: Likewise.
24370 * include/grub/mips/yeeloong/memory.h: Likewise.
24371 * include/grub/mips/yeeloong/pci.h: Likewise.
24372 * include/grub/mips/yeeloong/serial.h: Likewise.
24373 * include/grub/mips/yeeloong/time.h: Likewise.
24374 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24375 * kern/elf.c (grub_elf32_size): New parameter. All users
24376 updated.
24377 (grub_elf64_size): Likewise.
24378 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24379 Load modules before saying "Welcome to GRUB!".
24380 Call grub_refresh after saying "Welcome to GRUB!".
24381 * kern/mips/cache.S: New file.
24382 * kern/mips/cache_flush.S: Likewise.
24383 * kern/mips/dl.c: Likewise.
24384 * kern/mips/init.c: Likewise.
24385 * kern/mips/qemu-mips/init.c: Likewise.
24386 * kern/mips/startup.S: Likewise.
24387 * kern/mips/yeeloong/init.c: Likewise.
24388 * kern/term.c (grub_putcode): Handle NULL terminal.
24389 (grub_getcharwidth): Likewise.
24390 (grub_getkey): Likewise.
24391 (grub_checkkey): Likewise.
24392 (grub_getkeystatus): Likewise.
24393 (grub_getxy): Likewise.
24394 (grub_getwh): Likewise.
24395 (grub_gotoxy): Likewise.
24396 (grub_cls): Likewise.
24397 (grub_setcolorstate): Likewise.
24398 (grub_setcolor): Likewise.
24399 (grub_getcolor): Likewise.
24400 (grub_refresh): Likewise.
24401 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24402 (write_jump): Add hatch nop.
24403 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24404 * lib/mips/setjmp.S: New file.
24405 * loader/mips/linux.c: Likewise.
24406 * term/i386/pc/at_keyboard.c: Move from here ...
24407 * term/at_keyboard.c: ... to here.
24408 * term/i386/pc/serial.c: Moved from here ...
24409 * term/serial.c: ... to here. All users updated.
24410 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24411 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24412 (serial_translate_key_sequence): Avoid deadlock.
24413 (grub_serial_getkey): Handle backspace.
24414 (grub_serial_putchar): Fix newline handling.
24415 * util/i386/pc/grub-mkimage.c: Move from here ...
24416 * util/grub-mkrawimage.c: ... to here. All users updated.
24417 (generate_image): New parameters 'font_path' and 'format'.
24418 Support embedding font.
24419 Use grub_host_to_target* instead of grub_cpu_to_le*.
24420 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24421 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24422 (options): New option "--font".
24423 (usage): Likewise.
24424 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24425 (main): Handle "--font".
24426 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24427 (grub_virtual_screen_setup): Set bg_color_display.
24428 (redraw_screen_rect): Use bg_color_display instead of incorrect
24429 bg_color.
24430 (grub_gfxterm_cls): Likewise.
24431 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24432 Support embedding config file.
24433 (add_segments): Likewise.
24434 (options): New option "--config".
24435 (main): Handle "--config".
24436 * video/sm712.c: New file.
24437
25c2b5b3
RM
244382010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24439
24440 Fix parallel builds.
24441
24442 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24443 font.c depend on ascii.h).
24444
244452010-01-12 Carles Pina i Estany <carles@pina.cat>
24446
24447 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24448
244492010-01-11 Carles Pina i Estany <carles@pina.cat>
24450
24451 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24452 By default: disabled.
24453 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24454 parameter.
24455
244562010-01-10 Carles Pina i Estany <carles@pina.cat>
24457
24458 * font/font.c: Update copyright years.
24459 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24460
244612010-01-10 Carles Pina i Estany <carles@pina.cat>
24462
24463 * font/font.c: Include `ascii.h'.
24464 (ASCII_BITMAP_SIZE): New macro.
24465 (ascii_font_glyph): Define.
24466 (ascii_glyph_lookup): New function.
24467 (grub_font_get_string_width): Change comment. If glyph not found, use
24468 ascii_glyph_lookup.
24469 (grub_font_get_glyph_with_fallback): If glyph not available returns
24470 ascii_glyph_lookup.
24471 * util/grub-mkfont.c (file_formats): New enum.
24472 (options): Add `ascii-bitmaps' new option.
24473 (usage): Add `asii-bitmaps' new option.
24474 (write_font_ascii_bitmap): New function.
24475 (write_font): Rename to ...
24476 (write_font_p2): ... this. Remove print_glyphs call.
24477 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24478 used. Call print_glyphs.
24479 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24480
244812010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24482
24483 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24484 (grub_bin2h_SOURCES): New variable.
24485 * util/bin2h.c: New file.
24486
915fc1b8
VS
244872010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24488
24489 * include/multiboot.h: Resynced with spec.
24490 * include/multiboot2.h: Likewise.
24491 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24492 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24493
9444b678
RM
244942010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24495
24496 * include/grub/term.h (grub_term_register_input,
24497 grub_term_register_output): Check return of terminal init()
24498 routines, and abort if errors are raised.
24499
24500 * commands/terminal.c: Update copyright year.
24501
cba98e8d
RM
245022010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24503
24504 * commands/terminal.c (grub_cmd_terminal_input)
24505 (grub_cmd_terminal_output): Check return of terminal init()
24506 routines, and abort if errors are raised.
24507
6f7db5d6
VS
245082010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24509
24510 * include/grub/i386/bsd.h: Fix include pathes.
24511
262bff8d
VS
245122010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24513
24514 Add missing *BSD copyright headers.
24515
24516 * include/grub/aout.h: Add BSD licence.
24517 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24518 * include/grub/i386/freebsd_linker.h: ... here,
24519 * include/grub/i386/freebsd_reboot.h: ... here,
24520 * include/grub/i386/netbsd_bootinfo.h: ... here,
24521 * include/grub/i386/netbsd_reboot.h: ... here,
24522 * include/grub/i386/openbsd_bootarg.h: ... here,
24523 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24524 licence to each file.
24525
b2cab848
RM
245262010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24527
24528 * acinclude.m4: Remove `nop' assembly instruction; it's not
24529 implemented by all architectures.
24530
2cb6be4b
RM
245312010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24532
24533 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24534 ELILO. This is no longer necessary.
24535
a2eaee15
BC
245362010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24537
24538 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24539
24540 * util/grub-script-check.c: grub-script-check tool.
24541 * conf/common.rmk: Make rules for grub-script-check.
24542
88d17012
RM
245432010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24544
24545 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24546 spotting it back in 2008. Shame on me for forgetting he did.
24547
24548 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24549
8040619d
RM
245502010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24551
24552 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24553 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24554 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24555 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24556 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24557 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24558
a0c2a0f6
RM
245592010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24560
24561 * include/grub/test.h: Add license header.
24562 * tests/example_functional_test.c: Likewise.
24563 * tests/example_unit_test.c: Likewise.
24564 * tests/lib/functional_test.c: Likewise.
24565 * tests/lib/test.c: Likewise.
24566 * tests/lib/unit_test.c: Likewise.
24567
b0b13907
VS
245682010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24569
24570 Use flag-based instead of hook-based video mode selection and "auto"
24571 keyword.
24572
24573 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24574 (grub_video_set_mode): Changed prototype. All users updated.
24575 (grub_video_check_mode_flag): New inline function.
24576 * video/video.c (parse_modespec): New function.
24577 (grub_video_set_mode): Parse flags and keywords.
24578
ea379330 245792010-01-17 Carles Pina i Estany <carles@pina.cat>
24580
24581 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24582 fprintf call.
24583
e15c215e
FZ
245842010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24585
24586 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24587
409ae1c9 245882010-01-16 Carles Pina i Estany <carles@pina.cat>
24589
24590 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24591 string.
24592 * util/grub-emu.c (usage): Likewise.
24593 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24594 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24595 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24596 * util/i386/pc/grub-setup.c (usage): Likewise.
24597
70a14d3d 245982010-01-16 Carles Pina i Estany <carles@pina.cat>
24599
24600 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24601 the message.
24602 (grub_util_info): Likewise.
24603 (grub_util_error): Likewise.
24604 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24605 and/or new lines in `grub_util_warna', `grub_util_info',
24606 `grub_util_error' calls.
24607 * util/getroot.c: Likewise.
24608 * util/grub-editenv.c: Likewise.
24609 * util/grub-emu.c: Likewise.
24610 * util/grub-fstest.c: Likewise.
24611 * util/grub-mkdevicemap.c: Likewise.
24612 * util/grub-mkfont.c: Likewise.
24613 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24614 * util/grub-mkrelpath.c: Likewise.
24615 * util/grub-pe2elf.c: Likewise.
24616 * util/grub-probe.c: Likewise.
24617 * util/hostdisk.c: Likewise.
24618 * util/i386/efi/grub-mkimage.c: Likewise.
24619 * util/i386/pc/grub-mkimage.c: Likewise.
24620 * util/i386/pc/grub-setup.c: Likewise.
24621 * util/ieee1275/ofpath.c: Likewise.
24622 * util/mkisofs/eltorito.c: Likewise.
24623 * util/mkisofs/rock.c: Likewise.
24624 * util/mkisofs/write.c: Likewise.
24625 * util/raid.c: Likewise.
24626 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24627 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24628
a0b766fc
VS
246292010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24630
24631 Enable multiboot on non-pc.
24632
24633 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24634 multiboot.mod and multiboot2.mod to ...
24635 * conf/i386.rmk (pkglib_MODULES): ... here.
24636 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24637 Moved to ...
24638 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24639 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24640 Moved to ...
24641 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24642 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24643 Moved to ...
24644 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24645 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24646 Moved to ...
24647 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24648 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24649 relocator.mod.
24650 (ata_mod_SOURCES): Removed.
24651 (ata_mod_CFLAGS): Likewise.
24652 (ata_mod_LDFLAGS): Likewise.
24653 (relocator_mod_SOURCES): Removed.
24654 (relocator_mod_CFLAGS): Likewise.
24655 (relocator_mod_ASFLAGS): Likewise.
24656 (relocator_mod_LDFLAGS): Likewise.
24657 Include i386.mk.
24658 * include/grub/x86_64/multiboot.h: New file.
24659 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24660 Terminate EFI.
24661
884ade56
VS
246622010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24663
24664 Video multiboot support.
24665
24666 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24667 New prototype.
24668 * include/multiboot.h: Resynced with multiboot specification.
24669 * include/multiboot2.h: Likewise.
24670 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24671 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24672 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24673 (HAS_VGA_TEXT): Likewise.
24674 (accepts_video): New variable.
24675 (grub_multiboot_set_accepts_video): New function.
24676 (grub_multiboot_get_mbi_size): Account for video structures.
24677 (set_video_mode): New function.
24678 (retrieve_video_parameters): Likewise.
24679 (grub_multiboot_make_mbi): Fill video fields.
24680
0d90e8a6
VS
246812010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24682
24683 Video driver ids.
24684
24685 * include/grub/video.h (grub_video_driver_id): New type.
24686 (grub_video_adapter): New member 'id'. All users updated.
24687 (grub_video_get_driver_id): New proto.
24688 * video/video.c (grub_video_get_driver_id): New function.
24689
5c71db1b 246902010-01-14 Carles Pina i Estany <carles@pina.cat>
24691
24692 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24693 `var=val'.
24694
cca15b52 246952010-01-14 Carles Pina i Estany <carles@pina.cat>
24696
24697 * normal/cmdline.c (print_completion): Gettextizze.
24698
c586fbb2 246992001-01-14 Carles Pina i Estany <carles@pina.cat>
24700
24701 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24702
ba2f6848 247032010-01-14 Carles Pina i Estany <carles@pina.cat>
24704
24705 * gettext/gettext.c (grub_gettext_translate): Push and pop
24706 grub_errno.
24707 (grub_gettext_delete_list): Change comment style.
24708 * kern/err.c (grub_error): Gettextizze.
24709 (grub_fatal): Gettextizze.
24710
0a46429a
RM
247112010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24712
24713 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24714 (grub_linux16_real_boot): ... this.
24715 * kern/i386/loader.S: Likewise.
24716 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24717 (grub_linux16_boot): New function. Switches to text mode and calls
24718 grub_linux16_real_boot().
24719
24720 * loader/i386/bsd.c: Include `<grub/video.h>'.
24721 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24722 text mode before calling grub_unix_real_boot().
24723
24724 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24725 (grub_multiboot_boot): Switch to text mode before calling
24726 grub_relocator32_boot().
24727
24728 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24729 (grub_chainloader_boot): Switch to text mode before calling
24730 grub_chainloader_real_boot().
24731
d6f93a66
RM
247322010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
247332010-01-05 Colin Watson <cjwatson@ubuntu.com>
24734
24735 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24736 non-empty value.
24737
247382010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
247392010-01-05 Colin Watson <cjwatson@ubuntu.com>
24740
24741 * util/grub.d/00_header.in: Define a "savedefault" function for use
24742 in menu entries.
24743 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24744
247452010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
247462010-01-05 Colin Watson <cjwatson@ubuntu.com>
24747
24748 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24749 saved_entry if boot_once is unset.
24750 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24751 previous saved entry (i.e. grub-reboot).
24752
247532009-12-08 Colin Watson <cjwatson@ubuntu.com>
24754
24755 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24756
247572009-12-08 Colin Watson <cjwatson@ubuntu.com>
24758
24759 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24760 `var=val'.
24761 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24762
247632009-12-08 Colin Watson <cjwatson@ubuntu.com>
24764
24765 * util/grub-reboot.in: Fix --version output.
24766 * util/grub-set-default.in: Likewise.
24767
247682009-12-08 Colin Watson <cjwatson@ubuntu.com>
24769
24770 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24771 blocks.
24772
247732009-12-08 Colin Watson <cjwatson@ubuntu.com>
24774
24775 * util/grub.d/00_header.in: Quote the value assigned to `default',
24776 in case it contains spaces.
24777
247782009-12-08 Colin Watson <cjwatson@ubuntu.com>
24779
24780 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24781 `save_default_entry' call from the macosx case to the linux case.
24782
247832009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
247842009-10-25 Colin Watson <cjwatson@ubuntu.com>
24785
24786 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24787 in `chosen' environment variable.
24788 * normal/menu_text.c (get_entry_number): Check if the variable
24789 matches the title of a menu entry.
24790 (run_menu): Pass menu to get_entry_number.
24791
24792 * util/grub-reboot.in: New file.
24793 * util/grub-set-default.in: New file.
24794 * conf/common.rmk (grub-reboot): New utility.
24795 (grub-set-default): New utility.
24796
24797 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24798 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24799 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24800 move it to `saved_entry' for the next boot. Load environment on
24801 initialisation.
24802 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24803 * util/grub.d/10_hurd.in: Likewise.
24804 * util/grub.d/10_linux.in (linux_entry): Likewise.
24805 * util/grub.d/10_windows.in: Likewise.
24806 * util/grub.d/30_os-prober.in: Likewise.
24807
24808 * util/grub-install.in: Create environment block.
24809 * util/i386/efi/grub-install.in: Likewise.
24810 * util/ieee1275/grub-install.in: Likewise.
24811 * util/sparc64/ieee1275/grub-install.in: Likewise.
24812
0934d184
BC
248132010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24814
24815 Unit testing framework for GRUB.
24816
24817 * Makefile.in: Test framework build rules for 'make check'.
24818 * conf/tests.rmk: Build rules for individual tests and framework.
24819
24820 * include/grub/test.h: Header file for whitebox tests.
24821 * tests/lib/functional_test.c: Framework support for whitebox
24822 functional tests.
24823 * tests/lib/test.c: Common whitebox testing code for unit and
24824 functional tests.
24825 * tests/lib/unit_test.c: Framework support for whitebox unit
24826 tests.
24827
24828 * tests/util/grub-shell-tester.in: Support utility for grub-script
24829 tests.
24830 * tests/util/grub-shell.in: Utility to execute grub-script
24831 commands in a Qemu instance.
24832
24833 * tests/example_functional_test.c: Example whitebox functional
24834 test.
24835 * tests/example_grub_script_test.in: Example grub-script test.
24836 * tests/example_scripted_test.in: Example scripted test.
24837 * tests/example_unit_test.c: Example whitebox unit test.
24838
9c4ffeeb
VS
248392010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24840
24841 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24842 Add loader/i386/multiboot_mbi.c.
24843 (multiboot2_mod_SOURCES): Likewise.
24844 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24845 (multiboot2_mod_SOURCES): Likewise.
24846 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24847 (grub_multiboot_make_mbi): Likewise.
24848 (grub_multiboot_free_mbi): Likewise.
24849 (grub_multiboot_init_mbi): Likewise.
24850 (grub_multiboot_add_module): Likewise.
24851 (grub_multiboot_set_bootdev): Likewise.
24852 * loader/i386/multiboot.c (mbi): Removed.
24853 (mbi_dest): Likewise.
24854 (alloc_mbi): New variable.
24855 (grub_multiboot_payload_size): Removed. All users updated.
24856 (grub_multiboot_pure_size): New variable.
24857 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24858 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24859 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24860 (grub_fill_multiboot_mmap): Likewise.
24861 (grub_multiboot_get_bootdev): Likewise.
24862 (grub_multiboot): Use multiboot_mbi functions.
24863 * loader/i386/multiboot_mbi.c: New file.
24864
17383dfe
VS
248652010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24866
24867 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24868 it would result in module crash.
24869
c1f28820
VS
248702010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24871
24872 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24873 (grub_ofconsole_getwh): Split to ...
24874 (grub_ofconsole_getwh): ... this.
24875 (grub_ofconsole_dimensions): ...and this.
24876 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24877
58655a16
RM
248782010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24879
24880 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24881
10891398
VS
248822010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24883
24884 * loader/i386/pc/multiboot2.c: Removed stalled file.
24885
0b8a223c
VS
248862010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24887
24888 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24889 Reported by: Grégoire Sutre
24890
92ab12b0
RM
248912010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24892
24893 * util/misc.c (canonicalize_file_name): New function.
24894 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24895 instead of realpath().
24896
a788afb6
CW
248972010-01-11 Colin Watson <cjwatson@ubuntu.com>
24898
24899 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24900 and make it clearer that it's optional. Based on confusion
24901 witnessed on IRC.
24902
ffa8e3d2
VS
249032010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24904
24905 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24906 in premature implicit newline.
24907
e9060a9d
VS
249082010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24909
24910 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24911 which resulted in garbled command line at the end of screen.
24912
f0d0c0b7
RM
249132010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24914
24915 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24916 initialization with similar approach as with other Linux loaders.
24917
0e60bae7
RM
249182010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24919
24920 Fix i386-ieee1275 build.
24921
24922 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24923 and grub_term_height() for video_{width,height} initialization.
24924
249252010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
24926
24927 Fix grub-emu build.
24928
24929 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24930
cdb3f378
RM
249312010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
249322010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24933
24934 Support for multiple terminals.
24935
24936 * Makefile.in (pkglib_DATA): terminal.lst.
24937 (terminal.lst): New target.
24938 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24939 (GRUB_MOD_INIT(handler)): Likewise.
24940 (GRUB_MOD_FINI(handler)): Likewise.
24941 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24942 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24943 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24944 (grub_cmd_sleep): Use grub_term_save_pos.
24945 * commands/terminal.c: New file.
24946 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24947 commands/terminal.c and lib/charset.c.
24948 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24949 (pkglib_MODULES): Add terminal.mod.
24950 (terminal_mod_SOURCES): New variable.
24951 (terminal_mod_CFLAGS): Likewise.
24952 (terminal_mod_LDFLAGS): Likewise.
24953 * genhandlerlist.sh: Don't handle terminals.
24954 * genmk.rb: Generate terminal-*.lst.
24955 * genterminallist.sh: New file.
24956 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24957 (grub_is_valid_utf8): Likewise.
24958 (grub_utf8_to_ucs4_alloc): Likewise.
24959 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24960 (grub_menu_register_viewer): Changed argument.
24961 (grub_menu_try_text): New proto.
24962 (grub_gfxmenu_try_hook): New declaration.
24963 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24964 (grub_menu_init_page): Additional argument term.
24965 (grub_normal_init_page): Likewise.
24966 (grub_cmdline_get): Arguments simplified.
24967 (grub_utf8_to_ucs4_alloc): Removed.
24968 (grub_print_ucs4): Additional argument term.
24969 (grub_getstringwidth): Likewise.
24970 (grub_print_message_indented): Likewise.
24971 (grub_menu_text_register_instances): New proto.
24972 (grub_show_menu): Likewise.
24973 (read_terminal_list): Likewise.
24974 (grub_set_more): Likewise.
24975 * include/grub/parser.h: Include handler.h.
24976 * include/grub/reader.h: Rewritten.
24977 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24978 (GRUB_TERM_WIDTH): Changed to function.
24979 (GRUB_TERM_HEIGHT): Likewise.
24980 (GRUB_TERM_BORDER_WIDTH): Likewise.
24981 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24982 (GRUB_TERM_NUM_ENTRIES): Likewise.
24983 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24984 (GRUB_TERM_CURSOR_X): Likewise.
24985 (grub_term_input_class): Likewise.
24986 (grub_term_output_class): Likewise.
24987 (grub_term_outputs_disabled): New declaration.
24988 (grub_term_inputs_disabled): Likewise.
24989 (grub_term_outputs): Likewise.
24990 (grub_term_inputs): Likewise.
24991 (grub_term_register_input): Rewritten.
24992 (grub_term_register_output): Likewise.
24993 (grub_term_unregister_input): Likewise.
24994 (grub_term_unregister_output): Likewise.
24995 (FOR_ACTIVE_TERM_INPUTS): New macro.
24996 (FOR_DISABLED_TERM_INPUTS): Likewise.
24997 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24998 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24999 * include/grub/terminfo.h: Add oterm argument to all protypes.
25000 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
25001 Use grub_rescue_run.
25002 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
25003 All users updated.
25004 * kern/reader.c: Removed. All users updated.
25005 * kern/rescue_reader.c (grub_rescue_init): Removed.
25006 (grub_rescue_reader): Likewise.
25007 (grub_register_rescue_reader): Likewise.
25008 (grub_rescue_run): New function based on kern/reader.c.
25009 * kern/term.c: Adapted for multiterm.
25010 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
25011 (grub_is_valid_utf8): Likewise.
25012 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
25013 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
25014 right terminal.
25015 * loader/i386/linux.c (grub_linux_boot): Likewise.
25016 * normal/auth.c (grub_username_get): New function.
25017 (grub_auth_check_authentication): Use grub_username_get.
25018 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
25019 * normal/color.c: Adapt for multiterm.
25020 * normal/main.c (read_config_file): Don't use grub_reader_loop.
25021 (grub_normal_init_page): Additional argument term.
25022 (read_lists): Call read_terminal_lists.
25023 (grub_enter_normal_mode): Call grub_cmdline_run.
25024 Handle grub_normal_exit_level.
25025 (grub_cmd_normal): Make reentrant.
25026 (grub_cmd_normal_exit): New function.
25027 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
25028 * normal/menu.c: Adapt for multiterm.
25029 * normal/menu_entry.c: Likewise.
25030 * normal/menu_text.c: Likewise.
25031 * normal/menu_viewer.c: Removed. All users updated.
25032 * normal/term.c: New file.
25033 * util/console.c: Change order of includes to workaround a bug in
25034 ncurses headers.
25035 * term/terminfo.c: New argument oterm on all exported functions.
25036 All users updated.
25037 * util/grub-editenv.c (grub_term_input_class): Removed.
25038 (grub_term_output_class): Likewise.
25039
1a064917
RM
250402010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25041
25042 Make loader output a bit more user-friendly.
25043
25044 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
25045 is being loaded. Likewise for the Hurd.
25046
25047 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
25048 that kernel of FreeBSD ${version} is being loaded.
25049
25050 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
25051 grub_dprintf().
25052 (grub_cmd_initrd): Likewise.
25053 * util/grub.d/10_linux.in (linux_entry): Print message indicating
25054 that Linux ${version} is being loaded. Likewise for initrd.
25055
5ce0a83a 250562010-01-09 Carles Pina i Estany <carles@pina.cat>
25057
25058 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
25059
809bbfeb 250602010-01-08 Carles Pina i Estany <carles@pina.cat>
25061
25062 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
25063 (GRUB_MOD_INIT): Gettextizze.
25064 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
25065 (GRUB_MOD_INIT): Gettextizze.
25066 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
25067 (grub_cmd_linux): Capitalise Linux.
25068 (GRUB_MOD_INIT): Gettextizze.
25069 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
25070 (grub_cmd_linux): Capitalise Linux.
25071 (GRUB_MOD_INIT): Gettextizze.
25072 * loader/i386/linux.c: Include `<grub/i18n.h>'.
25073 (grub_cmd_linux): Capitalise Linux.
25074 (GRUB_MOD_INIT): Gettextizze.
25075 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
25076 (GRUB_MOD_INIT): Gettextizze.
25077 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
25078 (grub_cmd_linux): Capitalise Linux.
25079 (GRUB_MOD_INIT): Gettextizze.
25080 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
25081 (grub_cpu_xnu_init): Gettextizze.
25082 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
25083 (GRUB_MOD_INIT): Gettextizze.
25084 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
25085 (GRUB_MOD_INIT): Gettextizze.
25086 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
25087 (grub_linux_load64): Capitalise Linux.
25088 (GRUB_MOD_INIT): Gettextizze.
25089 * loader/xnu.c: Include `<grub/i18n.h>'.
25090 (GRUB_MOD_INIT): Gettextizze.
25091 * po/POTFILES: Add `loader/efi/appleloader.c',
25092 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25093 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25094 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25095 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25096 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25097 and `loader/xnu.c'.
25098
b394b2ca
RM
250992010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25100
25101 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25102
251032010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
25104
25105 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25106 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25107 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25108
bc8b32b3
RM
251092010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25110
25111 Reset Multiboot 2 support. New loader implements the draft in
25112 /branches/multiboot2 and shares as much code as possible with the
25113 production Multiboot 1 implementation.
25114
25115 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25116 * loader/multiboot2.c: Likewise.
25117 * loader/i386/multiboot_helper.S: Likewise.
25118 * include/multiboot2.h: Replace with latest version from the draft
25119 in /branches/multiboot2.
25120
25121 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25122 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25123 and `loader/multiboot2.c'.
25124 (pkglib_MODULES): Add `multiboot2.mod'.
25125 (multiboot2_mod_SOURCES): New variable.
25126 (multiboot2_mod_LDFLAGS): Likewise.
25127 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25128
25129 * conf/i386-pc.rmk: Likewise.
25130
25131 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25132 (multiboot_mod_SOURCES): Remove variable.
25133 (multiboot_mod_LDFLAGS): Likewise.
25134 (multiboot_mod_CFLAGS): Likewise.
25135
25136 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25137 `<multiboot2.h>' instead of `<multiboot.h>'.
25138 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25139 (MULTIBOOT_HEADER_MAGIC): New macros.
25140
25141 * loader/multiboot_loader.c (module_version_status): Remove variable.
25142 (find_multi_boot2_header): Remove function.
25143 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25144 logic. Always check for the Multiboot version we're compiling for.
25145 (grub_cmd_module_loader): Likewise.
25146 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25147 command instead of `multiboot'.
25148
5d2c52b8
RM
251492010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25150
25151 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25152 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25153 all users.
25154
53108d92
RM
251552010-01-07 Robert Millan <rmh.grub@aybabtu.com>
251562010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25157
25158 Fix breakage introduced with previous commit.
25159
25160 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25161 commands.
25162 * normal/handler.c (read_handler_list): Revert part of previous commit
25163 affecting this file.
25164 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25165 (grub_normal_execute): ... here.
25166
e2e936b2
RM
251672010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25168
25169 Merge prefix-redefinition-fix branch.
25170
25171 * normal/autofs.c (read_fs_list): Make function capable of being
25172 run multiple times, gracefuly replacing the previous data
25173 structures.
25174 * normal/dyncmd.c (read_command_list): Likewise.
25175 * normal/handler.c (read_handler_list): Likewise.
25176 * normal/main.c (read_lists): New function. Calls all the
25177 list reading functions.
25178 (grub_normal_execute): Use read_lists() instead of calling all
25179 list reading functions explicitly. Register read_lists() as a
25180 variable hook attached to ${prefix}.
25181
607a3701
VS
251822010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25183
25184 Merge crypto branch.
25185
25186 * Makefile.in (pkglib_DATA): Add crypto.lst.
25187 (crypto.lst): New target.
25188 * commands/hashsum.c: New file.
25189 * commands/password.c (check_password): Use grub_crypto_memcmp.
25190 * commands/password_pbkdf2.c: New file.
25191 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25192 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25193 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25194 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25195 -I$(srcdir)/lib/libgcrypt_wrap.
25196 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25197 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25198 password_pbkdf2.mod.
25199 (crypto_mod_SOURCES): New variable.
25200 (crypto_mod_CFLAGS): Likewise.
25201 (crypto_mod_LDFLAGS): Likewise.
25202 (hashsum_mod_SOURCES): New variable.
25203 (hashsum_mod_CFLAGS): Likewise.
25204 (hashsum_mod_LDFLAGS): Likewise.
25205 (pbkdf2_mod_SOURCES): New variable.
25206 (pbkdf2_mod_CFLAGS): Likewise.
25207 (pbkdf2_mod_LDFLAGS): Likewise.
25208 (password_pbkdf2_mod_SOURCES): New variable.
25209 (password_pbkdf2_mod_CFLAGS): Likewise.
25210 (password_pbkdf2_mod_LDFLAGS): Likewise.
25211 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25212 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25213 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25214 Include conf/gcry.rmk.
25215 * include/grub/auth.h: Rewritten.
25216 * include/grub/crypto.h: New file.
25217 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25218 * include/grub/normal.h (read_crypto_list): New prototype.
25219 * lib/crypto.c: New file.
25220 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25221 * lib/pbkdf2.c: Likewise.
25222 * normal/auth.c (grub_auth_strcmp): Removed.
25223 (grub_iswordseparator): Likewise.
25224 (grub_auth_strword): Likewise.
25225 (is_authenticated): Use grub_strword.
25226 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25227 and grub_strword. Pass entered password to authentication callback.
25228 * normal/crypto.c: New file.
25229 * normal/main.c: Call read_crypto_list.
25230 * util/grub-mkpasswd-pbkdf2.c: New file.
25231 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25232
42841caa
VS
252332010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25234
25235 Fix descent and ascent calculation.
25236
25237 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25238 (options): New option "asce".
25239 (usage): Likewise.
25240 (add_char): Ignore invalid glyphs for descent calculation.
25241 Calculate ascent from actual content.
25242 (print_glyphs): Use 'asce'.
25243 (write_font): Likewise. Allow ascent override.
25244 (main): Handle "asce" option.
25245
e7730de7 252462010-01-06 Carles Pina i Estany <carles@pina.cat>
25247
25248 * kern/err.c: Include `<grub/i18n.h>'.
25249 (grub_print_error): Add full stop. Gettextizze.
25250 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25251 (grub_bsd_load_elf): Capitalise ELF.
25252 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25253 (grub_cmd_freebsd_module): Likewise.
25254 (grub_cmd_freebsd_module_elf): Likewise.
25255 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25256
40e3a41f 252572010-01-06 Carles Pina i Estany <carles@pina.cat>
25258
25259 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25260 * commands/search_file.c (HELP_MESSAGE): New macro.
25261 * commands/search_label.c (HELP_MESSAGE): Likewise.
25262 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25263 * po/POTFILES: Add `commands/search_file.c',
25264 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25265 `commands/search.c'.
25266
83507e68
RM
252672010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25268
25269 * config.rpath: Update from Gnulib.
25270
465c787b
YB
252712010-01-05 Yves Blusseau <blusseau@zetam.org>
25272
25273 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25274
6581dd3a
YB
252752010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25276
25277 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25278
3bff18c5
CW
252792010-01-05 Colin Watson <cjwatson@ubuntu.com>
25280
25281 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25282 arguments to fread so that we get a return value in bytes, rather
25283 than something that will normally be rounded down to 0.
25284 Adjust error handling to avoid producing garbage when size_t is not
25285 the same size as long long.
25286
a1368118
CW
252872010-01-05 Colin Watson <cjwatson@ubuntu.com>
25288
25289 * util/mkisofs/write.c (padblock_write): Check return value of
25290 fread.
25291
7c302978
RM
252922010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25293
25294 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25295 floppy images now.
25296
25297 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25298
e33ace06
RM
252992010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25300
25301 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25302 instead of manual alignment.
25303 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25304 verbose). Avoid attempts to read past end of the device
25305 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25306 but GRUB_DISK_CACHE_SIZE may exceed that).
25307
4b856776
RM
253082010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25309
25310 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25311 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25312 it to upper layer.
25313
52c2d97f
VS
253142010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25315
25316 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25317 New constant.
25318 (grub_efi_piwg_device_path): New structure
25319 (grub_efi_piwg_device_path_t): New type.
25320 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25321 (devpath_1): Transform to a structure. All users updated.
25322 (devpath_2): Likewise.
25323 (devpath_3): Likewise.
25324 (devpath_4): Likewise.
25325 (devpath_5): Likewise.
25326
98ff6a54
VS
253272010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25328
25329 * loader/efi/appleloader.c: Restored. Update all users.
25330
3a73dcb6
RM
253312010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25332
25333 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25334
25335 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25336 (struct boot_blocklist): Move from here ...
25337 * include/grub/i386/pc/boot.h [ASM_FILE]
25338 (struct grub_boot_blocklist): ... to here. Update all users.
25339 (setup): Only initialize `start' member of `first_block'
25340 structure. Add assert() calls to verify the other members.
25341
25342 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25343 (generate_image): Fix broken blocklist length initialization.
25344 Add assert() call to verify blocklist `segment' field.
25345
ab0eeb0c
RM
253462010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25347
25348 * loader/efi/appleloader.c: Remove. Update all users.
25349
58bc8bd5
RM
253502010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25351
25352 * boot/i386/pc/boot.S: Update copyright year.
25353 * boot/i386/pc/cdboot.S: Likewise.
25354 * boot/i386/pc/diskboot.S: Likewise.
25355 * boot/i386/pc/lnxboot.S: Likewise.
25356 * boot/i386/pc/pxeboot.S: Likewise.
25357 * bus/pci.c: Likewise.
25358 * commands/cmp.c: Likewise.
25359 * commands/help.c: Likewise.
25360 * commands/hexdump.c: Likewise.
25361 * commands/i386/pc/halt.c: Likewise.
25362 * commands/i386/pc/play.c: Likewise.
25363 * commands/i386/pc/vbeinfo.c: Likewise.
25364 * commands/ls.c: Likewise.
25365 * commands/test.c: Likewise.
25366 * disk/dmraid_nvidia.c: Likewise.
25367 * disk/i386/pc/biosdisk.c: Likewise.
25368 * disk/ieee1275/nand.c: Likewise.
25369 * disk/ieee1275/ofdisk.c: Likewise.
25370 * disk/lvm.c: Likewise.
25371 * disk/raid.c: Likewise.
25372 * disk/raid6_recover.c: Likewise.
25373 * disk/scsi.c: Likewise.
25374 * fs/affs.c: Likewise.
25375 * fs/cpio.c: Likewise.
25376 * fs/ext2.c: Likewise.
25377 * fs/hfs.c: Likewise.
25378 * fs/iso9660.c: Likewise.
25379 * fs/ntfs.c: Likewise.
25380 * fs/sfs.c: Likewise.
25381 * fs/udf.c: Likewise.
25382 * fs/ufs.c: Likewise.
25383 * fs/xfs.c: Likewise.
25384 * gencmdlist.sh: Likewise.
25385 * genmk.rb: Likewise.
25386 * include/grub/disk.h: Likewise.
25387 * include/grub/efi/api.h: Likewise.
25388 * include/grub/efi/efi.h: Likewise.
25389 * include/grub/efi/pe32.h: Likewise.
25390 * include/grub/elf.h: Likewise.
25391 * include/grub/fs.h: Likewise.
25392 * include/grub/i386/at_keyboard.h: Likewise.
25393 * include/grub/i386/pc/memory.h: Likewise.
25394 * include/grub/i386/pc/vbe.h: Likewise.
25395 * include/grub/i386/pci.h: Likewise.
25396 * include/grub/i386/tsc.h: Likewise.
25397 * include/grub/ieee1275/ieee1275.h: Likewise.
25398 * include/grub/ntfs.h: Likewise.
25399 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25400 * include/grub/sparc64/libgcc.h: Likewise.
25401 * include/grub/symbol.h: Likewise.
25402 * include/grub/types.h: Likewise.
25403 * include/multiboot2.h: Likewise.
25404 * io/gzio.c: Likewise.
25405 * kern/device.c: Likewise.
25406 * kern/disk.c: Likewise.
25407 * kern/efi/efi.c: Likewise.
25408 * kern/efi/mm.c: Likewise.
25409 * kern/elf.c: Likewise.
25410 * kern/file.c: Likewise.
25411 * kern/i386/dl.c: Likewise.
25412 * kern/i386/pc/init.c: Likewise.
25413 * kern/i386/pc/startup.S: Likewise.
25414 * kern/ieee1275/ieee1275.c: Likewise.
25415 * kern/ieee1275/init.c: Likewise.
25416 * kern/main.c: Likewise.
25417 * kern/mm.c: Likewise.
25418 * kern/powerpc/dl.c: Likewise.
25419 * kern/sparc64/dl.c: Likewise.
25420 * kern/x86_64/dl.c: Likewise.
25421 * lib/hexdump.c: Likewise.
25422 * loader/efi/appleloader.c: Likewise.
25423 * loader/i386/ieee1275/linux.c: Likewise.
25424 * loader/i386/pc/chainloader.c: Likewise.
25425 * loader/i386/pc/linux.c: Likewise.
25426 * loader/i386/pc/multiboot2.c: Likewise.
25427 * loader/ieee1275/multiboot2.c: Likewise.
25428 * loader/multiboot2.c: Likewise.
25429 * loader/multiboot_loader.c: Likewise.
25430 * loader/powerpc/ieee1275/linux.c: Likewise.
25431 * normal/completion.c: Likewise.
25432 * normal/menu_entry.c: Likewise.
25433 * partmap/apple.c: Likewise.
25434 * util/grub.d/10_hurd.in: Likewise.
25435 * util/hostfs.c: Likewise.
25436 * video/readers/png.c: Likewise.
25437
e2d70b5c
CW
254382010-01-03 Colin Watson <cjwatson@ubuntu.com>
25439
25440 * include/grub/misc.h (GNUC_PREREQ): New macro.
25441 (ATTRIBUTE_ERROR): New macro.
25442 * include/grub/list.h (grub_bad_type_cast_real): Use
25443 ATTRIBUTE_ERROR.
25444
a173283f 254452010-01-03 Carles Pina i Estany <carles@pina.cat>
25446
25447 * normal/menu_text.c (print_message): Change messages.
25448
7fa7ff74 254492010-01-03 Carles Pina i Estany <carles@pina.cat>
25450
25451 * normal/menu_entry.c (store_completion): Gettextizze.
25452
136d24f6 254532010-01-03 Carles Pina i Estany <carles@pina.cat>
25454
25455 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25456
f936862e 254572010-01-03 Carles Pina i Estany <carles@pina.cat>
25458
25459 * po/POTFILES: Sort correctly.
25460
29c44ad1 254612010-01-03 Carles Pina i Estany <carles@pina.cat>
25462
25463 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25464 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25465 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25466 full stop.
25467 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25468 summary. Gettextizze the strings.
25469 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25470 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25471 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25472 full stop.
25473 (GRUB_MOD_INIT): Remove command name from summary.
25474 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25475 summary.
25476 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25477 * term/i386/pc/serial.c (options): Add full stops.
25478 (GRUB_MOD_INIT): Remove command name from the summary.
25479
77a79592 254802010-01-03 Carles Pina i Estany <carles@pina.cat>
25481
25482 * commands/acpi.c: Gettextizze help strings and/or options. Include
25483 `grub/i18n.h' if needed.
25484 * commands/blocklist.c: Likewise.
25485 * commands/boot.c: Likewise.
25486 * commands/cat.c: Likewise.
25487 * commands/cmp.c: Likewise.
25488 * commands/configfile.c: Likewise.
25489 * commands/crc.c: Likewise.
25490 * commands/date.c: Likewise.
25491 * commands/echo.c: Likewise.
25492 * commands/efi/fixvideo.c: Likewise.
25493 * commands/efi/loadbios.c: Likewise.
25494 * commands/gptsync.c: Likewise.
25495 * commands/halt.c: Likewise.
25496 * commands/handler.c: Likewise.
25497 * commands/hdparm.c: Likewise.
25498 * commands/hexdump.c: Likewise.
25499 * commands/i386/cpuid.c: Likewise.
25500 * commands/i386/pc/drivemap.c: Likewise.
25501 * commands/i386/pc/halt.c: Likewise.
25502 * commands/i386/pc/pxecmd.c: Likewise.
25503 * commands/i386/pc/vbeinfo.c: Likewise.
25504 * commands/i386/pc/vbetest.c: Likewise.
25505 * commands/ieee1275/suspend.c: Likewise.
25506 * commands/keystatus.c: Likewise.
25507 * commands/loadenv.c: Likewise.
25508 * commands/ls.c: Likewise.
25509 * commands/lsmmap.c: Likewise.
25510 * commands/lspci.c: Likewise.
25511 * commands/memrw.c: Likewise.
25512 * commands/minicmd.c: Likewise.
25513 * commands/parttool.c: Likewise.
25514 * commands/password.c: Likewise.
25515 * commands/probe.c: Likewise.
25516 * commands/read.c: Likewise.
25517 * commands/reboot.c: Likewise.
25518 * commands/search.c: Likewise.
25519 * commands/sleep.c: Likewise.
25520 * commands/test.c: Likewise.
25521 * commands/true.c: Likewise.
25522 * commands/usbtest.c: Likewise.
25523 * commands/videotest.c: Likewise.
25524 * commands/xnu_uuid.c: Likewise.
25525 * disk/loopback.c: Likewise.
25526 * hello/hello.c: Likewise.
25527 * loader/i386/bsd.c: Likewise.
25528 * term/i386/pc/serial.c: Likewise.
25529 * po/POTFILES: Add new files.
25530
da8d5c53
CW
255312010-01-02 Colin Watson <cjwatson@ubuntu.com>
25532
25533 * term/i386/pc/at_keyboard.c
25534 (keyboard_controller_wait_untill_ready): Rename to ...
25535 (keyboard_controller_wait_until_ready): ... this. Update all users.
25536
33937904 255372010-01-01 Carles Pina i Estany <carles@pina.cat>
25538
25539 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25540 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25541 string using string width.
25542 * normal/menu_text.c (grub_print_message_indented): Use
25543 grub_print_spaces and not print_spaces.
25544 (print_timeout): Likewise.
25545 (print_spaces): Move to...
25546 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25547
3fd3b8d8
RM
255482010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25549
25550 Import from Gnulib.
25551
25552 * gnulib/getdelim.c: New file.
25553 * gnulib/getline.c: Likewise.
25554
33433555
VS
255552009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25556
25557 * include/grub/list.h (grub_assert_fail): Removed.
25558 (grub_bad_type_cast_real): New function.
25559 (grub_bad_type_cast): New macro.
25560 (GRUB_AS_LIST): Use grub_bad_type_cast.
25561 (GRUB_AS_LIST_P): Likewise.
e44721e8 25562 (GRUB_AS_NAMED_LIST): Likewise.
33433555 25563 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 25564 (GRUB_AS_PRIO_LIST): Likewise.
33433555 25565 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 25566 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 25567
f5a51306
VS
255682009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25569
25570 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25571 Fix syntax error.
25572
90d1e879
RM
255732009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25574
25575 * configure.ac: Check for TARGET_CFLAGS initialization before we
25576 initialize it ourselves (sigh).
25577 Move a few modifications to TARGET_CFLAGS to be unconditional
25578 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25579 eh_frame)
25580
25581 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25582 * term/i386/pc/at_keyboard.c
25583 (keyboard_controller_wait_untill_ready): Likewise.
25584 (keyboard_controller_led): Rename `led_status' paramter to avoid
25585 name conflict.
25586
465b5a81 255872009-12-28 Carles Pina i Estany <carles@pina.cat>
25588
25589 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25590 quotes.
25591
c181849b
VS
255922009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25593
25594 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25595
9c8739a4
VS
255962009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25597
25598 * normal/menu_text.c (grub_print_message_indented): Prevent
25599 past-the-end-of-array dereference.
25600
3e74249c
VS
256012009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25602
25603 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25604 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25605
64fd18ed 256062009-12-27 Carles Pina i Estany <carles@pina.cat>
25607
25608 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25609 * normal/main.c (grub_normal_read_line): Remove a space from the
25610 default prompt.
25611
714af9b9 256122009-12-27 Carles Pina i Estany <carles@pina.cat>
25613
25614 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25615 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25616 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25617 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25618 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25619 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25620 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25621
82f3e412 256222009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 25623
25624 * video/readers/jpeg.c (cmd): Declare.
25625 (grub_cmd_jpegtest): Use `grub_command_t' type.
25626 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25627 Assign to `cmd'.
25628 (GRUB_MOD_FINI): Use `cmd' to unregister.
25629 * video/readers/png.c (cmd): Declare.
25630 (grub_cmd_pngtest): Use `grub_command_t' type.
25631 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25632 Assign to `cmd'.
25633 (GRUB_MOD_FINI): Use `cmd' to unregister.
25634 * video/readers/tga.c (cmd): Declare.
25635 (grub_cmd_tgatest): Use `grub_command_t' type.
25636 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25637 Assign to `cmd'.
25638 (GRUB_MOD_FINI): Use `cmd' to unregister.
25639
82f3e412 256402009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 25641
25642 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25643 stops.
25644 * kern/corecmd.c (grub_register_core_commands): Likewise.
25645 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25646 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25647 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25648 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25649 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25650 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25651 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25652 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25653 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25654 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25655 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25656 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25657 * normal/handler.c (insert_handler): Likewise.
25658 * normal/main.c (GRUB_MOD_INIT): Likewise.
25659 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25660
fdcdbb66 256612009-12-26 Carles Pina i Estany <carles@pina.cat>
25662
25663 * commands/help.c (grub_cmd_help): Print the command name before the
25664 summary.
25665 (GRUB_MOD_INIT): Remove command name from the summary.
25666 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 25667 string as summary.
fdcdbb66 25668 * lib/arg.c (find_long): Print the command name before the summary.
25669 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25670 summary.
25671 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25672 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25673 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25674 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25675 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25676 * commands/date.c (GRUB_MOD_INIT): Likewise.
25677 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25678 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25679 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25680 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25681 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25682 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25683 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25684 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25685 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25686 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25687 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25688 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25689 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25690 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25691 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25692 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25693 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25694 * commands/password.c (GRUB_MOD_INIT): Likewise.
25695 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25696 * commands/read.c (GRUB_MOD_INIT): Likewise.
25697 * commands/search.c (GRUB_MOD_INIT): Likewise.
25698 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25699 * commands/test.c (GRUB_MOD_INIT): Likewise.
25700 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25701 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25702 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25703 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25704 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25705 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25706 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25707 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25708 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25709 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25710 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25711 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25712 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25713 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25714
9c288be2
VS
257152009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25716
25717 Use search command for preliminar UUID search.
25718
25719 * commands/search.c: Split into ...
25720 * commands/search_wrap.c: ...this
25721 * commands/search.c: ...and this.
25722 * commands/search_file.c: New file.
25723 * commands/search_label.c: New file.
25724 * commands/search_uuid.c: New file.
25725 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25726 Add commands/search_wrap.c, commands/search_file.c,
25727 commands/search_label.c and commands/search_uuid.c.
25728 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25729 (search_mod_SOURCES): Set to commands/search_wrap.c.
25730 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25731 search_label.mod.
25732 (search_fs_file_mod_SOURCES): New variable.
25733 (search_fs_file_mod_CFLAGS): Likewise.
25734 (search_fs_file_mod_LDFLAGS): Likewise.
25735 (search_label_mod_SOURCES): Likewise.
25736 (search_label_mod_CFLAGS): Likewise.
25737 (search_label_mod_LDFLAGS): Likewise.
25738 (search_fs_uuid_mod_SOURCES): New variable.
25739 (search_fs_uuid_mod_CFLAGS): Likewise.
25740 (search_fs_uuid_mod_LDFLAGS): Likewise.
25741 (fs_file_mod_SOURCES): Removed.
25742 (fs_file_mod_CFLAGS): Likewise.
25743 (fs_file_mod_LDFLAGS): Likewise.
25744 (fs_uuid_mod_SOURCES): Removed.
25745 (fs_uuid_mod_CFLAGS): Likewise.
25746 (fs_uuid_mod_LDFLAGS): Likewise.
25747 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25748 Set to util/grub-install.in.
25749 * disk/fs_file.c: Removed.
25750 * disk/fs_uuid.c: Likewise.
25751 * include/grub/search.h: New file.
25752 * util/grub-install.in: Handle sparc64.
25753 Create and use load.cfg.
25754 * util/sparc64/ieee1275/grub-install.in: Removed.
25755
db943399
VS
257562009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25757
25758 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25759 Ignore return status if CF is cleared.
25760 (grub_biosdisk_get_diskinfo_standard): Likewise.
25761
3fdae612
RM
257622009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25763
25764 * term/i386/pc/at_keyboard.c
25765 (keyboard_controller_wait_untill_ready): New function.
25766 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25767 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25768 for keyboard polling, rather than duplicate the same loop. This
25769 saves a few bytes in code size.
25770
7ebaa2b4
VS
257712009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25772
25773 Support for (pxe[:server[:gateway]]) syntax and
25774 use environment variable for PXE.
25775
25776 * commands/i386/pc/pxecmd.c (options): Removed.
25777 (print_ip): Removed.
25778 (grub_cmd_pxe): Removed
25779 (grub_cmd_pxe_unload): New function.
25780 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25781 (grub_pxe_your_ip): Made static.
25782 (grub_pxe_default_server_ip): Likewise.
25783 (grub_pxe_default_gateway_ip): Likewise.
25784 (grub_pxe_blksize): Likewise.
25785 (parse_ip): New function.
25786 (grub_pxe_open): Support server and gateway specification.
25787 (grub_pxe_close): Free disk->data.
25788 (grub_pxefs_open): Use disk->data.
25789 (grub_pxefs_read): Likewise.
25790 (grub_env_write_readonly): New function.
25791 (set_mac_env): Likewise.
25792 (set_env_limn_ro): Likewise.
25793 (parse_dhcp_vendor): Likewise.
25794 (grub_pxe_detect): Set the environment variables.
25795 (set_ip_env): New function.
25796 (write_ip_env): Likewise.
25797 (grub_env_write_pxe_default_server): Likewise.
25798 (grub_env_write_pxe_default_gateway): Likewise.
25799 (grub_env_write_pxe_blocksize): Likewise.
25800 (GRUB_MOD_INIT(pxe)): Set environment variables.
25801 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25802 (grub_pxe_mac_addr_t): ... this. All users updated.
25803 (grub_pxe_your_ip): Removed.
25804 (grub_pxe_server_ip): Likewise.
25805 (grub_pxe_gateway_ip): Likewise.
25806 (grub_pxe_blksize): Likewise.
25807
ec5f98ab 258082009-12-25 Carles Pina i Estany <carles@pina.cat>
25809
25810 * commands/help.c: Include `<grub/i18n.h>'.
25811 (grub_cmd_help): Gettextizze.
25812 (GRUB_MOD_INIT): Likewise.
25813 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25814 (GRUB_MOD_INIT): Gettextizze.
25815 * commands/search.c: Include `<grub/i18n.h>'.
25816 (options): Gettextizze.
25817 (GRUB_MOD_INIT): Gettextizze.
25818 * lib/arg.c: Include `<grub/i18n.h>'.
25819 (help_options): Gettextizze.
25820 (find_long): Likewise.
25821 (grub_arg_show_help): Likewise.
25822 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25823 (read_command_list): Gettextizze.
25824 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 25825 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 25826
22815526
RM
258272009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25828
25829 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25830 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25831 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25832 (led_status): New variable.
25833 (keyboard_controller_led): New function.
25834 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25835 update led status for caps lock, num lock and scroll lock.
25836
0ad46fd7
FZ
258372009-12-25 Felix Zielcke <fzielcke@z-51.de>
25838
25839 * util/hostdisk.c (open_device): Fix a comment.
25840
d0e158c2
RM
258412009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25842
25843 * util/grub-install.in (host_os): New variable.
25844 * util/i386/efi/grub-install.in (host_os): Likewise.
25845
401c0ad6
RM
258462009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25847
25848 * util/mkisofs/write.c (padblock_write): Abort when given an
25849 excedingly large embed image, instead of silently truncating it.
25850
d14d3370
RM
258512009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25852
25853 * include/multiboot.h: Indentation fixes.
25854
eeed10b4
RM
258552009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25856
25857 * include/multiboot.h (struct multiboot_aout_symbol_table)
25858 (struct multiboot_elf_section_header_table): New structure
25859 declarations (stolen from GRUB Legacy).
25860 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25861 table information.
25862
25863 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25864 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25865 type aliases.
25866
681c70ab
RM
258672009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25868
25869 * include/multiboot.h: Make comments src2texi-friendly.
25870
e4d47d8d
RM
258712009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25872
25873 For consistency with [multiboot]/docs/boot.S.
25874
25875 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25876 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25877 (MULTIBOOT_MAGIC2): Rename from this ...
25878 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25879
a0b70bda
RM
258802009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25881
25882 * include/multiboot.h: Remove `<grub/types.h>'.
25883 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25884 types. Update all users.
25885
61ba42be 258862009-12-25 Carles Pina i Estany <carles@pina.cat>
25887
25888 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25889 `couldn't' and `can not' by `cannot'.
25890 * commands/i386/pc/drivemap.c: Likewise.
25891 * disk/ata.c: Likewise.
25892 * disk/ieee1275/nand.c: Likewise.
25893 * fs/affs.c: Likewise.
25894 * fs/fat.c: Likewise.
25895 * fs/hfs.c: Likewise.
25896 * fs/hfsplus.c: Likewise.
25897 * fs/iso9660.c: Likewise.
25898 * fs/jfs.c: Likewise.
25899 * fs/minix.c: Likewise.
25900 * fs/reiserfs.c: Likewise.
25901 * fs/sfs.c: Likewise.
25902 * fs/udf.c: Likewise.
25903 * fs/ufs.c: Likewise.
25904 * fs/xfs.c: Likewise.
25905 * loader/powerpc/ieee1275/linux.c: Likewise.
25906 * loader/sparc64/ieee1275/linux.c: Likewise.
25907 * util/grub-probe.c: Likewise.
25908 * util/misc.c: Likewise.
25909
7fd0baee 259102009-12-24 Carles Pina i Estany <carles@pina.cat>
25911
25912 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25913 grub_errno calls.
25914 * commands/acpi.c: Likewise.
25915 * commands/blocklist.c: Likewise.
25916 * commands/efi/loadbios.c: Likewise.
25917 * commands/i386/pc/drivemap.c: Likewise.
25918 * commands/loadenv.c: Likewise.
25919 * commands/memrw.c: Likewise.
25920 * commands/password.c: Likewise.
25921 * commands/videotest.c: Likewise.
25922 * disk/ata.c: Likewise.
25923 * disk/ata_pthru.c: Likewise.
25924 * disk/dmraid_nvidia.c: Likewise.
25925 * disk/ieee1275/nand.c: Likewise.
25926 * disk/ieee1275/ofdisk.c: Likewise.
25927 * disk/loopback.c: Likewise.
25928 * disk/lvm.c: Likewise.
25929 * disk/mdraid_linux.c: Likewise.
25930 * disk/raid.c: Likewise.
25931 * disk/raid6_recover.c: Likewise.
25932 * disk/scsi.c: Likewise.
25933 * efiemu/main.c: Likewise.
25934 * efiemu/mm.c: Likewise.
25935 * efiemu/pnvram.c: Likewise.
25936 * efiemu/symbols.c: Likewise.
25937 * font/font.c: Likewise.
25938 * fs/cpio.c: Likewise.
25939 * fs/hfsplus.c: Likewise.
25940 * fs/iso9660.c: Likewise.
25941 * fs/jfs.c: Likewise.
25942 * fs/minix.c: Likewise.
25943 * fs/ntfs.c: Likewise.
25944 * fs/ntfscomp.c: Likewise.
25945 * fs/reiserfs.c: Likewise.
25946 * fs/ufs.c: Likewise.
25947 * fs/xfs.c: Likewise.
25948 * gettext/gettext.c: Likewise.
25949 * include/grub/auth.h: Likewise.
25950 * kern/elf.c: Likewise.
25951 * kern/file.c: Likewise.
25952 * kern/ieee1275/init.c: Likewise.
25953 * kern/ieee1275/mmap.c: Likewise.
25954 * kern/ieee1275/openfw.c: Likewise.
25955 * kern/powerpc/dl.c: Likewise.
25956 * kern/sparc64/dl.c: Likewise.
25957 * lib/arg.c: Likewise.
25958 * loader/i386/bsd.c: Likewise.
25959 * loader/i386/bsdXX.c: Likewise.
25960 * loader/i386/efi/linux.c: Likewise.
25961 * loader/i386/efi/xnu.c: Likewise.
25962 * loader/i386/ieee1275/linux.c: Likewise.
25963 * loader/i386/linux.c: Likewise.
25964 * loader/i386/multiboot.c: Likewise.
25965 * loader/i386/pc/linux.c: Likewise.
25966 * loader/i386/pc/multiboot2.c: Likewise.
25967 * loader/i386/xnu.c: Likewise.
25968 * loader/ieee1275/multiboot2.c: Likewise.
25969 * loader/macho.c: Likewise.
25970 * loader/machoXX.c: Likewise.
25971 * loader/multiboot2.c: Likewise.
25972 * loader/multiboot_loader.c: Likewise.
25973 * loader/powerpc/ieee1275/linux.c: Likewise.
25974 * loader/sparc64/ieee1275/linux.c: Likewise.
25975 * loader/xnu.c: Likewise.
25976 * loader/xnu_resume.c: Likewise.
25977 * mmap/i386/pc/mmap.c: Likewise.
25978 * normal/menu_viewer.c: Likewise.
25979 * partmap/acorn.c: Likewise.
25980 * partmap/amiga.c: Likewise.
25981 * partmap/apple.c: Likewise.
25982 * script/lexer.c: Likewise.
25983 * term/gfxterm.c: Likewise.
25984 * term/i386/pc/serial.c: Likewise.
25985 * term/i386/pc/vga.c: Likewise.
25986 * term/ieee1275/ofconsole.c: Likewise.
25987 * term/terminfo.c: Likewise.
25988 * video/bitmap.c: Likewise.
25989 * video/efi_gop.c: Likewise.
25990 * video/efi_uga.c: Likewise.
25991 * video/fb/video_fb.c: Likewise.
25992 * video/i386/pc/vbe.c: Likewise.
25993 * video/readers/tga.c: Likewise.
25994 * video/video.c: Likewise.
25995
0ad46fd7 259962009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
25997
25998 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25999 * commands/lspci.c: Likewise.
26000 * commands/probe.c: Likewise.
26001 * commands/xnu_uuid.c: Likewise.
26002 * conf/i386-coreboot.rmk: Likewise.
26003 * conf/i386-efi.rmk: Likewise.
26004 * conf/i386-ieee1275.rmk: Likewise.
26005 * conf/i386-pc.rmk: Likewise.
26006 * conf/powerpc-ieee1275.rmk: Likewise.
26007 * conf/sparc64-ieee1275.rmk: Likewise.
26008 * conf/x86_64-efi.rmk: Likewise.
26009 * fs/i386/pc/pxe.c: Likewise.
26010 * gettext/gettext.c: Likewise.
26011 * include/grub/efi/graphics_output.h: Likewise.
26012 * include/grub/i386/pc/memory.h: Likewise.
26013 * kern/env.c: Likewise.
26014 * kern/i386/qemu/startup.S: Likewise.
26015 * lib/i386/pc/biosnum.c: Likewise.
26016 * lib/i386/relocator.c: Likewise.
26017 * lib/i386/relocator_asm.S: Likewise.
26018 * lib/relocator.c: Likewise.
26019 * loader/i386/bsd.c: Likewise.
26020 * loader/i386/multiboot.c: Likewise.
26021 * loader/i386/pc/chainloader.c: Likewise.
26022 * loader/i386/xnu.c: Likewise.
26023 * loader/xnu.c: Likewise.
26024 * normal/main.c: Likewise.
26025 * normal/menu_text.c: Likewise.
26026 * util/getroot.c: Likewise.
26027 * util/grub-mkconfig_lib.in: Likewise.
26028 * util/grub.d/00_header.in: Likewise.
26029 * util/i386/pc/grub-mkimage.c: Likewise.
26030 * util/mkisofs/eltorito.c: Likewise.
26031 * util/mkisofs/exclude.h: Likewise.
26032 * util/mkisofs/hash.c: Likewise.
26033 * util/mkisofs/iso9660.h: Likewise.
26034 * util/mkisofs/joliet.c: Likewise.
26035 * util/mkisofs/mkisofs.c: Likewise.
26036 * util/mkisofs/mkisofs.h: Likewise.
26037 * util/mkisofs/multi.c: Likewise.
26038 * util/mkisofs/name.c: Likewise.
26039 * util/mkisofs/rock.c: Likewise.
26040 * util/mkisofs/tree.c: Likewise.
26041 * util/mkisofs/write.c: Likewise.
26042 * video/efi_gop.c: Likewise.
26043
009ec743
VS
260442009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
26045
26046 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
26047 size counting.
26048
0ad46fd7 260492009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
26050
26051 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
26052 * genmk.rb (class SCRIPT): Modify the target file instead of source.
26053
d3d30ea0
VS
260542009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26055
26056 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
26057 (GRUB_MOD_INIT(memrw)): Update help line.
26058
a34f5c70
VS
260592009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26060
26061 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
26062 Use grub_extcmd_t. All users updated.
26063 (options): New variable.
26064 (grub_cmd_read): Restructure for readability. Support "-v" option.
26065 (grub_cmd_write): Restructure for readability.
26066
0ad46fd7 260672009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
26068
26069 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
26070
0ad46fd7 260712009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
26072
26073 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
26074 with the actual contents of the correspondending make variable.
26075 * util/grub-mkrescue.in (pkglib_DATA): New variable.
26076 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
26077 specifying `*.lst' and `efiemu??.o'
26078
0ad46fd7 260792009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
26080
26081 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
26082 after function name.
26083 Noticed by Rene Engelhard <rene@debian.org>.
26084
dc77a799
VS
260852009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26086
26087 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
26088 (options): New variable.
26089 (iospace): Likewise.
26090 (grub_lspci_iter): List IO spaces if "-i" was given.
26091 (grub_cmd_lspci): Parse options.
26092 (GRUB_MOD_INIT(lspci)): Use extcmd.
26093 (GRUB_MOD_FINI(lspci)): Likewise.
26094
0ad46fd7 260952009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
26096
26097 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26098 `function' keyword.
26099 Patch by Tony Mancill <tmancill@debian.org>.
26100
b5d5993b
VS
261012009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26102
26103 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26104 (grub_uhci_portstatus): Likewise.
26105 (grub_uhci_portstatus): Add necessary delay.
11d18281 26106 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 26107
941903f2 261082009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 26109
941903f2 26110 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26111 (GRUB_MOD_INIT): Likewise.
26112 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 26113 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26114 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 26115 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26116 (enable_rom_area): Likewise.
26117 (GRUB_MOD_INIT): Likewise.
26118 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26119 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26120 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26121 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26122 * commands/hexdump.c (options): Likewise.
26123 * commands/i386/cpuid.c (options): Likewise.
26124 (GRUB_MOD_INIT): Likewise.
26125 * commands/i386/pc/drivemap.c (options): Likewise.
26126 (GRUB_MOD_INIT): Likewise.
26127 * commands/i386/pc/halt (options): Likewise.
26128 (GRUB_MOD_INIT): Likewise.
26129 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26130 * commands/i386/pc/pxecmd.c (options): Likewise.
26131 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26132 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26133 * commands/keystatus.c (options): Likewise.
26134 (GRUB_MOD_INIT): Likewise.
26135 * commands/loadenv.c (options): Likewise.
26136 * commands/ls.c (options): Likewise.
26137 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26138 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26139 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26140 * commands/parttool.c (helpmsg): Likewise.
26141 * commands/probe.c (options): Likewise.
26142 * commands/read.c (GRUB_MOD_INIT): Likewise.
26143 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26144 * commands/search.c (options): Likewise.
26145 * commands/sleep.c (options): Likewise.
26146 * commands/test.c (GRUB_MOD_INIT): Likewise.
26147 * commands/true.c (GRUB_MOD_INIT): Likewise.
26148 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26149 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26150 * lib/arg.c (help_options): Likewise.
e9bbb4e7 26151 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26152 `$(XGETTEXT)'.
98a50553 26153 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 26154
0ad46fd7 261552009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 26156
ef3c2c3a 26157 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
26158 instead of specifying them explicit.
26159
7922f68b
RM
261602009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26161
26162 * NEWS: Add grub-probe support for GNU/Hurd.
26163
537ce47f
RM
261642009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26165
26166 * NEWS: gettext was added after 1.97.
26167
9b214e3a
RM
261682009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26169
26170 * util/mkisofs/msdos_partition.h: New file (based on
26171 include/grub/msdos_partition.h).
26172 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26173 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26174 (ld_options, main): Recognize --protective-msdos-label.
26175 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26176 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26177 (padblock_write): If `use_protective_msdos_label' is set, patch a
26178 protective DOS-style label in the output image.
26179
26180 * util/grub-mkrescue.in: Use --protective-msdos-label.
26181
e9309813
RM
261822009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26183
26184 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26185 boot.
26186
0ae56929
RM
261872009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26188
26189 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26190 variables.
26191 (ld_options, main): Recognize `--embedded-boot'.
26192 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26193 declarations.
26194 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26195 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26196 (padblock_write): Likewise. Rewrite to support embedded boot image.
26197
26198 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26199 for BIOS-based disk boot instead of only ElTorito.
26200
b15937b1
RM
262012009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26202
26203 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26204 build (not needed for bootstrap).
26205
52cc3ce0
RM
262062009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26207
26208 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26209 from i386-pc build (not needed for bootstrap).
26210 Rewrite a pair of strings.
26211
36f5ff04
RM
262122009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26213
26214 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26215
973c6c85 262162009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
26217
26218 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26219
05d21547
AB
262202009-12-21 Andreas Born <futur.andy@googlemail.com>
26221
26222 * kern/env.c (grub_env_context_open): Mark exported variable for
26223 reexport.
26224
0175d51f
AB
262252009-12-21 Andreas Born <futur.andy@googlemail.com>
26226
26227 * kern/env.c (grub_env_export): Create nonexistent variables before
26228 exporting.
26229
7f39d92f 262302009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 26231
7f39d92f 26232 * include/grub/auth.h: Include `<grub/i18n.h>'.
26233 (GRUB_GET_PASSWORD): Gettextizze string.
26234 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26235 menu_text.c.
26236 (grub_utf8_to_ucs4_alloc): Fix indentation.
26237 (grub_print_ucs4): Likewise.
26238 (grub_getstringwidth): Likewise.
26239 (print_message_indented): New declaration.
26240 * normal/auth.c: Include `<grub/i18n.h>'.
26241 (grub_auth_check_authentication): Gettexttize string.
26242 * normal/cmdline.c: Include `<grub/i18n.h>'.
26243 (grub_cmdline_get): Gettextizze.
26244 * normal/color.c: Include `<grub/i18n.h>'.
26245 (grub_parse_color_name_pair): Gettexttize strings.
26246 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26247 string (use `print_message_indented').
26248 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26249 `include/grub/normal.h'.
26250 (print_message_indented): Renamed to ...
26251 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26252 used in normal/main.c).
26253 (print_message): Use `grub_print_message_indented' instead of
26254 `print_message_indented'.
26255 (print_timeout): Likewise.
26256 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26257 (grub_normal_print_device_info): Gettexttize strings.
26258 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26259
3041d898
VS
262602009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26261
26262 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26263 of arguments. Return number of tokens and not arguments. All users
26264 updated.
26265
de15bf8e
VS
262662009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26267
26268 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26269 non-MSDOS paritions.
26270
e0a6ca52
VS
262712009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26272
26273 * include/grub/types.h (UNUSED): Removed since it conflicts with
26274 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26275 Reported by Grégoire Sutre.
26276
b99518d1 262772009-12-19 Carles Pina i Estany <carles@pina.cat>
26278
26279 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26280 (grub_print_ucs4_alloc): Likewise.
26281 (grub_getstringwidth): Likewise.
26282 * normal/main.c (grub_normal_init_page): Gettextize version string.
26283 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26284 (getstringwidth): Renamed to ...
26285 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26286 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26287 (grub_print_ucs4): Remove `static' qualifer (now used in
26288 normal/main.c).
26289 * po/POTFILES: Add normal/main.c.
26290
bfd5e52b 262912009-12-19 Carles Pina i Estany <carles@pina.cat>
26292
26293 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26294 (print_message_indented): Add `margin_left' and `margin_right'
26295 parameters.
26296 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26297 strings.
26298 (print_timeout): Use `print_message_indented' to print the message.
26299 Deletes `second_stage' parameter.
26300 (run_menu): Update `print_timeout' calls.
26301
5a1ad2b9
VS
263022009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26303
26304 Fix console palette on OpenFirmware.
26305
26306 * term/ieee1275/ofconsole.c (MAX): Removed.
26307 (colors): Redone based on VGA palette.
26308 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26309 colors are supported.
26310 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26311
b045f00a
VS
263122009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26313
26314 Fix potential EfiEmu double prepare.
26315
26316 * efiemu/main.c (prepared): New variable
26317 (grub_efiemu_unload): Set prepare to '0'.
26318 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26319
26320 set_virtual_address_map support.
26321
26322 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26323 prototype.
26324 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26325 prototype.
26326 (grub_efiemu_crc32): Likewise.
26327 (grub_efiemu_crc64): Likewise.
26328 (grub_efiemu_set_virtual_address_map): Likewise.
26329 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26330 New definition.
26331 (grub_autoefi_set_virtual_address_map): Likewise.
26332 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26333 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26334 Restructure flow to accomodate it.
26335 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26336 (grub_efiemu_crc): Recompute CRC32.
26337 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26338 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26339 * efiemu/symbols.c (relocated_handle): New variable.
26340 (grub_efiemu_free_syms): Free relocated_handle.
26341 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26342 (grub_efiemu_write_sym_markers): New function.
26343 (grub_efiemu_set_virtual_address_map): Likewise.
26344
26345 Newer XNU parameters.
26346
26347 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26348 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26349 (grub_xnu_fill_devicetree): New prototype.
26350 (grub_xnu_heap_real_start): New variable.
26351 * loader/xnu.c (get_name_ptr): New function.
26352 (grub_xnu_load_driver): Fill namelen and name.
26353
26354 64-bit xnu support.
26355
26356 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26357 and 'loader/macho64.c'.
26358 * conf/i386-pc.rmk: Likewise.
26359 * conf/x86_64-efi.rmk: Likewise.
26360 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26361 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26362 * include/grub/macho.h (grub_macho_segment64): New structure.
26363 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26364 (grub_macho_size32): ... to this.
26365 (grub_macho32_get_entry_point): Renamed from ...
26366 (grub_macho_get_entry_point32): ... to this.
26367 (grub_macho_contains_macho64): New prototype.
26368 (grub_macho_size64): Likewise.
26369 (grub_macho_get_entry_point64): Likewise.
26370 (grub_macho32_load): Renamed from ...
26371 (grub_macho_load32): ... to this.
26372 (grub_macho32_filesize): Renamed from ...
26373 (grub_macho_filesize32): ... to this.
26374 (grub_macho32_readfile): Renamed from ...
26375 (grub_macho_readfile32): ... to this.
26376 (grub_macho_filesize64): New prototype.
26377 (grub_macho_readfile64): Likewise.
26378 (grub_macho_parse32): Likewise.
26379 (grub_macho_parse64): Likewise.
26380 * loader/macho.c: Split into ...
26381 * loader/machoXX.c: ... and this. Replace 32 with XX.
26382 * loader/macho32.c: New file.
26383 * loader/macho64.c: Likewise.
26384 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26385 (grub_cmd_xnu_kernel): Make 32-bit only.
26386 (grub_cmd_xnu_kernel64): New function.
26387 (grub_xnu_load_driver): Support Mach-O 64.
26388 (grub_cmd_xnu_mkext): Likewise.
26389 * util/grub.d/30_os-prober.in (osx_entry): New function.
26390 Generate entries for 64-bit boot too.
26391
26392 Eliminate ad-hoc tree format in XNU and EfiEmu.
26393
26394 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26395 * efiemu/pnvram.c: Rewritten to use environment variables.
26396 All users updated.
26397
26398 Inline utf16_to_utf8.
26399
26400 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26401 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26402 All users updated.
26403 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26404
26405 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26406 * commands/usbtest.c (grub_usb_get_string): ... move here.
26407 (usb_print_str): Fix error handling.
26408 * include/grub/usb.h (grub_usb_get_string): Remove.
26409
26410 UTF-8 to UTF-16 transformation.
26411
26412 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26413 (charset_mod_SOURCES): New variable.
26414 (charset_mod_CFLAGS): Likewise.
26415 (charset_mod_LDFLAGS): Likewise.
26416 * include/grub/utf.h: New file.
26417 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26418
26419 Support for device properties.
26420
26421 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26422 (grub_xnu_devprop_device_header): Likewise.
26423 (grub_xnu_devprop_device_descriptor): Likewise.
26424 (grub_xnu_devprop_add_device): New prototype.
26425 (grub_xnu_devprop_remove_device): Likewise.
26426 (grub_xnu_devprop_remove_property): Likewise.
26427 (grub_xnu_devprop_add_property_utf8): Likewise.
26428 (grub_xnu_devprop_add_property_utf16): Likewise.
26429 (grub_cpu_xnu_init): Likewise.
26430 (grub_cpu_xnu_fini): Likewise.
26431 (grub_cpu_xnu_unload): Likewise.
26432 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26433 (property_descriptor): Likewise.
26434 (devices): New variable.
26435 (grub_xnu_devprop_remove_property): New function.
26436 (grub_xnu_devprop_add_device): Likewise.
26437 (grub_xnu_devprop_remove_device): Likewise.
26438 (grub_xnu_devprop_add_property): Likewise.
26439 (grub_xnu_devprop_add_property_utf8): Likewise.
26440 (grub_xnu_devprop_add_property_utf16): Likewise.
26441 (hextoval): Likewise.
26442 (grub_cpu_xnu_fill_devprop): Likewise.
26443 (grub_cmd_devprop_load): Likewise.
26444 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26445 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26446 (cmd_devprop_load): New variable.
26447 (grub_cpu_xnu_init): New function.
26448 (grub_cpu_xnu_fini): Likewise.
26449 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26450 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26451 (grub_cmd_xnu_devtree): Likewise.
26452 (hextoval): New function.
26453 (unescape): Likewise.
26454 (grub_xnu_fill_devicetree): Likewise.
26455
26456 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26457 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26458
0945f181
VS
264592009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26460
26461 Workaround for broken ATI VBE.
26462
26463 * video/i386/pc/vbe.c (last_set_mode): New variable.
26464 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26465 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26466 (grub_video_vbe_setup): Don't check for reserved flag.
26467
0ad46fd7 264682009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
26469
26470 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26471 the `find' command.
26472
c179ebe4
VS
264732009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26474
26475 UUID support for HFS.
26476
26477 * fs/hfs.c (grub_hfs_uuid): New function.
26478 (grub_hfs_fs): New value .uuid.
26479 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26480
0ad46fd7 264812009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
26482
26483 Fix a segfault with parsing unknown long options.
26484
26485 * util/grub-mkrelpath.c (options): Zero terminate it.
26486
c4a3e41a
CPE
264872009-12-13 Carles Pina i Estany <carles@pina.cat>
26488
26489 * include/grub/misc.h (grub_puts): New declaration.
26490 (grub_puts_): Likewise.
a22008a6 26491 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
26492 (grub_puts_): Likewise.
26493
2e8a7602
RM
264942009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26495
26496 * util/grub-probe.c (probe): Improve error message.
26497
b50b77b9
RM
264982009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26499
26500 * loader/i386/multiboot_elfxx.c
26501 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26502 initialization.
26503
265042009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26505
26506 Relocator framework
26507
26508 * loader/i386/xnu_helper.S: Removed. All users updated.
26509 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26510 (relocator_mod_SOURCES): New variable.
26511 (relocator_mod_CFLAGS): Likewise.
26512 (relocator_mod_LDFLAGS): Likewise.
26513 (relocator_mod_ASFLAGS): Likewise.
26514 * conf/x86_64.rmk: Likewise.
26515 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26516 (grub_multiboot_payload_entry_offset): Likewise.
26517 (grub_multiboot_forward_relocator): Likewise.
26518 (grub_multiboot_forward_relocator_end): Likewise.
26519 (grub_multiboot_backward_relocator): Likewise.
26520 (grub_multiboot_backward_relocator_end): Likewise.
26521 (grub_multiboot_payload_eip): New variable.
26522 (grub_multiboot_payload_orig): Likewise.
26523 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26524 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26525 * include/grub/i386/memory.h
26526 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26527 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26528 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26529 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26530 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26531 * include/grub/i386/relocator.h: New file.
26532 * include/grub/x86_64/relocator.h: Likewise.
26533 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26534 (XNU_RELOCATOR): New macro.
26535 (grub_xnu_launcher_start): Remove.
26536 (grub_xnu_launcher_end): Likewise.
26537 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26538 (grub_xnu_heap_real_start): Remove.
26539 (grub_xnu_heap_start): Change to void *. All users updated.
26540 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26541 * lib/i386/relocator.c: New file.
26542 * lib/i386/relocator_asm.S: Likewise.
26543 * lib/i386/relocator_backward.S: Likewise.
26544 * lib/mips/relocator.c: Likewise.
26545 * lib/mips/relocator_asm.S: Likewise.
26546 * lib/relocator.c: Likewise.
26547 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26548 (entry): Removed.
26549 (playground): Likewise.
26550 (grub_multiboot_payload_orig): New variable.
26551 (grub_multiboot_payload_dest): Likewise.
26552 (grub_multiboot_payload_size): Likewise.
26553 (grub_multiboot_payload_eip): Likewise.
26554 (grub_multiboot_payload_esp): Likewise.
26555 (grub_multiboot_boot): Use grub_relocator32_boot.
26556 (grub_multiboot_unload): Free relocators.
26557 (grub_multiboot): Setup stack. Use relocators.
26558 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26559 (grub_multiboot_load_elfXX): Use relocators.
26560 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26561 (grub_multiboot_payload_size): Likewise.
26562 (grub_multiboot_payload_dest): Likewise.
26563 (grub_multiboot_payload_entry_offset): Likewise.
26564 (grub_multiboot_forward_relocator): Likewise.
26565 (grub_multiboot_backward_relocator): Likewise.
26566 (grub_multiboot_real_boot): Likewise.
26567 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26568 (grub_xnu_entry_point): Likewise.
26569 (grub_xnu_arg1): Likewise.
26570 (grub_xnu_stack): Likewise.
26571 (grub_xnu_launch): Removed.
26572 (grub_xnu_boot_resume): New function.
26573 (grub_xnu_boot): Use relocators.
26574 * loader/i386/xnu_helper.S: Removed.
26575 * loader/xnu.c (grub_xnu_heap_start): New variable.
26576 (grub_xnu_heap_size): Likewise.
26577 (grub_xnu_heap_malloc): Use relocators.
26578 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26579
29eb90c6
VS
265802009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26581
26582 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26583 anything.
26584
31027430
CPE
265852009-12-13 Carles Pina i Estany <carles@pina.cat>
26586
26587 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26588 GRUB_ERR_NONE before calling grub_env_set.
26589
dc0c71d9
RM
265902009-12-12 Robert Millan <rmh@aybabtu.com>
26591
26592 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26593 * genmk.rb (video): New variable.
26594 (CLEANFILES, VIDEOFILES): Add #{video}.
26595 (#{video}): New target rule.
26596 * genvideolist.sh: New file.
26597 * Makefile.in (pkglib_DATA): Add video.lst.
26598 (video.lst): New target rule.
26599 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26600 `video.lst'.
26601 * util/grub.d/30_os-prober.in: Replace `vbe' with
26602 ${GRUB_VIDEO_BACKEND}.
26603
2a4bfcf0
RM
266042009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26605
26606 * THANKS: Add David Miller.
26607
2a3aa4d5
RM
266082009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26609
26610 libpciaccess support.
26611
26612 * Makefile.in (LIBPCIACCESS): New variable.
26613 (enable_grub_emu_pci): Likewise.
26614 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26615 util/pci.c and commands/lspci.c.
26616 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26617 * configure.ac (grub-emu-pci): New option.
26618 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26619 (grub_pci_device_unmap_range): Likewise.
26620 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26621 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26622 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26623 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26624 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26625 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26626 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26627 * include/grub/pciutils.h: New file.
26628 * util/pci.c: Likewise.
26629
0ad46fd7 266302009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
26631
26632 * util/misc.c: Don't include <errno.h> twice.
26633
0ad46fd7 266342009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
26635
26636 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26637 name in an error message.
26638 (grub_biosdisk_rw): Likewise.
26639
2e59983c
VS
266402009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26641
26642 Eliminate NTFS 4Gib barrier.
26643
26644 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26645 (read_run_data): Likewise.
26646 (grub_ntfs_read_run_list): Likewise.
26647 (grub_ntfs_read_block): Likewise.
26648 (grub_ntfs_iterate_dir): Likewise.
26649 (read_mft): Likewise.
26650 (read_data): Likewise.
26651 Use COM_LOG_LEN.
26652 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26653 to avoid 64-bit division
26654 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26655 (grub_ntfs_rlst): Use grub_disk_addr_t.
26656
71ee178a
VS
266572009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26658
26659 Eliminate grub-fstest 4Gib barrier.
26660
26661 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26662 (read_file): Fix error reporting.
26663
2520d4b8
VS
266642009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26665
26666 Eliminate hexdump 4Gib barrier.
26667
26668 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26669 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26670
e1f27065
VS
266712009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26672
26673 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26674 Fixes amarsh bug.
26675
1a0f7f45
RM
266762009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26677
26678 Remove miscellaneous files in distclean target.
26679
26680 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26681
c631d9fb
CW
266822009-12-09 Colin Watson <cjwatson@ubuntu.com>
26683
26684 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26685 if they're already set. This resolves the conflict between my
26686 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26687 fixing the --grub-probe option again.
26688 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26689 change on 2009-10-06, so that we now once again source
26690 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26691
7c7b6106
RM
266922009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26693
26694 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26695 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26696 `util/devicemap.c'.
26697
e3069ec1
CPE
266982009-12-08 Carles Pina i Estany <carles@pina.cat>
26699
26700 * include/grub/misc.h (grub_printf_): New declaration.
26701 * kern/misc.c (grub_printf_): New definition.
26702 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26703 instead of `grub_printf' and `_'.
26704 * normal/menu_entry.c (store_completion): Likewise.
26705 (run): Likewise.
26706 (grub_menu_entry_run): Likewise.
26707 * normal/menu_text.c (grub_wait_after_message): Likewise.
26708 (notify_booting): Likewise.
26709 (notify_fallback): Likewise.
26710 (notify_execution_failure): Likewise.
26711
d6ceebf1
CW
267122009-12-07 Colin Watson <cjwatson@ubuntu.com>
26713
26714 * configure.ac: Check for vasprintf.
26715 * util/misc.c (asprintf): Move allocation from here ...
26716 (vasprintf): ... to here. New function.
26717 (xasprintf): New function.
26718 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26719 prototypes.
26720 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26721 * util/grub-mkfont.c (write_font): Likewise.
26722 * util/grub-probe.c (probe): Likewise.
26723 * util/hostdisk.c (make_device_name): Likewise.
26724
de6daa8b
DM
267252009-12-06 David S. Miller <davem@sunset.davemloft.net>
26726
26727 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26728 anything even prefixed with 'cdrom' as a cdrom.
26729
0ad46fd7 267302009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
26731
26732 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26733 mount points.
26734
98d3dc02
CPE
267352009-12-05 Carles Pina i Estany <carles@pina.cat>
26736
26737 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26738 grub_gettext_msg_list.
26739 (grub_gettext_gettranslation_from_position): Return const char *
26740 and not char *.
a2c1332b 26741 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
26742 returns from the list if existing there.
26743 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26744 (grub_gettext_delete_list): Delete the list.
26745 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26746 lang environment variable is changed.
26747 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26748
b283f108
VS
267492009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26750
26751 Rename kernel.mod to kernel.img.
26752
26753 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26754 (kernel_mod_EXPORTS): Rename to ...
26755 (kernel_img_EXPORTS): ... this.
26756 (kernel_mod_SOURCES): Rename to ...
26757 (kernel_img_SOURCES): ... this.
26758 (kernel_mod_HEADERS): Rename to ...
26759 (kernel_img_HEADERS): ... this. All users updated.
26760 (kernel_mod_CFLAGS): Rename to ...
26761 (kernel_img_CFLAGS): ... this.
26762 (kernel_mod_ASFLAGS): Rename to ...
26763 (kernel_img_ASFLAGS): ... this.
26764 (kernel_mod_LDFLAGS): Rename to ...
26765 (kernel_img_LDFLAGS): ... this.
26766 * conf/x86_64-efi.rmk: Likewise.
26767 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26768 (read_kernel_image): ... this. All users updated.
26769 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26770
69055f8a
CPE
267712009-12-05 Carles Pina i Estany <carles@pina.cat>
26772
26773 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26774 (print_spaces): New function.
26775 (grub_print_ucs4): New function.
26776 (getstringwidth): New function.
26777 (print_message_indented): New function.
26778 (print_message): Gettexttize strings using print_message_indented.
26779 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26780 width.
26781 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 26782 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
26783 Gettextize.
26784 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26785 string.
26786 (run): Likewise.
26787 (grub_menu_entry_run): Likewise.
26788 * PO/POTFILES: Add normal/menu_entry.c.
26789
f616f51c
VS
267902009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26791
26792 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26793
57bbe3be
CPE
267942009-12-05 Carles Pina i Estany <carles@pina.cat>
26795
26796 * util/grub-install.in: Install gettext .mo files.
26797 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26798
013d67a1
CPE
267992009-12-05 Carles Pina i Estany <carles@pina.cat>
26800
26801 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26802 grub_dprintf.
26803
fb954db0
RM
268042009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26805
26806 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26807 non-firmware-dependant one in realmode.S takes precedence.
26808
6b8474f8
RM
268092009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26810
26811 * commands/halt.c: Replace misc arch-specific headers with
26812 `<grub/misc.h>'.
26813 * commands/reboot.c: Likewise.
26814 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26815 `<grub/misc.h>'.
26816 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26817 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26818 (kernel_img_SOURCES): ... to here.
26819
26820 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26821 * include/grub/i386/pc/init.h: Likewise.
26822 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26823 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26824
26825 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26826
26827 * include/grub/i386/halt.h: Remove.
26828 * include/grub/i386/reboot.h: Likewise.
26829
26830 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26831
4b2e6ca2
DM
268322009-12-03 David S. Miller <davem@sunset.davemloft.net>
26833
26834 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26835 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26836 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26837 "progname.h"
26838 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26839 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26840 (usage): Add missing comma in printf.
26841
5239348f
RM
268422009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26843
26844 Use the same reboot approach on i386 coreboot and qemu as we do on
26845 BIOS.
26846
26847 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26848 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26849 * kern/i386/reboot.c: Remove.
26850 * include/grub/i386/reboot.h (grub_reboot): Export function.
26851 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26852 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26853 0xf000:0xfff0 instead of 0xffff:0x0000.
26854 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26855 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26856
ef34cbd4
RM
268572009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26858
26859 Fix $srcdir != $objdir build.
26860
26861 * Makefile.in (po/%.po): Rewrite as ...
26862 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26863
dc9837ea
ST
268642009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26865
26866 Fix GNU/Hurd grub-install crash.
26867 * util/grub-probe.c (probe): Try to access `path' only when it is not
26868 NULL.
26869
2f857f98
VS
268702009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26871
26872 Correct module naming.
26873
26874 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26875 (GRUB_MOD_INIT(efi_uga)): ... to this
26876 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26877 (GRUB_MOD_FINI(efi_uga)): ... to this
26878 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26879 (GRUB_MOD_INIT(efi_gop)): ... to this
26880 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26881 (GRUB_MOD_FINI(efi_gop)): ... to this
26882
c5448046
RM
268832009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26884
26885 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26886 translatable.
26887 (usage): Translate `arg' strings using gettext().
26888 Thanks to Jordi Mallach for the suggestion.
26889
c85184ad
VS
268902009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26891
26892 GOP support. Based on patch from Bean
26893 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26894
26895 * video/efi_gop.c: New file.
26896 * include/grub/efi/graphics_output.h: Likewise.
26897 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26898 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26899 variables.
26900 * conf/x86_64-efi.rmk: Likewise.
26901
8a4c48d8
VS
269022009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26903
26904 Rename efi_fb to efi_uga.
26905
26906 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26907 'efi_uga.mod'.
26908 (efi_fb_mod_SOURCES): Rename this ...
26909 (efi_uga_mod_SOURCES): ... to this.
26910 (efi_fb_mod_CFLAGS): Rename this ...
26911 (efi_uga_mod_CFLAGS): ... to this.
26912 (efi_fb_mod_LDFLAGS): Rename this ...
26913 (efi_uga_mod_LDFLAGS): ... to this.
26914 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26915 'efi_uga.mod'.
26916 (efi_fb_mod_SOURCES): Rename this ...
26917 (efi_uga_mod_SOURCES): ... to this.
26918 (efi_fb_mod_CFLAGS): Rename this ...
26919 (efi_uga_mod_CFLAGS): ... to this.
26920 (efi_fb_mod_LDFLAGS): Rename this ...
26921 (efi_uga_mod_LDFLAGS): ... to this.
26922 * video/efi_fb.c: Move this ...
26923 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26924
fb6c1a7b
RM
269252009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26926
26927 * po/README: New file. Explain our PO file workflow.
26928
3bc7896c
RM
269292009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26930
26931 * po/ChangeLog: Remove. Move relevant entries back to ...
26932 * ChangeLog: ... here.
26933 * po/ca.po: Remove (now handled by TLP).
26934 * po/id.po: Likewise.
26935 * po/zh_CN.po: Likewise.
26936 * Makefile.in (LINGUAS): Initialize in a way that supports
26937 empty set.
26938
9ed4841d
RM
269392009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26940
26941 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26942 reliing on po/LINGUAS.
26943 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26944 (po/%.po): ... this.
26945
0ad46fd7 269462009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
26947
26948 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26949 (main): Use `program_name' instead of nonexistent `progname'.
26950
e30dd392
FZ
269512009-11-26 Felix Zielcke <fzielcke@z-51.de>
26952
26953 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26954 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26955
7656de4f
RM
269562009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26957
26958 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26959 commit.
26960 * conf/i386-efi.rmk: Likewise.
26961 * conf/i386-ieee1275.rmk: Likewise.
26962 * conf/powerpc-ieee1275.rmk: Likewise.
26963 * conf/sparc64-ieee1275.rmk: Likewise.
26964 * conf/x86_64-efi.rmk: Likewise.
26965
db77c4d4
FZ
269662009-11-26 Felix Zielcke <fzielcke@z-51.de>
26967
26968 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26969
a755bb04
FZ
269702009-11-26 Felix Zielcke <fzielcke@z-51.de>
26971
26972 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26973
8a4c07fd
RM
269742009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26975
26976 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26977 (grub_mkdevicemap_SOURCES): New variable.
26978 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26979 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26980 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26981 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26982 (grub_mkdevicemap_SOURCES): Remove.
26983 * conf/i386-efi.rmk: Likewise.
26984 * conf/i386-ieee1275.rmk: Likewise.
26985 * conf/i386-pc.rmk: Likewise.
26986 * conf/powerpc-ieee1275.rmk: Likewise.
26987 * conf/sparc64-ieee1275.rmk: Likewise.
26988 * conf/x86_64-efi.rmk: Likewise.
26989 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26990 (usage): Fix strings to use `program_name'.
26991 (main): Initialize gettext.
26992 * util/grub-editenv.c: Likewise.
26993 * util/grub-emu.c: Likewise.
26994 * util/grub-fstest.c: Likewise.
26995 * util/grub-mkdevicemap.c: Likewise.
26996 * util/grub-mkfont.c: Likewise.
26997 * util/grub-mkrelpath.c: Likewise.
26998 * util/grub-pe2elf.c: Likewise.
26999 * util/grub-probe.c: Likewise.
27000 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
27001 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27002 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27003
27004 * util/misc.c: Include `"progname.h"'.
27005 (progname): Remove variable.
27006 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
27007
6f61ed55
FZ
270082009-11-25 Felix Zielcke <fzielcke@z-51.de>
27009
27010 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
27011 printf and print a newline after the menuentry header line.
27012 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27013
f022876b
FZ
270142009-11-25 Felix Zielcke <fzielcke@z-51.de>
27015
27016 autoconf >= 2.60 support $(localedir).
27017
27018 * INSTALL: Note that autoconf 2.60 is required.
27019 * configure.ac (AC_PREREQ): Bump to 2.60.
27020 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
27021 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27022
6717926e
YB
270232009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
27024
27025 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
27026 aclocal is run.
27027
08806a54
RM
270282009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27029
27030 * normal/main.c (grub_normal_read_line): Fix off-by-one
27031 buffer overflow.
27032
13b33fba
RM
270332009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27034
27035 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
27036 "parser.grub" in grub_command_execute() call.
27037
4a8572e9
CPE
270382009-11-24 Carles Pina i Estany <carles@pina.cat>
27039
27040 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
27041 * conf/i386-efi.rmk: Likewise.
27042 * conf/i386-ieee1275.rmk: Likewise.
27043 * conf/i386-pc.rmk: Likewise.
27044 * conf/powerpc-ieee1275.rmk: Likewise.
27045 * conf/sparc64-ieee1275.rmk: Likewise.
27046 * conf/x86_64-efi.rmk: Likewise.
27047 * gettext/gettex.c: Include <grub/i18n.h>.
27048 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
27049 here ...
27050 * include/grub/i18n.h: ... to here
27051 * include/grub/i18n.h: ... to here.
27052 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 27053 (grub_gettext_dummy): Move above user.
4a8572e9 27054
bee48093
FZ
270552009-11-24 Felix Zielcke <fzielcke@z-51.de>
27056
27057 * util/Makefile.in (install-local): Convert a `for' into a normal
27058 shell expansion.
27059
a031e91c
RM
270602009-11-24 Robert Millan <rmh.grub@aybabtu.com>
27061
27062 * autogen.sh: Add automake call.
27063 * config.guess: Remove.
27064 * config.sub: Likewise.
27065 * install-sh: Likewise.
27066
26bec39d
FZ
270672009-11-24 Felix Zielcke <fzielcke@z-51.de>
27068
27069 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
27070
8e2532fd
FZ
270712009-11-24 Felix Zielcke <fzielcke@z-51.de>
27072
27073 * util/Makefile.in (install-local): Convert a make `$(foreach)'
27074 function to a normal shell `for'.
27075
fefa1b7d
FZ
270762009-11-24 Felix Zielcke <fzielcke@z-51.de>
27077
27078 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27079
4501250b
FZ
270802009-11-24 Felix Zielcke <fzielcke@z-51.de>
27081
27082 * util/grub-mkrelpath.c: New file.
27083 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
27084 (grub_mkrelpath_SOURCES): New variable.
27085 * include/grub/util/misc.h: New function prototype.
27086 * util/misc.c (make_system_path_relative_to_its_root): New function.
27087
27088 * util/grub-mkconfig_lib.in (bindir): New variable.
27089 (grub_mkrelpath): Likewise.
27090 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27091
27092 * util/probe.c (probe): Make the file path relative to its root.
27093 Change a info message to use the GRUB path. Enable again the
27094 check if we can read the file with GRUB facilities.
27095
27096 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27097 to its root.
27098
11d9778b
FZ
270992009-11-24 Felix Zielcke <fzielcke@z-51.de>
27100
27101 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27102 platform.
27103
4465287d
FZ
271042009-11-24 Felix Zielcke <fzielcke@z-51.de>
27105
27106 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27107 strncmp().
27108
62b47f22
FZ
271092009-11-24 Felix Zielcke <fzielcke@z-51.de>
27110
27111 * util/getroot.c (grub_util_is_dmraid): New function.
27112 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27113 devices as normal ones, not as LVM.
27114
1eafb9b9 271152009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
27116
27117 * conf/common.rmk: Add grub-gettext_lib target and updates
27118 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27119 LDFLAGS.
27120 * gettext/gettext.c: New file. (Reads mo files).
27121 * include/grub/file.h (grub_file_pread): New prototype.
27122 * include/grub/i18n.h (_): New prototype.
27123 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27124 prototypes.
27125 * kern/misc.c (grub_gettext_dummy): New function.
27126 * normal/menu_text.c: Include <grub/i18n.h>.
27127 * normal/menu_text.c (print_timeout): Gettexttize string.
27128 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
27129 * po/POTFILES: Add `normal/menu_text.c'.
27130 * po/ca.po: Add new translations.
c3ea6bd4
CPE
27131 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27132 gettext module and defines locale_dir and lang in grub.cfg.
27133 * NEWS: Add gettext support.
27134
0fdb2568
RM
271352009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27136
27137 * util/hostdisk.c: Include `<grub/i18n.h>'.
27138 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27139 (make_device_name): Rewrite using asprintf.
27140 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27141 (find_system_device): If a device is not found, generate one just
27142 by reusing the OS path name.
27143 (read_device_map): Make it permissible for device.map not to exist.
27144
f515aa62
RM
271452009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27146
27147 * script/sh/execute.c: Move from here ...
27148 * script/execute.c: ... to here. Update all users.
27149 * script/sh/function.c: Move from here ...
27150 * script/function.c: ... to here. Update all users.
27151 * script/sh/lexer.c: Move from here ...
27152 * script/lexer.c: ... to here. Update all users.
27153 * script/sh/main.c: Move from here ...
27154 * script/main.c: ... to here. Update all users.
27155 * script/sh/parser.y: Move from here ...
27156 * script/parser.y: ... to here. Update all users.
27157 * script/sh/script.c: Move from here ...
27158 * script/script.c: ... to here. Update all users.
27159
f84b481b
RM
271602009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27161
27162 * configure.ac: Detect all `emu' platforms. Define
27163 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27164 --enable-grub-emu logic. Disable include/grub/machine
27165 symlink on `emu' platforms.
27166
27167 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27168 * gensymlist.sh.in: Likewise.
27169
27170 * include/grub/i386/coreboot/machine.h: Remove file.
27171 * include/grub/i386/efi/machine.h: Likewise.
27172 * include/grub/i386/ieee1275/machine.h: Likewise.
27173 * include/grub/i386/pc/machine.h: Likewise.
27174 * include/grub/i386/qemu/machine.h: Likewise.
27175 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27176 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27177 * include/grub/x86_64/efi/machine.h: Likewise.
27178
27179 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27180 * commands/halt.c: Likewise.
27181 * commands/reboot.c: Likewise.
27182 * include/grub/autoefi.h: Likewise.
27183 * include/grub/i386/at_keyboard.h: Likewise.
27184 * include/grub/i386/kernel.h: Likewise.
27185 * include/grub/i386/loader.h: Likewise.
27186 * include/grub/i386/pc/memory.h: Likewise.
27187 * kern/dl.c: Likewise.
27188 * kern/i386/coreboot/init.c: Likewise.
27189 * loader/i386/bsd.c: Likewise.
27190 * loader/i386/linux.c: Likewise.
27191 * loader/multiboot_loader.c: Likewise.
27192 * term/i386/pc/serial.c: Likewise.
27193 * term/usb_keyboard.c: Likewise.
27194
27195 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27196 `<grub/machine/machine.h>'
27197 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27198 * util/misc.c: Remove `<grub/machine/machine.h>' and
27199 `<grub/machine/time.h>'.
27200
27201 * Makefile.in (enable_grub_emu): Remove variable.
27202 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27203
27204 * conf/any-emu.rmk: New file.
27205 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27206 (grub_emu_init.c): Move from here ...
27207 * conf/any-emu.rmk: ... to here.
27208
27209 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27210 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27211 * conf/any-emu.rmk: ... to here.
27212
4efeab03
RM
272132009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27214
27215 * include/grub/parser.h (grub_parser_register): Document need
27216 of `name' parameter.
27217 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27218 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27219 "sh" to "grub".
27220
ea1dd8bf
RM
272212009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27222
27223 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27224 `$(XGETTEXT)'.
27225 * include/grub/i18n.h (N_): New macro.
27226 * util/mkisofs/mkisofs.h: Likewise.
27227 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27228 around N_().
27229 (usage): Use gettext() to translate help strings when printing them.
27230
0c140626
RM
272312009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27232
27233 Based on patch from Bean
27234 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27235
27236 * video/efi_fb.c: New file.
27237 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27238 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27239 variables.
27240 * conf/x86_64-efi.rmk: Likewise.
27241
87d58298
RM
272422009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27243
27244 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27245 * util/i386/pc/grub-setup.c: Likewise.
27246
994cc3a3
ST
272472009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27248
27249 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27250 <hurd/fs.h>
27251 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27252 file_get_storage_info to implement grub_guess_root_device.
27253
26a61d6a
FZ
272542009-11-21 Felix Zielcke <fzielcke@z-51.de>
27255
27256 * Makefile.in (target): Use make's builtin $(shell) function
27257 instead of calling directly $(SHELL) to create the locale directories,
27258 inside the $(foreach) function.
27259
74ff1dd5
FZ
272602009-11-21 Felix Zielcke <fzielcke@z-51.de>
27261
27262 * util/grub-mkrescue.in: Print an error and usage if output option
27263 has not been given.
27264
0b787d0e
FZ
272652009-11-21 Felix Zielcke <fzielcke@z-51.de>
27266
27267 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27268 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27269 root and /boot are on different devices.
27270
1164b270
RM
272712009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27272
27273 Fix build for srcdir != objdir.
27274
27275 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27276 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27277 $(srcdir).
27278 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27279 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27280 reference for input.
27281
13774a2f
RM
272822009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27283
27284 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27285 or hardlinking it). Remove -J option, Joliet is not compatible with
27286 multiple source directories.
27287
efda854e
RM
272882009-11-21 Carles Pina i Estany <carles@pina.cat>
272892009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27290
27291 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27292 (process_input_dir): New function. Process an arbitrary input
27293 directory.
27294 Misc adjustments to support both "override mode" and system-wide mode.
27295
6c09890c
FZ
272962009-11-20 Felix Zielcke <fzielcke@z-51.de>
27297
27298 * configure.ac (UNIFONT_BDF): Rename to ...
27299 (FONT_SOURCE): ... this. Update all users.
27300
a797824f
FZ
273012009-11-20 Felix Zielcke <fzielcke@z-51.de>
27302
27303 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27304 to the list of unifont files to look for.
27305
cd4f42b0
RM
273062009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27307
27308 Patch from Joe Auricchio <jauricchio@gmail.com>
27309 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27310 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27311 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27312
393c783d
FZ
273132009-11-19 Felix Zielcke <fzielcke@z-51.de>
27314
27315 * Makefile.in (install-local): Add a missing backslash.
27316
b2f1e327
FZ
273172009-11-19 Felix Zielcke <fzielcke@z-51.de>
27318
27319 * include/grub/x86_64/io.h: New file.
27320
f577f7a0
RM
273212009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27322
27323 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27324 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27325 Include `"progname.h"'.
27326 (main): Initialize gettext.
27327 * util/i386/pc/grub-setup.c: Gettexttize.
27328 * util/i386/pc/grub-mkimage.c: Likewise.
27329
27330 * Makefile.in (po/*.po): Redefine as ...
27331 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27332
3bc7896c
RM
27333 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27334
c37943b6
RM
273352009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27336
27337 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27338 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27339 (program_name): Remove.
27340 (main): Initialize gettext support.
6323f705
RM
27341 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27342 Include `<libintl.h>'.
27343 (_): New macro.
c37943b6
RM
27344
27345 * util/mkisofs/eltorito.c: Gettexttize.
27346 * util/mkisofs/joliet.c: Likewise.
27347 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
27348 * util/mkisofs/multi.c: Likewise.
27349 * util/mkisofs/rock.c: Likewise.
27350 * util/mkisofs/tree.c: Likewise.
27351 * util/mkisofs/write.c: Likewise.
27352
3bc7896c
RM
27353 * po/POTFILES: Update with new files.
27354
5ce77c6e
RM
273552009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27356
27357 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27358 * util/mkisofs/iso9660.h: Likewise.
27359 * util/mkisofs/joliet.c: Likewise.
27360 * util/mkisofs/mkisofs.c: Likewise.
27361 * util/mkisofs/mkisofs.h: Likewise.
27362 * util/mkisofs/rock.c: Likewise.
27363 * util/mkisofs/tree.c: Likewise.
27364 * util/mkisofs/write.c: Likewise.
27365
27366 * util/mkisofs/eltorito.c (rcsid): Remove.
27367 * util/mkisofs/hash.c: Likewise.
27368 * util/mkisofs/joliet.c: Likewise.
27369 * util/mkisofs/name.c: Likewise.
27370 * util/mkisofs/rock.c: Likewise.
27371 * util/mkisofs/tree.c: Likewise.
27372 * util/mkisofs/write.c: Likewise.
27373
1dabbc77
RM
273742009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27375
27376 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27377 instead of static allocation.
27378 * util/mkisofs/match.h: Likewise.
27379
633877cb
RM
273802009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27381
3bc7896c
RM
27382 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27383 and `util/grub.d/10_linux.in'.
633877cb
RM
27384 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27385 translatable Shell files.
27386
af1c0c85
RM
273872009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27388
27389 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27390
769ae37b
RM
273912009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27392
27393 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 27394 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
27395 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27396 Add gettext initialization.
27397 (kfreebsd_entry): Make menuentry output translatable.
27398
273992009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27400
27401 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27402 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27403 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27404 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27405 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 27406 * po/LINGUAS: New file.
769ae37b
RM
27407
274082009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27409
27410 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27411 other things).
27412 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27413 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27414 bindtextdomain() calls for gettext initialization.
27415
274162009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27417
27418 * gnulib/progname.c: New file (imported from Gnulib).
27419 * gnulib/progname.h: Likewise.
27420 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27421 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27422 (usage): Replace `progname' with `program_name'.
27423 (main): Use set_program_name() for program name initialization.
27424
274252009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27426
27427 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27428 from here ...
27429 * Makefile.in (CPPFLAGS): ... to here.
27430
274312009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27432
27433 * aclocal.m4: Move from here ...
27434 * acinclude.m4: ... to here.
27435 * autogen.sh: Add call to `aclocal'.
27436 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27437
274382009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27439
27440 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27441 (LINGUAS): New variable.
27442 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27443 (install-local): Install MO files.
27444 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27445 * include/grub/i18n.h: New file.
3bc7896c
RM
27446 * po/POTFILES: New file.
27447 * po/ca.po: New file.
769ae37b
RM
27448 * util/grub.d/10_linux.in (bindir): New variable.
27449 Add gettext initialization.
27450 (linux_entry): Make menuentry output translatable.
27451 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27452 (usage): Make --help output translatable.
27453 (main): Initialize gettext.
27454
02c0a6ad
RM
274552009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27456
27457 * import_gcry.py: New file (written by Vladimir with minor
27458 adjustments).
27459 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27460 ciphers.
27461 * INSTALL: Document that Python is required for bootstrap.
27462
274632009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27464
27465 Import ciphers from libgcrypt 1.4.4.
27466
27467 * lib/libgcrypt/cipher/ChangeLog
27468 * lib/libgcrypt/cipher/ac.c
27469 * lib/libgcrypt/cipher/arcfour.c
27470 * lib/libgcrypt/cipher/bithelp.h
27471 * lib/libgcrypt/cipher/blowfish.c
27472 * lib/libgcrypt/cipher/camellia-glue.c
27473 * lib/libgcrypt/cipher/camellia.c
27474 * lib/libgcrypt/cipher/camellia.h
27475 * lib/libgcrypt/cipher/cast5.c
27476 * lib/libgcrypt/cipher/cipher.c
27477 * lib/libgcrypt/cipher/crc.c
27478 * lib/libgcrypt/cipher/des.c
27479 * lib/libgcrypt/cipher/dsa.c
27480 * lib/libgcrypt/cipher/ecc.c
27481 * lib/libgcrypt/cipher/elgamal.c
27482 * lib/libgcrypt/cipher/hash-common.c
27483 * lib/libgcrypt/cipher/hash-common.h
27484 * lib/libgcrypt/cipher/hmac-tests.c
27485 * lib/libgcrypt/cipher/md.c
27486 * lib/libgcrypt/cipher/md4.c
27487 * lib/libgcrypt/cipher/md5.c
27488 * lib/libgcrypt/cipher/primegen.c
27489 * lib/libgcrypt/cipher/pubkey.c
27490 * lib/libgcrypt/cipher/rfc2268.c
27491 * lib/libgcrypt/cipher/rijndael-tables.h
27492 * lib/libgcrypt/cipher/rijndael.c
27493 * lib/libgcrypt/cipher/rmd.h
27494 * lib/libgcrypt/cipher/rmd160.c
27495 * lib/libgcrypt/cipher/rsa.c
27496 * lib/libgcrypt/cipher/seed.c
27497 * lib/libgcrypt/cipher/serpent.c
27498 * lib/libgcrypt/cipher/sha1.c
27499 * lib/libgcrypt/cipher/sha256.c
27500 * lib/libgcrypt/cipher/sha512.c
27501 * lib/libgcrypt/cipher/tiger.c
27502 * lib/libgcrypt/cipher/twofish.c
27503 * lib/libgcrypt/cipher/whirlpool.c
27504
af2f93ac
RM
275052009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27506
27507 Fix build for systems without error().
27508
27509 * gnulib/error.c: New file (imported from Gnulib).
27510 * gnulib/error.h: Likewise.
27511 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27512 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27513 (this variable is now used by error()).
27514
73fb3dd5
FZ
275152009-11-16 Felix Zielcke <fzielcke@z-51.de>
27516
814f5e96
FZ
27517 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27518 instead of relying that char is signed.
73fb3dd5 27519
a691ca33
VS
275202009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27521
27522 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27523 blocksize different from specified.
27524 (grub_pxefs_read): Likewise.
27525
2af8f0f4
FZ
275262009-11-16 Felix Zielcke <fzielcke@z-51.de>
27527
27528 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27529
27530 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27531 (grub_ata_readwrite): Likewise. Update 2 format strings.
27532 (grub_atapi_read): Likewise.
27533
27534 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27535 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27536 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27537 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27538 (ata_mod_LDFLAGS): Move from here ...
27539 * conf/i386.rmk: ... to here ...
27540 * conf/x86_64-efi.rmk: ... and here.
27541 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27542 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27543
83bdecaf
RM
275442009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27545
27546 Relicense multiboot.h, with RMS' blessing.
27547
27548 * include/multiboot.h: Change to X11 license.
27549
fd6fd3d7
RM
275502009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27551
27552 Support --version in grub-mkisofs.
27553
27554 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27555 (OPTION_VERSION): New macro.
27556 (ld_options): Recognize --version.
27557 (usage): Move `program_name' from here ...
27558 (program_name): ... to here. Add `static' qualifier.
27559 (main): Recognize `OPTION_VERSION'.
27560
16a88c49
FZ
275612009-11-15 Felix Zielcke <fzielcke@z-51.de>
27562
27563 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27564 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27565
a4158476
RM
275662009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27567
27568 Fix help2man generation for mkisofs.
27569
27570 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27571 (usage): Send output to stdout (rather than stderr).
27572
fc2208b0
RM
275732009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27574
27575 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27576 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27577 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27578 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27579 (bin_SCRIPTS): Add `grub-mkfloppy'.
27580 (grub_mkfloppy_SOURCES): New variable.
27581
27582 * util/grub-mkrescue.in: New file.
27583 * util/i386/pc/grub-mkfloppy.in: New file.
27584
27585 * util/i386/coreboot/grub-mkrescue.in: Remove.
27586 * util/i386/pc/grub-mkrescue.in: Remove.
27587
8d0edf4a
RM
275882009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27589
27590 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27591 from here ...
27592 * include/multiboot.h (struct multiboot_header): ... to here. Update
27593 all users.
27594 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27595 from here ...
27596 * include/multiboot.h (struct multiboot_info): ... to here. Update
27597 all users.
27598 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27599 from here ...
27600 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27601 Update all users.
27602 * include/grub/multiboot.h (struct grub_mod_list): Move
27603 from here ...
27604 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27605 Update all users.
27606
a73f5969
RM
276072009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27608
27609 * include/multiboot2.h (multiboot_word): Rename from this ...
27610 (multiboot2_word): ... to this. Update all users.
27611 (multiboot_header): Rename from this ...
27612 (multiboot2_header): ... to this. Update all users.
27613 (multiboot_tag_header): Rename from this ...
27614 (multiboot2_tag_header): ... to this. Update all users.
27615 (multiboot_tag_start): Rename from this ...
27616 (multiboot2_tag_start): ... to this. Update all users.
27617 (multiboot_tag_name): Rename from this ...
27618 (multiboot2_tag_name): ... to this. Update all users.
27619 (multiboot_tag_module): Rename from this ...
27620 (multiboot2_tag_module): ... to this. Update all users.
27621 (multiboot_tag_memory): Rename from this ...
27622 (multiboot2_tag_memory): ... to this. Update all users.
27623 (multiboot_tag_unused): Rename from this ...
27624 (multiboot2_tag_unused): ... to this. Update all users.
27625 (multiboot_tag_end): Rename from this ...
27626 (multiboot2_tag_end): ... to this. Update all users.
27627
1c8927f0
RM
276282009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27629
27630 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27631 this platform we should support Multiboot1 first.
27632
27633 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27634 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27635 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27636
6e1e0d89
RM
276372009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27638
27639 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27640 of write calls (converting them to fwrite() if they aren't already).
27641 (get_torito_desc): Likewise.
27642 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27643
7f2b34d8
RM
276442009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27645
27646 * util/i386/pc/grub-install.in: Move from here ...
27647 * util/grub-install.in: ... to here. Update all users.
27648
c0ef3311
CW
276492009-11-11 Colin Watson <cjwatson@ubuntu.com>
27650
27651 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27652
e1f240ff
RM
276532009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27654
27655 Support for El Torito without floppy emulation.
27656
27657 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27658 (init_boot_catalog): Improve error handling.
27659 (get_torito_desc): Don't use floppy emulation unless requested by
27660 user. Patch boot information table when requested via
27661 `-boot-info-table'.
27662 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27663 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27664 (use_boot_info_table): New variables.
27665 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27666 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27667 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27668 `--eltorito-emul-floppy'.
27669 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27670 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27671 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27672 (use_boot_info_table, get_731): New prototypes.
27673 * util/mkisofs/write.c (get_731): New function.
27674
af7d4de5
FZ
276752009-11-11 Felix Zielcke <fzielcke@z-51.de>
27676
27677 Fix the generation of the man page.
27678
27679 * util/pc/i386/grub-install.in: Source
27680 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27681
2c55dbc0
RM
276822009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27683
27684 Large file support for grub-mkisofs.
27685
27686 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27687 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27688 (session_start): Upgrade type to `uint64_t'. Update all users.
27689 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27690 (struct directory_entry): Upgrade type of `starting_block' and
27691 `size' to `uint64_t'. Update all users.
27692 (struct deferred): Remove unused structure.
27693 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27694 Update all users.
27695 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27696 file is larger than `UINT32_MAX'.
27697 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27698 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27699 return value.
27700 (struct deferred_write): Upgrade type of `extent' and `size' to
27701 `uint64_t'. Update all users.
27702 (last_extent_written): Upgrade type to `uint64_t'. Update all
27703 users.
27704 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27705 Update all users. Upgrade type of `remain' to `int64_t' and
27706 `use' to `size_t'. Use error() to handle fread() errors.
27707 (write_files): Rely on write_one_file() rather than calling
27708 xfwrite() directly.
27709
6a9cead5
FZ
277102009-11-09 Felix Zielcke <fzielcke@z-51.de>
27711
27712 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27713
4825d790
RM
277142009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27715
27716 * util/mkisofs/fnmatch.c: Remove.
27717 * util/mkisofs/getopt1.c: Likewise.
27718 * util/mkisofs/getopt.c: Likewise.
27719 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27720 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27721 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27722 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27723 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27724
27725 * configure.ac: Detect `mingw32msvc' host_os.
27726 Check for lstat(), getuid() and getgid().
27727
27728 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27729 instances of `u_char' with `uint8_t'.
27730
27731 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27732 [!HAVE_GETUID] (getuid): New function (stub).
27733 [!HAVE_GETGID] (getgid): Likewise.
27734 [!HAVE_LSTAT] (lstat): Likewise.
27735 [!S_IROTH] (S_IROTH): New macro (dummy).
27736 [!S_IRGRP] (S_IRGRP): Likewise.
27737
84b860d8
RM
277382009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27739
27740 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27741 conditional expression).
27742
66e9b712
RM
277432009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27744
27745 Import from Gnulib.
27746
27747 * gnulib/fnmatch.c: New file.
27748 * gnulib/fnmatch.h: Likewise.
27749 * gnulib/fnmatch_loop.c: Likewise.
27750 * gnulib/getopt.c: Likewise.
27751 * gnulib/getopt.h: Likewise.
27752 * gnulib/getopt1.c: Likewise.
27753 * gnulib/getopt_int.h: Likewise.
27754 * gnulib/gettext.h: Likewise.
27755
34f4a5b0
RM
277562009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27757
27758 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27759 * normal/handler.c (read_handler_list): Likewise.
27760
ac451143
RM
277612009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27762
27763 Misc cleanup.
27764
27765 * kern/command.c (grub_register_command_prio): Use
27766 grub_zalloc() instead of explicitly zeroing data.
27767 * kern/list.c: Include `<grub/mm.h>'.
27768 (grub_named_list_find): Replace `0' with `NULL'.
27769 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27770 (fs_module_list): Change type to `grub_named_list_t'. Update all
27771 users.
27772 * normal/dyncmd.c (read_command_list): Add space between function
27773 call and parenthesis.
27774 * normal/handler.c (read_handler_list): Likewise.
27775
4089b167
RM
277762009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27777
27778 * normal/auth.c (punishment_delay): Moved from here ...
27779 (grub_auth_strcmp): ... to here (inside function).
27780
325f5037
RM
277812009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27782
27783 * include/grub/list.h (struct grub_named_list): Remove `const'
27784 qualifier from `name'.
27785 (struct grub_prio_list): Likewise.
27786
7aea29a3
RM
277872009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27788
27789 * normal/auth.c: Include `<grub/time.h>'.
27790 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27791
3fd6f044
RM
277922009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27793
27794 * normal/auth.c (punishment_delay): New variable.
27795 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27796 (grub_auth_check_authentication): Punish failed login attempts with
27797 an incremental (2^N) delay.
27798
a4cd68e4
RM
277992009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27800
27801 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27802 path with $(srcdir).
27803
7ad12f43
VS
278042009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27805
27806 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27807
c1129f03
RM
278082009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27809
27810 * util/i386/coreboot/grub-mkrescue.in: New file.
27811 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27812 variables.
27813
27814 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27815 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27816 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27817 requirements.
27818 * util/mkisofs/defaults.h: New file.
27819 * util/mkisofs/eltorito.c: Likewise.
27820 * util/mkisofs/exclude.h: Likewise.
27821 * util/mkisofs/fnmatch.c: Likewise.
27822 * util/mkisofs/getopt.c: Likewise.
27823 * util/mkisofs/getopt1.c: Likewise.
27824 * util/mkisofs/hash.c: Likewise.
27825 * util/mkisofs/include/fctldefs.h: Likewise.
27826 * util/mkisofs/include/mconfig.h: Likewise.
27827 * util/mkisofs/include/prototyp.h: Likewise.
27828 * util/mkisofs/include/statdefs.h: Likewise.
27829 * util/mkisofs/iso9660.h: Likewise.
27830 * util/mkisofs/joliet.c: Likewise.
27831 * util/mkisofs/match.c: Likewise.
27832 * util/mkisofs/match.h: Likewise.
27833 * util/mkisofs/mkisofs.c: Likewise.
27834 * util/mkisofs/mkisofs.h: Likewise.
27835 * util/mkisofs/multi.c: Likewise.
27836 * util/mkisofs/name.c: Likewise.
27837 * util/mkisofs/rock.c: Likewise.
27838 * util/mkisofs/tree.c: Likewise.
27839 * util/mkisofs/write.c: Likewise.
27840
ec8bb77d
VS
278412009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27842
27843 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27844 being insecure.
27845
3716b12c
RM
278462009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27847
27848 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27849 `grub-mkimage' (and use $0 when possible).
27850
b97b7b91
RM
278512009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27852
27853 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27854 error message for excessively large memory map.
27855
04114812
RM
278562009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27857
27858 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27859 executable bit.
27860
e4eb2373
RM
278612009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27862
27863 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27864 message for coreboot users.
27865
c926e1d5 278662009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27867
27868 Fix build with GNU gold.
27869
27870 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27871 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27872 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27873 link addresses.
27874 * aclocal.m4: Likewise.
27875
86e5b1db 278762009-11-04 Felix Zielcke <fzielcke@z-51.de>
27877
27878 * configure.ac (AC_PREREQ): Bump to 2.59d.
27879 * INSTALL: Make it more clear when Autoconf and Ruby are
27880 needed and when to run `./autogen.sh'.
27881
246cd78f 278822009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27883
27884 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27885 OSes.
27886
4f9dfb37 278872009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27888
27889 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27890
b82bd5e1 278912009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27892
27893 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27894 giving it to GNU Mach.
27895
ff1a9bca 278962009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27897
27898 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27899 GNU partition number to get internal GRUB partition number.
27900
61697d9c 279012009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27902
27903 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27904 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27905
a50569e1 279062009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27907
27908 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27909 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27910 case.
27911
5b153867 279122009-11-01 Felix Zielcke <fzielcke@z-51.de>
27913
27914 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27915
d9e2cd70 279162009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27917
27918 Fix build problem.
27919
27920 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27921 `-isystem=$(srcdir)/include'.
27922
805111a4 279232009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27924
27925 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27926 checked (grub-install doesn't currently rely on it).
27927
fa6e945f 279282009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27929
27930 Revert SVN r2660.
27931
27932 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27933 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27934 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27935 * conf/i386-ieee1275.rmk: Likewise.
27936 * conf/i386-pc.rmk: Likewise.
27937 * conf/powerpc-ieee1275.rmk: Likewise.
27938 * conf/sparc64-ieee1275.rmk: Likewise.
27939 * conf/x86_64-efi.rmk: Likewise.
27940
cee15086 279412009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27942
27943 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27944
95b9239e 279452009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27946
27947 * include/grub/misc.h: Stop checking for APPLE_CC.
27948
2ed19dfd 279492009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27950
27951 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27952 doesn't cause an infinite call loop.
27953
fdcdde19 279542009-10-28 Felix Zielcke <fzielcke@z-51.de>
27955
27956 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27957 strings.
27958
cefabfe1 279592009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27960
27961 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27962 variable.
27963 * Makefile.in: Likewise.
27964
ed96ab6d 279652009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27966
27967 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27968
0579b753 279692009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27970
27971 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27972
478df409 279732009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27974
27975 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27976
083d1679 279772009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27978
27979 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27980 from here ...
27981 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27982
5947ae32 279832009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27984
27985 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27986 in $(MAKEINFO) invocation. This makes it clear in output that
27987 errors are being ignored.
27988
94180ff6 279892009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27990
27991 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27992 from here ...
27993 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27994 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27995 * conf/i386-ieee1275.rmk: Likewise.
27996 * conf/i386-pc.rmk: Likewise.
27997 * conf/powerpc-ieee1275.rmk: Likewise.
27998 * conf/sparc64-ieee1275.rmk: Likewise.
27999 * conf/x86_64-efi.rmk: Likewise.
28000
9031b03a 280012009-10-26 Colin Watson <cjwatson@ubuntu.com>
28002
28003 * util/grub-editenv.c (main): If only a command is given, use
28004 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
28005 (usage): FILENAME is now optional and has a default.
28006
e4f6809b 280072009-10-26 Colin Watson <cjwatson@ubuntu.com>
28008
28009 Improve grub-mkconfig performance when there are several menu
28010 entries on a single filesystem.
28011
28012 * util/grub.d/10_linux.in (linux_entry): Cache the output of
28013 prepare_grub_to_access_device.
28014 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28015 * util/grub.d/30_os-prober.in: Likewise.
28016
67937d4d 280172009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28018
28019 * util/grub.d/10_freebsd.in: Remove.
28020 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
28021 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
28022
ee3756cc 280232009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28024
5c35048e 28025 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 28026
4dea1c6f 280272009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28028
28029 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
28030 grub_util_error() call.
28031
042484d7 280322009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28033
28034 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
28035 `reserved_first_sector' member.
28036 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
28037 `reserved_first_sector' to 1.
28038 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
28039 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
28040 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
28041 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
28042 filesystems which begin at first sector.
28043 (options): New option --skip-fs-probe.
28044 (main): Handle --skip-fs-probe and pass it to setup().
28045
d64448a7 280462009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28047
28048 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
28049 (memset): Fix function prototype.
28050
508d42ec 280512009-10-25 Robert Millan <rmh.grub@aybabtu.com>
280522009-10-25 Vasily Averin <vvs@parallels.com>
28053
28054 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
28055 `dirent.direntlen == 0'.
28056
b240e30c 280572009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28058
28059 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
28060 `cpio'.
28061 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
28062
346e7fbe 280632009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28064
28065 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
28066 `__trampoline_setup' and `__ucmpdi2'.
28067 * include/grub/powerpc/libgcc.h: Only export symbols for functions
28068 that libgcc provides.
28069
cdb308b0 280702009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28071
28072 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
28073 * include/grub/sparc64/libgcc.h (memset): Likewise.
28074 * include/grub/misc.h (memset, memcmp): New function prototypes.
28075
fb26abc2 280762009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28077
28078 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
28079 `cpio'.
28080 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
28081
f6693890 280822009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28083
28084 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
28085 * docs/grub.cfg: Compensate for recent change in multiboot
28086 loader (since 2009-08-14 it won't pass filename to payload).
28087 * util/grub.d/10_hurd.in: Likewise.
28088
0933cdc0 280892009-10-21 Felix Zielcke <fzielcke@z-51.de>
28090
28091 * config.guess: Update to latest version from config git
28092 repository.
28093 * config.sub: Likewise.
28094
3b2fe8c2 280952009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28096
28097 Fix build on sparc64.
28098
28099 * configure.ac: Perform checks for libgcc symbols before
28100 adding `-nostdlib' to LDFLAGS.
28101
46695a62 281022009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28103
28104 Let user specify OpenBSD root device.
28105
28106 * loader/i386/bsd.c (openbsd_root): New variable.
28107 (openbsd_opts): New option 'root'.
28108 (OPENBSD_ROOT_ARG): New macro.
28109 (grub_openbsd_boot): Use 'openbsd_root'.
28110 (grub_cmd_openbsd): Fill 'openbsd_root'.
28111
d2b6b7fc 281122009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28113
28114 * NEWS: Misc adjustments.
28115
421bd7ac 281162009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28117
28118 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28119
f1d29d87 281202009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28121
28122 * configure.ac: Bump version to 1.97.
28123
6f3cd880 281242009-10-16 Colin Watson <cjwatson@ubuntu.com>
28125
28126 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28127 -mno-3dnow on x86 architectures. Some toolchains enable these
28128 features by default, but they rely on registers that aren't enabled
28129 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28130
035f7122 281312009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28132
28133 Make entry text a bit more readable.
28134
28135 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28136
44998e58 281372009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28138
28139 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28140
cd2851b3 281412009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28142
28143 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28144 operations.
28145
c6f3b249 281462009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28147
28148 * configure.ac: Add missing dollar.
28149
6b5886ba 281502009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28151
28152 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28153
28154 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28155 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28156 exports.
28157 * include/grub/sparc64/libgcc.h: Likewise. Use
28158 preprocessor conditionals.
28159
e9d66f6d 281602009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28161
28162 * conf/common.rmk (grub-dumpbios): Remove rule.
28163 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28164 * util/grub-dumpbios.in: Remove file.
28165
9155bc17 281662009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28167
28168 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28169 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28170
28171 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28172 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28173 users.
28174
28175 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28176 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28177 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28178 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28179 users.
28180
bf7f7a18 281812009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28182
28183 * term/tparm.c: Switch to GPLv3.
28184
86564c26 281852009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28186
28187 * include/grub/i386/cpuid.h: Add header protection.
28188
5c936493 281892009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28190
28191 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28192
28193 * include/grub/i386/cpuid.h: New file.
28194 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28195 (has_longmode): Rename to ...
28196 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28197 `static' attribute.
28198 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28199 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28200 on a CPU that doesn't implement AMD64 instruction set.
28201
186e7cf2 282022009-10-06 Colin Watson <cjwatson@ubuntu.com>
28203
28204 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28205 that version.texi is rebuilt on version number changes.
28206
83b65c4a 282072009-10-06 Colin Watson <cjwatson@ubuntu.com>
28208
28209 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28210 Fixes bug #27602.
28211
d244281c 282122009-10-06 Colin Watson <cjwatson@ubuntu.com>
28213
28214 * util/i386/pc/grub-install.in: Source
28215 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28216 that the --grub-probe option will work.
28217 * util/sparc64/ieee1275/grub-install.in: Likewise.
28218
da25306d 282192009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28220
28221 * configure.ac: Bump version to 1.97~beta4.
28222
e8ee83c0 282232009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28224
28225 Resync grub-mkdevicemap in x86_64-efi.
28226
28227 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28228 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28229 `util/devicemap.c'.
28230
50dcabcf 282312009-10-01 Colin Watson <cjwatson@ubuntu.com>
28232
28233 * util/grub-editenv.c (create_envblk_file): Write new block with a
28234 .new suffix and then rename it into place, to ensure atomic
28235 creation.
28236
0e51c3a7 282372009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28238
28239 Do not automatically install headers.
28240
28241 * Makefile.in (include_DATA): Remove. Update all users.
28242
31299a95 282432009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28244
28245 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28246 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28247
28248 * util/osdetect.lua: Remove.
28249 * script/lua/lauxlib.c: Likewise.
28250 * script/lua/ldebug.c: Likewise.
28251 * script/lua/grub_main.c: Likewise.
28252 * script/lua/lauxlib.h: Likewise.
28253 * script/lua/ldebug.h: Likewise.
28254 * script/lua/ltablib.c: Likewise.
28255 * script/lua/liolib.c: Likewise.
28256 * script/lua/lstrlib.c: Likewise.
28257 * script/lua/lualib.h: Likewise.
28258 * script/lua/ldo.c: Likewise.
28259 * script/lua/ldump.c: Likewise.
28260 * script/lua/ldo.h: Likewise.
28261 * script/lua/loslib.c: Likewise.
28262 * script/lua/lundump.c: Likewise.
28263 * script/lua/grub_lib.c: Likewise.
28264 * script/lua/ldblib.c: Likewise.
28265 * script/lua/lundump.h: Likewise.
28266 * script/lua/lmem.c: Likewise.
28267 * script/lua/grub_lib.h: Likewise.
28268 * script/lua/lmathlib.c: Likewise.
28269 * script/lua/lstate.c: Likewise.
28270 * script/lua/ltm.c: Likewise.
28271 * script/lua/lvm.c: Likewise.
28272 * script/lua/lmem.h: Likewise.
28273 * script/lua/lstate.h: Likewise.
28274 * script/lua/ltm.h: Likewise.
28275 * script/lua/ltable.c: Likewise.
28276 * script/lua/lvm.h: Likewise.
28277 * script/lua/llex.c: Likewise.
28278 * script/lua/lgc.c: Likewise.
28279 * script/lua/grub_lua.h: Likewise.
28280 * script/lua/loadlib.c: Likewise.
28281 * script/lua/lfunc.c: Likewise.
28282 * script/lua/lopcodes.c: Likewise.
28283 * script/lua/lparser.c: Likewise.
28284 * script/lua/ltable.h: Likewise.
28285 * script/lua/llex.h: Likewise.
28286 * script/lua/lgc.h: Likewise.
28287 * script/lua/lfunc.h: Likewise.
28288 * script/lua/lbaselib.c: Likewise.
28289 * script/lua/lopcodes.h: Likewise.
28290 * script/lua/lparser.h: Likewise.
28291 * script/lua/lzio.c: Likewise.
28292 * script/lua/linit.c: Likewise.
28293 * script/lua/lobject.c: Likewise.
28294 * script/lua/llimits.h: Likewise.
28295 * script/lua/lstring.c: Likewise.
28296 * script/lua/lzio.h: Likewise.
28297 * script/lua/lapi.c: Likewise.
28298 * script/lua/lcode.c: Likewise.
28299 * script/lua/lua.h: Likewise.
28300 * script/lua/lobject.h: Likewise.
28301 * script/lua/lstring.h: Likewise.
28302 * script/lua/lapi.h: Likewise.
28303 * script/lua/lcode.h: Likewise.
28304 * script/lua/luaconf.h: Likewise.
28305
cb8a2c38 283062009-09-26 Colin Watson <cjwatson@ubuntu.com>
28307
28308 * docs/grub.texi (Command-line and menu entry commands): Document
28309 date and echo commands.
28310
6b9b6276 283112009-09-24 Pavel Roskin <proski@gnu.org>
28312
28313 * include/grub/kernel.h (struct grub_module_header): Remove
28314 `grub_module_header_types'. Make `type' unsigned. Make `size'
28315 32-bit on all platforms.
28316 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28317 8-bit field. Use grub_host_to_target32() for `size'.
28318 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28319 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28320 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28321
4e5a02a7 283222009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28323
28324 Fix "lost keypress" bug in at_keyboard.
28325
28326 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28327 Checks for readyness of input buffer (without flushing it).
28328 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28329 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28330
c6dcedf6 283312009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28332
28333 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28334 size check within GRUB_MACHINE_PCBIOS section.
28335
74c958b1 283362009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28337
28338 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28339 return value.
28340 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28341 KEYBOARD_ISREADY check.
28342 (grub_at_keyboard_checkkey): Rename to ...
28343 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28344 Remove gratuitous cast.
28345
ff420223 283462009-09-23 Colin Watson <cjwatson@ubuntu.com>
28347
28348 * configure.ac: Call AC_PROG_MKDIR_P.
28349 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28350 version.texi in $(builddir) rather than $(srcdir).
28351 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28352 to makeinfo's @include search path.
28353
d96875df 283542009-09-23 Felix Zielcke <fzielcke@z-51.de>
28355
28356 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28357
9b3f8365 283582009-09-23 Felix Zielcke <fzielcke@z-51.de>
28359
28360 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28361 for `*.dpkg-new'.
28362
c44c90db 283632009-09-21 Colin Watson <cjwatson@ubuntu.com>
28364
28365 Build info documentation. Some code borrowed from Automake.
28366
28367 * configure.ac: Check for makeinfo.
28368 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28369 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28370 docs/version.texi.
28371 (MOSTLYCLEANFILES): Add vti.tmp.
28372 (docs/version.texi, docs/stamp-vti): Update automatically.
28373 (docs/grub.info): Build info documentation. Use --force and ignore
28374 errors for now.
28375 (all-local): Add $(INFOS).
28376 (install-local): Install info files.
28377 (uninstall): Uninstall info files.
28378 * docs/version.texi: Remove from revision control. This file is
28379 automatically generated on build now.
28380 * gendistlist.sh: Add `*.info'.
28381
e0b37bb5 283822009-09-21 Felix Zielcke <fzielcke@z-51.de>
28383
28384 * kern/term.c: Fix indentation.
28385
5a78865b 283862009-09-21 Felix Zielcke <fzielcke@z-51.de>
28387
28388 * util/hostdisk.c: Fix a comment.
28389
dace7e8a 283902009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28391
28392 Fix regression introduced in r2539.
28393
28394 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28395 to 0xA1.
28396
a83d079b 283972009-09-19 Colin Watson <cjwatson@ubuntu.com>
28398
28399 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 28400 os-prober. Under normal operation, it does not print anything to
28401 stderr; if it does, we need to debug it, and throwing away stderr
28402 makes that excessively difficult.
a83d079b 28403
be94a509 284042009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28405
28406 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28407
63f745e8 284082009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28409
28410 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28411 AC_LANG_PROGRAM from autoconf.
28412 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28413 prototypes (fixes warning).
28414
28415 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28416 `--disable-werror' was used.
28417
bbb2a70f 284182009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28419
28420 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28421 uninitialized `lastaddr'.
28422
77c24f1d 284232009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28424
0f0b8c87 28425 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 28426
07197f23 284272009-09-14 Colin Watson <cjwatson@ubuntu.com>
28428
28429 * commands/test.c (get_fileinfo): Return immediately if
28430 grub_fs_probe fails.
28431
dabf1798 284322009-09-14 José Martínez <xosemp@gmail.com>
28433
28434 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28435
d52109a7 284362009-09-14 Colin Watson <cjwatson@ubuntu.com>
28437
28438 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28439 output.
28440
56532179 284412009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28442
28443 * configure.ac: Remove --enable-grub-pe2elf. Only build
28444 grub-pe2elf when needed by the build system itself.
28445 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28446
8ef070f5 284472009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28448
28449 * configure.ac: Bump version to 1.97~beta3.
28450 * docs/version.texi: Likewise.
28451
61229557 284522009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28453
28454 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28455 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28456 from here ...
28457 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28458 (grub_linux_setup_video): ... to here (with some adjustments).
28459
5c9f8d84 284602009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28461
28462 Fix memory corruption issue (spotted by Colin Watson).
28463
28464 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28465 causing returned size to be stored in an incorrect memory location.
28466 Fix use of uninitialized value when storing the returned size.
28467
e8f5d6e9 284682009-09-12 Yves Blusseau <blusseau@zetam.org>
28469
28470 Change clean rules to properly remove files
28471
28472 * genmk.rb: add new clean rules
28473 * Makefile.in (clean): add the new targets
28474 (mostlyclean): likewise
28475
cda2a409 284762009-09-11 Colin Watson <cjwatson@ubuntu.com>
28477
28478 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28479 to grub_uint64_t.
28480 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28481 non-resident files.
28482
86695375 284832009-09-11 Colin Watson <cjwatson@ubuntu.com>
28484
28485 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28486 part of bug #27349.
28487
8aa1541a 284882009-09-10 Felix Zielcke <fzielcke@z-51.de>
28489
28490 * util/grub-mkconfig.in: Make the created config mode 400 and
28491 print a warning if it fails.
28492
48d9bb0a 284932009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28494
28495 * util/grub.d/40_custom.in: Ask user to type custom entries below
28496 comment, rather than below 'exec tail' line.
28497
3b0521be 284982009-09-10 Colin Watson <cjwatson@ubuntu.com>
28499
28500 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28501 visible in grub.cfg.
28502
50051d55 285032009-09-10 Colin Watson <cjwatson@ubuntu.com>
28504
28505 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28506 file.
28507
c0d34387 285082009-09-10 Felix Zielcke <fzielcke@z-51.de>
28509
28510 * docs/grub.cfg: Add an example menu entry for memtest86+.
28511
80a608f3 285122009-09-09 Felix Zielcke <fzielcke@z-51.de>
28513
a2094832 28514 * config.guess: Update to latest version from config git.
80a608f3 28515 * config.sub: Likewise.
28516
99423078 285172009-09-08 Colin Watson <cjwatson@ubuntu.com>
28518
28519 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28520 unknown-command case. Fixes bug #27320.
28521
44454e4c 285222009-09-08 Felix Zielcke <fzielcke@z-51.de>
28523
28524 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28525 `help' if the command exists.
28526
e30d87ad 285272009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28528
28529 * INSTALL: Require GCC 4.1.3 or later.
28530
9a86f1ec 285312009-09-06 Yves Blusseau <blusseau@zetam.org>
28532
28533 * Makefile.in (RMKFILES): add i386-qemu.rmk
28534 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28535 $(srcdir)/stamp-h.in
28536
7f26d466 285372009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28538
28539 * util/grub-probe.c (probe): Comment out buggy codepath, which
28540 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28541 should be re-enabled after 1.97.
28542
3a613259 285432009-09-05 Felix Zielcke <fzielcke@z-51.de>
28544
28545 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28546 find searches for.
28547
197f76c7 285482009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28549
28550 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28551 unnecessary calls to grub_error.
28552
70ba68ce 285532009-09-04 Colin Watson <cjwatson@ubuntu.com>
28554
28555 * NEWS: Mention `keystatus' and Unicode fonts.
28556
4ff0d7a4 285572009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28558
28559 * configure.ac: Bump version to 1.97~beta2.
28560 * docs/version.texi: Likewise.
28561
77c55a87 285622009-09-03 Colin Watson <cjwatson@ubuntu.com>
28563
28564 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28565 containing unwind information in some cases where it previously did
28566 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28567 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28568 discussion.
28569
f79572cd 285702009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28571
28572 Embedding loadenv module into grub-emu
28573
28574 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28575 commands/loadenv.c
28576 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28577 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28578 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28580 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28581 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28582
93a81088 285832009-09-03 Magnus Granberg <zorry@ume.nu>
28584
28585 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28586 include -fPIE in the default specs.
28587 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28588 to TARGET_CFLAGS.
28589
160034b2 285902009-09-03 Felix Zielcke <fzielcke@z-51.de>
28591
28592 * INSTALL: Note that GNU Bison 2.3 or later is required.
28593
087c07c4 285942009-09-03 Colin Watson <cjwatson@ubuntu.com>
28595
28596 * kern/i386/pc/startup.S: Fix typo.
28597
cbf978c0 285982009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28599
28600 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28601 according to GCS.
28602
286032009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 28604
28605 * docs/grub.texi (Naming convention): Describe one-based partition
28606 numbering.
28607 (Device syntax): Likewise.
28608 (File name syntax): Likewise.
28609 (Block list syntax): Likewise.
28610 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28611 menu.lst.
28612 (File name syntax): Likewise.
28613 (Command-line and menu entry commands): Document acpi, blocklist,
28614 crc, export, insmod, keystatus, ls, set, and unset commands.
28615
f3e8cdfd 286162009-09-02 Colin Watson <cjwatson@ubuntu.com>
28617
28618 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28619 to avoid implying that only one of --shift, --ctrl, or --alt may be
28620 used.
28621
c0bc232b 286222009-09-02 Colin Watson <cjwatson@ubuntu.com>
28623
28624 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28625 rather than comparing against S_IFREG, which will almost never work.
28626
aa0f752d 286272009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28628
28629 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28630 (write_blocklists): Likewise.
28631
ecb3166a 286322009-09-01 Colin Watson <cjwatson@ubuntu.com>
28633
28634 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28635 argument to grub_printf.
28636
c403a125 286372009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 28638
28639 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 28640 non GNU test.
31aba781 28641
b5e7312c 286422009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28643
28644 * kern/file.c (grub_file_read): Spelling fix
28645
fe00f472 286462009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28647
28648 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28649 loading of headers in some cases.
28650
cc55302e 286512009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28652
28653 * configure.ac: Bump version to 1.97~beta1.
28654 * docs/version.texi: Likewise.
28655
5c90cdd2 286562009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 28657
28658 * include/grub/i386/xnu.h: Add license header.
28659 include grub/err.h explicitly.
28660
c90edae4 286612009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28662
28663 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28664 to `ufs' in the vfs.root.mountfrom kernel parameter.
28665
d8888b5c 286662009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28667
28668 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28669
28670 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28671 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28672
28673 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28674 `ARRAY_SIZE' macro.
28675
6f07b921 286762009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28677
28678 * kern/file.c (grub_file_read): Check offset.
28679 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28680 * fs/jfs.c (grub_jfs_read_file): Likewise.
28681 * fs/ntfs.c (grub_ntfs_read): Likewise.
28682 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28683 * fs/minix.c (grub_minix_read_file): Correct offset check.
28684 * fs/ufs.c (grub_ufs_read_file): Likewise.
28685
b4f34077 286862009-08-28 Colin Watson <cjwatson@ubuntu.com>
28687
28688 * term/i386/pc/console.c (bios_data_area): Cast
28689 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28690
e7c69859 286912009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28692
28693 1-bit optimised blitters.
28694
28695 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28696 prototype.
28697 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28698 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28699 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28700 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28701 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28702 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28703 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28704 function.
28705 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28706 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28707 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28708 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28709 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28710 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28711 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28712 when possible.
28713 * video/video.c (grub_video_get_blit_format): Return
28714 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28715
a57da43f 287162009-08-28 Colin Watson <cjwatson@ubuntu.com>
28717
28718 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28719 the first argument to grub_printf.
28720
4cbe67e5 287212009-08-28 Colin Watson <cjwatson@ubuntu.com>
287222009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28723
28724 Add `getkeystatus' terminal method. Add a new `keystatus' command
28725 to query it.
28726
28727 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28728 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28729 modifier key bitmasks.
28730 (struct grub_term_input): Add `getkeystatus' member.
28731 (grub_getkeystatus): Add prototype.
28732 * kern/term.c (grub_getkeystatus): New function.
28733
28734 * include/grub/i386/pc/memory.h
28735 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28736 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28737 Data Area layout.
28738 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28739 (grub_console_term_input): Set `getkeystatus' member.
28740 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28741 constants.
28742 (grub_usb_keyboard_getreport): Likewise.
28743 (grub_usb_keyboard_checkkey): Likewise.
28744 (grub_usb_keyboard_getkeystatus): New function.
28745 (grub_usb_keyboard_term): Set `getkeystatus' member.
28746
28747 * commands/keystatus.c: New file.
28748 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28749 (keystatus_mod_SOURCES): New variable.
28750 (keystatus_mod_CFLAGS): Likewise.
28751 (keystatus_mod_LDFLAGS): Likewise.
28752 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28753 commands/keystatus.c.
28754 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28755 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28756 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28757 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28758 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28759 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 28760
6e2a9085 287612009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28762
28763 Split befs.mod and afs.mod into *_be.mod and *.mod
28764
28765 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28766 (grub_fstest_SOURCES): Likewise.
28767 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28768 (afs_be_mod_SOURCES): New variable.
28769 (afs_be_mod_CFLAGS): Likewise.
28770 (afs_be_mod_LDFLAGS): Likewise.
28771 (befs_be_mod_SOURCES): Likewise.
28772 (befs_be_mod_CFLAGS): Likewise.
28773 (befs_be_mod_LDFLAGS): Likewise.
28774 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28775 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28776 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28777 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28778 (grub_emu_SOURCES): Likewise.
28779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28780 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28781 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28782 * fs/afs_be.c: New file.
28783 * fs/befs_be.c: New file.
28784 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28785 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28786 (U16): Replaced with ...
28787 (grub_afs_to_cpu16): ...this. All users updated.
28788 (U32): Replaced with ...
28789 (grub_afs_to_cpu32): ...this. All users updated.
28790 (U64): Replaced with ...
28791 (grub_afs_to_cpu64): ...this. All users updated.
28792 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28793 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 28794 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 28795 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28796 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28797 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28798 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28799 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28800 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28801 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28802 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28803
32a71655 288042009-08-26 Bean <bean123ch@gmail.com>
28805
28806 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28807 64-bit number.
28808 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28809 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28810 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28811
552bf6c5 288122009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28813
28814 NetBSD memory map support.
28815
28816 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28817 (grub_netbsd_btinfo_mmap_header): New structure.
28818 (grub_netbsd_btinfo_mmap_entry): Likewise.
28819 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28820
1ae2078c 288212009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28822
28823 Enable bsd.mod on coreboot.
28824
28825 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28826 (bsd_mod_SOURCES): New variable.
28827 (bsd_mod_CFLAGS): Likewise.
28828 (bsd_mod_LDFLAGS): Likewise.
28829 (bsd_mod_ASFLAGS): Likewise.
28830 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28831 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28832
beefc598 288332009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28834
28835 Cleanup NetBSD root support.
28836
28837 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28838 grub_bsd_get_device.
28839 Fix typo.
28840
3b76e68b 288412009-08-25 Felix Zielcke <fzielcke@z-51.de>
28842
28843 * util/grub.d/00_header.in: Move check for the video backend of
28844 gfxterm from here ...
28845 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28846 a suitable video backend.
28847
aea664ea 288482009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28849
28850 Fix breakage in grub-setup.
28851
28852 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28853 "msdos_partition_map".
28854
ff747d50 288552009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28856
28857 Fix breakage in normal/auth.c.
28858
28859 * normal/auth.c (grub_iswordseparator): New function.
28860
e7e1f93f 288612009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28862
28863 Authentication support.
28864
28865 * commands/password.c: New file.
28866 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28867 (password_mod_SOURCES): New variable.
28868 (password_mod_CFLAGS): Likewise.
28869 (password_mod_LDFLAGS): Likewise.
28870 (normal_mod_SOURCES): Add normal/auth.c.
28871 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28872 normal/auth.c.
28873 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28874 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28875 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28876 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28877 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28878 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28879 * include/grub/auth.h: New file.
28880 * include/grub/err.h (grub_err_t): New enum value
28881 GRUB_ERR_ACCESS_DENIED.
28882 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28883 'users'.
28884 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28885 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28886 users updated.
28887 * normal/auth.c: New file.
28888 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28889 (grub_cmdline_run): Don't allow to go to command line without
28890 authentication.
28891 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28892 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28893 menuentry without superuser rights.
28894 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28895 user isn't a superuser.
28896
70f1161d 288972009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28898
28899 Save space by inlining misc.c functions.
28900
28901 * kern/misc.c (grub_iswordseparator): Made static.
28902 * kern/misc.c (grub_strcat): Moved from here ...
28903 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28904 * kern/misc.c (grub_strncat): Moved from here ...
28905 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28906 * kern/misc.c (grub_strcasecmp): Moved from here ...
28907 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28908 * kern/misc.c (grub_strncasecmp): Moved from here ...
28909 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28910 * kern/misc.c (grub_isalpha): Moved from here ...
28911 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28912 * kern/misc.c (grub_isdigit): Moved from here ...
28913 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28914 * kern/misc.c (grub_isgraph): Moved from here ...
28915 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28916 * kern/misc.c (grub_tolower): Moved from here ...
28917 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28918
48e40bff 289192009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28920
28921 * script/sh/function.c (grub_script_function_find): Cut error message
28922 not to flood terminal.
28923 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28924 limit.
28925 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28926
c385bfc3 289272009-08-24 Colin Watson <cjwatson@ubuntu.com>
28928
28929 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28930 `report' grub_uint8_t *.
28931 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28932 Use a 50-millisecond timeout rather than just repeating
28933 grub_usb_keyboard_getreport 50 times.
28934 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28935
2d21e3e8 289362009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28937
28938 Rename *_partition_map to part_*
28939
28940 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28941 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28942 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28943 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28944 All users updated.
28945 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28946 All users updated.
28947 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28948 * util/grub-probe.c (probe_partmap): Don't transform partition name
28949 to get module name.
28950
dd103c4e 289512009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28952
28953 Fix OpenBSD and NetBSD support.
28954
28955 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28956 memory address conflict.
28957 (OPENBSD_MMAP_ACPI): New definition.
28958 (OPENBSD_MMAP_NVS): Likewise.
28959 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28960 and OPENBSD_MMAP_NVS.
28961 Add memory map terminator
28962 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 28963 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 28964
16c84d74 289652009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28966
28967 Let user specify NetBSD root device.
28968
28969 * loader/i386/bsd.c (netbsd_root): New variable.
28970 (netbsd_opts): New option 'root'.
28971 (NETBSD_ROOT_ARG): New macro.
28972 (grub_netbsd_boot): Use 'netbsd_root'.
28973 (grub_bsd_unload): Free 'netbsd_root'.
28974 (grub_cmd_netbsd): Fill 'netbsd_root'.
28975
adb29902 289762009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28977
28978 Support for 64-bit NetBSD.
28979
28980 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28981 point when booting non-FreeBSD.
28982
f5ae9f74 289832009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28984
28985 Support --no-smp and --no-acpi for NetBSD.
28986
28987 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28988 (NETBSD_AB_NOACPI): Likewise.
28989 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28990 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28991
de74f136 289922009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28993
28994 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28995 errors.
28996 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28997 errors. Call grub_error when needed.
28998
e9a925da 289992009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29000
29001 * commands/search.c (search_fs): Try searching without autoload first.
29002 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
29003 filesystem module explicitly for faster booting.
29004
5174302b 290052009-08-23 Colin Watson <cjwatson@ubuntu.com>
29006
29007 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
29008
c8c80635 290092009-08-23 Colin Watson <cjwatson@ubuntu.com>
29010
29011 * util/grub.d/30_os-prober.in: Disable os-prober if
29012 `GRUB_DISABLE_OS_PROBER' was set to true.
29013
71acf5e5 290142009-08-23 Robert Millan <rmh.grub@aybabtu.com>
29015
29016 * partmap/pc.c: Rename to ...
29017 * partmap/msdos.c: ... this. Update all users.
29018 (grub_pc_partition_map): Rename to ...
29019 (grub_msdos_partition_map): ... this. Update all users.
29020
29021 * parttool/pcpart.c: Rename to ...
29022 * parttool/msdospart.c: ... this. Update all users.
29023
29024 * include/grub/pc_partition.h: Rename to ...
29025 * include/grub/msdos_partition.h: ... this. Update all users.
29026 (grub_pc_partition_bsd_entry): Rename to ...
29027 (grub_msdos_partition_bsd_entry): ... this. Update all users.
29028 (grub_pc_partition_disk_label): Rename to ...
29029 (grub_msdos_partition_disk_label): ... this. Update all users.
29030 (grub_pc_partition_entry): Rename to ...
29031 (grub_msdos_partition_entry): ... this. Update all users.
29032 (grub_pc_partition_mbr): Rename to ...
29033 (grub_msdos_partition_mbr): ... this. Update all users.
29034 (grub_pc_partition): Rename to ...
29035 (grub_msdos_partition): ... this. Update all users.
29036 (grub_pc_partition_is_empty): Rename to ...
29037 (grub_msdos_partition_is_empty): ... this. Update all users.
29038 (grub_pc_partition_is_extended): Rename to ...
29039 (grub_msdos_partition_is_extended): ... this. Update all users.
29040 (grub_pc_partition_is_bsd): Rename to ...
29041 (grub_msdos_partition_is_bsd): ... this. Update all users.
29042
29043 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
29044 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
29045 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
29046 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
29047 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
29048 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
29049 (gpt_mod_LDFLAGS): Rename to ...
29050 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
29051 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
29052 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
29053 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
29054 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
29055 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
29056 (part_gpt_mod_LDFLAGS): ... this.
29057 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
29058 `pcpart.mod' to `msdospart.mod'.
29059 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
29060 to ...
29061 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
29062 (msdospart_mod_LDFLAGS): ... this.
29063
c11fded5 290642009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29065
29066 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
29067 (openbsd_opts): Likewise.
29068 (netbsd_opts): Likewise.
29069 (freebsd_flags): Added 0 terminator.
29070 (openbsd_flags): Likewise.
29071 (netbsd_flags): Likewise.
29072 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
29073 (grub_cmd_freebsd): Transformed into extended command.
29074 (grub_cmd_openbsd): Likewise.
29075 (grub_cmd_netbsd): Likewise.
29076 (cmd_freebsd): Changed type to grub_extcmd_t.
29077 (cmd_openbsd): Likewise.
29078 (cmd_netbsd): Likewise.
29079 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
29080 grub_cmd_openbsd as extended commands.
29081 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
29082 cmd_netbsd and cmd_openbsd
29083
11d1c769 290842009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
29085
29086 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
29087
7a9094e5 290882009-08-21 Pavel Roskin <proski@gnu.org>
29089
5496c37e 29090 * Makefile.in (install-local): When checking if a file is in the
29091 build directory, use "test -e" to detect symlinks.
29092
7a9094e5 29093 * Makefile.in (install-local): Remove all files in
29094 $(DESTDIR)$(pkglibdir) before installing new files there.
29095
e53cea11 290962009-08-18 Felix Zielcke <fzielcke@z-51.de>
29097
29098 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29099 grub-mkelfimage.
29100
9aced544 291012009-08-18 Felix Zielcke <fzielcke@z-51.de>
29102
29103 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29104 explicitly specified by the user.
29105
b7da6bab 291062009-08-18 Pavel Roskin <proski@gnu.org>
29107
29108 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29109 grub_uint8_t pointer for data.
29110 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29111 Likewise.
29112 * video/fb/fbutil.c: Remove unnecessary casts.
29113
19f1b335 291142009-08-17 Michal Suchanek <hramrach@centrum.cz>
29115
29116 VBE cleanup.
29117
29118 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29119 (grub_vbe_set_video_mode): Save active mode info
29120 only after setting the mode.
29121 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29122 second argument.
29123
2f467aa9 291242009-08-17 Michal Suchanek <hramrach@centrum.cz>
29125
29126 Rename variables for clarity.
29127
29128 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29129 (active_vbe_mode_info): ... this. All users updated.
29130 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29131 All users updated.
29132 (initial_mode): Rename to ...
29133 (initial_vbe_mode): ... this. All users updated.
29134 (mode_in_use): Rename to ..
29135 (vbe_mode_in_use): ... this. All users updated.
29136 (mode_list): Rename to ..
29137 (vbe_mode_list): ... this. All users updated.
29138 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29139 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29140 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29141 'mode_list_size' to 'vbe_mode_list_size'.
29142 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29143 'best_mode_info' to 'best_vbe_mode_info' and
29144 'best_mode' to 'best_vbe_mode'
29145
6025fcd7 291462009-08-17 Michal Suchanek <hramrach@centrum.cz>
29147
29148 Remove duplicate grub_video_fb_get_video_ptr.
29149
29150 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29151 (grub_video_fb_get_video_ptr): ... this.
29152 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29153 * video/fb/fbutil.c: Add comment about addressing.
29154 (get_data_ptr): Rename to ...
29155 (grub_video_fb_get_video_ptr): ... this. All users updated.
29156 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29157
cc8c6faf 291582009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29159
29160 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29161 grub_dprintf() that was just added.
29162
08aa61f0 291632009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29164
29165 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29166 (DEFAULT_VIDEO_MODE): Remove macros.
29167 (grub_linux_boot): Remove assumption that Linux has FB support,
29168 and use "text" as default video mode.
29169
7cef4f75 291702009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29171
29172 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29173 grub_dprintf.
29174 * fs/fat.c (grub_fat_read_data): Likewise.
29175
e1f39873 291762009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29177
29178 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29179 payload.
29180 (grub_module): Likewise.
29181
c166d79e 291822009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29183
29184 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29185 mbi->cmdline but free playground.
29186
c60cee8e 291872009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29188
29189 Handle group offset on UFS1.
29190
29191 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29192 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29193
c0d8b5d4 291942009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29195
29196 Split ufs.mod into ufs1.mod and ufs2.mod.
29197
29198 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29199 (grub_fstest_SOURCES): Likewise.
29200 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29201 (ufs_mod_SOURCES): Remove.
29202 (ufs_mod_CFLAGS): Likewise.
29203 (ufs_mod_LDFLAGS): Likewise.
29204 (ufs1_mod_SOURCES): New variable.
29205 (ufs1_mod_CFLAGS): Likewise.
29206 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 29207 (ufs2_mod_SOURCES): New variable.
29208 (ufs2_mod_CFLAGS): Likewise.
29209 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 29210 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29211 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29212 Likewise.
29213 (grub_emu_SOURCES): Likewise.
29214 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29215 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29216 (grub_setup_SOURCES): Likewise.
29217 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29218 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29219 (grub_setup_SOURCES): Likewise.
29220 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29221 Likewise.
29222 * fs/ufs2.c: New file.
29223 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29224
d3539132 292252009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29226
29227 Framebuffer split.
29228
29229 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29230 subsystem at the end.
29231 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29232 (video_fb_mod_SOURCES): New variable.
29233 (video_fb_mod_CFLAGS): Likewise.
29234 (video_fb_mod_LDFLAGS): Likewise.
29235 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29236 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29237 * video/i386/pc/vbeblit.c: Moved from here ...
29238 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29239 * video/i386/pc/vbefill.c: Moved from here ...
29240 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29241 * video/i386/pc/vbeutil.c: Moved from here ...
29242 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29243 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29244 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29245 * include/grub/i386/pc/vbefill.h: Moved from here ...
29246 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29247 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29248 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29249 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29250 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29251 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29252 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29253 (grub_video_adapter): Added 'get_info_and_fini'.
29254 (grub_video_get_info_and_fini): New prototype.
29255 (grub_video_set_mode): make modestring const char *.
29256 * loader/i386/linux.c (grub_linux_setup_video): Use
29257 grub_video_get_info_and_fini.
29258 (grub_linux_boot): Move modesetting just before booting.
29259 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29260 grub_video_get_info_and_fini.
29261 * video/i386/pc/vbe.c: Moved framebuffer part ...
29262 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29263 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29264 grub_video_fbstd_colors and grub_video_fb_set_palette.
29265 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29266 grub_video_fb_init.
29267 (grub_video_vbe_fini): Use grub_video_fb_fini.
29268 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29269 render_target and use grub_video_fb_set_active_render_target and
29270 grub_video_fb_set_palette.
29271 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29272 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29273 (grub_video_vbe_adapter): Use framebuffer.
29274 * video/video.c (grub_video_get_info_and_fini): New function.
29275 (grub_video_set_mode): Make modestring const char *.
29276 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29277 values are already initialised.
29278
d404ee56 292792009-08-14 Pavel Roskin <proski@gnu.org>
29280
29281 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29282 ABS and APPLE_CC.
29283 * boot/i386/pc/diskboot.S: Likewise.
29284 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29285 sectors allow compilation on MacOSX.
29286 * conf/i386-pc.rmk: Enable unconditional compilation of
29287 lnxboot.img.
29288
9a10df16 292892009-08-13 Colin Watson <cjwatson@ubuntu.com>
29290
29291 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29292 * util/grub.d/00_header.in: Enter interruptible sleep if
29293 GRUB_HIDDEN_TIMEOUT is set.
29294
be3c9ca7 292952009-08-13 Yves Blusseau <blusseau@zetam.org>
29296
29297 * include/grub/symbol.h: Add the LOCAL macro.
29298 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29299 starting with "L_".
29300
1f9e557e 293012009-08-13 Pavel Roskin <proski@gnu.org>
29302
9ca62843 29303 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29304 any modern compilers we support.
29305
1f9e557e 29306 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29307 Use local labels starting with "L_" so that Apple assembler
29308 knows they are local.
29309
81623db6 293102009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29311
29312 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29313 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29314 (bsd_kernel_types): ... this enum.
29315
29316 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29317 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29318 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29319
29320 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29321 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29322 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29323 messages.
29324
f5d35e7a 293252009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29326
29327 * util/grub-dumpdevtree: Moved from here ...
29328 * util/i386/efi/grub-dumpdevtree: ... to here.
29329 (hexify): New function. Converts a string to its hex version.
29330 Generate hex versions of "efi" and "device-properties" by calling
29331 hexify() on the ASCII strings rather than by hardcoding numbers.
29332
d1e1d527 293332009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29334
29335 * fs/jfs.c: Update copyright year.
29336
1ebbe064 293372009-08-08 Felix Zielcke <fzielcke@z-51.de>
29338
29339 * util/grub.d/00_header.in: Fix a comment.
29340 * util/grub.d/10_linux.in: Likewise.
29341 * util/grub.d/10_windows.in: Likewise.
29342 * util/grub.d/10_hurd.in: Likewise.
29343
a78c8d24 293442009-08-08 Felix Zielcke <fzielcke@z-51.de>
29345
29346 * util/grub-mkconfig.in: Allow the user to specify the used font
29347 with GRUB_FONT.
29348
29a6b9e8 293492009-08-08 Pavel Roskin <proski@gnu.org>
29350
b5f16cc4 29351 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29352 available, xfs.mod needs it now.
29353
2f5cb827 29354 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29355 the "g" modifier in sed when the intention is to strip something
29356 once. This fixes comparison of kernels with multiple dashes.
29357
29a6b9e8 29358 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29359 on it. Add missing space before closing bracket. Fix
29360 misleading formatting.
29361
892a3d98 293622009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29363
29364 * docs/grub.texi: Major overhaul. Remove all sections that are
29365 specific to GRUB Legacy, or mostly composed of Legacy-specific
29366 information.
29367
ed94253f 293682009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29369
29370 * docs/version.texi: New file. Provides version information for
29371 grub.texi.
29372
126d6628 293732009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29374
29375 * docs/grub.texi: Update CVS information to SVN.
29376 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29377
998b5aa9 293782009-08-07 Felix Zielcke <fzielcke@z-51.de>
29379
29380 * util/grub-mkconfig.in: Remove a wrong `fi'.
29381
818e094a 293822009-08-07 Felix Zielcke <fzielcke@z-51.de>
29383
29384 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29385 (grub_jfs_uuid): New function.
29386 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29387
b969c52f 293882009-08-07 Felix Zielcke <fzielcke@z-51.de>
29389
29390 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29391 of it to ...
29392 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29393 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29394
7a4894cc 293952009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29396
29397 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29398 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29399 Update all users.
29400
29401 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29402 not just "vmlinu[zx]".
29403 Moved from here ...
29404 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29405 all users.
29406
29407 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29408 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29409 all users.
29410
4e2171f8 294112009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29412
29413 * util/grub.d/10_freebsd.in: Use an absolute device path for
29414 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29415
6dcfcb32 294162009-08-06 Felix Zielcke <fzielcke@z-51.de>
29417
29418 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29419 handling of multiple abstraction modules.
29420
f56a8756 294212009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29422
29423 Fix a bug resulting in black screen when loading Linux using a
29424 packed video mode.
29425
29426 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29427 function.
29428
29429 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29430 (grub_vbe_bios_getset_dac_palette_width): New function.
29431 (grub_vbe_bios_get_dac_palette_width)
29432 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29433 grub_vbe_bios_getset_dac_palette_width()).
29434
29435 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29436 check for return status.
29437 (grub_vbe_get_video_mode_info): When getting information for a packed
29438 mode (<= 8 bpp), obtain DAC palette width using
29439 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29440 {red,green,blue}_mark_size.
29441
222671b2 294422009-08-04 Felix Zielcke <fzielcke@z-51.de>
29443
ecb1a6d9 29444 * commands/search.c (options): Fix help output to match actual code.
222671b2 29445
f84114f5 294462009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29447
29448 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29449 of homegrown code.
29450
bd288a20 294512009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 29452
29453 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29454 on XFS or ReiserFS.
29455
8aab5e25 294562009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29457
29458 Support Apple partition map with sector size different from 512 bytes.
29459
29460 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29461 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29462 and 'apart.partmap_size'.
29463
6ad6258a 294642009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
294652009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29466
29467 Fix cpuid command.
29468
29469 * commands/i386/cpuid.c (options): New variable.
29470 (grub_cmd_cpuid): Return real error.
29471 (GRUB_MOD_INIT(cpuid)): Declare options.
29472
67459bc6 294732009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29474
29475 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29476 valid.
29477
fbc6ab54 294782009-07-31 Bean <bean123ch@gmail.com>
29479
29480 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29481 log2_inode.
29482 (grub_fshelp_node): Move inode field to the end.
29483 (grub_xfs_data): Remove inode field.
29484 (grub_xfs_inode_block): Calculate inode size using sblock.
29485 (grub_xfs_inode_offset): Likewise.
29486 (grub_xfs_read_inode): Calculate inode size using sblock.
29487 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29488 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29489 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29490 to match inode size.
29491 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29492 not accessible when data is null.
29493 (grub_xfs_open): Likewise.
29494
f45d6cfc 294952009-07-31 Bean <bean123ch@gmail.com>
29496
29497 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29498 Don't change pv->disk if it's already set.
29499
29500 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29501 (grub_raid_register): ... here.
29502 (grub_raid_rescan): Removed.
29503
29504 * include/grub/raid.h (grub_raid_rescan): Removed.
29505
29506 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29507 (fstest): Replace grub_raid_rescan with module fini function followed
29508 by init function.
29509
29510 * util/grub-probe.c: Add include file <grub/raid.h>.
29511 (probe_raid_level): New function.
29512 (probe): Detect abstraction by walking the disk device, support two
29513 level of abstraction (LVM on RAID) when detecting partition map.
29514
24443b5a 295152009-07-31 Pavel Roskin <proski@gnu.org>
29516
29517 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29518 to grub_zalloc(), it was erroneous.
29519 Reported by Bean <bean123ch@gmail.com>
29520
a275d9e7 295212009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29522
29523 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 29524 embedding zone, not only the first one.
a275d9e7 29525
56c5a47f 295262009-07-29 Joe Auricchio <jauricchio@gmail.com>
29527
29528 * term/gfxterm.c (clear_char): New function.
29529 (grub_virtual_screen_setup): Use clear_char.
29530 (scroll_up): Likewise.
29531 (grub_virtual_screen_cls): Likewise.
29532
67bb323a 295332009-07-29 Felix Zielcke <fzielcke@z-51.de>
29534
29535 * util/deviceiter.c (get_acceleraid_disk_name): New static
29536 function.
29537 (grub_util_iterate_devices): Handle Accelraid devices.
29538 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29539
388a7c75 295402009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29541
29542 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29543 separator for the suggested gfxpayload string (';' collides with the
29544 parser and needs escaping).
29545
3bb7abcf 295462009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29547
29548 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29549 Clear direction flag before jumping to OS.
29550 (grub_multiboot2_real_boot): Likewise.
29551
2ddd36d7 295522009-07-28 Felix Zielcke <fzielcke@z-51.de>
29553
29554 * util/i386/pc/grub-install: Fix parsing of --disk-module
29555 option.
29556
c521b62b 295572009-07-28 Felix Zielcke <fzielcke@z-51.de>
29558
29559 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29560 when embedding.
29561
880e0a0c 295622009-07-26 Felix Zielcke <fzielcke@z-51.de>
29563
29564 * util/grub-mkconfig.in (package_version): New variable.
29565 Use it do display the version.
29566
2366e356 295672009-07-25 Felix Zielcke <fzielcke@z-51.de>
29568
29569 * kern/file.c (grub_file_open): Revert to previous check with
29570 grub_errno.
29571
7ad8c80e 295722009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29573
29574 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29575 from help line. It's out of sync with code.
29576
72b9658b 295772009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29578
29579 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29580 entries on failed boot.
29581
77435277 295822009-07-25 Felix Zielcke <fzielcke@z-51.de>
29583
29584 * kern/file.c (grub_file_open): Fix an error check.
29585
fcaa8b21 295862009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29587
35d16c74 29588 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29589 partition map couldn't be identified.
fcaa8b21 29590
48904cd1 295912009-07-23 Pavel Roskin <proski@gnu.org>
29592
ef3c317f 29593 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29594 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29595 case of little endian words becomes just an optimization.
29596 Respect const modifier.
ad8ea1f4 29597 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 29598
48904cd1 29599 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29600 to avoid loss of upper bits if align is unsigned and shorter
29601 than addr.
29602
260c9a89 296032009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29604
29605 UUID support for UFS
29606
29607 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29608 (grub_ufs_uuid): New function.
29609 (grub_ufs_fs): add .uuid
29610
f76ce889 296112009-07-21 Pavel Roskin <proski@gnu.org>
29612
29613 * kern/dl.c (grub_dl_check_header): Make static.
29614
6a6cbcaf 296152009-07-21 Felix Zielcke <fzielcke@z-51.de>
29616
29617 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29618 add drivemap for Vista. It breaks Windows 7.
29619
cffcddb2 296202009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29621
29622 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29623 128 bytes
29624
1ef44b80 296252009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29626
29627 Add BFS support
29628
29629 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29630 (grub_fstest_SOURCES): Likewise.
29631 (pkglib_MODULES): Add befs.mod.
29632 (befs_mod_SOURCES): New variable.
29633 (befs_mod_CFLAGS): Likewise.
29634 (befs_mod_LDFLAGS): Likewise.
29635 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29636 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29637 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29638 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29639 (grub_setup_SOURCES): Likewise.
29640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29641 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29642 (grub_setup_SOURCES): Likewise.
29643 * fs/befs.c: New file.
29644 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29645 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29646 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29647 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29648 (B_KEY_INDEX_ALIGN): New declaration.
29649 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29650 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29651 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29652 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29653 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29654 (grub_afs_mount) [MODE_BFS]: Likewise.
29655 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29656 (grub_afs_fs): Use GRUB_AFS_FSNAME
29657 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29658 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29659 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29660 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29661
4f253044 296622009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29663
29664 * util/getroot.c (find_root_device): Add support for MacOSX.
29665 * util/hostdisk.c: Likewise.
29666
57a55913 296672009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29668
29669 * font/font.c (find_glyph): Check whether a font is present to avoid
29670 segmentation fault.
75421ca9 29671
296722009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 29673
29674 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29675
e98cd0c2 296762009-07-20 Pavel Roskin <proski@gnu.org>
29677
29678 * configure.ac: Trim excessively wordy excuses.
29679
1d2d169a 296802009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29681
29682 Add symlink, mtime and label support to AtheFS.
29683
29684 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29685 (grub_afs_iterate_dir): Handle symlinks.
29686 (grub_afs_open): Use grub_afs_read_symlink.
29687 (grub_afs_dir): Likewise.
29688 Pass mtime.
29689 (grub_afs_label): New function.
29690 (grub_afs_fs): Add grub_afs_label.
29691 (grub_afs_read_symlink): New function.
29692
186f3189 296932009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29694
29695 Fix AtheFS support.
29696
29697 * fs/afs.c: Fix comments style.
29698 (grub_afs_blockrun): Declare as packed.
29699 (grub_afs_datastream): Likewise.
29700 (grub_afs_bnode): Likewise.
29701 (grub_afs_btree): Likewise.
29702 (grub_afs_sblock): Likewise.
29703 Declare `name' as char.
29704 (grub_afs_inode): Declare as packed.
29705 Change void *vnode to grub_uint32_t unused.
29706 (grub_afs_iterate_dir): Check that key_size is positive.
29707 (grub_afs_mount): Don't read superblock twice.
75421ca9 29708 (grub_afs_dir): Don't free node in case of error,
186f3189 29709 grub_fshelp_find_file already handles this.
29710 (grub_afs_open): Likewise.
29711
5680109e 297122009-07-19 Pavel Roskin <proski@gnu.org>
29713
29714 * Makefile.in: Remove LIBLZO and enable_lzo.
29715 * conf/i386-pc.rmk: Remove lzo support.
29716 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29717 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29718 support.
29719 * kern/i386/pc/lzo1x.S: Remove.
29720 * kern/i386/pc/startup.S: Remove lzo support.
29721 * util/i386/pc/grub-mkimage.c: Likewise.
29722
ac70fa32 297232009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29724
29725 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29726 * fs/xfs.c (grub_xfs_dir): Likewise.
29727 * fs/afs.c (grub_afs_dir): Likewise.
29728 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29729 (grub_iso9660_open): Likewise.
29730 * fs/jfs.c (grub_jfs_open): Likewise.
29731 * fs/ext2.c (grub_ext2_dir): Likewise.
29732 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29733 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 29734
eab58da2 297352009-07-16 Pavel Roskin <proski@gnu.org>
29736
d2838156 29737 * configure.ac: Never add "-c" to CFLAGS.
29738
55c70904 29739 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29740
43e6200c 29741 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29742 grub_cv_cc_efiemu should be used.
29743
ce7a733d 29744 * configure.ac: Typo fixes.
29745
eab58da2 29746 * kern/mm.c (grub_zalloc): New function.
29747 (grub_debug_zalloc): Likewise.
29748 * include/grub/mm.h: Declare grub_zalloc() and
29749 grub_debug_zalloc().
29750 * util/misc.c (grub_zalloc): New function.
29751 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29752 instead of grub_malloc(), remove unneeded initializations.
29753 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29754 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29755 * commands/parttool.c (grub_cmd_parttool): Likewise.
29756 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29757 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29758 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29759 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29760 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29761 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29762 (grub_cmd_efiemu_pnvram): Likewise.
29763 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29764 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29765 (grub_iso9660_iterate_dir): Likewise.
29766 * fs/jfs.c (grub_jfs_opendir): Likewise.
29767 * fs/ntfs.c (list_file): Likewise.
29768 (grub_ntfs_mount): Likewise.
29769 * kern/disk.c (grub_disk_open): Likewise.
29770 * kern/dl.c (grub_dl_load_core): Likewise.
29771 * kern/elf.c (grub_elf_file): Likewise.
29772 * kern/env.c (grub_env_context_open): Likewise.
29773 (grub_env_set): Likewise.
29774 (grub_env_set_data_slot): Likewise.
29775 * kern/file.c (grub_file_open): Likewise.
29776 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29777 * loader/i386/multiboot.c (grub_module): Likewise.
29778 * loader/xnu.c (grub_xnu_create_key): Likewise.
29779 (grub_xnu_create_value): Likewise.
29780 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29781 (read_config_file): Likewise.
29782 * normal/menu_entry.c (make_screen): Likewise.
29783 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29784 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29785 * script/sh/script.c (grub_script_parse): Likewise.
29786 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29787 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29788 * video/readers/png.c (grub_png_output_byte): Likewise.
29789 (grub_video_reader_png): Likewise.
29790
830afef7 297912009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 29792
29793 Enable all targets that can be built by default
29794
830afef7 29795 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 29796 grub-mkfont and grub-fstest if they can be built
29797
ee293aee 297982009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29799
29800 Fix hang and segmentation fault in grub-emu-usb
29801
29802 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29803 * util/usb.c (grub_libusb_devices): likewise
29804 (grub_libusb_init): rename to ...
29805 (GRUB_MOD_INIT (libusb)):...this
29806 (grub_libusb_fini): rename to ..
29807 (GRUB_MOD_FINI (libusb)):...this
29808 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29809 * include/grub/disk.h (grub_raid_init): removed, it's useless
29810 (grub_raid_fini): likewise
29811 (grub_lvm_init): likewise
29812 (grub_lvm_fini): likewise
29813 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29814 by grub_init_all
29815
94414221 298162009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29817
29818 Fix libusb
29819
29820 * Makefile.in (LIBUSB): new macro
29821 * genmk.rb (Utility/print_tail): new method
29822 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29823 (top level): call util.print_tail at the end.
29824
59ade63d 298252009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29826
29827 Make FreeBSD accept zpool.cache
29828
29829 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29830 type is /boot/zfs/zpool.cache
29831
a58da8c7 298322009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29833
29834 Fix 64-bit efiemu
29835
29836 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29837 correct wrong typedef
29838 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29839
20591577 298402009-07-15 Pavel Roskin <proski@gnu.org>
29841
560ca572 29842 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29843 * kern/disk.c (struct grub_disk_cache): Likewise.
29844
e8e8e4fd 29845 * commands/probe.c (options): Typo fix.
29846
fde24e10 29847 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29848 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29849 accordingly.
29850 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29851
379c54c1 29852 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29853 the end of "Error" to make the message more readable.
29854
7bd8f5bf 29855 * boot/i386/pc/boot.S (kernel_segment): Remove.
29856 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29857 for destination.
29858
40b132c5 29859 * boot/i386/pc/boot.S (boot_version): Remove.
29860 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29861 Remove.
29862
20591577 29863 * include/grub/i386/pc/boot.h: Sort all offsets.
29864 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29865 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29866 * boot/i386/pc/boot.S: Assert location of every offset listed in
29867 include/grub/i386/pc/boot.h.
29868
2df32b2c 298692009-07-13 Pavel Roskin <proski@gnu.org>
29870
44b5d879 29871 * include/grub/i386/coreboot/machine.h: Rename
29872 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29873 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29874 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29875
17dc3751 29876 * kern/dl.c: Force native word size to suppress warnings when
29877 compiling grub-emu.
29878
2df32b2c 29879 * kern/device.c (grub_device_iterate): Change struct part_ent to
29880 hold the name, not a pointer to it. Use one grub_malloc() per
29881 partition, not two. Free partition_name if grub_malloc() fails.
29882 Set ents to NULL only before grub_partition_iterate() is called.
29883
75c59f59 298842009-07-11 Bean <bean123ch@gmail.com>
29885
29886 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29887 childname.
29888
0ae1bf88 298892009-07-10 Bean <bean123ch@gmail.com>
298902009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29891
29892 * kern/ieee1275/openfw.c (grub_children_iterate)
29893 (grub_devalias_iterate): Fix size evaluation for property or path
29894 strings, which was broken since r2132.
29895
8279cade 298962009-07-07 Pavel Roskin <proski@gnu.org>
29897
7d8a52d3 29898 * commands/search.c (search_file): Merge into ...
29899 (search_fs): ... this. Accept search type as argument.
29900 (grub_cmd_search): Pass search type to search_fs().
29901
25f9a05a 29902 * include/grub/util/console.h: New file.
29903 * util/console.c: Use it instead of grub/machine/console.h.
29904 * util/grub-emu.c: Likewise.
29905
8279cade 29906 * lib/arg.c (find_long_option): Remove.
29907 (find_long): Add `len' argument, make `s' const char *.
29908 (grub_arg_parse): Parse long options in place, not in a
29909 temporary buffer.
29910
4a11b60f 299112009-07-06 Pavel Roskin <proski@gnu.org>
29912
99f68041 29913 * commands/search.c (search_fs): Fix potential NULL pointer
29914 dereference.
29915
4a11b60f 29916 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29917 function pointer.
29918
e110f4de 299192009-07-06 Daniel Mierswa <impulze@impulze.org>
29920
29921 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29922 comparison.
29923
46eeb6a2 299242009-07-05 Pavel Roskin <proski@gnu.org>
29925
bab74958 29926 * include/grub/i386/linux.h (struct linux_kernel_params):
29927 Restore padding3, it's still needed.
29928
46eeb6a2 29929 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29930 FreeBSD.
29931 * util/osdetect.lua: Likewise.
29932
b4a1dc79 299332009-07-05 Bean <bean123ch@gmail.com>
29934
29935 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29936
29937 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29938 (grub_lua_getenv): Likewise.
29939 (grub_lua_setenv): Likewise.
29940 (save_errno): New function.
29941 (push_result): Likewise.
29942 (grub_lua_enum_device): Likewise.
29943 (grub_lua_enum_file): Likewise.
29944 (grub_lua_file_open): Likewise.
29945 (grub_lua_file_close): Likewise.
29946 (grub_lua_file_seek): Likewise.
29947 (grub_lua_file_read): Likewise.
29948 (grub_lua_file_getline): Likewise.
29949 (grub_lua_file_getsize): Likewise.
29950 (grub_lua_file_getpos): Likewise.
29951 (grub_lua_file_eof): Likewise.
29952 (grub_lua_file_exist): Likewise.
29953 (grub_lua_add_menu): Likewise.
29954
29955 * script/lua/grub_lua.h (isupper): New inline function.
29956 (islower): Likewise.
29957 (ispunct): Likewise.
29958 (isxdigit): Likewise.
29959 (strcspn): Change to normal function.
29960 (strpbkr): New function declaration.
29961 (memchr): Likewise.
29962
29963 * script/lua/grub_main.c (scan_str): New function.
29964 (strcspn): Likewise.
29965 (strpbrk): Likewise.
29966 (memchr): Likewise.
29967
29968 * script/lua/linit.c (lualibs): Enable the string library.
29969
29970 * util/osdetect.lua: New file.
29971
2da92295 299722009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29973
29974 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29975 `capabilities' member.
29976
b2582ec9 299772009-07-02 Pavel Roskin <proski@gnu.org>
29978
29979 * genparttoollist.sh: Add missing newline at the end.
29980
32622956 299812009-07-01 Pavel Roskin <proski@gnu.org>
29982
87a7339e 29983 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29984
d23af54e 29985 * util/hostdisk.c (open_device): Remove `const' from
29986 `sysctl_size', as sysctlbyname() can change it (in this case it
29987 doesn't actually happen).
29988
c94b18a9 29989 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29990 using signed long int constants.
29991
c6cd3ef0 29992 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29993 constant to avoid a warning on FreeBSD.
29994
0df63420 29995 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29996 where it's needed.
29997
999577f1 29998 * Makefile.in: Install include/grub/machine symlink.
29999
6f41557f 30000 * Makefile.in: When installing symlinks, use "cp -fR", which
30001 works on FreeBSD and MacOSX.
30002 From Yves Blusseau <cl7m42e02@sneakemail.com>
30003
c8d22988 30004 * kern/dl.c (grub_dl_resolve_symbol): Make static.
30005 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
30006
1b96e952 30007 * util/misc.c: Move grub_reboot() and grub_halt() ...
30008 * util/grub-emu.c: ... here. Make main_env static.
30009 * include/grub/util/misc.h: Remove main_env.
30010
2ef0084d 30011 * kern/mm.c: Use correct format to print size_t.
30012
32622956 30013 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
30014 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
30015 * kern/powerpc/dl.c: Likewise.
30016 * kern/sparc64/dl.c: Likewise.
30017 * kern/x86_64/dl.c: Likewise.
30018
3f7f0cd0 300192009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30020
30021 Fix grub-emu build on sparc64-ieee1275.
30022
75421ca9 30023 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 30024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
30025
211d06b5 300262009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30027
30028 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
30029 (grub_reboot, grub_halt): New functions.
30030
30031 * util/i386/pc/misc.c: Delete. Update all users.
30032 * util/sparc64/ieee1275/misc.c: Likewise.
30033 * util/powerpc/ieee1275/misc.c: Likewise.
30034
aaf53e3c 300352009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30036
30037 * conf/i386.rmk (setjmp_mod_SOURCES)
30038 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
30039 * conf/common.rmk (setjmp_mod_SOURCES)
30040 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
30041 to use $(target_cpu).
30042 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
30043 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
30044 * conf/powerpc-ieee1275.rmk: Likewise.
30045 * conf/sparc64-ieee1275.rmk: Likewise.
30046
30047 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
30048 $(target_cpu) for kern/$(target_cpu)/dl.c.
30049 * conf/i386-efi.rmk: Likewise.
30050 * conf/i386-ieee1275.rmk: Likewise.
30051 * conf/x86_64-efi.rmk: Likewise.
30052 * conf/i386-coreboot.rmk: Likewise.
30053 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
30054 $(target_cpu) for kern/$(target_cpu)/dl.c and for
30055 kern/$(target_cpu)/cache.S.
30056 * conf/sparc64-ieee1275.rmk: Likewise.
30057
a337130b 300582009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30059
30060 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
30061 type to `grub_uint8_t', and adjust `padding9' accordingly.
30062
c6fe4d53 300632009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30064
b09db61d 30065 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
30066
c6fe4d53 30067 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
30068 assembly in final jump, using register constraints.
30069
b09db61d 30070 (grub_linux_boot): For text mode, initialize `have_vga' using
30071 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
30072
30073 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
30074 right before the final jump.
30075
30076 Set `video_mode' to 0x3.
30077
30078 Document initialization of `video_page', `video_mode' and
30079 `video_ega_bx'.
30080
28333ad0 300812009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30082
30083 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
30084 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 30085 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 30086
02164e1b 300872009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30088
30089 Fix build on Debian / sparc.
30090
30091 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30092
18b6c557 300932009-06-28 Pavel Roskin <proski@gnu.org>
30094
85f2aab6 30095 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30096 fix a warning.
30097
18b6c557 30098 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30099
ad760f81 301002009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30101
30102 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30103 `err'.
30104
87a4623b 301052009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30106
30107 Revert r2338.
30108
30109 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30110 file can't be opened. grub_file_open() is already supposed to set
75421ca9 30111 grub_errno / grub_errmsg appropriately.
87a4623b 30112 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30113
8231fb77 301142009-06-27 Pavel Roskin <proski@gnu.org>
301152009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30116
30117 * include/grub/dl.h: Include grub/elf.h.
30118 (struct grub_dl): Add symtab field.
30119 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30120 GRUB_MODULES_MACHINE_READONLY.
30121 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30122 of the header for read-only modules.
30123 (grub_dl_unload): Free mod->symtab for read-only modules.
30124 * kern/i386/dl.c: Use mod->symtab.
30125 * kern/powerpc/dl.c: Likewise.
30126 * kern/sparc64/dl.c: Likewise.
30127 * kern/x86_64/dl.c: Likewise.
30128
30129 * conf/i386-qemu.rmk: New file.
30130 * kern/i386/qemu/startup.S: Likewise.
30131 * kern/i386/qemu/mmap.c: Likewise.
30132 * boot/i386/qemu/boot.S: Likewise.
30133 * include/grub/i386/qemu/time.h: Likewise.
30134 * include/grub/i386/qemu/serial.h: Likewise.
30135 * include/grub/i386/qemu/kernel.h: Likewise.
30136 * include/grub/i386/qemu/console.h: Likewise.
30137 * include/grub/i386/qemu/boot.h: Likewise.
30138 * include/grub/i386/qemu/init.h: Likewise.
30139 * include/grub/i386/qemu/machine.h: Likewise.
30140 * include/grub/i386/qemu/loader.h: Likewise.
30141 * include/grub/i386/qemu/memory.h: Likewise.
30142
30143 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30144 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30145 [qemu] (pkglib_IMAGES): Add `boot.img'.
30146 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30147 [qemu] (boot_img_FORMAT): New variables.
30148 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30149 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30150 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30151 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30152 [qemu] (kernel_img_FORMAT): New variables.
30153
30154 * configure.ac: Recognise `i386-qemu'.
30155
30156 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30157 (for no compression).
30158 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30159 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30160 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30161 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30162 ifdefs).
30163
97fe384e 301642009-06-27 Pavel Roskin <proski@gnu.org>
30165
30166 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30167 read.
30168 * efiemu/prepare32.c: Likewise.
30169 * efiemu/prepare64.c: Likewise.
30170
c402ab17 301712009-06-26 Pavel Roskin <proski@gnu.org>
30172
30173 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30174 * include/grub/elf.h: Define symbols without "32" or "64" based
30175 on GRUB_TARGET_WORDSIZE.
30176 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30177 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30178 ELF definitions.
30179 * efiemu/loadcore64.c: Likewise.
30180 * loader/i386/bsd32.c: Likewise.
30181 * loader/i386/bsd64.c: Likewise.
30182 * kern/dl.c: Remove own ELF definitions.
30183 * util/i386/efi/grub-mkimage.c: Likewise.
30184
9bbdfd4d 301852009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30186
30187 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30188 segment 0x0 unconditionally, because the reference generated by
30189 GAS is an absolute address.
30190
a42ce6e9 301912009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30192
30193 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30194 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30195
c952cf92 301962009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30197
30198 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30199 indexes. Check for -f explicitly.
cc3752ad 30200 (search_file): Improve error message.
30201 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 30202
132a0a59 302032009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30204
30205 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30206 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30207
387a140c 302082009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30209
30210 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30211 * conf/i386-ieee1275.rmk: Likewise.
30212 * conf/i386-coreboot.rmk: Likewise.
30213
30214 * kern/i386/pc/startup.S (grub_stop): Remove function.
30215 * kern/i386/ieee1275/startup.S: Likewise.
30216 * kern/i386/coreboot/startup.S: Likewise.
30217 * kern/i386/misc.S (grub_stop): New function.
30218
41da9665 302192009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30220
30221 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30222 * kern/i386/realmode.S (real_to_prot): ... to here.
30223
bf337234 302242009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30225
30226 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30227 with `kernel.img'.
30228 (kernel_elf_SOURCES): Rename to ...
30229 (kernel_img_SOURCES): ... this.
30230 (kernel_elf_HEADERS): Rename to ...
30231 (kernel_img_HEADERS): ... this. Update all users.
30232 (kernel_elf_ASFLAGS): Rename to ...
30233 (kernel_img_ASFLAGS): ... this.
30234 (kernel_elf_CFLAGS): Rename to ...
30235 (kernel_img_CFLAGS): ... this.
30236 (kernel_elf_LDFLAGS): Rename to ...
30237 (kernel_img_LDFLAGS): ... this.
30238 * conf/i386-coreboot.rmk: Likewise.
30239 * conf/powerpc-ieee1275.rmk: Likewise.
30240
30241 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30242 with "kernel.img".
30243
f52196ff 302442009-06-21 Pavel Roskin <proski@gnu.org>
30245
c3cee413 30246 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30247 to match nested functions.
30248 * loader/sparc64/ieee1275/linux.c: Likewise.
30249
f52196ff 30250 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30251
58750afc 302522009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30253
30254 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30255 all i386 platforms.
30256
15355c7d 302572009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30258
30259 Fix asm file handling on ELF, and remove workarounds.
30260
30261 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 30262 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 30263 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30264 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30265
3f3ec72b 302662009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30267
30268 Load BSD ELF modules
30269
30270 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30271 and loader/i386/bsd64.c
30272 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30273 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30274 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30275 (grub_freebsd_load_elfmodule32): New declaration
30276 (grub_freebsd_load_elfmoduleobj64): Likewise
30277 (grub_freebsd_load_elf_meta32): Likewise
30278 (grub_freebsd_load_elf_meta64): Likewise
30279 (grub_freebsd_add_meta): Likewise
30280 (grub_freebsd_add_meta_module): Likewise
30281 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30282 (grub_freebsd_add_meta_module): Likewise and move module-specific
30283 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30284 (grub_cmd_freebsd): Add elf-kernel specific parts
30285 based on grub_freebsd_add_meta_module
30286 (grub_cmd_freebsd_module): Add type parsing moved from
30287 grub_freebsd_add_meta_module
30288 (grub_cmd_freebsd_module_elf): New function
30289 (cmd_freebsd_module_elf): New variable
30290 (GRUB_MOD_INIT): Register freebsd_module_elf
30291 * loader/i386/bsd32.c: New file
30292 * loader/i386/bsd64.c: Likewise
30293 * loader/i386/bsdXX.c: Likewise
30294 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30295 (grub_elf64_load): Likewise
30296 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30297 All users updated
30298 (grub_elf64_load_hook_t): Likewise
30299
0db15301 303002009-06-21 Colin Watson <cjwatson@ubuntu.com>
30301
30302 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30303 variable.
30304 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30305 don't write a menu entry for recovery mode.
30306
546796c1 303072009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30308
30309 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30310 after it's no longer needed.
30311
cd7310d5 303122009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30313
30314 * include/grub/i386/loader.h (grub_linux_prot_size)
30315 (grub_linux_tmp_addr, grub_linux_real_addr)
30316 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30317 GRUB_MACHINE_PCBIOS.
30318 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30319 common grub_util_info() call to ...
30320 (generate_image): ... here.
30321 Fix use of uninitialized memory, comparison of signed with
30322 unsigned integers and memory leak.
30323 Remove bogus module address message.
30324
ab32d3b5 303252009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30326
30327 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30328 grub_raid_register
30329 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30330
024ef597 303312009-06-19 Pavel Roskin <proski@gnu.org>
30332
30333 * configure.ac: Remove stray AC_MSG_CHECKING.
30334
3ac72b51 303352009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30336
30337 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 30338
e14cd814 303392009-06-18 Pavel Roskin <proski@gnu.org>
30340
30341 * conf/common.rmk: Add fs_file.mod.
30342 * disk/fs_file.c: New file.
30343 * include/grub/disk.h (enum grub_disk_dev_id): Add
30344 GRUB_DISK_DEVICE_FILE_ID.
30345
26586d98 303462009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30347
30348 Fix build with Apple's toolchain. Part 2
30349
30350 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30351 a fake start
30352
26de2bcd 303532009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30354
30355 Fix build with Apple's toolchain. Part 1
30356
30357 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30358 for long calls
30359 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 30360 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 30361 Apple's toolchain
30362
09b3490b 303632009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30364
30365 Fix warnings
30366
30367 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30368 (decomp_block): initialize ch
30369 use grub_memcpy instead of memcpy
30370
c22a006a 303712009-06-17 Pavel Roskin <proski@gnu.org>
30372
d3638678 30373 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30374 version, use declarations needed to use vga_text as the startup
30375 console.
30376
c22a006a 30377 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30378 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30379 the kernel.
30380 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30381 and grub_at_keyboard_fini(), it's done on module load and
30382 unload.
30383
05b129e0 303842009-06-17 Felix Zielcke <fzielcke@z-51.de>
30385
30386 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30387 file can't be found.
30388 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30389
cf24ed9e 303902009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30391
30392 Fix newline handling
30393
30394 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 30395 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 30396 (grub_script_yylex): don't segfault on unterminated script
30397 newline terminates command and variable
30398
74aa8e4b 303992009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30400
30401 avoid double grub_adjust_range call. Bug reported by David Simner
30402
30403 * kern/disk.c (grub_disk_write): change to raw disk access before
30404 calling disk_read
30405
1bd265f3 304062009-06-17 Colin Watson <cjwatson@ubuntu.com>
30407
30408 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30409 spaces, for the benefit of help2man.
30410 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30411
a2d08c06 304122009-06-16 Pavel Roskin <proski@gnu.org>
30413
30414 * kern/i386/halt.c: Include grub/machine/init.h.
30415 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30416
b97bcb19 304172009-06-16 Felix Zielcke <fzielcke@z-51.de>
30418
30419 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30420 drivemap menuentry.
30421
0644f96c 304222009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30423
30424 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30425 `echo' command.
30426
3ef17a2e 304272009-06-16 Pavel Roskin <proski@gnu.org>
30428
30429 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30430 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30431 save %dx, we only need %dl and we never change it.
30432 * boot/i386/pc/cdboot.S: Don't set the root drive.
30433 * boot/i386/pc/pxeboot.S: Likewise.
30434 * include/grub/i386/pc/boot.h: Remove
30435 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30436 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30437 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30438 * kern/i386/pc/init.c (make_install_device): Remove references
30439 to grub_root_drive.
30440 * kern/i386/pc/startup.S: Likewise.
30441 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30442
693fe637 304432009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30444
30445 xnu_uuid command
30446
30447 * commands/xnu_uuid.c: new file
30448 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30449 (xnu_uuid_mod_SOURCES): new variable
30450 (xnu_uuid_mod_CFLAGS): likewise
30451 (xnu_uuid_mod_LDFLAGS): likewise
30452 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30453 * conf/i386-ieee1275.rmk: likewise
30454 * conf/i386-pc.rmk: likewise
30455 * conf/powerpc-ieee1275.rmk: likewise
30456 * conf/sparc64-ieee1275.rmk: likewise
30457 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30458
c9da87d0 304592009-06-16 Pavel Roskin <proski@gnu.org>
30460
30461 * configure.ac: Avoid '==' in test command, it's not portable.
30462
9c6f4596 304632009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30464
30465 Probe command
30466
30467 * commands/probe.c: new file
30468 * conf/common.rmk (pkglib_MODULES): add probe.mod
30469 (probe_mod_SOURCES): new variable
30470 (probe_mod_CFLAGS): likewise
30471 (probe_mod_LDFLAGS): likewise
30472 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30473 * conf/i386-ieee1275.rmk: likewise
30474 * conf/i386-pc.rmk: likewise
30475 * conf/powerpc-ieee1275.rmk: likewise
30476 * conf/sparc64-ieee1275.rmk: likewise
30477
70b7f9fd 304782009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30479
30480 Fix handling of string like \"hello\" and "a
30481 b"
30482
30483 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30484 (grub_script_yylex): fix parsing of quoting, escaping and newline
30485
71c79a6b 304862009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30487
dd74360c 30488 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 30489 handling
dd74360c 30490
0644f96c 304912009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 30492
30493 * util/grub-mkconfig.in: Fix parsing of --output option.
30494
e40893c3 304952009-06-12 Pavel Roskin <proski@gnu.org>
30496
30497 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30498 genmk.rb don't need to be generated or installed.
30499
3a1acfe2 305002009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30501
30502 * commands/i386/pc/drivemap_int13h.S: add more comments
30503
3a4575d4 305042009-06-11 Pavel Roskin <proski@gnu.org>
30505
0658e928 30506 * Makefile.in (uninstall): Uninstall manuals.
30507
ca0388f0 30508 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30509 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30510 and update-grub_lib in two places.
30511 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30512
e3b27c39 30513 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30514 a compiler warning.
30515
3a4575d4 30516 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30517 `entry_lo' to fix variable shadowing.
30518
af1f4f55 305192009-06-11 Christian Franke <franke@computer.org>
30520
30521 * kern/misc.c (__enable_execute_stack): Add missing return type
30522 to prevent gcc warning.
30523
5225e649 305242009-06-11 Felix Zielcke <fzielcke@z-51.de>
30525
30526 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30527
7d83bd47 305282009-06-11 Pavel Roskin <proski@gnu.org>
30529
c1cb63ba 30530 * Makefile.in: Don't rely on any scripts being executable.
30531 Always use $(SHELL) to run shell scripts.
30532
7d83bd47 30533 * configure.ac: Always define ___main if using -nostdlib. This
30534 fixes tests on Cygwin.
30535
948f48e7 305362009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30537
30538 UDF fix
30539
7d83bd47 30540 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 30541 is in bytes and not in blocks
7d83bd47 30542
8ada9bc1 305432009-06-11 Pavel Roskin <proski@gnu.org>
30544
30545 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30546 warning.
30547
25ad2323 305482009-06-11 Felix Zielcke <fzielcke@z-51.de>
30549
30550 * util/grub.d/30_os-prober.in: Fix a comment. Source
30551 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30552 to set the root device. Place drivemap command in the generated
30553 chain entry.
30554
e65acb0c 305552009-06-11 Pavel Roskin <proski@gnu.org>
30556
30557 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30558 have long been resolved.
30559
f285fe2d 305602009-06-11 Colin Watson <cjwatson@ubuntu.com>
30561
bd47b0b5 30562 * util/grub.d/10_linux.in: Capitalise "Linux".
30563
f285fe2d 30564 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30565
a0c62e4e 305662009-06-11 Pavel Roskin <proski@gnu.org>
30567
b6783cb2 30568 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30569 fix a gcc warning and ensure that the function won't ever exit.
30570
dde032e8 30571 * kern/i386/ieee1275/init.c: Add missing prototype for
30572 grub_stop_floppy().
30573
22cd079d 30574 * loader/ieee1275/multiboot2.c [__i386__]: Include
30575 grub/cpu/multiboot.h.
30576
a0c62e4e 30577 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30578 casts to short - they are not portable and cause warnings. Fix
30579 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30580
63963d17 305812009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30582
30583 Drivemap fixes
30584
30585 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30586 new function
30587 (grub_get_root_biosnumber_saved): new variable
30588 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30589 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 30590 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 30591 %dx after the call if necessary
30592 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30593 (boot_mod_SOURCES): remove
30594 (boot_mod_CFLAGS): remove
30595 (boot_mod_LDFLAGS): remove
30596 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30597 (boot_mod_SOURCES): new variable
30598 (boot_mod_CFLAGS): likewise
30599 (boot_mod_LDFLAGS): likewise
30600 * conf/i386-efi.rmk: likewise
30601 * conf/i386-ieee1275.rmk: likewise
30602 * conf/i386-pc.rmk: likewise
30603 * conf/powerpc-ieee1275.rmk: likewise
30604 * conf/sparc64-ieee1275.rmk: likewise
30605 * conf/x86_64-efi.rmk: likewise
30606 * include/grub/i386/pc/biosnum.h: new file
30607 * lib/i386/pc/biosnum.c: likewise
30608 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30609 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30610 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 30611
33abf7ae 306122009-06-10 Pavel Roskin <proski@gnu.org>
30613
5ac35b35 30614 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30615 Use separate variables. Read only the file size at the end, but
30616 not the checksum that we don't use.
30617
5c5215d5 30618 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30619 Adjust all callers.
30620
27d5fef7 30621 * kern/ieee1275/openfw.c: Remove libc includes.
30622 * kern/ieee1275/cmain.c: Likewise.
30623 * include/grub/ieee1275/ieee1275.h: Likewise.
30624
33abf7ae 30625 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30626 compiler warnings.
30627
19d50c2b 306282009-06-10 Felix Zielcke <fzielcke@z-51.de>
30629
30630 * Makefile.in: Remove all trailing whitespace.
30631 * conf/i386-pc.rmk: Likewise.
30632 * conf/powerpc-ieee1275.rmk: Likewise.
30633 * conf/sparc64-ieee1275.rmk: Likewise.
30634 * docs/grub.texi: Likewise.
30635 * docs/texinfo.tex: Likewise.
30636 * disk/fs_uuid.c: Likewise.
30637 * disk/lvm.c: Likewise.
30638 * disk/scsi.c: Likewise.
30639 * disk/ata.c: Likewise.
30640 * disk/ieee1275/ofdisk.c: Likewise.
30641 * disk/i386/pc/biosdisk.c: Likewise.
30642 * disk/host.c: Likewise.
30643 * disk/raid.c: Likewise.
30644 * disk/efi/efidisk.c: Likewise.
30645 * disk/usbms.c: Likewise.
30646 * disk/memdisk.c: Likewise.
30647 * disk/loopback.c: Likewise.
30648 * kern/powerpc/dl.c: Likewise.
30649 * kern/device.c: Likewise.
30650 * kern/dl.c: Likewise.
30651 * kern/sparc64/dl.c: Likewise.
30652 * kern/ieee1275/ieee1275.c: Likewise.
30653 * kern/term.c: Likewise.
30654 * kern/fs.c: Likewise.
30655 * kern/i386/dl.c: Likewise.
30656 * kern/i386/pc/startup.S: Likewise.
30657 * kern/i386/pc/init.c: Likewise.
30658 * kern/i386/pc/mmap.c: Likewise.
30659 * kern/i386/pc/lzo1x.S: Likewise.
30660 * kern/i386/ieee1275/init.c: Likewise.
30661 * kern/i386/realmode.S: Likewise.
30662 * kern/i386/tsc.c: Likewise.
30663 * kern/partition.c: Likewise.
30664 * kern/corecmd.c: Likewise.
30665 * kern/file.c: Likewise.
30666 * kern/efi/efi.c: Likewise.
30667 * kern/efi/init.c: Likewise.
30668 * kern/efi/mm.c: Likewise.
30669 * kern/main.c: Likewise.
30670 * kern/err.c: Likewise.
30671 * kern/env.c: Likewise.
30672 * kern/disk.c: Likewise.
30673 * kern/generic/millisleep.c: Likewise.
30674 * kern/generic/rtc_get_time_ms.c: Likewise.
30675 * kern/misc.c: Likewise.
30676 * kern/parser.c: Likewise.
30677 * genmk.rb: Likewise.
30678 * configure.ac: Likewise.
30679 * boot/i386/pc/diskboot.S: Likewise.
30680 * boot/i386/pc/pxeboot.S: Likewise.
30681 * boot/i386/pc/boot.S: Likewise.
30682 * boot/i386/pc/lnxboot.S: Likewise.
30683 * boot/i386/pc/cdboot.S: Likewise.
30684 * parttool/pcpart.c: Likewise.
30685 * video/readers/tga.c: Likewise.
30686 * video/video.c: Likewise.
30687 * video/bitmap.c: Likewise.
30688 * lib/envblk.c: Likewise.
30689 * lib/i386/setjmp.S: Likewise.
30690 * fs/xfs.c: Likewise.
30691 * fs/afs.c: Likewise.
30692 * fs/fat.c: Likewise.
30693 * fs/ntfs.c: Likewise.
30694 * fs/udf.c: Likewise.
30695 * fs/affs.c: Likewise.
30696 * fs/iso9660.c: Likewise.
30697 * fs/hfs.c: Likewise.
30698 * fs/fshelp.c: Likewise.
30699 * fs/ext2.c: Likewise.
30700 * fs/jfs.c: Likewise.
30701 * fs/reiserfs.c: Likewise.
30702 * fs/hfsplus.c: Likewise.
30703 * fs/minix.c: Likewise.
30704 * fs/cpio.c: Likewise.
30705 * fs/sfs.c: Likewise.
30706 * fs/ufs.c: Likewise.
30707 * efiemu/prepare.c: Likewise.
30708 * efiemu/loadcore_common.c: Likewise.
30709 * efiemu/runtime/efiemu.sh: Likewise.
30710 * efiemu/runtime/efiemu.S: Likewise.
30711 * efiemu/runtime/efiemu.c: Likewise.
30712 * efiemu/pnvram.c: Likewise.
30713 * efiemu/main.c: Likewise.
30714 * efiemu/i386/pc/cfgtables.c: Likewise.
30715 * efiemu/i386/loadcore64.c: Likewise.
30716 * efiemu/i386/loadcore32.c: Likewise.
30717 * efiemu/loadcore.c: Likewise.
30718 * efiemu/symbols.c: Likewise.
30719 * efiemu/mm.c: Likewise.
30720 * include/grub/autoefi.h: Likewise.
30721 * include/grub/datetime.h: Likewise.
30722 * include/grub/term.h: Likewise.
30723 * include/grub/hfs.h: Likewise.
30724 * include/grub/lvm.h: Likewise.
30725 * include/grub/i386/tsc.h: Likewise.
30726 * include/grub/i386/linux.h: Likewise.
30727 * include/grub/i386/xnu.h: Likewise.
30728 * include/grub/i386/efiemu.h: Likewise.
30729 * include/grub/i386/pc/biosdisk.h: Likewise.
30730 * include/grub/i386/pc/memory.h: Likewise.
30731 * include/grub/i386/pc/vbe.h: Likewise.
30732 * include/grub/parttool.h: Likewise.
30733 * include/grub/video.h: Likewise.
30734 * include/grub/memory.h: Likewise.
30735 * include/grub/fs.h: Likewise.
30736 * include/grub/partition.h: Likewise.
30737 * include/grub/xnu.h: Likewise.
30738 * include/grub/efi/api.h: Likewise.
30739 * include/grub/efi/pe32.h: Likewise.
30740 * include/grub/efi/memory.h: Likewise.
30741 * include/grub/multiboot.h: Likewise.
30742 * include/grub/usbdesc.h: Likewise.
30743 * include/grub/multiboot2.h: Likewise.
30744 * include/grub/acpi.h: Likewise.
30745 * include/grub/efiemu/efiemu.h: Likewise.
30746 * include/grub/disk.h: Likewise.
30747 * include/grub/ieee1275/ieee1275.h: Likewise.
30748 * include/grub/net.h: Likewise.
30749 * include/grub/machoload.h: Likewise.
30750 * include/grub/macho.h: Likewise.
30751 * include/multiboot.h: Likewise.
30752 * genmoddep.awk: Likewise.
30753 * normal/main.c: Likewise.
30754 * normal/menu_entry.c: Likewise.
30755 * normal/menu_viewer.c: Likewise.
30756 * normal/completion.c: Likewise.
30757 * normal/cmdline.c: Likewise.
30758 * normal/misc.c: Likewise.
30759 * normal/datetime.c: Likewise.
30760 * bus/usb/usbtrans.c: Likewise.
30761 * bus/usb/ohci.c: Likewise.
30762 * bus/usb/uhci.c: Likewise.
30763 * bus/usb/usb.c: Likewise.
30764 * mmap/efi/mmap.c: Likewise.
30765 * mmap/i386/pc/mmap_helper.S: Likewise.
30766 * mmap/i386/pc/mmap.c: Likewise.
30767 * mmap/i386/mmap.c: Likewise.
30768 * mmap/i386/uppermem.c: Likewise.
30769 * mmap/mmap.c: Likewise.
30770 * commands/acpi.c: Likewise.
30771 * commands/echo.c: Likewise.
30772 * commands/blocklist.c: Likewise.
30773 * commands/loadenv.c: Likewise.
30774 * commands/usbtest.c: Likewise.
30775 * commands/boot.c: Likewise.
30776 * commands/parttool.c: Likewise.
30777 * commands/search.c: Likewise.
30778 * commands/cat.c: Likewise.
30779 * commands/i386/pc/play.c: Likewise.
30780 * commands/i386/pc/drivemap.c: Likewise.
30781 * commands/i386/pc/vbeinfo.c: Likewise.
30782 * commands/i386/pc/acpi.c: Likewise.
30783 * commands/i386/pc/vbetest.c: Likewise.
30784 * commands/ls.c: Likewise.
30785 * commands/cmp.c: Likewise.
30786 * commands/test.c: Likewise.
30787 * commands/efi/acpi.c: Likewise.
30788 * commands/gptsync.c: Likewise.
30789 * commands/help.c: Likewise.
30790 * partmap/amiga.c: Likewise.
30791 * partmap/apple.c: Likewise.
30792 * partmap/acorn.c: Likewise.
30793 * partmap/pc.c: Likewise.
30794 * partmap/sun.c: Likewise.
30795 * partmap/gpt.c: Likewise.
30796 * script/sh/lexer.c: Likewise.
30797 * script/sh/function.c: Likewise.
30798 * font/font.c: Likewise.
30799 * font/font_cmd.c: Likewise.
30800 * loader/powerpc/ieee1275/linux.c: Likewise.
30801 * loader/efi/chainloader.c: Likewise.
30802 * loader/multiboot_loader.c: Likewise.
30803 * loader/macho.c: Likewise.
30804 * loader/i386/multiboot.c: Likewise.
30805 * loader/i386/linux.c: Likewise.
30806 * loader/i386/pc/linux.c: Likewise.
30807 * loader/i386/pc/multiboot2.c: Likewise.
30808 * loader/i386/pc/chainloader.c: Likewise.
30809 * loader/i386/pc/xnu.c: Likewise.
30810 * loader/i386/bsd_trampoline.S: Likewise.
30811 * loader/i386/efi/linux.c: Likewise.
30812 * loader/i386/multiboot_elfxx.c: Likewise.
30813 * loader/i386/bsd_helper.S: Likewise.
30814 * loader/i386/bsd.c: Likewise.
30815 * loader/i386/linux_trampoline.S: Likewise.
30816 * loader/i386/xnu_helper.S: Likewise.
30817 * loader/i386/xnu.c: Likewise.
30818 * loader/i386/bsd_pagetable.c: Likewise.
30819 * loader/i386/multiboot_helper.S: Likewise.
30820 * loader/xnu.c: Likewise.
30821 * loader/xnu_resume.c: Likewise.
30822 * io/gzio.c: Likewise.
30823 * term/efi/console.c: Likewise.
30824 * term/terminfo.c: Likewise.
30825 * term/ieee1275/ofconsole.c: Likewise.
30826 * term/i386/pc/serial.c: Likewise.
30827 * term/i386/pc/vesafb.c: Likewise.
30828 * term/i386/pc/vga.c: Likewise.
30829 * term/usb_keyboard.c: Likewise.
30830 * term/gfxterm.c: Likewise.
30831 * aclocal.m4: Likewise.
30832 * util/lvm.c: Likewise.
30833 * util/grub.d/30_os-prober.in: Likewise.
30834 * util/grub.d/10_hurd.in: Likewise.
30835 * util/console.c: Likewise.
30836 * util/grub-macho2img.c: Likewise.
30837 * util/grub-probe.c: Likewise.
30838 * util/hostfs.c: Likewise.
30839 * util/i386/pc/grub-mkimage.c: Likewise.
30840 * util/i386/pc/grub-setup.c: Likewise.
30841 * util/i386/efi/grub-mkimage.c: Likewise.
30842 * util/grub-mkconfig.in: Likewise.
30843 * util/raid.c: Likewise.
30844 * util/resolve.c: Likewise.
30845 * util/grub-mkdevicemap.c: Likewise.
30846 * util/grub-emu.c: Likewise.
30847 * util/getroot.c: Likewise.
30848 * util/hostdisk.c: Likewise.
30849 * util/usb.c: Likewise.
30850 * util/grub-editenv.c: Likewise.
30851 * util/misc.c: Likewise.
30852
d2d49665 308532009-06-10 Felix Zielcke <fzielcke@z-51.de>
30854
30855 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30856 `genparttoollist.sh'.
30857 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30858 Add `*.sh' to the list find searches for and change `mdate.sh'
30859 to `mdate-sh'.
30860
fe052e37 308612009-06-10 Pavel Roskin <proski@gnu.org>
30862
2763ac18 30863 * include/grub/multiboot2.h: Provide compatibility defines for
30864 multiboot2.h.
30865 * include/multiboot2.h: Include stdint.h only if needed, using
30866 angle brackets.
30867 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30868 grub/multiboot2.h.
30869 * loader/ieee1275/multiboot2.c: Likewise.
30870 * loader/multiboot2.c: Likewise.
30871 * loader/multiboot_loader.c: Likewise.
30872
437e6adc 30873 * configure.ac: Use -nostdlib when probing for the target. It
30874 should not be required to have libc for the target.
30875
06a6836c 30876 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30877 they fail without libc headers for the target.
30878 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30879 exports.
30880 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30881 preprocessor conditionals.
30882
fe052e37 30883 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30884 build system doesn't need to be aware of the tar.c internals.
30885
afd22553 308862009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 30887
afd22553 30888 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 30889
6b787c4f 308902009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30891
30892 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30893 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30894
308952009-06-09 Felix Zielcke <fzielcke@z-51.de>
30896
30897 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 30898 aren't available if ata.mod gets used.
6b787c4f 30899
473d1e45 309002009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 30901
473d1e45 30902 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 30903 initialising controller.
473d1e45 30904 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 30905
255a27d4 309062009-06-08 Felix Zielcke <fzielcke@z-51.de>
30907
30908 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30909 to choose between ata and biosdisk module on i386-pc.
30910
473d1e45 309112009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 30912
d55842d8 30913 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30914 Subclass and Programming Interface fields in terms of the 3 byte
30915 Class Code register.
30916 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30917
fa5db0b1 30918 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30919 interface is OHCI. Add grub_dprintf for symmetry with
30920 bus/usb/uhci.c.
30921 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30922 interface is UHCI. Add interf variable for programming
30923 interface. Print interface with class/subclass.
30924
c0947beb 30925 * bus/usb/ohci.c: Set interf with correct field.
30926
69da8877 30927 * bus/usb/uhci.c: Remove unneeded doubled lines.
30928 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30929 Remove whitespace inside comment.
30930
9e172e30 309312009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30932
30933 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30934 as fallback an equivalent option without depth.
30935
de65ee2b 309362009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30937
30938 Not fail if unable to retrieve C/H/S on LBA disks
30939
473d1e45 30940 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 30941 if unable to retrieve C/H/S on LBA disks
30942
b57ea2c9 309432009-06-08 Pavel Roskin <proski@gnu.org>
30944
30945 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30946 about aliasing.
30947
af361263 309482009-06-08 Felix Zielcke <fzielcke@z-51.de>
30949
30950 * Makefile.in (uninstall): Remove all $lib_DATA files.
30951
4c9ec6b3 309522009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30953
30954 Bugfix: install on partitionless device
30955
30956 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30957 is a whole disk
30958
e76fc924 309592009-06-08 Felix Zielcke <fzielcke@z-51.de>
30960
30961 * Makefile.in (uninstall): Remove all $include_DATA files.
30962
ba5a0d05 309632009-06-08 Felix Zielcke <fzielcke@z-51.de>
30964
30965 * commands/true.c: New file. Implement the true and false commands.
30966 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30967 (true_mod_SOURCES): New variable.
30968 (true_mod_CFLAGS): Likewise.
30969 (true_mod_LDFLAGS): Likewise.
30970
c8048e32 309712009-06-05 Colin D Bennett <colin@gibibit.com>
30972
30973 Optimized font character lookup using binary search instead of linear
30974 search. Fonts now are required to have the character index ordered by
30975 code point.
30976
30977 * font/font.c (load_font_index): Verify that fonts have ordered
30978 character indices.
30979 (find_glyph): Use binary search instead of linear search to find a
30980 character in a font.
30981
408305be 309822009-06-05 Michael Scherer <misc@mandriva.org>
30983
30984 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30985 uses case sensitive btree.
30986 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30987 only for case insensitive filesystems.
30988
8ee1e0d9 309892009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30990
30991 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30992 * conf/common.rmk (search_mod_CFLAGS): likewise
30993
a9966eb1 309942009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30995
473d1e45 30996 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 30997 compensate a compiler bug
30998
9e7100fb 309992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31000
473d1e45 31001 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 31002 instead of '\b'
473d1e45 31003
ede21d71 310042009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31005
31006 Definitions for creating asm symbols with Apple's CC
31007
31008 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
31009 [APPLE_CC] (VARIABLE): likewise
31010
9dbf7653 310112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31012
31013 Disable lnxboot.img when compiled
31014 with Apple's CC
31015
31016 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
31017 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
31018 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
31019 [! APPLE_CC] (CODE_LENG): skip
31020 [! APPLE_CC] (setup_sects): likewise
31021 [! APPLE_CC]: skip filling
473d1e45 31022
e93cdc3d 310232009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31024
31025 Address in trampolines based on 32-bit registers when compiled
31026 with Apple's CC
31027
473d1e45 31028 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 31029 for addresses
31030 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
31031
6c688477 310322009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31033
31034 Avoid aliases when compiling with Apple's CC for PCBIOS machine
31035
31036 * kern/misc.c [APPLE_CC] (memcpy): new function
31037 [APPLE_CC] (memmove): likewise
31038 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 31039 (memcpy): define alias conditionally on !APPLE_CC
6c688477 31040 (memset): likewise
31041 (abort): likewise
31042 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
31043 APPLE_CC are defined
31044 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
31045 (grub_assert_fail): make prototype conditional
31046
e37ffc5c 310472009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31048
31049 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
31050
473d1e45 31051 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
31052 grub-macho2img
e37ffc5c 31053 (CLEANFILES): add grub-macho2img
31054 (grub_macho2img_SOURCES): new variable
31055 * kern/i386/pc/startup.S (bss_start): new variable
31056 (bss_end): likewise
31057 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
31058 * util/grub-macho2img.c: new file
31059
cf00df31 310602009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31061
31062 Use objconv when compiling with Apple's CC
31063
31064 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
31065 (efiemu64.o): likewise
31066 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
31067 when compiling with Apple's CC
31068 (efiemu64_s.o): likewise
31069 * configure.ac: check for objconv when compiling with Apple's CC
31070 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 31071
d119a20c 310722009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31073
31074 Define segment as well as section when compiling with
31075 Apple's CC
31076
31077 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
31078 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
31079 (efiemu_convert_pointer): likewise
31080 (efiemu_set_virtual_address_map): likewise
31081 (efiemu_convert_pointer): likewise
31082 (efiemu_getcrc32): likewise
31083 (init_crc32_table): likewise
31084 (reflect): likewise
31085 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
31086 (GRUB_MOD_DEP): likewise
473d1e45 31087
c8600122 310882009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31089
31090 Allow a compilation without -mcmodel=large
31091
31092 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31093 when compiled without -mcmodel=large
473d1e45 31094 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 31095 without -mcmodel=large
473d1e45 31096 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 31097 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 31098
e8df1d4e 310992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31100
31101 Remove nested functions in efiemu core
31102
31103 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 31104
cc6c3ac1 311052009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31106
31107 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31108
31109 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31110 temporary storage
473d1e45 31111 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31112 using Apple's CC
cc6c3ac1 31113 (grub_cpu_is_tsc_supported): likewise
31114 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 31115
3e325901 311162009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31117
31118 Absolute addressing through constant with Apple's cc
31119
31120 * kern/i386/pc/startup.S: Define necessary constants
31121 and address through it when using ABS with Apple's CC
31122 * boot/i386/pc/diskboot.S: likewise
31123 * boot/i386/pc/boot.S: likewise
31124 * boot/i386/pc/lnxboot.S: likewise
31125 * boot/i386/pc/cdboot.S: likewise
31126 * mmap/i386/pc/mmap_helper.S: likewise
31127 * commands/i386/pc/drivemap_int13h.S: likewise
31128
2b167a72 311292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31130
31131 Check if compiler is apple cc
31132
31133 * Makefile.in (ASFLAGS): new variable
31134 (TARGET_ASFLAGS): likewise
31135 (TARGET_MODULE_FORMAT): likewise
31136 (TARGET_APPLE_CC): likewise
31137 (OBJCONV): likewise
31138 (TARGET_IMG_CFLAGS): likewise
31139 (TARGET_CPPFLAGS): add includedir
31140 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31141 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31142 Check for linker script only if compiler isn't Apple's CC
31143 (TARGET_MODULE_FORMAT): set
31144 (TARGET_APPLE_CC): likewise
31145 (TARGET_ASFLAGS): likewise
31146 (ASFLAGS): likewise
31147 Check for objcopy only if compiler isn't Apple's CC
31148 Check for BSS symbol only if compiler isn't Apple's CC
31149 * genmk.rb: adapt nm options if we use Apple's utils
31150 * aclocal.m4 (grub_apple_cc): new test
31151 (grub_apple_target_cc): likewise
473d1e45 31152
fb14123e 311532009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31154
31155 Simplify sed expressions and improve awk
31156
31157 * Makefile.in (install-local): simplify sed expression
31158 * gencmdlist.sh: likewise
31159 * genmoddep.awk: avoid adding module as a dependency of itself
31160
5b889789 311612009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31162
31163 Add missing start symbols
31164
31165 * boot/i386/pc/boot.S: add start
fb14123e 31166 * boot/i386/pc/pxeboot.S: likewise
473d1e45 31167
fd2bf2e3 311682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31169
31170 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 31171
31172 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 31173 (relocate_addresses): consider both r_addend and value at offset
31174 (make_mods_section): zerofill modinfo and header
31175 (convert_elf): write prefix here
473d1e45 31176
5389763d 311772009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31178
31179 Use .asciz instead of .string
31180
31181 * i386/pc/diskboot.S: use .asciz instead of .string
31182 * i386/pc/boot.S: likewise
31183 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31184 (GRUB_MOD_NAME): likewise
473d1e45 31185
3eb5ed4e 311862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31187
31188 gfxpayload support
31189
31190 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31191 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31192 (grub_video_setup): remove
31193 (grub_video_set_mode): new prototype
31194 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31195 (vid_mode): remove
31196 (linux_vesafb_res): compile only on PCBIOS
31197 (grub_linux_boot): support gfxpayload
31198 * loader/i386/pc/xnu.c (video_hook): new function
31199 (grub_xnu_set_video): support gfxpayload
31200 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31201 (DEFAULT_VIDEO_HEIGHT): likewise
31202 (DEFAULT_VIDEO_FLAGS): likewise
31203 (DEFAULT_VIDEO_MODE): new definition
31204 (video_hook): new function
31205 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 31206 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 31207 loading xnu
31208 * video/video.c (grub_video_setup): removed
473d1e45 31209 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 31210 grub_video_setup
31211
4b0e1143 312122009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31213
31214 Avoid calling biosdisk in drivemap
31215
31216 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31217 (revparse_biosdisk): likewise
31218 (list_mappings): derive name from id directly
31219 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 31220
fda6cb98 312212009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31222
31223 Script fixes
31224
31225 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31226 (grub_lexer_param): add tokenonhold
31227 (grub_script_create_cmdline): remove cmdline. All callers updated
31228 (grub_script_function_create): make functionname
31229 grub_script_arg. All callers updated
31230 (grub_script_execute_argument_to_string): new prototype
31231 * kern/parser.c (state_transitions): reorder
31232 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 31233 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 31234 make global
31235 (grub_script_execute_cmdline): use new format
31236 * script/sh/function.c (grub_script_function_create): make functionname
31237 grub_script_arg. All callers updated
473d1e45 31238 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 31239 (grub_script_yylex): remove
31240 (grub_script_yylex2): renamed to ...
31241 (grub_script_yylex): ...renamed
31242 parse the expressions like a${b}c
31243 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31244 (GRUB_PARSER_TOKEN_VAR): remove
31245 (GRUB_PARSER_TOKEN_NAME): likewise
31246 ("if"): declare as typeless
31247 ("while"): likewise
31248 ("function"): likewise
31249 ("else"): likewise
31250 ("then"): likewise
31251 ("fi"): likewise
31252 (text): remove
31253 (argument): likewise
31254 (script): accept empty scripts and make exit on error
31255 (arguments): use GRUB_PARSER_TOKEN_ARG
31256 (function): likewise
31257 (command): move error handling to script
31258 (menuentry): move grub_script_lexer_ref before
473d1e45 31259 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 31260 argument. All callers updated
31261
f4448a07 312622009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31263
31264 Prevent GRUB from probing floppies during boot.
31265
31266 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31267 * commands/search.c (options): Add --no-floppy.
31268 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31269 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31270 --no-floppy when searching for UUIDs.
31271
2bf5885a 312722009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31273
31274 Simplify the code duplication in commands/search.c.
31275
31276 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31277 (search_fs): ... this. Update all users.
31278
f6fd460a 312792009-06-03 Felix Zielcke <fzielcke@z-51.de>
31280
31281 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31282
cbb3c83e 312832009-05-28 Pavel Roskin <proski@gnu.org>
31284
57788cfd 31285 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31286 Remove the original symlink explicitly.
31287
cbb3c83e 31288 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31289 just one slash. That's how grub_fshelp_find_file() does it.
31290
cd0d5e30 312912009-05-26 Pavel Roskin <proski@gnu.org>
31292
f0f8bbe2 31293 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31294 to `str'.
31295
cd0d5e30 31296 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31297 possibly unused.
31298
8c2cab51 312992009-05-25 Christian Franke <franke@computer.org>
31300
31301 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31302 register.
31303 (grub_atapi_identify): Add wait after drive select.
31304 (grub_ata_identify): Do more strict status register check before
31305 calling grub_atapi_identify (). Suppress error message if status
31306 register is 0x00 after command failure. Add status register
31307 check after PIO read to avoid bogus identify due to stuck DRQ.
31308 Thanks to Pavel Roskin for testing.
31309 (grub_device_initialize): Remove unsafe status register check.
31310 Thanks to 'phcoder' for problem report and patch.
31311 Prevent sign extension in debug message.
31312
230c0ad6 313132009-05-23 Colin D Bennett <colin@gibibit.com>
31314
31315 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31316 definition file, and functions defined in `normal/menu.c' have had
31317 their prototypes moved to `include/grub/menu.h' for consistency.
31318
31319 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31320 from normal.h.
31321 (grub_menu_get_entry): Likewise.
31322 (grub_menu_get_timeout): Likewise.
31323 (grub_menu_set_timeout): Likewise.
31324 (grub_menu_execute_entry): Likewise.
31325 (grub_menu_execute_with_fallback): Likewise.
31326 (grub_menu_entry_run): Likewise.
31327
31328 * include/grub/normal.h: Re-ordered and grouped function
31329 prototypes by file that the function is defined in.
31330 (grub_menu_execute_callback): Removed; moved to menu.h.
31331 (grub_menu_get_entry): Likewise.
31332 (grub_menu_get_timeout): Likewise.
31333 (grub_menu_set_timeout): Likewise.
31334 (grub_menu_execute_entry): Likewise.
31335 (grub_menu_execute_with_fallback): Likewise.
31336 (grub_menu_entry_run): Likewise.
31337 (grub_menu_addentry): Renamed from this ...
31338 (grub_normal_add_menu_entry): ... to this.
31339
31340 * normal/main.c (grub_menu_addentry): Renamed from this ...
31341 (grub_normal_add_menu_entry): ... to this.
31342
31343 * script/sh/execute.c (grub_script_execute_menuentry): Update
31344 reference to renamed grub_menu_addentry function.
31345
861f03a5 313462009-05-23 Felix Zielcke <fzielcke@z-51.de>
31347
31348 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31349
96b1619a 313502009-05-22 Pavel Roskin <proski@gnu.org>
31351
bf6a5fb2 31352 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31353 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31354 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31355 compiling for the i386 targets, but not for the utilities.
31356
96b1619a 31357 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31358 to grub_uint8_t.
31359 (grub_root_drive): Likewise.
31360 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31361 remove alignment.
31362 (grub_root_drive): Change size to byte.
31363 (grub_start_addr): Remove.
31364 (grub_end_addr): Likewise.
31365 (grub_apm_bios_info): Likewise.
31366
b729776b 313672009-05-21 Felix Zielcke <fzielcke@z-51.de>
31368
31369 * normal/i386: Remove.
31370 * normal/powerpc: Likewise.
31371 * normal/sparc64: Likewise.
31372 * normal/x86_64: Likewise.
31373
0a15ce80 313742009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31375
31376 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 31377 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 31378 * loader/i386/xnu_helper.S: Likewise
d6da58e6 31379
33db9015 313802009-05-18 Colin D Bennett <colin@gibibit.com>
31381
d6da58e6 31382 Display error messages when parsing a Lua statement fails.
31383 Previously, executing a syntactically invalid statement like
31384 ")foo" or "bar;" would silently fail.
33db9015 31385
31386 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 31387 (grub_lua_parse_line): Improved reporting of Lua parser and
31388 execution errors.
33db9015 31389
46422c89 313902009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31391
31392 Remove -Werror which causes build to fail on some systems
31393
31394 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31395 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31396 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 31397
22f53a96 313982009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31399
31400 trampoline for linux on 64-bit platform
31401
18f547ad 31402 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31403 loader/i386/efi/linux_trampoline.S
31404 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 31405 declaration
d6da58e6 31406 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31407 here
22f53a96 31408 * loader/i386/linux_trampoline.S: moved here
d6da58e6 31409 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31410 trampoline
22f53a96 31411 (jumpvector): removed
31412 (grub_linux_trampoline_start): new declaration
31413 (grub_linux_trampoline_end): likewise
31414 (grub_linux_boot): use trampoline when on 64-bit platform
31415 * loader/i386/linux.c: likewise
31416
cb5a0f40 314172009-05-16 Pavel Roskin <proski@gnu.org>
31418
31419 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31420 const to avoid a warning.
31421 (grub_lua_setenv): Likewise.
31422 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31423 lmsg to fix a warning.
31424
334f2c28 314252009-05-16 Felix Zielcke <fzielcke@z-51.de>
31426
31427 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 31428 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31429 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31430 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31431 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31432 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31433 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31434 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 31435
59e5d3ec 314362009-05-16 Felix Zielcke <fzielcke@z-51.de>
31437
31438 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31439
9d87a1ba 314402009-05-16 Bean <bean123ch@gmail.com>
31441
31442 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31443 (lua_mod_SOURCES): New variable.
31444 (lua_mod_CFLAGS): Likewise.
31445 (lua_mod_LDFLAGS): Likewise.
31446
31447 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31448 (setjmp_mod_SOURCES): New variable.
31449 (setjmp_mod_CFLAGS): Likewise.
31450 (setjmp_LDFLAGS): Likewise.
31451
31452 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31453 (setjmp_mod_SOURCES): New variable.
31454 (setjmp_mod_CFLAGS): Likewise.
31455 (setjmp_LDFLAGS): Likewise.
31456
31457 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31458 (setjmp_mod_SOURCES): New variable.
31459 (setjmp_mod_CFLAGS): Likewise.
31460 (setjmp_LDFLAGS): Likewise.
31461
31462 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31463 (setjmp_mod_SOURCES): New variable.
31464 (setjmp_mod_CFLAGS): Likewise.
31465 (setjmp_LDFLAGS): Likewise.
31466
31467 * normal/i386/setjmp.S: Moved from here ...
31468 * lib/i386/setjmp.S: ... Moved here
31469 * normal/x86_64/setjmp.S: Moved from here ...
31470 * lib/x86_64/setjmp.S: ... Moved here
31471 * normal/powerpc/setjmp.S: Moved from here ...
31472 * lib/powerpc/setjmp.S: ... Moved here
31473 * normal/sparc64/setjmp.S: Moved from here ...
31474 * lib/sparc64/setjmp.S: ... Moved here
31475
31476 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31477 returns_twice in mingw.
31478
31479 * script/lua/grub_lib.c: New file.
31480 * script/lua/grub_lib.h: Likewise.
31481 * script/lua/grub_lua.h: Likewise.
31482 * script/lua/grub_main.c: Likewise.
31483 * script/lua/lapi.c: Likewise.
31484 * script/lua/lapi.h: Likewise.
31485 * script/lua/lauxlib.c: Likewise.
31486 * script/lua/lauxlib.h: Likewise.
31487 * script/lua/lbaselib.c: Likewise.
31488 * script/lua/lcode.c: Likewise.
31489 * script/lua/lcode.h: Likewise.
31490 * script/lua/ldblib.c: Likewise.
31491 * script/lua/ldebug.c: Likewise.
31492 * script/lua/ldebug.h: Likewise.
31493 * script/lua/ldo.c: Likewise.
31494 * script/lua/ldo.h: Likewise.
31495 * script/lua/ldump.c: Likewise.
31496 * script/lua/lfunc.c: Likewise.
31497 * script/lua/lfunc.h: Likewise.
31498 * script/lua/lgc.c: Likewise.
31499 * script/lua/lgc.h: Likewise.
31500 * script/lua/linit.c: Likewise.
31501 * script/lua/liolib.c: Likewise.
31502 * script/lua/llex.c: Likewise.
31503 * script/lua/llex.h: Likewise.
31504 * script/lua/llimits.h: Likewise.
31505 * script/lua/lmathlib.c: Likewise.
31506 * script/lua/lmem.c: Likewise.
31507 * script/lua/lmem.h: Likewise.
31508 * script/lua/loadlib.c: Likewise.
31509 * script/lua/lobject.c: Likewise.
31510 * script/lua/lobject.h: Likewise.
31511 * script/lua/lopcodes.c: Likewise.
31512 * script/lua/lopcodes.h: Likewise.
31513 * script/lua/loslib.c: Likewise.
31514 * script/lua/lparser.c: Likewise.
31515 * script/lua/lparser.h: Likewise.
31516 * script/lua/lstate.c: Likewise.
31517 * script/lua/lstate.h: Likewise.
31518 * script/lua/lstring.c: Likewise.
31519 * script/lua/lstring.h: Likewise.
31520 * script/lua/lstrlib.c: Likewise.
31521 * script/lua/ltable.c: Likewise.
31522 * script/lua/ltable.h: Likewise.
31523 * script/lua/ltablib.c: Likewise.
31524 * script/lua/ltm.c: Likewise.
31525 * script/lua/ltm.h: Likewise.
31526 * script/lua/lua.h: Likewise.
31527 * script/lua/luaconf.h: Likewise.
31528 * script/lua/lualib.h: Likewise.
31529 * script/lua/lundump.c: Likewise.
31530 * script/lua/lundump.h: Likewise.
31531 * script/lua/lvm.c: Likewise.
31532 * script/lua/lvm.h: Likewise.
31533 * script/lua/lzio.c: Likewise.
31534 * script/lua/lzio.h: Likewise.
31535
5e898c9d 315362009-05-16 Bean <bean123ch@gmail.com>
31537
31538 * include/grub/kernel.h (grub_module_header_types): Add type
31539 OBJ_TYPE_CONFIG.
31540
31541 * kern/main.c (grub_load_config): New function.
31542 (grub_main): Call grub_load_config to read boot config.
31543
31544 * grub-mkimage (generate_image): New parameter config_path.
31545 (options): New option --config.
31546 (main): Parse --config option, and pass it to generate_image.
31547
cf353a47 315482009-05-14 Christian Franke <franke@computer.org>
31549
31550 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31551 This fixes build on Cygwin.
31552
3834887f 315532009-05-14 Pavel Roskin <proski@gnu.org>
31554
31555 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31556 jump. This saves two bytes, so the typical case of 2 swapped
31557 drives would fit 32 bytes.
31558
8090fc01 315592009-05-13 Pavel Roskin <proski@gnu.org>
31560
ac963883 31561 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31562 grub_uint32_t to avoid a warning.
31563
8090fc01 31564 * loader/i386/linux.c (allocate_pages): When assigning
31565 real_mode_mem, cast through grub_size_t to fix a warning. The
31566 code already makes sure that the value would fit a pointer.
31567 (grub_linux_setup_video): Cast render_target->data to
31568 grub_size_t to fix a warning.
31569
18f547ad 315702009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 31571
31572 * commands/i386/pc/drivemap.c: New file - implement drivemap
31573 command.
31574 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31575 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31576
6f6a8b28 315772009-05-13 Pavel Roskin <proski@gnu.org>
31578
31579 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31580 embedding_area_exists.
31581
15fbf4c4 315822009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31583
31584 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31585 it easier to understand / work with.
59978c8a 31586 Improve warning messages for cases where there's no embedding area,
31587 or when it is too small (or core.img too large).
15fbf4c4 31588
238e871f 315892009-05-13 Pavel Roskin <proski@gnu.org>
31590
0ab3a9a4 31591 * loader/i386/pc/multiboot2.c: Add necessary includes for
31592 grub_multiboot2_real_boot().
31593
a2c8c5f8 31594 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31595 PX record is always little-endian. We only need the lower 2
31596 bytes of the mode.
31597
faec96af 31598 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31599 facilitate code reuse.
31600 (grub_cpio_mount): Use "struct head", not a char buffer. This
31601 fixes a warning reported by gcc 4.4.
31602
238e871f 31603 * kernel/disk.c (grub_disk_read): Use void pointer for the
31604 buffer.
31605 (grub_disk_write): Use const void pointer for the buffer.
31606 Adjust all callers. Remove unnecessary casts.
31607
901d2f0c 316082009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31609
31610 * util/i386/pc/grub-install.in: Update copyright year.
31611
18f547ad 316122009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 31613
31614 gptsync
31615
31616 * commands/gptsync.c: new file
31617 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31618 (gptsync_mod_SOURCES): new variable
31619 (gptsync_mod_CFLAGS): likewise
31620 (gptsync_mod_LDFLAGS): likewise
18f547ad 31621 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 31622 new definition
31623 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31624 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31625 * conf/i386-ieee1275.rmk: likewise
31626 * conf/i386-pc.rmk: likewise
31627 * conf/powerpc-ieee1275.rmk: likewise
31628
b4ba690a 316292009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31630
31631 Fixed grub-emu
31632
31633 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31634 (grub_dl_ref): likewise
31635
317e1a44 316362009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31637
31638 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31639 split in two functions (one for msdos and one for gpt).
31640
041b8094 316412009-05-08 Pavel Roskin <proski@gnu.org>
31642
752473c2 31643 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31644 not modified.
31645
041b8094 31646 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31647 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31648 Initialize them with -1. Add sanity check for bad1. Eliminate
31649 nerr variable.
31650
172800ce 316512009-05-08 David S. Miller <davem@davemloft.net>
31652
31653 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31654
29aa5e81 316552009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31656
31657 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 31658 existence.
29aa5e81 31659
96613b62 316602009-05-05 Felix Zielcke <fzielcke@z-51.de>
31661
31662 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 31663 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 31664
eef73c8a 316652009-05-05 David S. Miller <davem@davemloft.net>
31666
31667 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31668
119494b5 316692009-05-05 Pavel Roskin <proski@gnu.org>
31670
31671 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31672 of grub_dl_ref() and grub_dl_unref().
31673 * commands/parttool.c: Remove preprocessor conditionals around
31674 grub_dl_ref() and grub_dl_unref().
31675 * fs/affs.c: Likewise.
31676 * fs/afs.c: Likewise.
31677 * fs/cpio.c: Likewise.
31678 * fs/ext2.c: Likewise.
31679 * fs/fat.c: Likewise.
31680 * fs/hfs.c: Likewise.
31681 * fs/hfsplus.c: Likewise.
31682 * fs/iso9660.c: Likewise.
31683 * fs/jfs.c: Likewise.
31684 * fs/minix.c: Likewise.
31685 * fs/ntfs.c: Likewise.
31686 * fs/reiserfs.c: Likewise.
31687 * fs/sfs.c: Likewise.
31688 * fs/udf.c: Likewise.
31689 * fs/ufs.c: Likewise.
31690 * fs/xfs.c: Likewise.
31691 * include/grub/dl.h: Likewise.
31692 * loader/xnu.c: Likewise.
31693
de5fd76e 316942009-05-04 Pavel Roskin <proski@gnu.org>
31695
31696 * commands/acpi.c: Remove unused variable my_mod.
31697 * partmap/amiga.c: Likewise.
31698 * partmap/apple.c: Likewise.
31699 * partmap/gpt.c: Likewise.
31700 * partmap/pc.c: Likewise.
31701 * partmap/sun.c: Likewise.
31702 * term/gfxterm.c: Likewise.
31703 * term/i386/pc/vesafb.c: Likewise.
31704 * term/i386/pc/vga.c: Likewise.
31705
983598ad 317062009-05-04 David S. Miller <davem@davemloft.net>
31707
31708 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31709 pointer args to grub_ieee1275_get_property().
31710
8aadec43 31711 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31712
9554b15e 31713 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31714 devices, and do not traverse down under controller nodes.
31715
67e23c90 31716 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31717 (grub_ofdisk_open): Use it to un-escape "," characters.
31718 * kern/disk.c (find_part_sep): New.
31719 (grub_disk_open): Use it to find the first non-escaped ','
31720 character in the disk name.
31721 * util/ieee1275/devicemap.c (escape_of_path): New.
31722 (grub_util_emit_devicemap_entry): Use it.
31723 * util/sparc64/ieee1275/grub-install.in: Update script to
31724 strip partition specifiers properly by not triggering on
31725 '\' escaped ',' characters.
31726
74bfdd2f 317272009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31728
31729 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31730 to 0x300.
31731 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31732 resolutions.
31733 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31734 on documentation from Wikipedia).
31735
4241d2b1 317362009-05-04 Pavel Roskin <proski@gnu.org>
31737
31738 * disk/ata.c: Spelling fixes.
31739 * disk/raid.c: Likewise.
31740 * disk/usbms.c: Likewise.
31741 * disk/dmraid_nvidia.c: Likewise.
31742 * kern/ieee1275/openfw.c: Likewise.
31743 * kern/ieee1275/init.c: Likewise.
31744 * kern/ieee1275/cmain.c: Likewise.
31745 * boot/i386/pc/cdboot.S: Likewise.
31746 * video/readers/png.c: Likewise.
31747 * video/i386/pc/vbe.c: Likewise.
31748 * fs/udf.c: Likewise.
31749 * fs/hfs.c: Likewise.
31750 * fs/reiserfs.c: Likewise.
31751 * efiemu/runtime/efiemu.c: Likewise.
31752 * efiemu/main.c: Likewise.
31753 * efiemu/mm.c: Likewise.
31754 * include/grub/elf.h: Likewise.
31755 * include/grub/xnu.h: Likewise.
31756 * include/grub/usbdesc.h: Likewise.
31757 * include/grub/usb.h: Likewise.
31758 * include/grub/script_sh.h: Likewise.
31759 * include/grub/lib/LzmaEnc.h: Likewise.
31760 * include/grub/efiemu/efiemu.h: Likewise.
31761 * include/grub/command.h: Likewise.
31762 * normal/menu.c: Likewise.
31763 * normal/main.c: Likewise.
31764 * normal/datetime.c: Likewise.
31765 * bus/usb/uhci.c: Likewise.
31766 * mmap/i386/uppermem.c: Likewise.
31767 * mmap/mmap.c: Likewise.
31768 * commands/acpi.c: Likewise.
31769 * commands/test.c: Likewise.
31770 * partmap/apple.c: Likewise.
31771 * font/font.c: Likewise.
31772 * loader/sparc64/ieee1275/linux.c: Likewise.
31773 * loader/macho.c: Likewise.
31774 * loader/i386/bsd_trampoline.S: Likewise.
31775 * loader/i386/bsd.c: Likewise.
31776 * loader/xnu.c: Likewise.
31777 * term/i386/pc/vesafb.c: Likewise.
31778 * term/usb_keyboard.c: Likewise.
31779 * util/resolve.c: Likewise.
31780 * util/getroot.c: Likewise.
31781
0cfc0083 317822009-05-04 Felix Zielcke <fzielcke@z-51.de>
31783
31784 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31785
7c1d00cd 317862009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31787
31788 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31789 build error.
31790
b01f0548 317912009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31792
31793 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31794 parameter only available on BIOS.
31795
ecc3eb22 317962009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31797
31798 Removed wrong semicolon in declaration
31799
31800 * grub/misc.h (grub_dprintf): remove semicolon
31801
112972a9 318022009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31803
31804 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31805 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31806 is done by grub_cmd_linux() now).
31807 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31808 restore video to text mode.
31809 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31810 indicates lack of "vga=" parameter. "vga=0" is mapped to
31811 `GRUB_LINUX_VID_MODE_NORMAL'.
31812
afd5c115 318132009-05-04 Felix Zielcke <fzielcke@z-51.de>
31814
31815 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31816 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31817 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 31818 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 31819 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31820 `grub_script.tab.c'.
31821
31822 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31823 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31825 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31826 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31827
faa517ce 31828 * Makefile.in: Remove duplicated 2008 in Copyright line.
31829
ae0c0bdc 318302009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31831
473d1e45 31832 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 31833 unconditionally.
31834 * include/grub/util/misc.h (grub_util_warn): New declaration.
31835
31836 * util/i386/pc/grub-install.in: Understand --force and pass it down
31837 to grub-setup.
31838
31839 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31840 down to setup().
31841 (setup): Improve error messages and add warnings when requested to
31842 install in odd layouts. Refuse to install using blocklists unless
31843 --force was set.
31844
18f547ad 318452009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 31846
31847 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31848
6d260daa 318492009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31850
31851 Updated copyright year
31852
31853 * fs/hfsplus.c: updated copyright year
18f547ad 31854
69f853f8 318552009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31856
31857 HFS+ UUID
31858
18f547ad 31859 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 31860 in the space previously used by unused3
31861 (grub_hfsplus_uuid): new function
31862 (grub_hfsplus_fs): added uuid field
31863
4c402e73 318642009-05-03 Pavel Roskin <proski@gnu.org>
31865
31866 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31867 suppress warnings. It's no longer needed.
31868 * disk/host.c: Likewise.
31869 * disk/ata_pthru.c: Likewise.
31870 * disk/loopback.c: Likewise.
31871 * hook/datehook.c: Likewise.
31872 * parttool/pcpart.c: Likewise.
31873 * fs/i386/pc/pxe.c: Likewise.
31874 * fs/ntfscomp.c: Likewise.
31875 * efiemu/main.c: Likewise.
31876 * mmap/mmap.c: Likewise.
31877 * commands/crc.c: Likewise.
31878 * commands/hexdump.c: Likewise.
31879 * commands/hdparm.c: Likewise.
31880 * commands/acpi.c: Likewise.
31881 * commands/echo.c: Likewise.
31882 * commands/minicmd.c: Likewise.
31883 * commands/blocklist.c: Likewise.
31884 * commands/memrw.c: Likewise.
31885 * commands/loadenv.c: Likewise.
31886 * commands/usbtest.c: Likewise.
31887 * commands/lsmmap.c: Likewise.
31888 * commands/boot.c: Likewise.
31889 * commands/parttool.c: Likewise.
31890 * commands/configfile.c: Likewise.
31891 * commands/search.c: Likewise.
31892 * commands/ieee1275/suspend.c: Likewise.
31893 * commands/cat.c: Likewise.
31894 * commands/i386/pc/pxecmd.c: Likewise.
31895 * commands/i386/pc/play.c: Likewise.
31896 * commands/i386/pc/halt.c: Likewise.
31897 * commands/i386/pc/vbeinfo.c: Likewise.
31898 * commands/i386/pc/vbetest.c: Likewise.
31899 * commands/lspci.c: Likewise.
31900 * commands/date.c: Likewise.
31901 * commands/handler.c: Likewise.
31902 * commands/ls.c: Likewise.
31903 * commands/test.c: Likewise.
31904 * commands/cmp.c: Likewise.
31905 * commands/efi/loadbios.c: Likewise.
31906 * commands/efi/fixvideo.c: Likewise.
31907 * commands/halt.c: Likewise.
31908 * commands/help.c: Likewise.
31909 * commands/reboot.c: Likewise.
31910 * hello/hello.c: Likewise.
31911 * script/sh/main.c: Likewise.
31912 * loader/xnu.c: Likewise.
31913 * term/terminfo.c: Likewise.
31914 * term/i386/pc/serial.c: Likewise.
31915 * term/usb_keyboard.c: Likewise.
31916
515b5079 319172009-05-03 David S. Miller <davem@davemloft.net>
31918
31919 * normal/menu.c: Include grub/parser.h
31920
dfc31a22 319212009-05-03 Pavel Roskin <proski@gnu.org>
31922
2fee74f1 31923 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31924 not char*.
31925 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31926 Suggested by Javier Martín <lordhabbit@gmail.com>
31927
dfc31a22 31928 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31929 efiemu??.o doesn't exist.
31930 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31931 copying.
31932
18f547ad 319332009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 31934
31935 FreeBSD 64-bit support
31936
18f547ad 31937 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 31938 and loader/i386/bsd_trampoline.S
31939 (bsd_mod_ASFLAGS): new variable
31940 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31941 (FREEBSD_MODTYPE_KERNEL64): likewise
31942 (grub_bsd64_trampoline_start): likewise
31943 (grub_bsd64_trampoline_end): likewise
31944 (grub_bsd64_trampoline_selfjump): likewise
31945 (grub_bsd64_trampoline_gdt): likewise
31946 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31947 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31948 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31949 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 31950 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 31951 of "attrib" member
31952 * loader/i386/bsd_pagetable.c: new file
31953 * loader/i386/bsd_trampoline.S: likewise
31954 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31955 (ALIGN_VAR): likewise
31956 (entry_hi): new variable
31957 (kern_end_mdofs): likewise
31958 (is_64bit): likewise
31959 (grub_freebsd_add_meta): use ALIGN_VAR
31960 (grub_e820_mmap): new declaration
31961 (grub_freebsd_add_mmap): new function
31962 (grub_freebsd_add_meta_module): support 64 bit kernels
31963 (grub_freebsd_list_modules): use ALIGN_VAR
31964 (gdt_descriptor): new declaration
31965 (grub_freebsd_boot): support 64 bit kernels
31966 (grub_bsd_elf64_hook): new function
31967 (grub_bsd_load_elf): support elf64
31968
038c5720 319692009-05-03 Bean <bean123ch@gmail.com>
31970
31971 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31972 after we get the result of if statement.
31973
fc45fb58 319742009-05-03 Bean <bean123ch@gmail.com>
31975
31976 * Makefile.in (enable_efiemu): New variable.
31977
31978 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31979 set.
31980 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31981 path.
31982 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31983 path, add -mno-red-zone option.
31984 (efiemu64_s.o): Likewise.
31985 (efiemu64.o): Use macro $^ for source file.
31986
31987 * configure.ac (--enable-efiemu): New option.
31988
bbee0f2b 319892009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31990
31991 xnu support
31992
31993 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31994 (pkglib_MODULES): add xnu.mod
31995 (xnu_mod_SOURCES): new variable
31996 (xnu_mod_CFLAGS): likewise
31997 (xnu_mod_LDFLAGS): likewise
31998 (xnu_mod_ASFLAGS): likewise
31999 * conf/i386-pc.rmk: likewise
32000 * conf/x86_64-efi.rmk: likewise
7dd4a573 32001 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 32002 new declaration
32003 * include/grub/i386/macho.h: new file
32004 * include/grub/i386/xnu.h: likewise
32005 * include/grub/macho.h: likewise
32006 * include/grub/machoload.h: likewise
32007 * include/grub/x86_64/macho.h: likewise
32008 * include/grub/x86_64/xnu.h: likewise
32009 * include/grub/xnu.h: likewise
32010 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
32011 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
32012 * loader/i386/efi/xnu.c: new file
32013 * loader/i386/pc/xnu.c: likewise
32014 * loader/i386/xnu.c: likewise
32015 * loader/i386/xnu_helper.S: likewise
32016 * loader/macho.c: likewise
32017 * loader/xnu.c: likewise
32018 * loader/xnu_resume.c: likewise
32019 * util/grub-dumpdevtree: likewise
32020 * include/grub/i386/pit.h: include grub/err.h
32021 (grub_pit_wait): export
32022 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 32023
5caf964d 320242009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32025
32026 Efiemu
7dd4a573 32027
5caf964d 32028 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 32029 _linux_efi, linux_efi.
32030 new files in grub-emu
5caf964d 32031 new targets efiemu32.o and efiemu64.o
32032 * loader/linux_normal_efiemu.c: likewise
32033 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 32034 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 32035 files to copy
32036 * include/grub/autoefi.h: new file
7dd4a573 32037 * include/grub/i386/efiemu.h: likewise
5caf964d 32038 * include/grub/i386/pc/efiemu.h: likewise
32039 * include/grub/efi/api.h: add LL suffix when necessary
32040 new definitions relating to tables
32041 * include/grub/efiemu/efiemu.h: new file
32042 * include/grub/efiemu/runtime.h: likewise
32043 * efiemu/prepare.c: likewise
32044 * efiemu/loadcore_common.c: likewise
32045 * efiemu/loadcore64.c: likewise
32046 * efiemu/runtime/efiemu.sh: likewise
32047 * efiemu/runtime/efiemu.S: likewise
32048 * efiemu/runtime/efiemu.c: likewise
32049 * efiemu/runtime/config.h: likewise
32050 * efiemu/prepare32.c: likewise
32051 * efiemu/main.c: likewise
32052 * efiemu/modules/pnvram.c: likewise
32053 * efiemu/modules/i386: likewise
32054 * efiemu/modules/i386/pc: likewise
32055 * efiemu/modules/acpi.c: likewise
32056 * efiemu/i386/pc/cfgtables.c: likewise
32057 * efiemu/i386/loadcore64.c: likewise
32058 * efiemu/i386/loadcore32.c: likewise
32059 * efiemu/prepare64.c: likewise
32060 * efiemu/loadcore.c: likewise
32061 * efiemu/symbols.c: likewise
32062 * efiemu/mm.c: likewise
32063 * efiemu/loadcore32.c: likewise
7dd4a573 32064
320652009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 32066
32067 ACPI spoofing
32068
32069 * commands/acpi.c: new file
32070 * commands/i386/pc/acpi.c: likewise
32071 * commands/efi/acpi.c: likewise
32072 * include/grub/acpi.h: likewise
32073 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
32074 (acpi_mod_SOURCES): new variable
32075 (acpi_mod_CFLAGS): likewise
32076 (acpi_mod_LDFLAGS): likewise
32077 * conf/i386-efi.rmk: likewise
32078 * conf/x86_64-efi.rmk: likewise
32079
7dd4a573 320802009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 32081
32082 Missing part from mmap patch
32083
32084 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
32085 (grub_mmap_unregister)
32086 (grub_mmap_free_and_unregister): use grub_mmap_register
32087
7dd4a573 320882009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 32089
32090 Mmap services
32091
32092 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32093 * loader/i386/linux.c (find_mmap_size): likewise
32094 (allocate_pages): likewise
32095 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32096 (grub_fill_multiboot_mmap): likewise
32097 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32098 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32099 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32100 (OPENBSD_MMAP_RESERVED): likewise
32101 * include/grub/i386/pc/memory.h: include grub/memory.h
32102 (grub_lower_mem): removed
32103 (grub_upper_mem): likewise
32104 (GRUB_MACHINE_MEMORY_ACPI): new definition
32105 (GRUB_MACHINE_MEMORY_NVS): likewise
32106 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32107 (GRUB_MACHINE_MEMORY_HOLE): likewise
32108 (grub_machine_mmap_register): likewise
32109 (grub_machine_mmap_unregister): likewise
32110 (grub_machine_get_upper): likewise
32111 (grub_machine_get_lower): likewise
32112 (grub_machine_get_post64): likewise
32113 * include/grub/i386/efi/memory.h: new file
32114 * include/grub/x86_64/efi/memory.h: likewise
32115 * include/grub/efi/memory.h: likewise
32116 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32117 (mmap_mod_SOURCES): new variable
32118 (mmap_mod_LDFLAGS): likewise
32119 (mmap_mod_ASFLAGS): likewise
32120 * conf/i386-coreboot.rmk: likewise
32121 * conf/i386-ieee1275.rmk: likewise
32122 * conf/i386-efi.rmk: likewise
32123 * conf/x86_64-efi.rmk: likewise
32124 * include/grub/types.h (UINT_TO_PTR): new macro
32125 (PTR_TO_UINT32): likewise
32126 (PTR_TO_UINT64): likewise
32127 * include/grub/memory.h: new file
32128 * mmap/i386/pc/mmap.c: likewise
32129 * mmap/i386/pc/mmap_helper.S: likewise
32130 * mmap/i386/uppermem.c: likewise
32131 * mmap/mmap.c: likewise
32132 * mmap/efi/mmap.c: likewise
7dd4a573 32133 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 32134 grub_upper_mem
32135 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32136 (grub_upper_mem): likewise
32137 (grub_machine_init): don't use grub_upper_mem,
32138 make grub_lower_mem local
32139 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32140 grub_mmap_iterate and grub_mmap_get_upper
32141 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32142
d558e6b5 321432009-05-02 Bean <bean123ch@gmail.com>
32144
32145 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32146 script/sh/parser.y.
32147 (pkglib_MODULES): Add normal.mod and sh.mod.
32148 (normal_SOURCES): New variable.
32149 (normal_mod_CFLAGS): Likewise.
32150 (normal_mod_LDFLAGS): Likewise.
32151 (sh_mod_SOURCES): Likewise.
32152 (sh_mod_CFLAGS): Likewise.
32153 (sh_mod_LDFLAGS): Likewise.
32154
32155 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32156 script/sh/lexer.c_DEPENDENCIES.
32157 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32158 kern/rescue_reader.c and kern/rescue_parser.c.
32159 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32160 (grub_emu_SOURCES): Change source files.
32161 (pkglib_MODULES): Remove normal.mod.
32162 (normal_SOURCES): Removed.
32163 (normal_mod_CFLAGS): Likewise.
32164 (normal_mod_LDFLAGS): Likewise.
32165 * conf/i386-coreboot.rmk: Likewise.
32166 * conf/i386-efi.rmk: Likewise.
32167 * conf/i386-ieee1276.rmk: Likewise.
32168 * conf/powerpc-ieee1275.rmk: Likewise.
32169 * conf/sparc64-ieee1275.rmk: Likewise.
32170 * conf/x86_64-efi.rmk: Likewise.
32171
32172 * include/grub/command.h (grub_command_execute): New inline function.
32173
32174 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32175
32176 * include/grub/normal.h: Remove <grub/setjmp.h>.
32177 (grub_fs_module_list): Moved to normal/autofs.c.
32178 (grub_exit_env): Removed.
32179 (grub_command_execute): Likewise.
32180 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32181 parameter script.
32182 (read_command_list): New function declaration.
32183 (read_fs_list): Likewise.
32184
32185 * include/parser.h: Include <grub/reader.h>.
32186 (grub_parser_split_cmdline): Change type of getline parameter.
32187 (grub_parser): New structure.
32188 (grub_parser_class): New variable.
32189 (grub_parser_execute): New function declaration.
32190 (grub_register_rescue_parser): Likewise.
32191 (grub_parser_register): New inline function.
32192 (grub_parser_unregister): Likewise.
32193 (grub_parser_get_current): Likewise.
32194 (grub_parser_set_current): Likewise.
32195
32196 * include/grub/reader.h: New file.
32197 * kern/reader.c: Likewise.
32198 * kern/rescue_parser.c: Likewise.
32199 * kern/rescue_reader.c: Likewise.
32200 * normal/autofs.c: Likewise.
32201 * normal/dyncmd.c: Likewise.
32202
32203 * include/grub/rescue.h: Removed.
32204 * normal/command.h: Likewise.
32205
32206 * include/grub/script.h: Moved to ...
32207 * include/grub/script_sh.h: ... Moved here.
32208 * normal/execute.c: Moved to ...
32209 * script/sh/execute.c: ... Moved here.
32210 * normal/function.c: Moved to ...
32211 * script/sh/function.c: ... Moved here.
32212 * normal/lexer.c: Moved to ...
32213 * script/sh/lexer.c: ... Moved here.
32214 * normal/parser.y: Moved to ...
32215 * script/sh/parser.y: ... Moved here.
32216 * normal/script.c: Moved to ...
32217 * script/sh/script.c: ... Moved here.
32218
32219 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32220 <grub/reader.h>.
32221 (grub_exit_env): Removed.
32222 (fs_module_list): Moved to normal/autofs.c.
32223 (grub_file_getline): Don't handle comment here.
32224 (free_menu): Skip removed field entry->commands.
32225 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32226 script parameter.
32227 (read_config_file): Removed nested parameter, change getline function.
32228 (grub_enter_normal_mode): Removed.
32229 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32230 (read_command_list): Likewise.
32231 (autoload_fs_module): Moved to normal/autofs.c.
32232 (read_fs_list): Likewise.
32233 (reader_nested): New variable.
32234 (grub_normal_execute): Run parser.sh to switch to sh parser.
32235 (grub_cmd_rescue): Removed.
32236 (cmd_normal): Removed.
32237 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32238 rescue command.
32239 (grub_cmdline_run): New function.
32240 (grub_normal_reader_init): Likewise.
32241 (grub_normal_read_line): Likewise.
32242 (grub_env_write_pager): Likewise.
32243 (cmdline): New variable.
32244 (grub_normal_reader): Likewise.
32245 (GRUB_MOD_INIT): Register normal reader and set as current, register
32246 pager hook, register normal command with grub_register_command_prio,
32247 so that it won't show up in command.lst.
32248 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32249 grub_fs_autoload_hook.
32250
32251 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32252 (grub_menu_execute_entry): Replace grub_script_execute with
32253 grub_parser_execute, change parameter to grub_command_execute.
32254
32255 * normal/menu_text.c: Remove <grub/script.h>.
32256
32257 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32258 and <grub/parser.h>.
32259 (run): Change editor_getline to use new parser interface. Change
32260 parameter to grub_command_execute.
32261
32262 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32263 <grub/reader.h> and <grub/parser.h>.
32264 (grub_load_normal_mode): Execute normal command.
32265 (grub_main): Call grub_register_core_commands,
32266 grub_register_rescue_parser and grub_register_rescue_reader, use
32267 grub_reader_loop to enter input loop.
32268
7dd4a573 32269 * kern/parser.c (grub_parser_split_cmdline): Change type of
32270 getline parameter.
d558e6b5 32271 (grub_parser_class): New variable.
32272 (grub_parser_execute): New function.
32273
32274 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32275 * loader/multiboot2.c: Likewise.
32276 * loader/sparc64/ieee1275/linux.c: Likewise.
32277
32278 * util/grub-emu.c (read_command_list): New dummy function.
32279
18db813d 322802009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32281
32282 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32283 count to 16 for CCISS and IDA.
32284
6c67de15 322852009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32286
32287 * normal/menu_text.c (grub_wait_after_message): Print a newline
32288 after waiting for user input.
32289
32290 * loader/i386/linux.c: Include `<grub/normal.h>'.
32291 (grub_cmd_linux): Improve the error message about `ask' mode, by
32292 waiting for user input so it's not missed (we can do this, since
32293 user requested interaction).
32294
d9dc87b0 322952009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32296
32297 Added missing lst to grub-mkrescue
32298
32299 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32300 and ${input_dir}/parttool.lst
32301
ac8a2baa 323022009-04-30 David S. Miller <davem@davemloft.net>
32303
ad22a610 32304 * util/hostdisk.c (device_is_wholedisk): New function.
32305 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32306 zero only if device_is_wholedisk() returns true.
32307
6966215d 32308 * util/hostdisk.c (convert_system_partition_to_system_disk):
32309 Handle virtual disk devices named /dev/vdiskX as found on sparc
32310 and powerpc.
32311
ac8a2baa 32312 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32313 lettered partition specifier is found, convert to numbered.
32314
979b4fb4 323152009-04-29 David S. Miller <davem@davemloft.net>
32316
e2bf39b2 32317 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32318 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32319
3c64e104 32320 * normal/command.c: Add missing newline at end of file.
32321
979b4fb4 32322 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32323 warnings.
32324 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32325 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32326 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32327 ihandles have a 32-bit type but need to be stored in a "void *".
32328
136d9f82 323292009-04-28 Pavel Roskin <proski@gnu.org>
32330
9459c306 32331 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32332 not disk. Adjust all dependencies.
2e08a26a 32333 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 32334 grub_disk_close().
32335
136d9f82 32336 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32337 parent's partition, don't copy it by reference, as it gets freed
32338 on close.
32339
7dd4a573 323402009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 32341
32342 Preboot hooks support
32343
32344 * commands/boot.c (struct grub_preboot_t): new declaration
32345 (preboots_head): new variable
32346 (preboots_tail): likewise
32347 (grub_loader_register_preboot_hook): new function
32348 (grub_loader_unregister_preboot_hook): likewise
32349 (grub_loader_set): launch preboot hooks
32350 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32351 (grub_loader_register_preboot_hook): new declaration
32352 (grub_loader_unregister_preboot_hook): likewise
32353
5af922b5 323542009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32355
32356 Warning fix
32357
7dd4a573 32358 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 32359 calling grub_dprintf
32360
a5562c30 323612009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32362
32363 Bug and warning fixes
32364
7dd4a573 32365 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 32366 declaration
32367 * commands/test.c (test_parse): fixed bug with file tests and corrected
32368 declaration of find_file
32369
4006f85c 323702009-04-26 Pavel Roskin <proski@gnu.org>
32371
32372 * Makefile.in: Don't install empty manual pages if help2man is
32373 missing. Use help2man option for output, not shell redirection.
32374
5c77c3de 323752009-04-26 David S. Miller <davem@davemloft.net>
32376
32377 * util/grub-mkdevicemap.c (make_device_map): Add missing
32378 NESTED_FUNC_ATTR to process_device().
32379
033b10a8 323802009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32381
32382 Test command
32383
32384 * commands/test.c: rewritten to use bash-like test
32385
e4343593 323862009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32387
32388 Parttool autoloading and improvements
32389
7dd4a573 32390 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 32391 (parttool.lst): new target
32392 * genmk.rb: generate parttool-*
32393 (CLEANFILES): add #{parttool}
32394 (PARTTOOLFILES): new variable
32395 * genparttoollist.sh: new file
7dd4a573 32396 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 32397 (grub_pcpart_type): likewise
32398 * commands/parttool.c (helpmsg): new variable
32399 (grub_cmd_parttool): output help if not enough arguments are supplied
32400 autoload modules
32401 (GRUB_MOD_INIT(parttool)): use helpmsg
32402
0d312500 324032009-04-24 David S. Miller <davem@davemloft.net>
32404
7dd4a573 32405 Avoiding opening same device multiple times in device iterator.
0d312500 32406
32407 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 32408 and use it to build a list of partitions in iterate_disk() and
0d312500 32409 iterate_partition().
32410
ac20caff 32411 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32412 on disk->data.
32413
0dcf7495 32414 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32415 grub_devalias_iterate() result instead of unconditional 0.
32416 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32417 Also, capture hook return value, either directly or via
32418 grub_children_iterate(), and propagate to caller.
32419 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32420 grub_children_iterate): Return value is now 'int' instead of
32421 'grub_err_t'.
32422 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32423 like a proper iterator, stopping when hooks return non-zero.
32424 (grub_devalias_iterate): Likewise.
32425
c8c08833 324262009-04-23 David S. Miller <davem@davemloft.net>
32427
32428 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32429
f01005a8 324302009-04-22 David S. Miller <davem@davemloft.net>
32431
32432 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32433 is larger than address_cells, use that value for address_cells too.
32434
4e8269da 32435 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32436 IEEE1275_MAX_PATH_LEN): Define.
32437 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32438 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32439 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32440 'devtype'. Explicitly NULL terminate devalias expansion.
32441
a1447506 32442 * util/sparc64/ieee1275/misc.c: New file.
32443 * util/sparc64/ieee1275/grub-setup.c: New file.
32444 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32445 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32446 * util/sparc64/ieee1275/grub-install.in: New file.
32447 * util/ieee1275/ofpath.c: New file.
32448 * util/ieee1275/devicemap.c: New file.
32449 * util/devicemap.c: New file.
32450 * util/deviceiter.c: New file.
32451 * kern/sparc64/ieee1275/init.c: New file.
32452 * include/grub/util/ofpath.h: New file.
32453 * include/grub/util/deviceiter.h: New file.
32454 * util/grub-mkdevicemap.c: Include deviceiter.h.
32455 Implement using grub_util_emit_devicemap_entry and
32456 grub_util_iterate_devices.
32457 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32458 util/devicemap.c into grub-mkdevicemap
32459 * conf/i386-efi.rmk: Likewise.
32460 * conf/i386-ieee1275.rmk: Likewise.
32461 * conf/i386-pc.rmk: Likewise.
32462 * conf/powerpc-ieee1275.rmk: Likewise.
32463 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32464 images and installation utilities. Build kernel as image
32465 instead of as elf binary. Use common rules as much as possible.
32466
7dd4a573 324672009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 32468
32469 Correct GPT definition
32470
7dd4a573 32471 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 32472 of "attrib" member
32473
c6c5219f 324742009-04-19 Felix Zielcke <fzielcke@z-51.de>
32475
32476 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32477
0552ff9f 324782009-04-19 David S. Miller <davem@davemloft.net>
32479
32480 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32481 (grub_rescue_cmd_linux): Rename to...
32482 (grub_cmd_linux): and fix prototype.
32483 (grub_rescue_cmd_initrd): Rename to...
32484 (grub_cmd_initrd): and fix prototype.
32485 (cmd_linux, cmd_initrd): New.
32486 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32487 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32488
d1a282fc 324892009-04-17 Pavel Roskin <proski@gnu.org>
32490
07c5039f 32491 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32492 format.
32493 (grub_ohci_transfer): Likewise.
32494
b012002d 32495 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32496
1bc09c35 32497 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32498 return without a value. Fix inconsistent indentation.
32499
e0ff9126 32500 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32501 match struct grub_fs.
32502
d1a282fc 32503 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32504 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32505 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32506 * commands/lspci.c (grub_lspci_iter): Likewise.
32507
a96df3f2 325082009-04-16 Bean <bean123ch@gmail.com>
32509
32510 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32511 value.
32512
41bb0fe9 325132009-04-15 Pavel Roskin <proski@gnu.org>
32514
32515 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32516 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32517 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32518 definitions.
32519
596c6970 325202009-04-15 Felix Zielcke <fzielcke@z-51.de>
32521
32522 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 32523 that no multiple data or metadata areas are supported and `Unknown
596c6970 32524 metadata header'.
32525
7dd4a573 325262009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 32527
32528 Move loader out of the kernel
32529
32530 * kern/loader.c: moved to ...
32531 * commands/boot.c: ... moved here
32532 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32533 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32534 * include/grub/kernel.h (grub_machine_fini): export
32535 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32536 (grub_loader_set): likewise
32537 (grub_loader_unset): likewise
32538 (grub_loader_boot): likewise
32539 * conf/common.rmk: new module boot.mod
32540 (pkglib_MODULES): add boot.mod
32541 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32542 (grub_emu_SOURCES): likewise
32543 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32544 (grub_emu_SOURCES): likewise
32545 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32546 (grub_emu_SOURCES): likewise
32547 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32548 (grub_emu_SOURCES): likewise
32549 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32550 (grub_emu_SOURCES): likewise
7dd4a573 32551 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32552 (grub_emu_SOURCES): likewise
0d5d5653 32553 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 32554 (grub_emu_SOURCES): likewise
0d5d5653 32555
7dd4a573 325562009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 32557
32558 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 32559
5999d619 32560 * kern/misc.c (grub_itoa): Removed function
32561 (grub_ltoa): likewise
32562 (grub_vsprintf): use grub_lltoa
32563
7dd4a573 325642009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 32565
32566 Restore grub-emu
32567
32568 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32569 * conf/i386-coreboot.rmk: likewise
32570 * conf/i386-ieee1275.rmk: likewise
32571 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 32572
20318222 325732009-04-15 Felix Zielcke <fzielcke@z-51.de>
32574
32575 * INSTALL: Add that `./autogen.sh' needs to be run before
32576 `./configure.'.
32577
d05f0df3 325782009-04-14 Bean <bean123ch@gmail.com>
32579
32580 * Makefile.in (pkglib_DATA): Add handler.lst.
32581 (handler.lst): New rule.
32582
32583 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32584 * conf/i386-coreboot.rmk: Likewise.
32585 * conf/i386-ieee1275.rmk: Likewise.
32586 * conf/i386-efi.rmk: Likewise.
32587 * conf/x86_64-efi.rmk: Likewise.
32588 * conf/powerpc-ieee1275.rmk: Likewise.
32589 * conf/sparc64-ieee1275.rmk: Likewise.
32590
32591 * genhandlerlist.sh: New file.
32592
32593 * genmk.rb: Add rules to generate handler.lst.
32594
32595 * include/grub/normal.h (grub_file_getline): New function definition.
32596 (read_handler_list): Likewise.
32597 (free_handler_list): Likewise.
32598
32599 * include/grub/term.h (grub_term_register_input): Add name parameter
32600 for auto generation of handler.lst.
32601 (grub_term_register_output): Likewise.
32602
32603 * normal/handler.c: New file.
32604
32605 * normal/main.c (get_line): Renamed to grub_file_getline.
32606 (read_config_file): Use the newly renamed grub_file_getline.
32607 (read_command_list): Likewise.
32608 (read_fs_list): Likewise.
32609 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32610 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32611
32612 * term/efi/console.c (grub_console_init): Add name parameter for auto
32613 generation of handler.lst.
32614 * term/gfxterm.c: Likewise.
32615 * term/i386/pc/at_keyboard.c: Likewise.
32616 * term/i386/pc/console.c: Likewise.
32617 * term/i386/pc/serial.c: Likewise.
32618 * term/i386/pc/vesafb.c: Likewise.
32619 * term/i386/pc/vga.c: Likewise.
32620 * term/i386/pc/vga_text.c: Likewise.
32621 * term/ieee1275/ofconsole.c: Likewise.
32622 * term/usb_keyboard.c: Likewise.
32623
33c846be 326242009-04-14 Bean <bean123ch@gmail.com>
32625
32626 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32627 properly with null character.
32628
4484e01e 326292009-04-14 Felix Zielcke <fzielcke@z-51.de>
32630
32631 * configure: Remove.
32632 * config.h.in: Likewise.
f93d668e 32633 * stamp-h.in: Likewise.
4484e01e 32634 * DISTLIST: Likewise.
32635 * conf/common.mk: Likewise.
32636 * conf/i386-coreboot.mk: Likewise.
32637 * conf/i386-efi.mk: Likewise.
32638 * conf/i386-ieee1275.mk: Likewise.
32639 * conf/i386.mk: Likewise.
32640 * conf/i386-pc.mk: Likewise.
32641 * conf/powerpc-ieee1275.mk: Likewise.
32642 * conf/sparc64-ieee1275.mk: Likewise.
32643 * conf/x86_64-efi.mk: Likewise.
32644
32645 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32646 develop on GRUB.
32647
7dd4a573 326482009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 32649 David S. Miller <davem@davemloft.net>
32650
32651 * util/hostdisk.c (make_device_name): Fix buffer length
32652 calculations.
32653
e25b5a8c 326542009-04-14 Felix Zielcke <fzielcke@z-51.de>
32655
32656 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32657 <sys/param.h> and <sys/sysctl.h>.
32658 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32659 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32660 opening the device and reset them afterwards.
32661
1f1f580c 326622009-04-13 Pavel Roskin <proski@gnu.org>
32663
32664 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32665 Reported by John Stanley <jpsinthemix@verizon.net>
32666
7ebc2d6b 326672009-04-13 Robert Millan <rmh@aybabtu.com>
32668
32669 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 32670 that name for menuentries when appropriate.
7ebc2d6b 32671
d8ba3667 326722009-04-13 Felix Zielcke <fzielcke@z-51.de>
32673
32674 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32675
cba416eb 326762009-04-13 Robert Millan <rmh@aybabtu.com>
32677
32678 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32679 to Linux, simply abort telling the user it's no longer supported.
32680
a547a745 326812009-04-13 Felix Zielcke <fzielcke@z-51.de>
32682
32683 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 32684 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 32685 `freebsd_loadenv' only when devices.hints exist.
32686
232a769c 326872009-04-13 Pavel Roskin <proski@gnu.org>
32688
32689 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32690
c3012039 326912009-04-13 Felix Zielcke <fzielcke@z-51.de>
32692
32693 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32694 partition number.
32695 (grub_drive): Likewise.
32696
234022fe 326972009-04-13 David S. Miller <davem@davemloft.net>
32698
32699 * kern/sparc64/ieee1275/ieee1275.c: New file.
32700 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32701 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32702 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32703 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32704 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32705 grub_ieee1275_alloc_physmem): Declare new exported functions.
32706
d8e1836c 32707 * include/grub/sparc64/ieee1275/loader.h: New file.
32708 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32709 * include/grub/sparc64/kernel.h: Likewise.
32710 * loader/sparc64/ieee1275/linux.c: Likewise.
32711
96bd81ec 32712 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32713 (grub_fstest_SOURCES): Likewise.
32714
6a4737e5 32715 * util/hostdisk.c (make_device_name): Do not make any assumptions
32716 about the length of drive names.
32717
1d7a72fd 32718 * kern/dl.c (grub_dl_load_file): Close file immediately when
32719 we are done using it.
32720
56bc2471 327212009-04-12 David S. Miller <davem@davemloft.net>
32722
32723 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32724 values. Noticed by Pavel Roskin.
32725
df38d0bb 32726 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32727 target compiler.
7dd4a573 32728
e382e93a 32729 * genmk.rb: Add more flexible image type specification, also
32730 pass --strip-unneeded to objcopy.
32731 * conf/i386-pc.rmk: Use *_FORMAT.
32732 * conf/i386-pc.mk: Rebuilt.
32733
f5dbbca9 32734 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32735 (OFDISK_HASH_SZ): Define.
32736 (ofdisk_hash): New hash table.
32737 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32738 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32739 instead of device phandle which is not unique.
32740
91c88b12 32741 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32742 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32743 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32744 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32745 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32746 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32747 GRUB_KERNEL_MACHINE_DATA_END): Define.
32748 (grub_kernel_image_size, grub_total_module_size): Declare.
32749
5b5d4aa5 327502009-04-12 Pavel Roskin <proski@gnu.org>
32751
7dd4a573 32752 * configure.ac: Change the logic when we check for target tools.
32753 Do it when the target is specified and it's different from the
32754 specified value of the host.
5b5d4aa5 32755
c91e1793 327562009-04-11 Felix Zielcke <fzielcke@z-51.de>
32757
32758 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32759 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32760 GNU/kFreeBSD. Check if a device is a character device. Use
32761 DIOCGMEDIASIZE to get the size.
32762 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32763 support for GNU/kFreeBSD.
32764 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32765 is a character device instead of a block device. Add support for
32766 FreeBSD device names.
32767
32768 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32769 is a character device instead of a block device.
32770
32771 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32772 is a character device instead of a block device.
32773
b1ac8644 327742009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32775
32776 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32777 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32778 FreeBSD. Check if a device is a character device. Use
32779 DIOCGMEDIASIZE to get the size.
32780 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32781 support for FreeBSD.
32782 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32783 is a character device instead of a block device. Add support for
32784 FreeBSD device names.
32785
32786 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32787 a character device instead of a block device.
32788 (grub_util_check_char_device): New function.
32789
32790 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32791 a character device instead of a block device.
32792
32793 * include/grub/util/getroot.h (grub_util_check_char_device): New
32794 prototype.
32795
a3f7515a 327962009-04-11 David S. Miller <davem@davemloft.net>
32797
32798 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32799 static libgcc.
32800 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32801 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32802 function, if present.
32803 (__bswapdi2): Likewise.
32804
0d44993d 32805 * include/grub/sparc64/ieee1275/boot.h: New file.
32806 * boot/sparc64/ieee1275/boot.S: Likewise.
32807 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32808
ed3d2bc2 32809 * kern/misc.c (grub_ltoa): New function.
32810 (grub_vsprintf): Use it to format 'long' integers.
32811
d3bfb59c 328122009-04-10 David S. Miller <davem@davemloft.net>
32813
32814 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32815 slots are of type grub_ieee1275_cell_t.
32816 (grub_nand_read): Likewise.
32817 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32818 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32819 macros are used to compare values in arg/ret block of the call.
32820 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32821 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32822 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32823 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32824 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32825 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32826 grub_ieee1275_close, grub_ieee1275_set_property,
32827 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32828 grub_ieee1275_cell_t.
32829 * kern/ieee1275/openfw.c (grub_map): Likewise.
32830 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32831 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32832
450e2238 32833 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32834 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32835 (grub_devalias_iterate): Likewise.
32836
7dd4a573 328372009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 32838
32839 UFS improvements
32840
32841 * fs/ufs.c (INODE_NBLOCKS): new definition
32842 (struct grub_ufs_dirent): added fields for non-BSD dirents
32843 (grub_ufs_get_file_block): fixed double indirect handling
32844 (grub_ufs_lookup_symlink): use more robust way to determine whether
32845 symlink is inline
32846 (grub_ufs_find_file): support for non-BSD dirents
32847 (grub_ufs_dir): support for non-BSD dirents
32848
e7e6862a 328492009-04-10 Bean <bean123ch@gnail.com>
32850
32851 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32852 attribute, otherwise the size would be wrong for i386 platform.
32853
32854 * include/grub/pci.h (grub_pci_read_word): New inline function.
32855 (grub_pci_read_byte): Likewise.
32856 (grub_pci_write): Likewise.
32857 (grub_pci_write_word): Likewise.
32858 (grub_pci_write_byte): Likewise.
32859
32860 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32861
32862 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32863 (find_framebuf): Scan pci to locate the frame buffer address.
32864
32865 * commands/efi/fixvideo.c: New file.
32866
32867 * commands/efi/loadbios.c: Likewise.
32868
32869 * commands/memrw.c: Likewise.
32870
32871 * util/grub-dumpbios.in: Likewise.
32872
32873 * conf/common.rmk (grub-dumpbios): New utility.
32874 (pkglib_MODULES): New module memrw.mod.
32875 (memrw_mod_SOURCE): New macro.
32876 (memrw_mod_CFLAGS): Likewise.
32877 (memrw_mod_LDFLAGS): Likewise.
32878
7dd4a573 32879 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 32880 fixvideo.mod.
32881 (loadbios_mod_SOURCE): New macro.
32882 (loadbios_mod_CFLAGS): Likewise.
32883 (loadbios_mod_LDFLAGS): Likewise.
32884 (fixvideo_mod_SOURCE): Likewise.
32885 (fixvideo_mod_CFLAGS): Likewise.
32886 (fixvideo_mod_LDFLAGS): Likewise.
32887
7dd4a573 32888 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 32889 fixvideo.mod.
32890 (loadbios_mod_SOURCE): New macro.
32891 (loadbios_mod_CFLAGS): Likewise.
32892 (loadbios_mod_LDFLAGS): Likewise.
32893 (fixvideo_mod_SOURCE): Likewise.
32894 (fixvideo_mod_CFLAGS): Likewise.
32895 (fixvideo_mod_LDFLAGS): Likewise.
32896
af63ada2 328972009-04-08 Felix Zielcke <fzielcke@z-51.de>
32898
32899 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32900
c2cdde70 329012009-04-07 David S. Miller <davem@davemloft.net>
32902
32903 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32904 support for R_SPARC_OLO10 relocations. Fix compile warning for
32905 R_SPARC_WDISP30 case.
ea3f72cf 32906 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 32907
761319cf 329082009-04-06 Pavel Roskin <proski@gnu.org>
32909
1007d1f5 32910 * include/grub/misc.h (ARRAY_SIZE): New macro.
32911 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32912 New macro.
32913 * loader/i386/linux.c (allocate_pages): Use free_pages().
32914 (grub_linux_unload): Don't use free_pages().
32915 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32916 wrong index. Treat all other modes as text modes.
32917 (grub_cmd_linux): Initialize vid_mode unconditionally to
32918 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32919
761319cf 32920 * commands/help.c (print_command_help): Use cmd->prio, not
32921 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32922
ea761d40 329232009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 32924
ea761d40 32925 Parttool
32926
32927 * parttool/pcpart.c: new file
32928 * commands/parttool.c: likewise
32929 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32930 (parttool_mod_SOURCES): new variable
32931 (parttool_mod_CFLAGS): likewise
32932 (parttool_mod_LDFLAGS): likewise
32933 (pcpart_mod_SOURCES): likewise
32934 (pcpart_mod_CFLAGS): likewise
32935 (pcpart_mod_LDFLAGS): likewise
7dd4a573 32936 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 32937 and parttool/pcpart.c
32938 * conf/i386-efi.rmk: likewise
32939 * conf/i386-ieee1275.rmk: likewise
32940 * conf/i386-pc.rmk: likewise
32941 * conf/powerpc-ieee1275.rmk: likewise
32942 * conf/sparc64-ieee1275.rmk: likewise
32943 * conf/x86_64-ieee1275.rmk: likewise
32944
05aaebfb 329452009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32946
32947 Support for mtime and further expandability of dir command
32948
32949 * include/grub/lib/datetime.h: moved to ...
7dd4a573 32950 * include/grub/datetime.h: ... moved here and added
05aaebfb 32951 declaration of grub_unixtime2datetime. All users updated
7dd4a573 32952 * include/grub/fs.h: new syntax for dir and mtime functions in
32953 struct grub_fs
05aaebfb 32954 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32955 and GRUB_FSHELP_FLAGS_MASK
32956 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32957 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32958 (grub_ext2_mtime): new function
32959 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32960 (grub_hfsplus_mtime): new function
32961 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32962 (GRUB_UFS_ATTR_FILE): likewise
32963 (GRUB_UFS_ATTR_LNK): likewise
32964 (struct grub_ufs_sblock): new fields mtime
32965 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32966 all users updated
32967 (grub_ufs_dir): mtime support
32968 (grub_ufs_mtime): new function
32969 * fs/affs.c (grub_affs_dir): use new dir syntax
32970 * fs/afs.c (grub_afs_dir): likewise
32971 * fs/cpio.c (grub_cpio_dir): likewise
32972 * fs/fat.c (grub_fat_find_dir): likewise
32973 * fs/hfs.c (grub_hfs_dir): likewise
32974 * fs/iso9660.c (grub_iso9660_dir): likewise
32975 * fs/jfs.c (grub_jfs_dir): likewise
32976 * fs/minix.c (grub_minix_dir): likewise
32977 * fs/ntfs.c (grub_ntfs_dir): likewise
32978 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32979 * fs/sfs.c (grub_sfs_dir): likewise
32980 * fs/xfs.c (grub_xfs_dir): likewise
32981 * util/hostfs.c (grub_hostfs_dir): likewise
32982 * lib/datetime.c: moved to ...
32983 * normal/datetime.c: ... moved here
32984 (grub_unixtime2datetime): new function
32985 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 32986 * normal/completion.c (iterate_dir): use new dir syntax
32987 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 32988 last modification time of a volume
7dd4a573 32989 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 32990 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 32991 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 32992 (normal_mod_SOURCES): likewise
32993 (datetime_mod_SOURCES): Removed lib/datetime.c
32994 * conf/i386-efi.rmk: likewise
7dd4a573 32995 * conf/i386-ieee1275.rmk: likewise
05aaebfb 32996 * conf/i386-pc.rmk: likewise
32997 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 32998 * conf/sparc64-ieee1275.rmk: likewise
32999 * conf/x86_64-efi.rmk: likewise
05aaebfb 33000
8a7e1a14 330012009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33002
33003 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 33004
33005 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 33006 on grub_fat_find_dir
33007 (grub_fat_find_dir): use grub_fat_iterate_dir
33008 (grub_fat_label): likewise
33009
04186a9c 330102009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
33011
7dd4a573 33012 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 33013 and command.h
33014 remove extraneous kernel_elf_HEADERS
33015
da4c0bb6 330162009-04-04 Bean <bean123ch@gnail.com>
33017
33018 * include/grub/util/misc.h: Add dummy function fsync for mingw.
33019
33020 * util/misc.c: Likewise.
33021
54ad9555 330222009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33023
33024 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
33025 instead of grub_printf.
33026
7a6bf9f2 330272009-04-03 Robert Millan <rmh@aybabtu.com>
33028
33029 * loader/i386/linux.c (grub_linux_setup_video): Fill
33030 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
33031 values from `mode info' structure instead of hardcoded
33032 values.
33033
3fcc2083 330342009-04-01 Pavel Roskin <proski@gnu.org>
33035
33036 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
33037 unused now.
33038 * genmk.rb: Likewise.
33039 * configure.ac: Likewise.
33040
5ec9740b 330412009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
33042
33043 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
33044 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
33045
5270cec8 330462009-04-01 David S. Miller <davem@davemloft.net>
33047
33048 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 33049 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 33050 (grub_setjmp): Mark with 'returns_twice' attribute.
33051 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
33052 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
33053 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
33054
9c3dd854 330552009-04-01 Robert Millan <rmh@aybabtu.com>
33056
33057 Reapply fix from 2008-07-28 which was accidentally reverted; also
33058 perform the same fix to a similar check in same function.
33059
33060 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
33061 with the same number are found, just use issue a warning with
33062 grub_dprintf(), as this error has been reported to be non-fatal.
33063
0d818b7e 330642009-03-31 Pavel Roskin <proski@gnu.org>
33065
33066 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
33067 for cross-compilation.
33068
95646d92 330692009-03-30 Robert Millan <rmh@aybabtu.com>
33070
33071 Fix i386-ieee1275 build.
33072
33073 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
33074 Remove declaration.
33075
6a003ed1 330762009-03-30 Pavel Roskin <proski@gnu.org>
33077
33078 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
33079 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
33080 zero-terminated, rely only on the strlen value. Fix comparison
33081 of strings differing in length.
33082
92f33540 330832009-03-30 Robert Millan <rmh@aybabtu.com>
33084
33085 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
33086 checking for abi version. Improve error messages on BIOS to notify
33087 user about `linux16' command.
33088
a8c48fd5 330892009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33090
f968172e 33091 Leak fixes
a8c48fd5 33092
f968172e 33093 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33094 in case of collision
33095 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 33096
9c323f09 330972009-03-29 Robert Millan <rmh@aybabtu.com>
33098
33099 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33100 set `vid_mode' accordingly.
33101 (grub_linux_boot): Process `vid_mode' and set video mode.
33102
ae68f423 331032009-03-29 Robert Millan <rmh@aybabtu.com>
33104
33105 * util/grub.d/10_linux.in (linux_entry): New function.
33106 Factorize generation of Linux boot entries.
33107
5709cfc4 331082009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33109
33110 Make the format of Environment Block plain text. The boot loader
33111 part is not tested well yet.
7dd4a573 33112
5709cfc4 33113 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33114 (buffer): Removed.
33115 (envblk): Likewise.
33116 (usage): Remove "info" and "clear". Add "unset". Update the
33117 description of "set", as this does not delete variables any
33118 longer.
33119 (create_envblk_file): Complete rewrite.
33120 (open_envblk_file): Likewise.
33121 (cmd_info): Removed.
33122 (cmd_list): Likewise.
33123 (cmd_set): Likewise.
33124 (cmd_clear): Likewise.
33125 (list_variables): New function.
33126 (write_envblk): Likewise.
33127 (set_variables): Likewise.
33128 (unset_variables): Likewise.
33129 (main): Complete rewrite.
33130
33131 * commands/loadenv.c (buffer): Removed.
33132 (envblk): Likewise.
33133 (open_envblk_file): New function.
33134 (read_envblk_file): Complete rewrite.
33135 (grub_cmd_load_env): Likewise.
33136 (grub_cmd_list_env): Likewise.
33137 (struct blocklist): New struct.
33138 (free_blocklists): New function.
33139 (check_blocklists): Likewise.
33140 (write_blocklists): Likewise.
33141 (grub_cmd_save_env): Complete rewrite.
33142
33143 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33144 a plain text signature.
33145 (GRUB_ENVBLK_MAXLEN): Removed.
33146 (struct grub_envblk): Complete rewrite.
33147 (grub_envblk_find): Removed.
33148 (grub_envblk_insert): Likewise.
33149 (grub_envblk_open): New prototype.
33150 (grub_envblk_set): Likewise.
33151 (grub_envblk_delete): Put const to VALUE.
33152 (grub_envblk_iterate): Put const to NAME and VALUE.
33153 (grub_envblk_close): New prototype.
33154 (grub_envblk_buffer): New inline function.
33155 (grub_envblk_size): Likewise.
33156
33157 * lib/envblk.c: Include grub/mm.h.
33158 (grub_env_find): Removed.
33159 (grub_envblk_open): New function.
33160 (grub_envblk_close): Likewise.
33161 (escaped_value_len): Likewise.
33162 (find_next_line): Likewise.
33163 (grub_envblk_insert): Removed.
33164 (grub_envblk_set): New function.
33165 (grub_envblk_delete): Complete rewrite.
33166 (grub_envblk_iterate): Likewise.
33167
a9368fd3 331682009-03-28 Robert Millan <rmh@aybabtu.com>
33169
33170 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33171 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33172 variables. Use 16-bit loader.
33173 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33174 loader.
33175 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33176 (grub_linux16_boot): ... this. Update all users.
33177 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33178 (grub_linux_boot): ... this. Update all users.
33179
33180 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33181 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33182 commands to `linux16' and `initrd16'.
33183 (GRUB_MOD_FINI(linux)): Rename to ...
33184 (GRUB_MOD_FINI(linux16)): ... this.
33185
e4dd5a7e 331862009-03-24 Pavel Roskin <proski@gnu.org>
33187
33188 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33189 not just for compilation.
33190
c04d6e05 331912009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33192
33193 Move multiboot helper out of kernel
33194
33195 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33196 `loader/i386/multiboot_helper.S'.
33197 * conf/i386-coreboot.rmk: Likewise
33198 * conf/i386-ieee1275.rmk: Likewise
33199
33200 * kern/i386/loader.S: Move multiboot helpers from here...
33201 * loader/i386/multiboot_helper.S: ...moved here
33202 * include/grub/i386/loader.h: Move declarations of multiboot
33203 helpers from here...
33204 * include/grub/i386/multiboot.h: ...moved here
33205 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33206
42a5b3fc 332072009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33208
33209 * kern/env.c (grub_env_context_open): Added an argument to specify
33210 whether a new context inherits exported variables from current
33211 one. This is useful when making a sandbox to interpret a config
33212 file.
33213 All callers updated.
33214
33215 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33216
b28bbc4e 332172009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33218
33219 * kern/env.c (grub_env_context_close): Fix memory leaks.
33220
f04f02e4 332212009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33222
33223 * normal/main.c (grub_normal_execute): Added an argument
33224 BATCH to specify if an interactive interface should be provided
33225 after reading a config file.
33226 All callers updated.
33227 (read_command_list): Prevent being executed twice.
33228 (read_fs_list): Likewise.
33229
42a5b3fc 33230 * include/grub/normal.h (grub_normal_execute): Updated the
33231 prototype.
f04f02e4 33232
41473ac2 332332009-03-22 Pavel Roskin <proski@gno.org>
33234
fbc00b0c 33235 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33236 _start.
33237 * kern/i386/pc/startup.S: Likewise.
33238 * kern/i386/efi/startup.S: Likewise.
33239 * kern/i386/ieee1275/startup.S: Likewise.
33240 * kern/i386/coreboot/startup.S: Likewise.
33241 * kern/x86_64/efi/startup.S: Likewise.
33242
41473ac2 33243 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33244 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33245 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33246
2274cc8f 332472009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33248
33249 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33250
33251 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33252 limit detection.
33253 Use vaddr of correct segment for entry_point.
33254
b1b797cb 332552009-03-21 Bean <bean123ch@gmail.com>
33256
33257 * commands/blocklist.c: Add include file <grub/command.h>, remove
33258 <grub/normal.h> and <grub/arg.h>.
33259 (grub_cmd_blocklist): Use the new command interface.
33260 (GRUB_MOD_INIT): Likewise.
33261 (GRUB_MOD_FINI): Likewise.
33262 * commands/boot.c: Likewise.
33263 * commands/cat.c: Likewise.
33264 * commands/cmp.c: Likewise.
33265 * commands/configfile.c: Likewise.
33266 * commands/crc.c: Likewise.
33267 * commands/echo.c: Likewise.
33268 * commands/halt.c: Likewise.
33269 * commands/handler.c: Likewise.
33270 * commands/hdparm.c: Likewise.
33271 * commands/help.c: Likewise.
33272 * commands/hexdump.c: Likewise.
33273 * commands/loadenv.c: Likewise.
33274 * commands/ls.c: Likewise.
33275 * commands/lsmmap.c: Likewise.
33276 * commands/lspci.c: Likewise.
33277 * commands/loadenv.c: Likewise.
33278 * commands/read.c: Likewise.
33279 * commands/reboot.c: Likewise.
33280 * commands/search.c: Likewise.
33281 * commands/sleep.c: Likewise.
33282 * commands/test.c: Likewise.
33283 * commands/usbtest.c: Likewise.
33284 * commands/videotest.c: Likewise.
33285 * commands/i386/cpuid.c: Likewise.
33286 * commands/i386/pc/halt.c: Likewise.
33287 * commands/i386/pc/play.c: Likewise.
33288 * commands/i386/pc/pxecmd.c: Likewise.
33289 * commands/i386/pc/vbeinfo.c: Likewise.
33290 * commands/i386/pc/vbetest.c: Likewise.
33291 * commands/ieee1275/suspend.c: Likewise.
33292 * disk/loopback.c: Likewise.
33293 * font/font_cmd.c: Likewise.
33294 * hello/hello.c: Likewise.
33295 * loader/efi/appleloader.c: Likewise.
33296 * loader/efi/chainloader.c: Likewise.
33297 * loader/i386/bsd.c: Likewise.
33298 * loader/i386/efi/linux.c: Likewise.
33299 * loader/i386/ieee1275/linux.c: Likewise.
33300 * loader/i386/linux.c: Likewise.
33301 * loader/i386/pc/chainloader.c: Likewise.
33302 * loader/i386/pc/linux.c: Likewise.
33303 * loader/powerpc/ieee1275/linux.c: Likewise.
33304 * loader/multiboot_loader.c: Likewise.
33305 * term/gfxterm.c: Likewise.
33306 * term/i386/pc/serial.c: Likewise.
33307 * term/terminfo.c: Likewise.
33308
33309 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33310 * term/i386/pc/vga.c: Likewise.
33311 * video/readers/jpeg.c: Likewise.
33312 * video/readers/png.c: Likewise.
33313 * video/readers/tga.c: Likewise.
33314
33315 * util/grub-fstest (cmd_loopback): Removed.
33316 (cmd_blocklist): Likewise.
33317 (cmd_ls): Likewise.
33318 (grub_register_command): Likewise.
33319 (grub_unregister_command): Likewise.
33320 (execute_command): Use grub_command_find to locate command and execute
33321 it.
33322
33323 * include/grub/efi/chainloader.h: Removed.
33324 * loader/efi/chainloader_normal.c: Likewise.
33325 * loader/i386/bsd_normal.c: Likewise.
33326 * loader/i386/pc/chainloader_normal.c: Likewise.
33327 * loader/i386/pc/multiboot_normal.c: Likewise.
33328 * loader/linux_normal.c: Likewise.
33329 * loader/multiboot_loader_normal.c: Likewise.
33330 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33331
33332 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33333 and grub_register_command_p1.
33334
33335 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33336 kern/command.c, lib/arg.c and commands/extcmd.c.
33337 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33338 (minicmd_mod_SOURCES): New variable.
33339 (minicmd_mod_CFLAGS): Likewise.
33340 (minicmd_mod_LDFLAGS): Likewise.
33341 (extcmd_mod_SOURCES): Likewise.
33342 (extcmd_mod_CFLAGS): Likewise.
33343 (extcmd_mod_LDFLAGS): Likewise.
33344 (boot_mod_SOURCES): Removed.
33345 (boot_mod_CFLAGS): Likewise.
33346 (boot_mod_LDFLAGS): Likewise.
33347
33348 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33349 kern/corecmd.c.
33350 (kernel_img_HEADERS): Add command.h.
33351 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33352 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33353 and lib/arg.c.
33354 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33355 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33356 remove the corresponding normal mode command.
33357 (normal_mod_SOURCES): Remove normal/arg.c.
33358 * conf/i386-coreboot.rmk: Likewise.
33359 * conf/i386-efi.rmk: Likewise.
33360 * conf/i386-ieee1275.rmk: Likewise.
33361 * conf/powerpc-ieee1275.rmk: Likewise.
33362 * conf/x86_64-efi.rmk: Likewise.
33363
33364 * include/grub/arg.h: Move from here ...
33365 * include/grub/lib/arg.h: ... to here.
33366
33367 * normal/arg.c: Move from here ...
33368 * lib/arg.c: ... to here.
33369
33370 * commands/extcmd.c: New file.
33371 * commands/minicmd.c: Likewise.
33372 * include/grub/command.h: Likewise.
33373 * include/grub/extcmd.h: Likewise.
33374 * kern/command.c: Likewise.
33375 * kern/corecmd.c: Likewise.
33376
33377 * kern/list.c (grub_list_iterate): Return int instead of void.
33378 (grub_list_insert): New function.
33379 (grub_prio_list_insert): Likewise.
33380
33381 * kern/rescue.c (grub_rescue_command): Removed.
33382 (grub_rescue_command_list): Likewise.
33383 (grub_rescue_register_command): Likewise.
33384 (grub_rescue_unregister_command): Likewise.
33385 (grub_rescue_cmd_boot): Move to minicmd.c
33386 (grub_rescue_cmd_help): Likewise.
33387 (grub_rescue_cmd_info): Likewise.
33388 (grub_rescue_cmd_boot): Likewise.
33389 (grub_rescue_cmd_testload): Likewise.
33390 (grub_rescue_cmd_dump): Likewise.
33391 (grub_rescue_cmd_rmmod): Likewise.
33392 (grub_rescue_cmd_lsmod): Likewise.
33393 (grub_rescue_cmd_exit): Likewise.
33394 (grub_rescue_print_devices): Moved to corecmd.c.
33395 (grub_rescue_print_files): Likewise.
33396 (grub_rescue_cmd_ls): Likewise.
33397 (grub_rescue_cmd_insmod): Likewise.
33398 (grub_rescue_cmd_set): Likewise.
33399 (grub_rescue_cmd_unset): Likewise.
7d074e3c 33400 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 33401 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 33402 commands, remove grub_rescue_register_command calls.
b1b797cb 33403
7d074e3c 33404 * normal/command.c (grub_register_command): Removed.
b1b797cb 33405 (grub_unregister_command): Likewise.
33406 (grub_command_find): Likewise.
33407 (grub_iterate_commands): Likewise.
33408 (rescue_command): Likewise.
33409 (export_command): Moved to corecmd.c.
33410 (set_command): Removed.
33411 (unset_command): Likewise.
33412 (insmod_command): Likewise.
33413 (rmmod_command): Likewise.
33414 (lsmod_command): Likewise.
33415 (grub_command_init): Likewise.
33416
33417 * normal/completion.c (iterate_command): Use cmd->prio to check for
33418 active command.
33419 (complete_arguments): Use grub_extcmd_t structure to find options.
33420 (grub_normal_do_completion): Change function grub_iterate_commands to
33421 grub_command_iterate.
33422
33423 * normal/execute.c (grub_script_execute_cmd): No need to parse
33424 argument here.
33425
33426 * normal/main.c (grub_dyncmd_dispatcher): New function.
33427 (read_command_list): Register unload commands as dyncmd.
33428 (grub_cmd_normal): Use new command interface, register rescue,
33429 unregister normal at entry, register normal, unregister rescue at exit.
33430
33431 * include/grub/list.h (grub_list_test_t): New type.
33432 (grub_list_iterate): Return int instead of void.
33433 (grub_list_insert): New function.
33434 (GRUB_AS_NAMED_LIST_P): New macro.
33435 (GRUB_AS_PRIO_LIST): Likewise.
33436 (GRUB_AS_PRIO_LIST_P): Likewise.
33437 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33438 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33439 (grub_prio_list): New structure.
33440 (grub_prio_list_insert): New function.
33441 (grub_prio_list_remove): New inline function.
33442
33443 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33444 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33445 (GRUB_COMMAND_FLAG_MENU): Likewise.
33446 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33447 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33448 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33449 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33450 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33451 (grub_command): Likewise.
33452 (grub_register_command): Likewise.
33453 (grub_command_find): Likewise.
33454 (grub_iterate_commands): Likewise.
33455 (grub_command_init): Likewise.
33456 (grub_arg_parse): Likewise.
33457 (grub_arg_show_help): Likewise.
33458
33459 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33460 (grub_rescue_unregister_command): Likewise.
33461
33462 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33463 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33464 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33465
33466 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33467 grub_rescue_cmd_initrd.
33468 * include/grub/i386/loader.h: Likewise.
33469 * include/grub/x86_64/loader.h: Likewise.
33470
33471 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33472
1f4147aa 334732009-03-21 Bean <bean123ch@gmail.com>
33474
33475 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33476 instead of stat in mingw environment.
33477
33478 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33479
33480 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33481
33482 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33483 AC_CONFIG_LINKS.
33484
2156d5ba 334852009-03-21 Bean <bean123ch@gmail.com>
33486
33487 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33488 out of range error.
33489
177b82ca 334902009-03-18 Michel Dänzer <michel@daenzer.net>
33491
33492 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33493 checking inode flags for EXT4_EXTENTS_FLAG.
33494
14aad807 334952009-03-18 Robert Millan <rmh@aybabtu.com>
33496
33497 * loader/i386/linux.c: Include `<grub/video.h>' and
33498 `<grub/i386/pc/vbe.h>'..
33499 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33500 (grub_linux32_boot): Attempt to configure video settings with
33501 grub_linux_setup_video().
33502 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33503 to avoid grub_console_fini() which would step out of graphical mode
33504 unconditionally.
33505
8cf83a27 335062009-03-14 Robert Millan <rmh@aybabtu.com>
33507
33508 Fix build on powerpc.
33509 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33510
40164e75 335112009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33512
33513 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33514 background image command.
33515
c58bc32a 335162009-03-12 Colin D Bennett <colin@gibibit.com>
33517
33518 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33519 (grub_gfxterm_putchar): Extract pairs of identical calls to
33520 draw_cursor out of conditional blocks.
33521
5415144a 335222009-03-11 Pavel Roskin <proski@gnu.org>
33523
33524 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33525 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33526
6394042e 335272009-03-11 Robert Millan <rmh@aybabtu.com>
33528
33529 * loader/i386/multiboot_elfxx.c
33530 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33531
b7b50e5f 335322009-03-11 Felix Zielcke <fzielcke@z-51.de>
33533
33534 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33535 `kern/handler.c'.
33536
1ca7fc96 335372009-03-11 Robert Millan <rmh@aybabtu.com>
33538
33539 * loader/i386/multiboot.c (code_size): New variable.
33540 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 33541 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 33542 4-byte alignment to MBI and others by increasing
7d074e3c 33543 `boot_loader_name_length' appropriately.
1ca7fc96 33544
33545 * loader/i386/multiboot_elfxx.c
33546 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33547
a83ea1d2 335482009-03-09 Felix Zielcke <fzielcke@z-51.de>
33549
33550 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33551 `fs/ext2.c'.
33552
aa9f3bff 335532009-03-08 Robert Millan <rmh@aybabtu.com>
33554
33555 Make loader/i386/linux.c usable on i386-pc again.
33556
33557 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33558 memory to heap.
33559 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33560 `#error' stanza.
33561
d8b3b60e 335622009-03-07 Bean <bean123ch@gmail.com>
33563
33564 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33565 allocation.
33566
b362c9e9 335672009-03-06 Robert Millan <rmh@aybabtu.com>
33568
33569 Fix display issue on terminals with screen size other than 80x25
33570 (e.g. gfxterm with resolution higher than 640x480).
33571
33572 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 33573 position relative to the center of the terminal instead of relying
b362c9e9 33574 on a hardcoded offset.
33575
9304eef1 335762009-03-04 Robert Millan <rmh@aybabtu.com>
33577
33578 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33579 installed.
33580
33581 * Makefile.in (host_kernel): New variable.
33582 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33583 scripts instead of just the windows one.
33584 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33585
eabc95fb 335862009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 33587
33588 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33589 `kern/handler.c'.
33590 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33591 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33592 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33593 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33594 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33595 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33596
ceb1223c 335972009-03-04 Felix Zielcke <fzielcke@z-51.de>
33598
33599 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33600 or if there's no space for the disk label and print the partition number on a
33601 invalid magic.
33602
4910684a 336032009-03-04 Felix Zielcke <fzielcke@z-51.de>
33604
33605 * util/misc.c: Include <time.h>.
33606 (grub_millisleep): New function.
33607
7e9ca17a 336082009-03-04 Bean <bean123ch@gmail.com>
33609
33610 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33611 another option -mno-red-zone.
33612
33613 * commands/handler.c: Change module description.
33614
33615 * kern/handler.c: Add missing space at the end of description line.
33616
33617 * kern/list.c: Likewise.
33618
f501677c 336192009-03-03 Robert Millan <rmh@aybabtu.com>
33620
33621 Move more components to the relocation area, and fix mbi pointer
33622 handling to use the destination rather than the origin (thanks to
33623 Vladimir Serbinenko for spotting).
33624
33625 * loader/i386/multiboot.c (mbi_dest): New variable.
33626 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33627 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33628 relocation area.
33629
9902d047 336302009-03-01 Bean <bean123ch@gmail.com>
33631
50fb7002 33632 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 33633 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33634 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33635 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33636
33637 * loader/i386/efi/linux.c (acpi_guid): New variable.
33638 (acpi_guid): Likewise.
33639 (EBDA_SEG_ADDR): New constant.
33640 (LOW_MEM_ADDR): Likewise.
33641 (FAKE_EBDA_SEG): Likewise.
33642 (fake_bios_data): New function.
33643 (grub_linux_boot): Call fake_bios_data.
33644
71b9f361 336452009-03-01 Bean <bean123ch@gmail.com>
33646
33647 * commands/terminal.c: Removed.
33648
33649 * commands/handler.c: New file.
33650
33651 * include/grub/list.h: Likewise.
33652
33653 * include/grub/handler.h: Likewise.
33654
33655 * kern/list.c: Likewise.
33656
33657 * kern/handler.c: Likewise.
33658
33659 * kern/term.h: Include header file <grub/handler.h>.
33660 (grub_term_input): Move next field to the beginning.
33661 (grub_term_output): Likewise.
33662 (grub_term_input_class): New variable.
33663 (grub_term_output_class): Likewise.
33664 (grub_term_register_input): Changed to inline function.
33665 (grub_term_register_output): Likewise.
33666 (grub_term_unregister_input): Likewise.
33667 (grub_term_unregister_output): Likewise.
33668 (grub_term_set_current_input): Likewise.
33669 (grub_term_set_current_output): Likewise.
33670 (grub_term_get_current_input): Likewise.
33671 (grub_term_get_current_output): Likewise.
33672 (grub_term_iterate_input): Removed.
33673 (grub_term_iterate_output): Likewise.
33674
33675 * kern/term.c (grub_term_list_input): Removed.
33676 (grub_term_list_output): Likewise.
33677 (grub_term_input_class): New variable.
33678 (grub_term_output_class): Likewise.
50fb7002 33679 (grub_cur_term_input): Change variable as macro.
71b9f361 33680 (grub_cur_term_output): Likewise.
33681 (grub_term_register_input): Removed.
33682 (grub_term_register_output): Likewise.
33683 (grub_term_unregister_input): Likewise.
33684 (grub_term_unregister_output): Likewise.
33685 (grub_term_set_current_input): Likewise.
33686 (grub_term_set_current_output): Likewise.
33687 (grub_term_iterate_input): Likewise.
33688 (grub_term_iterate_output): Likewise.
33689 (grub_term_get_current_input): Likewise.
33690 (grub_term_get_current_output): Likewise.
33691
33692 * util/grub-editenv.c: Include header file <grub/handler.h>.
33693 (grub_term_get_current_input): Removed.
33694 (grub_term_get_current_output): Likewise.
33695 (grub_term_input_class): New variable.
50fb7002 33696 (grub_term_output_class): Likewise.
71b9f361 33697
33698 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33699 (grub_term_get_current_output): Likewise.
33700 (grub_term_input_class): New variable.
50fb7002 33701 (grub_term_output_class): Likewise.
71b9f361 33702
33703 * util/grub-probe.c (grub_term_get_current_input): Removed.
33704 (grub_term_get_current_output): Likewise.
33705 (grub_term_input_class): New variable.
50fb7002 33706 (grub_term_output_class): Likewise.
71b9f361 33707
33708 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33709 (grub_term_get_current_output): Likewise.
33710 (grub_term_input_class): New variable.
50fb7002 33711 (grub_term_output_class): Likewise.
71b9f361 33712
33713 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33714 (terminal_mod_SOURCES): Likewise.
33715 (terminal_mod_CFLAGS): Likewise.
33716 (terminal_mod_LDFLAGS): Likewise.
33717
33718 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33719 handler.c.
33720 (kernel_img_SOURCES): Add list.c and handler.c.
33721 (kernel_img_HEADERS): Add list.h and handler.h.
33722
33723 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33724 handler.c.
33725 (kernel_mod_SOURCES): Add list.c and handler.c.
33726 (kernel_mod_HEADERS): Add list.h and handler.h.
33727
33728 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33729 handler.c.
33730 (kernel_elf_SOURCES): Add list.c and handler.c.
33731 (kernel_elf_HEADERS): Add list.h and handler.h.
33732
33733 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33734 handler.c.
33735 (kernel_elf_SOURCES): Add list.c and handler.c.
33736 (kernel_elf_HEADERS): Add list.h and handler.h.
33737
33738 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33739 handler.c.
33740 (kernel_mod_SOURCES): Add list.c and handler.c.
33741 (kernel_mod_HEADERS): Add list.h and handler.h.
33742
33743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33744 handler.c.
33745 (kernel_elf_SOURCES): Add list.c and handler.c.
33746 (kernel_elf_HEADERS): Add list.h and handler.h.
33747
8a31787f 337482009-02-27 Robert Millan <rmh@aybabtu.com>
33749
33750 Factorize elf32 / elf64 code in Multiboot loader. This will
33751 prevent it from getting out of sync again.
33752
33753 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33754 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33755 grub_multiboot_load_elf64): Move from here ...
33756 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33757 grub_multiboot_load_elf): ... to here (new file).
33758
51cd3dfc 337592009-02-27 Robert Millan <rmh@aybabtu.com>
33760
33761 * util/grub.d/10_linux.in: Rename "single-user mode" to
33762 "recovery mode".
33763
6e8c9c3a 337642009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33765
33766 Don't leak in SCSI code.
33767 * disk/scsi.c (grub_scsi_close): free `scsi'.
33768
4b6bf4f9 337692009-02-27 Robert Millan <rmh@aybabtu.com>
33770
33771 * loader/i386/pc/multiboot.c: Move from here ...
33772 * loader/i386/multiboot.c: ... to here. Update all users.
33773
b9413424 337742009-02-27 Robert Millan <rmh@aybabtu.com>
33775
33776 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33777 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33778
50fb7002 337792009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 33780
33781 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33782 b-tree.
33783
8cc50345 337842009-02-27 Robert Millan <rmh@aybabtu.com>
33785
33786 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33787 `0x' qualifier as 0 when base is specified as parameter).
33788
6e09b8b7 337892009-02-24 Bean <bean123ch@gmail.com>
33790
33791 * configure.ac: Check for -mcmodel=large in x86_64 target.
33792
33793 * include/grub/efi/api.h (efi_call_10): New macro.
33794 (efi_wrap_10): New function.
33795
33796 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33797 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33798 (GRUB_PE32_REL_BASED_LOW): Likewise.
33799 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33800 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33801 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33802 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33803 (GRUB_PE32_REL_BASED_REL): Likewise.
33804 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33805 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33806 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33807
33808 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33809 issue.
33810
33811 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33812 (efi_wrap_10): New function.
33813
33814 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33815
33816 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33817 MB/MBP model (NV chipset).
33818 (devdata_devs): Add devpath_5 to the list.
33819
33820 * load/i386/efi/linux.c (video_base): Remove variable.
33821 (RGB_MASK): New macro.
33822 (RGB_MAGIC): Likewise.
33823 (LINE_MIN): Likewise.
33824 (LINE_MAX): Likewise.
33825 (FBTEST_STEP): Likewise.
33826 (FBTEST_COUNT): Likewise.
33827 (fb_list): New variable.
33828 (grub_find_video_card): Remove function.
33829 (find_framebuf): New function.
33830 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33831 line length.
33832
33833 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33834 problem for x86_64.
33835
74b21bee 338362009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33837
33838 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33839
33840 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33841 coding tool name.
33842
a455f472 338432009-02-22 Robert Millan <rmh@aybabtu.com>
33844
33845 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33846 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33847 in our relocation, instead of using it directly from heap. Also
33848 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33849
6374daf3 338502009-02-21 Robert Millan <rmh@aybabtu.com>
33851
33852 Implement USB keyboard support (based on patch by Marco Gerards)
33853
33854 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33855 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33856 (usb_keyboard_mod_LDFLAGS): New variables.
33857
33858 * term/usb_keyboard.c: New file.
33859
8fa4ea70 338602009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33861
33862 Corrected wrong declaration
33863
33864 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33865
353976ac 338662009-02-14 Christian Franke <franke@computer.org>
33867
33868 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33869 (grub_lspci_iter): Print class code and programming interface byte.
33870
6aa1169b 338712009-02-14 Christian Franke <franke@computer.org>
33872
33873 * gendistlist.sh: Ignore `.svn' directories.
33874
265372ca 338752009-02-14 Felix Zielcke <fzielcke@z-51.de>
33876
33877 * fs/fat.c: Add 2009 to Copyright line.
33878
9ff516f3 338792009-02-14 Christian Franke <franke@computer.org>
33880
33881 * commands/hdparm.c: New file. Provides `hdparm' command
33882 which sends ATA commands via grub_disk_ata_pass_through ().
33883
33884 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33885
33886 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33887 and <grub/cpu/io.h> to include/grub/ata.h.
33888 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33889 (GRUB_CDROM_SECTOR_SIZE): Remove.
33890 (GRUB_ATA_*): Move to include/grub/ata.h.
33891 (GRUB_ATAPI_*): Likewise.
33892 (enum grub_ata_commands): Likewise.
33893 (enum grub_ata_timeout_milliseconds): Likewise.
33894 (struct grub_ata_device): Likewise.
33895 (grub_ata_regset): Likewise.
33896 (grub_ata_regget): Likewise.
33897 (grub_ata_regset2): Likewise.
33898 (grub_ata_regget2): Likewise.
33899 (grub_ata_check_ready): Likewise.
33900 (grub_ata_wait_not_busy): Remove static, exported in
33901 include/grub/ata.h.
33902 (grub_ata_wait_drq): Likewise.
33903 (grub_ata_pio_read): Likewise.
33904
33905 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33906 function for hdparm.mod.
33907
33908 * include/grub/ata.h: New file, contains declarations from
33909 disk/ata.c.
33910 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33911
33912 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33913 (grub_disk_ata_pass_through): New exported variable.
33914
33915 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33916
772e23da 339172009-02-13 Colin D Bennett <colin@gibibit.com>
33918
33919 Support multiple fallback entries, and provide an API to support
33920 executing default+fallback menu entries. Renamed the `terminal' menu
33921 viewer to `text'.
33922
33923 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33924 variable declaration.
33925 (grub_menu_execute_callback): New structure declaration.
33926 (grub_menu_execute_callback_t): New typedef.
33927 (grub_menu_execute_with_fallback): New function declaration.
33928 (grub_menu_get_entry): Likewise.
33929 (grub_menu_get_timeout): Likewise.
33930 (grub_menu_set_timeout): Likewise.
33931
33932 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33933
33934 * normal/menu.c (grub_wait_after_message): Moved to
33935 `normal/menu_text.c'.
33936 (draw_border): Likewise.
33937 (print_message): Likewise.
33938 (print_entry): Likewise.
33939 (print_entries): Likewise.
33940 (grub_menu_init_page): Likewise.
33941 (get_entry_number): Likewise.
33942 (print_timeout): Likewise.
33943 (run_menu): Likewise.
33944 (grub_menu_execute_entry): Likewise.
33945 (show_text_menu): Likewise.
33946 (get_and_remove_first_entry_number): New function.
33947 (grub_menu_execute_with_fallback): Likewise.
33948 (get_entry): Renamed to ...
33949 (grub_menu_get_entry): .. this and made it global.
33950 (get_timeout): Renamed to ...
33951 (grub_menu_get_timeout): ... this and made it global.
33952 (set_timeout): Renamed to ...
33953 (grub_menu_set_timeout): ... this and made it global.
33954 (grub_normal_terminal_menu_viewer): Renamed to ...
33955 (grub_normal_text_menu_viewer): ... this.
33956
33957 * normal/menu_text.c: New file. Extracted text-menu-specific code
33958 from normal/menu.c.
33959
33960 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33961 (normal_mod_SOURCES): Likewise.
33962
33963 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33964 (normal_mod_SOURCES): Likewise.
33965
33966 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33967 (normal_mod_SOURCES): Likewise.
33968
33969 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33970 (normal_mod_SOURCES): Likewise.
33971
33972 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33973 (normal_mod_SOURCES): Likewise.
33974
33975 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33976 (normal_mod_SOURCES): Likewise.
33977
33978 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33979 (normal_mod_SOURCES): Likewise.
33980
16ac430e 339812009-02-11 Robert Millan <rmh@aybabtu.com>
33982
33983 * util/grub.d/00_header.in: Update old reference to `font' command.
33984
06ff20fc 339852009-02-10 Felix Zielcke <fzielcke@z-51.de>
33986
33987 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33988
33989 Based on patch from Javier Martín.
33990
96da9407 339912009-02-09 Felix Zielcke <fzielcke@z-51.de>
33992
33993 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 33994 to avoid false positives with FAT.
96da9407 33995 (grub_fstest_SOURCES): Likewise.
33996 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33997 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33999 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34000 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34001 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34002
6dca6fe4 340032009-02-09 Felix Zielcke <fzielcke@z-51.de>
34004
06ff20fc 34005 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 34006 bpb.version_specific.fat12_or_fat16.fstype and
34007 bpb.version_specific.fat32.fstype.
34008
2550c62f 340092009-02-08 Robert Millan <rmh@aybabtu.com>
34010
be110b30 34011 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 34012
56978920 340132009-02-08 Robert Millan <rmh@aybabtu.com>
34014
34015 * Makefile.in (host_os, host_cpu): New variables.
34016 (target_os): Remove. Update all users.
34017
d64399b5 340182009-02-08 Marco Gerards <marco@gnu.org>
34019
34020 * Makefile.in (enable_grub_emu_usb): New variable.
34021 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
34022 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
34023 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
34024 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
34025 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
34026 `usbtest.mod' and `usbms.mod'.
34027 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
34028 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
34029 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
34030 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
34031 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
34032 variables.
34033
34034 * disk/usbms.c: New file.
34035
34036 * include/grub/usb.h: Likewise.
34037
34038 * include/grub/usbtrans.h: Likewise.
34039
34040 * include/grub/usbdesc.h: Likewise.
34041
34042 * bus/usb/usbtrans.c: Likewise.
34043
34044 * bus/usb/ohci.c: Likewise.
34045
34046 * bus/usb/uhci.c: Likewise.
34047
34048 * bus/usb/usbhub.c: Likewise.
34049
34050 * bus/usb/usb.c: Likewise.
34051
34052 * commands/usbtest.c: Likewise.
34053
34054 * util/usb.c: Likewise.
50fb7002 34055
d64399b5 34056 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
34057
34058 * configure.ac: Test for libusb presence.
50fb7002 34059
d64399b5 34060 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
34061
2b40d6bb 340622009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
34063
34064 * kern/mm.c: Add more comments.
34065
73a4ce81 340662009-02-08 Robert Millan <rmh@aybabtu.com>
34067
34068 Patch from Javier Martín.
34069 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
34070 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
34071
f821ce59 340722009-02-08 Robert Millan <rmh@aybabtu.com>
34073
34074 * fs/cpio.c: Split tar functionality to ...
34075 * fs/tar.c: ... here (new file). Update all users.
34076
aebfc4b0 340772009-02-07 Robert Millan <rmh@aybabtu.com>
34078
34079 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
34080 backward-incompatible features.
34081
34082 Based on patch from Javier Martín, with some adjustments.
34083
50fb7002 340842009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 34085
34086 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
34087
0bb5115e 340882009-02-07 Robert Millan <rmh@aybabtu.com>
34089
34090 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34091 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34092 after the RAID stuff.
34093
38a0f8e7 340942009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34095
50fb7002 34096 Fixes problem when running vbetest command as reported by
38a0f8e7 34097 Vladimir Serbinenko <phcoder@gmail.com>.
34098
34099 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34100
3143cc1c 341012009-02-04 Felix Zielcke <fzielcke@z-51.de>
34102
34103 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34104 /dev/md/NpN style mdraid devices.
34105
9cba6fce 341062009-02-03 Felix Zielcke <fzielcke@z-51.de>
34107
34108 * util/unifont2pff.rb: Remove.
34109
e507a2c1 341102009-02-03 Felix Zielcke <fzielcke@z-51.de>
34111
34112 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34113 `#'.
34114
d2c2b4cd 341152009-02-03 Felix Zielcke <fzielcke@z-51.de>
34116
34117 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34118 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34119 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34120 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34121 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34122 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34123 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34124
b4315fb0 341252009-02-02 Christian Franke <franke@computer.org>
34126
34127 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34128
de3aa260 341292009-02-01 Felix Zielcke <fzielcke@z-51.de>
34130
7c3ff286 34131 * INSTALL: Note that we now require at least autoconf 2.59 and
34132 that LZO is optional.
de3aa260 34133
825a182b 341342009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34135
34136 Base on patch on bug #24154 created by Tomas Tintera
34137 <trosos@seznam.cz>.
34138
34139 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34140
a69ef770 341412009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34142
7c3ff286 34143 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 34144 <bero@arklinux.org>.
34145
34146 * normal/parser.y (script_init): Add missing semicolon.
34147
6fa42fa6 341482009-01-31 Colin D Bennett <colin@gibibit.com>
34149
7c3ff286 34150 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 34151 (free_menu_entry_classes): Added.
34152 (grub_normal_menu_addentry): Added class property handling.
34153 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34154 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34155
34156 * normal/menu_viewer.c: New file.
34157
34158 * normal/menu.c (run_menu_entry): Renamed to ...
34159 (grub_menu_execute_entry): ... this and made it as global.
34160 (grub_menu_run): Renamed to ...
34161 (show_text_menu): ... this and made it local.
34162 (show_text_menu): Adapt to new function names.
34163 (grub_normal_terminal_menu_viewer): New global variable.
34164
34165 * include/grub/menu.h: New file.
34166
34167 * include/grub/menu_viewer.h: New file.
34168
34169 * include/grub/normal.h: Added include to grub/menu.h.
34170 (grub_menu_entry): Moved to include/grub/menu.h.
34171 (grub_menu_entry_t): Likewise.
34172 (grub_menu): Likewise.
34173 (grub_menu_t): Likewise.
34174 (grub_normal_terminal_menu_viewer): Added.
34175 (grub_menu_execute_entry): Likewise.
34176 (grub_menu_run): Removed.
34177
34178 * DISTLIST: Added include/grub/menu.h.
34179 Added include/grub/menu_viewer.h.
34180 Added normal/menu_viewer.c.
34181
341822009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34183
34184 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34185 arglist for menutitle arguments.
34186
34187 * normal/main.c (grub_normal_menu_addentry): Likewise.
34188
34189 * normal/parser.y (menuentry): Likewise.
34190
34191 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34192
34193 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34194 (grub_script_create_cmdmenu): Likewise.
34195
34196 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34197
34198 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34199 changes.
34200
34201 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34202
34203 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34204
34205 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34206
34207 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34208
34209 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34210
34211 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34212
56192c23 342132009-01-30 Christian Franke <franke@computer.org>
34214
34215 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34216 in option help text.
34217
d72521b3 342182009-01-27 Pavel Roskin <proski@gnu.org>
34219
34220 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34221
994b5e84 342222009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34223
34224 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34225
34226 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34227
34228 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34229 unregister function.
34230
6a7eab2c 342312009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34232
34233 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34234
34235 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34236
34237 * util/grub-mkfont.c (usage): Fix typo.
34238
34239 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34240
1806b56e 342412009-01-26 Daniel Mierswa <impulze@impulze.org>
34242
3fb18f09 34243 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34244
336e1fb9 34245 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34246
1806b56e 34247 * kern/misc.c (grub_strcasecmp): New function.
34248 (grub_strcasecmp): Use grub_size_t instead of int for length.
34249 Fix return value.
34250 * include/grub/misc.h: Update function prototypes.
34251
580b2a0f 342522009-01-26 Robert Millan <rmh@aybabtu.com>
34253
34254 * configure.ac: Fix cross-compilation check.
ef257b36 34255
d31c24f1 342562009-01-22 Christian Franke <franke@computer.org>
34257
34258 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34259 (precision) digit string. Allow `.format2' without `format1' (width).
34260 Limit input chars for `%s' output to `format2' if specified. This is
34261 compatible with standard printf ().
34262
3138b44c 342632009-01-22 Christian Franke <franke@computer.org>
34264
34265 * disk/ata.c (grub_ata_wait_status): Replace by ...
34266 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34267 other status bits may be invalid while BSY is asserted.
34268 (grub_ata_check_ready): New function.
34269 (grub_ata_cmd): Removed.
34270 (grub_ata_wait_drq): New function.
34271 (grub_ata_strncpy): Remove inline.
34272 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34273 and error check now done by grub_ata_wait_drq ().
34274 (grub_ata_pio_write): Likewise.
34275 (grub_atapi_identify): Set DEV before check for !BSY. Use
34276 grub_ata_wait_drq () to wait for data.
34277 (grub_ata_device_initialize): Add status register check to
34278 detect missing SATA slave devices. Add debug messages.
34279 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34280 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34281 transfer loop by grub_ata_pio_write ().
34282 (grub_ata_identify): Set DEV before check for !BSY. Use
34283 grub_ata_wait_drq () to wait for data.
ef257b36 34284 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 34285 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34286 read/write in one loop. Fix invalid command on write. Fix incomplete
34287 command on (size % batch) == 0. Add missing error check after write of
34288 last block. Add debug messages.
34289 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34290
59a64ef6 342912009-01-19 Christian Franke <franke@computer.org>
34292
34293 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34294 (GRUB_ATAPI_IREASON_*): Likewise.
34295 (grub_ata_pio_write): Fix timeout error return.
34296 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34297 (grub_atapi_wait_drq): New function.
34298 (grub_atapi_packet): New parameter `size'.
34299 Use grub_atapi_wait_drq () and direct write instead of
34300 grub_ata_pio_write ().
34301 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34302 reads the number of bytes requested by the device for each DRQ
34303 assertion.
34304 (grub_atapi_write): Remove old implementation, return not
34305 implemented instead.
34306
1cfe20b3 343072009-01-19 Christian Franke <franke@computer.org>
34308
34309 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34310 of 512 to calculate data size.
34311 (grub_scsi_read12): Likewise.
34312 (grub_scsi_write10): Likewise.
34313 (grub_scsi_write12): Likewise.
34314 (grub_scsi_read): Adjust size according to blocksize.
34315 Add checks for invalid blocksize and unaligned transfer.
34316
bee5fe5d 343172009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34318
34319 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34320
ef257b36 34321 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 34322 width glyphs.
34323
3e643f8c 343242009-01-19 Robert Millan <rmh@aybabtu.com>
34325
34326 * config.guess: Update to latest version from config git.
34327 * config.sub: Likewise.
34328
4fa80998 343292009-01-17 Felix Zielcke <fzielcke@z-51.de>
34330
34331 * Makefile.in: Change font compilation to use new grub-mkfont instead
34332 of java version.
34333
34334 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34335 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34336 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34337 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34338 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34339 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34340 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34341 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34342 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34343
7086085b 343442009-01-16 Christian Franke <franke@computer.org>
34345
34346 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34347 (enum grub_ata_timeout_milliseconds): New enum.
34348 (grub_ata_wait_status): Add parameter milliseconds.
34349 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34350 recovery from timed-out commands.
34351 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34352 return grub_errno instead of REG_ERROR.
34353 (grub_ata_pio_write): Add parameter milliseconds.
34354 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34355 Pass milliseconds to grub_ata_wait_status () and
34356 grub_ata_pio_read ().
34357 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34358 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34359 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34360 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34361 It is not suitable for device detection, because DEV bit is ignored,
34362 the command may run too long, and not all devices set the signature
34363 properly.
34364 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34365 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34366 Fix device selection, DEV bit must be set first to address the registers
34367 of the correct device.
34368 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34369 grub_ata_pio_read/write ().
34370 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34371 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34372
4a412913 343732009-01-13 Carles Pina i Estany <carles@pina.cat>
34374
34375 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34376
7795c55e 343772009-01-13 Bean <bean123ch@gmail.com>
d913988c 34378
34379 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34380
7795c55e 343812009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 34382
34383 * Makefile.in: (enable_grub_mkfont): New variable.
34384 (freetype_cflags): Likewise.
34385 (freetype_libs): Likewise.
34386
34387 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34388 (grub_mkfont_SOURCES): New variable.
34389 (grub_mkfont_CFLAGS): Likewise.
34390 (grub_mkfont_LDFLAGS): Likewise.
34391
34392 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34393 library if `--enable-grub-mkfont' is requested.
34394 (enable_grub_mkfont): New variable.
34395 (freetype_cflags): Likewise.
34396 (freetype_libs): Likewise.
34397
34398 * util/grub-mkfont.c: New file.
34399
093af1fe 344002009-01-12 Christian Franke <franke@computer.org>
34401
34402 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34403 mode check. Fix setting of compat_use[].
34404
f36cc108 344052009-01-10 Robert Millan <rmh@aybabtu.com>
34406
34407 Update a few copyright years which we forgot to do in 2008 (only for
34408 files whose changes made in 2008 were copyright-significant)
34409
34410 * Makefile.in: Add 2008 to Copyright line.
34411 * disk/ieee1275/ofdisk.c: Likewise.
34412 * disk/efi/efidisk.c: Likewise.
34413 * kern/dl.c: Likewise.
34414 * kern/sparc64/ieee1275/init.c: Likewise.
34415 * kern/mm.c: Likewise.
34416 * kern/efi/mm.c: Likewise.
34417 * boot/i386/pc/boot.S: Likewise.
34418 * genfslist.sh: Likewise.
34419 * fs/iso9660.c: Likewise.
34420 * fs/hfs.c: Likewise.
34421 * fs/jfs.c: Likewise.
34422 * fs/minix.c: Likewise.
34423 * fs/ufs.c: Likewise.
34424 * gensymlist.sh.in: Likewise.
34425 * genkernsyms.sh.in: Likewise.
34426 * include/grub/misc.h: Likewise.
34427 * include/grub/types.h: Likewise.
34428 * include/grub/symbol.h: Likewise.
34429 * include/grub/elf.h: Likewise.
34430 * include/grub/kernel.h: Likewise.
34431 * include/grub/disk.h: Likewise.
34432 * include/grub/dl.h: Likewise.
34433 * include/grub/i386/linux.h: Likewise.
34434 * include/grub/i386/pc/biosdisk.h: Likewise.
34435 * include/grub/efi/api.h: Likewise.
34436 * include/grub/efi/pe32.h: Likewise.
34437 * include/grub/util/misc.h: Likewise.
34438 * normal/execute.c: Likewise.
34439 * normal/arg.c: Likewise.
34440 * normal/completion.c: Likewise.
34441 * normal/lexer.c: Likewise.
34442 * normal/parser.y: Likewise.
34443 * normal/misc.c: Likewise.
34444 * commands/i386/pc/vbeinfo.c: Likewise.
34445 * commands/hexdump.c: Likewise.
34446 * commands/terminal.c: Likewise.
34447 * commands/ls.c: Likewise.
34448 * commands/help.c: Likewise.
34449 * partmap/pc.c: Likewise.
34450 * loader/efi/chainloader.c: Likewise.
34451 * loader/multiboot_loader.c: Likewise.
34452 * loader/i386/pc/multiboot2.c: Likewise.
34453 * term/efi/console.c: Likewise.
34454 * term/i386/pc/serial.c: Likewise.
34455 * util/lvm.c: Likewise.
34456 * util/console.c: Likewise.
34457 * util/i386/efi/grub-mkimage.c: Likewise.
34458 * util/raid.c: Likewise.
34459
7f02114b 344602009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34461
34462 * commands/videotest.c: Removed include to grub/machine/memory.h.
34463
34464 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34465 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34466 (video_mod_SOURCES): Removed.
34467 (video_mod_CFLAGS): Likewise.
34468 (video_mod_LDFLAGS): Likewise.
34469 (gfxterm_mod_SOURCES): Likewise.
34470 (gfxterm_mod_CFLAGS): Likewise.
34471 (gfxterm_mod_LDFLAGS): Likewise.
34472 (videotest_mod_SOURCES): Likewise.
34473 (videotest_mod_CFLAGS): Likewise.
34474 (videotest_mod_LDFLAGS): Likewise.
34475 (bitmap_mod_SOURCES): Likewise.
34476 (bitmap_mod_CFLAGS): Likewise.
34477 (bitmap_mod_LDFLAGS): Likewise.
34478 (tga_mod_SOURCES): Likewise.
34479 (tga_mod_CFLAGS): Likewise.
34480 (tga_mod_LDFLAGS): Likewise.
34481 (jpeg_mod_SOURCES): Likewise.
34482 (jpeg_mod_CFLAGS): Likewise.
34483 (jpeg_mod_LDFLAGS): Likewise.
34484 (png_mod_SOURCES): Likewise.
34485 (png_mod_CFLAGS): Likewise.
34486 (png_mod_LDFLAGS): Likewise.
34487
34488 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34489 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34490 (video_mod_SOURCES): Added.
34491 (video_mod_CFLAGS): Likewise.
34492 (video_mod_LDFLAGS): Likewise.
34493 (videotest_mod_SOURCES): Likewise.
34494 (videotest_mod_CFLAGS): Likewise.
34495 (videotest_mod_LDFLAGS): Likewise.
34496 (bitmap_mod_SOURCES): Likewise.
34497 (bitmap_mod_CFLAGS): Likewise.
34498 (bitmap_mod_LDFLAGS): Likewise.
34499 (tga_mod_SOURCES): Likewise.
34500 (tga_mod_CFLAGS): Likewise.
34501 (tga_mod_LDFLAGS): Likewise.
34502 (jpeg_mod_SOURCES): Likewise.
34503 (jpeg_mod_CFLAGS): Likewise.
34504 (jpeg_mod_LDFLAGS): Likewise.
34505 (png_mod_SOURCES): Likewise.
34506 (png_mod_CFLAGS): Likewise.
34507 (png_mod_LDFLAGS): Likewise.
34508 (gfxterm_mod_SOURCES): Likewise.
34509 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 34510 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 34511
34512 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34513 grub/machine/console.h.
34514
644fff97 345152009-01-04 Jerone Young <jerone@gmail.com>
34516
34517 Make on screen instructions clearer
34518
34519 Based on patch created by Jidanni <jidanni@jidanni.org>
34520
34521 * normal/menu.c: print clearer instructions on the screen
34522
1e901a75 345232009-01-02 Colin D Bennett <colin@gibibit.com>
34524
34525 New font engine.
34c44600 34526
1e901a75 34527 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34528 build system and fixed gfxterm.c to work with different sized fonts.
34529
34530 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 34531
1e901a75 34532 * configure: Re-generated.
34c44600 34533
1e901a75 34534 * DISTLIST: Removed font/manager.c.
34535 Added font/font.c.
34536 Added font/font_cmd.c.
34c44600 34537
1e901a75 34538 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34539 compilation.
34c44600 34540
1e901a75 34541 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 34542
34543 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 34544
34545 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 34546
1e901a75 34547 * normal/menu.c: Likewise.
34c44600 34548
1e901a75 34549 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34550 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 34551
1e901a75 34552 * include/grub/font.h: Replaced with new file.
34c44600 34553
1e901a75 34554 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34555 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34556 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34557 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34558 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 34559 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 34560 fg_red, fg_green, fg_blue, fg_alpha.
34561 (grub_video_adapter): Removed blit_glyph.
34c44600 34562 (grub_video_blit_glyph): Removed.
34563
1e901a75 34564 * font/manager.c: Removed file.
34c44600 34565
34566 * font/font.c: New file.
34567
1e901a75 34568 * font/font_cmd.c: Likewise.
34c44600 34569
1e901a75 34570 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 34571
1e901a75 34572 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34573 (grub_video_vbe_map_rgba): Likewise.
34574 (grub_video_vbe_unmap_color_int): Likewise.
34575 (grub_video_vbe_blit_glyph): Removed.
34576 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 34577
1e901a75 34578 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34579 (get_pixel): Likewise.
34c44600 34580 (set_pixel): Likewise.
34581
1e901a75 34582 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 34583
1e901a75 34584 * term/gfxterm.c: Adapted to new font engine.
34c44600 34585
1e901a75 34586 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 34587
1e901a75 34588 * term/i386/pc/vga.c: Likewise.
34c44600 34589
1e901a75 34590 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 34591
1e901a75 34592 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 34593
1e901a75 34594 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34595
1e901a75 34596 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34597
1e901a75 34598 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 34599
1e901a75 34600 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 34601
1e901a75 34602 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 34603
1e901a75 34604 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 34605
1e901a75 34606 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34607
34608 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 34609
1e901a75 34610 * util/grub-mkconfig_lib.in: Changed font extension.
34611
278922e8 346122008-12-28 Felix Zielcke <fzielcke@z-51.de>
34613
34614 * util/getroot.c (grub_util_get_grub_dev): Add support for
34615 /dev/md/dNNpNN style partitionable mdraid devices.
34616
3ced05cf 346172008-12-12 Alex Smith <alex@alex-smith.me.uk>
34618
34619 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34620 at a time limit of the PXE TFTP API correctly.
34621 (grub_pxefs_close): Likewise.
34622
7fd0ee30 346232008-11-29 Robert Millan <rmh@aybabtu.com>
34624
34c44600 34625 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 34626 grub_ata_device_initialize() calls.
34627
34c44600 346282008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 34629
34630 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34631 iteration failed.
34632 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34633
89313780 346342008-11-28 Robert Millan <rmh@aybabtu.com>
34635
34636 Fix build on powerpc-ieee1275. Based on patch created by
34637 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34638 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34639 `kern/ieee1275/mmap.c'.
34640 * include/grub/powerpc/ieee1275/memory.h: New file.
34641
15257703 34642 Provide grub-install on coreboot.
34643 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34644 (grub_install_SOURCES): New variable.
34645 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34646 usable on coreboot.
34647
9fc5388a 346482008-11-25 Felix Zielcke <fzielcke@z-51.de>
34649
34650 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34651 to `grub_term_input_t'.
34652 (grub_term_get_current_output): Change return type to
34653 `grub_term_output_t'.
34654
bc3a2f31 346552008-11-22 Robert Millan <rmh@aybabtu.com>
34656
34c44600 34657 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 34658 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34659 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34660 grub_vga_text_cls().
34661
80fc88f2 34662 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 34663 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 34664
cbf36fd3 34665 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34666 to 0x200000 (avoids trouble with some OFW implementations, and matches
34667 with the one in Yaboot).
34668 Reported by Manoel Abranches
34669
73e8e268 346702008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 34671
34672 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34673 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34674
73e8e268 34675 * util/grub-mkconfig_lib.in (grub_warn): New function.
34676 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34677 warnings, to obtain consistent formatting.
34678 * util/grub.d/00_header.in: Likewise.
34679 * util/update-grub_lib.in: Likewise.
34680
e94045a1 34681 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 34682 Move comment text to `#error' stanza.
e94045a1 34683
79d29fd7 34684 Harmonize ieee1275's grub_available_iterate() with the generic
34685 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34686 build problem on i386-ieee1275):
34687 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34688 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34689 parameter `type'. Update all users of this function.
34690 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34691 `kern/ieee1275/mmap.c'.
34692 * kern/ieee1275/init.c
34693 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34694 with ...
34695 (grub_machine_mmap_iterate): ... this.
34696 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34697 return type to `grub_err_t'. Update all implementations of this
34698 function prototype.
34699 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34700 Likewise.
34701
60d6b16e 34702 Add `lsmmap' command (lists firmware-provided memory map):
34703 * commands/lsmmap.c: New file.
34704 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34705 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34706 variables.
34707 * conf/powerpc-ieee1275.rmk: Likewise.
34708 * conf/i386-coreboot.rmk: Likewise.
34709 * conf/i386-ieee1275.rmk: Likewise.
34710
ebaaf49b 347112008-11-19 Robert Millan <rmh@aybabtu.com>
34712
34713 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 34714 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34715 constraints to initrd allocation (based on code from
34716 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34717 for Linux to find it.
ebaaf49b 34718
dfab719f 347192008-11-14 Robert Millan <rmh@aybabtu.com>
34720
34721 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34722 order to cope with duplicate slashes.
34723
10fc3eb9 347242008-11-14 Robert Millan <rmh@aybabtu.com>
34725
34726 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34727 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34728 don't want to mess with lower memory, because it is used in the Linux
34729 loader.
34730
34731 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 34732 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 34733 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34734 is in our heap (probably as a result of it being corrupted during
2f2a3442 34735 decompression). Add #error instance with comment to explain why this
34736 loader isn't currently usable on PC/BIOS.
10fc3eb9 34737
e2e07847 347382008-11-14 Robert Millan <rmh@aybabtu.com>
34739
34740 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 34741 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 34742
fe8e8d69 347432008-11-12 Robert Millan <rmh@aybabtu.com>
34744
34745 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34746
34747 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34748 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34749 from here ...
34750 * include/grub/i386/pc/memory.h: ... to here.
34751
976b07d0 347522008-11-12 Robert Millan <rmh@aybabtu.com>
34753
34754 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34755 split).
34756
34757 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34758 (grub_console_cur_color, grub_console_real_putchar)
34759 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34760 (grub_console_setcolorstate, grub_console_setcolor)
34761 (grub_console_getcolor): Move from here ...
34762 * include/grub/i386/vga_common.h: ... to here (new file).
34763
34764 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34765 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34766 `<grub/i386/io.h>'.
34767 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34768 `<grub/i386/vga_common.h>'.
34769
76679cd3 347702008-11-12 Robert Millan <rmh@aybabtu.com>
34771
34772 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34773 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34774 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34775 variables.
34776 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34777 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34778
34779 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34780 grub_console_init() with call to grub_vga_text_init().
34781 (grub_machine_fini): Replace call to
34782 grub_console_fini() with call to grub_vga_text_fini() and
34783 grub_at_keyboard_fini().
34784
34785 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34786 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34787 (grub_console_setcolorstate, grub_console_setcolor)
34788 (grub_console_getcolor): New function prototypes.
34789
34790 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34791 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34792 (grub_vga_text_setcursor): Static-ize.
34793 (grub_vga_text_term): New structure.
34794 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34795
34796 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34797 (grub_console_cur_color, grub_console_standard_color)
34798 (grub_console_normal_color, grub_console_highlight_color)
34799 (map_char, grub_console_putchar, grub_console_getcharwidth)
34800 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34801 (grub_console_getcolor): Move from here ...
34802 * term/i386/vga_common.c: ... to here (same function names).
34803
95b841d3 348042008-11-12 Robert Millan <rmh@aybabtu.com>
34805
34806 Use newly-added Multiboot support in coreboot.
34807
34808 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34809 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34810
34811 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34812 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34813 (codestart): Store the MBI in `startup_multiboot_info' when we're
34814 being loaded using Multiboot.
34815
34816 * kern/i386/coreboot/init.c (grub_machine_init): Move
34817 grub_at_keyboard_init() call to beginning of function (useful for
34818 debugging). Call grub_machine_mmap_init() before attempting to use
34819 grub_machine_mmap_iterate().
34820 (grub_lower_mem, grub_upper_mem): Move from here ...
34821 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34822 here (new file).
34823
34824 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34825 function prototype.
34826
761ca975 348272008-11-12 Robert Millan <rmh@aybabtu.com>
34828
34829 Fix a regression introduced by the at_keyboard.mod split. Because
34830 some terminals are default on some platforms and non-default on
34831 others, the first terminal being registered determines which is
34832 going to be default.
34833
34834 * kern/term.c (grub_term_register_input): If this is the first
34835 terminal being registered, set it as the current one.
34836 (grub_term_register_output): Likewise.
34837
34838 * term/efi/console.c (grub_console_init): Do not call
34839 grub_term_set_current_output() or grub_term_set_current_input().
34840 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34841 * term/i386/pc/console.c (grub_console_init): Likewise.
34842 (grub_console_fini): Do not call grub_term_set_current_input()
34843 (but leave grub_term_set_current_output() to restore text mode).
34844
6c529df7 348452008-11-10 Robert Millan <rmh@aybabtu.com>
34846
34847 * util/grub.d/00_header.in: Add backward compatibility check for
34848 versions of terminal.mod that don't understand `terminal_input' or
34849 `terminal_output'.
34850
132e4113 348512008-11-09 Robert Millan <rmh@aybabtu.com>
34852
34853 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34854 `terminal_input' / `terminal_output', not `terminal'.
34855
ac293d50 348562008-11-08 Robert Millan <rmh@aybabtu.com>
34857
34858 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 34859 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 34860
0025933a 348612008-11-08 Robert Millan <rmh@aybabtu.com>
34862
34863 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 34864 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 34865 members. Update all users.
34866 * util/console.c (grub_ncurses_term): Split in ...
34867 (grub_ncurses_term_input): ... this, and ...
34868 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 34869 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 34870
37c86336 348712008-11-08 Robert Millan <rmh@aybabtu.com>
34872
34873 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34874 (PKGDATA): Add $(pkgdata_SRCDIR).
34875 (pkglib_BUILDDIR): New variable.
34876 (pkgdata_SRCDIR): New variable.
34877 (build_env.mk): New target.
34878 (include_DATA): New variable.
34879 (install-local): Install $(include_DATA) files in $(includedir).
34880
b6c15a2d 348812008-11-07 Pavel Roskin <proski@gnu.org>
34882
d99d46f1 34883 * gendistlist.sh: Use C locale for sorting to ensure consistent
34884 output on all systems.
34885
b6c15a2d 34886 * util/grub.d/00_header.in: Remove incorrect space before
34887 "serial".
34888
c32ee8c9 348892008-11-07 Robert Millan <rmh@aybabtu.com>
34890
34891 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34892 per specification.
34893 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34894 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34895 (based on find_multi_boot1_header).
34896 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34897 using find_multi_boot2_header(), and abort if neither Multiboot or
34898 Multiboot headers were found.
34899
651c29b7 349002008-11-07 Robert Millan <rmh@aybabtu.com>
34901
34902 Modularize at_keyboard.mod:
34903
34904 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34905 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34906 (at_keyboard_mod_LDFLAGS): New variables.
34907
34908 Actual terminal split:
34909
34910 * include/grub/term.h (struct grub_term): Split in ...
34911 (struct grub_term_input): ... this, and ...
34912 (struct grub_term_output): ... this. Update all users.
34913 (grub_term_set_current): Split in ...
34914 (grub_term_set_current_input): ... this, and ...
34915 (grub_term_set_current_output): ... this.
34916 (grub_term_get_current): Split in ...
34917 (grub_term_get_current_input): ... this, and ...
34918 (grub_term_get_current_output): ... this.
34919 (grub_term_register): Split in ...
34920 (grub_term_register_input): ... this, and ...
34921 (grub_term_register_output): ... this.
34922 (grub_term_unregister): Split in ...
34923 (grub_term_unregister_input): ... this, and ...
34924 (grub_term_unregister_output): ... this.
34925 (grub_term_iterate): Split in ...
34926 (grub_term_iterate_input): ... this, and ...
34927 (grub_term_iterate_output): ... this.
34928
34929 * kern/term.c (grub_term_list): Split in ...
34930 (grub_term_list_input): ... this, and ...
34931 (grub_term_list_output): ... this. Update all users.
34932 (grub_cur_term): Split in ...
34933 (grub_cur_term_input): ... this, and ...
34934 (grub_cur_term_output): ... this. Update all users.
34935 (grub_term_set_current): Split in ...
34936 (grub_term_set_current_input): ... this, and ...
34937 (grub_term_set_current_output): ... this.
34938 (grub_term_get_current): Split in ...
34939 (grub_term_get_current_input): ... this, and ...
34940 (grub_term_get_current_output): ... this.
34941 (grub_term_register): Split in ...
34942 (grub_term_register_input): ... this, and ...
34943 (grub_term_register_output): ... this.
34944 (grub_term_unregister): Split in ...
34945 (grub_term_unregister_input): ... this, and ...
34946 (grub_term_unregister_output): ... this.
34947 (grub_term_iterate): Split in ...
34948 (grub_term_iterate_input): ... this, and ...
34949 (grub_term_iterate_output): ... this.
34950
34951 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34952 a check for input and one for output (and only attempt to get keys
34953 from user when input works).
34954
34955 * util/grub-probe.c (grub_term_get_current): Split in ...
34956 (grub_term_get_current_input): ... this, and ...
34957 (grub_term_get_current_output): ... this.
34958 * util/grub-fstest.c: Likewise.
34959 * util/i386/pc/grub-setup.c: Likewise.
34960 * util/grub-editenv.c: Likewise.
34961
34962 Portability adjustments:
34963
34964 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34965 `term/i386/pc/at_keyboard.c'.
34966 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34967 grub_keyboard_controller_init() (now handled by terminal .init).
34968 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34969 grub_at_keyboard_init().
34970 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34971 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34972 at_keyboard.mod via input terminal interface).
34973 * include/grub/i386/coreboot/console.h: Convert into a stub for
34974 `<grub/i386/pc/console.h>'.
34975
34976 Migrate full terminals to new API:
34977
34978 * term/efi/console.c (grub_console_term): Split into ...
34979 (grub_console_term_input): ... this, and ...
34980 (grub_console_term_output): ... this. Update all users.
34981 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34982 (grub_ofconsole_init): Split into ...
34983 (grub_ofconsole_init_input): ... this, and ...
34984 (grub_ofconsole_init_output): ... this.
34985 (grub_ofconsole_term): Split into ...
34986 (grub_ofconsole_term_input): ... this, and ...
34987 (grub_ofconsole_term_output): ... this. Update all users.
34988 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34989 (grub_serial_term_input): ... this, and ...
34990 (grub_serial_term_output): ... this. Update all users.
34991 * term/i386/pc/console.c (grub_console_term): Split into ...
34992 (grub_console_term_input): ... this, and ...
34993 (grub_console_term_output): ... this. Update all users.
34994 (grub_console_term_input): Only enable it on PC/BIOS platform.
34995 (grub_console_init): Remove grub_keyboard_controller_init() call.
34996
34997 Migrate input terminals to new API:
34998
34999 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
35000 `i386' and `i386/pc' to enable build on x86_64 (this driver is
35001 i386-specific anyway).
35002 (grub_console_checkkey): Rename to ...
35003 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
35004 users.
35005 (grub_keyboard_controller_orig): New variable.
35006 (grub_console_getkey): Rename to ...
35007 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
35008 users.
35009 (grub_keyboard_controller_init): Static-ize. Save original
35010 controller value so that it can be restored ...
35011 (grub_keyboard_controller_fini): ... here (new function).
35012 (grub_at_keyboard_term): New structure.
35013 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
35014 functions.
35015
35016 Migrate output terminals to new API:
35017
35018 * term/i386/pc/vga.c (grub_vga_term): Change type to
35019 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35020 members. Update all users.
35021 * term/gfxterm.c (grub_video_term): Change type to
35022 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35023 members. Update all users.
35024 * include/grub/i386/pc/console.h (grub_console_checkkey)
35025 (grub_console_getkey): Do not export (no longer needed by gfxterm,
35026 etc).
35027
35028 Migrate `terminal' command and userland tools to new API:
35029
35030 * commands/terminal.c (grub_cmd_terminal): Split into ...
35031 (grub_cmd_terminal_input): ... this, and ...
35032 (grub_cmd_terminal_output): ... this.
35033 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
35034 `terminal_input' and `terminal_output'.
35035 * util/grub.d/00_header.in: Adjust `terminal' calls to new
35036 `terminal_input' / `terminal_output' API.
35037 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
35038 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
35039 provided ${GRUB_TERMINAL}, convert it).
35040
96e5d876 350412008-11-04 Robert Millan <rmh@aybabtu.com>
35042
35043 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
35044 for FreeBSD.
35045 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
35046
556f3775 350472008-11-03 Bean <bean123ch@gmail.com>
35048
35049 * kern/elf.c (grub_elf32_load): Revert to previous code.
35050 (grub_elf64_load): Likewise.
35051
35052 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
35053
926b9823 350542008-11-01 Robert Millan <rmh@aybabtu.com>
35055
35056 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
35057 (TARGET_CPPFLAGS): Likewise.
35058 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
35059
1432e958 350602008-11-01 Carles Pina i Estany <carles@pina.cat>
35061
35062 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
35063
dba3f844 350642008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 35065
35066 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
35067 addition of objects until the code is not going to be able to fail.
35068
dba3f844 350692008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 35070
35071 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
35072 (add a missing NULL check, and correct them by moving the pointer
35073 operations after the actual check).
35074
7ab28c21 350752008-10-29 Robert Millan <rmh@aybabtu.com>
35076
35077 * util/i386/pc/grub-install.in: Handle empty string as output from
35078 make_system_path_relative_to_its_root().
35079
1b7748eb 350802008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
35081
35082 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
35083 circular metadata worst case scenario. If the metadata is circular
35084 then copy the wrap in place.
35085 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
35086 project lib/format_text/layout.h
35087 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35088
c9618ab2 350892008-10-03 Felix Zielcke <fzielcke@z-51.de>
35090
7a36edca 35091 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 35092
bf981c62 350932008-10-03 Felix Zielcke <fzielcke@z-51.de>
35094
35095 * util/update-grub_lib.in: Mention filename in warning message.
35096
6d994591 350972008-09-29 Felix Zielcke <fzielcke@z-51.de>
35098
35099 * NEWS: Update for rename of update-grub to grub-mkconfig.
35100
18ade780 351012008-09-29 Felix Zielcke <fzielcke@z-51.de>
35102
35103 * util/update-grub_lib.in: Copy to ...
35104 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 35105 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 35106 * util/update-grub.in: Rename to ...
35107 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35108 option. Add `--output' option to allow users to specify the generated
35109 configuration file. Default to stdout.
35110 (update_grub_dir): Rename to ...
35111 (grub_mkconfig_dir): ... this.
35112 (grub_cfg): Default to an empty string.
35113 * conf/common.rmk (update-grub): Rename to ...
35114 (grub-mkconfig): ... this.
35115 (update-grub_lib): Copy to ...
35116 (grub-mkconfig_lib): ... this.
35117 (update-grub_SCRIPTS): Copy to ...
35118 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35119 (update-grub_DATA): Rename to ...
35120 (grub-mkconfig_DATA): ... this.
35121
556ce6ac 351222008-09-28 Robert Millan <rmh@aybabtu.com>
35123
35124 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35125 to `modified'. Add the real `created' field.
35126 (grub_iso9660_uuid): Use `modified' rather than `created' for
35127 constructing the UUID.
35128
351292008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 35130
35131 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35132 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35133
92274e85 351342008-09-28 Bean <bean123ch@gmail.com>
35135
35136 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35137 Thanks to Christian Franke for finding this bug.
35138
add6f17a 351392008-09-25 Robert Millan <rmh@aybabtu.com>
35140
35141 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35142 instances of grub_util_get_disk_name() (see previous commit).
35143
d2a367b8 351442008-09-25 Robert Millan <rmh@aybabtu.com>
35145
35146 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35147 `util/i386/get_disk_name.c'.
35148 * conf/i386-efi.rmk: Likewise.
35149 * conf/x86_64-efi.rmk: Likewise.
35150 * conf/i386-coreboot.rmk: Likewise.
35151 * conf/i386-ieee1275.rmk: Likewise.
35152 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35153 `util/ieee1275/get_disk_name.c'.
35154 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35155 * util/ieee1275/get_disk_name.c: Remove file.
35156 * util/i386/get_disk_name.c: Remove file.
35157 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35158 "hd%d" for device.map entries, rather than using
35159 grub_util_get_disk_name().
35160
81a06771 351612008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 35162
35163 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35164 warning.
35165 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35166
5a004279 351672008-09-24 Carles Pina i Estany <carles@pina.cat>
35168
35169 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35170 Changed to 0x5100.
35171 (GRUB_TERM_PPAGE): Changed to 0x4900.
35172
397093d3 351732008-09-24 Robert Millan <rmh@aybabtu.com>
35174
35175 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35176 macros (they were i386-pc specific).
35177 * include/grub/sparc64/ieee1275/console.h: Likewise.
35178 * include/grub/efi/console.h: Likewise.
35179
a91b6c7c 351802008-09-22 Bean <bean123ch@gmail.com>
35181
35182 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35183 resident and in attribute list.
35184
35185 * include/grub/ntfs.h (BMP_LEN): Removed.
35186
c40fd116 351872008-09-22 Bean <bean123ch@gmail.com>
35188
81a06771 35189 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 35190 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35191
35192 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35193 error occurs, as grub_disk_open will call grub_disk_close, which will
35194 call p->close (scsi).
35195
81a06771 351962008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 35197
35198 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35199 (AC_PREREQ): Bumped to 2.59.
35200 (AC_TRY_COMPILE): Replace obsolete macro with ...
35201 (AC_COMPILE_IFELSE): ... this.
35202 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35203 (AC_LINK_IFELSE): ... this.
35204
5dc43410 352052008-09-21 Felix Zielcke <fzielcke@z-51.de>
35206
35207 * autogen.sh: Add a call to `gendistlist.sh'.
35208
9035dce4 352092008-09-19 Christian Franke <franke@computer.org>
35210
35211 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35212 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35213 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35214 Export __enable_execute_stack() to modules.
35215 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35216 New function.
35217
7fd75377 352182008-09-09 Felix Zielcke <fzielcke@z-51.de>
35219
040030b3 35220 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35221 Sort the list.
35222
352232008-09-09 Felix Zielcke <fzielcke@z-51.de>
35224
35225 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 35226 #include <grub/util/hostdisk.h>.
35227
89d5ffcf 352282008-09-08 Robert Millan <rmh@aybabtu.com>
35229
35230 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35231 segments when their filesz is zero (grub_file_read() interprets
81a06771 35232 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 35233 Use `lowest_segment' rather than 0 for calculating the current
35234 segment load address.
35235
40da438f 352362008-09-08 Robert Millan <rmh@aybabtu.com>
35237
35238 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35239 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35240 clobbered useful information.
35241
ddbf5556 352422008-09-08 Robert Millan <rmh@aybabtu.com>
35243
35244 * include/grub/util/biosdisk.h: Move to ...
35245 * include/grub/util/hostdisk.h: ... here. Update all users.
35246 * util/biosdisk.c: Move to ...
35247 * util/hostdisk.c: ... here. Update all users.
35248
783d0f48 352492008-09-07 Robert Millan <rmh@aybabtu.com>
35250
35251 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35252 variables.
35253 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35254 and length can be stored directly in the `mbi->mmap_addr' and
35255 `mbi->mmap_length' struct fields.
35256
548e2ea5 352572008-09-07 Robert Millan <rmh@aybabtu.com>
35258
35259 * conf/i386.rmk: New file. Provides declaration for building
35260 `cpuid.mod'.
35261 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35262 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35263 variables.
35264 Include `conf/i386.mk'.
35265 * conf/i386-efi.rmk: Likewise.
35266 * conf/x86_64-efi.rmk: Likewise.
35267 * conf/i386-coreboot.rmk: Likewise.
35268 * conf/i386-ieee1275.rmk: Likewise.
35269
0ea85a37 352702008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35271
35272 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35273 Adds optimization support for BGR based modes.
35274
35275 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35276 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35277 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35278 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35279 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35280 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35281 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35282 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35283 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35284 (grub_video_i386_vbeblit_index_index): Likewise.
35285 (grub_video_i386_vbeblit_replace_directN): Added.
35286 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35287 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35288 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35289 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35290 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35291 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 35292 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 35293 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35294 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35295 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35296 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35297 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35298 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35299
35300 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35301 (grub_video_i386_vbefill_R8G8B8): Likewise.
35302 (grub_video_i386_vbefill_index): Likewise.
35303 (grub_video_i386_vbefill_direct32): Added.
35304 (grub_video_i386_vbefill_direct24): Likewise.
35305 (grub_video_i386_vbefill_direct16): Likewise.
35306 (grub_video_i386_vbefill_direct8): Likewise.
35307
81a06771 35308 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 35309 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35310 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35311 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35312 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35313 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 35314
0ea85a37 35315 * video/video.c (grub_video_get_blit_format): Updated to use new
35316 blit formats. Added handling for 16 bit color modes.
81a06771 35317
35318 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 35319 fillers.
35320 (common_blitter): Updated to use new blitters.
35321
35322 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35323 Removed.
35324 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35325 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35326 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35327 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35328 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35329 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35330 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35331 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35332 (grub_video_i386_vbeblit_index_index): Likewise.
35333 (grub_video_i386_vbeblit_replace_directN): Added.
35334 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35335 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35336 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35337 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35338 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35339 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35340 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35341 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35342 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35343 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35344 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35345 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35346 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 35347
0ea85a37 35348 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35349 (grub_video_i386_vbefill_R8G8B8): Likewise.
35350 (grub_video_i386_vbefill_index): Likewise.
35351 (grub_video_i386_vbefill_direct32): Added.
35352 (grub_video_i386_vbefill_direct24): Likewise.
35353 (grub_video_i386_vbefill_direct16): Likewise.
35354 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 35355
0ea85a37 35356 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35357 types.
81a06771 35358
0ea85a37 35359 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35360 types.
81a06771 35361
0ea85a37 35362 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35363 blitter types.
81a06771 35364
0ea85a37 35365 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35366 types.
35367
e8a83df6 353682008-09-06 Felix Zielcke <fzielcke@z-51.de>
35369
35370 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35371 RAID level 1.
35372
6bcd8ee5 353732008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 35374
6bcd8ee5 35375 * fs/iso9660.c (grub_iso9660_date): New structure.
35376 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35377 (grub_iso9660_uuid): New function.
c375ae58 35378
59261157 353792008-09-05 Bean <bean123ch@gmail.com>
35380
35381 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35382
35383 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35384 insensitive bit for names in Win32 and Win32 & DOS namespace.
35385
35386 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35387
35388 * include/grub/types.h (LONG_MAX): Likewise.
35389
58b6645a 353902008-09-04 Felix Zielcke <fzielcke@z-51.de>
35391
4ee55921 35392 * util/getroot.c: Include <config.h>.
35393 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35394 add support for /dev/md/N devices and handle LVM double dash escaping.
35395
353962008-09-04 Felix Zielcke <fzielcke@z-51.de>
35397
35398 * config.guess: Update to latest version from config git.
35399 * config.sub: Likewise.
58b6645a 35400
9124f65d 354012008-09-03 Robert Millan <rmh@aybabtu.com>
35402
35403 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35404 `disk->total_sectors'.
35405
81a06771 354062008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 35407
35408 * include/grub/normal.h: Fixed incorrect comment for
35409 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35410
81a06771 354112008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 35412
35413 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35414 values with defines.
35415
35416 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35417 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35418 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35419 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35420 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35421 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35422 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35423 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35424 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35425 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35426 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35427 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35428 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35429 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35430 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35431 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35432 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35433 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35434 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35435
93d5cbf8 354362008-08-31 Robert Millan <rmh@aybabtu.com>
35437
35438 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35439 declaration.
35440 (grub_multiboot): Fix a few warnings.
35441
21751d50 354422008-08-31 Robert Millan <rmh@aybabtu.com>
35443
35444 * loader/i386/pc/multiboot.c: Update comment not to say that
35445 boot_device support is unimplemented.
35446
e27a75c5 354472008-08-31 Robert Millan <rmh@aybabtu.com>
35448
35449 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35450 or memory map support are unimplemented.
35451
81a06771 354522008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 35453
35454 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35455
81a06771 354562008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 35457
35458 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35459 total video memory in 'vbeinfo' output; show color format details for
35460 each video mode.
35461
7c5d8d95 354622008-08-30 Pavel Roskin <proski@gnu.org>
35463
35464 * util/genmoddep.c: Remove for real this time.
35465 * DISTLIST: Remove util/genmoddep.c.
35466
4cebd25a 354672008-08-30 Robert Millan <rmh@aybabtu.com>
35468
35469 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35470 as required by Multiboot spec (it was already 4-byte aligned, but
35471 only by chance).
35472
b497a269 354732008-08-29 Pavel Roskin <proski@gnu.org>
35474
e3925185 35475 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35476 * kern/powerpc/ieee1275/startup.S: ... this.
35477 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35478 * DISTLIST: Likewise.
35479
b497a269 35480 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35481 grub/cpu/kernel.h. Add start label for consistency with other
35482 platforms. Add grub_prefix immediately after start. Add jump
35483 to the code after grub_prefix.
35484 * include/grub/powerpc/kernel.h: Provide valid values for
35485 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35486
6e5a42fe 354872008-08-29 Bean <bean123ch@gmail.com>
35488
35489 * configure.ac: Change host_os to cygwin for mingw.
35490 (asprintf): New check for function.
35491
35492 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35493 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35494
35495 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 35496 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 35497 sync, sleep and grub_util_get_disk_size for mingw.
35498
35499 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35500 to get size in mingw.
35501 (open_device): Use flag O_BINARY if it's defined.
35502 (find_root_device): Add dummy code for mingw.
35503
35504 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35505 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35506 (get_scsi_disk_name): Return 0 for mingw.
35507
35508 * util/hostfs.c: #include <grub/util/misc.h>.
35509 (grub_hostfs_open): Use "rb" flag to open file, use
35510 grub_util_get_disk_size to get disk size for mingw.
35511
35512 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35513 (asprintf): New function if HAVE_ASPRINTF is not set.
35514 (sync): New function for mingw.
35515 (sleep): Likewise.
35516 (grub_util_get_disk_size): Likewise.
35517
ab3f2673 355182008-08-28 Pavel Roskin <proski@gnu.org>
35519
35520 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35521 kern/time.c.
35522
1c282483 355232008-08-28 Robert Millan <rmh@aybabtu.com>
35524
35525 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35526
678e849c 355272008-08-28 Robert Millan <rmh@aybabtu.com>
35528
35529 Change find_grub_drive() syntax so it doesn't prevent it from
35530 detecting NULL names as errors.
35531
35532 * util/biosdisk.c (find_grub_drive): Move free slot search code
35533 from here ...
35534 (find_free_slot): ... to here.
35535 (read_device_map): Use find_free_slot() to search for free slots.
35536
965c75ca 355372008-08-27 Marco Gerards <marco@gnu.org>
35538
35539 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35540 (scsi_mod_SOURCES): New variable.
35541 (scsi_mod_CFLAGS): Likewise
35542 (scsi_mod_LDFLAGS): Likewise.
35543
35544 * disk/scsi.c: New file.
35545
35546 * include/grub/scsi.h: Likewise.
35547
35548 * include/grub/scsicmd.h: Likewise.
35549
35550 * disk/ata.c: Include <grub/scsi.h>.
35551 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35552 instead.
35553 (grub_ata_iterate): Skip ATAPI devices.
35554 (grub_ata_open): Only handle ATAPI devices.
35555 (struct grub_atapi_read): Removed.
35556 (grub_atapi_readsector): Likewise.
35557 (grub_ata_read): No longer handle ATAPI devices.
35558 (grub_ata_write): Likewise.
35559 (grub_atapi_iterate): New function.
35560 (grub_atapi_read): Likewise.
35561 (grub_atapi_write): Likewise.
35562 (grub_atapi_open): Likewise.
35563 (grub_atapi_close): Likewise.
35564 (grub_atapi_dev): New variable.
35565 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35566 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35567
35568 * include/grub/disk.h (enum grub_disk_dev_id): Add
35569 `GRUB_DISK_DEVICE_SCSI_ID'.
35570
c07ae501 355712008-08-26 Robert Millan <rmh@aybabtu.com>
35572
35573 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35574 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35575 descriptive.
35576
5ed20adc 355772008-08-23 Bean <bean123ch@gmail.com>
35578
35579 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35580 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35581 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35582 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35583 dm_nv.mod.
35584 (raid5rec_mod_SOURCES): New macro.
35585 (raid5rec_mod_CFLAGS): Likewise.
35586 (raid5rec_mod_LDFLAGS): Likewise.
35587 (raid6rec_mod_SOURCES): Likewise.
35588 (raid6rec_mod_CFLAGS): Likewise.
35589 (raid6rec_mod_LDFLAGS): Likewise.
35590 (mdraid_mod_SOURCES): Likewise.
35591 (mdraid_mod_CFLAGS): Likewise.
35592 (mdraid_mod_LDFLAGS): Likewise.
35593 (dm_nv_mod_SOURCES): Likewise.
35594 (dm_nv_mod_CFLAGS): Likewise.
35595 (dm_nv_mod_LDFLAGS): Likewise.
35596
35597 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35598 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35599 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35600
35601 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35602 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35603
35604 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35605
35606 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35607
35608 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35609
35610 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35611
35612 * disk/raid5_recover.c: New file.
35613
35614 * disk/raid6_recover.c: Likewise.
35615
35616 * disk/mdraid_linux.c: Likewise.
35617
35618 * disk/dmraid_nvidia.c: Likewise.
35619
35620 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35621 ULONG_MAX.
35622
35623 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35624 calculate the size of raid device.
35625 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35626 different layout of raid5.
35627 (grub_raid_scan_device): Remove code specific to mdraid.
35628 (grub_raid_list): New variable.
35629 (free_array): New function.
35630 (grub_raid_register): Likewise.
35631 (grub_raid_unregister): Likewise.
35632 (grub_raid_rescan): Likewise.
35633 (GRUB_MOD_INIT): Don't iterate device here.
35634 (GRUB_MOD_FINI): Use free_array to release resource.
35635
35636 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35637 (grub_raid5_recover_func_t): New function variable type.
35638 (grub_raid6_recover_func_t): Likewise.
35639 (grub_raid5_recover_func): New variable.
35640 (grub_raid6_recover_func): Likewise.
35641 (grub_raid_register): New function.
35642 (grub_raid_unregister): Likewise.
35643 (grub_raid_rescan): Likewise.
35644 (grub_raid_block_xor): Likewise.
35645
35646 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35647 (CMD_CRC): New macro.
35648 (part): Removed.
35649 (read_file): Handle device as well as file.
35650 (cmd_crc): New function.
35651 (fstest): Handle multiple disks.
35652 (options): Remove part, raw and long, add root and diskcount.
35653 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 35654 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 35655 add handling for the new options, support multiple disks.
35656
35657 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35658
29c18915 356592008-08-23 Bean <bean123ch@gmail.com>
35660
35661 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35662
35663 * genfslist.sh: Ignore kernel.mod.
35664
35665 * genpartmaplist.sh: Likewise.
35666
8415f261 356672008-08-23 Robert Millan <rmh@aybabtu.com>
35668
35669 * util/getroot.c (find_root_device): Skip anything that starts with
35670 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35671
d5a7dc5b 356722008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 35673
d5a7dc5b 35674 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35675 * util/grub.d/00_header.in: Allow the administrator to change default
35676 gfxmode via ${GRUB_GFXMODE}.
35677
380cfbb4 356782008-08-21 Felix Zielcke <fzielcke@z-51.de>
35679
35680 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35681
c9baafe7 356822008-08-21 Robert Millan <rmh@aybabtu.com>
35683
35684 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35685 loader.
35686 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35687 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35688
e290bef2 356892008-08-20 Carles Pina i Estany <carles@pina.cat>
35690
35691 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35692 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35693
f9dbfc96 356942008-08-19 Robert Millan <rmh@aybabtu.com>
35695
35696 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35697 (struct grub_virtual_screen): Remove `cursor_color'.
35698 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35699 initialization.
35700 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35701
dd6bd6ab 357022008-08-18 Robert Millan <rmh@aybabtu.com>
35703
35704 Unify (identical) linux_normal.c files.
35705 * loader/i386/efi/linux_normal.c: Move from here ...
35706 * loader/linux_normal.c: ... to here. Update all users.
35707 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35708 * loader/i386/ieee1275/linux_normal.c: Likewise.
35709
7f42f83e 357102008-08-18 Robert Millan <rmh@aybabtu.com>
35711
35712 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35713 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35714 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35715 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35716 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35717 New macros.
35718 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35719 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35720 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35721 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35722 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35723 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35724 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35725 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35726 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35727 portably using grub_getxy().
35728 Replace `-EFI' with `-bzImage' in boot message.
35729
38487ddb 357302008-08-17 Robert Millan <rmh@aybabtu.com>
35731
35732 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35733
deceb3ec 357342008-08-17 Robert Millan <rmh@aybabtu.com>
35735
35736 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35737
35738 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35739 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35740 (grub_machine_mmap_iterate): New function declaration.
35741 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35742 structure.
35743 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35744 macros.
35745
35746 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35747 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35748 Move e820 parsing from here ...
35749 * kern/i386/pc/mmap.c: New file.
35750 (grub_machine_mmap_iterate): ... to here.
35751
35752 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35753 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35754 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35755 (grub_available_iterate): Redeclare to return `void', and redeclare
35756 its hook to use grub_uint64_t as addr and size parameters, and rename
35757 to ...
35758 (grub_machine_mmap_iterate): ... this. Update all users.
35759
35760 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35761 to make it more readable. Rename to ...
35762 (grub_machine_mmap_iterate): ... this.
35763
35764 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35765 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35766 (grub_multiboot): Allocate an extra region after the payload, and fill
35767 it with a Multiboot memory map. Adjust a.out loader to calculate size
35768 with the extra space.
35769 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35770 with the extra space.
35771
f8aa0f43 357722008-08-17 Carles Pina i Estany <carles@pina.cat>
35773
9807deb9 35774 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 35775
605f5bb6 357762008-08-17 Felix Zielcke <fzielcke@z-51.de>
35777
35778 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35779 mdate-sh to the list `find' searches for.
35780 * DISTLIST: Regenerated.
35781
210db6c6 357822008-08-16 Felix Zielcke <fzielcke@z-51.de>
35783
35784 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35785 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 35786 genmoddep.awk, gensymlist.sh.in.
35787 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 35788 * DISTLIST: Regenerated.
48cdbfd4 35789 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 35790
1082b929 357912008-08-16 Robert Millan <rmh@aybabtu.com>
35792
35793 * disk/raid.c (grub_raid_init): Handle/report errors set by
35794 grub_device_iterate().
35795 * disk/lvm.c (grub_lvm_init): Likewise.
35796
42ce5170 357972008-08-15 Bean <bean123ch@gmail.com>
35798
35799 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35800 and datehook.mod.
35801 (datetime_mod_SOURCES): New macro.
35802 (datetime_mod_CFLAGS): Likewise.
35803 (datetime_mod_LDFLAGS): Likewise.
35804 (date_mod_SOURCES): Likewise.
35805 (date_mod_CFLAGS): Likewise.
35806 (date_mod_LDFLAGS): Likewise.
35807 (datehook_mod_SOURCES): Likewise.
35808 (datehook_mod_CFLAGS): Likewise.
35809 (datehook_mod_LDFLAGS): Likewise.
35810
35811 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35812 and datehook.mod.
35813 (datetime_mod_SOURCES): New macro.
35814 (datetime_mod_CFLAGS): Likewise.
35815 (datetime_mod_LDFLAGS): Likewise.
35816 (date_mod_SOURCES): Likewise.
35817 (date_mod_CFLAGS): Likewise.
35818 (date_mod_LDFLAGS): Likewise.
35819 (datehook_mod_SOURCES): Likewise.
35820 (datehook_mod_CFLAGS): Likewise.
35821 (datehook_mod_LDFLAGS): Likewise.
35822
35823 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35824 and datehook.mod.
35825 (datetime_mod_SOURCES): New macro.
35826 (datetime_mod_CFLAGS): Likewise.
35827 (datetime_mod_LDFLAGS): Likewise.
35828 (date_mod_SOURCES): Likewise.
35829 (date_mod_CFLAGS): Likewise.
35830 (date_mod_LDFLAGS): Likewise.
35831 (datehook_mod_SOURCES): Likewise.
35832 (datehook_mod_CFLAGS): Likewise.
35833 (datehook_mod_LDFLAGS): Likewise.
35834
35835 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35836 and datehook.mod.
35837 (datetime_mod_SOURCES): New macro.
35838 (datetime_mod_CFLAGS): Likewise.
35839 (datetime_mod_LDFLAGS): Likewise.
35840 (date_mod_SOURCES): Likewise.
35841 (date_mod_CFLAGS): Likewise.
35842 (date_mod_LDFLAGS): Likewise.
35843 (datehook_mod_SOURCES): Likewise.
35844 (datehook_mod_CFLAGS): Likewise.
35845 (datehook_mod_LDFLAGS): Likewise.
35846
35847 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35848 and datehook.mod.
35849 (datetime_mod_SOURCES): New macro.
35850 (datetime_mod_CFLAGS): Likewise.
35851 (datetime_mod_LDFLAGS): Likewise.
35852 (date_mod_SOURCES): Likewise.
35853 (date_mod_CFLAGS): Likewise.
35854 (date_mod_LDFLAGS): Likewise.
35855 (datehook_mod_SOURCES): Likewise.
35856 (datehook_mod_CFLAGS): Likewise.
35857 (datehook_mod_LDFLAGS): Likewise.
35858
35859 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35860
35861 * commands/date.c: New file.
35862
35863 * hook/datehook.c: Likewise.
35864
35865 * include/grub/lib/datetime.h: Likewise.
35866
35867 * include/grub/i386/cmos.h: Likewise.
35868
35869 * lib/datetime.c: Likewise.
35870
35871 * lib/i386/datetime.c: Likewise.
35872
35873 * lib/efi/datetime.c: Likewise.
35874
0e9242da 358752008-08-14 Robert Millan <rmh@aybabtu.com>
35876
35877 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35878 (grub_mkelfimage_SOURCES): New variable.
35879 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35880
35881 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35882 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35883 * conf/powerpc-ieee1275.rmk: Likewise.
35884 * conf/i386-ieee1275.rmk: Likewise.
35885
35886 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35887 * kern/i386/coreboot/init.c: Likewise.
35888
35889 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35890 with `<grub/cpu/kernel.h>'.
35891 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35892 to ...
35893 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35894 * kern/i386/coreboot/startup.S: Likewise.
35895
35896 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35897 (GRUB_MOD_GAP): Remove.
35898 * include/grub/powerpc/kernel.h: New file.
35899 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35900 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35901 * include/grub/i386/kernel.h: New file.
35902 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35903 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35904 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35905
35906 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35907 `grub-mkelfimage'.
35908 Use --directory when invoking grub_mkimage.
35909
35910 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35911 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35912 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35913 and GRUB_KERNEL_CPU_PREFIX.
35914
b86408f8 359152008-08-14 Felix Zielcke <fzielcke@z-51.de>
35916
d5e619ca 35917 * include/grub/err.h (grub_err_printf): New function prototype.
35918 * util/misc.c (grub_err_printf): New function.
35919 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35920 grub_printf.
35921 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 35922
7161f0e0 359232008-08-13 Robert Millan <rmh@aybabtu.com>
35924
35925 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35926
a1967522 359272008-08-13 Robert Millan <rmh@aybabtu.com>
35928
35929 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35930 boot entry.
35931
371458b5 359322008-08-12 Robert Millan <rmh@aybabtu.com>
35933
35934 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35935 of the relocation code from here ...
35936 (grub_multiboot): ... to here.
35937 (forward_relocator, backward_relocator): Move from here ...
35938 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35939 (grub_multiboot_backward_relocator): ... to here.
35940 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35941 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35942 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35943 (grub_multiboot_forward_relocator_end)
35944 (grub_multiboot_backward_relocator)
35945 (grub_multiboot_backward_relocator_end): New variables.
35946
05f9452b 359472008-08-12 Bean <bean123ch@gmail.com>
35948
35949 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35950
20024ab0 359512008-08-11 Robert Millan <rmh@aybabtu.com>
35952
35953 * kern/i386/linuxbios/startup.S: Move from here ...
35954 * kern/i386/coreboot/startup.S: ... to here.
35955
35956 * kern/i386/linuxbios/init.c: Move from here ...
35957 * kern/i386/coreboot/init.c: ... to here.
35958
35959 * kern/i386/linuxbios/table.c: Move from here ...
35960 * kern/i386/coreboot/mmap.c: ... to here.
35961
35962 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35963
e352e9cd 359642008-08-11 Robert Millan <rmh@aybabtu.com>
35965
35966 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35967 errors. Leave it to the upper layer to handle them.
35968
2d05bc6a 359692008-08-09 Christian Franke <franke@computer.org>
35970
35971 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35972 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35973 Install `grub.d/10_windows' only on Cygwin.
35974 * configure.ac: Add subst of `target_os'.
35975 Check `target_os' also before setting TARGET_OBJ2ELF.
35976 Add `--enable-grub-pe2elf'.
35977
042bd419 359782008-08-08 Robert Millan <rmh@aybabtu.com>
35979
35980 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35981 (grub_last_time): Change type to grub_uint64_t.
35982 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35983 (grub_disk_close): Likewise.
35984
35985 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35986 (run_menu): Migrate code from to using grub_get_time_ms().
35987
35988 * util/misc.c (grub_get_time_ms): New function.
35989
7f280db5 359902008-08-08 Marco Gerards <marco@gnu.org>
35991
35992 * disk/ata.c (grub_ata_regget): Change return type to
35993 `grub_uint8_t'.
35994 (grub_ata_regget2): Likewise.
35995 (grub_ata_wait_status): New function.
35996 (grub_ata_wait_busy): Removed function, updated all users to use
35997 `grub_ata_wait_status'.
35998 (grub_ata_wait_drq): Likewise.
35999 (grub_ata_cmd): New function.
36000 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
36001 error handling.
36002 (grub_ata_pio_write): Add error handling.
36003 (grub_atapi_identify): Likewise.
36004 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
36005 handling.
36006 (grub_ata_identify): Use `grub_ata_cmd' and improve error
36007 handling. Actually use the detected registers. Reorder the
36008 detection logic such that it is easier to read.
36009 (grub_ata_pciinit): Do not assign the same ID to each controller.
36010 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
36011 handling.
36012 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
36013
36014 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
36015
1fbc5e66 360162008-08-08 Marco Gerards <marco@gnu.org>
36017
36018 * NEWS: Update.
36019
819ce6c0 360202008-08-07 Bean <bean123ch@gmail.com>
36021
36022 * include/grub/x86_64/pci.h: New file.
36023
5c41d44d 360242008-08-07 Christian Franke <franke@computer.org>
36025
36026 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
36027 (TIMER2_GATE): Likewise.
36028 (grub_pit_wait): Add enable/disable of the timer2 gate
36029 bit of port 0x61. This fixes a possible infinite loop.
36030
5ebc275d 360312008-08-07 Bean <bean123ch@gmail.com>
36032
36033 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
36034 kern/i386/tsc.c and kern/i386/pit.c.
36035
36036 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
36037 x86_64 platform.
36038
36039 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
36040 <grub/i386/tsc.h>.
36041
36042 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
36043
e383b3d0 360442008-08-07 Bean <bean123ch@gmail.com>
36045
36046 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
36047
36048 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
36049
36050 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
36051 multiple inclusion. Add #include <grub/types.h>.
36052
1cbb58ac 360532008-08-06 Christian Franke <franke@computer.org>
36054
36055 * conf/common.rmk: Build and install `10_windows'.
36056 * util/grub.d/10_windows.in: New script.
36057
337f5a1e 360582008-08-06 Pavel Roskin <proski@gnu.org>
36059
36060 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
36061
057bc4ac 360622008-08-06 Robert Millan <rmh@aybabtu.com>
36063
36064 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
36065 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
36066
2b99f123 360672008-08-06 Bean <bean123ch@gmail.com>
36068
36069 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
36070 (grub_pxefs_fs_int): Remove dummy definition.
36071 (grub_pxefs_open): Use data->block_size to store the current block
36072 size setting.
36073 (grub_pxefs_read): Use block size stored in data->block_size. As the
36074 value of grub_pxe_blksize can be changed after the file is opened.
36075
9f0234cb 360762008-08-06 Bean <bean123ch@gmail.com>
36077
36078 * fs/i386/pc/pxe.c (curr_file): new variable.
36079 (grub_pxefs_open): Simply the handling of pxe file system. Don't
36080 require the dummy internal file system anymore.
36081 (grub_pxefs_read): Removed.
36082 (grub_pxefs_close): Likewise.
36083 (grub_pxefs_fs_int): Likewise.
36084 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
36085 connection when we switch file.
36086 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
36087
a55d42e0 360882008-08-06 Robert Millan <rmh@aybabtu.com>
36089
36090 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36091 `halt.mod'.
36092 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36093 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36094
36095 * kern/i386/halt.c: New file.
36096 * kern/i386/reboot.c: Likewise.
36097 * include/grub/i386/reboot.h: Likewise.
36098 * include/grub/i386/halt.h: Likewise.
36099
36100 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36101 Include `<grub/cpu/halt.h>'.
36102 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36103 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36104
36105 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36106 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36107 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36108 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36109 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36110 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36111 from here ...
36112 * include/grub/i386/at_keyboard.h: ... to here.
36113
24371d26 361142008-08-05 Robert Millan <rmh@aybabtu.com>
36115
36116 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36117 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36118 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36119 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36120 `kern/generic/millisleep.c'.
36121
36122 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36123 instead of grub_get_rtc().
36124 (grub_tsc_init): Initialize `tsc_boot_time'.
36125
36126 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36127 (grub_machine_init): Use grub_tsc_init() rather than
36128 installing an RTC-based handler via grub_install_get_time_ms().
36129
36130 * kern/i386/pit.c: New file.
36131 * include/grub/i386/pit.h: Likewise.
36132
9e7007b3 361332008-08-05 Bean <bean123ch@gmail.com>
36134
36135 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36136
36137 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36138 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36139 (pxe_mod_SOURCES): New macro.
36140 (pxe_mod_CFLAGS): Likewise.
36141 (pxe_mod_LDFLAGS): Likewise.
36142 (pxecmd_mod_SOURCES): Likewise.
36143 (pxecmd_mod_CFLAGS): Likewise.
36144 (pxecmd_mod_LDFLAGS): Likewise.
36145
36146 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36147 (grub_pxe_call): Likewise.
36148
36149 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36150
36151 * commands/i386/pc/pxecmd.c: New file.
36152
9f0234cb 36153 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 36154
36155 * include/grub/i386/pc/pxe.h: Likewise.
36156
6977d49f 361572008-08-05 Bean <bean123ch@gmail.com>
36158
36159 * util/console.c (grub_console_cur_color): New variable.
36160 (grub_console_standard_color): Likewise.
36161 (grub_console_normal_color): Likewise.
36162 (grub_console_highlight_color): Likewise.
36163 (color_map): Likewise.
36164 (use_color): Likewise.
36165 (NUM_COLORS): New macro.
36166 (grub_ncurses_setcolorstate): Handle color properly.
36167 (grub_ncurses_setcolor): Don't change color here, just remember the
36168 settings, color will be set in grub_ncurses_setcolorstate.
36169 (grub_ncurses_getcolor): New function.
36170 (grub_ncurses_init): Initialize color pairs.
36171 (grub_ncurses_term): New member grub_ncurses_getcolor.
36172
9c2ff3ee 361732008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 36174
9c2ff3ee 36175 High resolution timer support. Implemented for x86 CPUs using TSC.
36176 Extracted generic grub_millisleep() so it's linked in only as needed.
36177 This requires a Pentium compatible CPU; if the RDTSC instruction is
36178 not supported, then it falls back on the generic grub_get_time_ms()
36179 implementation that uses the machine's RTC.
36180
36181 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36182 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36183 `kern/generic/millisleep.c'.
36184
36185 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36186 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36187
36188 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36189 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36190
36191 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36192
36193 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36194 `kern/generic/millisleep.c'.
36195
36196 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36197
36198 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36199
36200 * kern/generic/rtc_get_time_ms.c: New file.
36201
36202 * kern/generic/millisleep.c: New file.
337f5a1e 36203
9c2ff3ee 36204 * kern/misc.c: Don't include
36205 <kern/time.h> anymore.
36206 (grub_millisleep_generic): Removed.
36207
36208 * commands/sleep.c (grub_interruptible_millisleep): Uses
36209 grub_get_time_ms() instead of grub_get_rtc().
36210
36211 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36212 function.
36213 (grub_cpu_is_cpuid_supported): New inline function.
36214 (grub_cpu_is_tsc_supported): New inline function.
36215 (grub_tsc_init): New function prototype.
36216 (grub_tsc_get_time_ms): New function prototype.
36217
36218 * kern/i386/tsc.c (grub_get_time_ms): New file.
36219
36220 * include/grub/time.h: Include <grub/types.h.
36221 (grub_millisleep_generic): Removed.
36222 (grub_get_time_ms): New prototype.
36223 (grub_install_get_time_ms): New prototype.
36224 (grub_rtc_get_time_ms): New prototype.
36225
36226 * kern/time.c (grub_get_time_ms): New function.
36227 (grub_install_get_time_ms): New function.
36228
36229 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36230 <grub/time.h> anymore.
36231 (grub_millisleep): Removed.
36232 (grub_machine_init): Call grub_tsc_init.
36233
36234 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36235 get_time_ms() implementation.
36236
36237 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36238 (ieee1275_get_time_ms): New function.
36239 (grub_machine_init): Install get_time_ms() implementation.
36240
36241 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36242 (grub_machine_init): Call grub_tsc_init().
36243 (grub_millisleep): Removed.
bf06a93f 36244
9c2ff3ee 36245 * kern/ieee1275/init.c (grub_millisleep): Removed.
36246 (grub_machine_init): Install ieee1275_get_time_ms()
36247 implementation.
36248 (ieee1275_get_time_ms): New function.
36249 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36250 real work.
36251
9ec92aaf 362522008-08-05 Marco Gerards <marco@gnu.org>
36253
36254 * disk/ata.c: Include <grub/pci.h>.
36255 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36256 (grub_ata_initialize): Rewritten.
36257 (grub_ata_device_initialize): New function.
36258
8d23f507 362592008-08-04 Pavel Roskin <proski@gnu.org>
36260
36261 * kern/main.c: Include grub/mm.h.
36262
5e15ee3d 362632008-08-04 Robert Millan <rmh@aybabtu.com>
36264
36265 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36266 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36267 corruption problem).
36268
a9053f8f 362692008-08-04 Robert Millan <rmh@aybabtu.com>
36270
36271 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36272 warnings introduced in my last commit.
36273
dd19c7d7 362742008-08-03 Robert Millan <rmh@aybabtu.com>
36275
36276 Make PCI available on all i386 architectures.
36277
36278 * include/grub/i386/pc/pci.h: Move from here ...
36279 * include/grub/i386/pci.h: ... to here.
36280
36281 * include/grub/i386/pc/pci.h: Remove.
36282 * include/grub/i386/efi/pci.h: Remove.
36283 * include/grub/x86_64/efi/pci.h: Remove.
36284
36285 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36286 `<grub/cpu/pci.h>'.
36287
36288 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36289 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36290 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36291
36292 * conf/i386-ieee1275.rmk: Likewise.
36293
e14a6184 362942008-08-03 Robert Millan <rmh@aybabtu.com>
36295
36296 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36297 (grub_console_setcursor): Make it possible to set cursor off.
36298
52768e37 362992008-08-03 Robert Millan <rmh@aybabtu.com>
36300
36301 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36302 of modules instead of assuming which platform provides what.
36303 * util/update-grub.in: Likewise.
36304
2d52f57f 363052008-08-03 Robert Millan <rmh@aybabtu.com>
36306
36307 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36308 instead of `grub_install_dos_part' to determine whether a drive needs
36309 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 36310 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 36311
2a5cd121 363122008-08-02 Robert Millan <rmh@aybabtu.com>
36313
36314 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36315
93808428 363162008-08-02 Robert Millan <rmh@aybabtu.com>
36317
36318 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36319 of informational grub_dprintf() calls.
36320
3bd0a12a 363212008-08-02 Robert Millan <rmh@aybabtu.com>
36322
36323 * disk/memdisk.c (memdisk_size): Don't initialize.
36324 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36325
36326 * include/grub/i386/pc/kernel.h
36327 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36328 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36329 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36330 (grub_arch_memdisk_size): Remove.
36331
36332 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36333 field (was only used to transfer a constant). Add `type' field to
36334 support multiple module types.
36335 (grub_module_iterate): New function.
36336
36337 * kern/device.c (grub_device_open): Do not hide error messages
36338 when grub_disk_open() fails. Use grub_print_error() instead.
36339
36340 * kern/i386/pc/init.c (grub_arch_modules_addr)
36341 (grub_arch_memdisk_size): Remove functions.
36342 (grub_arch_modules_addr): Return the module address in high memory
36343 (now that it isn't copied anymore).
36344
36345 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36346 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36347 decompression routine (grub_total_module_size already includes that
36348 now). Don't copy modules back to low memory.
36349
36350 * kern/main.c: Include `<grub/mm.h>'.
36351 (grub_load_modules): Split out (and use) ...
36352 (grub_module_iterate): ... this function, which iterates through
36353 module objects and runs a hook.
36354 Comment out grub_mm_init_region() call, as it would cause non-ELF
36355 modules to be overwritten.
36356
36357 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36358 the memdisk image in its own region, make it part of the module list.
36359 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36360 (main): Parse --memdisk|-m option, and pass user-provided path as
36361 parameter to generate_image().
36362 (add_segments): Pass `memdisk_path' down to load_modules().
36363 (load_modules): Embed memdisk image in module section when requested.
36364 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36365 `header.type' instead of `header.offset'.
36366
36367 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36368 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36369 (memdisk_mod_LDFLAGS): New variables.
36370 * conf/i386-coreboot.rmk: Likewise.
36371 * conf/i386-ieee1275.rmk: Likewise.
36372
a927cc73 363732008-08-02 Robert Millan <rmh@aybabtu.com>
36374
36375 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36376 (backward_relocator): New variables. Used to allocate and relocate
36377 the payload, respectively.
36378 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 36379 address, install the appropriate relocator code in each bound of
a927cc73 36380 the payload, and set the entry point such that
36381 grub_multiboot_real_boot() will jump to one of them.
36382
36383 * kern/i386/loader.S (grub_multiboot_payload_size)
36384 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36385 (grub_multiboot_payload_entry_offset): New variables.
36386 (grub_multiboot_real_boot): Set cpu context to what the relocator
36387 expects, and jump to the relocator instead of the payload.
36388
36389 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36390 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36391 (grub_multiboot_payload_entry_offset): Export.
36392
b15d8a0c 363932008-08-01 Bean <bean123ch@gmail.com>
36394
36395 * normal/menu_entry.c (editor_getline): Don't return the original
36396 string as result, as it will be released by lexer once it has done
36397 using it.
36398
cdfb3d22 363992008-08-01 Robert Millan <rmh@aybabtu.com>
36400
36401 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36402 within menuentries, not before them.
36403 util/grub.d/10_hurd.in: Likewise.
36404
9175e93d 364052008-08-01 Bean <bean123ch@gmail.com>
36406
36407 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36408 (bufio_mod_SOURCES): New macro.
36409 (bufio_mod_CFLAGS): Likewise.
36410 (bufio_mod_LDFLAGS): Likewise.
36411
36412 * include/grub/bufio.h: New file.
36413
36414 * io/bufio.c: Likewise.
36415
36416 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36417 (grub_video_reader_png): Use grub_buffile_open to open file.
36418
36419 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36420 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36421
36422 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36423 (grub_video_reader_tga): Use grub_buffile_open to open file.
36424
36425 * font/manager.c: Include <grub/bufio.h>.
36426 (add_font): Use grub_buffile_open to open file.
36427
3d8383e7 364282008-07-31 Robert Millan <rmh@aybabtu.com>
36429
36430 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36431 ELF segments, use a macro for arbitrarily accessing any of them instead
36432 of preparing a pointer that allows access to one at a time.
36433 (grub_multiboot_load_elf64): Likewise.
36434
16e641b6 364352008-07-31 Bean <bean123ch@gmail.com>
36436
36437 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36438 GRUB_KERNEL_MACHINE_DATA_END.
36439
59198b72 364402008-07-30 Robert Millan <rmh@aybabtu.com>
36441
36442 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36443 Increase from 0x50 to 0x60.
36444 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36445 use UUIDs to identify the root drive for them. If that's not
36446 possible, abort.
36447 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36448 check, for cross-disk installs.
36449
ae88bca3 364502008-07-30 Robert Millan <rmh@aybabtu.com>
36451
36452 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36453 is non-empty, use it to set the `prefix' environment variable instead
36454 of the usual approach.
36455 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36456 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36457 environment variable instead of dummy make_install_device().
36458
36459 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36460 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 36461 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 36462
36463 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36464 New variable reference.
36465 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36466 New macro. Defines offset of `grub_prefix' within startup.S (relative
36467 to `start').
36468 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36469 section within startup.S (relative to `start').
36470 * include/grub/i386/coreboot/kernel.h: Likewise.
36471
36472 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36473 Overwrite grub_prefix with its contents, at the beginning of the
36474 first segment.
36475 (main): Understand -p|--prefix.
36476
14f41dd1 364772008-07-30 Robert Millan <rmh@aybabtu.com>
36478
36479 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36480
4ca049a3 364812008-07-30 Robert Millan <rmh@aybabtu.com>
36482
36483 * term/i386/pc/vga_text.c (grub_console_cls): Use
36484 grub_console_gotoxy() to go back to beginning of the screen.
36485 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36486
2921d337 364872008-07-29 Christian Franke <franke@computer.org>
36488
36489 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36490 Add conversion of emulated mount points on Cygwin.
36491
b609876d 364922008-07-29 Christian Franke <franke@computer.org>
36493
36494 * util/update-grub.in: Add a check for admin
36495 group on Cygwin.
36496 Remove old `grub.cfg.new' before creation.
36497 Add `-f' to `mv' to handle the different filesystem
36498 semantics of Windows.
36499
e93e4679 365002008-07-29 Bean <bean123ch@gmail.com>
36501
36502 * normal/main.c (get_line): Fix buffer overflow bug.
36503
41694fd0 365042008-07-28 Robert Millan <rmh@aybabtu.com>
36505
36506 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36507 (struct grub_apple_header): New struct. Describes the layout of
36508 the partmap header.
36509 (apple_partition_map_iterate): Check the header magic as well as the
36510 partition magic (which was already being checked).
36511
cfd0b4e6 365122008-07-28 Pavel Roskin <proski@gnu.org>
36513
36514 * genmk.rb: Add a warning to the beginning of the output that
36515 it's a generated file and should not be edited.
36516
93cce016 365172008-07-28 Robert Millan <rmh@aybabtu.com>
36518
36519 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36520 with the same number are found, just use issue a warning with
36521 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 36522
cd1df915 365232008-07-27 Robert Millan <rmh@aybabtu.com>
36524
36525 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36526 information.
36527
b70a8427 365282008-07-27 Bean <bean123ch@gmail.com>
36529
36530 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36531 (grub_fat_find_dir): Ignore case when comparing filename.
36532
8f5e379f 365332008-07-27 Bean <bean123ch@gmail.com>
36534
36535 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36536 smallino, as it's more descriptive, and i8count can be confused with
36537 the other field count.
36538 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36539 inode type.
36540
a85cd5a0 365412008-07-27 Bean <bean123ch@gmail.com>
36542
36543 * commands/crc.c: New file.
36544
36545 * lib/crc.c: Likewise.
36546
36547 * include/grub/lib/crc.h: Likewise.
36548
36549 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36550
36551 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36552 (hexdump): Move this function to ...
36553
36554 * lib/hexdump.c: ... here.
36555
36556 * include/grub/hexdump.h: Renamed to ...
36557
36558 * include/grub/lib/hexdump.h: ... this.
36559
36560 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36561
36562 * util/grub-editenv.c: Likewise.
36563
36564 * include/envblk.h: Renamed to ...
36565
36566 * include/lib/envblk.h: ... this.
36567
36568 * util/envblk.c: Renamed to ...
36569
36570 * lib/envblk.c: ... this.
36571
36572 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36573 lib/hexdump.c.
36574 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36575 (pkglib_MODULES): Add crc.mod.
36576 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36577 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36578 (crc_mod_SOURCES): New macro.
36579 (crc_mod_CFLAGS): Likewise.
36580 (crc_mod_LDFLAGS): Likewise.
36581
36582 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36583
36584 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36585
36586 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36587
36588 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36589
36590 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36591
c298def0 365922008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 36593
36594 * commands/help.c: Include <grub/term.h>.
36595 (TERM_WIDTH): Removed. Updated all users.
36596
cc349fb3 365972008-07-27 Pavel Roskin <proski@gnu.org>
36598
36599 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36600 spurious warnings about a comment within a comment.
36601
9051607e 366022008-07-25 Robert Millan <rmh@aybabtu.com>
36603
36604 * util/getroot.c (find_root_device): Skip devices that match
36605 /dev/dm-[0-9]. This lets the real device be found for any type of
36606 abstraction (LVM, EVMS, RAID..).
36607 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36608 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36609 device is found first, find_root_device() will now skip it.
36610
01453bfc 366112008-07-24 Pavel Roskin <proski@gnu.org>
36612
36613 * include/grub/types.h: Use __builtin_bswap32() and
36614 __builtin_bswap64() with gcc 4.3 and newer.
36615
6af9849f 366162008-07-24 Christian Franke <franke@computer.org>
36617
3a0fa256 36618 * util/i386/pc/grub-install.in: If `--debug' is specified,
36619 pass `--verbose' to grub-setup.
36620 Abort script if make_system_path_relative_to_its_root() fails.
36621
7810e747 366222008-07-24 Bean <bean123ch@gmail.com>
36623
36624 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36625 variable `target_platform' should be `platform'.
36626
42290e17 366272008-07-24 Bean <bean123ch@gmail.com>
36628
51cc5193 36629 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 36630 (grub_png_init_fixed_block): New function.
36631 (grub_png_decode_image_data): Handle fixed huffman code compression.
36632
2a8a80e4 366332008-07-24 Bean <bean123ch@gmail.com>
36634
36635 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36636 (grub_pe2elf_SOURCES): New macro.
36637 (CLEANFILES): Add grub-pe2elf.
36638
36639 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36640 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36641 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36642 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36643 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36644 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36645 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36646 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36647 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36648 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36649 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36650 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36651 (GRUB_PE32_DT_FUNCTION): Likewise.
36652 (GRUB_PE32_REL_I386_DIR32): Likewise.
36653 (GRUB_PE32_REL_I386_REL32): Likewise.
36654 (grub_pe32_symbol): New structure.
36655 (grub_pe32_reloc): Likewise.
36656
36657 * util/grub-pe2elf.c: New file.
36658
36659 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36660 start symbol in non pc platform.
36661
36662 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36663
36664 The following patches are from Christian Franke.
36665
36666 * include/grub/dl.h: Remove .previous, gas supports this only
36667 for ELF format.
36668
36669 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36670 Remove .type, gas supports this only for ELF format.
36671
36672 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36673 nullbytes in symbol table. This fixes an infinite loop if table is
36674 zero filled.
36675
36676 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36677 TARGET_IMG_LDFLAGS and EXEEXT.
36678
36679 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36680 TARGET_IMG_LDFLAGS_AC.
36681 (grub_CHECK_STACK_ARG_PROBE): New function.
36682
36683 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36684
36685 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36686
36687 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36688 to set TARGET_IMG_LD* accordingly.
36689 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36690 Add call to grub_CHECK_STACK_ARG_PROBE.
36691 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36692
36693 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36694
36695 * genmk.rb: Add EXEEXT to CLEANFILES.
36696
12ccdb75 366972008-07-23 Robert Millan <rmh@aybabtu.com>
36698
36699 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36700 define the codes for arrows and lines used for the menu).
36701 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36702 as well.
36703
36704 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36705 fonts, because the latter are too slow.
36706
18eeaf04 367072008-07-21 Bean <bean123ch@gmail.com>
36708
36709 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36710 a20. Run keyboard test last, as it will cause macbook to halt.
36711
b095e2ad 367122008-07-18 Pavel Roskin <proski@gnu.org>
36713
36714 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36715 load foreign architecture modules correctly anyway. Keep
36716 support for loading host architecture modules, whether we
36717 compile them or not.
36718
737feb35 367192008-07-17 Pavel Roskin <proski@gnu.org>
36720
3f4ce737 36721 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36722 change target_cpu. The compiler default can mismatch target_cpu
36723 in any case.
36724
4ad2d049 36725 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36726 * kern/efi/efi.c: Likewise.
36727
f6130a12 36728 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36729 target compiler is functional.
36730 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36731 are set up.
36732
58393a2d 36733 * configure.ac: Default to efi platform for x86_64-apple. Allow
36734 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36735 adjustments from the rest, only do them if target is not
36736 explicitly given. Merge other adjustments with the final sanity
36737 check. Remove an extraneous check for supported CPU. Be
36738 specific which CPU and which platform is not supported.
36739
737feb35 36740 * configure.ac: Default to pc platform for x86_64.
36741
546f966a 367422008-07-17 Robert Millan <rmh@aybabtu.com>
36743
36744 Partial LinuxBIOS -> Coreboot rename.
36745
36746 * conf/i386-linuxbios.rmk: Renamed to ...
36747 * conf/i386-coreboot.rmk: ... this.
36748 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36749 * configure.ac: Accept "coreboot" as input platform (but maintain
36750 compatibility with "linuxbios").
36751 * include/grub/i386/linuxbios: Renamed to ...
36752 * include/grub/i386/coreboot: ... this.
36753
20011694 367542008-07-17 Bean <bean123ch@gmail.com>
36755
36756 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 36757 (appleldr_mod_SOURCE): New variable.
20011694 36758 (appleldr_mod_CFLAGS): Likewise.
36759 (appleldr_mod_LDFLAGS): Likewise.
36760 (pci_mod_SOURCES): Likewise.
36761 (pci_mod_CFLAGS): Likewise.
36762 (pci_mod_LDFLAGS): Likewise.
36763 (lspci_mod_SOURCES): Likewise.
36764 (lspci_mod_CFLAGS): Likewise.
36765 (lspci_mod_LDFLAGS): Likewise.
36766
36767 * conf/x86_64-efi.rmk: New file.
36768
36769 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36770 macro.
36771 (grub_efidisk_write): Likewise.
36772
36773 * include/efi/api.h (efi_call_0): New macro.
36774 (efi_call_1): Likewise.
36775 (efi_call_2): Likewise.
36776 (efi_call_3): Likewise.
36777 (efi_call_4): Likewise.
36778 (efi_call_5): Likewise.
36779 (efi_call_6): Likewise.
36780
36781 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36782 grub_rescue_cmd_chainloader.
36783
36784 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36785 (grub_pe32_optional_header): Change some fields based on i386 or
36786 x86_64 platform.
36787 (GRUB_PE32_PE32_MAGIC): Likewise.
36788
36789 * include/grub/efi/uga_draw.h: New file.
36790
36791 * include/grub/elf.h (STN_ABS): New constant.
36792 (R_X86_64_NONE): Relocation constant for x86_64.
36793 (R_X86_64_64): Likewise.
36794 (R_X86_64_PC32): Likewise.
36795 (R_X86_64_GOT32): Likewise.
36796 (R_X86_64_PLT32): Likewise.
36797 (R_X86_64_COPY): Likewise.
36798 (R_X86_64_GLOB_DAT): Likewise.
36799 (R_X86_64_JUMP_SLOT): Likewise.
36800 (R_X86_64_RELATIVE): Likewise.
36801 (R_X86_64_GOTPCREL): Likewise.
36802 (R_X86_64_32): Likewise.
36803 (R_X86_64_32S): Likewise.
36804 (R_X86_64_16): Likewise.
36805 (R_X86_64_PC16): Likewise.
36806 (R_X86_64_8): Likewise.
36807 (R_X86_64_PC8): Likewise.
36808
36809 * include/grub/i386/efi/pci.h: New file.
36810
36811 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36812 Change it value based on platform.
36813 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36814 (GRUB_E820_RAM): Likewise.
36815 (GRUB_E820_RESERVED): Likewise.
36816 (GRUB_E820_ACPI): Likewise.
36817 (GRUB_E820_NVS): Likewise.
36818 (GRUB_E820_EXEC_CODE): Likewise.
36819 (GRUB_E820_MAX_ENTRY): Likewise.
36820 (grub_e820_mmap): New structure.
36821 (linux_kernel_header): Change the efi field according to different
36822 kernel version, also field from linux_kernel_header.
36823
36824 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36825
36826 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36827 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36828 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36829 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36830 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36831 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36832 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36833 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36834 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36835 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36836
36837 * include/grub/x86_64/efi/kernel.h: New file.
36838
36839 * include/grub/x86_64/efi/loader.h: Likewise.
36840
36841 * include/grub/x86_64/efi/machine.h: Likewise.
36842
36843 * include/grub/x86_64/efi/pci.h: Likewise.
36844
36845 * include/grub/x86_64/efi/time.h: Likewise.
36846
36847 * include/grub/x86_64/linux.h: Likewise.
36848
36849 * include/grub/x86_64/setjmp.h: Likewise.
36850
36851 * include/grub/x86_64/time.h: Likewise.
36852
36853 * include/grub/x86_64/types.h: Likewise.
36854
36855 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36856 GRUB_TARGET_SIZEOF_VOID_P.
36857
36858 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36859 (grub_efi_locate_handle): Likewise.
36860 (grub_efi_open_protocol): Likewise.
36861 (grub_efi_set_text_mode): Likewise.
36862 (grub_efi_stall): Likewise.
36863 (grub_exit): Likewise.
36864 (grub_reboot): Likewise.
36865 (grub_halt): Likewise.
36866 (grub_efi_exit_boot_services): Likewise.
36867 (grub_get_rtc): Likewise.
36868
36869 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36870 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36871 (grub_efi_allocate_pages): Wrap efi calls.
36872 (grub_efi_free_pages): Wrap efi calls.
36873 (grub_efi_get_memory_map): Wrap efi calls.
36874
36875 * kern/x86_64/dl.c: New file.
36876
36877 * kern/x86_64/efi/callwrap.S: Likewise.
36878
36879 * kern/x86_64/efi/startup.S: Likewise.
36880
36881 * loader/efi/appleloader.c: Likewise.
36882
36883 * loader/efi/chainloader.c (cmdline): New variable.
36884 (grub_chainloader_unload): Wrap efi calls.
36885 (grub_chainloader_boot): Likewise.
36886 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36887 command line.
36888
36889 * loader/efi/chainloader_normal.c (chainloader_command):
36890 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36891 command line.
36892
36893 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36894 method.
36895 (grub_e820_add_region): New function.
36896 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36897 booting.
36898 (grub_find_video_card): New function.
36899 (grub_linux_setup_video): New function.
36900 (grub_rescue_cmd_linux): Probe for video information.
36901
36902 * normal/x86_64/setjmp.S: New file.
36903
36904 * term/efi/console.c (map_char): New function.
36905 (grub_console_putchar): Map unicode char.
36906 (grub_console_checkkey): Wrap efi calls.
36907 (grub_console_getkey): Likewise.
36908 (grub_console_getwh): Likewise.
36909 (grub_console_gotoxy): Likewise.
36910 (grub_console_cls): Likewise.
36911 (grub_console_setcolorstate): Likewise.
36912 (grub_console_setcursor): Likewise.
36913
36914 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36915
59652a20 369162008-07-16 Pavel Roskin <proski@gnu.org>
36917
ef294055 36918 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36919 format strings.
36920
59652a20 36921 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36922 pointer, not an integer. This fixes a warning and prevents
36923 precision loss on 64-bit systems.
36924 (relocate_addresses): Remove unneeded cast.
36925
afc3b5d7 369262008-07-15 Pavel Roskin <proski@gnu.org>
36927
506b2b3e 36928 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36929
62ead89c 36930 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36931
c4cd51d7 36932 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36933 Fix comparison between signed and unsigned.
36934
0d3d8f28 36935 * include/grub/i386/ieee1275/console.h: Declare
36936 grub_console_init() and grub_console_fini().
36937
8804b286 36938 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36939 It's empty and unused.
36940
ee01cf35 36941 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36942 beginning to avoid warnings with some compilers.
36943
afc3b5d7 36944 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36945 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36946
e4e8eaa5 369472008-07-14 Pavel Roskin <proski@gnu.org>
36948
407aceb4 36949 * kern/env.c (grub_register_variable_hook): Don't copy empty
36950 string, it leaks memory. Pass "" to grub_env_set(), it should
36951 handle constant strings.
36952
e4e8eaa5 36953 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36954 * commands/cmp.c (grub_cmd_cmp): Likewise.
36955 * kern/dl.c (grub_dl_flush_cache): Likewise.
36956 (grub_dl_load_core): Likewise.
36957 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36958 (grub_elf64_load_phdrs): Likewise.
36959
d4e2dad3 369602008-07-13 Pavel Roskin <proski@gnu.org>
36961
36962 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36963 between signed and unsigned.
36964 (LzmaEnc_Finish): Fix warning about an unused parameter.
36965
aa24b516 369662008-07-13 Bean <bean123ch@gmail.com>
36967
36968 * Makefile.in (enable_lzo): New rule.
36969
36970 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36971
36972 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36973
36974 * boot/i386/pc/lnxboot.S: #include <config.h>.
36975
36976 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 36977 its value according to the compression algorithm used, lzo or lzma.
aa24b516 36978
36979 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36980 compression algorithm according to configure macro.
36981
36982 * kern/i386/pc/startup.S (codestart): Likewise.
36983
36984 * kern/i386/pc/lzma_decode.S: New file.
36985
36986 * include/grub/lib/LzFind.h: Likewise.
36987
36988 * include/grub/lib/LzHash.h: Likewise.
36989
36990 * include/grub/lib/LzmaDec.h: Likewise.
36991
36992 * include/grub/lib/LzmaEnc.h: Likewise.
36993
36994 * include/grub/lib/LzmaTypes.h: Likewise.
36995
36996 * lib/LzFind.c: Likewise.
36997
36998 * lib/LzmaDec.c: Likewise.
36999
37000 * lib/LzmaEnc.c: Likewise.
37001
4ae821ac 370022008-07-13 Bean <bean123ch@gmail.com>
37003
37004 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
37005 (grub_ext4_extent_header): New structure.
37006 (grub_ext4_extent): Likewise.
37007 (grub_ext4_extent_idx): Likewise.
37008 (grub_ext4_find_leaf): New function.
37009 (grub_ext2_read_block): Handle extents.
37010
9a745147 370112008-07-12 Robert Millan <rmh@aybabtu.com>
37012
37013 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
37014
d49a4cf6 370152008-07-11 Robert Millan <rmh@aybabtu.com>
37016
37017 * util/grub.d/40_custom.in: New file. Example on how to add custom
37018 entries to /etc/grub.d.
37019 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
37020 40_custom (implicitly, by merging all the grub.d rules).
37021
947414b4 370222008-07-11 Pavel Roskin <proski@gnu.org>
37023
0059cf6f 37024 * commands/read.c (grub_getline): Fix invalid memory access.
37025 Don't add newline to the variable value.
37026
947414b4 37027 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
37028 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
37029 (serial_hw_get_port): Check validity of the port number.
37030 (grub_cmd_serial): Check return value of serial_hw_get_port().
37031
62a02d00 370322008-07-07 Pavel Roskin <proski@gnu.org>
37033
37034 * boot/i386/pc/diskboot.S (notification_string): Replace
37035 "Loading kernel" with just "loading". This is shorter, less
37036 confusing and saves a few bytes for possible future changes.
37037
3e5581b0 370382008-07-05 Pavel Roskin <proski@gnu.org>
37039
ea387a48 37040 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
37041 size for ATAPI devices, they are undefined. Output sector
37042 number in decimal form.
37043
3e5581b0 37044 * disk/ata.c: Use named constants for status bits.
37045
fdecb8fd 370462008-07-04 Pavel Roskin <proski@gnu.org>
37047
bcd35b90 37048 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
37049 grub_addr_t before casting it to the void pointer to fix a
37050 warning. Non-addressable regions are discarded earlier.
37051 (grub_arch_modules_addr): Cast _end to grub_addr_t.
37052 * kern/i386/linuxbios/table.c: Include grub/misc.h.
37053 (check_signature): Don't shadow table_header.
37054 (grub_linuxbios_table_iterate): Cast numeric constants to
37055 grub_linuxbios_table_header_t.
37056 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
37057 grub_stop().
37058
af58ab3d 37059 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
37060 prevent warnings.
37061
1759aa57 37062 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
37063 pointer, which can cause warnings. Support 64-bit addresses.
37064
fdecb8fd 37065 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
37066 of sizeof(long). This fixes PowerPC image generation on x86_64.
37067
8516d2a8 370682008-07-04 Robert Millan <rmh@aybabtu.com>
37069
37070 This fixes a performance issue when pc & gpt partmap iterators
37071 didn't abort iteration even after our hook found what it was
fe987087 37072 looking for (often causing expensive probes of non-existent drives).
8516d2a8 37073
37074 Some callers relied on previous buggy behaviour, since they would
34c44600 37075 raise an error when their own hooks caused early abortion of its
8516d2a8 37076 iteration.
37077
37078 * kern/device.c (grub_device_open): Improve error message.
37079 * disk/lvm.c (grub_lvm_open): Likewise.
37080 * disk/raid.c (grub_raid_open): Likewise.
37081
37082 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
37083 when hook requests it, independently of grub_errno.
37084 (pc_partition_map_probe): Do not fail when find_func() caused
37085 early abortion of pc_partition_map_iterate().
37086
37087 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
37088 when hook requests it, independently of grub_errno.
37089 (gpt_partition_map_probe): Do not fail when find_func() caused
37090 early abortion of gpt_partition_map_iterate().
37091
37092 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37093 when hook requests it, independently of grub_errno. Do not fail when
37094 part_map_iterate_hook() caused early abortion of p->iterate().
37095
37096 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37097 when grub_partition_iterate() returned with non-zero.
37098
277d0de9 370992008-07-03 Pavel Roskin <proski@gnu.org>
37100
37101 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37102 like we do in grub_ata_pio_read().
37103 (grub_ata_readwrite): Always write individual sectors. Fix the
37104 sector count for the remainder.
37105 (grub_ata_write): Enable writing to ATA devices. Correctly
37106 report error for ATAPI devices.
37107
d4c9b428 371082008-07-02 Pavel Roskin <proski@gnu.org>
37109
e43fc690 37110 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37111 warning.
37112
f707af42 37113 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37114 for every read sector, we already increment it for the whole
37115 batch. This fixes reading more than 256 sectors at once.
37116
11e16b15 37117 * util/grub-editenv.c (cmd_info): Cast argument to long
37118 explicitly. ptrdiff_t reduces to int on i386.
37119
cbabfdd4 37120 * util/grub-editenv.c (main): Be specific which parameter is
37121 missing.
37122
b8fbce0a 37123 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37124 (memdisk): Make memdisk_orig_addr a pointer.
37125
c9c8e606 37126 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37127 for file offsets, use grub_off_t instead. Fix printf format
37128 warnings.
37129
ca62e598 37130 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37131 there. Real unexpected warnings should not drown in the noise
37132 about known problems.
37133
ce8d1766 37134 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37135 grub_disk_addr_t for memory addresses.
37136
00c7a56a 37137 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37138 explicitly to fix a warning.
37139
08d3ef09 37140 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37141
cb71ba20 37142 * Makefile.in (MODULE_LDFLAGS): New variable.
37143 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37144 the linker accepts --build-id=none.
37145 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37146 MODULE_LDFLAGS.
37147 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37148
d4c9b428 37149 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37150 those in Linux XFS code. Provide a way to access 64-bit parent
37151 inode.
37152 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37153 the end of struct grub_xfs_dir_header.
37154
d4156eee 371552008-07-02 Bean <bean123ch@gmail.com>
37156
37157 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37158 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37159 and GRUB_IEEE1275_FLAG_NO_ANSI.
37160
37161 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37162 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37163 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37164
37165 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37166 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37167
37168 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37169 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37170
37171 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37172 esc sequence on non ANSI terminal.
37173 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37174
37175 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37176 beginning of file.
37177
2270f77b 371782008-07-02 Bean <bean123ch@gmail.com>
37179
37180 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37181 (grub_editenv_SOURCES): New variable.
37182 (pkglib_MODULES): Add loadenv.mod.
37183 (loadenv_mod_SOURCES): New variable.
37184 (loadenv_mod_CFLAGS): Likewise.
37185 (loadenv_mod_LDFLAGS): Likewise.
37186
37187 * include/grub/envblk.h: New file.
37188
37189 * util/envblk.c: New file.
37190
37191 * util/grub-editenv.c: New file.
37192
37193 * commands/loadenv.c: New file.
37194
0e9e51ec 371952008-07-01 Pavel Roskin <proski@gnu.org>
37196
d89b7634 37197 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37198 not unsigned char. This fixes warnings and is consistent with
37199 other tags.
37200
bf1835b1 37201 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37202
8222a04b 37203 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37204
6a42d99d 37205 * term/tparm.c (analyze): Always set *popcount.
37206
10b159d1 37207 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37208 cast to fix a warning.
37209
b8789f6c 37210 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37211 cast to suppress a warning.
37212
29d7e38a 37213 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37214 grub_fshelp_read_file() expects.
37215
f341f669 37216 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37217 write uuid as a 32-bit value in CPU byte order, so declare and
37218 use it as such.
37219
0e9e51ec 37220 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37221 long if the format specifier expects it.
37222 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37223 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37224 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37225 long to fix a warning.
37226 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37227 grub_dprintf() arguments to fix warnings.
37228
3aefa857 372292008-06-30 Pavel Roskin <proski@gnu.org>
37230
56c7668b 37231 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37232 install_bsd_part immediately before core.img is embedded or
37233 modified on disk. This fixes core.img verification if core.img
37234 cannot be embedded.
37235
3aefa857 37236 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37237 core_path to calculate the blocklist.
37238 Patch from Javier Martín <lordhabbit@gmail.com>
37239
5444088d 372402008-06-29 Robert Millan <rmh@aybabtu.com>
37241
37242 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37243 block to disk block.
37244 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37245 Patch from Niels Böhm <bitbucket@arcor.de>
37246
674835c8 372472008-06-29 Robert Millan <rmh@aybabtu.com>
37248
37249 * util/update-grub_lib.in (font_path): Search for fonts in
37250 /boot/grub first, which is more likely to be readable (we aren't
37251 deciding where fonts live, just looking for them).
37252
f527dbc8 372532008-06-26 Pavel Roskin <proski@gnu.org>
37254
6c2d8df6 37255 * util/biosdisk.c (read_device_map): Don't leave dead map
37256 entries for devices failing stat() check.
37257
f527dbc8 37258 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37259 core_path_dev for the core.img path on the target device.
37260
aebe3d13 372612008-06-26 Robert Millan <rmh@aybabtu.com>
37262
37263 * disk/fs_uuid.c: New file.
37264 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37265 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37266 (fs_uuid_mod_LDFLAGS): New variables.
37267 * include/grub/disk.h (grub_disk_dev_id): Add
37268 `GRUB_DISK_DEVICE_UUID_ID'.
37269 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37270 implement iterate().
37271
37aaf354 372722008-06-26 Robert Millan <rmh@aybabtu.com>
37273
37274 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37275 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37276 Linux image includes no initrd.
37277
25ff262a 372782008-06-21 Javier Martín <lordhabbit@gmail.com>
37279
37280 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37281 call to resolve the core image location that effectively appended the
37282 name twice.
37283
76a2bd44 372842008-06-21 Robert Millan <rmh@aybabtu.com>
37285
37286 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37287 call from here ...
37288
37289 * util/grub.d/10_hurd.in: ... to here ...
37290 * util/grub.d/10_linux.in: ... and here.
37291
650e1c79 372922008-06-19 Robert Millan <rmh@aybabtu.com>
37293
fe987087 37294 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 37295 after it has been set by grub_machine_set_prefix().
37296
6ce63911 372972008-06-19 Robert Millan <rmh@aybabtu.com>
37298
37299 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37300 search result when not saving to variable, not the other way around.
37301 When saving to variable, abort iteration as soon as a match is found.
37302
73940cec 373032008-06-19 Robert Millan <rmh@aybabtu.com>
37304
37305 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37306 check for partition that provides /boot/grub. Its logic is flawed,
37307 as it prevents prepare_grub_to_access_device() from being called
37308 multiple times.
37309
3c62a39d 373102008-06-19 Robert Millan <rmh@aybabtu.com>
37311
37312 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37313 "insmod" command directly when abstraction modules are needed,
fe987087 37314 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 37315 since it had already been processed).
37316
47395a42 373172008-06-19 Pavel Roskin <proski@gnu.org>
37318
37319 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37320 changed. This is needed in case GRUB_LIBDIR changes.
37321 * conf/i386-ieee1275.rmk: Likewise.
37322 * conf/i386-linuxbios.rmk: Likewise.
37323 * conf/i386-pc.rmk: Likewise.
37324 * conf/powerpc-ieee1275.rmk: Likewise.
37325
a145ac2d 373262008-06-18 Pavel Roskin <proski@gnu.org>
37327
37328 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37329 kernel_elf_symlist.c to symlist.c for consistency with other
37330 architectures. Update all users.
37331 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37332
7847c51e 373332008-06-18 Robert Millan <rmh@aybabtu.com>
37334
37335 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37336 it in prefix.
37337
37338 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37339 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37340 a RAID device, run setup() for all members independently on whether
37341 LVM abstraction is being used.
37342 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37343 If grub-mkimage has set `*install_dos_part == -2', don't override this
37344 value.
37345 Perform *install_dos_part adjustments independently on whether
37346 we're embedding or not.
37347 Clarify error message when image is too big for embedding.
37348 Remove duplicate *install_dos_part stanza.
37349
b23e5644 373502008-06-17 Robert Millan <rmh@aybabtu.com>
37351
37352 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37353 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37354 variables.
37355 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37356 values in grub_ofconsole_normal_color and
37357 grub_ofconsole_highlight_color (they're not directly related to
37358 background and foreground).
37359 (grub_ofconsole_setcolorstate): Extract background and foreground
37360 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37361
0aac2f79 373622008-06-17 Robert Millan <rmh@aybabtu.com>
37363
37364 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37365 /boot/grub for the check in last commit, not /boot (they could be
37366 different partitions).
37367
3cca7ef3 373682008-06-16 Robert Millan <rmh@aybabtu.com>
37369
37370 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37371 asked to setup access for the same partition that provides /boot,
37372 don't bother using UUIDs since our root already has the value we
37373 want.
37374
347396d8 373752008-06-16 Robert Millan <rmh@aybabtu.com>
37376
37377 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37378 I2O devices.
37379 Patch from Sven Mueller <sven@debian.org>.
37380
991477f8 373812008-06-16 Robert Millan <rmh@aybabtu.com>
37382
37383 * util/update-grub.in: Check for $EUID instead of $UID.
37384 Reported by Vincent Zweije.
37385
d31a32a1 373862008-06-16 Bean <bean123ch@gmail.com>
37387
fe987087 37388 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 37389 (grub_ext2_read_block): Likewise.
37390 (grub_ext2_read_inode): Likewise.
37391 (grub_ext2_mount): Likewise.
37392 (grub_ext2_close): Likewise.
37393 (grub_ext3_get_journal): Removed.
37394
fe987087 37395 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 37396 (grub_reiserfs_read_symlink): Likewise.
37397 (grub_reiserfs_mount): Likewise.
37398 (grub_reiserfs_open): Likewise.
37399 (grub_reiserfs_read): Likewise.
37400 (grub_reiserfs_close): Likewise.
37401 (grub_reiserfs_get_journal): Removed.
37402
37403 * fs/fshelp.c (grub_fshelp_read): Removed.
37404 (grub_fshelp_map_block): Likewise.
37405
37406 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37407 (grub_fshelp_journal): Likewise.
37408 (grub_fshelp_read): Likewise.
37409 (grub_fshelp_map_block): Likewise.
37410
3540a760 374112008-06-16 Pavel Roskin <proski@gnu.org>
37412
37413 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37414 floating point anymore.
37415 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37416
95614c84 374172008-06-15 Pavel Roskin <proski@gnu.org>
37418
37419 * commands/ls.c (grub_ls_list_files): Use integer calculations
37420 for human readable format, avoid floating point use.
37421 * kern/misc.c (grub_ftoa): Remove.
37422 (grub_vsprintf): Remove floating point support.
37423
50465dd6 374242008-06-15 Robert Millan <rmh@aybabtu.com>
37425
fe6b695a 37426 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 37427 devices.
37428 Reported by Max Vozeler.
37429
a9207284 374302008-06-15 Robert Millan <rmh@aybabtu.com>
37431
37432 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37433 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37434 skipped later.
37435 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37436 the beginning of the prefix.
37437
37438 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37439 It is assumed that if we have a memdisk, grub-mkimage has set
37440 grub_prefix to include the "(memdisk)" drive in it.
37441
a7cbd45a 374422008-06-15 Robert Millan <rmh@aybabtu.com>
37443
37444 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37445 Initialize keyboard controller after registering the terminal, so that
37446 grub_printf() can be called from grub_keyboard_controller_init().
37447
21cf716a 374482008-06-15 Robert Millan <rmh@aybabtu.com>
37449
37450 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37451 extent-btree which is written as big endian on disk.
37452 Reported by Alain Greppin <al@chilibi.org>.
37453
23a64d8e 374542008-06-14 Robert Millan <rmh@aybabtu.com>
37455
37456 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37457 * util/i386/pc/grub-install.in (modules): Likewise.
37458
d687651c 374592008-06-13 Pavel Roskin <proski@gnu.org>
37460
37461 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37462
dfe9ddd4 374632008-06-13 Bean <bean123ch@gmail.com>
37464
37465 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37466
37467 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37468
37469 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37470 to indicate sparse block.
37471
16ae7781 374722008-06-12 Pavel Roskin <proski@gnu.org>
37473
e6d1a308 37474 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37475 number, grub_fshelp_read() does it for us.
37476
16ae7781 37477 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37478 linear disk read with journal translation.
37479 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37480 * include/grub/fshelp.h: Declare grub_fshelp_read().
37481
40fd3a2b 374822008-06-09 Pavel Roskin <proski@gnu.org>
37483
37484 * fs/minix.c (grub_minix_mount): Handle error reading
37485 superblock.
37486
f5679726 374872008-06-08 Robert Millan <rmh@aybabtu.com>
37488
37489 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37490 don't append the RAID prefix afterwards.
37491 Reported by Clint Adams.
37492
ce525529 374932008-06-08 Robert Millan <rmh@aybabtu.com>
37494
37495 Based on description from Pavel:
37496 * kern/disk.c (grub_disk_check_range): Rename to ...
37497 (grub_disk_adjust_range): ... this. Add a comment explaining the
37498 tasks performed by this function.
37499
ad4936a0 375002008-06-08 Robert Millan <rmh@aybabtu.com>
37501
37502 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37503 `num_serial' (for consistency with other variables).
37504 (struct grub_ntfs_data): Add `uuid' member.
37505 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37506 (grub_ntfs_uuid): New function.
37507 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37508
dc20b0f9 375092008-06-07 Pavel Roskin <proski@gnu.org>
37510
37511 * util/biosdisk.c (open_device): Revert last change to the
37512 function, it broke installation. The sector needs to be
37513 different dependent on which device is opened.
37514
c5e3cfba 375152008-06-06 Robert Millan <rmh@aybabtu.com>
37516
37517 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37518 rest of GRUB, and breakage doesn't happen if its value were modified.
37519
37520 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37521 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37522 a constant (same value).
37523 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37524 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37525
26a1f8c4 375262008-06-06 Robert Millan <rmh@aybabtu.com>
37527
37528 * util/biosdisk.c (open_device): Do not modify sector offset when
37529 accessing a partition. kern/disk.c already handles this for us.
37530
25d6b327 375312008-06-06 Robert Millan <rmh@aybabtu.com>
37532
37533 * util/grub-emu.c (grub_machine_init): Move code in this function from
37534 here ...
37535 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37536 segfault in case grub_printf() is called).
37537
37538 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37539 grub_probe. Update all users not to explicitly add it again.
37540 (grub_device): New variable; contains corresponding device for grubdir.
37541 (fs_module, partmap_module, devabstraction_module): Pass
37542 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37543 every time.
37544
9ece62fb 375452008-06-05 Robert Millan <rmh@aybabtu.com>
37546
37547 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37548 is found, print it (same layout as with labels).
37549
1ad36d37 375502008-06-04 Robert Millan <rmh@aybabtu.com>
37551
37552 * util/biosdisk.c (get_drive): Rename to ...
37553 (find_grub_drive): ... this. Update all users.
37554
37555 (get_os_disk): Rename to ...
37556 (convert_system_partition_to_system_disk): ... this. Update all users.
37557
37558 (find_drive): Rename to ...
37559 (find_system_device): ... this. Update all users.
37560
e6a30859 375612008-06-04 Robert Millan <rmh@aybabtu.com>
37562
37563 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37564 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37565 (make_device_map): Likewise.
37566
00c108a4 375672008-06-01 Robert Millan <rmh@aybabtu.com>
37568
37569 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37570 before dereferencing it.
37571
37572 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37573 union with fat12/fat16-specific ones. Add some new fields, including
37574 `num_serial' for both versions.
37575 (struct grub_fat_data): Add `uuid' member.
37576 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37577 names. Initialize `data->uuid' using `num_serial'.
37578 (grub_fat_uuid): New function.
37579 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37580
37581 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37582 (grub_reiserfs_uuid): New function.
37583 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37584 member.
37585
37586 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37587 (grub_xfs_uuid): New function.
37588 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37589
1385c5bb 375902008-06-01 Robert Millan <rmh@aybabtu.com>
37591
37592 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37593 code that is backward compatible with pre-uuid search command.
37594
c682dfd7 375952008-05-31 Robert Millan <rmh@aybabtu.com>
37596
37597 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37598 floppies after everything else, to ensure floppy drive isn't accessed
37599 unnecessarily (patch from Bean).
37600
b7db5d47 376012008-05-31 Robert Millan <rmh@aybabtu.com>
37602
37603 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37604 not print device names when we were asked to set a variable.
37605
6e037aa9 376062008-05-31 Robert Millan <rmh@aybabtu.com>
37607
37608 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37609 using "cursor-on" and "cursor-off" commands (understood at least by
37610 the Open Firmware flavour on OLPC).
37611
41305bc8 376122008-05-31 Michael Gorven <michael@gorven.za.net>
37613
37614 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37615 on and off sequences.
37616
69ba137e 376172008-05-31 Robert Millan <rmh@aybabtu.com>
37618
37619 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37620 * util/update-grub.in: Likewise.
37621
520ae21b 376222008-05-30 Pavel Roskin <proski@gnu.org>
37623
37624 * util/biosdisk.c (linux_find_partition): Simplify logic and
37625 make the code more universal. Keep special processing for
37626 devfs, but use a simple rule for all other devices. If the
37627 device ends with a number, append 'p' and the partition number.
37628 Otherwise, append only the partition number.
37629
5786569b 376302008-05-30 Robert Millan <rmh@aybabtu.com>
37631
37632 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37633 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37634 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37635 the `root' parameter to Linux.
37636
51500452 376372008-05-30 Robert Millan <rmh@aybabtu.com>
37638
37639 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37640 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37641 --fs_uuid with --fs-uuid.
37642 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37643 all filesystems support them).
37644
811d3878 376452008-05-30 Robert Millan <rmh@aybabtu.com>
37646
37647 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 37648 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 37649
cab63c95 376502008-05-30 Robert Millan <rmh@aybabtu.com>
37651
37652 * util/grub.d/00_header.in: Remove obsolete comment referencing
37653 convert_system_path_to_grub_path().
37654 * util/update-grub.in: Likewise.
37655 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37656 (convert_system_path_to_grub_path): Add a warning message explaining
37657 that this function is deprecated. Rely on is_path_readable_by_grub()
37658 for the readability checks.
37659 (font_path): Use is_path_readable_by_grub() for the readability
37660 check rather than convert_system_path_to_grub_path().
37661
972e2f7a 376622008-05-30 Robert Millan <rmh@aybabtu.com>
37663
37664 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37665 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37666 converting it first.
37667 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37668 grub.cfg for access to font file, and afterwards call it again to set
37669 the root device.
37670
62191274 376712008-05-30 Robert Millan <rmh@aybabtu.com>
37672
37673 * commands/search.c (options): Add --fs_uuid option.
37674 (search_fs_uuid): New function.
37675 (grub_cmd_search): Fix --set argument passing.
37676 Use search_fs_uuid() when requested via --fs_uuid.
37677 (grub_search_init): Update help message.
37678 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37679 and redeclare it as an array of 16-bit words.
37680 (grub_ext2_uuid): New function.
37681 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37682 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37683 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37684 (GRUB_DEVICE_BOOT_UUID): New variables.
37685 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37686 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37687 whenever possible.
37688 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37689 just assume `root' variable has the right value.
37690 * util/grub.d/10_linux.in: Likewise.
37691 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37692 via PRINT_FS_UUID.
37693 (main): Recognise `-t fs_uuid' argument.
37694
01b73ec8 376952008-05-30 Robert Millan <rmh@aybabtu.com>
37696
37697 * util/biosdisk.c (map): Redefine structure to hold information
37698 about GRUB drive name.
fe6b695a 37699 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 37700 drive names.
37701 (call_hook): Remove.
37702 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37703 member. Assume drive has partitions.
37704 (grub_util_biosdisk_open): Access device names via `.device' struct
37705 member.
37706 (open_device): Likewise.
37707 (find_drive): Likewise.
37708 (read_device_map): Adjust map[] usage to match the new struct
37709 definition. Don't check for duplicates (still possible, but not cheap
37710 anymore).
37711 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37712 (make_device_name): Remove assumption of BIOS-like drive names.
37713
22f16596 377142008-05-30 Pavel Roskin <proski@gnu.org>
37715
37716 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37717 compiling execute.c doesn't need grub_script.tab.h anymore.
37718 (normal/command.c_DEPENDENCIES): Likewise.
37719 (normal/function.c_DEPENDENCIES): Likewise.
37720 * conf/i386-ieee1275.rmk: Likewise.
37721 * conf/i386-linuxbios.rmk: Likewise.
37722 * conf/i386-pc.rmk: Likewise.
37723 * conf/powerpc-ieee1275.rmk: Likewise.
37724 * conf/sparc64-ieee1275.rmk: Likewise.
37725
528ad8f2 377262008-05-29 Pavel Roskin <proski@gnu.org>
37727
d1dff95d 37728 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37729 when scanning metadata for volume group name.
37730
528ad8f2 37731 * include/grub/script.h: Don't include grub_script.tab.h. It's
37732 a generated file, which may only be included from the files with
37733 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37734 use union YYSTYPE, as the later allows forward declaration.
37735 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37736
47248e08 377372008-05-29 Robert Millan <rmh@aybabtu.com>
37738
37739 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37740 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37741 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37742 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37743 scan codes.
37744
ee632529 377452008-05-29 Robert Millan <rmh@aybabtu.com>
37746
37747 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37748 control key combinations.
37749
eee96e08 377502008-05-29 Robert Millan <rmh@aybabtu.com>
37751
37752 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37753 * util/ieee1275/grub-install.in: ... to here.
37754 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37755 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37756 (grub_install_SOURCES): Likewise.
37757
da9a6a94 377582008-05-29 Robert Millan <rmh@aybabtu.com>
37759
37760 * fs/affs.c: Update copyright year.
37761 * fs/ext2.c: Likewise.
37762 * fs/fshelp.c: Likewise.
37763 * fs/hfsplus.c: Likewise.
37764 * fs/ntfs.c: Likewise.
37765 * fs/xfs.c: Likewise.
37766 * include/grub/fshelp.h: Likewise.
37767 * util/grub-mkdevicemap.c: Likewise.
37768
12e65f3a 377692008-05-28 Robert Millan <rmh@aybabtu.com>
37770
37771 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37772 might need to be fatfs to support some firmware implementations
37773 (e.g. OFW or EFI).
37774
23023641 377752008-05-28 Robert Millan <rmh@aybabtu.com>
37776
37777 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37778 devices.
37779 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37780 (make_device_map): Likewise.
37781
887d2619 377822008-05-20 Bean <bean123ch@gmail.com>
37783
37784 * fs/fshelp.c (grub_fshelp_map_block): New function.
37785 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37786 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37787
37788 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37789 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37790 (grub_fshelp_journal): New structure.
37791 (grub_fshelp_map_block): New function prototype.
37792 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37793 (grub_fshelp_map_block): Likewise.
37794
37795 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37796 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37797 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37798 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37799 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37800 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37801 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37802 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37803 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37804 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37805 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37806 (grub_ext2_sblock): New members for journal support.
37807 (grub_ext3_journal_header): New structure.
37808 (grub_ext3_journal_revoke_header): Likewise.
37809 (grub_ext3_journal_block_tag): Likewise.
37810 (grub_ext3_journal_sblock): Likewise.
37811 (grub_fshelp_node): New members logfile and journal.
37812 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37813 grub_fshelp_map_block to get real block number.
37814 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37815 number.
37816 (grub_ext2_read_inode): Likewise.
37817 (grub_ext3_get_journal): New function.
37818 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37819 (grub_ext2_close): Release memory used by journal.
37820
37821 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37822 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37823 (grub_reiserfs_transaction_header): Renamed to
37824 grub_reiserfs_description_block, replace field data with real_blocks.
37825 (grub_reiserfs_commit_block): New structure.
37826 (grub_reiserfs_data): New member journal.
37827 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37828 number.
37829 (grub_reiserfs_read_symlink): Likewise.
37830 (grub_reiserfs_iterate_dir): Likewise.
37831 (grub_reiserfs_open): Likewise.
37832 (grub_reiserfs_read): Likewise.
37833 (grub_reiserfs_get_journal): New function.
37834 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37835 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37836 using grub_reiserfs_get_journal.
37837 (grub_reiserfs_close): Release memory used by journal.
37838
37839 * fs/affs.c (grub_affs_read_block): Change block type to
37840 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37841
37842 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37843
37844 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37845
37846 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37847
37848 * fs/udf.c (grub_udf_read_block): Change block type to
37849 grub_disk_addr_t. Use type cast to avoid warning.
37850
37851 * fs/xfs.c (grub_xfs_read_block): Likewise.
37852
b7c6bed5 378532008-05-16 Christian Franke <franke@computer.org>
37854
37855 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37856 to ensure that break with ESC will always work.
37857 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37858 Remove ESC from keyboard queue.
37859
eedf167f 378602008-05-16 Christian Franke <franke@computer.org>
37861
37862 * util/biosdisk.c: [__CYGWIN__] Add includes.
37863 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37864 (get_os_disk): Move variable declarations to OS specific
37865 parts to avoid warning.
37866 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37867 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37868 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37869 Cygwin.
37870 * util/getroot.c: [__CYGWIN__] Add includes.
37871 (strip_extra_slashes): Fix "/" case.
37872 [__CYGWIN__] (get_win32_path): New function.
37873 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37874 [__CYGWIN__] (find_root_device): Disable.
37875 [__CYGWIN__] (get_bootsec_serial): New function.
37876 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37877 [__linux__] (grub_guess_root_device): Add early returns to simplify
37878 structure.
37879 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37880 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37881 check for Linux only.
37882
a079699e 378832008-05-15 Bean <bean123ch@gmail.com>
37884
37885 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37886 keyboard hang problem in apple's intel mac.
37887
1cf4059a 378882008-05-09 Robert Millan <rmh@aybabtu.com>
37889
37890 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37891 devices.
37892 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37893 (make_device_map): Likewise.
37894 Reported by Aurelien Jarno <aurel32@debian.org>
37895
ed759390 378962008-05-07 Ian Campbell <ijc@hellion.org.uk>
37897
37898 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37899 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37900 (make_device_map): Output entries for xvd type disks.
37901
b56c4eaa 379022008-05-07 Robert Millan <rmh@aybabtu.com>
37903
37904 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37905 devices.
37906 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37907 (make_device_map): Likewise.
37908 Reported by Roland Dreier <rdreier@cisco.com>
37909
7f8866ed 379102008-05-07 Robert Millan <rmh@aybabtu.com>
37911
37912 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37913 grub_strstr() call. Correct a few mistakes in failure path handling.
37914
b0346e0f 379152008-05-06 Robert Millan <rmh@aybabtu.com>
37916
37917 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37918 Do not print a trailing slash (therefore, the root directory is an
37919 empty string).
37920 (convert_system_path_to_grub_path): Do not remove trailing slash
37921 from make_system_path_relative_to_its_root() output.
37922
37923 * util/i386/pc/grub-install.in: Add trailing slash to output from
37924 make_system_path_relative_to_its_root().
37925
6cf12cbd 379262008-05-06 Robert Millan <rmh@aybabtu.com>
37927
37928 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37929 ensures that output lines aren't intermangled with those sent to
37930 stderr (via grub_util_info()).
37931 * util/grub-probe.c (grub_refresh): Likewise.
37932 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37933
0fbb3117 379342008-05-05 Christian Franke <franke@computer.org>
37935
37936 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37937 Add Cygwin device names.
37938 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37939 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37940 (check_device): Return error instead of success on empty name.
37941 (make_device_map): Move label inside linux specific code to
37942 prevent compiler warning.
37943
8124cdb7 379442008-04-30 Robert Millan <rmh@aybabtu.com>
37945
37946 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37947 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37948 first boot option.
37949 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37950
094c01d0 379512008-04-29 Robert Millan <rmh@aybabtu.com>
37952
37953 * docs/grub.cfg: New file (example GRUB configuration).
37954
f4b1fc02 379552008-04-26 Robert Millan <rmh@aybabtu.com>
37956
329ce2a5 37957 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37958 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37959 and `disk/ieee1275/nand.c'.
f4b1fc02 37960
25f16ec1 379612008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 37962
25f16ec1 37963 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37964 i386-linuxbios.
37965
37966 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37967 change the buffer size to 4096 for cdrom device.
37968
37969 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37970 and nand.mod.
37971 (_linux_mod_SOURCES): New variable.
37972 (_linux_mod_CFLAGS): Likewise.
37973 (_linux_mod_LDFLAGS): Likewise.
37974 (linux_mod_SOURCES): Likewise.
37975 (linux_mod_CFLAGS): Likewise.
37976 (linux_mod_LDFLAGS): Likewise.
37977 (nand_mod_SOURCES): Likewise.
37978 (nand_mod_CFLAGS): Likewise.
37979 (nand_mod_LDFLAGS): Likewise.
37980
37981 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37982 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37983 type property. (nand device in olpc don't have this property)
37984
37985 * include/grub/disk.h (grub_disk_dev_id): New macro
37986 GRUB_DISK_DEVICE_NAND_ID.
37987
37988 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37989 function prototype.
37990 (grub_rescue_cmd_initrd): Likewise.
37991
37992 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37993 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37994 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 37995
25f16ec1 37996 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37997 GRUB_MACHINE_IEEE1275 is defined.
37998
37999 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
38000 Use NESTED_FUNC_ATTR attribute on the hook parameter.
38001
38002 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
38003 on nested function heap_init.
38004 (grub_upper_mem): New variable for i386-ieee1275.
38005 (grub_get_extended_memory): New function for i386-ieee1275.
38006 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
38007
38008 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
38009 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
38010 property.
f19dbdb7 38011
25f16ec1 38012 * loader/i386/ieee1275/linux.c: New file.
38013
38014 * loader/i386/ieee1275/linux_normal.c: New file.
38015
38016 * disk/ieee1275/nand.c: New file.
38017
e89d61e9 380182008-04-18 Thomas Schwinge <tschwinge@gnu.org>
38019
38020 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
38021 value.
38022 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
38023
602566f6 380242008-04-18 Robert Millan <rmh@aybabtu.com>
38025
38026 Restructures early code path on ieee1275 to unify grub_main() as
38027 the first C function that is executed in every platform.
38028
38029 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
38030 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
38031 cmain().
38032 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
38033 * kern/ieee1275/cmain.c (cmain): Rename to ...
38034 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
38035 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
38036 at the beginning.
38037
57490c2b 380382008-04-18 Robert Millan <rmh@aybabtu.com>
38039
38040 * util/update-grub.in: Fix syntax error when setting
38041 `GRUB_PRELOAD_MODULES'.
38042 Reported by Stephane Chazelas <stephane@artesyncp.com>
38043
1977517d 380442008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
38045
38046 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
38047 section into account, newer toolchains generate unique build ids
38048 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 38049 we want build ids to be preserved
1977517d 38050 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
38051 far from other sections don't cause the raw binary images grow
38052 size
38053
bfb1f1a2 380542008-04-15 Robert Millan <rmh@aybabtu.com>
38055
38056 * disk/lvm.c: Update copyright year.
38057 * kern/misc.c: Likewise.
38058
01979850 380592008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38060
38061 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 38062 there is no memory left for physical volume name.
01979850 38063
0a1150e2 380642008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38065
38066 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
38067 volume name mapping to support bigger than 9 character names properly.
38068
82ead3fe 380692008-04-13 Robert Millan <rmh@aybabtu.com>
38070
38071 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
38072 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
38073
e54a72f5 380742008-04-13 Christian Franke <franke@computer.org>
38075
38076 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
38077 to create a floppy emulation boot CD when non emulation mode
38078 does not work.
38079 Enable Joliet CD filesystem extension.
38080
9fe86034 380812008-04-13 Robert Millan <rmh@aybabtu.com>
38082
38083 * kern/misc.c (grub_strncat): Fix off-by-one error.
38084 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
38085
38086 * kern/env.c (grub_env_context_close): Clear current context, not
38087 previous one.
38088 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38089
38090 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38091
7ceeee39 380922008-04-13 Robert Millan <rmh@aybabtu.com>
38093
38094 Improve robustness when handling LVM.
38095
38096 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 38097 (and leave `*p' unmodified).
7ceeee39 38098 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38099 through it.
38100 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38101 iterating through it.
38102 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38103 through it.
fe6b695a 38104 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 38105 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38106 Don't assume `vg->pvs != NULL' when iterating through it.
38107
58cd3d85 381082008-04-13 Robert Millan <rmh@aybabtu.com>
38109
38110 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38111 * genmk.rb (partmap): New variable.
38112 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38113 (#{partmap}): New target rule.
38114 * genpartmaplist.sh: New file.
38115 * Makefile.in (pkglib_DATA): Add partmap.lst.
38116 (partmap.lst): New target rule.
38117 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38118 modules (including all partition maps), instead of preloading them.
38119
78b51059 381202007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38121
38122 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38123 `linux-boot-prober' (if installed) to detect other operating
38124 systems which are installed on the computer and add them to
38125 the boot menu.
38126 * conf/common.rmk: Build and install 30_os-prober.
38127
a91627b4 381282008-04-12 Robert Millan <rmh@aybabtu.com>
38129
38130 * kern/powerpc/ieee1275/init.c: Move from here ...
38131 * kern/ieee1275/init.c: ... to here. Update all users.
38132
38133 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38134 * kern/ieee1275/cmain.c: ... to here. Update all users.
38135
38136 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38137 * kern/ieee1275/openfw.c: ... to here. Update all users.
38138
38139 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38140 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38141
322562ea 381422008-04-10 Pavel Roskin <proski@gnu.org>
38143
38144 * configure.ac: Always use "_cv_" in cache variables for
38145 compatibility with Autoconf 2.62.
38146
a02a73c5 381472008-04-07 Robert Millan <rmh@aybabtu.com>
38148
38149 Revert grub/machine/init.h addition by Pavel (since it breaks on
38150 i386-ieee1275 and others):
38151 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38152 * util/powerpc/ieee1275/misc.c: Likewise.
38153
25c024b1 381542008-04-07 Robert Millan <rmh@aybabtu.com>
38155
38156 * util/grub-probe.c (probe): Improve error message.
38157
3cbd2f98 381582008-04-07 Robert Millan <rmh@aybabtu.com>
38159
38160 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38161 (this prevents the presence of a bogus entry from ruining the whole
38162 thing).
38163
87a297bf 381642008-04-06 Pavel Roskin <proski@gnu.org>
38165
36747a62 38166 * util/biosdisk.c: Include grub/util/biosdisk.h.
38167 * util/grub-fstest.c (execute_command): Make static.
38168 * util/grub-mkdevicemap.c (check_device): Likewise.
38169 * util/i386/pc/misc.c: Include grub/machine/init.h.
38170 * util/powerpc/ieee1275/misc.c: Likewise.
38171 * util/lvm.c: Include grub/util/lvm.h.
38172 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38173 grub/cache.h.
38174 * util/raid.c: Include grub/util/raid.h.
38175 (grub_util_getdiskname): Make static.
38176
87a297bf 38177 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38178 grub_hostfs_fini(), as they are called from grub_init_all() and
38179 grub_fini_all() respectively. This fixes an infinite loop in
38180 grub-fstest due to double registration of hostfs.
38181 Reported by Christian Franke <Christian.Franke@t-online.de>
38182
f6ce7629 381832008-04-05 Pavel Roskin <proski@gnu.org>
38184
38185 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38186 all 8 functions. Otherwise, probe function 0 only.
38187
070e49e4 381882008-04-04 Pavel Roskin <proski@gnu.org>
38189
8b088a4c 38190 * commands/lspci.c (grub_lspci_iter): Print the bus number
38191 correctly.
38192
4f657021 38193 * commands/lspci.c (grub_pci_classes): Fix typos.
38194 (grub_lspci_iter): Don't print func twice. Print vendor ID
38195 before device ID, as it's normally done.
38196
070e49e4 38197 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38198 Fix signedness warnings.
38199 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38200 Likewise.
38201 * util/ieee1275/get_disk_name.c: Include config.h so that
38202 _GNU_SOURCE is defined and getline() is declared. Mark an
38203 unused argument as such. Fix a signedness warning.
38204
ba7328dc 382052008-04-02 Pavel Roskin <proski@gnu.org>
38206
26887f22 38207 * genkernsyms.sh.in: Use more robust assignments for CC and
38208 srcdir. Quote srcdir.
38209 * gensymlist.sh.in: Likewise. Assert at the compile time that
38210 the symbol table is not empty.
38211
ba7328dc 38212 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38213 * fs/cpio.c (grub_cpio_read): Likewise.
38214
0f582c6b 382152008-04-01 Pavel Roskin <proski@gnu.org>
38216
4b6e1995 38217 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38218 * disk/host.c (grub_host_open): Likewise.
38219 * disk/loopback.c (grub_loopback_open): Likewise.
38220 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38221 disk->id as in disk/host.c, not a multi-character constant.
38222
828a2768 38223 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38224 later is obsolete, potentially dangerous and sets a bad example.
38225 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38226 * util/misc.c (grub_util_get_image_size): Likewise.
38227
2bb4fb47 38228 * disk/loopback.c (options): Improve help for "--partitions".
38229
0f582c6b 38230 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38231 options to align them with the short options, e.g. "echo -e".
38232
a33224e0 382332008-03-31 Bean <bean123ch@gmail.com>
38234
38235 * video/reader/png.c (grub_png_data): New member is_16bit and
38236 image_data.
38237 (grub_png_decode_image_header): Detect 16 bit png image.
38238 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38239 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38240 (grub_video_reader_png): Release memory occupied by image_data.
38241
38242 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38243 4096 bytes.
38244 (grub_nfs_mount): Skip the test for sector per cluster.
38245
38246 * include/grub/ntfs.h (MAX_SPC): Removed.
38247
86cb4f54 382482008-03-31 Bean <bean123ch@gmail.com>
38249
38250 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38251 (grub_probe_SOURCES): Add fs/afs.c.
38252 (grub_fstest_SOURCES): Likewise.
38253 (afs_mod_SOURCES): New variable.
38254 (afs_mod_CFLAGS): Likewise.
38255 (afs_mod_LDFLAGS): Likewise.
38256
38257 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38258 (grub_emu_SOURCES): Likewise.
38259
38260 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38261
38262 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38263
38264 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38265
38266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38267
38268 * fs/afs.c: New file.
38269
17c74c21 382702008-03-30 Pavel Roskin <proski@gnu.org>
38271
4cb68e89 38272 * disk/host.c: Include grub/misc.h to fix a warning.
38273 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38274 warnings about implicit declarations.
38275
8790bb04 38276 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38277 variable.
38278 * include/grub/i386/loader.h: Change declaration of
38279 grub_linux_boot() to match what grub_loader_set() expects.
38280 * util/getroot.c (grub_guess_root_device): Return const char* to
38281 fix a warning.
38282 * util/grub-probe.c (probe): Fix a warning about uninitialized
38283 abstraction_name variable.
38284 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38285 second argument as unused to fix a warning.
38286
9a3f3296 38287 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38288 missing grub_error() call.
38289
0ecef90d 38290 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38291 2.60 and newer uses it to define datadir.
38292
0bf6d401 38293 * commands/sleep.c: Fix warning about implicit declaration.
38294 * disk/memdisk.c: Likewise.
38295 * loader/aout.c: Likewise.
38296 * loader/i386/bsd_normal.c: Likewise.
38297 * util/grub-probe.c: Likewise.
38298
7cdacf97 38299 * commands/i386/cpuid.c (has_longmode): Make static.
38300 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38301 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38302
17c74c21 38303 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38304 GDT. This is more robust, as %ds can change.
38305 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38306 calling real_to_prot().
38307 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38308
80a3e68b 383092008-03-28 Pavel Roskin <proski@gnu.org>
38310
38311 * kern/i386/pc/startup.S: Assert that uncompressed functions
38312 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38313 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38314 code, as they push parts of the code (error handlers) beyond
38315 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38316 code as correctness and size.
38317
77bcd272 383182008-03-28 Pavel Roskin <proski@gnu.org>
38319
38320 * kern/i386/pc/startup.S
38321 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38322 data block address to the real mode, keep offset minimal. This
38323 works around a bug in AWARD BIOS on old Athlon systems, which
38324 makes CD detection hang.
38325
c5dfd43b 383262008-03-26 Pavel Roskin <proski@gnu.org>
38327
38328 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38329 const.
38330 * include/grub/normal.h: Add grub_parse_color_name_pair()
38331 declaration.
38332
bf962df2 383332008-03-24 Bean <bean123ch@gmail.com>
38334
38335 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38336 (cd_count): Removed.
38337 (cd_drive): New variable.
38338 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38339 (grub_biosdisk_call_hook): Likewise.
38340 (grub_biosdisk_iterate): Change cdrom detection method.
38341 (grub_biosdisk_open): Replace cd_start with cd_drive.
38342 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38343 detect cdrom device.
38344
38345 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38346 Removed.
38347 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38348 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38349 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38350 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38351 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38352 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38353 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38354 (grub_biosdisk_cdrp): New structure.
38355 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38356
38357 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38358
38359 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38360 device.
38361
38362 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38363 New function.
38364
68e7fc7a 383652008-03-20 Robert Millan <rmh@aybabtu.com>
38366
38367 Remove 2 TiB limit in ata.mod.
38368 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38369 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38370 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38371 grub_uint64_t instead of grub_uint32_t.
38372
38ad2cf5 383732008-03-05 Bean <bean123ch@gmail.com>
38374
38375 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38376 (grub_multiboot): Set boot device.
38377
38378 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38379
2b89344e 383802008-03-02 Bean <bean123ch@gmail.com>
38381
38382 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38383 symlink_buffer.
38384
87a95d1f 383852008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38386
38387 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38388 texinfo.tex.
38389
38390 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38391 modified.
38392
38393 * docs/fdl.texi: New file.
f19dbdb7 38394
87a95d1f 38395 * docs/mdate-sh: New file. Copied from gnulib.
38396 * docs/texinfo.tex: Likewise.
38397
38398 * config.guess: Updated from gnulib.
38399 * install-sh: Likewise.
38400
7dc15d8e 384012008-02-28 Robert Millan <rmh@aybabtu.com>
38402
38403 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38404 (aout_mod_SOURCES): New variable.
38405 (aout_mod_CFLAGS): Likewise.
38406 (aout_mod_LDFLAGS): Likewise.
38407
38408 * conf/i386-ieee1275.rmk: Likewise.
38409
b00ab696 384102008-02-28 Robert Millan <rmh@aybabtu.com>
38411
38412 * util/update-grub.in: Reorganise terminal validity check. Accept
38413 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38414 Based on suggestion by Franklin PIAT.
38415
79ca2d78 384162008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38417
38418 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38419 function.
38420 * util/getroot.c (grub_util_check_block_device): New function that
38421 returns the given argument if it is a block device and returns NULL else.
38422 * util/grub-probe.c (argument_is_device): New variable.
38423 (probe): Promote device_name from a variable to an argument. Receive
38424 device_name from grub_util_check_block_device() if path is NULL and from
38425 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 38426 (options): Introduce new parameter '-d, --device'.
79ca2d78 38427 (main): Add description of the new parameter to the help screen.
38428 Rename path variable to argument. Set argument_is_device if the '-d'
38429 option is given. Pass argument to probe() depending on
38430 argument_is_device.
38431
0d16e571 384322008-02-24 Bean <bean123ch@gmail.com>
38433
38434 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38435 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38436 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38437 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38438 (GRUB_ISO9660_VOLDESC_END): Likewise.
38439 (grub_iso9660_primary_voldesc): New member escape.
38440 (grub_iso9660_data): New member joliet.
38441 (grub_iso9660_convert_string): New function.
38442 (grub_iso9660_mount): Detect joliet extension.
38443 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38444 (grub_iso9660_iso9660_label): Likewise.
38445
38446 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38447 (grub_setup_SOURCES): Add fs/udf.c.
38448 (grub_fstest_SOURCES): Likewise.
38449 (udf_mod_SOURCES): New variable.
38450 (udf_mod_CFLAGS): Likewise.
38451 (udf_mod_LDFLAGS): Likewise.
38452
38453 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38454 (grub_emu_SOURCES): Likewise.
38455
38456 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38457
38458 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38459
38460 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38461
38462 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38463
38464 * fs/udf.c: New file.
38465
8a594a17 384662008-02-24 Robert Millan <rmh@aybabtu.com>
38467
38468 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38469 (normal/lexer.c_DEPENDENCIES): New variables.
38470 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38471 (normal/lexer.c_DEPENDENCIES): Likewise.
38472 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38473 (normal/lexer.c_DEPENDENCIES): Likewise.
38474 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38475 (normal/lexer.c_DEPENDENCIES): Likewise.
38476 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38477 (normal/lexer.c_DEPENDENCIES): Likewise.
38478 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38479 (normal/lexer.c_DEPENDENCIES): Likewise.
38480
2dc33c03 384812008-02-23 Robert Millan <rmh@aybabtu.com>
38482
38483 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38484 since they were intended to be in hex. This didn't break previously
38485 because of a bug in gpt_partition_map_iterate() (see below).
38486
38487 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38488 when checking the validity of GPT header.
38489 Remove `partno', since it always provides the same information as `i'.
38490
f6f4cfb0 384912008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38492
38493 * include/grub/efi/time.h: Fix a wrong comment.
38494
79ff665f 384952008-02-19 Pavel Roskin <proski@gnu.org>
38496
38497 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38498 message.
38499
d38e24c2 385002008-02-19 Bean <bean123ch@gmail.com>
38501
38502 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38503 (aout_mod_SOURCES): New variable.
38504 (aout_mod_CFLAGS): Likewise.
38505 (aout_mod_LDFLAGS): Likewise.
38506 (_bsd_mod_SOURCES): New variable.
38507 (_bsd_mod_CFLAGS): Likewise.
38508 (_bsd_mod_LDFLAGS): Likewise.
38509 (bsd_mod_SOURCES): New variable.
38510 (bsd_mod_CFLAGS): Likewise.
38511 (bsd_mod_LDFLAGS): Likewise.
38512
38513 * include/grub/aout.h: New file.
38514
38515 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38516
38517 * include/grub/i386/bsd.h: New file.
38518
38519 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38520 to make it public.
38521
38522 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38523 function is called, so that it's possible to change it inside the hook.
38524 (grub_elf64_load): Likewise.
38525 (grub_elf_file): Don't close the file if elf header is not found.
38526 (grub_elf_close): Close the file if grub_elf_file fails (The new
38527 grub_elf_file won't close it).
38528 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38529 (grub_elf64_size): Likewise.
38530
38531 * kern/i386/loader.S (grub_unix_real_boot): New function.
38532
38533 * loader/aout.c: New file.
38534
38535 * loader/i386/bsd.c: New file.
38536
38537 * loader/i386/bsd_normal.c: New file.
38538
38539 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38540
38541 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 38542 can test other formats.
d38e24c2 38543
b93bdb0f 385442008-02-19 Robert Millan <rmh@aybabtu.com>
38545
38546 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38547 (grub_gpt_partition_type_empty): Redefine with macro from
38548 `<grub/gpt_partition.h>'.
38549 (gpt_partition_map_iterate): Adjust partition type comparison.
38550
38551 Export `entry' as partmap-specific `part.data' struct.
38552 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38553
38554 * include/grub/gpt_partition.h (grub_gpt_header)
38555 (grub_gpt_partentry): ... to here (new file).
38556
38557 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38558
38559 (grub_gpt_partition_type_bios_boot): New const variable, defined
38560 with macro from `<grub/gpt_partition.h>'.
38561
38562 (setup): Replace `first_start' with `embed_region', which keeps
38563 track of the embed region (and is partmap-agnostic).
38564
38565 Replace find_first_partition_start() with find_usable_region(),
38566 which finds a usable region for embedding using partmap-specific
38567 knowledge (supports PC/MSDOS and GPT).
38568
38569 Fix all assumptions that the embed region start at sector 1, using
38570 `embed_region.start' from now on. Similarly, use `embed_region.end'
38571 rather than `first_start' to calculate available size.
38572
38573 In grub_util_info() message, replace "into after the MBR" with an
38574 indication of the specific sector our embed region starts at.
38575
66cb40f6 385762008-02-19 Robert Millan <rmh@aybabtu.com>
38577
38578 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38579 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38580 `commands/reboot.c'.
38581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38582 (halt_mod_SOURCES): Likewise.
38583 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38584 (halt_mod_SOURCES): Likewise.
38585
b7202015 385862008-02-17 Christian Franke <franke@computer.org>
38587
38588 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38589
32b0fc49 385902008-02-17 Robert Millan <rmh@aybabtu.com>
38591
38592 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38593 set `first_start' to 0 for non-PC/MSDOS partition maps.
38594
aca63502 385952008-02-16 Robert Millan <rmh@aybabtu.com>
38596
38597 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38598 do not assume partition map is PC/MSDOS before performing checks that
38599 are specific to that layout.
38600
0de8be86 386012008-02-13 Robert Millan <rmh@aybabtu.com>
38602
38603 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38604 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38605 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38606
c3db8364 386072008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38608
38609 * configure.ac: Only a cosmetic change on the handling of
38610 -fno-stack-protector.
38611
f714229e 386122008-02-12 Alexandre Boeglin <alex@boeglin.org>
38613
c3db8364 38614 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38615 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38616 reboot.c.
f714229e 38617 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38618 (halt_mod_SOURCES): New variable.
38619 (halt_mod_CFLAGS): Likewise.
38620 (halt_mod_LDFLAGS): Likewise.
38621 (reboot_mod_SOURCES): Likewise.
38622 (reboot_mod_CFLAGS): Likewise.
38623 (reboot_mod_LDFLAGS): Likewise.
38624
c3db8364 38625 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38626 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38627 reboot.c.
f714229e 38628 (halt_mod_SOURCES): Likewise.
38629 (reboot_mod_SOURCES): Likewise.
38630
c3db8364 38631 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38632 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 38633 (reboot_mod_SOURCES): Likewise.
38634
38635 * commands/i386/pc/reboot.c: merge this file ...
38636
38637 * commands/ieee1275/reboot.c: ... and this file ...
38638
38639 * commands/reboot.c: ... to this file.
c3db8364 38640 Add some precompiler directive to include the correct header for
38641 each machine.
f714229e 38642
38643 * commands/ieee1275/halt.c: move this file ...
38644
38645 * commands/halt.c: ... to here.
c3db8364 38646 Add some precompiler directive to include the correct header for
38647 each machine.
f714229e 38648
38649 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38650 (grub_halt): Likewise.
38651
38652 * kern/efi/efi.c (grub_reboot): New function.
38653 (grub_halt): Likewise.
38654
c74493e0 386552008-02-12 Robert Millan <rmh@aybabtu.com>
38656
38657 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38658 /dev (like it is done for /dev/mapper). This doesn't provide support
38659 for EVMS, but at least it is now easy to identify the problem when it
38660 arises.
38661
d0db4b04 386622008-02-11 Robert Millan <rmh@aybabtu.com>
38663
38664 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38665 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38666 comparing it with -1, not 0.
38667
bf748642 386682008-02-10 Robert Millan <rmh@aybabtu.com>
38669
38670 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38671 `disk/lvm.c'.
38672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38673 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38674
38675 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38676 `disk/lvm.c' to the end of the list.
38677 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38678 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38679
b5db202a 386802008-02-10 Robert Millan <rmh@aybabtu.com>
38681
38682 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38683 grub_print_error() instead. This will let user know why we're entering
38684 rescue mode.
38685 Based on suggestions from Sam Morris.
38686
83abee31 386872008-02-10 Alexandre Boeglin <alex@boeglin.org>
38688
38689 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38690 on remaining N args, instead of "--" arg N times.
38691
78d5a08b 386922008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38693
38694 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38695 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38696 pattern for unknown glyphs.
38697
68807e5f 386982008-02-09 Robert Millan <rmh@aybabtu.com>
38699
38700 * configure.ac: Probe for `help2man'.
38701 * Makefile.in (builddir): New variable.
38702 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38703 or otherwise add a few flags/options to it.
38704 (install-local): For every executable utility or script that is
38705 installed, invoke $(HELP2MAN) to install a manpage based on --help
38706 output.
38707
38708 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38709 that it doesn't prevent --help from working in build tree.
38710
38711 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38712 with `bug-grub@gnu.org'.
38713 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38714 * util/update-grub.in (usage): New function.
38715 Implement proper argument check, with support for --help and --version
38716 (as well as existing -y).
38717
387182008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 38719
38720 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38721 avoid overwriting previous output.
38722 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38723
c1962162 387242008-02-09 Robert Millan <rmh@aybabtu.com>
38725
38726 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38727 drawing the menu.
38728
3dac2e3f 387292008-02-09 Robert Millan <rmh@aybabtu.com>
38730
38731 * commands/sleep.c: New file.
38732 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38733 (sleep_mod_SOURCES): New variable.
38734 (sleep_mod_CFLAGS): Likewise.
38735 (sleep_mod_LDFLAGS): Likewise.
38736
7a634e08 387372008-02-09 Robert Millan <rmh@aybabtu.com>
38738
38739 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38740 situations in which we can deduce the RAID size and the superblock
38741 doesn't match it.
38742
b92f0c18 387432008-02-09 Robert Millan <rmh@aybabtu.com>
38744
38745 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38746 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38747 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38748
38749 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38750 and return a grub_diskmemberlist_t composed of physical array members.
38751 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38752
38753 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38754 prototype.
38755 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38756 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38757 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38758
38759 * util/grub-probe.c (probe): Move partmap probing code from here ...
38760 (probe_partmap): ... to here.
38761 (probe): Use probe_partmap() once for the disk we're probing, and
38762 additionally, when such disk contains a memberlist() struct member,
38763 once for each disk that is contained in the structure returned by
38764 memberlist().
38765
91a4bf68 387662008-02-09 Robert Millan <rmh@aybabtu.com>
38767
38768 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38769 environment variable to 'all' in order to obtain debug output from
38770 non-util/ code.
38771 * util/i386/pc/grub-setup.c (main): Likewise.
38772
a96f9caa 387732008-02-08 Robert Millan <rmh@aybabtu.com>
38774
38775 * disk/raid.c (grub_raid_scan_device): Check for
38776 `array->device[sb.this_disk.number]' rather than for
38777 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 38778 guaranteed to be accessible.
a96f9caa 38779
b37a9222 387802008-02-08 Robert Millan <rmh@aybabtu.com>
38781
38782 * disk/raid.c: Update copyright.
38783 * fs/cpio.c: Likewise.
38784 * include/grub/raid.h: Likewise.
38785 * loader/i386/pc/multiboot.c: Likewise.
38786 * util/hostfs.c: Likewise.
38787
5626aee1 387882008-02-08 Robert Millan <rmh@aybabtu.com>
38789
38790 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38791 to a grub_disk_t array.
38792 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38793 `device[x]'.
38794 (grub_raid_scan_device): Replace `device[x].name' accesses with
38795 `device[x]->name'. Simplify initialization of `array->device[x]'.
38796
554f0187 387972008-02-08 Robert Millan <rmh@aybabtu.com>
38798
38799 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38800 grub_dprintf() calls.
38801 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38802 error message.
38803
1ec8425d 388042008-02-07 Christian Franke <franke@computer.org>
38805
38806 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38807 instead of fseek and ftell to support large files.
38808 (grub_hostfs_read): Likewise.
38809
f2156fda 388102008-02-07 Robert Millan <rmh@aybabtu.com>
38811
38812 Patch from Jeroen Dekkers.
38813 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 38814 failure, since successfully reading all array members might not be
f2156fda 38815 required.
38816
9216e0e7 388172008-02-06 Robert Millan <rmh@aybabtu.com>
38818
38819 * util/grub-probe.c (probe): Simplify partmap probing (with the
38820 assumption that the first word up to the underscore equals to
38821 the module name).
38822
b0dfd29a 388232008-02-06 Christian Franke <franke@computer.org>
38824
38825 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38826 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38827 last block of a cpio or tar stream.
38828 Check for "TRAILER!!!" instead of any empty data
38829 block to detect last block of a cpio stream.
38830 (grub_cpio_dir): Fix constness of variable np.
38831 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38832 cpio or tar trailer is detected. This fixes a crash
38833 on open of a non existing file.
38834
c32865bf 388352008-02-05 Bean <bean123ch@gmail.com>
38836
38837 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38838 address of entry.
38839 (grub_multiboot_load_elf64): Likewise.
38840 (grub_multiboot): Initialize mbi structure.
38841
38842 * util/grub-fstest.c: Don't include unused header file script.h.
38843
fe6b695a 38844 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 38845 of file.
38846 (grub_fstest_SOURCES): Likewise.
38847
409480b7 388482008-02-05 Robert Millan <rmh@aybabtu.com>
38849
38850 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38851 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38852 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38853 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38854
38855 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38856 (translation_table): Replace hardcoded values with macros
38857 provided by `<grub/term.h>'.
38858
38859 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38860 (keyboard_map): Correct/add a few values, with macros provided
38861 by `<grub/term.h>'.
38862 (keyboard_map_shift): Zero values that don't differ from their
38863 `keyboard_map' equivalents.
38864 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38865 Discard the second scan code that is always sent by Caps lock.
38866 Only use `keyboard_map_shift' when it provides a non-zero value,
38867 otherwise fallback to `keyboard_map'.
38868
99fadbaa 388692008-02-04 Bean <bean123ch@gmail.com>
38870
38871 * Makefile.in (enable_grub_fstest): New variable.
38872
38873 * conf/common.rmk (grub_fstest_init.lst): New rule.
38874 (grub_fstest_init.h): Likewise.
38875 (grub_fstest_init.c): Likewise.
38876 (util/grub-fstest.c_DEPENDENCIES): New variable.
38877 (grub_fstest_SOURCES): Likewise.
38878
38879 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38880
38881 * util/grub-fstest.c: New file.
38882
bf567c50 388832008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38884
38885 Make grub-setup handle a separate root device.
f19dbdb7 38886
bf567c50 38887 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38888 so that the root device can be compared with the destination
38889 device.
38890 When embedding the core image, if the root and destination devices
38891 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38892 0xFF.
38893 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 38894
9be6b98b 388952008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38896
38897 Add support for having a grub directory in a different drive. This
38898 is still only the data handling part.
f19dbdb7 38899
9be6b98b 38900 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38901 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38902 (grub_root_drive): New variable.
38903
38904 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38905 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38906 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38907 as it was.
38908
38909 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38910
38911 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38912 macro.
38913 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38914
38915 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38916 is bogus, because PXE booting does not specify any drive
38917 correctly.
38918
38919 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38920 am not sure if this is really correct.
38921
38922 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38923 is always identical to the boot drive when booting from a CD.
38924
38925 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38926 longer.
38927 (root_drive): New variable.
38928 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38929 (setup_sectors): Push %dx right after popping it, because %dh will
38930 be modified later.
38931 (copy_buffer): Restore %dx.
38932
e0ca0677 389332008-02-03 Robert Millan <rmh@aybabtu.com>
38934
38935 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38936 use `cdboot.img' for cdrom images.
38937
3b3f6629 389382008-02-03 Robert Millan <rmh@aybabtu.com>
38939
38940 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38941 only setup gfxterm when `font' command has succeeded.
38942
d42b3672 389432008-02-03 Robert Millan <rmh@aybabtu.com>
38944
38945 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38946 (grub_rescue_cmd_multiboot_loader)
38947 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38948
fa370ea6 389492008-02-03 Pavel Roskin <proski@gnu.org>
38950
e0c5dacb 38951 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 38952 %edx and %esi from stack only after grub_gate_a20() is called.
38953 grub_gate_a20() clobbers %edx.
38954
f2a76e1d 389552008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38956
38957 * configure.ac (AC_INIT): Bumped to 1.96.
38958
38959 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38960 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38961 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38962 video/readers/png.c.
38963
90fd32d1 389642008-02-03 Bean <bean123ch@gmail.com>
9be665dd 38965
38966 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38967 (cdboot_img_SOURCES): New variable.
38968 (cdboot_img_ASFLAGS): New variable.
38969 (cdboot_img_LDFLAGS): New variable.
38970
38971 * boot/i386/pc/cdboot.S: New file.
38972
38973 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38974 (cd_count): Likewise.
38975 (grub_biosdisk_get_drive): Add support for cd device.
38976 (grub_biosdisk_call_hook): Likewise.
38977 (grub_biosdisk_iterate): Likewise.
38978 (grub_biosdisk_open): Likewise.
38979 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38980 (grub_biosdisk_rw): Support reading from cd device.
38981 (GRUB_MOD_INIT): Iterate cd devices.
38982
38983 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38984 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38985 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38986
38987 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38988
4020aa53 389892008-02-02 Robert Millan <rmh@aybabtu.com>
38990
38991 * commands/read.c: New file.
38992 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38993 (read_mod_SOURCES): New variable.
38994 (read_mod_CFLAGS): Likewise.
38995 (read_mod_LDFLAGS): Likewise.
38996
e03a1132 389972008-02-02 Robert Millan <rmh@aybabtu.com>
38998
38999 * normal/main.c (grub_normal_execute): Check for `menu->size' when
39000 determining whether menu has to be displayed.
39001
58c69220 390022008-02-02 Marco Gerards <marco@gnu.org>
39003
39004 * bus/pci.c: New file.
39005
39006 * include/grub/pci.h: Likewise.
39007
39008 * include/grub/i386/pc/pci.h: Likewise.
39009
39010 * commands/lspci.c: Likewise.
39011
39012 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
39013 `lspci.mod'.
39014 (pci_mod_SOURCES): New variable.
39015 (pci_mod_CFLAGS): Likewise.
39016 (pci_mod_LDFLAGS): Likewise.
39017 (lspci_mod_SOURCES): Likewise.
39018 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 39019 (lspci_mod_LDFLAGS): Likewise.
58c69220 39020
c004e1b4 390212008-02-02 Bean <bean123ch@gmail.com>
39022
39023 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
39024 (grub_ufs_get_file_block): Fix indirect block calculation problem.
39025
39026 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
39027 (grub_xfs_btree_node): New structure.
39028 (grub_xfs_btree_root): New structure.
39029 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
39030 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
39031 (GRUB_XFS_EXTENT_BLOCK): Likewise.
39032 (GRUB_XFS_EXTENT_SIZE): Likewise.
39033 (grub_xfs_read_block): Support btree format type.
39034 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
39035 Use directory block as basic unit.
39036
39037 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
39038
39039 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
39040 __attribute__ ((__regparm__ (1))).
39041
f95562bf 390422008-02-01 Robert Millan <rmh@aybabtu.com>
39043
39044 Correct a mistake in previous commit.
39045
39046 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
39047 top.
39048 (normal/command.c_DEPENDENCIES): New variable.
39049
7d31f41f 390502008-02-01 Robert Millan <rmh@aybabtu.com>
39051
39052 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
39053 top.
39054 (normal/command.c_DEPENDENCIES): New variable.
39055 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
39056 * conf/i386-ieee1275.rmk: Likewise.
39057 * conf/i386-linuxbios.rmk: Likewise.
39058 * conf/i386-pc.rmk: Likewise.
39059 * conf/sparc64-ieee1275.rmk: Likewise.
39060 * conf/powerpc-ieee1275.rmk: Likewise.
39061 (grub_emu_SOURCES): Add `fs/fshelp.c'.
39062
39063 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
39064
60b6be74 390652008-02-01 Robert Millan <rmh@aybabtu.com>
39066
39067 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
39068 call at beginning of function.
39069
078522ab 390702008-01-31 Pavel Roskin <proski@gnu.org>
39071
39072 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 39073 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
39074 (grub_mkrescue_SOURCES): Likewise.
078522ab 39075 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
39076
ccaa8a5f 390772008-01-30 Robert Millan <rmh@aybabtu.com>
39078
39079 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
39080 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
39081 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
39082 (grub_probe_SOURCES): ... to here.
39083
39084 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
39085 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
39086 * conf/i386-ieee1275.rmk: Likewise.
39087 * conf/i386-linuxbios.rmk: Likewise.
39088 * conf/powerpc-ieee1275.rmk: Likewise.
39089
ae5a9cd7 390902008-01-30 Tristan Gingold <gingold@free.fr>
39091
39092 * kern/rescue.c: Silently accept empty lines.
39093
70bc2ef2 390942008-01-29 Bean <bean123ch@gmail.com>
39095
39096 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39097 (real_code_2): Code cleanup and change comment style.
39098 (move_memory): Avoid using 32-bit address mode.
39099
6a4d50ea 391002008-01-29 Bean <bean123ch@gmail.com>
39101
39102 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39103 (png_mod_SOURCES): New variable.
39104 (png_mod_CFLAGS): Likewise.
39105 (png_mod_LDFLAGS): Likewise.
39106
39107 * video/readers/png.c: New file.
39108
11cc30ac 391092008-01-28 Robert Millan <rmh@aybabtu.com>
39110
39111 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39112 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39113 `ifndef GRUB_MOD_GAP' hack.
39114 * util/elf/grub-mkimage.c (add_segments): Likewise.
39115
3abc589f 391162008-01-27 Robert Millan <rmh@aybabtu.com>
39117
39118 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39119 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 39120 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 39121
e1907778 391222008-01-27 Robert Millan <rmh@aybabtu.com>
39123
39124 Get grub-emu to build again (including parallel builds).
39125
39126 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39127 Split into ...
39128 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39129 (normal/execute.c_DEPENDENCIES): ... this, ...
39130 (grub-emu_DEPENDENCIES): ... and this.
39131
39132 * conf/i386-efi.rmk: Likewise.
39133 * conf/i386-linuxbios.rmk: Likewise.
39134 * conf/i386-ieee1275.rmk: Likewise.
39135 * conf/powerpc-ieee1275.rmk: Likewise.
39136 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39137
2216b101 391382008-01-27 Robert Millan <rmh@aybabtu.com>
39139
39140 * NEWS: Add a few items.
39141
f75172d9 391422008-01-27 Robert Millan <rmh@aybabtu.com>
39143
39144 Fix parallel builds with grub-emu. Based on earlier commit for
39145 grub-probe and grub-setup.
39146
39147 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39148 (util/grub-emu.c_DEPENDENCIES): ... this.
39149 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39150 (util/grub-emu.c_DEPENDENCIES): ... this.
39151 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39152 (util/grub-emu.c_DEPENDENCIES): ... this.
39153 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39154 (util/grub-emu.c_DEPENDENCIES): ... this.
39155 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39156 (util/grub-emu.c_DEPENDENCIES): ... this.
39157
3f51de77 391582008-01-27 Pavel Roskin <proski@gnu.org>
39159
39160 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39161 to create a gap between _end and the modules added to the image
39162 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39163 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39164 * util/elf/grub-mkimage.c (add_segments): Likewise.
39165
2033f53e 391662008-01-26 Pavel Roskin <proski@gnu.org>
39167
39168 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39169 just return an error.
39170
22da1f6f 391712008-01-26 Bean <bean123ch@gmail.com>
39172
39173 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39174 (grub_reiserfs_get_item): Save offset of the next item.
39175 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39176
2a9525e6 391772008-01-25 Robert Millan <rmh@aybabtu.com>
39178
39179 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39180 make all filesystem sources appear together (possibly fixing omissions
39181 while at it).
39182 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39183 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39184 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39185 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39186
39187 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39188 add `kern/file.c'.
39189 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39190 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39191 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39192 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39193
39194 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39195 (probe): Add a sanity check to make sure of our ability to read
39196 requested files when probing for filesystem type.
39197
39198 * genmk.rb: Update copyright year (2007).
39199
39200 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39201 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39202 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39203 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39204 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39205 : Remove function prototypes.
39206
b95f71b5 392072008-01-25 Robert Millan <rmh@aybabtu.com>
39208
39209 Revert my previous commits (based on wrong assumption of how grub_errno
39210 works).
39211
fe6b695a 39212 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 39213 * kern/file.c (grub_file_open): Likewise.
39214
d08bbb49 392152008-01-24 Pavel Roskin <proski@gnu.org>
39216
39217 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39218 that hang if GRUB tries to setup colors.
39219 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39220 colors for firmwares that don't support it.
39221 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39222 Recognize Open Hack'Ware, set flags to work around its
39223 limitations.
39224
605e36ed 392252008-01-24 Robert Millan <rmh@aybabtu.com>
39226
39227 * kern/file.c (grub_file_open): Do not account previous failures of
39228 unrelated functions when grub_errno is checked for.
39229 Reported by Oleg Strikov.
39230
bac332a1 392312008-01-24 Bean <bean123ch@gmail.com>
39232
39233 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39234 (grub_ufs_sblock): New member volume name.
39235 (grub_ufs_find_file): Fix string copy bug.
39236 (grub_ufs_label): Implement this function properly.
39237
39238 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39239 (grub_hfs_iterate_records): Use the correct file number for extents
39240 and catalog file. Fix problem in next index calculation.
39241 (grub_hfs_find_node): Replace recursive function call with loop.
39242 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39243
15c80c09 392442008-01-23 Robert Millan <rmh@aybabtu.com>
39245
39246 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39247 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39248 (grub_multiboot2_real_boot): New function prototype.
39249
39250 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39251 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39252
39253 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39254 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39255
305338fd 392562008-01-23 Robert Millan <rmh@aybabtu.com>
39257
39258 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39259 #ifdef'ed out grub_printf().
39260
3ea52685 392612008-01-23 Robert Millan <rmh@aybabtu.com>
39262
39263 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39264 grub_dprintf calls, since they make "debug=all" mode unusable.
39265 (grub_console_checkkey): Likewise.
39266
5882ae4b 392672008-01-23 Robert Millan <rmh@aybabtu.com>
39268
39269 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39270 `term/i386/pc/at_keyboard.c'.
39271 (pkglib_MODULES): Add `serial.mod'.
39272 (serial_mod_SOURCES): New variable.
39273 (serial_mod_CFLAGS): Likewise.
39274 (serial_mod_LDFLAGS): Likewise.
39275
39276 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39277 `<grub/powerpc/ieee1275/console.h>'.
39278 (grub_keyboard_controller_init): New function prototype.
39279 (grub_console_checkkey): Likewise.
39280 (grub_console_getkey): Likewise.
39281
39282 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39283 keyboard on i386.
39284
39285 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39286 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39287
06ab5303 392882008-01-23 Robert Millan <rmh@aybabtu.com>
39289
39290 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39291 present, "(memdisk)/boot/grub" becomes the default prefix.
39292
39293 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39294 a memdisk tarball with all the modules. Add --overlay=DIR option that
39295 allows users to overlay additional files into the image.
39296
dbb475a4 392972008-01-23 Robert Millan <rmh@aybabtu.com>
39298
39299 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39300 and `machine/memory.h'.
39301 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39302 (_multiboot_mod_SOURCES): New variable.
39303 (_multiboot_mod_CFLAGS): Likewise.
39304 (_multiboot_mod_LDFLAGS): Likewise.
39305 (multiboot_mod_SOURCES): Likewise.
39306 (multiboot_mod_CFLAGS): Likewise.
39307 (multiboot_mod_LDFLAGS): Likewise.
39308
39309 * include/grub/i386/ieee1275/loader.h: New file.
39310
39311 * include/grub/i386/ieee1275/machine.h: Likewise.
39312
39313 * include/grub/i386/ieee1275/memory.h: Likewise.
39314
39315 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39316 variable declaration.
39317 (grub_os_area_size): Likewise.
39318
39319 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39320 (grub_lower_mem, grub_upper_mem): New variables.
39321 (grub_stop_floppy): New function (just to make
39322 grub_multiboot2_real_boot() happy).
39323
39324 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39325 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39326 (grub_stop): New function.
39327 Include `"../realmode.S"' and `"../loader.S"'.
39328
39329 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39330 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39331
39332 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39333 rely on grub_multiboot2_real_boot() for final boot.
39334
25638629 393352008-01-22 Robert Millan <rmh@aybabtu.com>
39336
39337 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39338 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39339 device that doesn't look like an SD card.
39340 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39341 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39342 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39343 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39344 found.
39345
9dad816d 393462008-01-22 Robert Millan <rmh@aybabtu.com>
39347
39348 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39349 avoid claiming over our own code.
39350
34842f2d 393512008-01-22 Bean <bean123ch@gmail.com>
39352
39353 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39354 (jpeg_mod_SOURCES): New variable.
39355 (jpeg_mod_CFLAGS): Likewise.
39356 (jpeg_mod_LDFLAGS): Likewise.
39357
39358 * video/readers/jpeg.c : New file.
39359
44023a28 393602008-01-22 Bean <bean123ch@gmail.com>
39361
39362 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39363 there are no more items.
39364
bc2d8ac6 393652008-01-21 Robert Millan <rmh@aybabtu.com>
39366
39367 * kern/mm.c (grub_mm_init_region): Improve debug message.
39368
261bd4bc 393692008-01-21 Robert Millan <rmh@aybabtu.com>
39370
39371 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39372 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39373 address.
39374 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39375 a C macro.
39376 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39377 Indicates start of upper memory.
39378 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39379 (generate_image): Abort when image size is big enough to corrupt
39380 upper memory.
39381
39382 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39383 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39384 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39385 instead of hardcoding 0xA0000.
39386 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39387 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39388 instead of hardcoding 0xA0000.
39389
f970b55e 393902008-01-21 Robert Millan <rmh@aybabtu.com>
39391
39392 * disk/memdisk.c (memdisk_size): New variable.
39393 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39394 `memdisk_size'.
39395 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39396 image to dynamic memory.
39397 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39398 `memdisk_size'. Free memdisk block.
39399
1a8b0526 394002008-01-21 Robert Millan <rmh@aybabtu.com>
39401
39402 Fix detection of very small filesystems (like tar).
39403
39404 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39405 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39406 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39407 a problem with this disk).
39408
6e9b4aab 394092008-01-21 Robert Millan <rmh@aybabtu.com>
39410
39411 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39412 on grub_biosdisk_rw_standard() error.
39413
0d8837b2 394142008-01-21 Robert Millan <rmh@aybabtu.com>
39415
39416 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39417 recent changes.
39418 * kern/elf.c: Likewise.
39419 * kern/ieee1275/ieee1275.c: Likewise.
39420 * kern/powerpc/ieee1275/openfw.c: Likewise.
39421 * term/ieee1275/ofconsole.c: Likewise.
39422
ffd36e34 394232008-01-21 Robert Millan <rmh@aybabtu.com>
39424
39425 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39426
3f0093d0 39427 * include/grub/kernel.h (grub_arch_memdisk_addr)
39428 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 39429
3f0093d0 39430 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39431 (grub_arch_memdisk_size): ... to here.
ffd36e34 39432
6c391b21 394332008-01-21 Robert Millan <rmh@aybabtu.com>
39434
39435 Mostly based on bugfix from Bean.
39436
39437 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39438 attribute with hook() parameter.
39439 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39440 declaration.
39441 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39442 attribute with hook() parameter.
39443 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39444 declaration.
39445
55a581dc 394462008-01-21 Robert Millan <rmh@aybabtu.com>
39447
39448 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39449 (pkglib_MODULES): Add `memdisk.mod'.
39450 (memdisk_mod_SOURCES): New variable.
39451 (memdisk_mod_CFLAGS): Likewise.
39452 (memdisk_mod_LDFLAGS): Likewise.
39453
39454 * disk/memdisk.c: New file.
39455
39456 * include/grub/disk.h (grub_disk_dev_id): Add
39457 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39458
39459 * include/grub/i386/pc/kernel.h
39460 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39461 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39462 (grub_kernel_image_size): New variable declaration.
39463 (grub_total_module_size): Likewise.
39464 (grub_memdisk_image_size): Likewise.
39465
39466 * include/grub/i386/pc/memory.h
39467 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39468
39469 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39470 (grub_arch_memdisk_addr): New variable declaration.
39471 (grub_arch_memdisk_size): Likewise.
39472
39473 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39474 (grub_arch_memdisk_size): Likewise.
39475
39476 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39477 (codestart): Replace hardcoded `0x100000' with
39478 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39479
39480 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39481 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39482 not NULL, append the contents of the file it refers to, at the end of
39483 the compressed kernel image. Initialize `grub_memdisk_image_size'
39484 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39485 (options): Add "memdisk"|'m' option.
39486 (main): Parse --memdisk|-m option, and pass user-provided path as
39487 parameter to generate_image().
39488
3d7f54c9 394892008-01-20 Robert Millan <rmh@aybabtu.com>
39490
39491 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39492 grub_dprintf() calls from here ...
39493 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39494
0bf74728 394952008-01-20 Robert Millan <rmh@aybabtu.com>
39496
39497 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39498
39499 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39500 declaration.
39501 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39502 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39503 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 39504 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 39505 property).
39506 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39507 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39508
33bf70a7 395092008-01-19 Robert Millan <rmh@aybabtu.com>
39510
fe6b695a 39511 Get rid of confusing function (superseded by
33bf70a7 39512 `grub_ieee1275_get_integer_property')
39513 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39514 prototype.
39515 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39516 function.
39517 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39518 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 39519 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 39520
e2da7d26 395212008-01-19 Robert Millan <rmh@aybabtu.com>
39522
39523 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39524 command after "shut-down", since implementations differ on which
39525 the command for halt is.
39526
59f1fd8d 395272008-01-19 Robert Millan <rmh@aybabtu.com>
39528
39529 * include/grub/i386/linuxbios/console.h: Add header protection.
39530 (grub_keyboard_controller_init): New function prototype.
39531 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39532 (KEYBOARD_COMMAND_READ): Likewise.
39533 (KEYBOARD_COMMAND_WRITE): Likewise.
39534 (KEYBOARD_SCANCODE_SET1): Likewise.
39535 (grub_keyboard_controller_write): New function.
39536 (grub_keyboard_controller_read): Likewise.
39537 (grub_keyboard_controller_init): Likewise.
39538
39539 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39540 (grub_console_init): On coreboot/LinuxBIOS, call
39541 grub_keyboard_controller_init().
39542
5f5a7c15 395432008-01-19 Robert Millan <rmh@aybabtu.com>
39544
39545 PowerPC changes provided by Pavel Roskin.
39546
39547 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39548 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39549 don't rely on cmain() doing it.
39550 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39551 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39552
1210e168 395532008-01-16 Robert Millan <rmh@aybabtu.com>
39554
39555 * include/grub/i386/linuxbios/memory.h
39556 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39557 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39558 receive `table_header' as argument. Instead, probe for it in the
39559 known memory ranges where it can be present.
39560 (grub_available_iterate): Do not pass a fixed `table_header' address
39561 to grub_linuxbios_table_iterate().
39562
3d04eab8 395632008-01-15 Robert Millan <rmh@aybabtu.com>
39564
39565 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39566 * conf/i386-ieee1275.rmk: New file.
39567 * include/grub/i386/ieee1275/console.h: Likewise.
39568 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39569 * include/grub/i386/ieee1275/kernel.h: Likewise.
39570 * include/grub/i386/ieee1275/time.h: Likewise.
39571 * kern/i386/ieee1275/init.c: Likewise.
39572 * kern/i386/ieee1275/startup.S: Likewise.
39573
d1bc1b73 395742008-01-15 Robert Millan <rmh@aybabtu.com>
39575
39576 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39577 when pointers are 32-bit (but still do set it to one when they are
39578 64-bit).
39579
66a65807 395802008-01-15 Robert Millan <rmh@aybabtu.com>
39581
39582 * include/grub/ieee1275/ieee1275.h
39583 (grub_ieee1275_get_integer_property): New function prototype.
39584
39585 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39586 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 39587 grub_ieee1275_get_property() to handle endianness.
66a65807 39588
39589 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39590 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 39591 where appropriate.
66a65807 39592 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39593 (grub_map): Likewise.
39594 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39595
a83ccafd 395962008-01-15 Bean <bean123ch@gmail.com>
39597
39598 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39599 (grub_script_execute_cmdline): Reset grub_errno.
39600
39601 * normal/main.c (read_config_file): Reset grub_errno.
39602
39603 * normal/parse.y (script_init): New.
39604 (script): Move function and menuentry here.
39605 (delimiter): New.
39606 (command): Add delimiter at the end of command.
39607 (commands): Adjust to match the new command.
39608 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 39609 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 39610 (if): Use the new commands.
39611
39612 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39613
df6ecfc6 396142008-01-15 Robert Millan <rmh@aybabtu.com>
39615
39616 * normal/menu.c (run_menu): Move timeout message from here ...
39617 (print_timeout): ... to here.
39618 (run_menu): Use print_timeout() once during initial draw to print
39619 the whole message, and again in every clock tick to update only
39620 the number of seconds.
39621
87ae25eb 396222008-01-15 Robert Millan <rmh@aybabtu.com>
39623
39624 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39625 actual size of `available' from grub_ieee1275_get_property(), and
39626 restrict parsing to that bound.
39627
47bf09a4 396282008-01-15 Christian Franke <franke@computer.org>
39629
39630 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39631 (argp_program_version): Remove variable.
39632 (argp_program_bug_address): Likewise.
39633 (options): Convert from struct argp_option to struct option.
39634 (struct arguments): Remove.
39635 (parse_opt): Remove.
39636 (usage): New function.
39637 (main): Replace struct args members by simple variables.
39638 Replace argp_parse() by getopt_long().
39639 Add switch to evaluate options.
39640 Add missing "(...)" around root_dev in prefix string.
39641
c86f1469 396422008-01-14 Robert Millan <rmh@aybabtu.com>
39643
39644 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39645 for grub_ieee1275_exit(), in order to improve portability.
39646
e622c559 396472008-01-14 Robert Millan <rmh@aybabtu.com>
39648
39649 * util/grub.d/10_linux.in (prefix): Define.
39650 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39651
44cb1ec8 396522008-01-13 Pavel Roskin <proski@gnu.org>
39653
39654 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39655 grub_errno if no errors have been detected.
39656
1eb8c802 396572008-01-12 Robert Millan <rmh@aybabtu.com>
39658
39659 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39660 (grub_util_get_dev_abstraction): New function prototype.
39661
39662 * util/getroot.c: Include `<grub/util/getroot.h>'
39663 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39664 (grub_util_get_dev_abstraction): ... here (new function).
39665
39666 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39667 `PRINT_ABSTRACTION'.
39668 (probe): Probe for abstraction type when requested.
39669 (main): Understand `--target=abstraction'.
39670
39671 * util/i386/efi/grub-install.in: Add abstraction module to core
39672 image when it is found to be necessary.
39673 * util/i386/pc/grub-install.in: Likewise.
39674 * util/powerpc/ieee1275/grub-install.in: Likewise.
39675
39676 * util/update-grub_lib.in (font_path): Return system path without
39677 converting to GRUB path.
39678 * util/update-grub.in: Convert system path returned by font_path()
39679 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39680 abstraction module is needed for loading fonts (if any). Export
39681 that as `GRUB_PRELOAD_MODULES'.
39682 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39683 insmod commands).
39684
52bd3de9 396852008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39686
39687 Remove some unused code from reiserfs.
f19dbdb7 39688
52bd3de9 39689 * fs/reiserfs.c (struct grub_reiserfs_key)
39690 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39691 (struct grub_reiserfs_node_body): Removed.
39692 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39693 Likewise.
39694 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39695 Likewise.
39696 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39697 Likewise.
39698 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39699 Likewise.
39700 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39701 Likewise.
39702 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39703 Likewise.
39704 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39705 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39706 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39707
2f80039d 397082008-01-10 Robert Millan <rmh@aybabtu.com>
39709
39710 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39711 Determines if a file is garbage left by packaging systems, etc.
39712 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39713 for processing /etc/grub.d scripts.
39714 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39715 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39716 as a condition for processing Linux images.
39717
87888032 397182008-01-10 Pavel Roskin <proski@gnu.org>
39719
39720 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39721 to compile reiserfs.c on PowerPC.
39722
7e54fced 397232008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 39724
39725 * kern/device.c (grub_device_iterate): Do not abort device iteration
39726 when one of the devices cannot be opened.
39727 * kern/disk.c (grub_disk_open): Do not account previous failures of
39728 unrelated functions when grub_errno is checked for.
39729
5aa541e6 397302008-01-08 Robert Millan <rmh@aybabtu.com>
39731
39732 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39733 `! grub_linux_is_bzimage', change order of address comparison to make
39734 it more intuitive, and improve "too big zImage" error message.
39735
7076340d 397362008-01-08 Robert Millan <rmh@aybabtu.com>
39737
39738 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39739 `$(update-grub_DATA)'.
39740 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39741 targets.
39742
9ca70333 397432008-01-07 Robert Millan <rmh@aybabtu.com>
39744
39745 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39746 which instruction is modified by grub-setup during installation
39747 (since it wasn't obvious by only looking at this file).
39748
38ccf575 397492008-01-07 Robert Millan <rmh@aybabtu.com>
39750
39751 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39752 listing actual TODO items.
39753
f5db4291 397542008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39755
868967cf 39756 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39757 correctly.
39758 (grub_reiserfs_get_key_offset): Likewise.
39759 (grub_reiserfs_set_key_offset): Likewise.
39760 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 39761 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 39762
39763 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39764 better to remove the bitfield version completely.
f19dbdb7 39765
868967cf 397662008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 39767
f5db4291 39768 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39769 allocated from the heap, due to the fshelp implementation.
39770 (grub_reiserfs_dir): Free NODE, due to the same reason.
39771
492e6d9d 397722008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39773
39774 Mostly from Vincent Pelletier:
f19dbdb7 39775
492e6d9d 39776 * fs/reiserfs.c: New file.
f19dbdb7 39777
492e6d9d 39778 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39779 (reiserfs_mod_SOURCES): New variable.
39780 (reiserfs_mod_CFLAGS): Likewise.
39781 (reiserfs_mod_LDFLAGS): Likewise.
39782
39783 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39784 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39785 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39786 normal/color.c.
39787
9ce3e7c1 397882008-01-06 Robert Millan <rmh@aybabtu.com>
39789
39790 * normal/color.c: Remove `<grub/env.h>'.
39791
f3b58148 397922008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39793
39794 * include/grub/normal.h: Include <grub/env.h>.
39795
7ac3bcfa 397962008-01-05 Robert Millan <rmh@aybabtu.com>
39797
39798 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39799 usage example with `(hd0,1)'.
fb358190 39800 Reported by Samuel Thibault.
7ac3bcfa 39801
c8ee99d7 398022008-01-05 Robert Millan <rmh@aybabtu.com>
39803
39804 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39805 (grub_linux_boot_zimage): Rename to ...
39806 (grub_linux_boot): ... this.
39807 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39808 (grub_linux_boot_zimage): Conditionalize zImage copy.
39809
39810 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39811 (grub_linux_boot_bzimage): Remove prototype.
39812 (grub_linux_boot_zimage): Rename to ...
39813 (grub_linux_boot): ... this.
39814
39815 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39816 (grub_linux_boot): Remove function.
39817
0ece25b1 398182008-01-05 Robert Millan <rmh@aybabtu.com>
39819
39820 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39821 (grub_env_write_color_highlight): Likewise.
39822 (grub_wait_after_message): Likewise.
39823
39824 * normal/color.c: New file.
39825
39826 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39827 (normal_mod_DEPENDENCIES): Likewise.
39828
39829 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39830 (normal_mod_DEPENDENCIES): Likewise.
39831
39832 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39833 (normal_mod_DEPENDENCIES): Likewise.
39834
39835 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39836 (normal_mod_DEPENDENCIES): Likewise.
39837
39838 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39839 for waiting after a message is printed.
39840 * normal/main.c (read_config_file): Likewise.
39841 (grub_normal_init): Register grub_env_write_color_normal() and
39842 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39843 `color_highlight' variables as global.
39844
39845 * normal/menu.c (grub_wait_after_message): New function.
39846 (grub_color_menu_normal): New variable. Replaces ...
39847 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39848 (grub_color_menu_highlight): New variable. Replaces ...
39849 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39850 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39851 `GRUB_TERM_COLOR_STANDARD'.
39852 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39853 `normal_code' and `highlight_code' to `old_color_normal' and
39854 `old_color_highlight', respectively.
39855 (grub_menu_init_page): Update colors when drawing the menu, based on
39856 `menu_color_normal' and `menu_color_highlight' variables.
39857 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39858 a message is printed.
39859
182dd4e5 398602008-01-05 Robert Millan <rmh@aybabtu.com>
39861
39862 * kern/env.c (grub_env_context_open): Propagate hooks for global
39863 variables to new context.
39864
39865 * kern/main.c (grub_set_root_dev): Export `root' variable.
39866
ddf8f6ad 398672008-01-05 Robert Millan <rmh@aybabtu.com>
39868
39869 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 39870 discs unconditionally, since udev and others have options to provide
ddf8f6ad 39871 them.
39872
d8b43d9b 398732008-01-05 Robert Millan <rmh@aybabtu.com>
39874
39875 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39876
2bff2de3 398772008-01-04 Christian Franke <franke@computer.org>
39878
39879 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39880 of eisa_mmap.
39881
97eab917 398822008-01-03 Pavel Roskin <proski@gnu.org>
39883
39884 * kern/i386/linuxbios/init.c: Put "void" to all function
39885 declarations with no arguments.
39886 * kern/powerpc/ieee1275/init.c: Likewise.
39887 * term/i386/pc/at_keyboard.c: Likewise.
39888 * term/i386/pc/vga_text.c: Likewise.
39889 * util/grub-mkdevicemap.c: Likewise.
39890
b9416d00 398912008-01-02 Robert Millan <rmh@aybabtu.com>
39892
39893 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39894 message when loaded image is out of bounds.
39895 (grub_multiboot_load_elf64): Likewise.
39896
92695df9 398972008-01-02 Pavel Roskin <proski@gnu.org>
39898
39899 * util/grub.d/10_linux.in: Try version without ".old" when
39900 looking for initrd. It's better to use initrd from the newer
39901 kernel of the same version than no initrd at all.
39902
d98d9cad 399032008-01-01 Robert Millan <rmh@aybabtu.com>
39904
39905 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39906
dbfdce36 399072008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39908
f19dbdb7 39909 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 39910 grub_video_get_active_render_target.
39911 (grub_video_adapter): Added unmap_color and get_active_render_target.
39912
f19dbdb7 39913 * video/video.c: Added grub_video_unmap_color and
dbfdce36 39914 grub_video_get_active_render_target.
39915 (grub_video_get_info): Changed method to accept NULL pointer as an
39916 argument to allow detection of active video adapter.
39917
39918 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39919 grub_video_vbe_unmap_color_int.
39920 Added grub_video_vbe_unmap_color and
39921 grub_video_vbe_get_active_render_target.
39922 (grub_video_vbe_adapter): Added unmap_color and
39923 get_active_render_target.
39924
f19dbdb7 39925 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 39926 with grub_video_vbe_unmap_color_int.
39927
39928 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39929 (DEFAULT_NORMAL_COLOR): Likewise.
39930 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39931 (DEFAULT_FG_COLOR): Removed.
39932 (DEFAULT_BG_COLOR): Likewise.
39933 (DEFAULT_CURSOR_COLOR): Changed value.
39934 (grub_virtual_screen): Added standard_color_setting,
39935 normal_color_setting, highlight_color_setting and term_color.
39936 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39937 (bitmap_width): Added.
39938 (bitmap_height): Likewise.
39939 (bitmap): Likewise.
39940 (set_term_color): Likewise.
39941 (grub_virtual_screen_setup): Changed to use new terminal coloring
39942 settings.
39943 (grub_gfxterm_init): Added init for bitmap.
39944 (grub_gfxterm_fini): Added destroy for bitmap.
39945 (redraw_screen_rect): Updated to use background bitmap and new
39946 terminal coloring.
39947 (scroll_up): Added optimization for case when there is no bitmap.
39948 (grub_gfxterm_cls): Fixed to use correct background color.
39949 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39950 coloring.
39951 (grub_virtual_screen_setcolor): Likewise.
39952 (grub_virtual_screen_getcolor): Added.
39953 (grub_gfxterm_background_image_cmd): Likewise.
39954 (grub_video_term): Added setcolor and getcolor.
39955 (MOD_INIT): Added registration of background_image command.
39956 (MOD_TERM): Added unregistration for background_image command.
39957
c3c20931 399582007-12-30 Pavel Roskin <proski@gnu.org>
39959
39960 * loader/multiboot_loader.c: Fix multiboot command
39961 unregistration. Fix all typos in the word "multiboot".
39962
df266716 399632007-12-29 Pavel Roskin <proski@gnu.org>
94239199 39964
39965 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39966 support for initrd names used in Fedora.
39967
fc6e896c 399682007-12-26 Bean <bean123ch@gmail.com>
39969
39970 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39971 (cpio_mod_SOURCES): New variable.
39972 (cpio_mod_CFLAGS): Likewise.
39973 (cpio_mod_LDFLAGS): Likewise.
39974
39975 * fs/cpio.c: New file.
39976
39977 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39978
39979 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39980
39981 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39982
39983 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39984
533110ad 399852007-12-25 Robert Millan <rmh@aybabtu.com>
39986
39987 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39988 (grub_getcolor): New function.
39989
39990 * kern/term.c (grub_getcolor): New function.
39991 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39992 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39993 (print_entry): Set normal and highlight colors to
39994 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39995 respectively, before printing and restore them to old
39996 values afterwards.
39997 (grub_menu_init_page): Likewise. Fill an additional colored space
39998 that would otherwise be left blank.
39999
40000 * term/efi/console.c (grub_console_getcolor): New function.
40001 (struct grub_console_term.getcolor): New variable.
40002 * term/i386/pc/console.c (grub_console_getcolor): New function.
40003 (struct grub_console_term.getcolor): New variable.
40004 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
40005 (struct grub_console_term.getcolor): New variable.
40006
40007 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
40008 (struct grub_console_term.setcolor): Remove variable.
40009 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
40010 (struct grub_console_term.setcolor): Remove variable.
40011 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
40012 (struct grub_console_term.setcolor): Remove variable.
40013 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
40014 (struct grub_console_term.setcolor): Remove variable.
40015
4931827f 400162007-12-25 Robert Millan <rmh@aybabtu.com>
40017
40018 * configure.ac: Search for possible unifont.hex locations, and
40019 define UNIFONT_HEX if found.
40020
40021 * Makefile.in (UNIFONT_HEX): Define variable.
40022 (DATA): Rename to ...
40023 (PKGLIB): ... this. Update all users.
40024 (PKGDATA): New variable.
40025 (pkgdata_IMAGES): Rename to ...
40026 (pkglib_IMAGES): ... this. Update all users.
40027 (pkgdata_MODULES): Rename to ...
40028 (pkglib_MODULES): ... this. Update all users.
40029 (pkgdata_PROGRAMS): Rename to ...
40030 (pkglib_PROGRAMS): ... this. Update all users.
40031 (pkgdata_DATA): Rename to ...
40032 (pkglib_DATA): ... this. Update all users.
40033 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
40034 (unicode.pff, ascii.pff): New rules.
40035 (all-local): Add `$(PKGDATA)' dependency.
40036 (install-local): Process `$(PKGDATA)'.
40037
40038 * util/update-grub_lib.in (font_path): Search for *.pff files in
40039 a few more locations, including `${pkgdata}'.
40040
57e57e31 400412007-12-23 Robert Millan <rmh@aybabtu.com>
40042
40043 Patch from Bean <bean123ch@gmail.com>:
40044 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
40045 `size'.
40046
4bc72aa9 400472007-12-21 Bean <bean123ch@gmail.com>
40048
40049 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
40050 (ntfscomp_mod_SOURCES): New variable.
40051 (ntfscomp_mod_CFLAGS): Likewise.
40052 (ntfscomp_mod_LDFLAGS): Likewise.
40053
40054 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
40055 (grub_probe_SOURCES): Likewise.
40056 (grub_emu_SOURCES): Likewise.
40057
40058 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40059 (grub_emu_SOURCES): Likewise.
40060
40061 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40062 (grub_emu_SOURCES): Likewise.
40063
40064 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40065 (grub_emu_SOURCES): Likewise.
40066
40067 * fs/ntfs.c (grub_ntfscomp_func): New variable.
40068 (read_run_list): Renamed to grub_ntfs_read_run_list.
40069 (decomp_nextvcn): Moved to ntfscomp.c.
40070 (decomp_getch): Likewise.
40071 (decomp_get16): Likewise.
40072 (decomp_block): Likewise.
40073 (read_block): Likewise.
40074 (read_data): Partially moved to ntfscomp.c.
40075 (fixup): Change unsigned to grub_uint16_t.
40076 (read_mft): Change unsigned long to grub_uint32_t.
40077 (read_attr): Likewise.
40078 (read_data): Likewise.
40079 (read_run_data): Likewise.
40080 (read_run_list): Likewise.
40081 (read_mft): Likewise.
40082
40083 * fs/ntfscomp.c: New file.
40084
40085 * include/grub/ntfs.h: New file.
40086
af680a87 400872007-12-16 Robert Millan <rmh@aybabtu.com>
40088
40089 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40090 IDE disk check, since Linux is known to support 20 IDE disks.
40091 Reported by Colin Watson.
40092
84be7599 400932007-12-15 Bean <bean123ch@gmail.com>
40094
40095 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40096 (lnxboot_img_SOURCES): New variable.
40097 (lnxboot_img_ASFLAGS): Likewise.
40098 (lnxboot_img_LDFLAGS): Likewise.
40099
40100 * boot/i386/pc/lnxboot.S: New file.
40101
6af9db01 401022007-11-24 Pavel Roskin <proski@gnu.org>
40103
40104 * configure.ac: Test if '--build-id=none' is supported by the
40105 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40106 objcopy to generate incorrect binary files (binutils
40107 2.17.50.0.18-1 as shipped by Fedora 8).
40108 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40109 linking, so that build ID doesn't break the test.
40110
7361cfe6 401112007-11-24 Pavel Roskin <proski@gnu.org>
40112
40113 * include/grub/i386/time.h: use "void" in the argument list
40114 of grub_cpu_idle().
40115 * include/grub/powerpc/time.h: Likewise.
40116 * include/grub/sparc64/time.h: Likewise.
40117
1593e10c 401182007-11-18 Christian Franke <franke@computer.org>
40119
40120 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40121 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40122 This fixes the problem that function keys did not work in grub-emu.
40123
3b8db1a8 401242007-11-18 Christian Franke <franke@computer.org>
40125
40126 * disk/host.c (grub_host_open): Remove attribute unused from
40127 name parameter. Add check for "host". This fixes the problem
40128 that grub-emu does not find partitions.
40129
2e29408d 401302007-11-18 Christian Franke <franke@computer.org>
40131
40132 * util/hostfs.c (is_dir): New function.
40133 (grub_hostfs_dir): Handle missing dirent.d_type case.
40134 (grub_hostfs_read): Add missing fseek().
40135 (grub_hostfs_label): Clear label pointer. This fixes a crash
40136 of grub-emu on "ls (host)".
40137
398cd047 401382007-11-18 Christian Franke <franke@computer.org>
40139
40140 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40141 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40142 to 64 bit boundary by default.
40143
c405c391 401442007-11-18 Bean <bean123ch@gmail.com>
40145
40146 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40147 (hexdump_mod_SOURCES): New variable.
40148 (hexdump_mod_CFLAGS): Likewise.
40149 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 40150
c405c391 40151 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40152
40153 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40154
40155 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40156
40157 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40158
40159 * include/grub/hexdump.h: New file.
40160
40161 * commands/hexdump.c: New file.
40162
5cced7fd 401632007-11-10 Robert Millan <rmh@aybabtu.com>
40164
40165 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40166 in grub_outb() calls.
40167 (beep_on): Likewise.
40168
8b714eb0 401692007-11-10 Christian Franke <franke@computer.org>
40170
40171 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40172 (grub_menu_run): Likewise.
40173
ce0f1839 401742007-11-10 Robert Millan <rmh@aybabtu.com>
40175
40176 * include/grub/i386/efi/machine.h: New file.
40177 * include/grub/i386/linuxbios/machine.h: Likewise.
40178 * include/grub/i386/pc/machine.h: Likewise.
40179 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40180 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40181
40182 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40183 (serial_hw_io_addr): New variable.
40184 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40185 instead of `(unsigned short *) 0x400'.
40186
270c237d 401872007-11-10 Bean <bean123ch@gmail.com>
40188
40189 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40190
a87783bf 401912007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40192
40193 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40194 (vga_mod_SOURCES): Added.
40195 (vga_mod_CFLAGS): Likewise.
40196 (vga_mod_LDFLAGS): Likewise.
40197
40198 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40199 grub_outb() calls.
40200 (set_map_mask): Likewise.
40201 (set_read_map): Likewise.
40202 (set_read_address): Likewise.
40203 (vga_font): Removed variable.
40204 (get_vga_glyph): Removed function.
40205 (invalidate_char): Likewise.
40206 (write_char): Changed to use grub_font_get_glyph() for font
40207 information.
40208 (grub_vga_putchar): Likewise.
40209 (grub_vga_getcharwidth): Likewise.
40210
6433b448 402112007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40212
40213 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40214 flags.
40215 (pxeboot_img_LDFLAGS): Likewise.
40216 (diskboot_img_LDFLAGS): Likewise.
40217 (kernel_img_LDFLAGS): Likewise.
40218
49178511 402192007-11-06 Robert Millan <rmh@aybabtu.com>
40220
40221 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40222 in grub_outb() calls.
40223 (serial_hw_init): Likewise.
40224
53b052de 402252007-11-05 Robert Millan <rmh@aybabtu.com>
40226
40227 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40228 spaces. Skip non-regular files.
40229
5ab33bba 402302007-11-05 Robert Millan <rmh@aybabtu.com>
40231
40232 * kern/disk.c (grub_disk_firmware_fini)
40233 (grub_disk_firmware_is_tainted): New variables.
40234
40235 * include/grub/disk.h (grub_disk_firmware_fini)
40236 (grub_disk_firmware_is_tainted): Likewise.
40237
40238 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40239 (grub_disk_biosdisk_fini): ... to here.
40240 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40241 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40242 is set. Register grub_disk_biosdisk_fini() in
40243 `grub_disk_firmware_fini'.
40244
40245 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40246 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40247 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40248 to finish existing firmware disk interface.
40249
40250 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40251 (ata_mod_SOURCES): New variable.
40252 (ata_mod_CFLAGS): Likewise.
40253 (ata_mod_LDFLAGS): Likewise.
40254
0149ab7c 402552007-11-05 Robert Millan <rmh@aybabtu.com>
40256
40257 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40258 (grub_ata_wait): Reimplement using grub_millisleep().
40259
40260 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40261 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40262
be7ac41e 402632007-11-03 Marco Gerards <marco@gnu.org>
40264
40265 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40266 (CRTC_ADDR_PORT): New macro.
40267 (CRTC_DATA_PORT): Likewise.
40268 (CRTC_CURSOR): Likewise.
40269 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40270 (CRTC_CURSOR_ADDR_LOW): Likewise.
40271 (update_cursor): New function.
40272 (grub_console_real_putchar): Call `update_cursor'.
40273 (grub_console_gotoxy): Likewise.
40274 (grub_console_cls): Set the default color when clearing the
40275 screen.
40276 (grub_console_setcursor): Implemented.
40277
bb06ab2e 402782007-11-03 Marco Gerards <marco@gnu.org>
40279
40280 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40281 become activate.
40282 (grub_ata_pio_write): Likewise.
40283
40284 (grub_atapi_identify): Wait after issuing an ATA command.
40285 (grub_atapi_packet): Likewise.
40286 (grub_ata_identify): Likewise.
40287 (grub_ata_readwrite): Likewise.
40288
cf8f780b 402892007-11-03 Marco Gerards <marco@gnu.org>
40290
40291 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40292 (grub_ata_pio_write): Likewise.
40293 (grub_ata_readwrite): Use `grub_error', instead of
40294 returning `grub_errno'.
40295
ed649e54 402962007-11-03 Marco Gerards <marco@gnu.org>
40297
40298 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40299 grub_ata_pio_write once for every single sector, instead of for
40300 multiple sectors.
40301
ca25d8f0 403022007-10-31 Robert Millan <rmh@aybabtu.com>
40303
40304 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40305
40306 * conf/i386-linuxbios.rmk: New file.
40307
40308 * kern/i386/pc/hardware.c: Likewise.
40309 * term/i386/pc/at_keyboard.c: Likewise.
40310 * term/i386/pc/vga_text.c: Likewise.
40311
40312 * include/grub/i386/linuxbios/boot.h: Likewise.
40313 * include/grub/i386/linuxbios/console.h: Likewise.
40314 * include/grub/i386/linuxbios/init.h: Likewise.
40315 * include/grub/i386/linuxbios/kernel.h: Likewise.
40316 * include/grub/i386/linuxbios/loader.h: Likewise.
40317 * include/grub/i386/linuxbios/memory.h: Likewise.
40318 * include/grub/i386/linuxbios/serial.h: Likewise.
40319 * include/grub/i386/linuxbios/time.h: Likewise.
40320
40321 * kern/i386/linuxbios/init.c: Likewise.
40322 * kern/i386/linuxbios/startup.S: Likewise.
40323 * kern/i386/linuxbios/table.c: Likewise.
40324
e911ecc1 403252007-10-31 Marco Gerards <marco@gnu.org>
40326
40327 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40328 (ata_mod_SOURCES): New variable.
40329 (ata_mod_CFLAGS): Likewise.
40330 (ata_mod_LDFLAGS): Likewise.
40331
40332 * disk/ata.c: New file.
40333
40334 * include/grub/disk.h (grub_disk_dev_id): Add
40335 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 40336
7f66d0e0 403372007-10-31 Robert Millan <rmh@aybabtu.com>
40338
40339 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40340 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40341
40342 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40343 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40344
40345 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40346 `<grub/types.h>'.
40347
40348 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40349
5cd7dd46 403502007-10-27 Robert Millan <rmh@aybabtu.com>
40351
3236ca65 40352 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 40353
2ebfc90f 403542007-10-22 Robert Millan <rmh@aybabtu.com>
40355
40356 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40357 `"../realmode.S"'.
40358 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40359
73fcb0f3 403602007-10-22 Robert Millan <rmh@aybabtu.com>
40361
40362 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40363 (pkgdata_MODULES): Add `biosdisk.mod'.
40364 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40365 variables.
40366
40367 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40368 (grub_biosdisk_init): Replace with ...
40369 (GRUB_MOD_INIT(biosdisk)): ... this.
40370 (grub_biosdisk_fini): Replace with ...
40371 (GRUB_MOD_FINI(biosdisk)): ... this.
40372
40373 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40374 (grub_machine_init): Remove call to grub_biosdisk_init().
40375 (grub_machine_fini): Remove call to grub_machine_fini().
40376
40377 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40378
3381d274 403792007-10-22 Robert Millan <rmh@aybabtu.com>
40380
40381 * include/grub/time.h: New file.
40382 * include/grub/i386/time.h: Likewise.
40383 * include/grub/powerpc/time.h: Likewise.
40384 * include/grub/sparc64/time.h: Likewise.
40385
40386 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40387 instances to ...
40388 (KERNEL_MACHINE_TIME_HEADER): ... this.
40389 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40390 instances to ...
40391 (KERNEL_MACHINE_TIME_HEADER): ... this.
40392 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40393 instances to ...
40394 (KERNEL_MACHINE_TIME_HEADER): ... this.
40395
40396 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40397 (grub_millisleep): New function.
40398 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40399 (grub_millisleep): New function.
40400 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40401 Remove `grub/machine/time.h' include.
40402 (grub_millisleep): New function.
40403 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40404 Remove `grub/machine/time.h' include.
40405 (grub_millisleep): New function.
40406
40407 * include/grub/misc.h (grub_div_roundup): New function.
40408
40409 * kern/misc.c: Include `<grub/time.h>'.
40410 (grub_millisleep_generic): New function.
40411
40412 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40413 Add `time.h'.
40414 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40415 Add `time.h'.
40416 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40417 `machine/time.h'. Add `time.h'.
40418 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40419
a39a0312 404202007-10-21 Robert Millan <rmh@aybabtu.com>
40421
40422 * include/grub/misc.h (grub_max): New function.
40423
2aad70e2 404242007-10-21 Robert Millan <rmh@aybabtu.com>
40425
40426 * util/misc.c (grub_util_info): Call fflush() before returning.
40427
54b71c4b 404282007-10-20 Robert Millan <rmh@aybabtu.com>
40429
40430 * genmk.rb (Image): Copy `extra_flags' from here ...
40431 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40432
40433 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40434 to `argc' and `args' arguments.
40435
a979f513 404362007-10-17 Robert Millan <rmh@aybabtu.com>
40437
40438 * kern/i386/loader.S: New file.
40439
40440 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40441 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40442 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40443 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40444 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40445 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40446 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40447 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40448 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40449 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40450 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40451 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40452 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40453 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40454
40455 * kern/i386/realmode.S: New file.
40456
40457 * kern/i386/pc/startup.S (protstack): Moved from here ...
40458 * kern/i386/realmode.S (protstack)... to here.
40459 * kern/i386/pc/startup.S (gdt): Moved from here ...
40460 * kern/i386/realmode.S (gdt)... to here.
40461 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40462 * kern/i386/realmode.S (prot_to_real)... to here.
40463
40464 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40465 `kern/i386/realmode.S'.
40466
825fc8fd 404672007-10-17 Robert Millan <rmh@aybabtu.com>
40468
40469 * include/grub/i386/loader.h: New file.
40470
40471 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40472 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40473 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40474 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40475 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40476 * include/grub/i386/loader.h (grub_linux_prot_size)
40477 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40478 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40479 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40480 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40481
40482 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40483
e179b2f4 404842007-10-15 Robert Millan <rmh@aybabtu.com>
40485
40486 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40487 filesystem when dev->disk is unset.
40488 Do probe for filesystem even when dev->disk->has_partitions is set.
40489 In case a filesystem is found, always report it.
40490 In case it isn't, if dev->disk->has_partitions is set, report that
40491 a partition table was found instead of reporting that no filesystem
40492 could be identified.
40493
5db82af6 404942007-10-12 Robert Millan <rmh@aybabtu.com>
40495
40496 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40497 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40498
68f6ac74 40499 * include/grub/types.h (grub_host_to_target16): New macro.
40500 (grub_host_to_target32): Likewise.
40501 (grub_host_to_target64): Likewise.
40502 (grub_target_to_host16): Likewise.
40503 (grub_target_to_host32): Likewise.
40504 (grub_target_to_host64): Likewise.
5db82af6 40505
40506 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40507 Renamed from to ...
40508 (GRUB_MOD_ALIGN): ...this. Update all users.
40509
68f6ac74 40510 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40511 grub_host_to_target32.
40512 Replace grub_be_to_cpu32 with grub_target_to_host32.
40513 (load_modules): Likewise.
40514 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40515 Replace grub_be_to_cpu32 with grub_target_to_host32.
40516 Replace grub_cpu_to_be16 with grub_host_to_target16.
40517 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 40518
3cf497cc 405192007-10-12 Robert Millan <rmh@aybabtu.com>
40520
40521 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40522 * util/elf/grub-mkimage.c: ... here.
40523
40524 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40525 `util/powerpc/ieee1275/grub-mkimage.c'.
40526
c8cc3692 405272007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 40528
c8cc3692 40529 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40530 and make it easier to figure out.
40531 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40532 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40533 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40534 leave us with less than HEAP_MIN_SIZE total heap.
40535 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 40536
5c58b791 405372007-10-03 Robert Millan <rmh@aybabtu.com>
40538
40539 * include/grub/i386/io.h: New file.
40540 * commands/i386/pc/play.c (inb): Removed.
40541 (outb): Removed.
40542 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40543 with grub_outb().
afcd2ef8 40544 * term/i386/pc/serial.c (inb): Removed.
40545 (outb): Removed.
40546 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40547 with grub_outb().
40548 * term/i386/pc/vga.c (inb): Removed.
40549 (outb): Removed.
40550 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40551 with grub_outb().
5c58b791 40552
1a477ed6 405532007-10-02 Robert Millan <rmh@aybabtu.com>
40554
40555 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40556 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40557 Reported by Marcin Kurek.
40558
6b5d80fa 405592007-09-07 Robert Millan <rmh@aybabtu.com>
40560
40561 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40562 SmartFirmware version updates (as released by Sven Luther), and avoid
40563 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40564 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40565 known broken.
40566
5618afbf 405672007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40568
40569 From Hitoshi Ozeki:
40570 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40571 when merging two regions.
40572
6139dcd9 405732007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40574
508e39ee 40575 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40576 * normal/completion.c (grub_normal_do_completion): Likewise.
40577 Reported by Hitoshi Ozeki.
40578
405792007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40580
6139dcd9 40581 Do not use devices at boot in chainloading.
f19dbdb7 40582
6139dcd9 40583 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40584 (boot_part_addr): Likewise.
40585 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40586 with BOOT_DRIVE and BOOT_PART_ADDR.
40587 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40588 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40589
38da6516 405902007-08-29 Robert Millan <rmh@aybabtu.com>
40591
40592 Patch from Simon Peter <dn.tlp@gmx.net>:
40593 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40594 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40595 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40596 util/i386/pc/grub-setup.c_DEPENDENCIES.
40597 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40598 util/grub-probe.c_DEPENDENCIES.
40599 * conf/powerpc-ieee1275.rmk: Likewise.
40600
29d0928c 406012007-08-28 Robert Millan <rmh@aybabtu.com>
40602
40603 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40604 to tell grub-mkdevicemap how to name devices.
40605 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40606 feature).
40607
40608 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40609 util/i386/get_disk_name.c.
40610 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40611 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40612 util/ieee1275/get_disk_name.c.
40613
40614 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40615
40616 * DISTLIST: Add util/i386/get_disk_name.c and
40617 util/ieee1275/get_disk_name.c.
40618
40619 * util/grub-mkdevicemap.c: Replace device naming logic with
40620 grub_util_get_disk_name() calls.
40621
5a0d3cca 406222007-08-20 Robert Millan <rmh@aybabtu.com>
40623
40624 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40625 (so that it works for both plural and singular quantities).
40626
8b72db2f 406272007-08-05 Robert Millan <rmh@aybabtu.com>
40628
40629 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40630 so that [xz] isn't taken into account when determining order.
40631
352466bf 406322007-08-02 Marco Gerards <marco@gnu.org>
40633
40634 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40635 `include/multiboot2.h', `include/grub/elfload.h',
40636 `include/multiboot.h', `include/grub/multiboot.h',
40637 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40638 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40639 `kern/elf.c', `loader/multiboot_loader.c',
40640 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40641 `loader/i386/pc/multiboot2.c',
40642 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40643 `util/i386/pc/grub-mkrescue.in'. Remove
40644 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40645 `include/grub/i386/pc/util/biosdisk.h' and
40646 `include/grub/powerpc/ieee1275/multiboot.h'.
40647
8f096014 406482007-08-02 Bean <bean123ch@gmail.com>
40649
40650 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40651 (ntfs_mod_SOURCES): New variable.
40652 (ntfs_mod_CFLAGS): Likewise.
40653 (ntfs_mod_LDFLAGS): Likewise.
40654
40655 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40656 (grub_probe_SOURCES): Likewise.
40657 (grub_emu_SOURCES): Likewise.
40658
40659 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40660 (grub_emu_SOURCES): Likewise.
40661
40662 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40663 (grub_emu_SOURCES): Likewise.
f19dbdb7 40664
8f096014 40665 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40666
40667 * fs/ntfs.c: New file.
40668
9959f7db 406692007-08-02 Bean <bean123ch@gmail.com>
40670
40671 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40672
40673 * file.h (grub_file): Likewise.
40674
40675 * fshelp.h (grub_fshelp_read_file): Likewise.
40676
40677 * util/i386/pc/grub-setup.c (setup): Likewise.
40678 (save_first_sector): Likewise.
40679 (save_blocklists): Likewise.
f19dbdb7 40680
9959f7db 40681 * fs/affs.c (grub_affs_read_file): Likewise.
40682
40683 * fs/ext2.c (grub_ext2_read_file): Likewise.
40684
40685 * fs/fat.c (grub_fat_read_data): Likewise.
40686
40687 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40688
40689 * fs/hfs.c (grub_hfs_read_file): Likewise.
40690
40691 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40692
40693 * fs/jfs.c (grub_jfs_read_file): Likewise.
40694
40695 * fs/minix.c (grub_minix_read_file): Likewise.
40696
40697 * fs/sfs.c (grub_sfs_read_file): Likewise.
40698
40699 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 40700
9959f7db 40701 * fs/xfs.c (grub_xfs_read_file): Likewise.
40702
40703 * command/blocklist.c (read_blocklist): Likewise.
40704 (print_blocklist): Likewise.
40705
0a203f83 407062007-08-02 Marco Gerards <marco@gnu.org>
40707
40708 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40709 `util/hostfs.c'.
40710
40711 * disk/host.c: New file.
40712
40713 * util/hostfs.c: Likewise.
40714
40715 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40716 return `GRUB_ERR_BAD_FS'.
40717 * fs/sfs.c (grub_sfs_mount): Likewise.
40718 * fs/xfs.c (grub_xfs_mount): Likewise.
40719
40720 * include/grub/disk.h (enum grub_disk_dev_id): Add
40721 `GRUB_DISK_DEVICE_HOST_ID'.
40722
40723 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40724
e5dfe777 407252007-07-24 Jerone Young <jerone@gmail.com>
40726
f19dbdb7 40727 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 40728 modules for compilation.
40729 * conf/powerpc-ieee1275.rmk: Likewise.
40730
40731 * include/multiboot.h: Move multiboot definitions to one file. Rename
40732 many definitions to not get grub specific.
40733 * include/multiboot2.h: Create header with multiboot 2 definitions.
40734 * include/grub/multiboot.h: Header for grub specific function
40735 prototypes and definitions.
40736 * include/grub/multiboot2.h: Likewise.
40737 * include/grub/multiboot_loader.h: Likewise.
40738 * include/grub/i386/pc/multiboot.h: Removed.
40739 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40740
40741 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40742 and 2 to allow for one multiboot and module commands.
40743 * loader/multiboot2.c: Add multiboot2 functionality.
40744 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40745 and definition names.
40746 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40747 2 functions.
40748 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40749 ieee1275 specific multiboot2 code.
40750
40751 * kern/i386/pc/startup.S: Change headers and definition names for
40752 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40753
daf0f0ba 407542007-07-22 Robert Millan <rmh@aybabtu.com>
40755
40756 * geninitheader.sh: Process file specified in first parameter rather
40757 than hardcoding grub_modules_init.lst.
fe6b695a 40758 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 40759 than hardcoding grub_modules_init.h.
40760
40761 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40762 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40763 grub_probe_init.[ch] and grub_setup_init.[ch].
40764
40765 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40766 grub_modules_init.h with grub_emu_init.h.
40767 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40768 grub_probe_init.[ch] files.
40769 * conf/i386-efi.rmk: Likewise.
40770 * conf/i386-pc.rmk: Likewise.
40771 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40772 grub_setup_init.[ch] files.
40773
40774 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40775 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40776 to initialize modules rather than a list of hardcoded functions.
40777 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40778 grub_init_all() to initialize modules rather than a list of hardcoded
40779 functions.
40780
54cdc1cc 407812007-07-22 Robert Millan <rmh@aybabtu.com>
40782
40783 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40784 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40785
ad0686cc 407862007-07-22 Robert Millan <rmh@aybabtu.com>
40787
40788 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40789 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40790 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40791 flag when running on SmartFirmware.
40792 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40793 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40794 was set.
40795
40796 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40797 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40798 rather than decreasing it.
40799
40800 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40801 there's not enough space to do it, fail in the same way as when it
40802 can't be done because there are no partitions.
40803
40804 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40805 when nvsetenv failed.
40806
969c02ec 408072007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40808
40809 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40810 because this rule is automatically generated.
40811 (grub-mkrescue): Removed for the same reason as above.
40812
5a79f472 408132007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40814
40815 Migrate to GNU General Public License Version 3.
f19dbdb7 40816
5a79f472 40817 * COPYING: Replaced with the plain text version of GPLv3.
40818
40819 * config.guess: Updated from gnulib.
40820 * config.sub: Likewise.
40821
40822 * geninit.sh: Output a GPLv3 copyright notice.
40823 * geninitheader.sh: Likewise.
40824 * genmodsrc.sh: Likewise.
40825 * gensymlist.sh.in: Likewise.
40826
40827 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40828 * boot/i386/pc/diskboot.S: Likewise.
40829 * boot/i386/pc/pxeboot.S: Likewise.
40830 * commands/blocklist.c: Likewise.
40831 * commands/boot.c: Likewise.
40832 * commands/cat.c: Likewise.
40833 * commands/cmp.c: Likewise.
40834 * commands/configfile.c: Likewise.
40835 * commands/echo.c: Likewise.
40836 * commands/help.c: Likewise.
40837 * commands/ls.c: Likewise.
40838 * commands/search.c: Likewise.
40839 * commands/terminal.c: Likewise.
40840 * commands/test.c: Likewise.
40841 * commands/videotest.c: Likewise.
40842 * commands/i386/cpuid.c: Likewise.
40843 * commands/i386/pc/halt.c: Likewise.
40844 * commands/i386/pc/play.c: Likewise.
40845 * commands/i386/pc/reboot.c: Likewise.
40846 * commands/i386/pc/vbeinfo.c: Likewise.
40847 * commands/i386/pc/vbetest.c: Likewise.
40848 * commands/ieee1275/halt.c: Likewise.
40849 * commands/ieee1275/reboot.c: Likewise.
40850 * commands/ieee1275/suspend.c: Likewise.
40851 * disk/loopback.c: Likewise.
40852 * disk/lvm.c: Likewise.
40853 * disk/raid.c: Likewise.
40854 * disk/efi/efidisk.c: Likewise.
40855 * disk/i386/pc/biosdisk.c: Likewise.
40856 * disk/ieee1275/ofdisk.c: Likewise.
40857 * font/manager.c: Likewise.
40858 * fs/affs.c: Likewise.
40859 * fs/ext2.c: Likewise.
40860 * fs/fat.c: Likewise.
40861 * fs/fshelp.c: Likewise.
40862 * fs/hfs.c: Likewise.
40863 * fs/hfsplus.c: Likewise.
40864 * fs/iso9660.c: Likewise.
40865 * fs/jfs.c: Likewise.
40866 * fs/minix.c: Likewise.
40867 * fs/sfs.c: Likewise.
40868 * fs/ufs.c: Likewise.
40869 * fs/xfs.c: Likewise.
40870 * hello/hello.c: Likewise.
40871 * include/grub/acorn_filecore.h: Likewise.
40872 * include/grub/arg.h: Likewise.
40873 * include/grub/bitmap.h: Likewise.
40874 * include/grub/boot.h: Likewise.
40875 * include/grub/cache.h: Likewise.
40876 * include/grub/device.h: Likewise.
40877 * include/grub/disk.h: Likewise.
40878 * include/grub/dl.h: Likewise.
40879 * include/grub/elfload.h: Likewise.
40880 * include/grub/env.h: Likewise.
40881 * include/grub/err.h: Likewise.
40882 * include/grub/file.h: Likewise.
40883 * include/grub/font.h: Likewise.
40884 * include/grub/fs.h: Likewise.
40885 * include/grub/fshelp.h: Likewise.
40886 * include/grub/gzio.h: Likewise.
40887 * include/grub/hfs.h: Likewise.
40888 * include/grub/kernel.h: Likewise.
40889 * include/grub/loader.h: Likewise.
40890 * include/grub/lvm.h: Likewise.
40891 * include/grub/misc.h: Likewise.
40892 * include/grub/mm.h: Likewise.
40893 * include/grub/net.h: Likewise.
40894 * include/grub/normal.h: Likewise.
40895 * include/grub/parser.h: Likewise.
40896 * include/grub/partition.h: Likewise.
40897 * include/grub/pc_partition.h: Likewise.
40898 * include/grub/raid.h: Likewise.
40899 * include/grub/rescue.h: Likewise.
40900 * include/grub/script.h: Likewise.
40901 * include/grub/setjmp.h: Likewise.
40902 * include/grub/symbol.h: Likewise.
40903 * include/grub/term.h: Likewise.
40904 * include/grub/terminfo.h: Likewise.
40905 * include/grub/tparm.h: Likewise.
40906 * include/grub/types.h: Likewise.
40907 * include/grub/video.h: Likewise.
40908 * include/grub/efi/api.h: Likewise.
40909 * include/grub/efi/chainloader.h: Likewise.
40910 * include/grub/efi/console.h: Likewise.
40911 * include/grub/efi/console_control.h: Likewise.
40912 * include/grub/efi/disk.h: Likewise.
40913 * include/grub/efi/efi.h: Likewise.
40914 * include/grub/efi/pe32.h: Likewise.
40915 * include/grub/efi/time.h: Likewise.
40916 * include/grub/i386/linux.h: Likewise.
40917 * include/grub/i386/setjmp.h: Likewise.
40918 * include/grub/i386/types.h: Likewise.
40919 * include/grub/i386/efi/kernel.h: Likewise.
40920 * include/grub/i386/efi/loader.h: Likewise.
40921 * include/grub/i386/efi/time.h: Likewise.
40922 * include/grub/i386/pc/biosdisk.h: Likewise.
40923 * include/grub/i386/pc/boot.h: Likewise.
40924 * include/grub/i386/pc/chainloader.h: Likewise.
40925 * include/grub/i386/pc/console.h: Likewise.
40926 * include/grub/i386/pc/init.h: Likewise.
40927 * include/grub/i386/pc/kernel.h: Likewise.
40928 * include/grub/i386/pc/loader.h: Likewise.
40929 * include/grub/i386/pc/memory.h: Likewise.
40930 * include/grub/i386/pc/multiboot.h: Likewise.
40931 * include/grub/i386/pc/serial.h: Likewise.
40932 * include/grub/i386/pc/time.h: Likewise.
40933 * include/grub/i386/pc/vbe.h: Likewise.
40934 * include/grub/i386/pc/vbeblit.h: Likewise.
40935 * include/grub/i386/pc/vbefill.h: Likewise.
40936 * include/grub/i386/pc/vbeutil.h: Likewise.
40937 * include/grub/i386/pc/vga.h: Likewise.
40938 * include/grub/ieee1275/ieee1275.h: Likewise.
40939 * include/grub/ieee1275/ofdisk.h: Likewise.
40940 * include/grub/powerpc/libgcc.h: Likewise.
40941 * include/grub/powerpc/setjmp.h: Likewise.
40942 * include/grub/powerpc/types.h: Likewise.
40943 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40944 * include/grub/powerpc/ieee1275/console.h: Likewise.
40945 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40946 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40947 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40948 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40949 * include/grub/powerpc/ieee1275/time.h: Likewise.
40950 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40951 * include/grub/sparc64/libgcc.h: Likewise.
40952 * include/grub/sparc64/setjmp.h: Likewise.
40953 * include/grub/sparc64/types.h: Likewise.
40954 * include/grub/sparc64/ieee1275/console.h: Likewise.
40955 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40956 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40957 * include/grub/sparc64/ieee1275/time.h: Likewise.
40958 * include/grub/util/biosdisk.h: Likewise.
40959 * include/grub/util/getroot.h: Likewise.
40960 * include/grub/util/lvm.h: Likewise.
40961 * include/grub/util/misc.h: Likewise.
40962 * include/grub/util/raid.h: Likewise.
40963 * include/grub/util/resolve.h: Likewise.
40964 * io/gzio.c: Likewise.
40965 * kern/device.c: Likewise.
40966 * kern/disk.c: Likewise.
40967 * kern/dl.c: Likewise.
40968 * kern/elf.c: Likewise.
40969 * kern/env.c: Likewise.
40970 * kern/err.c: Likewise.
40971 * kern/file.c: Likewise.
40972 * kern/fs.c: Likewise.
40973 * kern/loader.c: Likewise.
40974 * kern/main.c: Likewise.
40975 * kern/misc.c: Likewise.
40976 * kern/mm.c: Likewise.
40977 * kern/parser.c: Likewise.
40978 * kern/partition.c: Likewise.
40979 * kern/rescue.c: Likewise.
40980 * kern/term.c: Likewise.
40981 * kern/efi/efi.c: Likewise.
40982 * kern/efi/init.c: Likewise.
40983 * kern/efi/mm.c: Likewise.
40984 * kern/i386/dl.c: Likewise.
40985 * kern/i386/efi/init.c: Likewise.
40986 * kern/i386/efi/startup.S: Likewise.
40987 * kern/i386/pc/init.c: Likewise.
40988 * kern/i386/pc/lzo1x.S: Likewise.
40989 * kern/i386/pc/startup.S: Likewise.
40990 * kern/ieee1275/ieee1275.c: Likewise.
40991 * kern/powerpc/cache.S: Likewise.
40992 * kern/powerpc/dl.c: Likewise.
40993 * kern/powerpc/ieee1275/cmain.c: Likewise.
40994 * kern/powerpc/ieee1275/crt0.S: Likewise.
40995 * kern/powerpc/ieee1275/init.c: Likewise.
40996 * kern/powerpc/ieee1275/openfw.c: Likewise.
40997 * kern/sparc64/cache.S: Likewise.
40998 * kern/sparc64/dl.c: Likewise.
40999 * kern/sparc64/ieee1275/init.c: Likewise.
41000 * kern/sparc64/ieee1275/openfw.c: Likewise.
41001 * loader/efi/chainloader.c: Likewise.
41002 * loader/efi/chainloader_normal.c: Likewise.
41003 * loader/i386/efi/linux.c: Likewise.
41004 * loader/i386/efi/linux_normal.c: Likewise.
41005 * loader/i386/pc/chainloader.c: Likewise.
41006 * loader/i386/pc/chainloader_normal.c: Likewise.
41007 * loader/i386/pc/linux.c: Likewise.
41008 * loader/i386/pc/linux_normal.c: Likewise.
41009 * loader/i386/pc/multiboot.c: Likewise.
41010 * loader/i386/pc/multiboot_normal.c: Likewise.
41011 * loader/powerpc/ieee1275/linux.c: Likewise.
41012 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41013 * normal/arg.c: Likewise.
41014 * normal/cmdline.c: Likewise.
41015 * normal/command.c: Likewise.
41016 * normal/completion.c: Likewise.
41017 * normal/execute.c: Likewise.
41018 * normal/function.c: Likewise.
41019 * normal/lexer.c: Likewise.
41020 * normal/main.c: Likewise.
41021 * normal/menu.c: Likewise.
41022 * normal/menu_entry.c: Likewise.
41023 * normal/misc.c: Likewise.
41024 * normal/parser.y: Likewise.
41025 * normal/script.c: Likewise.
41026 * normal/i386/setjmp.S: Likewise.
41027 * normal/powerpc/setjmp.S: Likewise.
41028 * normal/sparc64/setjmp.S: Likewise.
41029 * partmap/acorn.c: Likewise.
41030 * partmap/amiga.c: Likewise.
41031 * partmap/apple.c: Likewise.
41032 * partmap/gpt.c: Likewise.
41033 * partmap/pc.c: Likewise.
41034 * partmap/sun.c: Likewise.
41035 * term/gfxterm.c: Likewise.
41036 * term/terminfo.c: Likewise.
41037 * term/efi/console.c: Likewise.
41038 * term/i386/pc/console.c: Likewise.
41039 * term/i386/pc/serial.c: Likewise.
41040 * term/i386/pc/vesafb.c: Likewise.
41041 * term/i386/pc/vga.c: Likewise.
41042 * term/ieee1275/ofconsole.c: Likewise.
41043 * util/biosdisk.c: Likewise.
41044 * util/console.c: Likewise.
41045 * util/genmoddep.c: Likewise.
41046 * util/getroot.c: Likewise.
41047 * util/grub-emu.c: Likewise.
41048 * util/grub-mkdevicemap.c: Likewise.
41049 * util/grub-probe.c: Likewise.
41050 * util/lvm.c: Likewise.
41051 * util/misc.c: Likewise.
41052 * util/raid.c: Likewise.
41053 * util/resolve.c: Likewise.
41054 * util/update-grub.in: Likewise.
41055 * util/update-grub_lib.in: Likewise.
41056 * util/grub.d/00_header.in: Likewise.
41057 * util/grub.d/10_hurd.in: Likewise.
41058 * util/grub.d/10_linux.in: Likewise.
41059 * util/i386/efi/grub-install.in: Likewise.
41060 * util/i386/efi/grub-mkimage.c: Likewise.
41061 * util/i386/pc/grub-install.in: Likewise.
41062 * util/i386/pc/grub-mkimage.c: Likewise.
41063 * util/i386/pc/grub-mkrescue.in: Likewise.
41064 * util/i386/pc/grub-setup.c: Likewise.
41065 * util/i386/pc/misc.c: Likewise.
41066 * util/powerpc/ieee1275/grub-install.in: Likewise.
41067 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
41068 * util/powerpc/ieee1275/misc.c: Likewise.
41069 * video/bitmap.c: Likewise.
41070 * video/video.c: Likewise.
41071 * video/i386/pc/vbe.c: Likewise.
41072 * video/i386/pc/vbeblit.c: Likewise.
41073 * video/i386/pc/vbefill.c: Likewise.
41074 * video/i386/pc/vbeutil.c: Likewise.
41075 * video/readers/tga.c: Likewise.
41076
3572d015 410772007-07-02 Robert Millan <rmh@aybabtu.com>
41078
41079 * conf/i386-efi.rmk: Replace obsolete reference to
41080 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
41081 with util/getroot.c.
41082 * conf/powerpc-ieee1275.rmk: Likewise.
41083 * conf/sparc64-ieee1275.rmk: Likewise.
41084
41085 * util/grub-emu.c (main): Fix unchecked pointer handling.
41086
2c2a681b 410872007-07-02 Robert Millan <rmh@aybabtu.com>
41088
41089 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41090 invocation to fail, in order to support partition-less media.
41091
41092 * util/i386/pc/grub-install.in: Likewise.
41093
41094 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41095 which fs or partmap modules are needed (akin to its sister scripts).
41096
41097 Also use grub-probe to get rid of unportable /proc/mounts check.
41098
41099 Print the same informational message that the other scripts do, before
fe6b695a 41100 exiting.
2c2a681b 41101
6193defe 411022007-06-23 Robert Millan <rmh@aybabtu.com>
41103
fe6b695a 41104 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 41105 a font file can be found and, if so, echo the GRUB path to it.
41106
41107 * util/update-grub.in: Handle multiple terminals depending on user
41108 input, platform availability and font file presence. Propagate
41109 variables of our findings to /etc/grub.d/ children.
41110
41111 * util/grub.d/00_header.in: Handle multiple terminals, based on
41112 environment setup by update-grub.
41113
eface1dc 411142007-06-23 Robert Millan <rmh@aybabtu.com>
41115
ba50d28f 41116 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 41117
bf697e28 411182007-06-21 Robert Millan <rmh@aybabtu.com>
41119
41120 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41121 indicate end of data section in kernel image.
41122 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41123 GRUB_KERNEL_MACHINE_DATA_END.
41124
41125 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41126 space for it.
41127 * kern/i386/efi/startup.S: Likewise.
41128
41129 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41130 during image generation. Implement --prefix option to override this
41131 patch.
41132 * util/i386/efi/grub-mkimage.c: Likewise.
41133
41134 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41135 code to make path relative to its root into a separate function.
41136
41137 * util/i386/pc/grub-install.in: Use newly provided
41138 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41139 pass the result to grub-install --prefix.
41140
baa574b4 411412007-06-13 Robert Millan <rmh@aybabtu.com>
41142
41143 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41144 DEFAULT_DEVICE_MAP.
41145 * util/grub-emu.c: Use above definitions from misc.h instead of
41146 defining them.
41147 * util/grub-mkdevicemap.c: Likewise.
41148 * util/i386/pc/grub-setup.c: Likewise.
41149 * util/grub-probe.c: Likewise.
41150 (probe): Abort with grub_util_error() when either
41151 grub_guess_root_device or grub_util_get_grub_dev fails.
41152
0215dcbf 411532007-06-12 Robert Millan <rmh@aybabtu.com>
41154
41155 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41156 "pager" assignment.
41157 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41158 "pcdata".
41159 * util/grub-probe.c (probe): Likewise for "drive_name".
41160
8af2ab7b 411612007-06-11 Robert Millan <rmh@aybabtu.com>
41162
41163 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41164 not just the cdrom one.
41165
59d31694 411662007-06-11 Robert Millan <rmh@aybabtu.com>
41167
41168 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41169 Add --pkglibdir=DIR option to override pkglibdir.
41170 Mention --image-type=TYPE in help output.
41171 Fix --grub-mkimage (it was a no-op).
fe6b695a 41172 Abort gracefully when no parameter is given.
59d31694 41173
7ee367e4 411742007-06-11 Robert Millan <rmh@aybabtu.com>
41175
41176 * util/i386/pc/grub-mkrescue.in: New file.
41177 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41178 * Makefile.in: Handle bin_SCRIPTS.
41179
29b0ed46 411802007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41181
41182 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41183 list of video modes.
41184
c0f90770 411852007-06-06 Robert Millan <rmh@aybabtu.com>
41186
41187 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41188 file doesn't exist, or if it is in a filesystem grub can't read.
41189
41190 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41191 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41192 header comment to fit in 80 columns when the variables are resolved.
41193
41194 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41195 could be identified by update-grub. Remove redundant check for
fe6b695a 41196 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 41197 handles that).
41198
fb36dc26 411992007-06-04 Robert Millan <rmh@aybabtu.com>
41200
41201 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41202
41203 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41204
41205 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41206
0c68c93e 412072007-06-04 Robert Millan <rmh@aybabtu.com>
41208
41209 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41210
41211 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41212 grub_apple_partition_map_fini.
41213
41214 * util/biosdisk.c
41215 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41216 to access >2 TiB disks).
41217
41218 Print disk->total_sectors with %llu instead of %lu, since this
41219 variable is always 64-bit (prevents wrong disk size from being displayed
41220 on either >2 TiB disk or big-endian CPU).
41221
41222 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41223 into a generic case that supports all (sane) partition maps.
41224
41225 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41226 breaks big-endian.
41227
41228 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41229 and grub_apple_partition_map_fini() after that.
41230
0f23eb74 412312007-06-01 Robert Millan <rmh@aybabtu.com>
41232
41233 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41234
41235 * util/grub.d/00_header.in: Only enable gfxterm when
41236 convert_system_path_to_grub_path() succeeds.
41237
42c71976 412382007-05-20 Robert Millan <rmh@aybabtu.com>
41239
41240 * util/update-grub_lib.in: New file.
41241 * DISTLIST: Add update-grub_lib.in.
41242 * conf/common.rmk: Generate update-grub_lib and install it in
41243 $(lib_DATA).
41244 * Makefile.in: Add install routine for $(lib_DATA).
41245
41246 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41247 function provided by update-grub_lib to support arbitrary paths of
41248 unifont.pff.
41249 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41250 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41251
5beb2291 412522007-05-19 Robert Millan <rmh@aybabtu.com>
41253
41254 * commands/i386/cpuid.c: New module.
41255 * DISTLIST: Add it.
41256 * conf/i386-efi.rmk: Enable cpuid.mod.
41257 * conf/i386-pc.rmk: Likewise.
41258
7262eca1 412592007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41260
41261 * kern/disk.c (grub_disk_read): Check return value of
41262 grub_realloc().
41263
260ba823 412642007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41265
41266 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41267 arrays.
41268 * disk/raid.c (grub_raid_open): Likewise.
41269
1ecb6cf2 412702007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41271
41272 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41273 stack instead of on the heap.
41274
41275 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41276 before doing a read on it.
41277
41278 * configure.ac: Only use -fno-stack-protector for the target
41279 environment.
f19dbdb7 41280
21c8cbb1 412812007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41282
41283 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41284 __attribute_ ((unused)) to mode_type argument.
41285
41286 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 41287
21c8cbb1 41288 * kern/misc.c (memcmp): Fix prototype.
41289
41290 * include/grub/partition.h [GRUB_UTIL]
41291 (grub_gpt_partition_map_init): Add prototype.
41292 (grub_gpt_partition_map_fini): Likewise.
41293
41294 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41295 at the right place.
41296
41297 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41298 (grub_fat_read_data): Likewise.
41299 (grub_fat_find_dir): Likewise.
41300
41301 * font/manager.c (find_glyph): Make table a const.
41302 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 41303
849d55d3 413042007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41305
41306 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41307 code, first search for device in /dev/mapper, then in /dev.
41308 (grub_util_get_grub_dev): New function.
41309 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41310 prototype.
41311 * util/grub-probe.c (probe): Remove check for RAID, call
41312 grub_util_get_grub_dev() instead of
41313 grub_util_biosdisk_get_grub_dev().
41314 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41315 grub_util_biosdisk_get_grub_dev().
41316 * util/i386/pc/grub-setup.c (main): Likewise.
41317
8fff7c2f 413182007-05-16 Robert Millan <rmh@aybabtu.com>
41319
41320 * DISTLIST: Update for the latest changes.
41321 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41322 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41323 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41324 grub/util/biosdisk.h.
41325 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41326 grub/util/biosdisk.h.
41327
48e12b52 413282007-05-16 Robert Millan <rmh@aybabtu.com>
41329
41330 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41331
46b9d128 413322007-05-16 Robert Millan <rmh@aybabtu.com>
41333
41334 * util/i386/efi/grub-install.in: New.
41335 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41336 newly added grub-install.
41337 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41338 include.
41339 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41340 grub/util/biosdisk.h.
41341 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41342 grub/util/biosdisk.h.
41343
2d1a40a9 413442007-05-16 Robert Millan <rmh@aybabtu.com>
41345
41346 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41347 * include/grub/util/biosdisk.h: ... here.
41348 * util/i386/pc/biosdisk.c: Moved to ...
41349 * util/biosdisk.c: ... here.
41350 * util/i386/pc/getroot.c: Moved to ...
41351 * util/getroot.c: ... here.
41352 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41353 * util/grub-mkdevicemap.c: ... here.
41354 * util/i386/pc/grub-probe.c: Moved to ...
41355 * util/grub-probe.c: ... here.
41356
9e26e3bc 413572007-05-15 Robert Millan <rmh@aybabtu.com>
41358
41359 * util/update-grub.in: Remove duplicated line in grub.cfg header
41360 message.
41361
57f96397 413622007-05-13 Robert Millan <rmh@aybabtu.com>
41363
41364 * util/update-grub.in: Fix a few assumptions about the devices holding
41365 /, /boot and /boot/grub being the same.
41366 * util/grub.d/00_header.in: Likewise.
41367 * util/grub.d/10_hurd.in: Likewise.
41368 * util/grub.d/10_linux.in: Likewise.
41369
41370 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41371 patterns. Use that to define the `.old' suffix as older than `'.
41372
41373 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41374
41375 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41376 the grub.cfg header message.
41377
2e610d62 413782007-05-11 Robert Millan <rmh@aybabtu.com>
41379
41380 * util/update-grub.in: Create device.map if it doesn't already exist,
41381 before attempting to run grub-probe.
41382 Check for grub-probe and grub-mkdevicemap with the same code
41383 grub-install is using.
41384 Remove test mode.
41385
3f6a10ef 413862007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41387
41388 * Makefile.in: Add the datarootdir autoconf variable.
41389
02e7b75e 413902007-05-09 Robert Millan <rmh@aybabtu.com>
41391
41392 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 41393 fail gracefully if dev->disk->partition == NULL.
02e7b75e 41394
75f396cc 413952007-05-07 Robert Millan <rmh@aybabtu.com>
41396
41397 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41398 determine partition map module.
41399 * util/i386/pc/grub-install.in: Use this feature to decide which
41400 partition module to load, instead of hardcoding pc and gpt.
41401
da65cb36 414022007-05-07 Robert Millan <rmh@aybabtu.com>
41403
41404 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41405 source directory differs from build directory.
41406
b57d6a91 414072007-05-05 Robert Millan <rmh@aybabtu.com>
41408
41409 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41410 initialisation.
41411
509d00f1 414122007-05-05 Robert Millan <rmh@aybabtu.com>
41413
41414 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41415
c48f23ef 414162007-05-05 Robert Millan <rmh@aybabtu.com>
41417
41418 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41419 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41420
20b97658 414212007-05-05 Robert Millan <rmh@aybabtu.com>
41422
41423 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41424 (grub_probe_SOURCES): Likewise.
41425 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41426 GPT and initialize dos_part and bsd_part accordingly.
41427 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41428 install_bsd_part.
41429 (main): Activate gpt module for use during partition identification,
41430 and deactivate it afterwards.
41431 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41432 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41433 partition identification, and deactivate it afterwards.
41434
99123174 414352007-05-05 Robert Millan <rmh@aybabtu.com>
41436
41437 * term/i386/pc/console.c (grub_console_fini): Call
41438 grub_term_set_current() before grub_term_unregister().
41439
ebd97f6e 414402007-05-04 Robert Millan <rmh@aybabtu.com>
41441
41442 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41443 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41444 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41445 and update-grub_DATA.
41446 * conf/common.rmk: Build and install update-grub components.
41447 * conf/common.mk: Regenerate.
41448 * util/update-grub.in: New. Core of update-grub.
41449 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41450 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41451 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41452 * util/grub.d/README: New. Document grub.d directory layout.
41453
b06a264d 414542007-05-01 Robert Millan <rmh@aybabtu.com>
41455
41456 * util/grub-emu.c: Move initialization functions
41457 grub_util_biosdisk_init() and grub_init_all() before
41458 grub_util_biosdisk_get_grub_dev(), which relies on them.
41459
41f0050e 414602007-04-19 Robert Millan <rmh@aybabtu.com>
41461
41462 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41463 it is used later.
41464
04582bb3 414652007-04-18 Jerone Young <jerone@gmail.com>
41466
f19dbdb7 41467 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 41468 stanza.
41469
08db4632 414702007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 41471
08db4632 41472 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41473 continue on and look for device node with real device name.
41474
801b76be 414752007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 41476
fe6b695a 41477 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 41478 ability.
41479 * Makefile.in: Add autoconf package transformation code.
41480 * util/i386/pc/grub-install.in: Likewise.
41481 * util/powerpc/ieee1275/grub-install.in: Likewise.
41482
6795c4e1 414832007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41484
41485 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41486 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41487 (EXT2_REVISION): Likewise.
41488 (EXT2_INODE_SIZE): Likewise.
41489 (struct grub_ext2_block_group): Added a missing member
41490 "used_dirs".
41491 (grub_ext2_read_inode): Divide by the inode size in a superblock
41492 instead of 128 to obtain INODES_PER_BLOCK.
41493 Use the macro EXT2_INODE_SIZE instead of directly using
41494 SBLOCK->INODE_SIZE.
41495
d70af616 414962007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41497
41498 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41499 superblock instead of the structure size to compute an
41500 offset. This fixes the problem that GRUB could not read a
41501 filesystem when inode size is different from 128-byte.
41502
3b801603 415032007-03-05 Marco Gerards <marco@gnu.org>
41504
41505 * normal/main.c (read_config_file): When "menu" is not set, create
41506 an initial context.
41507
4785bfe4 415082007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41509
41510 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41511 (HEAP_LIMIT): New macro.
41512 (grub_claim_heap): Claim memory up to `heaplimit'.
41513
a0cbb023 415142007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41515
41516 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41517 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41518 (_start): Likewise.
41519 (grub_arch_modules_addr): Return address after `_end'.
41520 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41521 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41522 (add_segments): Calculate `_end' from phdr size and location.
41523 (ALIGN_UP): Moved to ...
41524 * include/grub/misc.h: here.
41525 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41526 New macro.
41527 (GRUB_IEEE1275_MODULE_BASE): Removed.
41528
fd7d8eba 415292007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41530
41531 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41532 loop boundary.
41533
9b09e6fc 415342007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41535
41536 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41537 All users updated.
41538 (grub_elf64_load_hook_t): Likewise.
41539 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41540 debug output.
41541
3ce27299 415422007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41543
41544 * kern/mm.c: Update copyright.
41545 (grub_mm_debug): Correct syntax error.
41546 (grub_mm_dump_free): New function.
41547 (grub_debug_free): Call `grub_free'.
41548 * include/grub/mm.h: Update copyright.
41549 (grub_mm_dump_free): Add declaration.
41550
077d5fee 415512007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41552
41553 * include/grub/ieee1275/ieee1275.h: Update copyright.
41554 * kern/powerpc/ieee1275/init.c: Likewise.
41555 * kern/powerpc/ieee1275/openfw.c: Likewise.
41556
41557 * loader/powerpc/ieee1275/linux.c: Likewise.
41558 * include/grub/elfload.h: Likewise.
41559 * kern/elf.c: Likewise.
41560 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41561 callers.
41562 (grub_elf64_load): Likewise.
41563 (grub_elf32_load_segment): Move to a nested function.
41564 (grub_elf64_load_segment): Likewise.
41565
dc946850 415662007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41567
41568 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41569 prototype.
41570 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41571 (grub_heap_len): Likewise.
41572 (HEAP_SIZE): New macro.
41573 (grub_claim_heap): New function.
41574 (grub_machine_init): Don't claim heap directly. Call
41575 `grub_claim_heap'.
41576 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41577 (grub_available_iterate): New function.
41578
baa2a121 415792007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41580
41581 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41582 * configure.ac: Use it for testing the HOST and TARGET compilers.
41583
4fe9862e 415842006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41585
41586 * Makefile.in (enable_grub_emu): New variable.
41587 * configure.ac (--enable-grub-emu): New option.
41588 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41589 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41590 * conf/i386-pc.rmk: Likewise.
41591 * conf/powerpc-ieee1275.rmk: Likewise.
41592 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41593
a8aa5762 415942006-12-12 Marco Gerards <marco@gnu.org>
41595
41596 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41597
41598 * kern/env.c (grub_env_unset): Don't free the member `value' when
41599 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41600 pointer.
41601
41602 * normal/main.c (current_menu): Removed.
41603 (free_menu): Unset the `menu' environment variable.
41604 (grub_normal_menu_addentry): Make use of the environment variable
41605 `menu', instead of using the global `current_menu'. Allocate
41606 memory for the sourcecode of this entry.
41607 (read_config_file): New argument `nested', changed all callers.
41608 Only in the case of a new context, initialize a new menu. Set the
41609 `menu' environment variable.
41610 (grub_normal_execute): Don't set and unset the environment
41611 variable `menu' here anymore. Only free the menu when leaving the
41612 context.
41613
41614 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41615 leak.
41616
957b3a3e 416172006-12-11 Marco Gerards <marco@gnu.org>
41618
41619 * normal/menu_entry.c (run): Fix off by one bug so the last line
41620 is executed. Move the loader check to outside the loop.
41621
ef875714 416222006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41623
41624 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41625
4e739985 416262006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41627
41628 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41629 the number of sectors. Reported by Andrey Shuvikov
41630 <mr_hyro@yahoo.com>.
f19dbdb7 41631
790707f2 416322006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41633
41634 * kern/disk.c (grub_disk_read): When there is a read error, always
41635 try to read only the necessary data.
f19dbdb7 41636
790707f2 41637 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41638 disk/raid.c.
41639 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41640 prototype.
41641 [GRUB_UTIL] (grub_raid_fini): Likewise.
41642 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 41643 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 41644 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41645 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41646 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41647 and grub_raid_fini().
f19dbdb7 41648
03e58196 416492006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41650
41651 * include/grub/types.h (__unused): Rename to UNUSED.
41652 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41653 (grub_elf64_size): Likewise.
f19dbdb7 41654
ae4f23bf 416552006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41656
41657 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41658 grub_error_push and grub_error_pop in the error-handling path.
41659 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41660 length.
41661
2166cc83 416622006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41663
41664 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41665 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41667 (kernel_elf_SOURCES): Likewise.
41668 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41669 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41670 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41671 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41672 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41673 (elf_mod_SOURCES): New variable.
41674 (elf_mod_CFLAGS): Likewise.
41675 (elf_mod_LDFLAGS): Likewise.
41676 * include/grub/types.h (__unused): New macro.
41677 * include/grub/elfload.h: New file.
41678 * kern/elf.c: Likewise.
41679 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41680 (ELF32_LOADMASK): New macro.
41681 (ELF64_LOADMASK): Likewise.
41682 (vmlinux): Removed.
41683 (grub_linux_load32): New function.
41684 (grub_linux_load64): Likewise.
41685 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41686 Use grub_elf_t instead of grub_file_t.
41687
a09d5aa5 416882006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41689
41690 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41691 `catch_result' to struct set_color_args.
41692
d976fc51 416932006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41694
41695 * normal/menu.c: Include grub/script.h.
41696 * normal/menu_entry.c: Likewise.
41697 * include/grub/normal.h: Do not include grub/script.h.
41698
67507549 416992006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41700
41701 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41702
69203a99 417032006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41704
41705 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41706 disk.
41707 (grub_disk_close): Print debug messages when closing a disk.
41708 (grub_disk_read): Print debug messages when disk read fails.
41709 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41710 filesystem type.
41711 * kern/partition.c: Include misc.h.
41712 (grub_partition_iterate): Print debug messages when detecting
41713 partition type.
41714
e2b8278c 417152006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41716
41717 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41718 is negative.
41719 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41720
97b2f2ff 417212006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41722
41723 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41724 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41725
6555d655 417262006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41727
41728 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41729 instead of sizeof(lv). Patch by Michael Guntsche.
41730
4d42b77f 417312006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41732
41733 * disk/lvm.c: Rename VGS to VG_LIST.
41734 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41735 (grub_lvm_open): Likewise.
41736 Thanks to Michael Guntsche for finding this bug.
41737
5d74d927 417382006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41739
41740 * configure.ac (AC_INIT): Bumped to 1.95.
41741
a1bb27e4 417422006-10-14 Robert Millan <rmh@aybabtu.com>
41743
41744 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41745 with "/dev/.static/dev/md".
41746
e0994b8b 417472006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41748
41749 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41750 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41751 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41752 DRIVE_NAME are always freed.
41753
41754 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41755 DOS_PART, as a DOS partition is counted from one instead of zero
41756 now. Reported by Robert Millan.
41757
ddd5cee9 417582006-10-14 Robert Millan <rmh@aybabtu.com>
41759
41760 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41761 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41762 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41763 string returned by grub_guess_root_device.
41764 * util/i386/pc/grub-setup.c: Likewise.
41765 * util/i386/pc/grub-probefs.c: Likewise.
41766
41767 * util/i386/pc/grub-probefs.c: Rename to ...
41768 * util/i386/pc/grub-probe.c: ... this.
41769 * DISTLIST: Remove grub-probefs, add grub-probe.
41770 * conf/i386-efi.rmk: Likewise.
41771 * conf/i386-pc.rmk: Likewise.
41772 * util/i386/pc/grub-install.in: Likewise.
41773
41774 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41775 choose which information we want to print.
41776
2b002173 417772006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41778
41779 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41780 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41781 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41782 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41783 video/readers/tga.c and video/i386/pc/vbeutil.c.
41784
417852006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41786
41787 Added support for RAID and LVM.
f19dbdb7 41788
2b002173 41789 * disk/lvm.c: New file.
41790 * disk/raid.c: Likewise.
41791 * include/grub/lvm.h: Likewise.
f19dbdb7 41792 * include/grub/raid.h: Likewise.
2b002173 41793 * include/grub/util/lvm.h: Likewise.
41794 * include/grub/util/raid.h: Likewise.
41795 * util/lvm.c: Likewise.
41796 * util/raid.c: Likewise.
41797
41798 * include/grub/disk.h (grub_disk_dev_id): Add
41799 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41800 (grub_disk_get_size): New prototype.
41801 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41802 returns a partition.
41803 (grub_disk_get_size): New function.
f19dbdb7 41804
2b002173 41805 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41806 verbatim if grub_install_dos_part is -2.
41807
41808 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41809 and LVM devices.
41810
41811 * util/i386/pc/grub-setup.c (setup): New argument
41812 MUST_EMBED. Force embedding of GRUB when the argument is
41813 true. Close FILE before returning.
41814 (main): Add support for RAID and LVM.
f19dbdb7 41815
2b002173 41816 * conf/common.rmk: Add RAID and LVM modules.
41817 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41818 util/lvm.c.
41819 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41820
41821 * kern/misc.c (grub_strstr): New function.
41822 * include/grub/misc.h (grub_strstr): New prototype.
41823
050548d0 418242006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41825
41826 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41827
da849d2d 418282006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41829
41830 * kern/misc.c (grub_strtoull): Guess the base only if not
41831 specified.
41832
97b2f2ff 418332006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 41834
41835 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41836 PowerMac support.
41837
97b2f2ff 418382006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 41839
41840 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41841
41842 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41843 Remove `flags' argument. All callers changed.
41844 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41845 (IEEE1275_IHANDLE_INVALID): New variable.
41846 (IEEE1275_CELL_INVALID): New variable.
41847 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41848 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41849 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41850 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41851 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41852 codes from Open Firmware. All callers updated.
41853 (grub_ieee1275_next_property): Directly return Open Firmware return
41854 code.
41855 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41856 Standardize error checking from `grub_ieee1275_get_property'.
41857 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41858 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41859
97b2f2ff 418602006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 41861
41862 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41863 `instance_to_package_args' to `instance_to_path_args'.
41864
41865 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41866 `grub_ieee1275_chosen'.
41867
41868 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41869 `grub_ieee1275_interpret'.
41870
97b2f2ff 418712006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 41872
41873 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41874
97b2f2ff 418752006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 41876
41877 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41878 (__cmpdi): Likewise.
41879
41880 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41881 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41882 `grub_ssize_t'.
41883
02bb8acc 41884 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 41885
41886 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41887 to type `grub_ssize_t'.
41888 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41889
7f9a8531 418902006-09-22 Marco Gerards <marco@gnu.org>
41891
41892 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41893 newlines.
41894
b5ef1102 418952006-09-22 Marco Gerards <marco@gnu.org>
41896
41897 * commands/echo.c: New file.
41898
41899 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41900
41901 * conf/common.rmk (echo_mod_SOURCES): New variable.
41902 (echo_mod_CFLAGS): Likewise.
41903 (echo_mod_LDFLAGS): Likewise.
41904
2cff3677 419052006-09-22 Marco Gerards <marco@gnu.org>
41906
41907 * normal/main.c (get_line): Malloc memory instead of using
41908 preallocated memory. Removed the arguments `cmdline' and
41909 `max_len'. Updated all callers.
41910
6ba4688b 419112006-09-22 Marco Gerards <marco@gnu.org>
41912
41913 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41914 (normal_mod_DEPENDENCIES): Likewise.
41915
41916 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41917 (normal_mod_DEPENDENCIES): Likewise.
41918
41919 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41920
e02ac02c 419212006-09-22 Johan Rydberg <jrydberg@gnu.org>
41922
41923 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41924 programs.
41925 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41926 (normal_mod_DEPENDENCIES): Likewise.
41927 * conf/i386-pc.mk: Regenerate.
41928 * conf/i386-efi.mk: Likewise
41929 * conf/common.mk: Likewise.
41930 * conf/powerpc-ieee1275.mk: Likewise.
41931 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 41932
8d252e44 419332006-09-22 Robert Millan <rmh@aybabtu.com>
41934
41935 Sync with i386 version.
41936 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41937 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41938
209bf7ac 419392006-09-21 Robert Millan <rmh@aybabtu.com>
41940
41941 Import from GRUB Legacy (lib/device.c):
41942 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41943 (init_device_map) [__linux__]: Add support for I2O devices.
41944
6b146090 419452006-09-14 Marco Gerards <marco@gnu.org>
41946
41947 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41948 `-melf_i386'.
41949
e38600a8 419502006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 41951
41952 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41953 /boot/grub/*.lst.
78fa1790 41954
2952da5d 41955 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 41956
2952da5d 41957 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41958 before adding it to device.map.
41959
01b82a64 419602006-08-15 Johan Rydberg <jrydberg@gnu.org>
41961
fe6b695a 41962 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 41963 compiles a file; using the -MD option.
41964 * conf/common.mk: Regenerate.
41965 * conf/i386-pc.mk: Likewise.
41966 * conf/i386-efi.mk: Likewise.
41967 * conf/powerpc-ieee1275.mk: Likewise.
41968 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 41969
1064790d 419702006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41971
41972 Move the prototypes of grub_setjmp and grub_longjmp to
41973 cpu/setjmp.h, so that each architecture may specify different
41974 attributes.
f19dbdb7 41975
1064790d 41976 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41977 (grub_longjmp): Likewise.
41978 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41979 (grub_longjmp): Likewise.
41980 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41981 (grub_longjmp): Likewise.
41982
41983 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41984 [!GRUB_UTIL] (grub_longjmp): Removed.
41985
29dda3ed 419862006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41987
41988 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41989 "color!" method does not return any value.
41990
ad2a06ed 419912006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41992
41993 * include/grub/bitmap.h: New file.
41994
41995 * include/grub/i386/pc/vbeutil.h: Likewise.
41996
41997 * video/bitmap.c: Likewise.
41998
41999 * video/readers/tga.c: Likewise.
42000
42001 * video/i386/pc/vbeutil.c: Likewise.
42002
42003 * commands/videotest.c: Code cleanup and updated to reflect to new
42004 video API.
42005
42006 * term/gfxterm.c: Likewise.
42007
42008 * video/video.c: Likewise.
42009
42010 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
42011 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
42012 (bitmap_mod_SOURCES): New entry.
42013 (bitmap_mod_CFLAGS): Likewise.
42014 (bitmap_mod_LDFLAGS): Likewise.
42015 (tga_mod_SOURCES): Likewise.
42016 (tga_mod_CFLAGS): Likewise.
42017 (tga_mod_LDFLAGS): Likewise.
42018
42019 * include/grub/video.h (grub_video_blit_operators): New enum type.
42020 (grub_video_render_target): Changed as forward declaration and moved
42021 actual definition to be video driver specific.
42022 (grub_video_adapter.blit_bitmap): Added blitting operator.
42023 (grub_video_adapter.blit_render_target): Likewise.
42024 (grub_video_blit_bitmap): Likewise.
42025 (grub_video_blit_render_target): Likewise.
42026
42027 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
42028 driver specific render target definition.
42029 (grub_video_vbe_map_rgba): Added driver internal helper.
42030 (grub_video_vbe_unmap_color): Updated to use
42031 grub_video_i386_vbeblit_info.
42032 (grub_video_vbe_get_video_ptr): Likewise.
42033
42034 * include/grub/i386/pc/vbeblit.h
42035 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
42036 grub_video_i386_vbeblit_info.
42037 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42038 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42039 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42040 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42041 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42042 (grub_video_i386_vbeblit_index_index): Likewise.
42043 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
42044 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42045 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42046 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
42047 operator.
42048 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
42049 operator.
42050
42051 * video/i386/pc/vbeblit.c: Updated to reflect changes on
42052 include/grub/i386/pc/vbeblit.h.
42053
42054 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
42055 Updated to use grub_video_i386_vbeblit_info.
42056 (grub_video_i386_vbefill_R8G8B8): Likewise.
42057 (grub_video_i386_vbefill_index): Likewise.
42058 (grub_video_i386_vbefill): Added generic filler.
42059
42060 * video/i386/pc/vbefill.c: Updated to reflect changes on
42061 include/grub/i386/pc/vbefill.h.
42062
42063 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
42064 grub_video_i386_vbeblit_info.
42065 (grub_video_vbe_unmap_color): Likewise.
42066 (grub_video_vbe_blit_glyph): Likewise.
42067 (grub_video_vbe_scroll): Likewise.
42068 (grub_video_vbe_draw_pixel): Removed function.
42069 (grub_video_vbe_get_pixel): Likewise.
42070 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
42071 updated code to use it.
42072 (common_blitter): Added common blitter for render target and bitmap.
42073 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
42074 (grub_video_vbe_blit_render_target): Likewise.
42075
bc8c036d 420762006-07-30 Johan Rydberg <jrydberg@gnu.org>
42077
42078 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
42079 is in text mode if there is no console control protocol instance
42080 available.
42081
684a8eff 420822006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42083
42084 * include/grub/video.h: Code cleanup.
42085
42086 * include/grub/i386/pc/vbe.h: Likewise.
42087
42088 * video/i386/pc/vbe.c: Likewise.
42089
42090 * video/i386/pc/vbeblit.c: Likewise.
42091
42092 * video/i386/pc/vbefill.c: Likewise.
42093
42094 * video/video.c: Likewise. Also added more comments.
42095
5915059b 420962006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42097
42098 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42099 (struct grub_biosdisk_dap): Likewise.
42100
42101 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42102 linkage settings for all functions.
42103
90ce5d56 421042006-07-12 Marco Gerards <marco@gnu.org>
42105
42106 * configure.ac (--enable-mm-debug): Fix typo.
42107
42108 * genkernsyms.sh.in: Use proper quoting for `CC'.
42109
43e7f879 421102006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42111
42112 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42113 (normal_mod_ASFLAGS): Remove "-m32".
42114
4889bdec 421152006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42116
42117 * util/misc.c: Include config.h.
42118 [!HAVE_MEMALIGN]: Do not include malloc.h.
42119 (grub_memalign): Use posix_memalign, if present. Then, use
42120 memalign, if present. Otherwise, emit an error.
42121
42122 * util/grub-emu.c: Do not include malloc.h.
42123
42124 * include/grub/util/misc.h: Include unistd.h. This is required for
42125 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42126 D. Eades III <hde@foobar-qux.org>.
42127
42128 * configure.ac (AC_GNU_SOURCE): Added.
42129 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42130 type.
42131
fd39d4da 421322006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42133
42134 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42135 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42136
b786f3b5 421372006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42138
42139 * include/grub/types.h (grub_host_addr_t): Rename to
42140 grub_target_addr_t.
42141 (grub_host_off_t): Rename to grub_target_off_t.
42142 (grub_host_size_t): Rename to grub_target_size_t.
42143 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42144 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42145
42146 * include/grub/kernel.h (struct grub_module_header): Change type
42147 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42148 (grub_module_info): Likewise.
f19dbdb7 42149
051988bb 421502006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42151
42152 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42153 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42154 Velazquez <jesus.velazquez@gmail.com>.
42155
deae281b 421562006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42157
42158 Count partitions from 1 instead of 0 in the string representation
42159 of partitions. Still use 0-based internally.
f19dbdb7 42160
deae281b 42161 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42162 (sun_partition_map_iterate): Use grub_partition_t instead of
42163 struct grub_partition *. Cast DESC->START_CYLINDER to
42164 grub_uint64_t after converting the endian.
42165 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42166 (sun_partition_map_get_name): Add 1 to P->INDEX.
42167
42168 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42169 PCDATA->DOS_PART.
42170 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42171
42172 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42173 zero instead of one.
42174 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42175 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42176
42177 * partmap/apple.c (apple_partition_map_iterate): Change the type
42178 of POS to unsigned.
42179 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42180 (apple_partition_map_get_name): Add 1 into P->INDEX.
42181
42182 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42183 of POS to unsigned.
42184 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42185 calculate the offset of a partition.
42186 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42187 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42188
42189 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42190 SECTOR to grub_disk_addr_t.
42191 (acorn_partition_map_iterate): Likewise.
42192 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42193 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42194 top.
42195 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42196
42197 * kern/i386/pc/init.c (make_install_device): Add 1 into
42198 GRUB_INSTALL_DOS_PART.
42199
42200 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42201 conditional.
42202
524a1e6a 422032006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42204
42205 Clean up the code to support 64-bit addressing in disks and
42206 files. This change is not enough for filesystems yet.
f19dbdb7 42207
524a1e6a 42208 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42209 type of "start" to grub_uint64_t.
42210 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42211 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42212 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42213 convert addresses.
42214
42215 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42216 to grub_disk_addr_t.
42217
42218 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42219 string.
42220
42221 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42222
42223 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42224 to char *.
42225
42226 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42227
42228 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42229
42230 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42231
42232 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42233 to grub_off_t, to detect an error from grub_file_seek.
42234 (grub_multiboot_load_elf32): Likewise.
42235
42236 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42237 maximum unsigned long value when an overflow is detected.
42238 (grub_strtoull): New function.
42239 (grub_divmod64): Likewise.
42240 (grub_lltoa): use grub_divmod64.
42241
42242 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42243 grub_disk_addr_t.
42244 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42245 the pointer to next character. Use grub_strtoull instead of
42246 grub_strtoul.
42247 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42248 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42249 respectively.
42250
fe6b695a 42251 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 42252 return value is signed.
42253 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42254 test if OFFSET is less than zero, as OFFSET is unsigned now.
42255
42256 * kern/disk.c (struct grub_disk_cache): Change the type of
42257 "sector" to grub_disk_addr_t.
42258 (grub_disk_cache_get_index): Change the type of SECTOR to
42259 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42260 unsigned after shifting.
42261 (grub_disk_cache_invalidate): Change the type of SECTOR to
42262 grub_disk_addr_t.
42263 (grub_disk_cache_unlock): Likewise.
42264 (grub_disk_cache_store): Likewise.
42265 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42266 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42267 grub_disk_addr_t and grub_uint64_t, respectively.
42268 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42269 body, as the value of OFFSET is tweaked by
42270 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42271 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42272 respectively.
42273 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42274 body, as the value of OFFSET is tweaked by
42275 grub_disk_check_range. Change the types of LEN and N to
42276 grub_size_t.
42277
42278 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42279 and "saved_offset" to grub_off_t.
42280 (test_header): Cast BUF to char *.
42281 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42282 to char *.
42283 (grub_gzio_read): Change the types of OFFSET and SIZE to
42284 grub_off_t and grub_size_t, respectively.
42285
42286 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42287 Removed.
42288 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42289 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42290 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42291 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42292 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42293
42294 * include/grub/types.h (grub_off_t): Unconditionally set to
42295 grub_uint64_t.
42296 (grub_disk_addr_t): Changed to grub_uint64_t.
42297
42298 * include/grub/partition.h (struct grub_partition): Change the
42299 types of "start", "len" and "offset" to grub_disk_addr_t,
42300 grub_uint64_t and grub_disk_addr_t, respectively.
42301 (grub_partition_get_start): Return grub_disk_addr_t.
42302 (grub_partition_get_len): Return grub_uint64_t.
42303
42304 * include/grub/misc.h (grub_strtoull): New prototype.
42305 (grub_divmod64): Likewise.
42306
42307 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42308 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42309 grub_off_t, respectively.
42310 All callers and references changed.
42311
42312 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42313 grub_size_t in "read".
42314 All callers and references changed.
42315
42316 * include/grub/file.h (struct grub_file): Change the types of
42317 "offset" and "size" to grub_off_t and grub_off_t,
42318 respectively. Change the type of SECTOR to grub_disk_addr_t in
42319 "read_hook".
42320 (grub_file_read): Change the type of LEN to grub_size_t.
42321 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42322 grub_off_t.
42323 (grub_file_size): Return grub_off_t.
42324 (grub_file_tell): Likewise.
42325 All callers and references changed.
42326
42327 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42328 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42329 "write".
42330 (struct grub_disk): Change the type of "total_sectors" to
42331 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 42332 "read_hook".
524a1e6a 42333 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42334 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42335 (grub_disk_write): Likewise.
42336 All callers and references changed.
42337
42338 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42339 char * for grub_strncmp to silence gcc.
42340 (grub_iso9660_mount): Likewise.
42341 (grub_iso9660_mount): Likewise.
42342 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42343 return statement.
42344 (grub_iso9660_iterate_dir): Likewise.
42345 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42346
42347 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42348 LEN to grub_disk_addr_t and grub_size_t, respectively.
42349
42350 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42351
42352 * fs/jfs.c (grub_jfs_read_file): Likewise.
42353
42354 * fs/minix.c (grub_jfs_read_file): Likewise.
42355
42356 * fs/sfs.c (grub_jfs_read_file): Likewise.
42357
42358 * fs/ufs.c (grub_jfs_read_file): Likewise.
42359
42360 * fs/xfs.c (grub_jfs_read_file): Likewise.
42361
42362 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42363 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42364 respectively.
42365
42366 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42367 BLKNR to -1 instead of returning GRUB_ERRNO.
42368 (grub_ext2_read_file): Change the types of SECTOR and
42369 LEN to grub_disk_addr_t and grub_size_t, respectively.
42370
42371 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42372 LEN to grub_disk_addr_t and grub_size_t, respectively.
42373
42374 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42375 grub_file_read.
42376
42377 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42378 string. Do not cast SECTOR explicitly.
42379
42380 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42381 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42382 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42383 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42384 over 2TB and LBA mode is not supported, raise an error.
42385 (get_safe_sectors): New function.
42386 (grub_biosdisk_read): Use get_safe_sectors.
42387 (grub_biosdisk_write): Likewise.
42388
42389 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42390 (grub_efidisk_write): Likewise.
42391
42392 * disk/loopback.c (delete_loopback): Cosmetic changes.
42393 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42394 correctly.
42395 (grub_loopback_open): Likewise.
42396 (grub_loopback_read): Likewise. Also, change the type of POS to
42397 grub_off_t, and fix the usage of grub_memset.
42398
42399 * commands/i386/pc/play.c: Include grub/machine/time.h.
42400
42401 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42402 print FILE->SIZE.
42403
42404 * commands/configfile.c: Include grub/env.h.
42405
42406 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42407 GRUB_ERRNO directly instead. Change the type of POS to
42408 grub_off_t. Follow the coding standard.
42409
42410 * commands/blocklist.c: Include grub/partition.h.
42411 (grub_cmd_blocklist): Return an error if the underlying device is
42412 not a disk. Take the starting sector of a partition into account,
42413 if a partition is used.
42414
42415 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42416 a length field.
42417 (lba_mode): Support 64-bit addresses.
42418 (chs_mode): Likewise.
42419 (copy_buffer): Adapted to the new offsets of a length field and a
42420 segment field.
42421 (blocklist_default_start): Allocate 64-bit space.
42422
42423 * boot/i386/pc/boot.S (force_lba): Removed.
42424 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 42425 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 42426 space.
42427 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42428 is useless.
42429 (lba_mode): Refactored to support a 64-bit address. More size
42430 optimization.
42431 (setup_sectors): Likewise.
42432
53af98ad 424332006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42434
42435 * DISTLIST: Added include/grub/i386/linux.h. Removed
42436 include/grub/i386/pc/linux.h
42437
42438 * configure.ac (AC_INIT): Bumped to 1.94.
42439
42440 * config.guess: Updated from gnulib.
42441 * config.sub: Likewise.
42442 * install-sh: Likewise.
42443 * mkinstalldirs: Likewise.
42444
b4c1940a 424452006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42446
42447 * conf/common.rmk (grub_modules_init.lst): Depended on
42448 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42449 MODSRCFILES.
42450
42451 * genmk.rb (PModule::rule): Reverted the previous change.
42452
cfca1cfd 424532006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42454
42455 * conf/common.rmk (grub_modules_init.lst): Depends on
42456 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42457 that the target does not exist before producing.
42458 (grub_modules_init.h): Remove the target before generating.
42459 (grub_emu_init.c): Likewise.
42460
42461 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42462
aa6d7826 424632006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42464
42465 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42466 for the target-specific tests. Make sure that we also have the
42467 up-to-date target variables for those tests.
42468
26c607b9 424692006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42470
42471 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42472 (PModule::rule): Likewise.
42473
0162321a 424742006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42475
42476 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42477 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42478 target-specific flags should be prefixed.
42479 (PModule::rule): Likewise.
42480
6c826348 424812006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42482
42483 * configure.ac (CMP): Check if cmp is available explicitly.
42484
b977bf01 424852006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42486
42487 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42488 (target_cpu): New variable.
42489 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 42490
b977bf01 42491 * util/i386/pc/grub-install.in (host_cpu): Removed.
42492 (target_cpu): New variable.
42493 (pkglibdir): Use target_cpu instead of host_cpu.
42494
42495 * util/genmoddep.c: Removed.
f19dbdb7 42496
b977bf01 42497 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42498 instead of GRUB_HOST_SIZEOF_VOID_P.
42499 * kern/dl.c: Likewise.
42500
42501 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42502 ...
42503 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42504 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42505 (GRUB_TARGET_SIZEOF_LONG): ... this.
42506 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42507 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42508 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42509 to ...
42510 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42511 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42512 (GRUB_TARGET_SIZEOF_LONG): ... this.
42513 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42514 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42515 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42516 to ...
42517 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42518 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42519 (GRUB_TARGET_SIZEOF_LONG): ... this.
42520 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42521 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42522
42523 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42524 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42525 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42526 instead of GRUB_HOST_SIZEOF_LONG.
42527 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42528 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42529 GRUB_CPU_WORDS_BIGENDIAN.
42530 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42531 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42532 grub_host_ssize_t.
42533
42534 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42535 (genmoddep_SOURCES): Likewise.
42536 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42537 (genmoddep_SOURCES): Likewise.
42538 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42539 (genmoddep_SOURCES): Likewise.
42540 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42541 Likewise.
42542 (genmoddep_SOURCES): Likewise.
42543
42544 * genmoddep.awk: New file.
42545
42546 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42547 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42548 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42549 (PModule::rule): Likewise.
42550 (Program::rule): Likewise.
42551 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42552 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42553 respectively.
42554
42555 * configure.ac: Rewritten intensively to use host and target
42556 instead of build and host, respectively.
42557
42558 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42559 (host_cpu): Removed.
42560 (target_cpu): New variable.
42561 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42562 (BUILD_CC): Removed.
42563 (BUILD_CFLAGS): Likewise.
42564 (BUILD_CPPFLAGS): Likewise.
42565 (TARGET_CC): New variable.
42566 (TARGET_CFLAGS): Likewise.
42567 (TARGET_CPPFLAGS): Likewise.
42568 (TARGET_LDFLAGS): Likewise.
42569 (AWK): Likewise.
42570 (include): Use target_cpu instead of host_cpu.
42571 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 42572
b977bf01 42573 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42574
f09771a1 425752006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42576
42577 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42578 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42579 field 'false' to 'exec_on_false'.
42580 (grub_script_create_cmdif): Renamed argument names to reflect above
42581 changes.
42582
42583 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42584
42585 * normal/script.c (grub_script_create_cmdif): Likewise.
42586
118f4fb3 425872006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42588
42589 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42590 top.
42591 (grub_hfsplus_btree_recptr): Likewise.
42592 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42593 FILEBLOCK both to pass a block number and store next block
42594 number.
42595 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42596 overflow file correctly. Specify errors appropriately, because
42597 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42598 grub_hfsplus_btree_recptr to get the pointer to a found key.
42599 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42600 is found.
42601
42602 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42603 linux.mod.
42604 (_linux_mod_SOURCES): New variable.
42605 (_linux_mod_CFLAGS): Likewise.
42606 (_linux_mod_LDFLAGS): Likewise.
42607 (linux_mod_SOURCES): Likewise.
42608 (linux_mod_CFLAGS): Likewise.
42609 (linux_mod_LDFLAGS): Likewise.
42610
42611 * DISTLIST: Added loader/i386/efi/linux.c,
42612 loader/i386/efi/linux_normal.c and
42613 include/grub/i386/efi/loader.h.
42614
42615 * loader/i386/efi/linux.c: New file.
42616 * loader/i386/efi/linux_normal.c: Likewise.
42617 * include/grub/i386/efi/loader.h: Likewise.
42618
89a7d726 426192006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42620
42621 * commands/blocklist.c: New file.
42622
42623 * DISTLIST: Added commands/blocklist.c.
42624
42625 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 42626 color for the background, and a darker color for the foreground.
89a7d726 42627 (grub_console_checkkey): Return READ_KEY.
42628 (grub_console_cls): Set the background to
42629 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42630
42631 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42632
42633 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42634 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42635
42636 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42637 prototype.
42638
42639 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42640 BG. The spec is wrong again.
42641
42642 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42643 prototype.
42644 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42645
42646 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42647 commands/blocklist.c.
42648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 42649
89a7d726 42650 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42651 (blocklist_mod_SOURCES): New variable.
42652 (blocklist_mod_CFLAGS): Likewise.
42653 (blocklist_mod_LDFLAGS): Likewise.
42654
75c8f258 426552006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42656
42657 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42658 duplication.
42659 (lba_mode): Use %eax more intensively to reduce the code size.
42660
da2eb181 426612006-05-20 Marco Gerards <marco@gnu.org>
42662
42663 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42664
42665 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42666 for `menuentry'.
42667 (script): Accept leading newlines.
42668 (newlines): New rule to describe 0 or more newlines.
42669 (commands): Accept `command' with trailing newline. Fixed the
42670 order in which arguments were passed to `grub_script_add_cmd'.
42671 Accept commands separated by newlines.
42672 (function): Changed to accept newlines.
42673 (menuentry) Rewritten.
42674
42675 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42676 front of the list, instead of to the end.
42677
577b4050 426782006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42679
42680 * util/i386/pc/grub-install.in (bindir): New variable.
42681 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42682 Shaver <lbgwjl@gmail.com>.
42683
0d6e1189 426842006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42685
42686 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42687 grub/machine/linux.h
42688 * loader/i386/pc/linux.c: Likewise.
42689
42690 * include/grub/i386/pc/linux.h: Moved to ...
42691 * include/grub/i386/linux.h: ... here.
42692
42693 * include/grub/i386/linux.h (struct linux_kernel_params): New
42694 struct.
f19dbdb7 42695
31b86e9f 426962006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42697
42698 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42699 checking.
42700 (grub_video_vbe_blit_glyph): Likewise.
42701 (grub_video_vbe_blit_bitmap): Likewise.
42702 (grub_video_vbe_blit_render_target): Likewise.
42703
83b984de 427042006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42705
42706 * configure.ac (--with-platform): Properly quote the square
42707 brackets.
42708
5f0413bd 427092006-05-08 Marco Gerards <marco@gnu.org>
42710
42711 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42712 this...
42713 (kernel_elf_HEADERS): ...to this. Updated all users.
42714 (grubof_symlist.c): Renamed from this...
42715 (kernel_elf_symlist.c): ...to this. Updated all users.
42716 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42717 (grubof_SOURCES): Renamed from this...
42718 (kernel_elf_SOURCES): ...to this.
42719 (grubof_HEADERS): Renamed from this...
42720 (kernel_elf_HEADERS): ...to this.
42721 (grubof_CFLAGS): Renamed from this...
42722 (kernel_elf_CFLAGS): ...to this.
42723 (grubof_ASFLAGS): Renamed from this...
42724 (kernel_elf_ASFLAGS): ...to this.
42725 (grubof_LDFLAGS): Renamed from this...
42726 (kernel_elf_LDFLAGS): ...to this.
42727
42728 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42729 this...
42730 (kernel_elf_HEADERS): ...to this. Updated all users.
42731 (grubof_symlist.c): Renamed from this...
42732 (kernel_elf_symlist.c): ...to this. Updated all users.
42733 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42734 (grubof_SOURCES): Renamed from this...
42735 (kernel_elf_SOURCES): ...to this.
42736 (grubof_HEADERS): Renamed from this...
42737 (kernel_elf_HEADERS): ...to this.
42738 (grubof_CFLAGS): Renamed from this...
42739 (kernel_elf_CFLAGS): ...to this.
42740 (grubof_ASFLAGS): Renamed from this...
42741 (kernel_elf_ASFLAGS): ...to this.
42742 (grubof_LDFLAGS): Renamed from this...
42743 (kernel_elf_LDFLAGS): ...to this.
42744
42745 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42746 `kernel.elf' instead of `grubof'.
42747
05568c2e 427482006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42749
42750 Add --with-platform to configure. Use pkglibdir instead of
42751 pkgdatadir. This is reported by Roger Leigh.
42752
42753 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42754 (host_vendor): Likewise.
42755 (host_os): Likewise.
42756 (pkgdatadir): Likewise.
42757 (platform): New variable.
42758 (pkglibdir): Likewise.
42759 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 42760
05568c2e 42761 * util/i386/pc/grub-install.in (datadir): Removed.
42762 (host_vendor): Likewise.
42763 (host_os): Likewise.
42764 (pkgdatadir): Likewise.
42765 (platform): New variable.
42766 (pkglibdir): Likewise.
42767 Use PKGLIBDIR instead of PKGDATADIR.
42768
42769 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42770 instead of GRUB_DATADIR.
42771 (main): Likewise.
42772 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42773 (main): Likewise.
42774 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42775 (main): Likewise.
42776
42777 * configure.ac (--with-platform): New option.
42778 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42779
42780 * Makefile.in: Include a makefile based on PLATFORM instead of
42781 HOST_VENDOR.
42782 (pkgdatadir): Not appended by the machine type.
42783 (pkglibdir): Appended by the machine type.
42784 (host_vendor): Removed.
42785 (platform): New variable.
42786 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42787 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42788 (uninstall): Likewise.
42789
4e93851c 427902006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42791
42792 Use the environment context in the menu. Remove the commands
42793 "default" and "timeout", and use variables instead.
f19dbdb7 42794
4e93851c 42795 * normal/menu.c: Include grub/env.h.
42796 (print_entry): Cast TITLE to silence gcc.
42797 (get_timeout): New function.
42798 (set_timeout): Likewise.
42799 (get_entry_number): Likewise.
42800 (run_menu): Use a default entry, a fallback entry and a timeout
42801 in the environment variables "default", "fallback" and
42802 "timeout". Also, tweak the default entry if it is not within the
42803 current menu entries.
42804 (grub_menu_run): Use a fallback entry in the environment variable
42805 "fallback".
42806
42807 * normal/main.c (read_config_file): Do not initialize
42808 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42809 NEWMENU->TIMEOUT.
42810 (grub_normal_execute): Use a data slot to store the menu.
42811
42812 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42813 fallback_entry and timeout.
42814 (struct grub_menu_list): Removed.
42815 (grub_menu_list_t): Likewise.
42816 (struct grub_context): Likewise.
42817 (grub_context_t): Likewise.
42818 (grub_context_get): Likewise.
42819 (grub_context_get_current_menu): Likewise.
42820 (grub_context_push_menu): Likewise.
42821 (grub_context_pop_menu): Likewise.
42822 (grub_default_init): Likewise.
42823 (grub_default_fini): Likewise.
42824 (grub_timeout_init): Likewise.
42825 (grub_timeout_fini): Likewise.
42826
42827 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42828 and timeout.mod.
42829 (normal_mod_SOURCES): Removed normal/context.c.
42830
42831 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42832 commands/default.c, commands/timeout.c and normal/context.c.
42833 (normal_mod_SOURCES): Removed normal/context.c.
42834
42835 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42836 commands/timeout.c and normal/context.c.
42837 (normal_mod_SOURCES): Removed normal/context.c.
42838
42839 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42840 commands/default.c, commands/timeout.c and normal/context.c.
42841 (normal_mod_SOURCES): Removed normal/context.c.
42842
42843 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42844 timeout.mod.
42845 (default_mod_SOURCES): Removed.
42846 (default_mod_CFLAGS): Likewise.
42847 (default_mod_LDFLAGS): Likewise.
42848 (timeout_mod_SOURCES): Removed.
42849 (timeout_mod_CFLAGS): Likewise.
42850 (timeout_mod_LDFLAGS): Likewise.
42851
42852 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42853 normal/context.c.
42854
42855 * commands/default.c: Removed.
42856 * commands/timeout.c: Likewise.
42857 * normal/context.c: Likewise.
42858
1eb9cc1d 428592006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42860
42861 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42862
385bd9c1 428632006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42864
42865 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42866 "next" to "prev" for readability.
42867 (struct grub_env_sorted_var): New struct.
42868 (grub_env_context): Renamed to ...
42869 (initial_context): ... this.
42870 (grub_env_var_context): Renamed to ...
42871 (current_context): ... this.
42872 (grub_env_find): Look only at CURRENT_CONTEXT.
42873 (grub_env_context_open): Rewritten to copy exported variables from
42874 previous context.
42875 (grub_env_context_close): Rewritten according to the new
42876 scheme. Also, add an assertion to prevent the initial context from
42877 removed.
42878 (grub_env_insert): Removed the code for the sorted list.
42879 (grub_env_remove): Likewise.
42880 (grub_env_export): Simply mark the variable with
42881 GRUB_ENV_VAR_GLOBAL.
42882 (grub_env_set): A cosmetic change for naming consistency.
42883 (grub_env_get): Likewise.
42884 (grub_env_unset): Likewise.
42885 (grub_env_iterate): Rewritten to sort variables within this
42886 function.
42887 (grub_register_variable_hook): Fixed for naming consistency. Call
42888 grub_env_find again, only if NAME is not found at the first time.
42889 (mangle_data_slot_name): New function.
42890 (grub_env_set_data_slot): Likewise.
42891 (grub_env_get_data_slot): Likewise.
42892 (grub_env_unset_data_slot): Likewise.
42893
42894 * include/grub/env.h (grub_env_var_type): New enum.
42895 (GRUB_ENV_VAR_LOCAL): New constant.
42896 (GRUB_ENV_VAR_GLOBAL): Likewise.
42897 (GRUB_ENV_VAR_DATA): Likewise.
42898 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42899 "type".
42900 (grub_env_set): Replace VAR with NAME for consistency.
42901 (grub_register_variable_hook): Likewise.
42902 (grub_env_export): Specify the name of the argument.
42903 (grub_env_set_data_slot): New prototype.
42904 (grub_env_get_data_slot): Likewise.
42905 (grub_env_unset_data_slot): Likewise.
42906
7f362539 429072006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42908
42909 Extend the loader so that GRUB can accept a loader which comes
42910 back to GRUB when a loaded image exits. Also, this change adds
42911 support for a chainloader on EFI.
f19dbdb7 42912
7f362539 42913 * term/efi/console.c: Include grub/misc.h.
42914 (grub_console_checkkey): Display a scan code on the top for
42915 debugging. This will be removed once the EFI port gets stable.
42916 Correct the scan code mapping.
42917
42918 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42919 allocate memory from larger regions, in order to reduce the number
42920 of allocated regions. Otherwise, the MacOSX loader panics.
42921 (filter_memory_map): Avoid less than 1MB for compatibility with
42922 other loaders.
42923 (add_memory_regions): Allocate from the tail of a region, if
42924 possible, to avoid allocating a region near to 1MB, for the MacOSX
42925 loader.
42926
42927 * kern/efi/init.c (grub_efi_set_prefix): Specify
42928 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42929
42930 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42931 argument IMAGE_HANDLE and specify it to get a loaded image.
42932 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42933 grub_efi_get_loaded_image.
fe6b695a 42934 (grub_efi_get_filename): Divide the length by the size of
7f362539 42935 grub_efi_char16_t.
42936 (grub_efi_get_device_path): New function.
42937 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42938 the length by the size of grub_efi_char16_t for a file path device
42939 path node.
42940
42941 * kern/loader.c (grub_loader_noreturn): New variable.
42942 (grub_loader_set): Accept a new argument NORETURN. Set
42943 GRUB_LOADER_NORETURN to NORETURN.
42944 All callers changed.
42945 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42946 grub_machine_fini.
42947
42948 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42949 prototype.
42950 (grub_efi_get_loaded_image): Take an argument to specify an image
42951 handle.
42952
42953 * include/grub/loader.h (grub_loader_set): Added one more argument
42954 NORETURN.
42955
42956 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42957 instead of grub_efi_open_protocol.
42958 (grub_efidisk_get_device_name): Likewise.
42959 (grub_efidisk_close): Print a newline.
42960 (grub_efidisk_get_device_handle): Fixed to use
42961 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42962 GRUB_EFI_DEVICE_PATH_TYPE.
42963
42964 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42965 * kern/efi/efi.c (device_path_guid): ... here.
42966
42967 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42968 chain.mod.
42969 (kernel_mod_HEADERS): Added efi/disk.h.
42970 (_chain_mod_SOURCES): New variable.
42971 (_chain_mod_CFLAGS): Likewise.
42972 (_chain_mod_LDFLAGS): Likewise.
42973 (chain_mod_SOURCES): Likewise.
42974 (chain_mod_CFLAGS): Likewise.
42975 (chain_mod_LDFLAGS): Likewise.
42976
42977 * DISTLIST: Added include/grub/efi/chainloader.h,
42978 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42979
42980 * include/grub/efi/chainloader.h: New file.
42981 * loader/efi/chainloader.c: Likewise.
42982 * loader/efi/chainloader_normal.c: Likewise.
42983
c0111d6e 429842006-04-30 Marco Gerards <marco@gnu.org>
42985
42986 * commands/configfile.c (grub_cmd_source): New function.
42987 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42988 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42989
df5341da 429902006-04-30 Marco Gerards <marco@gnu.org>
42991
42992 * normal/execute.c (grub_script_execute_cmd): Change the return
42993 type to `grub_err_t'. Correctly return the error.
42994 (grub_script_execute_cmdline): In case a command line is not a
42995 command or a function, try to interpret it as an assignment.
42996
f85934bd 429972006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42998
42999 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
43000 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
43001 skip a node whose name is obviously invalid as UTF-16,
43002 i.e. contains a NUL character. Stop the iteration when the last
43003 directory entry is found. Instead of using the return value of
43004 grub_hfsplus_btree_iterate_node, store the value in RET and use
43005 it, because the iterator can be stopped by the last directory
43006 entry.
43007
8f8a2cf8 430082006-04-30 Marco Gerards <marco@gnu.org>
43009
43010 * include/grub/env.h (grub_env_export): New prototype. Reported
43011 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
43012
a27e84ce 430132006-04-30 Marco Gerards <marco@gnu.org>
43014
43015 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
43016 size of the extents in a catalog file record.
43017
eaef0553 430182006-04-29 Marco Gerards <marco@gnu.org>
43019
43020 * commands/configfile.c (grub_cmd_configfile): Execute the
43021 configfile within its own context.
43022
43023 * include/grub/env.h (grub_env_context_open): New prototype.
43024 (grub_env_context_close): Likewise.
43025
43026 * kern/env.c (grub_env): Removed.
43027 (grub_env_sorted): Likewise.
43028 (grub_env_context): New variable.
43029 (grub_env_var_context): Likewise.
43030 (grub_env_find): Search both the active context and the global
43031 context.
43032 (grub_env_context_open): New function.
43033 (grub_env_context_close): Likewise.
43034 (grub_env_insert): Likewise.
43035 (grub_env_remove): Likewise.
43036 (grub_env_export): Likewise.
43037 (grub_env_set): Changed to use helper functions to avoid code
43038 duplication.
43039 (grub_env_iterate): Rewritten so both the current context and the
43040 global context are being used.
43041
43042 * normal/command.c (export_command): New function.
43043 (grub_command_init): Register the `export' function.
43044
7b455f4d 430452006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
43046
43047 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
43048 explicitly to suppress gcc's warnings.
43049 * fs/fat.c (grub_fat_find_dir): Likewise.
43050 (grub_fat_label): Likewise.
43051 * fs/xfs.c (grub_xfs_read_inode): Likewise.
43052 (grub_xfs_mount): Likewise.
43053 (grub_xfs_label): Likewise.
43054 * fs/affs.c (grub_affs_mount): Likewise.
43055 (grub_affs_label): Likewise.
43056 (grub_affs_iterate_dir): Likewise.
43057 * fs/sfs.c (grub_sfs_mount): Likewise.
43058 (grub_sfs_iterate_dir): Likewise.
43059 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
43060 * fs/hfs.c (grub_hfs_mount): Likewise.
43061 (grub_hfs_cmp_catkeys): Likewise.
43062 (grub_hfs_find_dir): Likewise.
43063 (grub_hfs_dir): Likewise.
43064 (grub_hfs_label): Likewise.
43065 * fs/jfs.c (grub_jfs_mount): Likewise.
43066 (grub_jfs_opendir): Likewise.
43067 (grub_jfs_getent): Likewise.
43068 (grub_jfs_lookup_symlink): Likewise.
43069 (grub_jfs_label): Likewise.
43070 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
43071 (grub_hfsplus_iterate_dir): Likewise.
43072 (grub_hfsplus_btree_iterate_node): Made static.
43073
43074 * util/grub-emu.c (prefix): New variable.
43075 (grub_machine_set_prefix): New function.
43076 (main): Do not set the environment variable "prefix" here. Only
43077 set PREFIX, which is used later by grub_machine_set_prefix.
43078
43079 * include/grub/video.h: Do not include grub/symbol.h.
43080 (grub_video_register): Not exported. This symbol is not defined in
43081 the kernel.
43082 (grub_video_unregister): Likewise.
43083 (grub_video_iterate): Likewise.
43084 (grub_video_setup): Likewise.
43085 (grub_video_restore): Likewise.
43086 (grub_video_get_info): Likewise.
43087 (grub_video_get_blit_format): Likewise.
43088 (grub_video_set_palette): Likewise.
43089 (grub_video_get_palette): Likewise.
43090 (grub_video_set_viewport): Likewise.
43091 (grub_video_get_viewport): Likewise.
43092 (grub_video_map_color): Likewise.
43093 (grub_video_map_rgb): Likewise.
43094 (grub_video_map_rgba): Likewise.
43095 (grub_video_fill_rect): Likewise.
43096 (grub_video_blit_glyph): Likewise.
43097 (grub_video_blit_bitmap): Likewise.
43098 (grub_video_blit_render_target): Likewise.
43099 (grub_video_scroll): Likewise.
43100 (grub_video_swap_buffers): Likewise.
43101 (grub_video_create_render_target): Likewise.
43102 (grub_video_delete_render_target): Likewise.
43103 (grub_video_set_active_render_target): Likewise.
43104
43105 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43106 Undefined.
43107 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43108
43109 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
43110 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43111 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43112 instead of $(srcdir)/genkernsyms.sh.
43113
43114 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43115 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43116 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43117 instead of $(srcdir)/genkernsyms.sh.
43118
43119 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
43120 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43121 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43122 instead of $(srcdir)/genkernsyms.sh.
43123
43124 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43125 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43126 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43127 instead of $(srcdir)/genkernsyms.sh.
43128
43129 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43130 genkernsyms.sh.
43131
43132 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43133 genkernsyms.sh.
43134 (gensymlist.sh): New target.
43135 (genkernsyms.sh): Likewise.
43136
43137 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43138 genkernsyms.sh.in and gensymlist.sh.in.
43139
43140 * genkernsyms.sh: Removed.
43141 * gensymlist.sh: Likewise.
f19dbdb7 43142
7b455f4d 43143 * genkernsyms.sh.in: New file.
43144 * gensymlist.sh.in: Likewise.
43145
1885bb27 431462006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43147
43148 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43149 clobber "prefix", since we may have already set it manually.
43150
71538dff 431512006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43152
43153 * kern/misc.c (abort): New alias for grub_abort.
43154
2965c7cc 431552006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43156
43157 A new machine-specific function "grub_machine_set_prefix" is
43158 defined. This is called after loading modules, so that a prefix
43159 initialization can use modules. Also, this change adds an
43160 intensive debugging feature for the memory manager via the
43161 configure option "--enable-mm-debug".
f19dbdb7 43162
2965c7cc 43163 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43164 PART.LEN.
43165
43166 * kern/sparc64/ieee1275/init.c (abort): Removed.
43167 (grub_stop): Likewise.
43168 (grub_exit): New function.
43169 (grub_set_prefix): Renamed to ...
43170 (grub_machine_set_prefix): ... this.
43171 (grub_machine_init): Do not call grub_set_prefix.
43172
43173 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43174 (grub_machine_set_prefix): ... this.
43175 (grub_machine_init): Do not call grub_set_prefix.
43176
43177 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43178 (grub_machine_init): Do not set the prefix here.
43179
43180 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43181
43182 * kern/efi/init.c: Include grub/mm.h.
43183 (grub_efi_set_prefix): New function.
43184
43185 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43186 (grub_efi_get_filename): New function.
43187 (grub_print_device_path): Renamed to ...
43188 (grub_efi_print_device_path): ... this.
43189
43190 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43191 [MM_DEBUG] (grub_realloc): Likewise.
43192 [MM_DEBUG] (grub_free): Likewise.
43193 [MM_DEBUG] (grub_memalign): Likewise.
43194 [MM_DEBUG] (grub_mm_debug): New variable.
43195 [MM_DEBUG] (grub_debug_malloc): New function.
43196 [MM_DEBUG] (grub_debug_free): New function.
43197 [MM_DEBUG] (grub_debug_realloc): New function.
43198 [MM_DEBUG] (grub_debug_memalign): New function.
43199
43200 * kern/misc.c (grub_abort): Print a newline to distinguish
43201 the message.
43202
43203 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43204 grub_set_root_dev after loading modules. This is necessary when
43205 setting a prefix depends on modules.
43206
43207 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43208 (grub_efi_print_device_path): ... this.
43209 (grub_efi_get_filename): New prototype.
43210 (grub_efi_set_prefix): Likewise.
43211
43212 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43213 and grub/disk.h.
43214 (grub_efidisk_get_device_handle): New prototype.
43215 (grub_efidisk_get_device_name): Likewise.
43216
43217 * include/grub/mm.h: Include config.h.
43218 (MM_DEBUG): Removed.
43219 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43220 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43221 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43222 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43223 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43224 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43225 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43226 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43227 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43228
43229 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43230
43231 * disk/efi/efidisk.c: Include grub/partition.h.
43232 (iterate_child_devices): New function.
43233 (add_device): First, compare only last device path nodes, so that
43234 devices are sorted by the types.
43235 (grub_efidisk_get_device_handle): New function.
43236 (grub_efidisk_get_device_name): Likewise.
43237
43238 * configure.ac (--enable-mm-debug): New option to enable the
43239 memory manager debugging feature. This makes the binary much
43240 bigger, so is disabled by default.
43241
9cacaa17 432422006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43243
43244 Use grub_abort instead of grub_stop, and grub_exit must be
43245 define in each architecture now. Also, this change adds support
43246 for EFI disks.
f19dbdb7 43247
9cacaa17 43248 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43249 (grub_getkey): New function.
43250 (grub_term_get_current): Likewise.
43251
43252 * util/i386/pc/grub-setup.c: Include grub/term.h.
43253 (grub_getkey): New function.
43254 (grub_term_get_current): Likewise.
43255
43256 * util/misc.c (grub_stop): Renamed to ...
43257 (grub_exit): ... this.
43258
43259 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43260 (grub_exit): ... this.
43261 (grub_machine_init): Use grub_abort instead of abort.
43262 (grub_stop): Removed.
43263
43264 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43265 abort.
43266
43267 * kern/i386/pc/startup.S (grub_exit): New function.
43268 (cold_reboot): New label.
43269
43270 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43271 (grub_efi_init): Call grub_efidisk_init.
43272 (grub_efi_fini): Call grub_efidisk_fini.
43273
43274 * kern/efi/efi.c: Include grub/mm.h.
43275 (grub_efi_console_control_guid): Renamed to ...
43276 (console_control_guid): ... this.
43277 (grub_efi_loaded_image_guid): Renamed to ...
43278 (loaded_image_guid): ... this.
43279 (grub_efi_locate_handle): New function.
43280 (grub_efi_open_protocol): Likewise.
43281 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43282 GRUB_EFI_CONSOLE_CONTROL_GUID.
43283 (grub_efi_exit): Removed.
43284 (grub_stop): Likewise.
43285 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43286 (grub_exit): New function.
43287 (grub_print_device_path): Likewise.
43288
43289 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43290 (grub_enter_rescue_mode): Register "exit".
43291
43292 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43293 (grub_abort): New function.
43294
43295 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43296
43297 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43298
43299 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43300
43301 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43302 (grub_print_device_path): New prototype.
43303 (grub_efi_locate_handle): Likewise.
43304 (grub_efi_open_protocol): Likewise.
43305
43306 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43307 * disk/efi/efidisk.c: Likewise.
43308
43309 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43310
43311 * include/grub/efi/console_control.h
43312 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43313
43314 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43315 last 8 bytes as an array.
43316 (GRUB_EFI_DISK_IO_GUID): New macro.
43317 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43318 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43319 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43320 grub_uint8_t.
43321 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43322 (struct grub_efi_device_path): Rename the member "sub_type" to
43323 "subtype".
43324 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43325 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43326 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43327 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43328 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43329 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43330 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43331 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43332 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43333 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43334 (struct grub_efi_pci_device_path): New structure.
43335 (grub_efi_pci_device_path_t): New type.
43336 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43337 (struct grub_efi_pccard_device_path): New structure.
43338 (grub_efi_pccard_device_path_t): New type.
43339 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43340 (struct grub_efi_memory_mapped_device_path): New structure.
43341 (grub_efi_memory_mapped_device_path_t): New type.
43342 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43343 (struct grub_efi_vendor_device_path): New structure.
43344 (grub_efi_vendor_device_path_t): New type.
43345 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43346 (struct grub_efi_controller_device_path): New structure.
43347 (grub_efi_controller_device_path_t): New type.
43348 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43349 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43350 (struct grub_efi_acpi_device_path): New structure.
43351 (grub_efi_acpi_device_path_t): New type.
43352 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43353 (struct grub_efi_expanded_acpi_device_path): New structure.
43354 (grub_efi_expanded_acpi_device_path_t): New type.
43355 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43356 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43357 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43358 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43359 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43360 (struct grub_efi_atapi_device_path): New structure.
43361 (grub_efi_atapi_device_path_t): New type.
43362 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43363 (struct grub_efi_fibre_channel_device_path): New structure.
43364 (grub_efi_fibre_channel_device_path_t): New type.
43365 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43366 (struct grub_efi_1394_device_path): New structure.
43367 (grub_efi_1394_device_path_t): New type.
43368 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43369 (struct grub_efi_usb_device_path): New structure.
43370 (grub_efi_usb_device_path_t): New type.
43371 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43372 (struct grub_efi_usb_class_device_path): New structure.
43373 (grub_efi_usb_class_device_path_t): New type.
43374 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43375 (struct grub_efi_i2o_device_path): New structure.
43376 (grub_efi_i2o_device_path_t): New type.
43377 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43378 (struct grub_efi_mac_address_device_path): New structure.
43379 (grub_efi_mac_address_device_path_t): New type.
43380 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43381 (struct grub_efi_ipv4_device_path): New structure.
43382 (grub_efi_ipv4_device_path_t): New type.
43383 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43384 (struct grub_efi_ipv6_device_path): New structure.
43385 (grub_efi_ipv6_device_path_t): New type.
43386 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43387 (struct grub_efi_infiniband_device_path): New structure.
43388 (grub_efi_infiniband_device_path_t): New type.
43389 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43390 (struct grub_efi_uart_device_path): New structure.
43391 (grub_efi_uart_device_path_t): New type.
43392 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43393 (struct grub_efi_vendor_messaging_device_path): New structure.
43394 (grub_efi_vendor_messaging_device_path_t): New type.
43395 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43396 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43397 (struct grub_efi_hard_drive_device_path): New structure.
43398 (grub_efi_hard_drive_device_path_t): New type.
43399 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43400 (struct grub_efi_cdrom_device_path): New structure.
43401 (grub_efi_cdrom_device_path_t): New type.
43402 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43403 (struct grub_efi_vendor_media_device_path): New structure.
43404 (grub_efi_vendor_media_device_path_t): New type.
43405 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43406 (struct grub_efi_file_path_device_path): New structure.
43407 (grub_efi_file_path_device_path_t): New type.
43408 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43409 (struct grub_efi_protocol_device_path): New structure.
43410 (grub_efi_protocol_device_path_t): New type.
43411 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43412 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43413 (struct grub_efi_bios_device_path): New structure.
43414 (grub_efi_bios_device_path_t): New type.
43415 (struct grub_efi_disk_io): New structure.
43416 (grub_efi_disk_io_t): New type.
43417 (struct grub_efi_block_io_media): New structure.
43418 (grub_efi_block_io_media_t): New type.
43419 (struct grub_efi_block_io): New structure.
43420 (grub_efi_block_io_t): New type.
43421
43422 * include/grub/misc.h (grub_stop): Removed.
43423 (grub_exit): New prototype.
43424 (grub_abort): Likewise.
43425
43426 * include/grub/disk.h (enum grub_disk_dev_id): Added
43427 GRUB_DISK_DEVICE_EFIDISK_ID.
43428
43429 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43430 disk/efi/efidisk.c.
43431 (kernel_syms.lst): Remove the target if an error occurs.
43432
49986a9f 434332006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43434
43435 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43436 as it was simply too buggy.
43437
970d3b8a 434382006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43439
43440 * kern/misc.c (grub_lltoa): New function.
43441 (grub_vsprintf): Added support for the long long suffix,
43442 i.e. "ll".
43443
ff04ec24 434442006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43445
43446 * Makefile.in (LDFLAGS): Add variable.
43447 (LD): Remove variable.
43448 * configure.ac: Add -m32 to LDFLAGS.
43449 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43450 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43451 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43452 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43453 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43454 variables.
43455 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43456 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43457 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43458
37e5e1a4 434592006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43460
43461 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43462 length for unknown glyph.
43463
c352d8dd 434642006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43465
2eab1c0d 43466 Add support for pre-loaded modules into the EFI port.
f19dbdb7 43467
2eab1c0d 43468 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43469 completely. Accept one more argument DIR. The caller has changed.
43470
43471 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43472
43473 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43474 (grub_efi_loaded_image_guid): New variable.
43475 (grub_efi_get_loaded_image): New function.
43476 (grub_arch_modules_addr): Likewise.
43477
43478 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43479 prototype.
43480
43481 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43482 (struct grub_efi_loaded_image): New structure.
43483 (grub_efi_loaded_image_t): New type.
43484
434852006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43486
c352d8dd 43487 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43488 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43489 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43490
6d01d6b4 434912006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43492
43493 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43494
976a4ea0 434952006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43496
43497 * DISTLIST: Added include/grub/efi/console.h,
43498 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43499 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43500
43501 * include/grub/efi/console.h: New file.
43502 * include/grub/efi/time.h: Likewise.
43503 * include/grub/i386/efi/kernel.h: Likewise.
43504 * kern/efi/init.c: Likewise.
43505 * kern/efi/mm.c: Likewise.
43506 * term/efi/console.c: Likewise.
f19dbdb7 43507
976a4ea0 43508 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43509 (grub_stop): Removed.
43510 (grub_get_rtc): Likewise.
43511 (grub_machine_init): Simply call grub_efi_init.
43512 (grub_machine_fini): Call grub_efi_fini.
43513
43514 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43515 (grub_efi_output_string): Removed.
43516 (grub_efi_stall): New function.
43517 (grub_stop): Likewise.
43518 (grub_get_rtc): Likewise.
43519
43520 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43521 (grub_efi_stall): New prototype.
43522 (grub_efi_allocate_pages): Likewise.
43523 (grub_efi_free_pages): Likewise.
43524 (grub_efi_get_memory_map): Likewise.
43525 (grub_efi_mm_init): Likewise.
43526 (grub_efi_mm_fini): Likewise.
43527 (grub_efi_init): Likewise.
43528 (grub_efi_fini): Likewise.
43529
43530 * include/grub/i386/efi/time.h: Do not include
43531 grub/symbol.h. Include grub/efi/time.h.
43532 (GRUB_TICKS_PER_SECOND): Removed.
43533 (grub_get_rtc): Likewise.
43534
43535 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43536 Added padding. The EFI spec is buggy.
43537 (GRUB_EFI_BLACK): New macro.
43538 (GRUB_EFI_BLUE): Likewise.
43539 (GRUB_EFI_GREEN): Likewise.
43540 (GRUB_EFI_CYAN): Likewise.
43541 (GRUB_EFI_RED): Likewise.
43542 (GRUB_EFI_MAGENTA): Likewise.
43543 (GRUB_EFI_BROWN): Likewise.
43544 (GRUB_EFI_LIGHTGRAY): Likewise.
43545 (GRUB_EFI_BRIGHT): Likewise.
43546 (GRUB_EFI_DARKGRAY): Likewise.
43547 (GRUB_EFI_LIGHTBLUE): Likewise.
43548 (GRUB_EFI_LIGHTGREEN): Likewise.
43549 (GRUB_EFI_LIGHTCYAN): Likewise.
43550 (GRUB_EFI_LIGHTRED): Likewise.
43551 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43552 (GRUB_EFI_YELLOW): Likewise.
43553 (GRUB_EFI_WHITE): Likewise.
43554 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43555 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43556 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43557 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43558 (GRUB_EFI_BACKGROUND_RED): Likewise.
43559 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43560 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43561 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43562 (GRUB_EFI_TEXT_ATTR): Likewise.
43563
43564 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43565 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43566 (kernel_mod_HEADERS): Added efi/time.h.
43567
83709125 435682006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43569
43570 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43571 include/grub/efi/api.h, include/grub/efi/console_control.h,
43572 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43573 include/grub/i386/efi/time.h, kern/efi/efi.c,
43574 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43575 and util/i386/efi/grub-mkimage.c.
43576
43577 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43578
43579 * genmk.rb (PModule#rule): Do not export symbols if
43580 #{prefix}_EXPORTS is set to "no".
43581
43582 * conf/i386-efi.mk: New file.
43583 * conf/i386-efi.rmk: Likewise.
43584 * include/grub/efi/api.h: Likewise.
43585 * include/grub/efi/console_control.h: Likewise.
43586 * include/grub/efi/efi.h: Likewise.
43587 * include/grub/efi/pe32.h: Likewise.
43588 * include/grub/i386/efi/time.h: Likewise.
43589 * kern/efi/efi.c: Likewise.
43590 * kern/i386/efi/init.c: Likewise.
43591 * kern/i386/efi/startup.S: Likewise.
43592 * util/i386/efi/grub-mkimage.c: Likewise.
43593
435942006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 43595
43596 * include/grub/script.h: Include <grub/parser.h> and
43597 "grub_script.tab.h".
43598 (struct grub_lexer_param): New struct.
43599 (struct grub_parser_param): Likewise.
43600 (grub_script_create_arglist): Pass the state in an argument.
43601 (grub_script_add_arglist): Likewise.
43602 (grub_script_create_cmdline): Likewise.
43603 (grub_script_create_cmdblock): Likewise.
43604 (grub_script_create_cmdif): Likewise.
43605 (grub_script_create_cmdmenu): Likewise.
43606 (grub_script_add_cmd): Likewise.
43607 (grub_script_arg_add): Likewise.
43608 (grub_script_lexer_ref): Likewise.
43609 (grub_script_lexer_deref): Likewise.
43610 (grub_script_lexer_record_start): Likewise.
43611 (grub_script_lexer_record_stop): Likewise.
43612 (grub_script_mem_record): Likewise.
43613 (grub_script_mem_record_stop): Likewise.
43614 (grub_script_malloc): Likewise.
43615 (grub_script_yylex): Likewise.
43616 (grub_script_yyparse): Likewise.
43617 (grub_script_yyerror): Likewise.
43618 (grub_script_yylex): Likewise.
43619 (grub_script_lexer_init): Return the state.
43620
43621 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43622 (grub_script_lexer_done): Likewise.
43623 (grub_script_lexer_getline): Likewise.
43624 (grub_script_lexer_refs): Likewise.
43625 (script): Likewise.
43626 (newscript): Likewise.
43627 (record): Likewise.
43628 (recording): Likewise.
43629 (recordpos): Likewise.
43630 (recordlen): Likewise.
43631 (grub_script_lexer_init): Return the state instead of setting
43632 global variables.
43633 (grub_script_lexer_ref): Use the newly added argument for state
43634 instead of globals.
43635 (grub_script_lexer_deref): Likewise.
43636 (grub_script_lexer_record_start): Likewise.
43637 (grub_script_lexer_record_stop): Likewise.
43638 (recordchar): Likewise.
43639 (nextchar): Likewise.
43640 (grub_script_yylex2): Likewise.
43641 (grub_script_yylex): Likewise.
43642 (grub_script_yyerror): Likewise.
43643
43644 * normal/parser.y (func_mem): Removed variable.
43645 (menu_entry): Likewise.
43646 (err): Likewise.
43647 (%lex-param): New parser option.
43648 (%parse-param): Likewise.
43649 (script): Always return the AST.
43650 (argument): Pass the state around.
43651 (arguments): Likewise.
43652 (grubcmd): Likewise.
43653 (commands): Likewise.
43654 (function): Likewise.
43655 (menuentry): Likewise.
43656 (if_statement): Likewise.
43657 (if): Likewise.
43658
43659 * normal/script.c (grub_script_memused): Removed variable.
43660 (grub_script_parsed): Likewise.
43661 (grub_script_malloc): Added a state argument. Use that instead of
43662 global variables.
43663 (grub_script_mem_record): Likewise.
43664 (grub_script_mem_record_stop): Likewise.
43665 (grub_script_arg_add): Likewise.
43666 (grub_script_add_arglist): Likewise.
43667 (grub_script_create_cmdline): Likewise.
43668 (grub_script_create_cmdif): Likewise.
43669 (grub_script_create_cmdmenu): Likewise.
43670 (grub_script_add_cmd): Likewise.
43671 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 43672
e2a8c904 436732006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 43674
43675 * normal/command.c (grub_command_init): Remove the title command.
43676
43677 * normal/lexer.c (grub_script_yylex): Renamed from this...
43678 (grub_script_yylex2): ... to this.
43679 (grub_script_yylex): New function. Temporary
43680 introduced to filter some tokens.
43681 (grub_script_yyerror): Print a newline.
43682
43683 * normal/main.c (read_config_file): Output information about the
43684 lines that contain errors. Wait for a key after all lines have
43685 been processed. Don't return an empty menu.
43686
43687 * normal/parser.y (func_mem): Don't initialize.
43688 (menu_entry): Likewise.
43689 (err): New variable.
43690 (script): Don't return anything when an error was encountered.
43691 (ws, returns): Removed rules.
43692 (argument): Disabled concatenated variable support.
43693 (arguments): Remove explicit separators.
43694 (grubcmd): Likewise.
43695 (function): Likewise.
43696 (menuentry): Likewise.
43697 (if): Likewise.
43698 (commands): Likewise. Add error handling.
43699
43700 * normal/script.c (grub_script_create_cmdline): If
43701 `grub_script_parsed' is 0, assume the parser encountered an error.
43702
c9a86192 437032006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43704
43705 * configure.ac: Add support for EFI. Fix the typo
43706 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43707
70f3b243 437082006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43709
43710 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43711 foreign multibyte characters should be shown correctly.
43712
65f201ad 437132006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43714
43715 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43716 calculation.
43717 (read_config_file): Made it to close file before returning.
43718
b4b93674 437192006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43720
43721 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43722 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43723 video/i386/pc/vbefill.c.
43724
43725 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43726 video/i386/pc/vbefill.c.
43727
43728 * include/grub/video.h (grub_video_blit_format): New enum.
43729 (grub_video_mode_info): Added new member blit_format.
43730 (grub_video_get_blit_format): New function prototype.
43731
43732 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43733 function prototype.
43734 (grub_video_vbe_map_rgb): Likewise.
43735 (grub_video_vbe_unmap_color): Likewise.
43736
43737 * include/grub/i386/pc/vbeblit.h: New file.
43738
43739 * include/grub/i386/pc/vbefill.h: New file.
43740
43741 * video/video.c (grub_video_get_blit_format): New function.
43742 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43743 (grub_video_vbe_map_rgb): Likewise.
43744 (grub_video_vbe_unmap_color): Likewise.
43745
43746 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43747 optimized fills.
43748 (grub_video_vbe_blit_render_target): Changed to use more optimized
43749 blits.
43750 (grub_video_vbe_setup): Added detection for optimized settings.
43751 (grub_video_vbe_create_render_target): Likewise.
43752
43753 * video/i386/pc/vbeblit.c: New file.
43754
43755 * video/i386/pc/vbefill.c: New file.
43756
c2379b9c 437572006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43758
43759 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43760 here...
43761
43762 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43763 parsing to support both hex and dec ranges. If filename was missing
43764 show usage information.
43765
bd0d7896 437662006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43767
43768 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43769 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43770
43771 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43772 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43773 (video_mod_SOURCES): Added.
43774 (video_mod_CFLAGS): Likewise.
43775 (video_mod_LDFLAGS): Likewise.
43776 (gfxterm_mod_SOURCES): Likewise.
43777 (gfxterm_mod_CFLAGS): Likewise.
43778 (gfxterm_mod_LDFLAGS): Likewise.
43779 (videotest_mod_SOURCES): Likewise.
43780 (videotest_mod_CFLAGS): Likewise.
43781 (videotest_mod_LDFLAGS): Likewise.
43782 (vesafb_mod_SOURCES): Removed.
43783 (vesafb_mod_CFLAGS): Likewise.
43784 (vesafb_mod_LDFLAGS): Likewise.
43785 (vga_mod_SOURCES): Likewise.
43786 (vga_mod_CFLAGS): Likewise.
43787 (vga_mod_LDFLAGS): Likewise.
43788
43789 * commands/videotest.c: New file.
43790
43791 * font/manager.c (fill_with_default_glyph): Modified to use
43792 grub_font_glyph.
43793 (grub_font_get_glyph): Likewise.
43794 (fontmanager): Renamed from this...
43795 (font_manager): ... to this.
43796
43797 * include/grub/font.h (grub_font_glyph): Added new structure.
43798 (grub_font_get_glyph): Modified to use grub_font_glyph.
43799
43800 * include/grub/misc.h (grub_abs): Added as inline function.
43801
43802 * include/grub/video.h: New file.
43803
43804 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43805 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43806 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43807 (grub_vbe_get_controller_info): Renamed from this...
43808 (grub_vbe_bios_get_controller_info): ... to this.
43809 (grub_vbe_get_mode_info): Renamed from this...
43810 (grub_vbe_bios_get_mode_info): ... to this.
43811 (grub_vbe_set_mode): Renamed from this...
43812 (grub_vbe_bios_set_mode): ... to this.
43813 (grub_vbe_get_mode): Renamed from this...
43814 (grub_vbe_bios_get_mode): ... to this.
43815 (grub_vbe_set_memory_window): Renamed from this...
43816 (grub_vbe_bios_set_memory_window): ... to this.
43817 (grub_vbe_get_memory_window): Renamed from this...
43818 (grub_vbe_bios_get_memory_window): ... to this.
43819 (grub_vbe_set_scanline_length): Renamed from this...
43820 (grub_vbe_set_scanline_length): ... to this.
43821 (grub_vbe_get_scanline_length): Renamed from this...
43822 (grub_vbe_bios_get_scanline_length): ... to this.
43823 (grub_vbe_set_display_start): Renamed from this...
43824 (grub_vbe_bios_set_display_start): ... to this.
43825 (grub_vbe_get_display_start): Renamed from this...
43826 (grub_vbe_bios_get_display_start): ... to this.
43827 (grub_vbe_set_palette_data): Renamed from this...
43828 (grub_vbe_bios_set_palette_data): ... to this.
43829 (grub_vbe_set_pixel_rgb): Removed.
43830 (grub_vbe_set_pixel_index): Likewise.
43831
43832 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43833 from this...
43834 (grub_vbe_bios_get_controller_info): ... to this.
43835 (grub_vbe_get_mode_info): Renamed from this...
43836 (grub_vbe_bios_get_mode_info): ... to this.
43837 (grub_vbe_set_mode): Renamed from this...
43838 (grub_vbe_bios_set_mode): ... to this.
43839 (grub_vbe_get_mode): Renamed from this...
43840 (grub_vbe_bios_get_mode): ... to this.
43841 (grub_vbe_set_memory_window): Renamed from this...
43842 (grub_vbe_bios_set_memory_window): ... to this.
43843 (grub_vbe_get_memory_window): Renamed from this...
43844 (grub_vbe_bios_get_memory_window): ... to this.
43845 (grub_vbe_set_scanline_length): Renamed from this...
43846 (grub_vbe_set_scanline_length): ... to this.
43847 (grub_vbe_get_scanline_length): Renamed from this...
43848 (grub_vbe_bios_get_scanline_length): ... to this.
43849 (grub_vbe_set_display_start): Renamed from this...
43850 (grub_vbe_bios_set_display_start): ... to this.
43851 (grub_vbe_get_display_start): Renamed from this...
43852 (grub_vbe_bios_get_display_start): ... to this.
43853 (grub_vbe_set_palette_data): Renamed from this...
43854 (grub_vbe_bios_set_palette_data): ... to this.
43855 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43856 getting corrupted after calling it. Added more pushes and pops.
43857 (grub_vbe_bios_set_mode): Likewise.
43858 (grub_vbe_bios_get_mode): Likewise.
43859 (grub_vbe_bios_get_memory_window): Likewise.
43860 (grub_vbe_bios_set_scanline_length): Likewise.
43861 (grub_vbe_bios_get_scanline_length): Likewise.
43862 (grub_vbe_bios_get_display_start): Likewise.
43863 (grub_vbe_bios_set_palette_data): Likewise.
43864
43865 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43866 (cl_insert): Likewise.
43867 (cl_delete): Likewise.
43868
43869 * term/gfxterm.c: New file.
43870
43871 * term/i386/pc/vesafb.c: Removed file.
43872
43873 * video/video.c: New file.
43874
43875 * video/i386/pc/vbe.c (real2pm): Added new function.
43876 (grub_video_vbe_draw_pixel): Likewise.
43877 (grub_video_vbe_get_video_ptr): Likewise.
43878 (grub_video_vbe_get_pixel): Likewise
43879 (grub_video_vbe_init): Likewise.
43880 (grub_video_vbe_fini): Likewise.
43881 (grub_video_vbe_setup): Likewise.
43882 (grub_video_vbe_get_info): Likewise.
43883 (grub_video_vbe_set_palette): Likewise.
43884 (grub_video_vbe_get_palette): Likewise.
43885 (grub_video_vbe_set_viewport): Likewise.
43886 (grub_video_vbe_get_viewport): Likewise.
43887 (grub_video_vbe_map_color): Likewise.
43888 (grub_video_vbe_map_rgb): Likewise.
43889 (grub_video_vbe_map_rgba): Likewise.
43890 (grub_video_vbe_unmap_color): Likewise.
43891 (grub_video_vbe_fill_rect): Likewise.
43892 (grub_video_vbe_blit_glyph): Likewise.
43893 (grub_video_vbe_blit_bitmap): Likewise.
43894 (grub_video_vbe_blit_render_target): Likewise.
43895 (grub_video_vbe_scroll): Likewise.
43896 (grub_video_vbe_swap_buffers): Likewise.
43897 (grub_video_vbe_create_render_target): Likewise.
43898 (grub_video_vbe_delete_render_target): Likewise.
43899 (grub_video_vbe_set_active_render_target): Likewise.
43900 (grub_vbe_set_pixel_rgb): Remove function.
43901 (grub_vbe_set_pixel_index): Likewise.
43902 (index_color_mode): Remove static variable.
43903 (active_mode): Likewise.
43904 (framebuffer): Likewise.
43905 (bytes_per_scan_line): Likewise.
43906 (grub_video_vbe_adapter): Added new static variable.
43907 (framebuffer): Likewise.
43908 (render_target): Likewise.
43909 (initial_mode): Likewise.
43910 (mode_in_use): Likewise.
43911 (mode_list): Likewise.
43912
5f97350b 439132006-03-10 Marco Gerards <marco@gnu.org>
43914
43915 * configure.ac (AC_INIT): Bumped to 1.93.
43916
43917 * DISTLIST: Added `include/grub/hfs.h'.
43918
a3c5c6f8 439192006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43920
43921 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43922 18H, which might help the BIOS falling back to next boot media.
43923
6de53d26 439242006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43925
43926 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43927 Poe Chen <poe.poechen@gmail.com>.
43928
77c4a393 439292006-01-17 Marco Gerards <marco@gnu.org>
43930
43931 * include/grub/normal.h: Include <grub/script.h>.
43932 (grub_command_list): Removed struct.
43933 (grub_command_list_t): Removed type.
43934 (grub_menu_entry): Remove members `num' and `command_list'. Add
43935 members `commands' and `sourcecode'.
43936 * include/grub/script.h: Add inclusion guards.
43937 (grub_script_cmd_menuentry): New struct.
43938 (grub_script_execute_menuentry): New prototype.
43939 (grub_script_lexer_record_start): Likewise.
43940 (grub_script_lexer_record_stop): Likewise.
43941 * normal/execute.c (grub_script_execute_menuentry): New function.
43942 * normal/lexer.c (record, recording, recordpos, recordlen): New
43943 variables.
43944 (grub_script_lexer_record_start): New function.
43945 (grub_script_lexer_record_stop): Likewise.
43946 (recordchar): Likewise.
43947 (nextchar): Likewise.
43948 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43949 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43950 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43951 (current_menu): New variable.
43952 (free_menu): Mainly rewritten.
43953 (grub_normal_menu_addentry): New function.
43954 (read_config_file): Rewritten.
43955 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 43956 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 43957 the menu entry.
43958 (run): Mainly rewritten.
43959 * normal/parser.y (menu_entry): New variable.
43960 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43961 (menuentry): New rule.
43962 (command): Add `menuentry'.
43963 (if_statement): Allow additional returns before `fi'.
43964 * normal/script.c (grub_script_create_cmdmenu): New function.
43965
144f1f98 439662006-01-03 Marco Gerards <marco@gnu.org>
43967
43968 * INSTALL: GNU Bison is required.
43969 * configure.ac: Rewritten the test to detect Bison.
43970 * Makefile.in (YACC): New variable. Reported by Xun Sun
43971 <xun.sun.cn@gmail.com>.
43972
af4b2d89 439732006-01-03 Marco Gerards <marco@gnu.org>
43974
43975 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43976 the HFS+ filesystem to filesystem blocks.
43977 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43978 GCC warning is silenced.
43979
15643b71 439802006-01-03 Marco Gerards <marco@gnu.org>
43981
43982 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43983 read from disk from big endian to host byte order.
43984
00905879 439852006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43986
43987 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43988 documentation.
43989 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43990 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43991 embedded HFS+ filesystem.
43992 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43993 (grub_hfs_sblock): Move from here...
43994 * include/grub/hfs.h: To here... New file.
43995 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43996 documentation.
43997 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43998 New macros.
43999 (grub_hfsplus_volheader): Change type of member `magic' to
44000 `grub_uint16_t'.
44001 (grub_hfsplus_data): Add new member `embedded_offset'.
44002 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
44003 returned block.
44004 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
44005 Calculate the offset.
44006
8899bc3e 440072005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44008
44009 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
44010 Removed.
44011 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
44012
ae8c0277 440132005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44014
44015 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
44016 ENV->NAME is NULL after allocating ENV->VALUE.
44017
07084456 440182005-12-25 Marco Gerards <marco@gnu.org>
44019
44020 * kern/env.c (grub_env_set): Rewritten the error handling code.
44021
4750f5f1 440222005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44023
44024 * geninit.sh: Made more robust, and more portable.
44025
50214199 440262005-12-25 Marco Gerards <marco@gnu.org>
44027
44028 Add support for Apple HFS+ filesystems.
f19dbdb7 44029
50214199 44030 * fs/hfsplus.c: New file.
44031
44032 * DISTLIST: Added `fs/hfsplus.c'.
44033
44034 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
44035 (hfsplus_mod_SOURCES): New variable.
44036 (hfsplus_mod_CFLAGS): Likewise.
44037 (hfsplus_mod_LDFLAGS): Likewise.
44038 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
44039 (grub_setup_SOURCES): Likewise.
44040 (grub_mkdevicemap_SOURCES): Likewise.
44041 (grub_emu_SOURCES): Likewise.
44042 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44043
44044 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
44045
44046 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
44047
befaed6c 440482005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44049
44050 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
44051 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
44052 include/grub/parser.h, include/grub/script.h, kern/parser.c,
44053 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
44054 normal/lexer.c, normal/parser.y, normal/script.c, and
44055 partmap/gpt.c.
44056 Removed kern/sparc64/cache.c.
44057
44058 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
44059 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
44060 grub_emu_init.c.
44061
44062 * configure.ac (AC_INIT): Bumped to 1.92.
44063
6a124103 440642005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
44065
44066 * kern/err.c (grub_error_push): Added new function to support error
44067 stacks.
44068 (grub_error_pop): Likewise.
44069 (grub_error_stack_items): New local variable to support error stacks.
44070 (grub_error_stack_pos): Likewise.
44071 (grub_error_stack_assert): Likewise.
44072 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
44073 stack depth.
44074 (grub_print_error): Added support to print errors from error stack.
44075
44076 * include/grub/err.h (grub_error_push): Added function prototype.
44077 (grub_error_pop): Likewise.
44078
be973c1b 440792005-12-09 Hollis Blanchard <hollis@penguinppc.org>
44080
44081 * configure.ac: Accept `powerpc64' as host_cpu.
44082 (amd64): Rename to `biarch32'.
44083
44084 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
44085 non-cacheline-aligned addresses.
44086
44087 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
44088 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44089 if `size' is non-zero.
44090
b04216ab 440912005-12-03 Marco Gerards <mgerards@xs4all.nl>
44092
44093 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44094 and `cd' to make sure the filename is not prefixed with a
44095 directory name.
44096 (pkgdata_MODULES): Add `gpt.mod'.
44097 (gpt_mod_SOURCES): New variable.
44098 (gpt_mod_CFLAGS): Likewise.
44099 (gpt_mod_LDFLAGS): Likewise.
44100
44101 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44102
44103 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44104 New macro.
44105
44106 * partmap/gpt.c: New file.
44107
44108 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44109 GPT partition map is detected.
44110
41730ed9 441112005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44112
44113 * commands/i386/pc/play.c: New file.
44114 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44115 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44116 macros.
f19dbdb7 44117
95dc3643 441182005-11-27 Marco Gerards <mgerards@xs4all.nl>
44119
44120 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44121 ((unused))' to silence gcc warning.
44122
1569ec51 441232005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44124
44125 * configure.ac: Correct `AC_PROG_YACC' test.
44126
9abde152 441272005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44128
44129 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44130 check before installing files.
44131
44b83271 441322005-11-22 Mike Small <smallm@panix.com>
44133
44134 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44135 number regex so multidigit numbers are recognized correctly.
44136
441372005-11-22 Mike Small <smallm@panix.com>
44138
44139 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44140 debugging message before attempting to claim memory.
44141 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44142 multiple addresses in case of failure.
44143
9c12956b 441442005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44145
44146 * term/tparm.c (get_space): Remove empty `if' statement.
44147
44148 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44149
44150 * kern/parser.c (check_varstate): Rename `state' to 's'.
44151
aeaf81d9 441522005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44153
44154 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44155 variable definitions to the beginning of each function. Sort stack
44156 variables by size.
44157 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44158 `buf' argument to `char *'.
44159
79bbb63f 441602005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44161
44162 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44163 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44164 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 44165 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44166 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44167 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44168 configfile.mod, search.mod, gzio.mod and test.mod.
44169 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44170 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44171 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44172 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44173 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44174 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44175 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44176 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44177 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44178 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44179 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44180 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44181 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44182 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44183 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44184 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44185 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44186 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44187 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44188 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44189 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44190 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44191 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44192
44193 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44194 `grep --include'.
44195 (pkgdata_MODULES): Add test.mod.
44196
233b1628 441972005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44198
44199 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44200 appending to variables with "+=".
44201 (PModule): Use full pathname to generate *.lst filenames.
44202
44203 * Makefile.in: Fixed list rules moved from genmk.rb.
44204 (.DELETE_ON_ERROR): New special target.
44205 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44206
44207 * conf/i386-pc.rmk: Include conf/common.mk.
44208 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44209 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 44210 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44211 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44212 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44213 configfile.mod, search.mod, gzio.mod and test.mod.
44214 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44215 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44216 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44217 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44218 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44219 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44220 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44221 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44222 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44223 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44224 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44225 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44226 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44227 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44228 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44229 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44230 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44231 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44232 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44233 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44234 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44235 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44236 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44237 here...
44238 * conf/common.rmk: ... to here. New file.
44239
44240 * conf/common.mk: New file.
44241
16f820c8 442422005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44243
44244 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44245 (grub_script.tab.c): ... here.
44246
44247 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44248 (grub_script.tab.c): ... here.
44249
44250 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44251 (grub_script.tab.c): ... here.
44252
44253 * normal/command.c (grub_command_find): Fixed a memory leak of
44254 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44255
63ba1554 442562005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44257
44258 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44259 "@" which marks the start of a comment on ARM.
44260 (VARIABLE): Likewise.
44261
7f67dc13 442622005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44263
79bbb63f 44264 Add support for Linux/ADFS partition tables.
7f67dc13 44265
44266 * partmap/acorn.c: New file.
44267
44268 * include/grub/acorn_filecore.h: Likewise.
44269
44270 * DISTLIST: Added `partmap/acorn.c' and
44271 `include/grub/acorn_filecore.h'.
f19dbdb7 44272
7f67dc13 44273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44274 `partmap/acorn.c'.
44275 (pkgdata_MODULES): Add `acorn.mod'.
44276 (acorn_mod_SOURCES): New variable.
44277 (acorn_mod_CFLAGS): Likewise.
44278
44279 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44280 `partmap/acorn.c'.
44281 (pkgdata_MODULES): Add `acorn.mod'.
44282 (acorn_mod_SOURCES): New variable.
44283 (acorn_mod_CFLAGS): Likewise.
44284
44285 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44286 (pkgdata_MODULES): Add `acorn.mod'.
44287 (acorn_mod_SOURCES): New variable.
44288 (acorn_mod_CFLAGS): Likewise.
44289 (acorn_mod_LDFLAGS): Likewise.
44290
44291 * include/types.h (grub_disk_addr_t): New typedef.
44292
6d099807 442932005-11-13 Marco Gerards <mgerards@xs4all.nl>
44294
44295 * geninit.sh: New file.
44296
44297 * geninitheader.sh: Likewise.
44298
44299 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44300 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44301 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44302 * commands/configfile.c (grub_configfile_init)
44303 (grub_configfile_fini): Likewise.
44304 * commands/default.c (grub_default_init, grub_default_fini):
44305 Likewise.
44306 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44307 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44308 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44309 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44310 Likewise.
44311 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44312 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44313 Likewise.
44314 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 44315 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 44316 Likewise.
44317 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44318 Likewise.
fe6b695a 44319 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 44320 Likewise.
44321 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44322 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44323 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44324 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44325 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44326 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44327 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44328 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44329 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44330 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44331 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44332 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44333 * partmap/amiga.c (grub_amiga_partition_map_init)
44334 (grub_amiga_partition_map_fini): Likewise.
44335 * partmap/apple.c (grub_apple_partition_map_init)
44336 (grub_apple_partition_map_fini): Likewise.
44337 * partmap/pc.c (grub_pc_partition_map_init)
44338 (grub_pc_partition_map_fini): Likewise.
44339 * partmap/sun.c (grub_sun_partition_map_init,
44340 grub_sun_partition_map_fini): Likewise.
44341 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44342 Likewise.
44343
44344 * util/grub-emu.c: Include <grub_modules_init.h>.
44345 (main): Don't initialize and de-initialize any modules directly,
44346 use `grub_init_all' and `grub_fini_all' instead.
44347
44348 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44349 `grub_vesafb_mod_init'.
44350 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44351 all users.
44352 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44353 `grub_vga_mod_init'. Updated all users.
44354 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 44355
6d099807 44356 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44357 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44358 rules.
44359
44360 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44361 Generate a function to initialize the module in utilities.
44362 Updated all callers.
44363 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44364 initialize the module in utilities. Updated all callers.
44365
9046bcf0 443662005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44367
44368 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44369 escape sequence and a literal ^L to clear the screen.
44370
44371 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44372 when returning from Open Firmware.
44373
d13ea639 443742005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44375
44376 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44377 (grub_ofconsole_height): Likewise.
44378 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44379 manually insert a '\n'.
44380 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44381 `grub_ofconsole_height'. Return early if these are already set.
44382
a8fcf206 443832005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44384
44385 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44386 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44387 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44388 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44389 and `normal/script.c'.
44390 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44391 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44392 (test_mod_SOURCES): New variable.
44393 (test_mod_CFLAGS): Likewise.
44394 (test_mod_LDFLAGS): Likewise.
44395 (pkgdata_MODULES): Add `test.mod'.
44396 (grub_script.tab.c): New rule.
44397 (grub_script.tab.h): Likewise.
44398
b6b32745 443992005-11-07 Marco Gerards <mgerards@xs4all.nl>
44400
44401 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44402 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44403 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44404 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44405 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44406 (test_mod_SOURCES): New variable.
44407 (test_mod_CFLAGS): Likewise.
44408 (pkgdata_MODULES): Add `test.mod'.
44409 (grub_script.tab.c): New rule.
44410 (grub_script.tab.h): Likewise.
44411
daac212a 444122005-11-06 Marco Gerards <mgerards@xs4all.nl>
44413
44414 Add initial scripting support.
44415
44416 * commands/test.c: New file.
44417 * include/grub/script.h: Likewise.
44418 * normal/execute.c: Likewise.
44419 * normal/function.c: Likewise.
44420 * normal/lexer.c: Likewise.
44421 * normal/parser.y: Likewise.
44422 * normal/script.c: Likewise.
44423
44424 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 44425
daac212a 44426 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44427 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44428 `normal/function.c' and `normal/script.c'.
44429 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44430 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 44431 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44432 variables.
daac212a 44433 (pkgdata_MODULES): Add `test.mod'.
44434 (grub_script.tab.c): New rule.
44435 (grub_script.tab.h): Likewise.
44436
44437 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44438
44439 * include/grub/normal.h (grub_test_init): New prototype.
44440 (grub_test_fini): Likewise.
f19dbdb7 44441
daac212a 44442 * normal/command.c: Include <grub/script.h>.
44443 (grub_command_execute): Rewritten.
f19dbdb7 44444
daac212a 44445 * util/grub-emu.c (main): Call `grub_test_init' and
44446 `grub_test_fini'.
44447
77500b2b 444482005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44449
44450 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44451 to 0.
44452 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44453 there are no pending characters.
44454
e45deb9e 444552005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44456
44457 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44458 `grub_strndup' to drop device arguments. Replace unnecessary
44459 `grub_strndup' with `grub_strdup'.
44460
4ce32619 444612005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44462
44463 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44464 `debug' environment variable has been set.
44465
444662005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 44467
4ce32619 44468 * Makefile.in (install-local): Use $(DATA).
44469 (uninstall): Likewise.
44470 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44471 (sbin_UTILITIES): ... to here.
44472 (sbin_SCRIPTS): New variable.
44473 (grub_install_SOURCES): New variable.
44474 * util/powerpc/ieee1275/grub-install.in: New file.
44475 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44476 variable.
44477 (add_segments): Call `grub_util_get_path'.
44478
25fe6f03 444792005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44480
44481 From Timothy Baldwin:
44482 * commands/ls.c (grub_ls_list_files): Close FILE with
44483 grub_file_close.
44484 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44485
04ccf3ec 444862005-10-24 Marco Gerards <mgerards@xs4all.nl>
44487
44488 * include/grub/parser.h: New file.
44489
44490 * kern/parser.c: Likewise.
44491
44492 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44493 (grub_setup_SOURCES): Likewise.
44494 (grub_probefs_SOURCES): Likewise.
44495 (grub_emu_SOURCES): Likewise.
44496 (kernel_img_HEADERS): Add `parser.h'.
44497
44498 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44499 (grub_emu_SOURCES): Add `kern/parser.c'.
44500 (grubof_SOURCES): Likewise.
44501
44502 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44503 (grubof_SOURCES): Add `kern/parser.c'.
44504
44505 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44506
44507 * kern/misc.c (grub_split_cmdline): Removed function.
44508
44509 * kern/rescue.c: Include <grub/parser.h>.
44510 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44511 of `grub_split_cmdline'.
44512
44513 * normal/command.c: Include <grub/parser.h>.
44514 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44515 of `grub_split_cmdline'.
44516
44517 * normal/completion.c: Include <grub/parser.h>.
44518 (cmdline_state): New variable.
44519 (iterate_dir): End the filename with a quote depending on the
44520 command line state.
44521 (get_state): new function.
44522 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44523 split the arguments and determine the current argument. When the
44524 argument string is not quoted, escape all spaces.
44525
6d8f4b0e 445262005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44527
44528 * normal/sparc64/setjmp.S: New file.
44529
15cf03ed 445302005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44531
44532 * include/grub/sparc64/libgcc.h: New file.
44533 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44534 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44535 normal/sparc64/setjmp.c.
44536
03e8661a 445372005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44538
44539 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44540 * kern/sparc64/cache.S: New file.
44541 * kern/sparc64/cache.c: Removed.
44542 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44543 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44544 -mtune=ultrasparc.
44545 (COMMON_LDFLAGS): Add -melf64_sparc.
44546 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44547 (grubof_SOURCES): Use cache.S instead of cache.c.
44548 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44549 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44550 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44551 commented though.
44552 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44553 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44554 (linux_mod_CFLAGS): Commented out.
44555 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44556 out because module isn't built.
44557 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44558 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44559 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44560 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44561 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44562 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44563 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44564 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44565 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44566 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44567 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44568 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44569 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44570 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44571
34eeec8a 445722005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44573
44574 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44575 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44576 longer, because HFS should not be used on PC.
44577
708367a3 445782005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44579
44580 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44581 consistently within the loop.
44582
6fa1251a 445832005-10-15 Marco Gerards <mgerards@xs4all.nl>
44584
44585 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44586 directory can not be read.
44587
4801580b 445882005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44589
44590 * configure.ac (AC_INIT): Increase the version number to 1.91.
44591
44592 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44593 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44594 term/i386/pc/serial.c.
44595
219ad426 445962005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44597
44598 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44599 file size must be permitted.
44600
44601 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44602 between %ah and %al.
44603
688e5699 446042005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44605
44606 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44607 grub_uint64_t.
44608 Call the hook with a NUL-terminated filename.
44609 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44610 grub_cpu_to_be32.
44611
44612 * kern/term.c (cursor_state): New variable.
44613 (grub_term_set_current): Reset the cursor state on a new
44614 terminal.
44615 (grub_setcursor): Rewritten to use CURSOR_STATE.
44616 (grub_getcursor): New function.
44617
44618 * include/grub/term.h (grub_getcursor): New prototype.
44619
44620 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44621 integers on ARM. Reported by Timothy Baldwin
44622 <T.E.Baldwin99@members.leeds.ac.uk>.
44623
bb34586c 446242005-10-11 Marco Gerards <mgerards@xs4all.nl>
44625
44626 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44627 allocated.
44628 (grub_sfs_dir): Likewise.
44629
9a909877 446302005-10-09 Marco Gerards <mgerards@xs4all.nl>
44631
44632 Add support for the SFS filesystem.
44633
44634 * fs/sfs.c: New file.
44635
44636 * DISTLIST: Added `fs/sfs.c'.
44637
44638 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44639 (grub_probefs_SOURCES): Likewise.
44640 (grub_emu_SOURCES): Likewise.
44641 (pkgdata_MODULES): Add `sfs.mod'.
44642 (sfs_mod_SOURCES): New variable.
44643 (sfs_mod_CFLAGS): Likewise.
44644 (sfs_mod_LDFLAGS): Likewise.
44645
44646 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44647 (pkgdata_MODULES): Add `sfs.mod'.
44648 (sfs_mod_SOURCES): New variable.
44649 (sfs_mod_CFLAGS): Likewise.
44650
44651 * util/grub-emu.c (main): Call `grub_sfs_init' and
44652 `grub_sfs_fini'.
44653
44654 * include/grub/fs.h (grub_sfs_init): New prototype.
44655 (grub_sfs_fini): Likewise.
44656
57bdbde3 446572005-10-07 Marco Gerards <mgerards@xs4all.nl>
44658
44659 Add support for the AFFS filesystem.
44660
44661 * fs/affs.c: New file.
44662
44663 * DISTLIST: Added `fs/affs.c'.
44664
44665 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44666 (grub_probefs_SOURCES): Likewise.
44667 (grub_emu_SOURCES): Likewise.
44668 (pkgdata_MODULES): Add `affs.mod'.
44669 (affs_mod_SOURCES): New variable.
44670 (affs_mod_CFLAGS): Likewise.
44671 (affs_mod_LDFLAGS): Likewise.
44672
44673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44674 (pkgdata_MODULES): Add `affs.mod'.
44675 (affs_mod_SOURCES): New variable.
44676 (affs_mod_CFLAGS): Likewise.
44677
44678 * util/grub-emu.c (main): Call `grub_affs_init' and
44679 `grub_affs_fini'.
44680
44681 * include/grub/fs.h (grub_affs_init): New prototype.
44682 (grub_affs_fini): Likewise.
44683
047b67e0 446842005-10-01 Marco Gerards <mgerards@xs4all.nl>
44685
44686 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44687
59b8208a 446882005-10-01 Marco Gerards <mgerards@xs4all.nl>
44689
44690 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44691 `-m32' to CFLAGS.
44692
44693 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44694 linking.
f19dbdb7 44695
59b8208a 44696 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44697 (COMMON_LDFLAGS): New variable.
44698 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44699 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44700 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44701 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44702 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44703 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44704 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44705 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44706 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44707 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44708 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44709 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44710 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44711 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44712 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44713 variables.
44714 (normal_mod_ASFLAGS): Add `-m32'.
44715
44716 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44717 (grub_host_size_t, grub_host_ssize_t): New types.
44718 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 44719 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 44720 `GRUB_HOST_SIZEOF_VOID_P'.
44721
44722 * include/grub/kernel.h (struct grub_module_header): Type of
44723 member offset changed to `grub_host_off_t'. Type of member size
44724 changed to `grub_host_size_t'.
44725 (struct grub_module_info): Type of member offset changed to
44726 `grub_host_off_t'. Type of member size changed to
44727 `grub_host_size_t'.
44728
b4093103 447292005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44730
44731 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 44732
b4093103 44733 * kern/i386/pc/startup.S (multiboot_header): New label.
44734 (multiboot_entry): Likewise.
44735 (multiboot_trampoline): Likewise.
44736
44737 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44738 Increased to 0x4A0.
44739
44740 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44741 put parentheses after a question mark.
44742 [!GRUB_UTIL] (my_mod): New variable.
44743
44744 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44745
b2499b29 447462005-09-28 Marco Gerards <mgerards@xs4all.nl>
44747
44748 Adds support for the XFS filesystem. Btrees are not supported
44749 yet.
44750
44751 * fs/xfs.c: New file.
44752
44753 * DISTLIST: Added `fs/xfs.c'.
44754
44755 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44756 (grub_probefs_SOURCES): Likewise.
44757 (grub_emu_SOURCES): Likewise.
44758 (pkgdata_MODULES): Add `xfs.mod'.
44759 (xfs_mod_SOURCES): New variable.
44760 (xfs_mod_CFLAGS): Likewise.
44761
44762 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44763 (pkgdata_MODULES): Add `xfs.mod'.
44764 (xfs_mod_SOURCES): New variable.
44765 (xfs_mod_CFLAGS): Likewise.
44766
44767 * util/grub-emu.c (main): Call `grub_xfs_init' and
44768 `grub_xfs_fini'.
44769
44770 * include/grub/fs.h (grub_xfs_init): New prototype.
44771 (grub_xfs_fini): Likewise.
44772
f19dbdb7 44773
83d37a62 447742005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44775
44776 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44777 color modes, allow greater than 16 colors to be configured as
44778 a default palette.
44779
47d2d65e 447802005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44781
44782 * normal/completion.c (complete_arguments): Add the qualifier
44783 const into OPTIONS.
44784
44785 From Omniflux <omniflux+lists@omniflux.com>:
44786 * include/grub/terminfo.h: New file.
44787 * include/grub/tparm.h: Likewise.
44788 * include/grub/i386/pc/serial.h: Likewise.
44789 * term/terminfo.c: Likewise.
44790 * term/tparm.c: Likewise.
44791 * term/i386/pc/serial.c: Likewise.
44792 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44793 serial.mod.
44794 (terminfo_mod_SOURCES): New variable.
44795 (terminfo_mod_CFLAGS): Likewise.
44796 (serial_mod_SOURCES): Likewise.
44797 (serial_mod_CFLAGS): Likewise.
44798
48b671ff 447992005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44800
44801 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44802 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44803 and kern/powerpc/ieee1275/cmain.c, respectively.
44804
44805 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44806 * kern/powerpc/ieee1275/crt0.S: ... here.
44807
44808 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44809 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 44810
48b671ff 44811 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44812 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44813 instead of boot/powerpc/ieee1275/crt0.S and
44814 boot/powerpc/ieee1275/cmain.c, respectively.
44815
44816 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44817 sectors. It was not used anyway.
44818
09fc77a7 448192005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44820
44821 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44822 `unused parameter' warning.
44823
003789c7 448242005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44825
44826 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44827 function.
44828 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44829 getcharwidth.
44830
67f44c86 448312005-08-28 Marco Gerards <metgerards@student.han.nl>
44832
44833 * include/grub/normal.h (enum grub_completion_type): Added
44834 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44835
44836 * normal/cmdline.c (print_completion): Handle
44837 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44838 * normal/menu_entry.c (store_completion): Likewise.
44839
44840 * normal/completion.c (complete_arguments): New function.
44841 (grub_normal_do_completion): Call `complete_arguments' when the
44842 current words start with a dash.
44843
0b5abe02 448442005-08-27 Marco Gerards <metgerards@student.han.nl>
44845
44846 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44847 `gzio.mod' instead of `io.mod').
44848
d9864ee1 448492005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44850
44851 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44852 (DISTDIRS): Added io and video.
44853 Rewrite the search routine to make an output consistently.
44854
44855 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44856 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44857 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44858 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44859 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44860 util/powerpc/ieee1275/misc.c.
f19dbdb7 44861
d9864ee1 44862 * include/grub/gzio.h: New file.
44863 * io/gzio.c: Likewise.
f19dbdb7 44864
d9864ee1 44865 * kern/file.c (grub_file_close): Call grub_device_close only if
44866 FILE->DEVICE is not NULL.
44867
44868 * include/grub/mm.h [!NULL] (NULL): New macro.
44869
44870 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44871
44872 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44873 (pkgdata_MODULES): Added gzio.mod.
44874 (gzio_mod_SOURCES): New variable.
44875 (gzio_mod_CFLAGS): Likewise.
44876
44877 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44878 (pkgdata_MODULES): Added gzio.mod.
44879 (gzio_mod_SOURCES): New variable.
44880 (gzio_mod_CFLAGS): Likewise.
44881
44882 * commands/cat.c: Include grub/gzio.h.
44883 (grub_cmd_cat): Use grub_gzfile_open instead of
44884 grub_file_open.
f19dbdb7 44885
d9864ee1 44886 * commands/cmp.c: Include grub/gzio.h.
44887 (grub_cmd_cmp): Use grub_gzfile_open instead of
44888 grub_file_open.
44889
44890 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44891 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44892 grub_file_open.
44893 (grub_rescue_cmd_module): Likewise.
44894
fa46f4b5 448952005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44896
44897 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44898 kern/sparc64/ieee1275/init.c because it contains _start.
44899 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44900
e9211b5d 449012005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44902
44903 * configure.ac: Add support for sparc64 host with ieee1275
44904 firmware.
44905 * configure: Generated from configure.ac.
44906 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44907 instead of int.
44908 (grub_ofdisk_read): Likewise.
44909 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44910 pointers as (void *) to remove a warning.
44911 (grub_ofdisk_close): Likewise.
44912 (grub_ofdisk_read): Likewise.
44913 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44914 returns, so make it return void to remove a warning.
44915 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44916 Corresponding prototype change.
44917 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44918 values, and cast the pointers as (void *) to remove a warning.
44919 (grub_mm_dump): Likewise.
44920 * conf/sparc64-ieee1275.mk: New file.
44921 * conf/sparc64-ieee1275.rmk: Likewise.
44922 * include/grub/sparc64/setjmp.h: Likewise.
44923 * include/grub/sparc64/types.h: Likewise.
44924 * include/grub/sparc64/ieee1275/console.h: Likewise.
44925 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44926 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44927 * include/grub/sparc64/ieee1275/time.h: Likewise.
44928 * kern/sparc64/cache.c: Likewise.
44929 * kern/sparc64/dl.c: Likewise.
44930 * kern/sparc64/ieee1275/init.c: Likewise.
44931 * kern/sparc64/ieee1275/openfw.c: Likewise.
44932
385c6a92 449332005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44934
44935 * util/console.c (grub_ncurses_putchar): If C is greater than
44936 0x7f, set C to a question mark.
44937 (grub_ncurses_getcharwidth): New function.
44938 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44939 getcharwidth.
44940
44941 * normal/menu.c (print_entry): Made aware of Unicode. First,
44942 convert TITLE to UCS-4, and predict the cursor position by
44943 grub_getcharwidth.
44944
44945 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44946 const to SRC.
44947 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44948
16ccb8b1 449492005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44950
44951 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44952 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44953 grub_strcat.
44954
44955 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44956 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44957 grub_strcpy and grub_strlen. Take it into account that a space
44958 character is inserted as a delimiter.
44959
6a85ce79 449602005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44961
44962 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 44963 invalid magic in the error.
6a85ce79 44964
44965 * commands/search.c: New file.
f19dbdb7 44966
6a85ce79 44967 * util/grub-emu.c (main): Call grub_search_init and
44968 grub_search_fini.
44969
44970 * kern/rescue.c (grub_rescue_print_disks): Removed.
44971 (grub_rescue_print_devices): New function.
44972 (grub_rescue_cmd_ls): Use grub_device_iterate with
44973 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44974 grub_rescue_print_disks.
44975
44976 * kern/partition.c (grub_partition_iterate): Return the result of
44977 PARTMAP->ITERATE instead of GRUB_ERRNO.
44978
44979 * kern/device.c: Include grub/partition.h.
44980 (grub_device_iterate): New function.
44981
44982 * include/grub/partition.h (grub_partition_iterate): Return int
44983 instead of grub_err_t.
44984
44985 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44986 prototype.
44987 [GRUB_UTIL] (grub_search_fini): Likewise.
44988
44989 * include/grub/device.h (grub_device_iterate): New prototype.
44990
44991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44992 commands/search.c.
44993 (pkgdata_MODULES): Added search.mod.
44994 (search_mod_SOURCES): New variable.
44995 (search_mod_CFLAGS): Likewise.
44996
44997 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44998 (pkgdata_MODULES): Added search.mod.
44999 (search_mod_SOURCES): New variable.
45000 (search_mod_CFLAGS): Likewise.
45001
45002 * commands/ls.c (grub_ls_list_disks): Renamed to ...
45003 (grub_ls_list_devices): ... this, and use grub_device_iterate.
45004 All callers changed.
45005
45006 * DISTLIST: Added commands/search.c.
45007
ef095434 450082005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45009
45010 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
45011 conversion.
45012 (grub_getcharwidth): New function.
45013
45014 * kern/misc.c (grub_utf8_to_ucs4): New function.
45015
45016 * include/grub/term.h (struct grub_term): Added a new member
45017 "getcharwidth".
45018 (grub_getcharwidth): New prototype.
45019
45020 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
45021
45022 * term/i386/pc/console.c (map_char): New function. Segregated from
45023 grub_console_putchar.
45024 (grub_console_putchar): Use map_char.
45025 (grub_console_getcharwidth): New function.
45026 (grub_console_term): Specified grub_console_getcharwidth as
45027 getcharwidth.
45028
45029 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
45030 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
45031
45032 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
45033 GRUB_ERRNO.
45034 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
45035 on grub_strtoul completely.
45036 (write_char): Declare local variables in the beginning of the
45037 function.
45038 (grub_vesafb_getcharwidth): New function.
45039 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
45040 getcharwidth.
45041
1f0a95e4 450422005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
45043
45044 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
45045 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
45046 commands/i386/pc/vbetest.c.
45047
45048 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
45049 call grub_vbe_get_controller_info again, because the returned
45050 information is volatile.
45051 (grub_vbe_set_video_mode): Mostly rewritten.
45052 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
45053 grub_vbe_status_t correctly.
45054 (grub_vbe_get_video_mode_info): Likewise.
45055 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
45056 several if statements.
45057
45058 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
45059 * commands/i386/pc/vbeinfo.c: ... this.
45060
45061 * commands/i386/pc/vbe_test.c: Renamed to ...
45062 * commands/i386/pc/vbetest.c: ... this.
45063
45064 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
45065 ...
45066 (grub_cmd_vbeinfo): ... this. Save video modes before
45067 iterating. Skip a video mode, if it is not available, not enough
45068 information is given or it is monochrome. Show the memory
45069 model. Leave the interpretation of MODEVAR to grub_strtoul
45070 completely.
45071 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
45072 (GRUB_MOD_FINI): Likewise.
45073
45074 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
45075 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
45076 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
45077 duplicated grub_env_get. Leave the interpretation of MODEVAR to
45078 grub_strtoul completely.
45079 (real2pm): Removed.
45080 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
45081 (GRUB_MOD_FINI): Likewise.
45082
45083 * normal/misc.c: Include grub/mm.h.
45084
45085 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
45086 vbe_list_modes with vbetest.mod and vbeinfo.mod.
45087 (vbe_list_modes_mod_SOURCES): Removed.
45088 (vbe_list_modes_mod_CFLAGS): Likewise.
45089 (vbe_test_mod_SOURCES): Likewise.
45090 (vbe_test_mod_CFLAGS): Likewise.
45091 (vbeinfo_mod_SOURCES): New variable.
45092 (vbeinfo_mod_CFLAGS): Likewise.
45093 (vbetest_mod_SOURCES): Likewise.
45094 (vbetest_mod_CFLAGS): Likewise.
45095
992ffbbe 450962005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45097
45098 * normal/misc.c: New file.
45099
45100 * DISTLIST: Added normal/misc.c.
f19dbdb7 45101
992ffbbe 45102 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45103 DISK to HOOK. Call HOOK with DISK.
45104 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45105 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45106 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45107
45108 * normal/menu_entry.c (struct screen): Added a new member
45109 "completion_shown".
45110 (completion_buffer): New global variable.
45111 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45112 (store_completion): New function.
45113 (complete): Likewise.
45114 (clear_completions): Likewise.
45115 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45116 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45117 a tab, call complete.
45118
45119 * normal/completion.c (disk_dev): Removed.
45120 (print_simple_completion): Likewise.
45121 (print_partition_completion): Likewise.
45122 (print_func): New global variable.
45123 (add_completion): Do not take the arguments WHAT or PRINT any
45124 longer. Added a new argument TYPE. Instead of printing directly,
45125 call PRINT_FUNC if not NULL.
45126 All callers changed.
45127 (complete_device): Use a local variable DEV instead of
45128 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45129 (grub_normal_do_completion): Take a new argument HOOK. Do not
45130 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45131 empty string, return NULL instead.
45132 All callers changed.
45133
45134 * normal/cmdline.c (print_completion): New function.
45135
45136 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45137 to HOOK.
45138 All callers changed.
45139
45140 * kern/disk.c (grub_print_partinfo): Removed.
45141
45142 * include/grub/partition.h (struct grub_partition_map): Add a new
45143 argument DISK into HOOK of ITERATE.
45144 (grub_partition_iterate): Add a new argument DISK to HOOK.
45145
45146 * include/grub/normal.h (enum grub_completion_type): New enum.
45147 (grub_completion_type_t): New type.
45148 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45149 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45150 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45151 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45152 (grub_normal_do_completion): Added a new argument HOOK.
45153 (grub_normal_print_device_info): New prototype.
45154
45155 * include/grub/disk.h (grub_print_partinfo): Removed.
45156
45157 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45158 (normal_mod_SOURCES): Likewise.
45159 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45160 (normal_mod_SOURCES): Likewise.
45161
45162 * commands/ls.c (grub_ls_list_disks): Use
45163 grub_normal_print_device_info instead of grub_print_partinfo. Free
45164 PNAME.
45165 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45166 duplicating the code.
45167
0bd41162 451682005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45169
45170 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 45171 follow GCS more precisely.
45172 * commands/i386/pc/vbe_test.c: Likewise.
45173 * include/grub/i386/pc/vbe.h: Likewise.
45174 * term/i386/pc/vesafb.c: Likewise.
45175 * video/i386/pc/vbe.c: Likewise.
0bd41162 45176
6323696a 451772005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45178
45179 * DISTLIST: Added term/i386/pc/vesafb.c
45180 DISTLIST: Added video/i386/pc/vbe.c
45181 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45182 DISTLIST: Added commands/i386/pc/vbe_test.c.
45183 * commands/i386/pc/vbe_list_modes.c: New file.
45184 * commands/i386/pc/vbe_test.c: Likewise.
45185 * term/i386/pc/vesafb.c: Likewise.
45186 * video/i386/pc/vbe.c: Likewise.
45187 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45188 (grub_vbe_probe) Added prototype.
45189 (grub_vbe_set_video_mode) Likewise.
45190 (grub_vbe_get_video_mode) Likewise.
45191 (grub_vbe_get_video_mode_info) Likewise.
45192 (grub_vbe_set_pixel_rgb) Likewise.
45193 (grub_vbe_set_pixel_index) Likewise.
45194 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45195 (pkgdata_MODULES): Added vesafb.mod.
45196 (pkgdata_MODULES): Added vbe_list_modes.mod.
45197 (pkgdata_MODULES): Added vbe_test.mod.
45198 (vbe_mod_SOURCES): Added.
45199 (vbe_mod_CFLAGS): Likewise.
45200 (vesafb_mod_SOURCES): Likewise.
45201 (vesafb_mod_CFLAGS): Likewise.
45202 (vbe_list_modes_mod_SOURCES): Likewise.
45203 (vbe_list_modes_mod_CFLAGS): Likewise.
45204 (vbe_test_mod_SOURCES): Likewise.
45205 (vbe_test_mod_CFLAGS): Likewise.
45206
0a74e62f 452072005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45208
0a74e62f 45209 * normal/command.c (grub_command_execute): If INTERACTIVE is
45210 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45211 CMDLINE. Disable the pager if INTERACTIVE is true.
45212 All callers are changed.
45213
45214 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45215 before reading a config file.
45216 * normal/main.c (read_config_file): Even if a command is not
45217 found, register it if it is within an entry.
45218
45219 * util/grub-emu.c: Include sys/types.h and unistd.h.
45220 (options): Added --hold.
45221 (struct arguments): Added a new member "hold".
45222 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45223 missing.
45224 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45225 cleared by a debugger, if it is not zero.
45226
45227 * include/grub/normal.h (grub_command_execute): Add an argument
45228 INTERACTIVE.
45229
e51f85ae 452302005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45231
45232 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45233
e9c6f39b 452342005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45235
45236 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45237 program with another one, because the old one didn't detect a bug
45238 in gcc-3.4. Always use regparm 2, because the new test is still
45239 not enough for gcc-4.0. Someone must investigate a simple test
45240 case which detects a bug in gcc-4.0.
45241
8de3495c 452422005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45243
45244 * DISTLIST: Added normal/completion.c.
45245
45246 * normal/completion.c: New file.
f19dbdb7 45247
8de3495c 45248 * term/i386/pc/console.c (grub_console_getwh): New function.
45249 (grub_console_term): Assign grub_console_getwh to getwh.
45250
45251 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45252 function is defined in normal/completion.c as
45253 grub_normal_do_completion.
45254 (grub_cmdline_get): Use grub_normal_do_completion instead of
45255 grub_tab_complete.
45256
45257 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45258 returns non-zero, otherwise return 0.
45259 (grub_partition_iterate): First, probe the partition map. Then,
45260 call ITERATE only for this partition map.
45261
45262 * kern/misc.c (grub_strncmp): Rewritten.
45263
45264 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45265 returns non-zero. Otherwise return 0.
45266
45267 * include/grub/partition.h (grub_partition_map_iterate): Return
45268 int instead of void.
45269
45270 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45271
45272 * include/grub/misc.h (grub_strncmp): Change the type of N to
45273 grub_size_t.
45274
45275 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45276 of void.
45277
45278 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 45279 unsigned explicitly before comparing it with I.
8de3495c 45280
45281 * kern/main.c (grub_env_write_root): Add the attribute unused into
45282 VAR.
45283
45284 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45285 normal/completion.c.
45286 (normal_mod_SOURCES): Likewise.
45287 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45288 (normal_mod_SOURCES): Likewise.
45289
45290 * normal/command.c (grub_iterate_commands): If ITERATE returns
45291 non-zero, return one immediately.
45292
e85e144b 452932005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45294
45295 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45296 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45297 descriptions.
45298 (grub_vbe_get_controller_info): New function.
45299 (grub_vbe_get_mode_info): Likewise.
45300 (grub_vbe_set_mode): Likewise.
45301 (grub_vbe_get_mode): Likewise.
45302 (grub_vbe_set_memory_window): Likewise.
45303 (grub_vbe_get_memory_window): Likewise.
45304 (grub_vbe_set_scanline_length): Likewise.
45305 (grub_vbe_get_scanline_length): Likewise.
45306 (grub_vbe_set_display_start): Likewise.
45307 (grub_vbe_get_display_start): Likewise.
45308 (grub_vbe_set_palette_data): Likewise.
45309 * include/grub/i386/pc/vbe.h: New file.
45310
c46153d2 453112005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45312
45313 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45314 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45315 * DISTLIST: Likewise.
45316 * kern/ieee1275/of.c: Moved to ...
45317 * kern/ieee1275/ieee1275.c: ... here.
45318
0cb90c45 453192005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45320
45321 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45322 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45323 Pass 0 as `end' parameter to grub_strtoul().
45324
a19fb360 453252005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45326
45327 * include/grub/powerpc/ieee1275/console.h: Do not include
45328 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45329 ifdef.
45330 (grub_console_cur_color): Remove i386-specific prototype.
45331 (grub_console_real_putchar): Likewise.
45332 (grub_console_checkkey): Likewise.
45333 (grub_console_getkey): Likewise.
45334 (grub_console_getxy): Likewise.
45335 (grub_console_gotoxy): Likewise.
45336 (grub_console_cls): Likewise.
45337 (grub_console_setcursor): Likewise.
45338 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45339 Include <grub/machine/console.h>.
45340 * term/ieee1275/ofconsole.c: Likewise.
45341
4ac9bd04 453422005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45343
45344 * Makefile.in (LIBLZO): New variable.
45345
45346 * configure.ac: Check for LZO version 2.
45347
45348 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45349 lzo/lzo1x.h instead of lzo1x.h.
45350
45351 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45352 of -llzo.
45353
45354 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45355 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45356
45357 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45358 copying the data from PARTITION to P.
45359
f4917dfd 453602005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45361
45362 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45363 negative, unload the module.
45364
45365 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45366 map is "pc_partition_map" but not "pc".
45367 (usage): Fix the description. The options are --boot-image and
45368 --core-image but not --boot-file or --core-file.
45369 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45370 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45371 DEFAULT_DIRECTORY.
45372
45373 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45374 --core-file. Specify INSTALL_DEVICE as an argument.
45375
45376 * util/console.c: Include config.h.
45377 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45378 [HAVE_NCURSES_H]: Include ncurses.h.
45379 [HAVE_CURSES_H]: Include curses.h.
45380 [!A_NORMAL] (A_NORMAL): Defined as zero.
45381 [!A_STANDOUT] (A_STANDOUT): Likewise.
45382
45383 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45384 -lncurses.
45385 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45386
45387 * configure.ac: Check for curses libraries and headers.
45388
45389 * Makefile.in (LIBCURSES): New variable.
45390
45391 * genmk.rb (Script::rule): Set the executable bits.
45392
45393 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45394 name of the PC partition map is "pc_partition_map" but not "pc".
45395
0e143073 453962005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45397
45398 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45399 (modules): Likewise.
45400 (usage): Added descriptions for --modules and --grub-probefs.
45401 Handle --modules and --grub-probefs. Save the arguments in MODULES
45402 and GRUB_PROBEFS, respectively.
45403 Auto-detect a filesystem module against GRUBDIR. If the result is
45404 empty and modules are not specified explicitly, abort the
45405 installation. Add the result to MODULES.
45406
45407 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45408 disk/powerpc/ieee1275/ofdisk.c,
45409 include/grub/powerpc/ieee1275/init.h and
45410 term/powerpc/ieee1275/ofconsole.c.
45411 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45412 term/ieee1275/ofconsole.c.
45413
45414 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45415
45416 * COPYING: Upgraded to the latest version. Only the address of the
45417 FSF office has changed.
f19dbdb7 45418
efd6e6d5 454192005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45420
45421 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45422 kern/ieee1275.c with kern/ieee1275/of.c.
45423
45424 * kern/ieee1275.c: Moved to ...
45425 * kern/ieee1275/of.c: ... here.
45426
8ceafda2 454272005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45428
45429 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 45430 readability.
8ceafda2 45431
45432 * config.guess: Updated to the latest version from gnulib.
45433 * config.sub: Likewise.
45434 * install.sh: Likewise.
45435 * mkinstalldirs: Likewise.
45436
45437 * include/grub/console.h: Removed. This file is arch-specific. Do
45438 not put this in include/grub.
45439
45440 * include/grub/i386/pc/console.h: Resurrected.
45441
45442 * util/console.c: Include grub/machine/console.h instead of
45443 grub/console.h.
45444 * util/grub-emu.c: Likewise.
45445
267f6cd9 454462005-08-04 Marco Gerards <metgerards@student.han.nl>
45447
45448 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45449 hardcoded value.
f19dbdb7 45450
267f6cd9 45451 From Vincent Pelletier <subdino2004@yahoo.fr>
45452 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45453 Redefined to use grub_getwh.
45454 (grub_term): New member named getwh.
45455 (grub_getwh): New prototype.
45456 * kern/term.c (grub_getwh): New function.
45457 * term/i386/pc/console.c (grub_console_getwh): New function.
45458 (grub_console_term): New member `getwh'.
45459 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45460 (grub_vga_term): New member `getwh'.
0b5abe02 45461 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 45462 grub_ssize_t.
45463 (grub_ofconsole_getw): New function.
45464 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45465 (grub_ofconsole_term): New field named getwh and new initial
45466 value.
45467
3be7266d 454682005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45469
45470 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45471 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45472 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45473 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45474 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45475 of <grub/machine/ieee1275.h>.
45476 * commands/ieee1275/reboot.c: Likewise.
45477 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45478 * kern/ieee1275.c: ... to here. All users updated. Change all
45479 parameter structs to use new type `grub_ieee1275_cell_t'.
45480 * term/powerpc/ieee1275/ofconsole.c: Move ...
45481 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45482 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45483 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45484 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45485 to return int.
45486 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45487 Remove unused prototypes. All users updated.
45488 * include/grub/powerpc/ieee1275/console.h: Removed.
45489 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45490 `grub_ieee1275_cell_t'.
45491 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45492 Cast comparisons with -1 to the correct type.
45493 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45494 type to match `grub_ieee1275_entry_fn'.
45495
8b5f3938 454962005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45497
45498 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45499
45500 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45501 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45502 partmap/sun.c.
45503 (grub_probefs_SOURCES): New variable.
45504
45505 * util/i386/pc/grub-probefs.c: New file.
45506
45507 * util/i386/pc/grub-setup.c (main): Call
45508 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45509 grub_hfs_init and grub_jfs_init to initialize the system. Call
45510 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45511 grub_pc_partition_map_fini to finish the system.
45512
ea409713 455132005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45514
45515 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45516 function.
45517 (grub_multiboot_load_elf32): Likewise.
45518 (grub_multiboot_is_elf64): Likewise.
45519 (grub_multiboot_load_elf64): Likewise.
45520 (grub_multiboot_load_elf): Likewise.
45521 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45522 an ELF32 or ELF64 file.
45523 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45524
45525 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45526 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45527 NULL before calling FS->LABEL.
45528 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45529 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45530 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45531 before calling FS->LABEL.
45532
141a288b 455332005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45534
45535 * util/i386/pc/grub-install.in (datadir): New variable.
45536 (libdir): Removed.
45537 (pkgdatadir): New variable.
45538 (pkglibdir): Removed.
45539
0d5f8a54 455402005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45541
45542 * DISTLIST: Added util/i386/pc/grub-install.in.
45543
45544 * util/i386/pc/grub-install.in: New file.
45545
45546 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45547 (grub_install_SOURCES): Likewise.
45548
45549 * genmk.rb: Added support for scripts.
45550 (Script): New class.
45551 (scripts): New variable.
45552
45553 * Makefile.in (install-local): Install sbin_SCRIPTS by
45554 INSTALL_SCRIPT.
45555 (uninstall): Remove sbin_SCRIPTS.
45556
45557 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45558 device, try to get a GRUB device by
45559 grub_util_biosdisk_get_grub_dev.
45560 Free DEST_DEV.
45561
45562 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45563 description for --device-map.
45564
5f968e1e 455652005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45566
45567 Change the semantics of variable hooks. They now return strings
45568 instead of error values.
f19dbdb7 45569
5f968e1e 45570 * util/i386/pc/grub-setup.c: Include grub/env.h.
45571 (setup): Use grub_device_set_root instead of grub_env_set.
45572
45573 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45574 grub_env_get instead of grub_device_set_root and
45575 grub_device_get_root, respectively.
45576
45577 * kern/main.c (grub_env_write_root): New function.
45578 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45579 grub_env_set instead of grub_device_set_root.
45580
45581 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45582 many variables.
45583 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45584 rather than calling ENV->WRITE_HOOK afterwards.
45585 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45586 passing a pointer of a pointer.
45587 (grub_register_variable_hook): Change the types of "read_hook" and
45588 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45589 respectively.
45590 Allocate the default empty string on the heap, because this string
45591 may be freed later.
45592
45593 * kern/device.c: Include grub/env.h.
45594 (grub_device_set_root): Removed.
45595 (grub_device_get_root): Likewise.
45596 (grub_device_open): Use grub_env_get instead of
45597 grub_device_get_root.
45598
45599 * include/grub/env.h (grub_env_read_hook_t): New type.
45600 (grub_env_write_hook_t): Likewise.
45601 (grub_env_var): Change the types of "read_hook" and "write_hook"
45602 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45603 (grub_register_variable_hook): Likewise.
45604
45605 * include/grub/device.h (grub_device_set_root): Removed.
45606 (grub_device_set_root): Likewise.
45607
45608 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45609 make sure that DIRNAME terminates with '/', so that
45610 grub_fat_find_dir will fail if PATH is not a directory.
45611
45612 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45613 from DIRNAME.
45614 Use the qualifier auto for print_files and print_files_long.
45615 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45616 as a regular file.
45617 Put a newline only if there is no error.
45618 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45619 used.
45620
896f0afd 456212005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45622
45623 * kern/partition.c (grub_partition_probe): Initialize PART to
45624 NULL. Otherwise, when no partition map is registered, this returns
45625 a garbage.
45626
b28b81b2 456272005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45628
45629 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45630 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45631 valid.
45632
5f3607e0 456332005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45634
45635 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45636 information on each device, if it does not have partitions. Print
45637 "Device" instead of "Disk", because this function is not specific
45638 to disk devices.
45639
45640 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45641 static to ensure that it is put on the memory rather than a
45642 register.
45643
502c87e8 456442005-07-17 Yoshinori Okuji <okuji@enbug.org>
45645
45646 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45647 (grub_cat_init): Likewise.
45648 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45649 (options): Likewise.
45650 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45651 (grub_configfile_init): Likewise.
45652 * font/manager.c (GRUB_MOD_INIT): Likewise.
45653 * commands/help.c (GRUB_MOD_INIT): Likewise.
45654 (grub_help_init): Likewise.
45655 * normal/command.c (grub_command_init): Likewise.
45656 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45657 * disk/loopback.c (grub_loop_init): Likewise.
45658 (GRUB_MOD_INIT): Likewise.
45659 * commands/ls.c (grub_ls_init): Likewise.
45660 (GRUB_MOD_INIT): Likewise.
45661 (options): Likewise.
45662 * commands/boot.c (grub_boot_init): Likewise.
45663 (GRUB_MOD_INIT): Likewise.
45664 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45665 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45666 (GRUB_MOD_INIT): Likewise.
45667 * commands/cmp.c (grub_cmp_init): Likewise.
45668 (GRUB_MOD_INIT): Likewise.
45669
45670 * normal/arg.c: Use <> instead of "" to include header files.
45671 (SHORT_ARG_HELP): New macro.
45672 (SHORT_ARG_USAGE): Likewise.
45673 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45674 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45675 descriptions.
45676 (find_short): Check if C is 'h' or 'u' explicitly.
45677 (grub_arg_show_help): Use space characters instead of tabs. Treat
45678 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45679 are shown with --help and --usage only if they are not used for
45680 the command itself.
45681 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45682 'h' and 'u'.
45683
45684 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45685 const into "longarg". Change the type of "shortarg" to int.
45686
f806d18e 456872005-07-17 Yoshinori Okuji <okuji@enbug.org>
45688
45689 * boot/i386/pc/boot.S (boot_drive_check): New label.
45690
45691 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45692 macro.
45693
45694 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45695 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45696
e293232b 456972005-07-17 Yoshinori Okuji <okuji@enbug.org>
45698
45699 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45700 When turning off Gate A20, skip the check and return immediately,
45701 because this is not fatal usually.
45702
ebedfd00 457032005-07-17 Yoshinori Okuji <okuji@enbug.org>
45704
45705 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45706 be 0x7C00 instead of 0x8000.
45707
45708 * boot/i386/pc/pxeboot.S: Rewritten.
45709
45710 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45711 EXT_C.
45712 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45713 result.
45714
654fc59f 457152005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45716
45717 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45718 robustness. This routine now supports a BIOS call and System
45719 Control Port A to modify the gate A20.
45720
45721 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45722 Increased to 0x440.
45723
09f9923f 457242005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45725
45726 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45727 device path and resulting ihandle.
45728 (grub_ofdisk_close): dprintf the ihandle being closed.
45729 (grub_ofdisk_read): dprintf function parameters.
45730 * kern/mm.c (grub_mm_init_region): Likewise.
45731 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45732 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45733 size, and boot arguments.
45734 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45735 before loading into memory.
45736 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45737 before loading into memory.
45738
7ef504d8 457392005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45740
45741 * kern/mm.c: Added much documentation.
45742 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45743 8, set to 5 instead of 8.
45744
e0f050c2 457452005-07-10 Yoshinori Okuji <okuji@enbug.org>
45746
45747 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45748
45749 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45750 (grub_mkdevicemap_SOURCES): New variable.
45751
45752 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45753 lib/device.c of GRUB Legacy.
45754
7224189a 457552005-07-10 Yoshinori Okuji <okuji@enbug.org>
45756
45757 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45758 instead of PATH is NULL.
45759
68c864eb 457602005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45761
45762 * commands/cmp.c (BUFFER_SIZE): New macro.
45763 (grub_cmd_cmp): Close the right file at the right time. Compare
45764 only data just read. Don't report files of different size as
45765 identical. Dynamically allocate buffers. Move variable
45766 declarations at the beginning of function.
45767
e6f3e614 457682005-07-09 Yoshinori Okuji <okuji@enbug.org>
45769
45770 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45771 reverse.
45772
f8f1559a 457732004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45774
45775 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45776 when backspace is pressed at beginning of line.
45777
39c9d41d 457782005-07-03 Yoshinori Okuji <okuji@enbug.org>
45779
45780 * DISTLIST: Added genfslist.sh.
45781
45782 * normal/main.c (fs_module_list): New variable.
45783 (autoload_fs_module): New function.
45784 (read_fs_list): Likewise.
45785 (grub_normal_execute): Call read_fs_list.
45786
45787 * kern/fs.c (grub_fs_autoload_hook): New variable.
45788 (grub_fs_probe): Added support for auto-loading.
45789
45790 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45791 (grub_fs_module_list_t): New type.
45792
45793 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45794 (grub_fs_autoload_hook): New prototype.
45795
45796 * genfslist.sh: New file.
f19dbdb7 45797
39c9d41d 45798 * genmk.rb: Added a rule to generate a filesystem list.
45799
121c1d83 458002005-06-30 Marco Gerards <metgerards@student.han.nl>
45801
45802 * configure.ac: Fix the test for cross-compiling.
45803
45804 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45805 define GRUB_UTIL anymore.
45806
45807 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45808 so this function works on other systems than just big endian.
45809 (load_modules): Likewise.
45810 (add_segments): Likewise.
45811
e75d76e1 458122005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45813
45814 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45815 contains `l' modifier, get a long from va_arg().
45816
50b5a0a7 458172005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45818
45819 * kern/mm.c (grub_free): If the next free block which is being
45820 merged is the first free block, set the first block to the block
45821 being freed.
45822 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45823
89371b20 458242005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45825
45826 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45827 `grub_ieee1275_chosen'.
45828
168d6e58 458292005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45830
45831 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45832 (grub_ieee1275_chosen): New variable.
45833 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45834 `chosen'.
45835 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45836 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45837 Rename first argument to `phandle' for consistency.
45838 (grub_ieee1275_get_property_length): Likewise.
45839 (grub_ieee1275_next_property): Likewise. Change type of first argument
45840 to grub_ieee1275_phandle_t.
45841 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45842 Move export next to declaration.
45843 (grub_ieee1275_chosen): New variable.
45844 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45845 Correct cosmetic typo.
45846 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45847 `grub_ieee1275_chosen'.
45848 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45849 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45850 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45851 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45852 `grub_ieee1275_chosen'.
45853
ca5baa3f 458542005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45855
45856 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45857 /chosen/bootargs.
45858 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45859 /chosen/bootargs as "variable=value" pairs.
45860
708b345f 458612005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45862
45863 * include/grub/misc.h (grub_dprintf): New macro.
45864 (grub_real_dprintf): New prototype.
45865 (grub_strword): Likewise.
45866 (grub_iswordseparator): Likewise.
45867 * kern/misc.c (grub_real_dprintf): New function.
45868 (grub_strword): Likewise.
45869 (grub_iswordseparator): Likewise.
45870
f4c5e67c 458712005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45872
45873 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45874 (roundup): Remove macro.
45875 (grub_ieee1275_flags): Make static.
45876 (grub_ieee1275_realmode): Remove.
45877 (grub_ieee1275_test_flag): New function.
45878 (grub_ieee1275_set_flag): Likewise.
45879 (find_options): Rename to `grub_ieee1275_find_options'; update
45880 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45881 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45882 (cmain): New prototype.
45883 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45884 `grub_ieee1275_flags' directly.
45885 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45886 machine/biosdisk.h.
45887 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45888 Don't include grub/machine/init.h.
45889 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45890 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45891 Remove prototype.
45892 (grub_ieee1275_realmode): Likewise.
45893 (grub_ieee1275_flag): New enum.
45894 (grub_ieee1275_test_flag): New prototype.
45895 (grub_ieee1275_set_flag): New prototype.
45896 * include/grub/powerpc/ieee1275/init.h: Remove file.
45897 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45898 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45899 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45900 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45901 comment.
45902 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45903 `grub_ieee1275_test_flag'.
45904 (grub_ieee1275_encode_devname): Likewise.
45905
ed16607e 459062005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45907
45908 * include/grub/powerpc/ieee1275/ieee1275.h
45909 (grub_ieee1275_encode_devname): New prototype.
45910 (grub_ieee1275_get_filename): Likewise.
45911 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45912 function.
45913 (grub_set_prefix): Likewise.
45914 (grub_machine_init): Call grub_set_prefix.
45915 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45916 (grub_parse_type): New enum.
45917 (grub_ieee1275_get_devargs): New function.
45918 (grub_ieee1275_get_devname): Likewise.
45919 (grub_ieee1275_parse_args): Likewise.
45920 (grub_ieee1275_get_filename): Likewise.
45921 (grub_ieee1275_encode_devname): Likewise.
45922
be369920 459232005-03-30 Marco Gerards <metgerards@student.han.nl>
45924
45925 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45926 `grub_loader_unset'.
45927
a5ce3a4a 459282005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45929
45930 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45931 instead of grub_ieee1275_interpret.
45932 (grub_halt_init): New function.
45933 (grub_halt_fini): Likewise.
45934 (GRUB_MOD_INIT): Correct message grammar.
45935 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45936 instead of grub_ieee1275_interpret.
45937 (grub_reboot_init): New function.
45938 (grub_reboot_fini): Likewise.
45939 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45940 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45941 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45942 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45943 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45944 function.
45945 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45946 Add prototype.
45947 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45948 prototype.
45949 (grub_halt): Likewise.
45950 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45951 (cmain): Remove __attribute__((unused)).
45952 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45953 (grub_heap_len): Likewise.
45954 (grub_machine_fini): New function.
45955 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45956 (grub_halt): Likewise.
45957 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45958 function.
45959 * util/powerpc/ieee1275/misc.c: New file.
45960
0058f771 459612005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45962
45963 * DISTLIST: New file.
45964 * gendistlist.sh: Likewise.
f19dbdb7 45965
0058f771 45966 * Makefile.in (COMMON_DISTFILES): Removed.
45967 (BOOT_DISTFILES): Likewise.
45968 (CONF_DISTFILES): Likewise.
45969 (DISK_DISTFILES): Likewise.
45970 (FS_DISTFILES): Likewise.
45971 (INCLUDE_DISTFILES): Likewise.
45972 (KERN_DISTFILES): Likewise.
45973 (LOADER_DISTFILES): Likewise.
45974 (TERM_DISTFILES): Likewise.
45975 (UTIL_DISTFILES): Likewise.
45976 (DISTFILES): Likewise.
45977 (uninstall): Uninstall files in $(pkgdata_DATA).
45978 (DISTLIST): New target.
45979 (distdir): Use the contents of the file DISTLIST to get a list of
45980 distributed files.
45981
46b3b8a5 459822005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45983
45984 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45985 descriptor. This is ported from GRUB Legacy.
45986
45987 * gencmdlist.sh: Added an extra semicolon to make it work with
45988 old sed versions. Reported by Robert Bihlmeyer
45989 <robbe@orcus.priv.at>.
45990
5822ff87 459912005-03-08 Yoshinori Okuji <okuji@enbug.org>
45992
45993 Automatic loading of commands is supported.
f19dbdb7 45994
5822ff87 45995 * normal/main.c (read_command_list): New function.
45996 (grub_normal_execute): Call read_command_list.
45997
45998 * normal/command.c (grub_register_command): Return zero or CMD.
45999 Allocate CMD->NAME from the heap.
46000 Initialize CMD->MODULE_NAME to zero.
46001 Find the same name as well. If the same command is found and it is
46002 a dummy command, overwrite members. If it is not a dummy command,
46003 return zero.
46004 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
46005 (grub_command_find): If a dummy command is found, load a module
46006 and retry to find a command only once.
46007
46008 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
46009 make sure that each command is loaded.
46010
46011 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
46012 macro.
46013 (struct grub_command): Remove const from the member `name'.
46014 Add a new member `module_name'.
46015 (grub_register_command): Return grub_command_t.
46016
46017 * commands/help.c (grub_cmd_help): Call grub_command_find to make
46018 sure that each command is loaded.
46019
46020 * genmk.rb (PModule::rule): Specify a module name without the
46021 suffix ".mod" to gencmdlist.sh.
46022
7b1f4b57 460232005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46024
46025 * gencmdlist.sh: New file.
f19dbdb7 46026
7b1f4b57 46027 * genmk.rb (PModule::rule): Generate a rule for a command list.
46028 Clean command.lst.
46029 Generate command.lst from $(COMMANDFILES).
46030
46031 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
46032 (DATA): Added $(pkgdata_DATA).
46033 (install-local): Install files in $(pkgdata_DATA).
46034
062aaf39 460352005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46036
46037 * term/i386/pc/vga.c (debug_command): Removed.
46038 (GRUB_MOD_INIT): Do not register the command "debug".
46039
46040 From Hollis Blanchard:
46041 * commands/configfile.c: New file.
46042 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46043 commands/configfile.c.
46044 (pkgdata_MODULES): Added configfile.mod.
46045 (configfile_mod_SOURCES): New variable.
46046 (configfile_mod_CFLAGS): Likewise.
46047 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46048 commands/configfile.c.
46049 (pkgdata_MODULES): Added configfile.mod.
46050 (configfile_mod_SOURCES): New variable.
46051 (configfile_mod_CFLAGS): Likewise.
46052 * util/grub-emu.c (main): Call grub_configfile_init and
46053 grub_configfile_fini.
46054 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
46055 prototype.
46056 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 46057
cee01aa6 460582005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46059
46060 * normal/arg.c (grub_arg_show_help): Do not show the bug report
46061 address.
46062
46063 * commands/help.c (grub_cmd_help): Do not print newlines after
46064 the last command in print_command_help.
46065
93f3a1d8 460662005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46067
46068 * commands/default.h: New file.
46069 * commands/timeout.h: Likewise.
46070 * normal/context.c: Likewise.
f19dbdb7 46071
93f3a1d8 46072 * util/misc.c: Do not include sys/times.h.
46073 Include sys/time.h and grub/machine/time.h.
46074 (grub_get_rtc): Rewritten with gettimeofday.
46075
46076 * util/grub-emu.c (main): Call grub_default_init and
46077 grub_timeout_init before grub_normal_init, and call
46078 grub_timeout_fini and grub_default_fini after grub_main.
46079
46080 * util/console.c (grub_ncurses_checkkey): Return the read
46081 character or -1.
46082
46083 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
46084 timeouts.
46085
46086 * normal/main.c (read_config_file): Push MENU. If this fails,
46087 print an error and wait for a user input.
46088 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46089 If a menu is empty or an error occurs, pop MENU.
46090 (grub_normal_execute): Pop and free MENU after grub_menu_run
46091 returns.
46092
46093 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46094
46095 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46096 include time.h.
46097 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46098 without GRUB_UTIL.
46099 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46100 time.h.
46101 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46102 without GRUB_UTIL.
46103
46104 * include/grub/normal.h (struct grub_menu_list): New struct.
46105 (grub_menu_list_t): New type.
46106 (struct grub_context): New struct.
46107 (grub_context_t): New type.
46108 (grub_register_command): Got rid of EXPORT_FUNC.
46109 (grub_unregister_command): Likewise.
46110 (grub_context_get): New prototype.
46111 (grub_context_get_current_menu): Likewise.
46112 (grub_context_push_menu): Likewise.
46113 (grub_context_pop_menu): Likewise.
46114 [GRUB_UTIL] (grub_default_init): Likewise.
46115 [GRUB_UTIL] (grub_default_fini): Likewise.
46116 [GRUB_UTIL] (grub_timeout_init): Likewise.
46117 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46118
46119 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46120 commands/timeout.c and normal/context.c.
46121 (pkgdata_MODULES): Added default.mod and timeout.mod.
46122 (normal_mod_SOURCES): Added normal/context.c.
46123 (default_mod_SOURCES): New variable.
46124 (default_mod_CFLAGS): Likewise.
46125 (timeout_mod_SOURCES): Likewise.
46126 (timeout_mod_CFLAGS): Likewise.
46127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46128 conf/i386-pc.rmk.
46129 (pkgdata_MODULES): Added default.mod and timeout.mod.
46130 (normal_mod_SOURCES): Added normal/context.c.
46131 (default_mod_SOURCES): New variable.
46132 (default_mod_CFLAGS): Likewise.
46133 (timeout_mod_SOURCES): Likewise.
46134 (timeout_mod_CFLAGS): Likewise.
46135
46136 * Makefile.in (all-local): Added $(MKFILES).
46137
4ed2e1dd 461382005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46139
46140 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46141 (grub_emu_SOURCES): Likewise.
46142 (pkgdata_MODULES): Add `sun.mod'.
46143 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46145 `partmap/sun.c'.
46146 (pkgdata_MODULES): Add `sun.mod'.
46147 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46148 * include/grub/partition.h (grub_sun_partition_map_init): New
46149 prototype.
46150 (grub_sun_partition_map_fini): Likewise.
46151 * partmap/sun.c: New file.
46152 * util/grub-emu.c (main): Initialize and de-initialize the sun
46153 partitionmap support.
46154
4d4e372e 461552005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46156
46157 This implements an Emacs-like menu entry editor.
f19dbdb7 46158
4d4e372e 46159 * normal/menu_entry.c: New file.
f19dbdb7 46160
4d4e372e 46161 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46162 characters to ASCII.
46163 (saved_char): New variable.
46164 (grub_ncurses_checkkey): Rewritten completely.
46165 (grub_ncurses_getkey): Likewise.
46166 (grub_ncurses_init): Call raw instead of cbreak.
46167
46168 * normal/menu.c (print_entry): Do not put a space.
46169 (init_page): Renamed to ...
46170 (grub_menu_init_page): ... this. All callers changed.
46171 (edit_menu_entry): Removed.
46172 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46173
46174 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46175
46176 * kern/misc.c (grub_vprintf): Call grub_refresh.
46177
46178 * normal/menu.c (DISP_LEFT): Renamed to ...
46179 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46180 * normal/menu.c (DISP_UP): Renamed to ...
46181 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46182 * normal/menu.c (DISP_RIGHT): Renamed to ...
46183 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46184 * normal/menu.c (DISP_DOWN): Renamed to ...
46185 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46186 * normal/menu.c (DISP_HLINE): Renamed to ...
46187 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46188 * normal/menu.c (DISP_VLINE): Renamed to ...
46189 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46190 * normal/menu.c (DISP_UL): Renamed to ...
46191 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46192 * normal/menu.c (DISP_UR): Renamed to ...
46193 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46194 * normal/menu.c (DISP_LL): Renamed to ...
46195 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46196 * normal/menu.c (DISP_LR): Renamed to ...
46197 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46198 * normal/menu.c (TERM_WIDTH): Renamed to ...
46199 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46200 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46201 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46202 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46203 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46204 * normal/menu.c (TERM_MARGIN): Renamed to ...
46205 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46206 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46207 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46208 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46209 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46210 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46211 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46212 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46213 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46214 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46215 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46216 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46217 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46218 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46219 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46220 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46221 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46222 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46223 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46224 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46225 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46226 All callers changed.
46227
46228 * include/grub/normal.h: New prototype.
46229
46230 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46231 normal/menu_entry.c.
46232 (normal_mod_SOURCES): Likewise.
46233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46234 (normal_mod_SOURCES): Likewise.
46235
e6b92c8a 462362005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46237
46238 * include/grub/normal.h (grub_halt_init): New prototype.
46239 (grub_halt_fini): Likewise.
46240 (grub_reboot_init): Likewise.
46241 (grub_reboot_fini): Likewise.
46242
46243 * util/grub-emu.c: Include signal.h.
46244 (main_env): New global variable.
46245 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46246 catch C-c.
46247 (grub_machine_fini): New function.
46248 (main): Call grub_halt_init and grub_reboot_init before
46249 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46250 Call setjmp with MAIN_ENV to go back afterwards.
46251 Call grub_machine_fini right before return.
46252
46253 * include/grub/util/misc.h: Include setjmp.h.
46254 (main_env): New prototype.
46255
46256 * include/grub/kernel.h (grub_machine_fini): New prototype.
46257 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46258 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46259
46260 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46261 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46262 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 46263
e6b92c8a 46264 * util/i386/pc/misc.c: New file.
f19dbdb7 46265
e6b92c8a 46266 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46267 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46268 commands/i386/pc/reboot.c.
46269
c642636f 462702005-02-14 Guillem Jover <guillem@hadrons.org>
46271
46272 * include/grub/dl.h (grub_dl_check_header): New prototype.
46273 (grub_arch_dl_check_header): Change return type to grub_err_t,
46274 remove size parameter and export function. Update all callers.
46275 * kern/dl.c (grub_dl_check_header): New function.
46276 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46277 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46278 are inside the core.
46279 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46280 independent ELF header checks.
46281 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46282 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46283 `grub_dl_check_header' instead of explicit checks. Check for the
46284 ELF type.
46285 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46286 `grub_dl_check_header' instead of explicit checks. Remove arch
46287 specific ELF header checks.
46288
e6b92c8a 46289 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46290 argument SIZE.
46291
5eabe94b 462922005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46293
46294 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46295 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46296
1b14a681 462972005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46298
46299 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 46300 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 46301 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 46302 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 46303 * partmap/amiga.c (amiga_partition_map_iterate): Return
46304 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46305 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46306
aca108aa 463072005-02-01 Guillem Jover <guillem@hadrons.org>
46308
46309 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46310 help info.
46311
c9f9c556 463122005-01-31 Marco Gerards <metgerards@student.han.nl>
46313
46314 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46315 Removed prototype.
46316 (grub_rescue_cmd_linux): New prototype.
46317 (grub_rescue_cmd_initrd): Likewise.
46318 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46319 `bi_rec'.
46320 (grub_linux_release_mem): Release the memory for the initrd.
46321 (grub_load_linux): Renamed from this...
46322 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46323 Changed `entry' not to be static. Loop over memory regions to
46324 find another one when the default fails.
46325 (grub_rescue_cmd_initrd): New function.
46326 (grub_linux_init): Remove function.
46327 (grub_linux_fini): Likewise.
46328 (GRUB_MOD_INIT): Register `initrd'.
46329 (GRUB_MOD_FINI): Unregister `initrd'.
46330 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46331 Function removed.
46332 (grub_linux_normal_fini): Likewise.
46333 (GRUB_MOD_INIT): Register `initrd'.
46334 (GRUB_MOD_FINI): Unregister `initrd'.
46335
990cf3aa 463362005-01-31 Marco Gerards <metgerards@student.han.nl>
46337
46338 * commands/help.c: New file.
46339 * normal/arg.c (show_help): Renamed to...
46340 (grub_arg_show_help): ... this.
46341 * commands/i386/pc/halt.c: New file.
46342 * commands/i386/pc/reboot.c: Likewise.
46343 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46344 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46345 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46346 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46347 variables.
46348 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46349 `commands/help.c'.
46350 (pkgdata_MODULES): Add `help.mod'.
46351 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46352 * grub/i386/pc/init.h (grub_reboot): New prototype.
46353 (grub_halt): Likewise.
46354 * include/grub/normal.h (grub_arg_show_help): New prototype.
46355 (grub_help_init): Likewise.
46356 (grub_help_fini): Likewise.
46357 * util/grub-emu.c (main): Initialize and deinitialize the help
46358 command.
46359
46360 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46361
46362 * normal/command.c (grub_command_init): Fixed the description of
46363 the `set' and `unset' commands.
46364
463652005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 46366
46367 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46368 function.
46369 * commands/ieee1275/halt.c: New file.
46370 * commands/ieee1275/reboot.c: Likewise.
46371 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46372 `__attribute__ ((unused))'. Some GCS related fixed.
46373 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46374 (grub_suspend_fini): Likewise.
46375 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46376 and `halt.mod'.
46377 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46378 (halt_mod_CFLAGS): New variables.
46379 * include/grub/powerpc/ieee1275/ieee1275.h
46380 (grub_ieee1275_interpret): New prototype.
46381
1ab09cc7 463822005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46383
46384 * include/grub/misc.h (memmove): New prototype.
46385 (memcpy): Likewise.
46386
8b8cbdb2 463872005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46388
46389 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46390 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46391
e3741a27 463922005-01-22 Marco Gerards <metgerards@student.han.nl>
46393
46394 * kern/misc.c (grub_strndup): Function rewritten.
46395
776bd780 463962005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46397
46398 * normal/menu.c (TERM_WIDTH): Macro redefined.
46399 (TERM_TOP_BORDER_Y): Likewise.
46400 (draw_border): Replaced while-loop by a for-loop. Make the number
46401 of lines consistent with the number of lines displayed in
46402 print_entries. Added a margin below the rectangle.
46403 (print_entry): Make the entry fit in the rectangle.
46404 (print_entries): Display the scroll arrows next to the right
46405 border.
46406
78026bce 464072005-01-21 Marco Gerards <metgerards@student.han.nl>
46408
46409 * fs/minix.c (grub_minix_find_file): Reserve more space for
46410 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46411 `grub_strncpy' to copy `path' into it.
46412
67bbaf0f 464132005-01-21 Marco Gerards <metgerards@student.han.nl>
46414
46415 Add the loopback device, a device via which files can be accessed
46416 as devices.
f19dbdb7 46417
67bbaf0f 46418 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46419 (pkgdata_MODULES): Add loopback.mod.
46420 (loopback_mod_SOURCES): New variable.
46421 (loopback_mod_CFLAGS): Likewise.
46422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46423 `disk/loopback.c'.
46424 (pkgdata_MODULES): Add loopback.mod.
46425 (loopback_mod_SOURCES): New variable.
46426 (loopback_mod_CFLAGS): Likewise.
46427 * disk/loopback.c: new file.
46428 * include/grub/normal.h (grub_loop_init): New prototype.
46429 (grub_loop_fini): New prototype.
46430 * util/grub-emu.c (main): Initialize and de-initialize loopback
46431 support.
46432 * include/grub/disk.h (grub_disk_dev_id): Add
46433 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46434
6f1c18bd 464352005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46436
46437 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46438 function.
46439 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46440 (suspend_mod_SOURCES): New variable.
46441 (suspend_mod_CFLAGS): Likewise.
46442 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46443 New prototype.
46444 * commands/ieee1275/suspend.c: New file.
46445
b38551da 464462005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46447
46448 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 46449 ((unused))' to `__attribute__ ((used))'.
b38551da 46450 (GRUB_MOD_FINI): Likewise.
46451 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46452 * genmk.rb (PModule): Assign space to common symbols when linking
46453 modules.
46454
777aff39 464552005-01-20 Marco Gerards <metgerards@student.han.nl>
46456
46457 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46458 `unsigned' arguments to `grub_size_t'.
46459 (grub_malloc): Likewise.
46460 (grub_realloc): Likewise.
46461 (grub_memalign): Likewise.
46462 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46463 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46464 * util/misc.c (grub_malloc): Likewise.
46465 (grub_realloc): Likewise.
46466 * kern/mm.c (get_header_from_pointer): Change the casts to
46467 `unsigned' into a cast to `grub_size_t'.
46468
46469 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46470 point to `currnode' when `currnode' is changed.
46471
46472 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46473 Schottelius <nico-linux@schottelius.org>.
46474
d0ff18e1 464752005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46476
46477 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46478 (note_path): Remove variable.
46479 (GRUB_IEEE1275_NOTE_NAME): New macro.
46480 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46481 (grub_ieee1275_note_hdr): New structure.
46482 (grub_ieee1275_note_desc): Likewise.
46483 (grub_ieee1275_note): Likewise.
46484 (load_note): Remove `dir' argument. All callers updated. Remove
46485 `note_img' and `path'. Do not load a file from `note_path'.
46486 Initialize a struct grub_ieee1275_note and write that to `out'.
46487 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46488
4ca7004c 464892005-01-05 Marco Gerards <metgerards@student.han.nl>
46490
46491 * util/misc.c (grub_util_read_image): Revert last change. It
46492 called `grub_util_read_at', which seeks from the beginning of the
46493 file.
46494
0b412211 464952005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46496
46497 * TODO: Add note about endianness in grub-mkimage.
46498 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46499 section.
46500 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46501 (grub_mkimage_SOURCES): New target.
46502 * include/grub/kernel.h (grub_start_addr): Remove variable.
46503 (grub_end_addr): Likewise.
46504 (grub_total_module_size): Likewise.
46505 (grub_kernel_image_size): Likewise.
46506 (GRUB_MODULE_MAGIC): New constant.
46507 (grub_module_info): New structure.
46508 (grub_arch_modules_addr): New prototype.
46509 (grub_get_end_addr): Remove prototype.
46510 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46511 * include/grub/powerpc/ieee1275/kernel.h: New file.
46512 * include/grub/util/misc.h (grub_util_get_fp_size): New
46513 prototype.
46514 (grub_util_read_at): Likewise.
46515 (grub_util_write_image_at): Likewise.
46516 * kern/main.c (grub_get_end_addr): Remove function.
46517 (grub_load_modules): Call grub_arch_modules_addr instead of using
46518 grub_end_addr. Look for a grub_module_info struct in memory. Use
46519 the grub_module_info fields instead of calling grub_get_end_addr
46520 as loop conditions. Move grub_add_unused_region code here.
46521 (grub_add_unused_region): Remove function.
46522 * kern/i386/pc/init.c: Include grub/cache.h.
46523 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46524 one call to add_mem_region.
46525 (grub_arch_modules_addr): New function.
46526 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46527 (grub_total_module_size): Likewise.
46528 Include grub/machine/kernel.h.
46529 (grub_arch_modules_addr): New function.
46530 * util/grub-emu.c (grub_end_addr): Remove variable.
46531 (grub_total_module_size): Likewise.
46532 (grub_arch_modules_addr): New function.
46533 * util/misc.c: Include unistd.h.
46534 (grub_util_get_fp_size): New function.
46535 (grub_util_read_at): Likewise.
46536 (grub_util_write_image_at): Likewise.
46537 (grub_util_read_image): Call grub_util_read_at.
46538 (grub_util_write_image): Call grub_util_write_image_at.
46539 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46540 additional memory in kernel_img for a struct grub_module_info.
46541 Fill in that grub_module_info.
46542 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46543
458786f8 465442005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46545
46546 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46547 New function.
46548 * include/grub/powerpc/ieee1275/ieee1275.h
46549 (grub_ieee1275_milliseconds): New prototype.
46550 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46551 Change to 1000.
46552 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46553 grub_ieee1275_milliseconds.
46554
ac507d1b 465552005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46556
46557 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46558 variable.
46559 (find_options): New function.
46560 (cmain): Call find_options.
46561 * include/grub/powerpc/ieee1275/ieee1275.h
46562 (grub_ieee1275_realmode): New extern variable.
46563 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46564 grub_map if grub_ieee1275_realmode is false.
46565
6b8fd1c4 465662004-12-29 Marco Gerards <metgerards@student.han.nl>
46567
46568 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46569 lines are inserted and make it work like readline. Reported by
46570 Vincent Pelletier <subdino2004@yahoo.fr>.
46571
8514a1e0 465722004-12-28 Marco Gerards <metgerards@student.han.nl>
46573
46574 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46575
46576 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46577 `kern/powerpc/cache.S'.
46578
924b6140 465792004-12-27 Marco Gerards <metgerards@student.han.nl>
46580
46581 * genmk.rb: Handle the `Program' class in the main loop. Written
46582 by Johan Rydberg <jrydberg@gnu.org>.
46583 (Program): New class.
46584 (programs): New variable.
46585 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46586 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46587 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46588 (help_arch): Function removed.
46589 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46590 `powerpc/libgcc.h' and `loader.h'.
46591 (pkgdata_PROGRAMS): New variable.
46592 (sbin_UTILITIES): Variable removed.
46593 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46594 (grubof_SOURCES): Variable re-defined so it only includes the
46595 core functionality.
46596 (grubof_CFLAGS): Remove `-DGRUBOF'.
46597 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46598 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46599 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46600 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46601 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46602 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46603 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46604 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46605 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46606 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46607 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46608 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46609 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46610 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46611 (pc_mod_CFLAGS): New variables.
46612 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46613 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46614 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46615 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46616 Moved from here...
46617 * include/grub/i386/pc/init.h (grub_os_area_addr)
46618 (rub_os_area_size): ... to here.
46619 * include/grub/powerpc/ieee1275/ieee1275.h
46620 (grub_ieee1275_entry_fn): Export symbol.
46621 * include/grub/powerpc/ieee1275/init.h: New file.
46622 * include/grub/powerpc/libgcc.h: Likewise.
46623 * include/grub/cache.h: Likewise.
46624 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46625 <hollis@penguinppc.org>.
46626 * kern/dl.c: Include <grub/cache.h>.
46627 (grub_dl_flush_cache): New function.
46628 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46629 for this module.
46630 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46631 (grub_console_init): Removed prototypes.
46632 (grub_machine_init): Don't initialize the modules anymore.
46633 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46634 static.
46635 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46636 Macro undef removed.
46637 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46638 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46639 relocation `R_PPC_REL32'. Return an error when the relocation is
46640 unknown.
46641 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46642 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46643 * util/misc.c (grub_arch_sync_caches): Likewise.
46644
e4b47e0c 466452004-12-19 Marco Gerards <metgerards@student.han.nl>
46646
46647 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46648 `symlist.c', add `grubof_symlist.c'.
46649 (symlist.c): Variable removed.
46650 (grubof_HEADERS): Variable added.
46651 (grubof_symlist.c): New target.
46652 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46653 `kernel_img_HEADERS'.
46654 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46655 * kern/powerpc/dl.c: New file.
46656 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46657 Function removed.
46658 (grub_arch_dl_relocate_symbols): Likewise.
46659 (grub_register_exported_symbols): Likewise.
46660
4ceb3636 466612004-12-13 Marco Gerards <metgerards@student.han.nl>
46662
46663 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46664 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46665 to fail instead. Reported by Vincent Pelletier
46666 <subdino2004@yahoo.fr>.
46667
46668 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46669 it is not allocated. Reported by Vincent Pelletier
46670 <subdino2004@yahoo.fr>.
46671
46672 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46673 output so the output looks better.
f19dbdb7 46674
3f1578fe 466752004-12-04 Marco Gerards <metgerards@student.han.nl>
46676
46677 Modulize the partition map support and add support for the amiga
46678 partition map.
f19dbdb7 46679
3f1578fe 46680 * commands/ls.c: Include <grub/partition.h> instead of
46681 <grub/machine/partition.h>.
46682 * kern/disk.c: Likewise.
46683 * kern/rescue.c: Likewise.
46684 * loader/i386/pc/chainloader.c: Likewise.
46685 * normal/cmdline.c: Likewise.
46686 * kern/powerpc/ieee1275/init.c: Likewise.
46687 (grub_machine_init): Call `grub_pc_partition_map_init',
46688 `grub_amiga_partition_map_init' and
46689 `grub_apple_partition_map_init'.
46690 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46691 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46692 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46693 `partition.h' and `pc_partition.h'.
46694 (grub_setup_SOURCES): Remove
46695 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46696 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46697 (grub_emu_SOURCES): Likewise.
46698 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46699 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46700 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46702 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46703 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46704 (grubof_SOURCES): Likewise.
46705 * disk/i386/pc/partition.c: File removed.
46706 * disk/powerpc/ieee1275/partition.c: Likewise.
46707 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46708 * include/grub/i386/pc/partition.h: Likewise.
46709 * kern/partition.c: New file.
46710 * partmap/amiga.c: Likewise.
46711 * partmap/apple.c: Likewise.
46712 * partmap/pc.c: Likewise.
46713 * include/grub/partition.h: Likewise..
46714 * include/grub/pc_partition.h: Likewise.
46715 * util/grub-emu.c: Include <grub/partition.h> instead of
46716 <grub/machine/partition.h>.
46717 (main): Call `grub_pc_partition_map_init',
46718 `grub_amiga_partition_map_init' and
46719 `grub_apple_partition_map_init' and deinitialize afterwards.
46720 * util/i386/pc/biosdisk.c: Include `#include
46721 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46722 `<grub/machine/partition.h>'.
46723 * util/i386/pc/grub-setup.c: Likewise.
46724 * util/i386/pc/biosdisk.c: Likewise.
46725 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46726 partition information in case of a PC partition.
46727 * util/i386/pc/grub-setup.c: Include `#include
46728 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46729 `<grub/machine/partition.h>'.
46730 (setup): Only access the PC specific partition information in case
46731 of a PC partition.
46732
0ef4ced9 467332004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 46734
0ef4ced9 46735 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46736 (grub_longjmp): Likewise.
46737 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46738 20.
46739 * normal/powerpc/setjmp.S: New file.
46740 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46741 `normal/powerpc/setjmp.S'.
46742 (grubof_CFLAGS): Add `-DGRUBOF'.
46743 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46744 [GRUB_UTIL && !GRUBOF].
f19dbdb7 46745
19950e29 467462004-11-16 Marco Gerards <metgerards@student.han.nl>
46747
46748 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46749 property named `name'. Correctly handle the error returned by
46750 `grub_ieee1275_finddevice' if a device can not be opened.
46751
a2fea427 467522004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46753
46754 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46755 `actual' for negativity.
46756 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46757 kern/fshelp.c.
46758
41ea0ea3 467592004-11-01 Marco Gerards <metgerards@student.han.nl>
46760
46761 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46762 (PAGE_OFFSET): New macro.
46763 (CRTC_ADDR_PORT): Likewise.
46764 (CRTC_DATA_PORT): Likewise.
46765 (START_ADDR_HIGH_REGISTER): Likewise.
46766 (START_ADDR_LOW_REGISTER): Likewise.
46767 (GRAPHICS_ADDR_PORT): Likewise.
46768 (GRAPHICS_DATA_PORT): Likewise.
46769 (READ_MAP_REGISTER): Likewise.
46770 (INPUT_STATUS1_REGISTER): Likewise.
46771 (INPUT_STATUS1_VERTR_BIT): Likewise.
46772 (page): New variable.
46773 (wait_vretrace): New function.
46774 (set_read_map): Likewise.
46775 (set_start_address): Likewise.
46776 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46777 the right page.
46778 (check_vga_mem): Take the page into account.
46779 (write_char): Likewise.
46780 (write_cursor): Likewise.
46781 (scroll_up): Likewise. Copy the page to the page that is not
46782 shown and switch between both pages.
46783 (grub_vga_putchar): Fix off by one error.
46784 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46785 account.
46786
ad0bd20b 467872004-11-01 Marco Gerards <metgerards@student.han.nl>
46788
46789 Add support for iso9660 (including rockridge).
f19dbdb7 46790
ad0bd20b 46791 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46792 (iso9660_mod_SOURCES): New variable.
46793 (iso9660_mod_CFLAGS): Likewise.
46794 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46795 * include/grub/fs.h (grub_iso9660_init): New prototype.
46796 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46797 * fs/iso9660.c: New file.
46798
46799 * include/grub/misc.h (grub_strncat): New prototype.
46800 * kern/misc.c (grub_strncat): New function.
f19dbdb7 46801
ad0bd20b 46802 * fs/hfs.c (grub_hfs_mount): Translate the error
46803 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46804 * fs/jfs.c (grub_jfs_mount): Likewise.
46805 * fs/ufs.c (grub_ufs_mount): Likewise.
46806
a5477a59 468072004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46808
46809 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46810 which initialized BAT registers.
46811 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46812 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46813 Move from here...
46814 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46815 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46816 ... to here.
46817 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46818 (grub_mapclaim): Likewise.
46819 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46820 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46821 hand.
46822
9304c1f8 468232004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46824
46825 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46826 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46827 -ffreestanding and -msoft-float.
46828
86f4ae25 468292004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46830
46831 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46832 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46833 set in grub_ieee1275_flags.
46834
38912228 468352004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46836
46837 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46838 prototype.
46839 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46840 grub_console_init first.
46841 Change the memory range used for grub_ieee1275_claim and
46842 grub_mm_init_region.
46843 Print an error message if the claim fails.
46844 Include <grub/misc.h>.
46845
d1923dc8 468462004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46847
46848 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46849 Call grub_children_iterate for device nodes of type `scsi',
46850 `ide', or `ata'.
46851 (grub_ofdisk_open): Remove manual device alias resolution.
46852 Fix memory leak when device cannot be opened.
f19dbdb7 46853 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 46854 (grub_children_iterate): New prototype.
46855 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46856 New function.
46857 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46858 Return -1 if args.size was -1.
46859
4512e4f3 468602004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46861
46862 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46863 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46864 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46865 Open Firmware's memory for it; claim memory from _start to _end.
46866 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46867 (_end): New extern.
46868 (_start): Zero BSS from __bss_start to _end.
46869 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46870 New extern.
46871 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46872
4d61feb0 468732004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46874
ad0bd20b 46875 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46876 -1 if args.base was -1.
4d61feb0 46877
026fa2f9 468782004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46879
46880 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46881 escape sequence instead of a literal ^L. Also call
46882 grub_ofconsole_gotoxy.
46883
9f2220ef 468842004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46885
46886 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46887 void * arguments to grub_addr_t. All callers updated. Also make
46888 the `result' argument optional.
46889 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46890 All callers updated.
46891
8a572cd7 468922004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46893
46894 * commands/ls.c (grub_ls_list_files): Use the string following the
46895 initial ')', if present, as the filesystem path.
46896 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46897
46898 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46899
18aa81f2 469002004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46901
46902 Make the source code of the menu interface more readable.
f19dbdb7 46903
18aa81f2 46904 * normal/menu.c: Include grub/mm.h.
46905 (TERM_WIDTH): New macro.
46906 (TERM_HEIGHT): Likewise.
46907 (TERM_INFO_HEIGHT): Likewise.
46908 (TERM_MARGIN): Likewise.
46909 (TERM_SCROLL_WIDTH): Likewise.
46910 (TERM_TOP_BORDER_Y): Likewise.
46911 (TERM_LEFT_BORDER_X): Likewise.
46912 (TERM_BORDER_WIDTH): Likewise.
46913 (TERM_MESSAGE_HEIGHT): Likewise.
46914 (TERM_BORDER_HEIGHT): Likewise.
46915 (TERM_NUM_ENTRIES): Likewise.
46916 (TERM_FIRST_ENTRY_Y): Likewise.
46917 (TERM_ENTRY_WIDTH): Likewise.
46918 (TERM_CURSOR_X): Likewise.
46919 (draw_border): Use macros instead of magic numbers.
46920 (print_entry): Likewise.
46921 (print_entries): Likewise.
46922 (run_menu): Likewise. Also, handle the key 'e'.
46923 (run_menu_entry): Ignore empty command lines.
46924 (print_message): Added a new argument EDIT. If EDIT is true,
46925 print a different message.
46926 (init_page): Likewise.
46927 (edit_menu_entry): New function. Not implemented yet.
46928
b47efe30 469292004-09-17 Marco Gerards <metgerards@student.han.nl>
46930
46931 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46932 can be loaded from normal mode.
f19dbdb7 46933
b47efe30 46934 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46935 `multiboot.mod'.
46936 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46937 (multiboot_mod_CFLAGS): New variables.
46938 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 46939 * loader/i386/pc/multiboot_normal.c: Likewise.
46940
b47efe30 46941 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46942 attribute `unused'.
f19dbdb7 46943
b47efe30 46944 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46945 `fdiro' to read the mode information from instead of `diro'.
46946
46947 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46948 looking up a symlink.
46949
46950 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46951 macro.
46952 * normal/command.c (grub_command_execute): Don't parse the
46953 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46954 flags of the command.
46955
46956 * normal/menu.c (grub_menu_run): Fix typo.
46957
da75ac71 469582004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46959
46960 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46961
46962 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46963 `y + 1' instead of `y - 1'.
46964
46965 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 46966
062b24c2 469672004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46968
46969 From Hollis Blanchard <hollis@penguinppc.org>:
46970 * kern/misc.c (memmove): New alias for grub_memmove.
46971 (memcmp): New alias for grub_memcmp.
46972 (memset): New alias for grub_memset.
f19dbdb7 46973 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 46974 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 46975 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 46976 (grub_ieee1275_get_property): Likewise.
f19dbdb7 46977
8ddad845 469782004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46979
46980 Added normal mode command `chainloader' as module chain.mod, which
46981 depends on normal.mod and _chain.mod.
f19dbdb7 46982
8ddad845 46983 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46984 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46985 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46986 Deleted prototype.
46987 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46988 but arguments parsing moved to ...
46989 (grub_chainloader_cmd): ... here. New function.
46990 * include/grub/i386/pc/chainloader.h: New file.
46991 * loader/i386/pc/chainloader_normal.c: Likewise.
46992
2c1f4ce3 469932004-09-11 Marco Gerards <metgerards@student.han.nl>
46994
46995 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46996 (grub_mkimage_LDFLAGS): Likewise.
46997 (grub_emu_SOURCES): Likewise.
46998 (kernel_img_HEADERS): Added fshelp.h.
46999 * fs/ext2.c: Include <grub/fshelp.h>.
47000 (FILETYPE_REG): New macro.
47001 (FILETYPE_INO_REG): Likewise.
47002 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
47003 Changed all users.
47004 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
47005 all users.
47006 (grub_fshelp_node): New struct.
47007 (grub_ext2_data): Added member `diropen'. Changed member `inode'
47008 to a pointer.
47009 (grub_ext2_get_file_block): Removed function.
47010 (grub_ext2_read_block): New function.
47011 (grub_ext2_read_file): Replaced parameter `data' by `node'.
47012 This function was written.
47013 (grub_ext2_mount): Read the root inode. Create a diropen struct.
47014 (grub_ext2_find_file): Removed function.
47015 (grub_ext2_read_symlink): New function.
47016 (grub_ext2_iterate_dir): Likewise.
47017 (grub_ext2_open): Rewritten.
47018 (grub_ext2_dir): Rewritten.
47019 * include/grub/fshelp.h: New file.
47020 * fs/fshelp.c: Likewise.
47021
3c52136a 470222004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
47023
47024 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
47025 (print_message): Add a missing newline.
47026 (run_menu): Added timeout support.
47027 (run_menu_entry): New local function.
47028 (grub_menu_run): Added support for booting.
47029
47030 * kern/loader.c (grub_loader_is_loaded): New function.
47031
47032 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
47033 (grub_get_rtc): Exported.
47034
47035 * include/grub/i386/pc/time.h: Include grub/symbol.h.
47036 (grub_get_rtc): Exported.
47037
47038 * include/grub/normal.h (struct grub_command_list): Remove
47039 constant from the member `command'.
47040
47041 * include/grub/loader.h (grub_loader_is_loaded): Declared.
47042
47043 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
47044
47045 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
47046
aa033560 470472004-08-28 Marco Gerards <metgerards@student.han.nl>
47048
47049 Add support for the JFS filesystem.
47050
47051 * fs/jfs.c: New file.
47052 * include/grub/fs.h (grub_jfs_init): New prototype.
47053 (grub_jfs_fini): New prototype.
47054 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
47055 (grub_emu_SOURCES): Likewise.
47056 (pkgdata_MODULES): Add jfs.mod.
47057 (jfs_mod_SOURCES): New variable.
47058 (jfs_mod_CFLAGS): Likewise.
47059 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
47060 (grubof_SOURCES): Likewise.
47061 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
47062
47063 * fs/fat.c (grub_fat_find_dir): Convert the filename little
47064 endian to the host endian.
47065 (grub_fat_utf16_to_utf8): Move function from there...
47066 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 47067 the endianness of the source string anymore.
aa033560 47068 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
47069
94bc45af 470702004-08-24 Marco Gerards <metgerards@student.han.nl>
47071
47072 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
47073 (grub_boot_fini) [GRUB_UTIL]: Likewise.
47074 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
47075 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 47076
94bc45af 47077 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
47078 (grub_hfs_iterate_dir): Make the function static. Add prototypes
47079 for `node_found' and `it_dir'.
47080 (grub_hfs_dir): Add prototype for `dir_hook'.
47081
47082 * fs/minix.c (grub_minix_get_file_block): Add prototype for
47083 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
47084 and `indir32' to silence a gcc warning.
47085
47086 * include/grub/fs.h (grub_hfs_init): New prototype.
47087 (grub_hfs_fini): Likewise.
f19dbdb7 47088
47089
97543f08 470902004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47091
47092 Each disk device has its own id now. This is useful to make use
47093 of multiple disk devices.
f19dbdb7 47094
97543f08 47095 * include/grub/disk.h (grub_disk_dev_id): New enum.
47096 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47097 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47098
47099 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47100 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47101
47102 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47103 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47104
47105 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47106 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47107
47108 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47109 "id" which is used by the cache manager.
47110
47111 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47112 of just "GRUB".
47113
64372eb4 471142004-08-18 Marco Gerards <metgerards@student.han.nl>
47115
47116 * fs/hfs.c: New file.
47117 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47118 (grub_emu_SOURCES): Likewise.
47119 (pkgdata_MODULES): Add hfs.mod.
47120 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47121 (grubof_SOURCES): Likewise.
47122 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47123
47124 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47125 * kern/misc.c (grub_strncasecmp): Add function.
47126
cc61b58f 471272004-08-14 Marco Gerards <metgerards@student.han.nl>
47128
47129 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47130 with parentheses.
47131
47132 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47133 (grub_ext2_dir): In case the directory entry type is unknown, read
47134 it from the inode.
47135
0ef123f6 471362004-08-02 Peter Bruin <pjbruin@dds.nl>
47137
47138 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47139 grub_load_linux instead of grub_rescue_cmd_linux as second
47140 argument of grub_rescue_register_command.
47141
47142 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47143
a447c5df 471442004-07-27 Marco Gerards <metgerards@student.han.nl>
47145
47146 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47147 function.
47148 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47149 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47150 `loader/powerpc/ieee1275/linux.c',
47151 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47152 * include/grub/powerpc/ieee1275/ieee1275.h
47153 (grub_ieee1275_release): New prototype.
47154 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47155 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47156 normal, boot, linux and linux_normal.
47157 * loader/powerpc/ieee1275/linux.c: New file.
47158 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47159
5a9e3546 471602004-07-12 Marco Gerards <metgerards@student.han.nl>
47161
47162 * normal/arg.c (grub_arg_parse): Correct error handling after
47163 reallocating the argumentlist (check if `argl' is not null instead
47164 of checking if `args' is not null).
47165 * kern/mm.c (grub_realloc): Return the same pointer when using the
47166 same region, instead of returning the header address.
47167
e15199cb 471682004-07-11 Marco Gerards <metgerards@student.han.nl>
47169
47170 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47171 one block instead of two when looking for the initial partition.
47172 (grub_partition_probe): Initialize the local variable `p' with 0.
47173 Use base 10 for the grub_strtoul call.
47174 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47175 need for one local variable.
47176 (grub_strtoul): Don't add the new value to `num', instead of that
47177 just assign it.
47178
020616c2 471792004-07-11 Marco Gerards <metgerards@student.han.nl>
47180
47181 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47182 (pxeboot_img_SOURCES): New variable.
47183 (pxeboot_img_ASFLAGS): Likewise.
47184 (pxeboot_img_LDFLAGS): Likewise.
47185 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47186 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47187 <lode_leroy@hotmail.com>.
47188
6c51eb64 471892004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47190
47191 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47192 there was no input.
47193
cfb12aff 471942004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47195
47196 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47197 the history buffer logic.
47198
6eabba74 471992004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47200
47201 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47202 (FILETYPE_INO_SYMLINK): New macros.
47203 (grub_ext2_find_file): Check if the node is a directory using the
47204 inode stat information instead of using the filetype in the
47205 dirent. Exclude the first character of an absolute symlink.
47206 (grub_ext2_dir): Mask out the filetype part of the mode member of
47207 the inode.
47208
66e19ef8 472092004-05-24 Marco Gerards <metgerards@student.han.nl>
47210
47211 Add support for UFS version 1 and 2. Add support for the minix
47212 filesystem version 1 and 2, both the variants with 14 and 30 long
47213 filenames.
f19dbdb7 47214
66e19ef8 47215 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47216 fs/minix.c.
47217 (grub_emu_SOURCES): Likewise.
47218 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47219 (ufs_mod_SOURCES): New variable.
47220 (ufs_mod_CFLAGS): Likewise.
47221 (minix_mod_SOURCES): Likewise.
47222 (minix_mod_CFLAGS): Likewise.
47223 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47224 fs/minix.c.
47225 (grubof_SOURCES): Likewise.
47226 * fs/ufs.c: New file.
47227 * fs/minix.c: New file.
47228 * include/grub/fs.h (grub_ufs_init): New prototype.
47229 (grub_ufs_fini): Likewise.
47230 (grub_minix_init): Likewise.
47231 (grub_minix_fini): Likewise.
47232 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47233 minix fs.
47234
cc2e748a 472352004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47236
47237 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47238 commands/ls.c, commands/terminal.c, commands/boot.c,
47239 commands/cmp.c and commands/cat.c.
47240 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47241
47242 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47243 "env.h"
47244
4b13b216 472452004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47246
47247 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47248 and grub_, respectively. Because the conversion is trivial and
47249 mechanical, I omit the details here. Please refer to the CVS
47250 if you need more information.
47251
6a142551 472522004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47253
47254 * include/pupa: Renamed to ...
47255 * include/grub: ... this.
47256 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47257 * util/i386/pc/grub-mkimage.c: ... this.
47258 * util/i386/pc/pupa-setup.c: Renamed to ...
47259 * util/i386/pc/grub-setup.c: ... this.
47260 * util/pupa-emu.c: Renamed to ...
47261 * util/grub-emu.c: ... this.
47262
e56cdf21 472632004-03-29 Marco Gerards <metgerards@student.han.nl>
47264
47265 Add support for the newworld apple macintosh (PPC). This has been
47266 tested on the powerbook 2000 only. It only adds support for
47267 generic ieee1275 functions, console and disk support. This should
47268 be easy to port to other architectures with support for Open
47269 Firmware.
f19dbdb7 47270
e56cdf21 47271 * configure.ac: Accept the powerpc as host_cpu. In the case of
47272 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47273 specific tests are only executed while building for the i386.
47274 Inverse test for crosscompile.
47275 * genmk.rb (Utility): Allow assembler files.
47276 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47277 * conf/powerpc-ieee1275.rmk: New file.
47278 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47279 * disk/powerpc/ieee1275/partition.c: Likewise.
47280 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47281 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47282 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47283 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47284 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47285 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47286 * include/pupa/powerpc/ieee1275/loader.h
47287 * include/pupa/powerpc/setjmp.h: Likewise.
47288 * include/pupa/powerpc/types.h: Likewise.
47289 * kern/powerpc/ieee1275/init.c: Likewise.
47290 * kern/powerpc/ieee1275/openfw.c: Likewise.
47291 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47292
47293 These files were written by Johan Rydberg
47294 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 47295
e56cdf21 47296 * boot/powerpc/ieee1275/cmain.c: New file.
47297 * boot/powerpc/ieee1275/crt0.S: Likewise.
47298 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47299 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47300
8c8cc205 473012004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47302
47303 * Makefile.in: Update copyright.
47304 * genmodsrc.sh: Likewise.
47305 * gensymlist.sh: Likewise.
47306 * term/i386/pc/vga.c: Indent correctly.
47307
47308 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47309 bugreporting address.
47310 * util/i386/pc/pupa-setup.c (usage): Likewise,
47311 (main): Call pupa_ext2_init and pupa_ext2_fini.
47312
f19dbdb7 47313 * fs/fat.c (log2): Renamed to ...
8c8cc205 47314 (fat_log2): ... this.
47315 All callers changed.
47316 * kern/misc.c (memcpy): Alias to pupa_memmove.
47317 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47318 lvalue cast.
47319 * util/console.c (pupa_ncurses_fini): Return 0.
47320
47321 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47322 Move fail label here.
47323 [__GNU__]: Don't warn when using stat.
47324 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47325 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47326 long int. Use strtol instead of strtoul.
f19dbdb7 47327
db1771cf 473282004-03-14 Marco Gerards <metgerards@student.han.nl>
47329
47330 * commands/boot.c: New file.
47331 * commands/cat.c: Likewise.
47332 * commands/cmp.c: Likewise.
47333 * commands/ls.c: Likewise.
47334 * commands/terminal.c: Likewise.
47335 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47336 (pupa_register_command): Changed interface to match the new
47337 argument parser.
47338 (pupa_command_execute): Changed (almost rewritten) so it uses
47339 pupa_split_command. Added support for setting variables using the
47340 syntax `foo=bar'.
47341 (rescue_command): Changed to work with the new argument parser.
47342 (terminal_command): Moved from here to commands/terminal.c.
47343 (set_command): New function.
47344 (unset_command): New function.
47345 (insmod_command): New function.
47346 (rmmod_command): New function.
47347 (lsmod_command): New function.
47348 (pupa_command_init): Don't initialize the command terminal
47349 anymore. Initialize the commands set, unset, insmod, rmmod and
47350 lsmod.
47351 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47352 (kernel_img_HEADERS): Add arg.h and env.h.
47353 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47354 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47355 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47356 normal/arg.c.
47357 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47358 terminal.mod.
47359 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47360 (boot_mod_SOURCES): New variable.
47361 (terminal_mod_SOURCES): Likewise.
47362 (ls_mod_SOURCES): Likewise.
47363 (cmp_mod_SOURCES): Likewise.
47364 (cat_mod_SOURCES): Likewise.
47365
47366 * normal/arg.c: New file.
47367 * kern/env.c: Likewise.
47368 * include/pupa/arg.h: Likewise.
47369 * include/pupa/env.h: Likewise.
47370 * font/manager.c (font_command): Changed to match argument parsing
47371 interface changes.
47372 (PUPA_MOD_INIT): Likewise.
47373 * hello/hello.c (pupa_cmd_hello): Likewise.
47374 (PUPA_MOD_INIT): Likewise.
47375 * include/pupa/disk.h: Include <pupa/device.h>.
47376 (pupa_print_partinfo): New prototype.
47377 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47378 (pupa_dl_get_prefix): Likewise.
47379 * include/pupa/misc.h: Include <pupa/err.h>.
47380 (pupa_isgraph): New prototype.
47381 (pupa_isdigit): Likewise.
47382 (pupa_split_cmdline): Likewise.
47383 * include/pupa/normal.h: Include <pupa/arg.h>.
47384 (pupa_command): Changed the prototype of the member `func' to
47385 match the argument parsing interface. Added member `options'.
47386 (pupa_register_command): Updated to match function.
47387 (pupa_arg_parse): New prototype.
47388 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47389 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47390 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47391 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47392 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47393 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47394 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47395 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47396 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47397 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47398 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47399 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47400 * kern/disk.c: Include <pupa/file.h>.
47401 (pupa_print_partinfo): New function.
47402 * kern/dl.c: Include <pupa/env.h>.
47403 (pupa_dl_dir): Variable removed.
47404 (pupa_dl_load): Use the environment variable `prefix' instead of
47405 the variable pupa_dl_dir.
47406 (pupa_dl_set_prefix): Function removed.
47407 (pupa_dl_get_prefix): Likewise.
47408 * kern/i386/pc/init.c: Include <pupa/env.h>.
47409 (pupa_machine_init): Use the environment variable `prefix' instead of
47410 using pupa_dl_set_prefix to set the prefix.
47411 * kern/main.c: Include <pupa/env.h>.
47412 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47413 using pupa_dl_get_prefix to get the prefix.
47414 * kern/misc.c: Include <pupa/env.h>.
47415 (pupa_isdigit): New function.
47416 (pupa_isgraph): Likewise.
47417 (pupa_ftoa): Likewise.
47418 (pupa_vsprintf): Added support for printing values of the type
47419 `double'. Make it possible to format variable output when using
47420 formatting like `%1.2%f'.
47421 (pupa_split_cmdline): New function.
47422 * kern/rescue.c: Include <pupa/env.h>.
47423 (next_word): Removed function.
47424 (pupa_rescue_cmd_prefix): Likewise.
47425 (pupa_rescue_cmd_set): New function.
47426 (pupa_rescue_cmd_unset): New function.
47427 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47428 split the command line instead of splitting it here. Added
47429 support for setting variables using the syntax `foo=bar'. Don't
47430 initialize the prefix command anymore. Initialized the set and
47431 unset commands.
47432 * normal/cmdline.c: Include <pupa/env.h>.
47433 (pupa_tab_complete): Added prototypes for print_simple_completion,
47434 print_partition_completion, add_completion, iterate_commands,
47435 iterate_dev, iterate_part and iterate_dir. Moved code to print
47436 partition information from here to kern/disk.c.
fe6b695a 47437 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 47438 * normal/main.c: Include <pupa/env.h>.
47439 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47440 instead of using pupa_dl_get_prefix to get the prefix.
47441 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47442 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47443 warning.
47444 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47445 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47446 ((unused))' to silence a gcc warning.
47447 (pupa_vga_setcolor): Likewise.
47448 (debug_command): Changed to match argument parsing
47449 interface changes.
47450 * util/pupa-emu.c: Include <pupa/env.h>.
47451 (options): Added 0's for unused fields to silence a gcc warning.
47452 (argp): Likewise.
47453 (main): Use the environment variable `prefix' instead of using
47454 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47455 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47456 and terminal.
47457
47458 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47459 * util/misc.c: Include <malloc.h>.
47460 (pupa_malloc): Rewritten so errors are correctly reported.
47461 (pupa_realloc): Likewise.
47462 (pupa_memalign): Likewise.
47463 (pupa_mm_init_region): Declare unused variables with
47464 `__attribute__ ((unused))' to silence a gcc warning.
47465 * normal/i386/setjmp.S: Remove tab at the end of the file to
47466 silence a gcc warning.
47467 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47468 variables with `__attribute__ ((unused))' to silence a gcc
47469 warning.
47470 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47471 local variable i unsigned to silence a gcc warning.
47472
47473 * kern/term.c: Include <pupa/misc.h>.
47474 (pupa_more_lines): New variable.
47475 (pupa_more): Likewise.
47476 (pupa_putcode): When the pager is active pause at the end of every
47477 screen.
47478 (pupa_set_more): New function.
47479 * include/pupa/term.h (pupa_set_more): New prototype.
47480
47481
3b1139cb 474822004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47483
47484 Now this project is GRUB 2 rather than PUPA. The location of
47485 the CVS repository was moved to GRUB's.
f19dbdb7 47486
3b1139cb 47487 * configure.ac: Use bug-grub as the reporting address.
47488 Use GRUB instead of PUPA.
47489 Change the version number to 1.90.
47490
8367695c 474912004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47492
47493 * genkernsyms.sh: Updated copyright information.
47494 * genmk.rb: Likewise.
47495 * genmodsrc.sh: Likewise.
47496 * gensymlist.sh: Likewise.
47497 * boot/i386/pc/boot.S: Likewise.
47498 * boot/i386/pc/diskboot.S: Likewise.
47499 * disk/i386/pc/biosdisk.c: Likewise.
47500 * disk/i386/pc/partition.c: Likewise.
47501 * font/manager.c: Likewise.
47502 * fs/ext2.c: Likewise.
47503 * fs/fat.c: Likewise.
47504 * include/pupa/boot.h: Likewise.
47505 * include/pupa/device.h: Likewise.
47506 * include/pupa/disk.h: Likewise.
47507 * include/pupa/dl.h: Likewise.
47508 * include/pupa/elf.h: Likewise.
47509 * include/pupa/err.h: Likewise.
47510 * include/pupa/file.h: Likewise.
47511 * include/pupa/font.h: Likewise.
47512 * include/pupa/fs.h: Likewise.
47513 * include/pupa/kernel.h: Likewise.
47514 * include/pupa/loader.h: Likewise.
47515 * include/pupa/misc.h: Likewise.
47516 * include/pupa/mm.h: Likewise.
47517 * include/pupa/net.h: Likewise.
47518 * include/pupa/normal.h: Likewise.
47519 * include/pupa/rescue.h: Likewise.
47520 * include/pupa/setjmp.h: Likewise.
47521 * include/pupa/symbol.h: Likewise.
47522 * include/pupa/term.h: Likewise.
47523 * include/pupa/types.h: Likewise.
47524 * include/pupa/i386/setjmp.h: Likewise.
47525 * include/pupa/i386/types.h: Likewise.
47526 * include/pupa/i386/pc/biosdisk.h: Likewise.
47527 * include/pupa/i386/pc/boot.h: Likewise.
47528 * include/pupa/i386/pc/console.h: Likewise.
47529 * include/pupa/i386/pc/init.h: Likewise.
47530 * include/pupa/i386/pc/kernel.h: Likewise.
47531 * include/pupa/i386/pc/linux.h: Likewise.
47532 * include/pupa/i386/pc/loader.h: Likewise.
47533 * include/pupa/i386/pc/memory.h: Likewise.
47534 * include/pupa/i386/pc/multiboot.h: Likewise.
47535 * include/pupa/i386/pc/partition.h: Likewise.
47536 * include/pupa/i386/pc/time.h: Likewise.
47537 * include/pupa/i386/pc/vga.h: Likewise.
47538 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47539 * include/pupa/util/getroot.h: Likewise.
47540 * include/pupa/util/misc.h: Likewise.
47541 * include/pupa/util/resolve.h: Likewise.
47542 * kern/device.c: Likewise.
47543 * kern/disk.c: Likewise.
47544 * kern/dl.c: Likewise.
47545 * kern/err.c: Likewise.
47546 * kern/file.c: Likewise.
47547 * kern/fs.c: Likewise.
47548 * kern/loader.c: Likewise.
47549 * kern/main.c: Likewise.
47550 * kern/misc.c: Likewise.
47551 * kern/mm.c: Likewise.
47552 * kern/rescue.c: Likewise.
47553 * kern/term.c: Likewise.
47554 * kern/i386/dl.c: Likewise.
47555 * kern/i386/pc/init.c: Likewise.
47556 * kern/i386/pc/lzo1x.S: Likewise.
47557 * kern/i386/pc/startup.S: Likewise.
47558 * loader/i386/pc/chainloader.c: Likewise.
47559 * loader/i386/pc/linux.c: Likewise.
47560 * loader/i386/pc/multiboot.c: Likewise.
47561 * normal/cmdline.c: Likewise.
47562 * normal/command.c: Likewise.
47563 * normal/main.c: Likewise.
47564 * normal/menu.c: Likewise.
47565 * normal/i386/setjmp.S: Likewise.
47566 * term/i386/pc/console.c: Likewise.
47567 * term/i386/pc/vga.c: Likewise.
47568 * util/console.c: Likewise.
47569 * util/genmoddep.c: Likewise.
47570 * util/misc.c: Likewise.
47571 * util/pupa-emu.c: Likewise.
47572 * util/resolve.c: Likewise.
47573 * util/unifont2pff.rb: Likewise.
47574 * util/i386/pc/biosdisk.c: Likewise.
47575 * util/i386/pc/getroot.c: Likewise.
47576 * util/i386/pc/pupa-mkimage.c: Likewise.
47577 * util/i386/pc/pupa-setup.c: Likewise.
47578
e6eced71 475792004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47580
47581 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47582 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47583 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47584 reading and reset it after reading.
47585 (pupa_ext2_close): Return PUPA_ERR_NONE.
47586
47587 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47588 Correct value.
47589 (struct linux_kernel_header): Add kernel_version and
47590 initrd_addr_max.
47591 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47592 pupa_file_read succeeds.
47593 (pupa_rescue_cmd_initrd): Implement.
47594
5aded270 475952003-12-03 Marco Gerards <metgerards@student.han.nl>
47596
47597 * fs/ext2.c (pupa_ext2_label): New function.
47598 (pupa_ext2_fs): Added label.
47599 * fs/fat.c (pupa_fat_label): New function.
47600 (pupa_fat_fs): Added label.
47601 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47602
47603 * kern/misc.c (pupa_strndup): New function.
47604 * include/pupa/misc.h (pupa_strndup): New prototype.
47605
47606 * include/pupa/normal.h: Include <pupa/err.h>.
47607 (pupa_set_history): New prototype.
47608 (pupa_iterate_commands): New prototype.
47609 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47610 <pupa/disk.h>, <pupa/file.h>.
47611 (hist_size): New variable.
47612 (hist_lines): Likewise.
47613 (hist_end): Likewise.
47614 (hist_used): Likewise.
47615 (pupa_set_history): New function.
47616 (pupa_history_get): Likewise.
47617 (pupa_history_add): Likewise.
47618 (pupa_history_replace): Likewise.
47619 (pupa_tab_complete): Likewise.
47620 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47621 completion shows partitionnames while completing partitions, this
47622 feature was suggested by Jeff Bailey.
47623 * normal/command.c (pupa_iterate_commands): New function.
47624 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47625 (pupa_normal_init): Initialize history buffer.
47626 (PUPA_MOD_INIT): Likewise.
47627 (pupa_normal_fini): Free the history buffer.
47628 (PUPA_MOD_FINI): Likewise.
47629
47630 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47631 key.
47632
47633 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47634 * configure.ac [i386]: Check for regparam bug.
47635 (NESTED_FUNC_ATTR) [! i386]: Defined.
47636
1f7315a3 476372003-11-17 Marco Gerards <metgerards@student.han.nl>
47638
47639 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47640 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47641 (pupa_emu_SOURCES): New variable.
47642 (pupa_emu_LDFLAGS): Likewise.
47643 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47644 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47645 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47646 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47647 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47648 (pupa_jmp_buf): New typedef.
47649 (pupa_setjmp) [PUPA_UTIL]: New macro.
47650 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47651 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47652 (pupa_refresh): New prototype.
47653 * include/pupa/util/getroot.h: New file.
47654 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47655 it.
47656 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47657 (pupa_rescue_cmd_cat): Likewise.
47658 (pupa_rescue_cmd_ls): Likewise.
47659 (pupa_rescue_cmd_testload): Likewise.
47660 (pupa_rescue_cmd_lsmod): Likewise.
47661 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47662 * normal/menu.c (run_menu): Likewise.
47663 * kern/term.c (pupa_cls): Likewise.
47664 (pupa_refresh): New function.
47665 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47666 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47667 * util/console.c: New file.
f19dbdb7 47668
1f7315a3 47669 * util/i386/pc/getroot.c: New file.
47670 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47671 (pupa_putchar): New function.
47672 (pupa_refresh): Likewise.
47673 (xgetcwd): Function moved to ...
47674 (strip_extra_slashes): Likewise.
47675 (get_prefix): Likewise.
f19dbdb7 47676 * util/i386/pc/getroot.c: ... here.
1f7315a3 47677 (find_root_device): Function moved and renamed to...
47678 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47679 Changed all callers.
47680 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47681 and renamed to...
47682 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47683 Changed all callers.
47684 * util/misc.c (pupa_memalign): New function.
47685 (pupa_mm_init_region): Likewise.
47686 (pupa_register_exported_symbols): Likewise.
47687 (pupa_putchar): Function removed.
47688 * util/pupa-emu.c: New file.
47689
9a5c1ade 476902003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47691
47692 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47693 (_multiboot_mod_SOURCES): New variable.
47694 (_multiboot_mod_CFLAGS): Likewise.
47695 * loader/i386/pc/multiboot.c: New file.
47696 * include/pupa/i386/pc/multiboot.h: Likewise.
47697 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47698 (pupa_multiboot_real_boot): New function.
47699 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47700 (pupa_multiboot_real_boot): New prototype.
47701 (pupa_rescue_cmd_multiboot): Likewise
47702 (pupa_rescue_cmd_module): Likewise.
47703
47704 * kern/loader.c (pupa_loader_set): Continue when
47705 pupa_loader_unload_func() fails.
47706 (pupa_loader_unset): New function.
47707 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47708
47709 * kern/misc.c (pupa_stpcpy): New function.
47710 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47711
8e72a9c0 477122003-11-12 Marco Gerards <metgerards@student.han.nl>
47713
47714 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47715 for available extensions.
47716
47717 * include/pupa/i386/pc/time.h: New file.
47718 * kern/disk.c: Include <pupa/machine/time.h>.
47719 (PUPA_CACHE_TIMEOUT): New macro.
47720 (pupa_last_time): New variable.
47721 (pupa_disk_open): Flush the cache when there was a timeout.
47722 (pupa_disk_close): Reset the timer.
47723 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47724 pupa_currticks.
47725 * util/misc.c: Include <sys/times.h>
47726 (pupa_get_rtc): New function.
47727
c4adbd32 477282003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47729
47730 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47731 as blocks.
47732 (pupa_ext2_get_file_block): Use blocks member.
47733
47734 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47735 first block. Return -1 instead of pupa_errno on error.
47736
bfd30f06 477372003-10-27 Marco Gerards <metgerards@student.han.nl>
47738
47739 * README: In the pupa-mkimage example use _chain instead of chain
47740 and ext2 instead of fat.
47741 * TODO: Replace ext2fs with jfs as an example. Add an item for
47742 adding journal playback for ext2fs.
47743 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47744 (pkgdata_MODULES): Added ext2.mod.
47745 (ext2_mod_SOURCES): New variable.
47746 (ext2_mod_CFLAGS): Likewise.
47747 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47748 * include/pupa/misc.h (pupa_strncpy): New prototype.
47749 (pupa_strcat): Likewise.
47750 (pupa_strncmp): Likewise.
47751 * kern/misc.c (pupa_strcat): Enable function.
47752 (pupa_strncpy): New function.
47753 (pupa_strncmp): Likewise.
47754 * fs/ext2.c: New file.
f19dbdb7 47755
bfd30f06 47756 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47757 when the read failed before retrying.
47758 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47759 (_FILE_OFFSET_BITS): Likewise.
47760 * configure.ac: Added AC_SYS_LARGEFILE.
47761
98d15063 477622003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47763
47764 * genmk.rb (PModule#rule): Make sure to get only symbol names
47765 from the output of nm.
59cad637 47766 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 47767
18d9c7cd 477682003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47769
47770 I forgot to check in these changes for a long time. This adds
47771 incomplete support for VGA console, and this is still very
47772 buggy. Also, a lot of consideration is required for I18N,
47773 UNICODE, and VGA font issues. Therefore, assume that this is
47774 such that "better than nothing".
f19dbdb7 47775
18d9c7cd 47776 * font/manager.c: New file.
47777 * include/pupa/font.h: Likewise.
47778 * include/pupa/i386/pc/vga.h: Likewise.
47779 * term/i386/pc/vga.c: Likewise.
47780 * util/unifont2pff.rb: Likewise.
47781
47782 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47783 (pkgdata_MODULES): Added vga.mod and font.mod.
47784 (vga_mod_SOURCES): New variables.
47785 (vga_mod_CFLAGS): Likewise.
47786 (font_mod_SOURCES): Likewise.
47787 (font_mod_CFLAGS): Likewise.
47788
47789 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47790
47791 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 47792 (struct pupa_term): Added init and fini.
18d9c7cd 47793 Changed the argument of putchar to pupa_uint32_t.
47794
47795 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47796 (pupa_console_real_putchar): New prototype.
47797 (pupa_console_putchar): Removed.
47798 (pupa_console_checkkey): Exported.
47799 (pupa_console_getkey): Likewise.
47800
47801 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47802 characters.
47803
47804 * kern/term.c (pupa_term_set_current): Rewritten.
47805 (pupa_putchar): Likewise.
47806 (pupa_putcode): New function.
47807
47808 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47809 (pupa_console_real_putchar): ... this.
47810 (pupa_vga_set_mode): New function.
47811 (pupa_vga_get_font): Likewise.
47812
47813 * normal/command.c: Include pupa/term.h.
47814 (terminal_command): New function.
47815 (pupa_command_init): Register the command "terminal".
47816
47817 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47818 (DISP_UP): Likewise.
47819 (DISP_RIGHT): Likewise.
47820 (DISP_DOWN): Likewise.
47821 (DISP_HLINE): Likewise.
47822 (DISP_VLINE): Likewise.
47823 (DISP_UL): Likewise.
47824 (DISP_UR): Likewise.
47825 (DISP_LL): Likewise.
47826 (DISP_LR): Likewise.
47827
47828 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 47829
977329f5 478302003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47831
47832 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47833 FIX. Reverse the path_list.
47834
47835 * include/pupa/normal.h: Export pupa_register_command and
47836 pupa_unregister_command.
47837
47838 * hello/hello.c (pupa_cmd_hello): New module.
47839 * conf/i386-pc.rmk: Added hello.mod.
47840
1f5ab428 478412003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47842
47843 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 47844
1f5ab428 47845 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47846 (compress_kernel): New variable.
47847 (generate_image): Heavily modified to support compressing a
47848 large part of the core image.
47849
47850 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47851 leak.
47852 (pupa_util_load_image): New function.
47853
47854 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47855 (pupa_compressed_size): New variable.
47856 (codestart): Enable Gate A20 here.
47857 Decompress the compressed part of the core image.
47858 Rearrange the code to put functions and variables which are
47859 required for initialization in the non-compressed part.
47860 Include lzo1x.S.
47861
47862 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47863 here.
47864
47865 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47866
f19dbdb7 47867 * include/pupa/i386/pc/kernel.h
1f5ab428 47868 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47869 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47870 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47871 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47872 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47873
47874 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47875
47876 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47877 (Utility#rule): Likewise.
47878
47879 * configure.ac: Check if LZO is available.
47880
ce5bf700 478812003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47882
47883 * include/pupa/normal.h: New file.
47884 * include/pupa/setjmp.h: Likewise.
47885 * include/pupa/i386/setjmp.h: 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.
f19dbdb7 47891
ce5bf700 47892 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47893 (pupa_rescue_cmd_initrd): Likewise.
47894
47895 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47896 Likewise.
47897
47898 * kern/i386/pc/startup.S (translation_table): New variable.
47899 (translate_keycode): New function.
47900 (pupa_console_getkey): Call translate_keycode.
47901
47902 * kern/rescue.c (attempt_normal_mode): New function.
47903 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47904 it failed, print a message.
47905
47906 * kern/mm.c (pupa_real_malloc): Print more information when a
47907 free magic is broken.
47908 (pupa_free): If the first free header is not free actually, set
47909 it to P.
47910
47911 * kern/main.c (pupa_load_normal_mode): Just load the module
47912 "normal".
47913 (pupa_main): Don't print the message
47914 "Entering into rescue mode..." here.
47915
47916 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47917 Declared.
47918 (pupa_rescue_cmd_initrd): Likewise.
47919 (pupa_rescue_cmd_initrd): Likewise.
47920
47921 * include/pupa/symbol.h (FUNCTION): Specify the type.
47922 (VARIABLE): Likewise.
47923
47924 * include/pupa/err.h (pupa_err_t): Added
47925 PUPA_ERR_UNKNOWN_COMMAND.
47926
47927 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47928 (pupa_dl_get_prefix): Likewise.
47929
47930 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47931 Added _chain.mod and _linux.mod instead of chain.mod and
47932 linux.mod.
47933 (chain_mod_SOURCES): Renamed to ...
47934 (_chain_mod_SOURCES): ... this.
47935 (chain_mod_CFLAGS): Renamed to ...
47936 (_chain_mod_CFLAGS): ... this.
47937 (linux_mod_SOURCES): Renamed to ...
47938 (_linux_mod_SOURCES): ... this.
47939 (linux_mod_CFLAGS): Renamed to ...
47940 (_linux_mod_CFLAGS): ... this.
47941 (normal_mod_SOURCES): New variable.
47942 (normal_mod_CFLAGS): Likewise.
47943 (normal_mod_ASFLAGS): Likewise.
47944
479452003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47946
47947 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47948 possible.
47949
fe6b695a 47950 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 47951 recursively.
47952 (pupa_dl_unref): Unrefer depending modules recursively.
47953 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47954 a module is unloaded before one depending on that module is
47955 unloaded.
47956 (pupa_dl_unload): Unload depending modules explicitly,
47957 if possible.
47958
c04da074 479592003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47960
47961 * include/pupa/i386/pc/linux.h: New file.
47962 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 47963
c04da074 47964 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47965 Removed.
47966 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47967 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47968 of PUPA_CHAINLOADER_BOOT_SECTOR.
47969
47970 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47971 (pupa_linux_prot_size): New variable.
47972 (pupa_linux_tmp_addr): Likewise.
47973 (pupa_linux_real_addr): Likewise.
47974 (pupa_linux_boot_zimage): New function.
47975 (pupa_linux_boot_bzimage): Likewise.
47976
47977 * kern/i386/pc/init.c (struct mem_region): New structure.
47978 (MAX_REGIONS): New macro.
47979 (mem_regions): New variable.
47980 (num_regions): Likewise.
47981 (pupa_os_area_addr): Likewise.
47982 (pupa_os_area_size): Likewise.
47983 (pupa_lower_mem): Likewise.
47984 (pupa_upper_mem): Likewise.
47985 (add_mem_region): New function.
47986 (compact_mem_regions): Likewise.
47987 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47988 the size of the conventional memory and that of so-called upper
47989 memory (before the first memory hole).
47990 Instead of adding each found region to free memory, use
47991 add_mem_region and add them after removing overlaps.
47992 Also, add only 1/4 of the upper memory to free memory. The rest
47993 is used for loading OS images. Maybe this is ad hoc, but this
47994 makes it much easier to relocate OS images when booting.
47995
47996 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47997 (pupa_enter_rescue_mode): Don't register initrd and module.
47998
47999 * kern/mm.c: Include pupa/dl.h.
48000
48001 * kern/main.c: Include pupa/file.h and pupa/device.h.
48002
48003 * kern/loader.c (pupa_loader_load_module_func): Removed.
48004 (pupa_loader_load_module): Likewise.
48005
48006 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
48007 ``.o''.
48008
48009 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
48010 (pupa_linux_tmp_addr): Likewise.
48011 (pupa_linux_real_addr): Likewise.
48012 (pupa_linux_boot_zimage): Likewise.
48013 (pupa_linux_boot_bzimage): Likewise.
48014
48015 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
48016 (pupa_upper_mem): Likewise.
48017 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
48018 module is too dangerous.
48019
48020 * include/pupa/loader.h (pupa_os_area_addr): Declared.
48021 (pupa_os_area_size): Likewise.
48022 (pupa_loader_set): Remove the first argument. Loader doesn't
48023 manage modules or initrd any longer.
48024 (pupa_loader_load_module): Removed.
48025
48026 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
48027 (linux_mod_SOURCES): New variable.
48028 (linux_mod_CFLAGS): Likewise.
48029
a13f9237 480302003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
48031
48032 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
48033 the length of a blocklist correctly.
48034
48035 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
48036 Use ioctl only if the OS file is a block device.
48037 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
48038 not very useful for normal files.
48039
48040 * kern/main.c (pupa_set_root_dev): New function.
48041 (pupa_load_normal_mode): Likewise.
48042 (pupa_main): Call those above.
48043
48044 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
48045 pupa_uint16_t.
48046
48047 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
48048
a5ffe966 480492003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
48050
48051 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
48052 (setup): Configure the installed partition information and the
48053 dl prefix.
48054
48055 * loader/i386/pc/chainloader.c (my_mod): New variable.
48056 (pupa_chainloader_unload): New function.
48057 (pupa_rescue_cmd_chainloader): Refer itself.
48058 (PUPA_MOD_INIT): Save its own module in MY_MOD.
48059
48060 * kern/i386/pc/startup.S (install_partition): Removed.
48061 (version_string): Likewise.
48062 (config_file): Likewise.
48063 (pupa_install_dos_part): New variable.
48064 (pupa_install_bsd_part): Likewise.
48065 (pupa_prefix): Likewise.
48066 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
48067
48068 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
48069 and pupa/misc.h.
48070 (make_install_device): New function.
48071 (pupa_machine_init): Set the dl prefix.
48072
48073 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
48074 (buf): Renamed to ...
48075 (linebuf): ... this.
48076 (pupa_rescue_cmd_prefix): New function.
48077 (pupa_rescue_cmd_insmod): Likewise.
48078 (pupa_rescue_cmd_rmmod): Likewise.
48079 (pupa_rescue_cmd_lsmod): Likewise.
48080 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
48081 rmmod and lsmod.
48082
48083 * kern/mm.c (pupa_memalign): If failed even after invalidating
48084 disk caches, unload unneeded modules and retry.
48085
48086 * kern/misc.c (pupa_memmove): New function.
48087 (pupa_memcpy): Removed.
48088 (pupa_strcpy): New function.
48089 (pupa_itoa): Made static.
48090
48091 * kern/dl.c (pupa_dl_iterate): New function.
48092 (pupa_dl_ref): Likewise.
48093 (pupa_dl_unref): Likewise.
48094 (pupa_dl_unload): Return if succeeded or not.
48095 (pupa_dl_unload_unneeded): New function.
48096 (pupa_dl_unload_all): Likewise.
48097 (pupa_dl_init): Renamed to ...
48098 (pupa_dl_set_prefix): ... this.
48099 (pupa_dl_get_prefix): New function.
48100
48101 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48102 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48103 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48104 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48105 (pupa_install_dos_part): Declared.
48106 (pupa_install_bsd_part): Likewise.
48107 (pupa_prefix): Likewise.
48108 (pupa_boot_drive): Likewise.
48109
48110 * include/pupa/types.h: Fix a typo.
48111
48112 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48113 pupa_memmove.
48114 (pupa_memmove): Declared.
48115 (pupa_strcpy): Likewise.
48116
48117 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48118 pupa_mod_init takes one argument, its own module.
48119 (pupa_dl_unload_unneeded): Declared.
48120 (pupa_dl_unload_all): Likewise.
48121 (pupa_dl_ref): Likewise.
48122 (pupa_dl_unref): Likewise.
48123 (pupa_dl_iterate): Likewise.
48124 (pupa_dl_init): Renamed to ...
48125 (pupa_dl_set_prefix): ... this.
48126 (pupa_dl_get_prefix): Declared.
48127
48128 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 48129 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 48130 unloaded.
48131 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48132 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48133
48134 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48135 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48136
012d7999 481372003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48138
48139 * util/i386/pc/pupa-setup.c (setup): Define the internal
48140 function find_first_partition_start at the top level, because GCC
48141 3.0.x cannot compile internal functions in deeper scopes
48142 correctly.
48143 (find_root_device): Use lstat instead of stat.
48144 Don't follow symbolic links.
48145 Fix the path-constructing code.
48146
48147 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48148 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48149 by a BLKGETSIZE ioctl first, because block devices don't fill
48150 the member st_mode of the structure stat on Linux.
48151 [__linux__] (linux_find_partition): Use a temporary buffer
48152 REAL_DEV for the working space. Copy it to DEV before returning.
48153 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48154 buffer cache consistent.
48155 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48156 strncmp. The previous value was merely wrong.
48157 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48158
48159 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48160 FAT size is 12. The previous value was merely wrong.
48161
48162 * kern/main.c (pupa_main): Don't split the starting message from
48163 newlines.
48164
48165 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48166 LF, because BIOS goes crazy about character attributes in this
48167 case.
48168
1cc73a62 481692003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48170
48171 * include/i386/pc/util/biosdisk.h: New file.
48172 * util/i386/pc/biosdisk.c: Likewise.
48173 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 48174
1cc73a62 48175 * Makefile.in (INCLUDE_DISTFILES): Added
48176 include/pupa/i386/pc/util/biosdisk.h.
48177 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48178 directory util/i386/pc.
48179 (install-local): Added a rule for sbin_UTILITIES.
48180 (uninstall): Likewise.
48181
48182 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48183
48184 * util/misc.c (xrealloc): New function.
48185 (pupa_malloc): Likewise.
48186 (pupa_free): Likewise.
48187 (pupa_realloc): Likewise.
48188 (pupa_stop): Likewise.
48189 (pupa_putchar): Likewise.
48190
48191 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48192
48193 * include/pupa/util/misc.h (xrealloc): Declared.
48194
48195 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48196 macro.
48197 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48198 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48199
48200 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48201 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48202
48203 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48204 way should be implemented.
48205 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48206
48207 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48208 the size of NAME for safety.
48209 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48210 0x88.
48211
48212 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48213 (pupa_setup_SOURCES): Likewise.
48214
48215 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48216
08b70fe8 482172002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48218
48219 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48220 bunch of pushl's from pusha, because this destroys the return
48221 value.
48222
62ddcc8f 482232002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48224
48225 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48226 This means that any missing prototypes could be fatal. Also, you
48227 must take care when writing assembly code. See the comments at
48228 the beginning of startup.S, for more details.
f19dbdb7 48229
62ddcc8f 48230 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48231 compilation mechanism.
48232 (pupa_chainloader_real_boot): Likewise.
48233 (pupa_biosdisk_rw_int13_extensions): Likewise.
48234 (pupa_biosdisk_rw_standard): Likewise.
48235 (pupa_biosdisk_check_int13_extensions): Likewise.
48236 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48237 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48238 (pupa_get_memsize): Likewise.
48239 (pupa_get_mmap_entry): Likewise.
48240 (pupa_console_putchar): Likewise.
48241 (pupa_console_setcursor): Likewise.
48242 (pupa_getrtsecs): Use pushl instead of push.
48243
48244 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48245 memory instead of the stack for a mmap entry, because some
48246 BIOSes may ignore the maximum size and overflow.
48247
48248 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48249
48250 * genmk.rb (PModule#rule): Compile automatically generated
48251 sources with module-specific CFLAGS as well as other sources.
48252
9962ed99 482532002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48254
48255 * configure.ac: Check ld.
48256 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48257 respectively, before checking endianness and sizes.
48258
48259 * Makefile.in (LD): New variable.
f19dbdb7 48260
abdfc3c5 482612002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48262
48263 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48264
6a161fa9 482652002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48266
48267 * Changelog: New file.
48268