]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
[grub2.git] / ChangeLog
CommitLineData
c506fc30
FL
12013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
2
3 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
4
aa428238
VS
52013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6
7 Unify file copying setup across different install scripts. Add
8 options for performing partial install.
9
efe0cdda
PJ
102013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
112013-04-04 Peter Jones <pjones@redhat.com>
12
13 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
14
f75835bd
VS
152013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
16
17 Use TSC as a possible time source on i386-ieee1275.
18
2cd5ce6c
VS
192013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
20
21 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
22 Init err.
23
c9625630
VS
242013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * util/grub-setup.c (setup): Handle some corner cases.
27
be008941
VS
282013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29
30 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
31
1a78d573
VS
322013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
33
34 * grub-core/commands/verify.c: Save verified file to avoid it being
35 tampered with after verification was done.
36
db8ff59f
VS
372013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
38
39 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
40 reported width by one to compensate for curesor algorithm problem.
41
91bf46b1
VS
422013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
43
44 Fix screen corruption in menu entry editor and simplify the code
45 flow while on it.
46
a7b1d693
AB
472013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
48
49 * util/grub-mount.c (fuse_init): Return error if fuse_main
50 failed.
51
31df9ad8
FL
522013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
53
54 * include/grub/elf.h: Add missing ARM relocation codes and fix
55 existing ones.
56
07f392eb
VT
572013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
58
59 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
60
9efd73ec 612013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
622013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
63
64 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
65 into account when calculating radius.
66
672013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
68
69 * grub-core/gfxmenu/view.c: Fix off-by-one error.
70
4985ddaa
VT
712013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
72
73 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
74
8c3635ff
RS
752013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
76
77 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
78 missing closing bracket.
79
74a35e69
RS
802013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
81
82 * INSTALL: Mention xorriso requirement.
83
40f1c000
AB
842013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
85
86 * grub-core/commands/verify.c: Fix hash algorithms values for
87 the first three hashes - they start with 1, not with 0.
88
e75fdee4
VS
892013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
90
91 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
92 Try terminating EFI services several times due to quirks in some
93 implementations.
94
33028f4c
CW
952013-03-26 Colin Watson <cjwatson@ubuntu.com>
96
97 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
98 skipping Event, Device, Processor, PowerRes, ThermalZone, and
99 BankField extended opcodes.
100 (get_sleep_type): Add minimal scope handling (just enough to
101 handle setting the scope to the root path).
102 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
103 * include/grub/acpi.h: Add enumeration values for Event, Device,
104 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
105
33871a10
VT
1062013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
107
108 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
109 memory leak.
110
8990963a
VS
1112013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
112
113 * grub-core/disk/ahci.c: Give more time for AHCI request.
114
daae8f9e
VS
1152013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
116
117 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
118 command.
119
6a7fb94b
VS
1202013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
121
122 Replace the region at 0 from coreboot tables to available in BSD
123 memory map.
124
ff99babd
VS
1252013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
126
127 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
128 non-BIOS platforms.
129
30d6b1b2
VS
1302013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
131
132 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
133 platforms.
134
6ccd0b31
VS
1352013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
136
137 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
138 handling of multi-device filesystems.
139
23c9cc04
VS
1402013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
143 platforms.
144
ce50dbd7
VS
1452013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
146
147 Add new 'proc' filesystem framework and put luks_script into it.
148
d975e8d5
VS
1492013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
150
151 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
152 and qemu.
153
e73ba5e8
VS
1542013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
155
156 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
157
92750e4c
VS
1582013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
159
160 Add ability to generate newc additions on runtime.
161
0ec45a68
VS
1622013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
163
164 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
165 description.
166
320abd43
VS
1672013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
168
169 * po/POTFILES.in: Regenerate.
170
d7a6506e
VS
1712013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
172
173 * grub-core/commands/verify.c (hashes): Add several hashes
174 from the spec.
175
8fe05def
VS
1762013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
177
178 Slight improve in USB-related boot-time checkpoints.
179
524e2766
VS
1802013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
181
182 * grub-core/commands/boottime.c: Fix copyright header.
183
cc19857a
VS
1842013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
185
186 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
187 coreboot tables content. Support for cbmemc.
188
ef8810e9
VS
1892013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
190
191 Fix a conflict between ports structures with 2 controllers of
192 same kind.
193
e9dabdfa
VS
1942013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
195
196 * include/grub/boottime.h: Add missing file.
197
f6df57d2
VS
1982013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
199
200 Initialize USB ports in parallel to speed-up boot.
201
d745dda7
VS
2022013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
203
204 Fix USB devices not being detected when requested
205 due to delayed attach.
206
e5a2dd7b
VS
2072013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
208
e744219b
VS
209 Implement boot time analysis framework.
210
2112013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
212
213 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
214 descriptor to just receive it as argument rather than endpoint
215 address.
216
5dd6f587
VS
2172013-03-19 Aleš Nesrsta <starous@volny.cz>
218
219 Better estimate the maximum USB transfer size.
220
2f1071d5
VS
2212013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
222
223 Resend a packet if we got the wrong buffer in status.
224
46ecfc49
VS
2252013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
226
227 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
228 multiplication rather than division.
229
ea811130
VS
2302013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
231
232 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
233 than divisions.
234
d2789cf0
VS
2352013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
236
237 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
238 operations to have intended shifts and not divisions.
239
a9c94590
VS
2402013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
243 intended shifts rather than division.
244
84cfe81b
VS
2452013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
246
247 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
248 computation for some years before epoch. Avode confusing division
249 while on it.
250
21344ef6
VS
2512013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * grub-core/video/i386/pc/vbe.c
254 (grub_video_vbe_print_adapter_specific_info): Replace division by
255 shifts.
256
3f2b4d1a
VS
2572013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
258
259 Adjust types in gdb module to have intended unsigned shifts rather than
260 signed divisions.
261
3dac5878
VS
2622013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
263
264 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
265 maximum size is 4G - 1 on hfs
266
5341c0fb
VS
2672013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
268
269 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
270
fc3ff2a2
VS
2712013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
272
273 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
274 function.
275
81455e8e
AB
2762013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
277
278 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
279 causing gcc error with gcc 4.7.1.
280
efd4f117
NZ
2812013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
282
283 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
284 dereference null pointer. While the code is technically correct, gcc
285 may eliminate a null check if pointer is already dereferenced.
286
e11645f4
NZ
2872013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
288
289 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
290 OOM check.
291 * grub-core/normal/term.c (read_terminal_list): Likewise.
292
77468368
VS
2932013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
294
295 Lift up core size limits on some platforms. Fix potential memory
296 corruption with big core on small memory systems. Document remaining
297 limits.
298
f6b58fe5
VS
2992013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
300
301 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
302 gotoxy to 0,0.
303
19ce697d
VS
3042013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
305
306 Remove all trampoline support. Add -Wtrampolines when
307 present. Remove symbols used for trampolines to make
308 link fail if trampolines are present.
309
73b5d90f
VS
3102013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
313 append out of its parent.
314
cb758e96
VS
3152013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
316
317 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
318 parent.
319
3188131f
VS
3202013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
321
322 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
323 all vars to a macro. All users updated.
324
e42b2514
VS
3252013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
326
327 * grub-core/disk/ieee1275/nand.c: Fix compilation on
328 i386-ieee1275.
329
83e1a1a1
VS
3302013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
331
332 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
333
1d5a880f
VS
3342013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
335
336 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
337
6e4146c4
VS
3382013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
339
340 Move to more hookless approach in IEEE1275 devices handling.
341
99fcda8a
VS
3422013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
343
344 * grub-core/kern/term.c (grub_term_normal_color),
345 (grub_term_highlight_color): Add back lost defaults.
346
73bf57e2
VS
3472013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
348
349 Make elfload not use hooks. Opt for flags and iterators instead.
350
7f8c105f
VS
3512013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
352
353 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
354 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
355
396d4091
VS
3562013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
357
358 * grub-core/script/execute.c (gettext_append): Remove nested functions.
359
3602013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
363 hook pass-through parameter. All users updated and unnested.
364
74a27421
VS
3652013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
368 out of its parent.
369
b46d4213
VS
3702013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * grub-core/fs/hfs.c: Remove nested functions.
373
e114c3cc
VS
3742013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
375
376 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
377 the context through.
378 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
379
f9b7d780
VS
3802013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * util/grub-editenv.c (list_variables): Move print_var out of its
383 parent.
384
ca9c2608
VS
3852013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
386
387 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
388 function.
389
5d983f5f
VS
3902013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
391
392 * grub-core/gentrigtables.c: Make tables const.
393
3056d3e7
VS
3942013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
395
396 Remove nested functions from videoinfo iterators.
397
e2303774
VS
3982013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
399
400 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
401 for 64-bit platforms.
402
f42e3a2f
VS
4032013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
404
405 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
406 a FOR_CHILDREN macro.
407
be174e5e
VS
4082013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
409
410 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
411 platform from firmware path.
412
0789b672
VS
4132013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
414
415 Enable linux16 on non-BIOS systems for i.a. memtest.
416
417 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
418 correctly.
419 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
420
005a9c32
VS
4212013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
422
423 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
424 Fix end of table condition.
425
ff2b3cd9
VS
4262013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
427
428 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
429 out of its parent.
430
4fc40ff8
VS
4312013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
432
433 * grub-core/fs/jfs.c: Remove nested functions.
434
be42d97a
VS
4352013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
436
437 * grub-core/fs/minix.c: Remove nested functions.
438
99373ce4
VS
4392013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
440
441 * grub-core/fs/iso9660.c: Remove nested functions.
442
5aec2afe
VS
4432013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
444
445 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
446 of parent function.
447
6c69e691
VS
4482013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
449
450 * util/grub-fstest.c: Remove nested functions.
451
43c91882
VS
4522013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
453
454 * grub-core/loader/machoXX.c: Remove nested functions.
455
4eb8b756
CW
4562013-02-27 Colin Watson <cjwatson@ubuntu.com>
457
458 Remove nested functions from disk and file read hooks.
459
460 * include/grub/disk.h (grub_disk_read_hook_t): New type.
461 (struct grub_disk): Add read_hook_data member.
462 * include/grub/file.h (struct grub_file): Likewise.
463 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
464 argument.
465
466 Update all callers.
467
df6da5a5
AB
4682012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
469
470 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
471 Fix off by one error in enumerating extended partitions.
472
21aecde5
AB
4732013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
474
475 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
476 memory leak if device name is not found.
477
f1a19118
AB
4782013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
479
480 * grub-core/normal/menu_entry.c (update_screen): remove
481 unused variable `off' which caused scroll down arrow to be always shown.
482
958bfd20
AB
4832013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
484
485 * grub-core/normal/menu_entry.c (insert_string): fix off by one
486 access to unallocated memory.
487
b7b78edb
AB
4882013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
489
490 * Makefile.util.def: Add partmap/msdos.c to common library.
491 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
492 * grub-core/disk/ldm.c: Check for existence of
493 GRUB_PC_PARTITION_TYPE_LDM.
494
28d468d6
VS
4952013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
496
497 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
498 sizes and display sector size.
499
d55ffb02
VS
5002013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
501
502 Implement new command cmosdump.
503
b5ea6ce0
VS
5042013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
505
506 Support Openfirmware disks with non-512B sectors.
507
508 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
509 size of the disk.
510 * (grub_ofdisk_get_block_size): New function.
511 * (grub_ofdisk_prepare): Use the correct block size.
512 * (grub_ofdisk_read): Likewise.
513 * (grub_ofdisk_write): Likewise.
514 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
515 New proto.
516
cc0e476f
VS
5172013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
520
c5dbdc33
VS
5212013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
522
523 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
524 on first error.
525
3f078c0f
VS
5262013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
527
528 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
529 freeing it.
530
66a93674
VS
5312013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
532
533 Implement USBDebug (full USB stack variant).
534
c9f0c134
VS
5352013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
536
537 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
538 unless they have unexpected values.
539
cfe1288b
VS
5402013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
541
542 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
543 grub_print_error.
544
e42b9969
VS
5452013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
546
547 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
548 zero-out of port structure.
549
cf94fd62
VS
5502013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
551
552 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
553 of extended attributes.
554
f81ef4b5
AB
5552013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
556
557 * util/grub-install.in: change misleading comment about
558 device.map creation
559
af18fdb4
VS
5602013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
561
562 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
563 when menu highlight color isn't set.
564
08bcec50
M
5652013-01-27 C. Masloch <pushbx@38.de>
566
567 Improve FreeDOS direct loading support compatibility.
568
569 * include/grub/i386/relocator.h (grub_relocator16_state):
570 New member ebp.
571 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
572 variable.
573 (grub_relocator16_boot): Handle %ebp.
574 * grub-core/lib/i386/relocator16.S: Likewise.
575 * grub-core/loader/i386/pc/freedos.c:
576 Load BPB to pass kernel which partition to load from.
577 Check that kernel file is not too large.
578 Set register dl to BIOS unit number as well.
579
7782b8a6
CW
5802013-01-22 Colin Watson <cjwatson@ubuntu.com>
581
582 * util/grub-reboot.in (usage): Document the need for
583 GRUB_DEFAULT=saved.
584 * util/grub-set-default.in (usage): Likewise.
585 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
586
e661c180
VS
5872013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
590 than defining WORDS_BIGENDIAN manually.
591
1c22ca9a
VS
5922013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
593
594 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
595 invariants.
596
d44892fe
CW
5972013-01-21 Colin Watson <cjwatson@ubuntu.com>
598
599 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
600 nested.
601 (blit_comb: add_device_width): Likewise.
602
5fdbaed1
CW
6032013-01-21 Colin Watson <cjwatson@ubuntu.com>
604
605 Remove nested functions from USB iterators.
606
607 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
608 (grub_usb_controller_iterate_hook_t): Likewise.
609 (grub_usb_iterate): Add hook_data argument.
610 (grub_usb_controller_iterate): Likewise.
611 (struct grub_usb_controller_dev.iterate): Likewise.
612
613 Update all implementations and callers.
614
4250985a
VS
6152013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
616
617 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
618 margin when not needed.
619
7d8848f3
VS
6202013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
621
bc136973 622 Make color variables global instead of it being per-terminal.
7d8848f3
VS
623
6242013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
625
bc136973
VS
626 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
627 asterisk.
7d8848f3 628
ed12a003
CW
6292013-01-21 Colin Watson <cjwatson@ubuntu.com>
630
631 Fix powerpc and sparc64 build failures caused by un-nesting memory
632 map iterators.
633
6a0db449
CW
6342013-01-21 Colin Watson <cjwatson@ubuntu.com>
635
636 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
637 parameter declarations.
638
ccd86b21
VS
6392013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
640
641 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
642
822b726b
VS
6432013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
644
645 Improve spkmomdem reliability by adding a separator between bytes.
646
115c2cc1
CW
6472013-01-21 Colin Watson <cjwatson@ubuntu.com>
648
649 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
650 an Acer registration utility with several sightings in the wild.
651 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
652
fc524edf
CW
6532013-01-21 Colin Watson <cjwatson@ubuntu.com>
654
655 Remove nested functions from filesystem directory iterators.
656
657 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
658 (struct grub_fs.dir): Add hook_data argument.
659
660 Update all implementations and callers.
661
53d3e4e3
CW
6622013-01-21 Colin Watson <cjwatson@ubuntu.com>
663
664 * docs/grub.texi (Multi-boot manual config): Fix typo for
665 "recommended".
666
c821711f
LL
6672013-01-20 Leif Lindholm <leif.lindholm@arm.com>
668
669 * util/grub-mkimage.c (main): Postpone freeing arguments.output
670 until after its use in generate_image.
671
6a0debbd
CW
6722013-01-20 Colin Watson <cjwatson@ubuntu.com>
673
674 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
675 initrd size to addr_min, since the initrd will be allocated after
676 this address.
677
f41e08db
AB
6782013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
679
680 * conf/Makefile.common: Fix autogen rules to pass definition
681 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
682
77529e0f
LL
6832013-01-20 Leif Lindholm <leif.lindholm@arm.com>
684
685 * include/grub/elf.h: Update ARM definitions based on binutils.
686
b879aa7b
VS
6872013-01-20 Aleš Nesrsta <starous@volny.cz>
688
689 Split long USB transfers into short ones.
690
8eb8284d
AB
6912013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
692
693 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
694 is interrupted by ESC.
695
08dad2dc
VS
6962013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
697
698 * util/grub-script-check.c (main): Uniform the error message.
699
6c724b85
CW
7002013-01-20 Colin Watson <cjwatson@ubuntu.com>
701
702 Remove nested functions from ELF iterators.
703
25239370
CW
7042013-01-20 Colin Watson <cjwatson@ubuntu.com>
705
706 Remove nested functions from device iterators.
707
708 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
709 (grub_arc_iterate_devs): Add hook_data argument.
710 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
711 (struct grub_ata_dev.iterate): Add hook_data argument.
712 * include/grub/device.h (grub_device_iterate_hook_t): New type.
713 (grub_device_iterate): Add hook_data argument.
714 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
715 (struct grub_disk_dev.iterate): Add hook_data argument.
716 (grub_disk_dev_iterate): Likewise.
717 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
718 Likewise.
719 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
720 Likewise.
721 * include/grub/partition.h (grub_partition_iterate_hook_t): New
722 type.
723 (struct grub_partition_map.iterate): Add hook_data argument.
724 (grub_partition_iterate): Likewise.
725 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
726 (struct grub_scsi_dev.iterate): Add hook_data argument.
727
728 Update all callers.
729
6c0314d6
CW
7302013-01-20 Colin Watson <cjwatson@ubuntu.com>
731
732 Fix typos for "developer" and "development".
733
600dc5f1
VS
7342013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
735
736 Add license header to spkmodem-recv.c.
737
17334a6b
VS
7382013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
739
740 Rewrite spkmodem to use PIT for timing. Double the speed.
741
7d462559
VS
7422013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
743
744 Add new command pcidump.
745
b78d6c32
VS
7462013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
747
748 New terminal outputs using serial: morse and spkmodem.
749
34f71cb8
VS
7502013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
751
752 Improve bidi handling in entry editor.
753
4542e71b
VS
7542013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
755
756 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
757 argument to prevent name collision.
758
09fd6d82
CW
7592013-01-15 Colin Watson <cjwatson@ubuntu.com>
760
761 Remove nested functions from script reading and parsing.
762
763 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
764 getline_data argument, passed to getline.
765 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
766 getline_data argument, passed to grub_parser_split_cmdline.
767 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
768 lexerstate->getline_data to lexerstate->getline.
769 (grub_script_lexer_init): Add getline_data argument, saved in
770 lexerstate->getline_data.
771 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
772 argument, passed to grub_script_parse.
773 * grub-core/script/script.c (grub_script_parse): Add getline_data
774 argument, passed to grub_script_lexer_init.
775 * include/grub/parser.h (grub_parser_split_cmdline): Update
776 prototype. Update all callers to pass appropriate getline data.
777 (struct grub_parser.parse_line): Likewise.
778 (grub_rescue_parse_line): Likewise.
779 * include/grub/reader.h (grub_reader_getline_t): Add void *
780 argument.
781 * include/grub/script_sh.h (struct grub_lexer_param): Add
782 getline_data member.
783 (grub_script_parse): Update prototype. Update all callers to pass
784 appropriate getline data.
785 (grub_script_lexer_init): Likewise.
786 (grub_normal_parse_line): Likewise.
787
788 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
789 data argument.
790 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
791 static instead of nested. Rename to ...
792 (grub_parser_execute_getline): ... this.
793 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
794 data argument.
795 * grub-core/normal/main.c (read_config_file: getline): Make static
796 instead of nested. Rename to ...
797 (read_config_file_getline): ... this.
798 (grub_normal_read_line): Add unused data argument.
799 * grub-core/script/execute.c (grub_script_execute_sourcecode:
800 getline): Make static instead of nested. Rename to ...
801 (grub_script_execute_sourcecode_getline): ... this.
802 * util/grub-script-check.c (main: get_config_line): Make static
803 instead of nested.
804
d0d4b8a0
CW
8052013-01-15 Colin Watson <cjwatson@ubuntu.com>
806
807 Remove nested functions from memory map iterators.
808
809 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
810 argument, passed to hook.
811 * grub-core/kern/i386/coreboot/mmap.c
812 (grub_linuxbios_table_iterate): Likewise.
813 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
814 instead of nested.
815 (grub_machine_mmap_iterate): Add hook_data argument.
816 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
817 Add hook_data argument, passed to hook.
818 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
819 Likewise.
820 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
821 Likewise.
822 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
823 Likewise.
824 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
825 Likewise.
826 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
827 Likewise.
828 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
829 Likewise.
830 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
831 (grub_machine_mmap_iterate): Likewise.
832 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
833 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
834 prototype.
835 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
836 Remove NESTED_FUNC_ATTR from here and from all users.
837 (grub_mmap_iterate): Update prototype.
838 (grub_efi_mmap_iterate): Update prototype. Update all callers to
839 pass appropriate hook data.
840 (grub_machine_mmap_iterate): Likewise.
841
842 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
843 static instead of nested.
844 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
845 Rename to ...
846 (lsmmap_hook): ... this.
847 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
848 Likewise.
849 (grub_efiemu_mmap_fill: fill_hook): Likewise.
850 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
851 heap_init): Likewise.
852 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
853 Rename to ...
854 (mmap_iterate_hook): ... this.
855 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
856 Likewise.
857 * grub-core/lib/ieee1275/relocator.c
858 (grub_relocator_firmware_get_max_events: count): Likewise.
859 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
860 to ...
861 (grub_relocator_firmware_fill_events_iter): ... this.
862 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
863 hook): Likewise. Rename to ...
864 (grub_relocator_alloc_chunk_align_iter): ... this.
865 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
866 Rename to ...
867 (generate_e820_mmap_iter): ... this.
868 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
869 Rename to ...
870 (count_hook): ... this.
871 (grub_linux_boot: hook): Likewise. Rename to ...
872 (grub_linux_boot_mmap_find): ... this.
873 (grub_linux_boot: hook_fill): Likewise. Rename to ...
874 (grub_linux_boot_mmap_fill): ... this.
875 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
876 hook): Likewise. Rename to ...
877 (grub_fill_multiboot_mmap_iter): ... this.
878 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
879 hook): Likewise. Rename to ...
880 (count_hook): ... this.
881 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
882 hook): Likewise. Rename to ...
883 (grub_fill_multiboot_mmap_iter): ... this.
884 * grub-core/loader/powerpc/ieee1275/linux.c
885 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
886 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
887 Likewise. Rename to ...
888 (alloc_phys_choose): ... this.
889 (determine_phys_base: get_physbase): Likewise.
890 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
891 find_hook): Likewise.
892 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
893 (malloc_hook: count_hook): Likewise.
894 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
895 Likewise. Rename to ...
896 (lower_hook): ... this.
897 (grub_mmap_get_upper: hook): Likewise. Rename to ...
898 (upper_hook): ... this.
899 (grub_mmap_get_post64: hook): Likewise. Rename to ...
900 (post64_hook): ... this.
901 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
902 Likewise. Rename to ...
903 (lower_hook): ... this.
904 (grub_mmap_get_upper: hook): Likewise. Rename to ...
905 (upper_hook): ... this.
906 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
907 (grub_mmap_iterate: fill_hook): Likewise.
908 (fill_mask): Pass addr and mask within a single struct.
909 (grub_cmd_badram: hook): Make static instead of nested. Rename
910 to ...
911 (badram_iter): ... this.
912 (grub_cmd_cutmem: hook): Likewise. Rename to ...
913 (cutmem_iter): ... this.
914
22099030
VS
9152013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
916
917 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
918 delimit path in strings using quotes.
919 * util/getroot.c (grub_guess_root_devices): Likewise.
920 (grub_make_system_path_relative_to_its_root): Likewise.
921 * util/grub-probe.c (probe): Likewise.
922 * util/ieee1275/ofpath.c (find_obppath): Likewise.
923 (xrealpath): Likewise.
924
4a9950ec
VS
9252013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
926
927 Fix compilation with older compilers.
928
929 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
930 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
931 declarations.
932 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
933 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
934 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
935 identifier with b.
936 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
937 * include/grub/crypto.h: Add type defines.
938 * util/import_gcrypth.sed: Remove duplicate type defines.
939
adcc6020
VS
9402013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
941
942 New command list_trusted.
943
944 * grub-core/commands/verify.c (grub_cmd_list): New function.
945
a4528937
CW
9462013-01-13 Colin Watson <cjwatson@ubuntu.com>
947
948 * util/grub-mkimage.c (generate_image): Fix "size of public key"
949 info message.
950
ca3a7446
CW
9512013-01-13 Colin Watson <cjwatson@ubuntu.com>
952
953 Remove nested functions from PCI iterators.
954
955 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
956 passed to hook. Update all callers to pass appropriate hook data.
957 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
958 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
959 Remove NESTED_FUNC_ATTR from here and from all users.
960 (grub_pci_iterate): Update prototype.
961 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
962 instead of nested. Rename to ...
963 (grub_cs5536_find_iter): ... this.
964 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
965 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
966 Likewise.
967 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
968 Likewise.
969 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
970 Likewise.
971 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
972 Likewise.
973 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
974 * grub-core/video/radeon_fuloong2e.c
975 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
976 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
977 find_card): Likewise.
978 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
979 Likewise.
980
f8e98fee
VS
9812013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
982
983 * grub-core/commands/verify.c: Mark messages for translating.
984
055b36b6
VS
9852013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
986
987 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
988 fatal.
989
f7ff879b
VS
9902013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
991
992 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
993 fatal.
994
9952013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
996
997 * autogen.sh: Do not try to delete nonexistant files.
998 * util/import_gcrypth.sed: Add some missing header removals.
999
01323d49
CW
10002013-01-12 Colin Watson <cjwatson@ubuntu.com>
1001
1002 Clean up dangling references to grub-setup.
1003 Fixes Ubuntu bug #1082045.
1004
1005 * docs/grub.texi (Images): Refer generally to grub-install rather
1006 than directly to grub-setup.
1007 (Installing GRUB using grub-install): Remove direct reference to
1008 grub-setup.
1009 (Device map) Likewise.
1010 (Invoking grub-install): Likewise.
1011 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1012 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1013 * util/grub-install.in (usage): Likewise.
1014
1015 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1016 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1017 grub-setup.
1018 * configure.ac: Remove grub_setup output variable.
1019
1020 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1021 to grub-bios-setup.
1022 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1023 grub-setup to grub-sparc64-setup.
1024
5e3b8dcb
VS
10252013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 Import gcrypt public-key cryptography and implement signature checking.
1028
535714bd
VS
10292013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * grub-core/fs/ntfs.c: Ue more appropriate types.
1032 * grub-core/fs/ntfscomp.c: Likewise.
1033 * include/grub/ntfs.h: Likewise.
1034
3e4f3566
VS
10352013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1036
1037 Support Apple FAT binaries on non-Apple platforms.
1038
1039 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1040 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1041 Likewise.
1042 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1043 Apple FAT binaries.
1044
4dedb13f
VS
10452013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1048 sector devices.
1049
f8861eaf
CW
10502013-01-07 Colin Watson <cjwatson@ubuntu.com>
1051
1052 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1053 explicitly zeroing elements.
1054 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1055 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1056 of elements in a structure already allocated using grub_zalloc.
1057 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1058
86065b0a
CW
10592013-01-07 Colin Watson <cjwatson@ubuntu.com>
1060
1061 * docs/grub.texi (grub_cpu): New subsection.
1062 (grub_platform): Likewise.
1063
c6f1e92f
VS
10642013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1065
1066 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1067
f797ec85
VS
10682013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1069
1070 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1071 divisions.
1072
033d0b4b
VS
10732013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1074
1075 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1076 * grub-core/fs/ntfscomp.c: Likewise.
1077 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1078 (grub_ntfs_comp): Likewise.
1079
21d1b9a0
VS
10802013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1083 Rename to ...
1084 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1085 of groups_per_block. All users updated.
1086
10ca8645
VS
10872013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1088
1089 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1090 grub_error properly.
1091 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1092 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1093
a4c3ed4c
VS
10942013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1097 always in /boot/zfs.
1098 Reported by: Yuta Satoh.
1099
0b716507
YS
11002013-01-03 Yuta Satoh <nigoro>
1101
1102 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1103 ${grub_probe}
1104
00c05e22
VS
11052013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 * configure.ac: Extend -Wno-trampolines to host.
1108
dadddb76
VS
11092013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1112 entry->len = 0.
1113
54ce53ca
CW
11142013-01-03 Colin Watson <cjwatson@ubuntu.com>
1115
1116 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1117 (Invoking grub-script-check): Likewise.
1118
8912efca
CW
11192013-01-03 Colin Watson <cjwatson@ubuntu.com>
1120
1121 * docs/grub.texi (Invoking grub-mount): New section.
1122 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1123
c3fc8394
CW
11242013-01-02 Colin Watson <cjwatson@ubuntu.com>
1125
1126 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1127 test failures, so that a failing unit test correctly causes 'make
1128 check' to fail.
1129
45d26abb
CW
11302013-01-02 Colin Watson <cjwatson@ubuntu.com>
1131
1132 Fix failing printf test.
1133
1134 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1135 '$' in the correct order when collecting type information.
1136
971dd2c6
CW
11372013-01-02 Colin Watson <cjwatson@ubuntu.com>
1138
1139 * docs/grub.texi (configfile): Explain environment variable
1140 handling.
1141 (source): New section.
1142 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1143
5c67ea6c
CW
11442012-12-31 Colin Watson <cjwatson@ubuntu.com>
1145
1146 Remove several trivially-unnecessary uses of nested functions.
1147
1148 * grub-core/commands/i386/pc/sendkey.c
1149 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1150 instead of nested.
1151 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1152 Rename to ...
1153 (legacy_file_getline): ... this.
1154 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1155 Likewise.
1156 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1157 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1158 to ...
1159 (probe_dummy_iter): ... this.
1160 * grub-core/kern/i386/coreboot/mmap.c
1161 (grub_linuxbios_table_iterate: check_signature): Likewise.
1162 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1163 check_varstate): Likewise. Mark inline.
1164 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1165 an additional parameter.
1166 (find_long: fnd_long): Likewise. Pass two additional parameters.
1167 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1168 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1169 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1170 Likewise. Rename to ...
1171 (grub_cmos_find_port_iter): ... this.
1172 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1173 Rename to ...
1174 (find_rtc_iter): ... this.
1175
1176 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1177 function directly into the function body, since it is only called
1178 once.
1179
33a68ac6
CW
11802012-12-30 Colin Watson <cjwatson@ubuntu.com>
1181
1182 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1183 __attribute__ ((unused)).
1184 * grub-core/video/bochs.c (find_card): Likewise.
1185 * grub-core/video/cirrus.c (find_card): Likewise.
1186 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1187 * grub-core/video/sis315pro.c (find_card): Likewise.
1188 * grub-core/video/sm712.c (find_card): Likewise.
1189
608b647a
CW
11902012-12-28 Colin Watson <cjwatson@ubuntu.com>
1191
1192 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1193 Fixes Savannah bug #37821.
1194
fd49ceb3
CW
11952012-12-28 Colin Watson <cjwatson@ubuntu.com>
1196
1197 Apply program name transformations at build-time rather than at
1198 run-time. Fixes Debian bug #696465.
1199
1200 * acinclude.m4 (grub_TRANSFORM): New macro.
1201 * configure.ac: Create output variables with transformed names for
1202 most programs.
1203 * util/bash-completion.d/grub-completion.bash.in: Use
1204 pre-transformed variables for program names.
1205 * util/grub-install.in: Likewise.
1206 * util/grub-kbdcomp.in: Likewise.
1207 * util/grub-mkconfig.in: Likewise.
1208 * util/grub-mkconfig_lib.in: Likewise.
1209 * util/grub-mknetdir.in: Likewise.
1210 * util/grub-mkrescue.in: Likewise.
1211 * util/grub-mkstandalone.in: Likewise.
1212 * util/grub-reboot.in: Likewise.
1213 * util/grub-set-default.in: Likewise.
1214 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1215 * tests/util/grub-shell-tester.in: Remove unused assignment.
1216 * tests/util/grub-shell.in: Likewise.
1217 * util/grub.d/00_header.in: Likewise.
1218
7024b3c0
CW
12192012-12-28 Colin Watson <cjwatson@ubuntu.com>
1220
1221 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1222
1223 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1224 HAVE_RAW_DECL_GETS.
1225 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1226
e3501b13
VS
12272012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1228
1229 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1230 Reported by: Eriks Latosheks <foresterlv>.
1231
b40c88a9
VS
12322012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 * docs/grub.texi (Network): Update instructions on generating netboot
1235 image.
1236
ce96d01c
VS
12372012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1240 around device name if necessarry.
1241
0f596201
PFS
12422012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1243
1244 * util/grub-install.in: Follow the symbolic link parameter added
1245 to the file command.
1246
600d5bdb
AB
12472012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1248
1249 * util/grub-install.in: Remove stale TODO.
1250
64ebd2f4
PFS
12512012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1252
1253 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1254 dynamic allocation for the bootpath buffer.
1255
74b2fe3e
DTB
12562012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1257
1258 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1259 window too small.
1260
969b804f
VS
12612012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1264 argument rather than font name. All users updated.
1265 (grub_gfxterm_set_window): Likewise.
1266
b9f5ebd6
VT
12672012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1268
1269 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1270 from working.
1271
258f43b7
VS
12722012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1273
1274 * util/getroot.c (convert_system_partition_to_system_disk): Support
1275 nbd disks.
1276
cc1ce5f9
VS
12772012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1280 infinite loop on corrupted FS.
1281
e77a16ca
VS
12822012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 Fix big-endian mtime.
1285
1286 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1287 together sec and usec.
1288 (grub_ufs_dir): Use correct byteswapping for UFS time.
1289
d9c48c7b
VS
12902012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1291
1292 Support big-endian UFS1.
1293
1294 * Makefile.util.def (libgrubmods): Add ufs_be.c
1295 * grub-core/Makefile.core.def (ufs1_be): New module.
1296 * grub-core/fs/ufs_be.c: New file.
1297 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1298 the file.
1299
2f9f40ba
LL
13002012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1301
1302 * include/grub/types.h: Fix functionality unaffecting typo in
1303 GRUB_TARGET_WORDSIZE conditional macro.
1304
48ff0889
PFS
13052012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1306
1307 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1308
03711240
GS
13092012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1310
1311 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1312 that /netbsd appears first (when it exists).
1313
a31b11bd
CJ
13142012-10-12 Christoph Junghans <ottxor@gentoo.org>
1315
1316 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1317 Fixes Savannah bug #37558.
1318
e8a5d5d4
CW
13192012-10-12 Colin Watson <cjwatson@ubuntu.com>
1320
1321 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1322 description of extract_entries_configfile.
1323
13242012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
1325
1326 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1327 preferred_address.
1328 (grub_cmd_linux): Likewise.
1329 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1330 preferred_lifetime. Update all users.
1331
288c757d
CW
13322012-09-26 Colin Watson <cjwatson@ubuntu.com>
1333
1334 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1335 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1336
0d35da3f
CW
13372012-09-26 Colin Watson <cjwatson@ubuntu.com>
1338
1339 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1340 errors from grub-probe to /dev/null, not stdout.
1341
b78c3127
VS
13422012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1345 sector 1.
1346
473959f0
CW
13472012-09-24 Colin Watson <cjwatson@ubuntu.com>
1348
1349 * util/grub-install.in: Make the error message if $source_dir
1350 doesn't exist more useful.
1351
794c8c33
CW
13522012-09-22 Colin Watson <cjwatson@ubuntu.com>
1353
1354 Fix grub-emu build on FreeBSD.
1355
1356 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1357 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1358 headers on Linux.
1359 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1360 implementation is currently Linux-specific.
1361 * util/getroot.c (exec_pipe): Define only on Linux or when either
1362 libzfs or libnvpair is unavailable.
1363 (find_root_devices_from_poolname): Remove unused path variable.
1364
86d08fdb
CW
13652012-09-19 Colin Watson <cjwatson@ubuntu.com>
1366
1367 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1368 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1369 should fit before end == 63.
1370
735abf54
CW
13712012-09-19 Colin Watson <cjwatson@ubuntu.com>
1372
1373 * util/grub-setup.c (write_rootdev): Remove unused core_img
1374 parameter. Update all callers.
1375 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1376 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1377 GRUB_SETUP_BIOS.
1378
140acd3c
VS
13792012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1380
1381 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1382 (grub_add_tab): New function.
1383 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1384 * util/grub.d/10_illumos.in: Likewise.
1385 * util/grub.d/10_kfreebsd.in: Likewise.
1386 * util/grub.d/10_linux.in: Likewise.
1387 * util/grub.d/10_netbsd.in: Likewise.
1388 * util/grub.d/10_windows.in: Likewise.
1389 * util/grub.d/10_xnu.in: Likewise.
1390 * util/grub.d/20_linux_xen.in: Likewise.
1391 * util/grub.d/30_os-prober.in: Likewise.
1392
7ddffdad
VS
13932012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1394
1395 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1396 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1397 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1398 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1399 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1400 ieee1275-nocursor.
1401 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1402 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1403
4e092454
VS
14042012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1407 le-conversion.
1408 Reported by: BURETTE, Bernard.
1409
735abf54 14102012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
1411
1412 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1413 from comment.
1414
dfd39dbd
CW
14152012-09-14 Colin Watson <cjwatson@ubuntu.com>
1416
1417 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1418 IEEE1275 machines. Fixes powerpc-emu compilation.
1419 * include/grub/terminfo.h: Likewise.
1420
3bfa763c
VS
14212012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1422
1423 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1424 a const pointer.
1425 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1426 const pointer.
1427 (efiemu_set_variable): Make vendor_guid a const pointer.
1428
250e475b
VS
14292012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 Don't require grub-mkconfig_lib to generate manpages for programs.
1432
1433 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1434 dependencies, don't add grub-mkconfig_lib.
1435 (program): Pass empty adddeps.
1436 (script): Pass grub-mkconfig_lib as adddeps.
1437
592fd0e4
VS
14382012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1441 * util/getroot.c (grub_find_device): Likewise.
1442 (get_mdadm_uuid): Likewise.
1443 (grub_util_is_imsm): Likewise.
1444 (grub_util_pull_device): Likewise.
1445 * util/grub-probe.c (probe): Likewise.
1446
801a3027
BG
14472012-09-10 Benoit Gschwind <gschwind>
1448
1449 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1450 (devs): Add devpath_8.
1451
c5052c81
PJ
14522012-09-08 Peter Jones <pjones@redhat.com>
1453
1454 * grub-core/Makefile.core.def (efifwsetup): New module.
1455 * grub-core/commands/efi/efifwsetup.c: New file.
1456 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1457 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1458 New define.
1459 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1460
8e832f71
JS
14612012-09-05 Jiri Slaby <jslaby@suse.cz>
1462
1463 * configure.ac: Add SuSe path.
1464
f0f55752
CW
14652012-09-05 Colin Watson <cjwatson@ubuntu.com>
1466
1467 * NEWS: Fix typo.
1468
ecadc4c2
CW
14692012-09-05 Colin Watson <cjwatson@ubuntu.com>
1470
1471 * util/import_gcry.py: Sort cipher_files, to make build system
1472 generation more deterministic.
1473
64498f25
VS
14742012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1475
1476 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1477 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1478 (grub_set_datetime): Likewise.
1479
9cc836a2
VS
14802012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1483 warnings.
1484
bcfcea01
VS
14852012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1488
a4099485
VS
14892012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1492
265c162a
CW
14932012-09-04 Colin Watson <cjwatson@ubuntu.com>
1494
1495 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1496 required for checkouts from bzr, but it may be useful for users or
1497 distributors wishing to update translations against a tarball
1498 distribution, and it can be helpful for the tarball to be a superset
1499 of what's in bzr.
1500
3d171e95
CW
15012012-09-04 Colin Watson <cjwatson@ubuntu.com>
1502
1503 * Makefile.am (EXTRA_DIST): Add
1504 grub-core/tests/boot/linux.init-mips.S,
1505 grub-core/tests/boot/linux.init-ppc.S, and
1506 grub-core/tests/boot/linux-ppc.cfg.
1507
f2c2503e
CW
15082012-09-04 Colin Watson <cjwatson@ubuntu.com>
1509
1510 * grub-core/mmap/mips/loongson: Remove empty directory.
1511
15122012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
1513
1514 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1515 gone.
1516
ab2163d5
CW
15172012-09-04 Colin Watson <cjwatson@ubuntu.com>
1518
1519 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1520 grub-sparc64-setup.
1521
ce938140
GS
15222012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1523
1524 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1525
529f58a5
GS
15262012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1527
1528 * po/POTFILES.in: Regenerated.
1529
16cf79e9
GS
15302012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1531
1532 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1533 (NetBSD): New subsection.
1534
39b27f1e 15352012-07-22 Ales Nesrsta <starous@volny.cz>
1536
1537 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1538 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1539
a885261b
VS
15402012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1543 * util/grub.d/10_hurd.in: Add missing quoting.
1544 * util/grub.d/10_illumos.in: Likewise.
1545 * util/grub.d/10_kfreebsd.in: Likewise.
1546 * util/grub.d/10_linux.in: Likewise.
1547 * util/grub.d/20_linux_xen.in: Likewise.
1548
7bd29c01
VS
15492012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1550
1551 New command `lsefi'.
1552
1553 * grub-core/Makefile.core.def (lsefi): New module.
1554 * grub-core/commands/efi/lsefi.c: New file.
1555 * include/grub/efi/api.h: Add more GUIDs.
1556
ac625d8f
VS
15572012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1558
1559 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1560 (grub_bsd_elf32_hook): Likewise.
1561 (grub_bsd_elf64_size_hook): Likewise.
1562 (grub_bsd_elf64_hook): Likewise.
1563 (grub_bsd_load_elf): Likewise.
1564
e73bb801
VS
15652012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1568 if hash function is unavailable.
1569 (dec_stream_header): Likewise.
1570
e81db8b5
VS
15712012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1572
1573 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1574 filter state.
1575
d187a1c3
VS
15762012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 Fix coreboot compilation.
1579
1580 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1581 (grub_vga_text_init_real): ... this.
1582 (grub_vga_text_fini): Rename to ...
1583 (grub_vga_text_fini_real): ... this.
1584
91a05f64
VS
15852012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1586
1587 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1588
6af96df7
VS
15892012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1590
1591 * grub-core/lib/legacy_parse.c: Support clear and testload.
1592
4d569e12
VS
15932012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1594
1595 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1596
073b57bb
VS
15972012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1598
1599 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1600
a706f4cc
VS
16012012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * grub-core/net/tftp.c (ack): Fix endianness problem.
1604 (tftp_receive): Likewise.
1605 Reported by: Michael Davidsaver.
1606
e7850aa9
VS
16072012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1608
1609 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1610
16112012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1614 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1615 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1616
35692881
VS
16172012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1618
1619 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1620 efi_mmap_size.
1621 Reported by: Stuart Hayes.
1622
c35fc5bd
VS
16232012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1626
1627 * grub-core/Makefile.core.def (mda_text): New module.
1628 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1629 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1630 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1631 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1632 here.
1633 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1634 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1635 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1636 here.
1637 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1638 to ..
1639 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1640 ... here
1641 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1642 here.
1643 * grub-core/term/i386/vga_common.c: Removed.
1644 * include/grub/i386/vga_common.h: Likewise.
1645 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1646 (grub_vga_cr_bw_read): Likewise.
1647 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1648 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1649 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1650 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1651 grub_vga_cr_read/grub_vga_cr_write.
1652 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1653
5f91f701
VS
16542012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 * configure.ac: Bump version to 2.00.
1657 * grub-core/normal/main.c (features): Add feature_200_final.
1658
0c4f85f6
VS
16592012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
16602012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1661
1662 * NEWS: Fix unclarity and language mistakes.
1663
f923ad22
VS
16642012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1667 additional size to 3 pages.
1668 Reported by: Stuart Hayes.
1669
d22029ba
VS
16702012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1671
1672 * NEWS: Add 2.00 entry.
1673
58eee08f
VS
16742012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1677 put explicit "/" for empty path.
1678 (wildcard_expand): Improve dprintf.
1679
c59bdff7
VS
16802012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1681
1682 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1683 it's equal to currnode. This can happen with "" symlink.
1684
5e6a440a
YB
16852012-06-27 Yves Blusseau <blusseau@zetam.org>
1686
1687 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1688 echo shell command by printf command.
1689
73a68bcb
VS
16902012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1691
1692 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1693 the value returned by firmware is the maximal position, not diumension.
1694 (grub_terminfo_output_state): Use a more sane fallback.
1695
392a603b
VS
16962012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1697
1698 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1699
42d0867f
VS
17002012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1701
1702 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1703 frequency to 150 MHz.
1704
489509f4
VS
17052012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1706
1707 Apple fixes.
1708
1709 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1710 __APPLE_
1711 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1712 definition.
1713 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1714
9f3fc883
VS
17152012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 Handle slash in HFS label.
1718
1719 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1720 (grub_hfs_dir): Tanslate slash.
1721 (grub_hfs_label): Don't translate slash.
1722
54853fd7
VS
17232012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1726 network protocol listing since it introduces problematic dependency on
1727 net module.
1728
4dc02ddf
VS
17292012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1732
c50c867d
VS
17332012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1734
1735 Init video early on yeeloong to avoid being rebooted by watchdog.
1736
1737 * grub-core/Makefile.am (gensm712): New target.
1738 (sm712_start.S): Likewise.
1739 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1740 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1741 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1742 description.
1743 * include/grub/vga.h: Move registry definitions to...
1744 * include/grub/vgaregs.h: ... here.
1745
5f92c8a1
VS
17462012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1749 signedness.
1750
e9e6f111
VS
17512012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1754 platforms with firmware disk drivers in the core.
1755
754ad9eb
VS
17562012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1757
1758 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1759 informative verbose message.
1760 (read_lv): Handle 64-bit segment size.
1761
315654c2
VS
17622012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1763
1764 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1765
fb022c79
VS
17662012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1767
1768 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1769 character but still remove trainling spaces.
1770 (grub_fat_label): Ignore archive flag.
1771
8645f72c
VS
17722012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1773
1774 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1775 cast between linux_kernel_header and linux_kernel_params.
1776
36498496
VS
17772012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1778
1779 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1780 type for size.
1781 (grub_raid6_recover_func_t): Likewise.
1782 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1783 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1784
0b5ea6b8
VS
17852012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1788
650cfcfe
GS
17892012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1790
1791 Fix overflow.
1792
1793 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1794 [__NetBSD__]: Add explicit cast before bitshift.
1795
8a4d6a44
VS
17962012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 * configure.ac: Bump to 2.00~rc1.
1799
2fb97ed3
VS
18002012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1801
1802 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1803 half of $a0.
1804
1fa097dc
VS
18052012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18062012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1807
1808 * docs/grub.texi: Fix search syntax.
1809 (Multi-boot manual config): Put msdos rather than GPT example.
1810 Grammar corrections.
1811
c890ba78
VS
18122012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1813
1814 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1815
0f92dca7
VS
18162012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1817
1818 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1819
3988c4a0
VS
18202012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1823 message on double free. Put the value of magic in case of mismatch.
1824
9e86d4c5
VS
18252012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1826
1827 Speed-up video on yeeloong.
1828
1829 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1830 add cached_ptr.
1831 (grub_video_sm712_video_fini): Unmap cached_ptr.
1832 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1833 (grub_video_sm712_set_active_render_target): Removed.
1834 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1835 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1836 sync caches.
1837
ed24c312
VS
18382012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1839
1840 Avoid flushing the same line multiple times on loongson.
1841
1842 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1843 Step in 32 bytes and not 1 byte.
1844 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1845 Likewise.
1846
d1718e7d
VS
18472012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1850 subvolumes.
1851
982f1909
VS
18522012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 Implement flow control for http.
1855
1856 * grub-core/net/http.c (parse_line): Handle response 206.
1857 (http_receive): Stall if too many packets are in the queue.
1858 (http_establish): Fix range header.
1859 (http_seek): Fix double free.
1860 (http_close): Likewise.
1861 (http_packets_pulled): New function.
1862 (grub_http_protocol): Set http_seek
1863 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1864 (ack_real): Set window depending on i_stall.
1865 (grub_net_send_tcp_packet): Likewise.
1866 (grub_net_tcp_stall): New function.
1867 (grub_net_tcp_unstall): Likewise.
1868 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1869 (grub_net_tcp_unstall): Likewise.
1870
bd407d6e
VS
18712012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1874
c7564b8e
VS
18752012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1876
1877 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1878
a3706162
VS
18792012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1880
1881 * tests/util/grub-shell.in: Fix a typo.
1882
b27069e0
VS
18832012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 Implement flow control for tftp.
1886
1887 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1888 packets but stop only if stop condition is satisfied.
1889 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1890 `stall' instead of `eof' as stop condition.
1891 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1892 (http_err): Likewise.
1893 * grub-core/net/tftp.c (ack): Replace the first argument with data
1894 instead of socket.
1895 (tftp_receive): Stall if too many packets are in wait queue.
1896 (tftp_packets_pulled): New function.
1897 (grub_tftp_protocol): Set packets_pulled.
1898 * include/grub/net.h (grub_net_packets): New field count.
1899 (grub_net_put_packet): Increment count.
1900 (grub_net_remove_packet): Likewise.
1901 (grub_net_app_protocol): New field `packets_pulled'.
1902 (grub_net): New field `stall'.
1903
6b9cfac6
VS
19042012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1905
1906 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1907 sync part to handle them.
1908
f35abd81
VS
19092012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1910
1911 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1912 * grub-core/net/drivers/ieee1275/ofnet.c
1913 (grub_ieee1275_net_config_real): Likewise.
1914
0e7ec820
VS
19152012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1916
1917 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1918 the direct route for server/gateway.
1919
9d611a31
VS
19202012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1921
1922 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1923 IP address to server name since we may not hame the DNS.
1924
418f45ab
VS
19252012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1928 freeing random buffer on failure.
1929 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1930
44a0efc1
VS
19312012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1932
1933 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1934
531e2241
VS
19352012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1936
1937 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1938 reserved bytes.
1939 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1940 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1941 Handle malloc error correctly.
1942
cde393c9
VS
19432012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1944
1945 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1946 blocks.
1947
538478d0
VS
19482012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1949
1950 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1951 increment.
1952
9b55efe0
VS
19532012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1954
1955 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1956 none is explicitly specified.
1957
9eb832c3
VS
19582012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1961 while reallocating.
1962
d6b7c7c9
VS
19632012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1964
1965 Respect netmask from bootp/dhcp.
1966
1967 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1968 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1969 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1970 into ...
1971 (grub_net_add_ipv4_local): ... this.
1972 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1973 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1974 (grub_net_add_ipv4_local): New proto.
1975
67caf9eb
VS
19762012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1979 determining EFI memory map size.
1980
43657558
VS
19812012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1984
eb6d0dd3
VS
19852012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1988 when looking for partition separator.
1989
31230544
VS
19902012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1993 Escape commas.
1994
918a2517
VS
19952012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1996
1997 Restructure FAT driver to avoid hook in label reading as it hits a
1998 GCC bug.
1999
2000 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2001 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2002 (grub_fat_iterate_dir): Split into ...
2003 (grub_fat_iterate_init): ... this, ...
2004 (grub_fat_iterate_fini): ... this, ...
2005 (grub_fat_iterate_dir_next): ... and this. All users updated.
2006
9f1d654e
VS
20072012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2008
2009 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2010 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2011 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2012 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2013 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2014 New fields last_key and last_key_time.
2015 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2016 extended key-esc into extended key-extended key.
2017
52f0f643
VS
20182012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 Avoid unnecessary memcpy of whole video buffer.
2021
2022 * grub-core/video/fb/video_fb.c (dirty): New struct.
2023 (framebuffer): Add members current_dirty and previous_dirty.
2024 (dirty): New function.
2025 (grub_video_fb_fill_rect): Update dirty.
2026 (common_blitter): Likewise.
2027 (grub_video_fb_scroll): Likewise.
2028 (doublebuf_blit_update_screen): Copy only dirty part.
2029 (doublebuf_pageflipping_update_screen): Likewise.
2030 (grub_video_fb_doublebuf_blit_init): Init dirty.
2031 (doublebuf_pageflipping_init): Likewise.
2032 (grub_video_fb_setup): Likewise.
2033
e169a180
VS
20342012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2035
2036 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2037 poll rate.
2038
48556879
VS
20392012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2040
2041 Fix wildcard regexp dot and other special characters handling.
2042 Reported by: Robert Mabee.
2043
2044 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2045 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2046 (split_path): Trigger expansion on '?'.
2047 (unescape): New function.
2048 (wildcard_expand): Unescape parts copied without globbing.
2049 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2050 (grub_script_arglist_to_argv): Don't unescape expansions.
2051
0494408e
VS
20522012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 * include/grub/net.h (grub_net_card): New member txbufsize.
2055 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2056 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2057 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2058 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2059 txbufsize.
2060 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2061 compatible property to check for macs. Set
2062 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2063 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2064 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2065 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2066 (send_card_buffer): Use txbuf.
2067 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2068 nested function out of the parent while on it.
2069
cc35fe8f
VS
20702012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2071
2072 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2073 presence check.
2074 (grub_ieee1275_net_config_real): Fix config pointer.
2075
970a0a09
VS
20762012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2077
2078 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2079 filename parsing to non-block devices.
2080
3e19bf87
VS
20812012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2082
2083 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2084
c62d1a0c
VS
20852012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2088 All users updated.
2089
ef76bec3
VS
20902012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2091
2092 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2093 UUID search command even if hints probing failed.
2094
20952012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
2096
2097 * po/POTFILES.in: Regenerated.
2098
70aaf305
VS
20992012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2100
2101 Speed-up video on fuloong.
2102
2103 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2104 New function.
2105 (grub_pci_device_unmap_range): Handle non-cached address.
2106 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2107 add direct_ptr.
2108 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2109 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2110 (grub_video_sis315pro_set_active_render_target): Removed.
2111 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2112 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2113 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2114 sync caches.
2115 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2116 New proto.
2117
10400f0b
VS
21182012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2119
2120 * docs/grub.texi (Multi-boot manual config): New section.
2121
ba67e2c6
VS
21222012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2123
2124 Avoid slow read-back from VRAM.
2125
2126 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2127 Move from here ...
2128 * grub-core/video/fb/video_fb.c
2129 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2130 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2131 (front_target): Remove front_target. Add pages.
2132 (grub_video_fb_init): Skip setting front_pages.
2133 (grub_video_fb_fini): Likewise.
2134 (doublebuf_blit_update_screen): Use pages.
2135 (grub_video_fb_doublebuf_blit_init): Likewise.
2136 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2137 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2138 (grub_video_fb_setup): Prefer doublebuffing.
2139
377c98cb
VS
21402012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2143 gzio.
2144
eac49cff
VS
21452012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2146
2147 Add loongson tests.
2148
2149 * tests/util/grub-shell.in: Handle loongson.
2150 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2151 drivers.
2152 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2153 Reboot instead of shutdown if REBOOT is defined.
2154
0321415e
VS
21552012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2158 sized ports since unlike on real hardware qemu supports only 32-bit
2159 regs.
2160
3f2bdd8f
VS
21612012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2164 * util/grub-mkrescue.in: Handle loongson.
2165
29a049c9
VS
21662012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2167
2168 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2169 Set is_part appropriately.
2170 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2171 names. Canonicalize partition without full disk.
2172
4abde346
VS
21732012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2174
2175 Revert usb-quiesce since it's wrong.
2176
2177 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2178 (grub_ofdisk_init): Don't do quiesce.
2179
61f1d93b
VS
21802012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2181
2182 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2183 PowerMac workaround to Xserves as well.
2184 Information supplied by: Benjamin Herrenschmidt.
2185
a09eb541
VS
21862012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2187
2188 Don't assume that beginning address is also the entry point on ppc.
2189
2190 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2191 (grub_linux_boot): Use linux_entry.
2192 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2193 (grub_linux_load64): Likewise.
2194
505b3c9b
VS
21952012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2198
cbe0b4ef
VS
21992012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2202 needlessly lose the console.
2203
3006e981
VS
22042012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2207 space.
2208
4e5a96b0
VS
22092012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2210
7da036bb
VS
2211 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2212 than current grub_get_rtc() not implemented when booted with
2213 coreboot without TSC.
2214
2215 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2216 Add machine/time.h to kernel headers on loongson.
2217 * grub-core/Makefile.core.def (kernel): Remove
2218 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2219 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2220 (grub_get_rtc): Likewise.
2221 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2222 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2223 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2224 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2225 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2226 rather than installing known non-working time source.
2227 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2228 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2229 * include/grub/time.h: Don't include machine/time.h.
2230 * include/grub/efi/time.h: Removed.
2231 * include/grub/i386/efi/time.h: Likewise.
2232 * include/grub/i386/ieee1275/time.h: Likewise.
2233 * include/grub/powerpc/ieee1275/time.h: Likewise.
2234 * include/grub/sparc64/ieee1275/time.h: Likewise.
2235 * include/grub/x86_64/efi/time.h: Likewise.
2236
22372012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2238
2239 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
2240
2241 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2242 value.
2243 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2244 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2245 with dotless variants when any combining above is present.
2246
5561c22d
VS
22472012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2248
2249 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2250 text and not binary.
2251
96f7e60e
VS
22522012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 Stop polling as soon as we have the packet we were waiting for.
2255
2256 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2257 All users updated.
2258 * grub-core/net/arp.c (have_pending): New var.
2259 (pending_req): Likewise.
2260 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2261 stop indicator.
2262 (grub_net_arp_receive): Set have_pending.
2263 * grub-core/net/dns.c (recv_data): New field stop.
2264 (recv_hook): Set stop.
2265 (grub_net_dns_lookup): Init stop and use as stop condition.
2266 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2267 condition.
2268 * grub-core/net/net.c (grub_net_poll_cards): New argument
2269 stop_condition. Stop when it goes true.
2270 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2271 indicator.
2272 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2273
3e747239
VS
22742012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2275
2276 Keep TX and RX buffers on EFI rather than always allocate new ones.
2277
2278 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2279 card. All users updated.
2280 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2281 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2282 (get_card_packet): Likewise.
2283 (grub_efinet_findcards): Init new fields.
2284
f695e99a
VS
22852012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2286
2287 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2288 compilation error on sparc64.
2289
9e5e66d1
VS
22902012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 Use ITC on IA64 rather than broken routine based on daytime.
2293
2294 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2295 ia64.
2296 (grub_get_rtc) [__ia64__]: Likewise.
2297 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2298 (get_itc): New function.
2299 (grub_rtc_get_time_ms): Likewise.
2300 (grub_machine_init): Calibrate ITC.
2301 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2302 Keep only on non-ia64. Don't export since it's broken and used only
2303 if TSC is unavailable.
2304
a1767404
VS
23052012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2308 even if it's used.
2309 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2310 Skip if parent is unused.
2311
34b2bced
VS
23122012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2313
2314 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2315
5e619f40
VS
23162012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2317
2318 Fix wildcard escaping.
2319
2320 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2321 * grub-core/script/execute.c (wildcard_escape): .. to here.
2322 Don't escape dot.
2323 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2324 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2325 Don't escape dot.
2326 * grub-core/script/execute.c (gettext_append): Always escape.
2327 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2328 * grub-core/script/yylex.l: Don't cut away the escaping.
2329 * tests/grub_script_echo1.in: Add tests with wildcard.
2330
c8ca5855
VS
23312012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2332
2333 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2334 (ftdi_hw_configure): Likewise.
2335 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2336 define.
2337 (real_config): Handle 1.5 stop bits.
2338 (pl2303_hw_configure): Likewise.
2339
7183452c
VS
23402012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 * Makefile.am: Add ppc linux bootcheck.
2343 * grub-core/tests/boot/linux-ppc.cfg: New file.
2344 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2345
f57c84cd
VS
23462012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 * tests/grub_script_expansion.in: Skip network protocols.
2349
ecfc6207
VS
23502012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2351
2352 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2353
8d03d284
VS
23542012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2357 --rom-directory.
2358 Add -graft-points.
2359
61c42af0
VS
23602012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2361
2362 ESCC serial driver for conducting sautomated tests in qemu.
2363 Not tested on real hardware.
2364
2365 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2366 * grub-core/term/ieee1275/escc.c: New file.
2367 * grub-core/Makefile.core.def (escc): New module.
2368
08fd1291
VS
23692012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2372 invalid on error.
2373 (serial_hw_fetch): Don't read invalid handle.
2374 (serial_hw_put): Don't write into invalid handle.
2375
08dafeea
VS
23762012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 Add a 1.5 stop bits value.
2379
2380 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2381 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2382 GRUB_SERIAL_STOP_BITS_1_5.
2383
9068fdcf
VS
23842012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2385
2386 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2387 value rather than let it uninited.
2388
f4d5820f
VS
23892012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 * grub-core/commands/wildcard.c (+check_file): New function.
2392 (wildcard_expand): Don't expand to non-existing files, expand with
2393 suffix and not attempt to expand if not needed.
2394
3d2de9a7
VS
23952012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2398 out of partitions containing other partitions.
2399
c5c81ff9
VS
24002012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2401
2402 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2403 on some qemu versions with GRUB.
2404
2405 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2406 define.
2407 (grub_openbsd_bootarg_pcibios): New struct.
2408 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2409 Add PCIINFO.
2410
08a14e0b
VS
24112012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2412
2413 * tests/util/grub-shell.in: Trim firmware output on EFI.
2414
cede3ca3
VS
24152012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2418 and coreboot since it's already in kernel.
2419
558d3a60
VS
24202012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2423 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2424 to here. New return value start. All users updated.
2425 Recursively scan linear mappings.
2426 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2427 proto.
2428 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2429 Use grub_util_get_dm_node_linear_info.
2430 * util/getroot.c (convert_system_partition_to_system_disk): Use
2431 grub_util_info rather than grub_dprintf.
2432 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2433
60fde14d
VS
24342012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2437
2438 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2439 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2440
24bd8838
VS
24412012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2442
2443 * include/grub/types.h (grub_set_unaligned64): New function.
2444 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2445 (setup): Likewise.
2446
7bc06a49
VS
24472012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2450 (grub_ofdisk_fini): Quiesce USB devices.
2451
49cea015
VS
24522012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2455 caches.
2456
8dcbe03b
VS
24572012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2458
2459 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2460
5b258735
VS
24612012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * grub-core/disk/pata.c (grub_pata_pio_read)
2464 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2465 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2466
37ba07eb
VS
24672012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 Extend automated tests to qemu-mips.
2470
2471 * Makefile.am: reorganise tests and enable qemu-mips.
2472 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2473 * grub-core/tests/boot/linux.init-mips.S: New file.
2474 * tests/partmap_test.in: Handle ata0 disks.
2475 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2476 non-pc i386.
2477
070038f8
VS
24782012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2479
2480 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2481 ia64.
2482 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2483 quotes while on it.
2484
004be2cd
VS
24852012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2488 (grub_halt): Likewise.
2489 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2490
b1622487
VS
24912012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * grub-core/term/serial.c (grub_serial_register)
2494 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2495 the behaviour in line with x86 platforms.
2496
b7b4ab33
VS
24972012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2498
2499 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2500 (grub_ata_strncpy): Likewise.
2501 (grub_ata_identify): Add missing byteswaps.
2502
5e3535ae
VS
25032012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2506 byte-swap.
2507 (screen_read_char): Likewise.
2508 (grub_vga_text_cls): Likewise.
2509
c21b17e6
VS
25102012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2513 filenames.
2514 (make_file_path): Likewise.
2515
bf293dec
VS
25162012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2519 machines.
2520 Tested by: Paulo Flabiano Smorigo.
2521 Crucial information about API supplied by: Coleen <Last name unknown>.
2522 Reviewed by: Coleen <Last name unknown>.
2523
81f6ef0e
VS
25242012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * util/grub-mkimage.c: Disable -Wcast-align.
2527
7284143a
VS
25282012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2531 as they are fatal.
2532
b99f3e00
VS
25332012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2534
2535 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2536
944f752d
VS
25372012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2538
2539 * util/grub-probe.c (escape_of_path): Fix double free.
2540
6cce6f38
VS
25412012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * grub-core/commands/videoinfo.c (hook): Show pitch.
2544
1e1eb50e
VS
25452012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2546
2547 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2548
1c715b5a
VS
25492012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2552 (probe): Add ieee1275 to OFW devices.
2553
007ae52d
VS
25542012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2557
4557a36d
VS
25582012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 Handle IBM OFW path.
2561
2562 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2563 available.
2564 (of_path_of_scsi): Handle vdevice.
2565
efbeefe9
VS
25662012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2567
2568 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2569 Allocate in multiples of 16 to avoid adding a few bytes free region the
2570 windows bugs upon.
2571
15a940bb
VS
25722012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2573
2574 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2575 Allocate in multiples of 16 to avoid adding a few bytes free region the
2576 windows bugs upon.
2577 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2578
6e5efd60
VS
25792012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2582 resolutions.
2583 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2584 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2585
0d3d137e
IS
25862012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2587
2588 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2589
45dbe300
VS
25902012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2593 resulted in \\ at the end of the line.
2594
6d8db947
VS
25952012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2596
2597 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2598 (grub_parser_cmdline_state): Likewise.
2599 (grub_parser_split_cmdline): Likewise.
2600
de89d338
VS
26012012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2602
2603 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2604 /dev/root and /dev/dm-*.
2605
00d41dee
VS
26062012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2607
2608 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2609 fix partially stale display.
2610
f95d1f11
VS
26112012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2614 substraction.
2615
6297e197
VS
26162012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2619 Fix MBR remapping workaround.
2620 (grub_util_biosdisk_read) [__linux__]: Likewise.
2621
8a7ecad3
VS
26222012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2623
2624 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2625
2b34f944
VS
26262012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2627
2628 * configure.ac: Bump to beta6.
2629
684aef11
CW
26302012-05-31 Christer Weinigel <christer@weinigel.se>
2631
2632 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2633
05b0bb91
VS
26342012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2637 (grub_cmd_linux): Likewise.
2638
bda36bfa
CW
26392012-05-31 Christer Weinigel <christer@weinigel.se>
2640
2641 Fix EHCI low-speed.
2642
2643 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2644 (GRUB_EHCI_MULT_TWO): Likewise.
2645 (GRUB_EHCI_MULT_THREE): Likewise.
2646 (GRUB_EHCI_CMASK_MASK): New enum value.
2647 (GRUB_EHCI_SMASK_MASK): Likewise.
2648 (GRUB_EHCI_CMASK_OFF): Likewise.
2649 (GRUB_EHCI_SMASK_OFF): Likewise.
2650 (grub_ehci_pci_iter): Enable periodic schedule.
2651 (grub_ehci_parse_notrun): Likewise.
2652 (grub_ehci_restore_hw): Likewise.
2653 (grub_ehci_setup_qh): Set flags for low speed transfers.
2654 (grub_ehci_find_qh): Use periodic list for low speed.
2655 (grub_ehci_setup_transfer): Check periodic queue as well.
2656 (grub_ehci_check_transfer): Likewise.
2657 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2658
e12bcb1c
PFS
26592012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2660
2661 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2662 parameter is used.
2663
bcc75fb3
PJ
26642012-05-31 Peter Jones <pjones@redhat.com>
2665
2666 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2667 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2668 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2669
f19cb95e
VS
26702012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2671
2672 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2673 uninited variable. Allocate at least setup_sects.
2674
a4e5ca80
VS
26752012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2676
2677 Fix handling of EFI with big memory maps.
2678
2679 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2680 (real_mode_mem): Likewise.
2681 (real_mode_target): Likewise.
2682 (real_mode_pages): Likewise.
2683 (prot_mode_pages): Likewise.
2684 (linux_params): New var.
2685 (linux_cmdline): Likewise.
2686 (free_pages): Don't set real mode variables.
2687 (allocate_pages): Don't allocate real mode memory.
2688 (grub_e820_add_region): Remove the limit.
2689 (grub_linux_boot): Allocate and copy real mode memory.
2690 (grub_linux_unload): Free linux_cmdline.
2691 (grub_cmd_linux): Use temporary storage for parameters.
2692 (grub_cmd_initrd): Likewise.
2693 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2694 (linux_kernel_params): Make it 1K big.
2695
ddb73558
VS
26962012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2697
2698 * Makefile.util.def: Remove -Wno-format.
2699 * grub-core/Makefile.core.def: Likewise.
2700
1c4afb60
VS
27012012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * tests/cmp_unit_test.c: Add missing failure message.
2704 * tests/example_unit_test.c: Likewise.
2705 * tests/printf_unit_test.c: Likewise.
2706
941e3a6d
VS
27072012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2710 relaxation of protective MBR requirements.
2711
b105df76
VS
27122012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * configure.ac: Add condition for COND_HOST_XNU.
2715 * Makefile.util.def (10_xnu): New script.
2716 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2717
84e1569e
VS
27182012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2721 objconv bug.
2722
130c0f77
VS
27232012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2724
2725 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2726 Binary on other platforms stays identical.
2727
6fd0b143
VS
27282012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2731 Apple.
2732
0af1751d
VS
27332012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2736
176d5f7d
VS
27372012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2740 rather than defining size_t ourselves to avoid conflict.
2741
7de5e20a
VS
27422012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2745 initialisation to avoid __bzero reference.
2746
f7143efe
VS
27472012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2748
2749 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2750 version.
2751 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2752 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2753 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2754 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2755 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2756
e6ad0555
VS
27572012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2760 * grub-core/kern/misc.c: Likewise.
2761 * grub-core/loader/i386/xnu.c: Likewise.
2762 * include/grub/i386/tsc.h: Likewise.
2763 * include/grub/symbol.h: Likewise.
2764
4a5a3c4a
VS
27652012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2768 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2769 on older compiler.
2770
037f6d90
VS
27712012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2774 Implement Apple flavour.
2775 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2776
f7194551
VS
27772012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2778
2779 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2780 (memmove) [__APPLE__]: Likewise.
2781 (memcpy) [__APPLE__]: Likewise.
2782 (memset) [__APPLE__]: Likewise.
2783 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2784 (memmove) [__APPLE__]: Likewise.
2785 (memcpy) [__APPLE__]: Likewise.
2786 (memset) [__APPLE__]: Likewise.
2787
85a730ca
VS
27882012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2791 dependency discard.
2792
40e80b94
VS
27932012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * grub-core/normal/main.c (read_config_file): Provide config_file and
2796 config_directory.
2797 * util/grub.d/41_custom.in: Use config_directoy when available.
2798
9da59c32
VS
27992012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2800
2801 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2802 (grub_bfs_dir): Likewise.
2803
2787ae53
PJ
28042012-05-27 Peter Jones <pjones@redhat.com>
2805
2806 The old code gives arguments to a printf function which can't work
2807 correctly, and the compiler complains.
2808
2809 * grub-core/tests/example_functional_test.c (example_test): Add
2810 missing text.
2811 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2812 * include/grub/test.h (grub_test_assert_helper): New declaration.
2813 (grub_test_assert): Use grub_test_assert_helper.
2814
526ef13d
VS
28152012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2818 (exfctest): ... this to avoid overlong filenames.
2819 All users updated.
2820
20dd511c
VS
28212012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2822
2823 Handle "." and ".." on squashfs.
2824
2825 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2826 Make inode numbers into stack.
2827 (grub_squash_read_symlink): Use stack.
2828 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2829 (make_root_node): Fill stack.
2830 (grub_squash_open): Use stack.
2831
1d80c62a
VS
28322012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2835 freeing.
2836
d336f652
VS
28372012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2840 stderr on test calls.
2841
8b43f587
VS
28422012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2845
80a3dc3f
VS
28462012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2847
2848 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2849
47e297d4
VS
28502012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2853 "..".
2854
df042ccb
VS
28552012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2858 (grub_hfsplus_iterate_dir): Add "." and "..".
2859
fc977f48
VS
28602012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2863 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2864
f3250e5f
VS
28652012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2868 (find_path): Handle "." and "..".
2869
fd8ed4c5
VS
28702012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2873 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2874 (grub_affs_iterate_dir): Handle hardlinks.
2875
4ce776d2
MG
28762012-05-26 Matthew Garrett <mjg@redhat.com>
2877
2878 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2879 (grub_efi_console_fini): Likewise.
2880 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2881 (grub_video_gop_fill_mode_info): Rename to ...
2882 (grub_video_gop_fill_real_mode_info): ... this.
2883 (grub_video_gop_fill_mode_info): New function.
2884 (grub_video_gop_setup): Setup double framebuffer.
2885 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2886 Free offscreen.
2887 (grub_video_gop_swap_buffers): Copy framebuffer.
2888 (grub_video_gop_fini): Free offscreen buffer.
2889 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2890 New enum.
2891 (grub_efi_gop_blt_pixel): New struct.
2892
683031ba
VS
28932012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 * gentpl.py: Remove error disabling for objconv.
2896
c2deb798
VS
28972012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2898
2899 * configure.ac: Remove -Wunitialized as it's not available on older
2900 compilers.
2901
29022012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
2903
2904 Fix extent overflow comparator.
2905
2906 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2907 (grub_hfsplus_read_block): Set type.
2908 (grub_hfsplus_cmp_extkey): Compare type.
2909
d6b1fd36
VS
29102012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2913
0a9aa0f6
VS
29142012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2915
2916 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2917 than 0.
2918
8360e159
VS
29192012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2922 (dejavu_bold_14.pf2): New target.
2923
501b9e4b
VS
29242012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * configure.ac: Fix djvu font detection.
2927
7026b0e2
VS
29282012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2929
2930 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2931 ext* instead of ext2.
2932
c2a51ade
VS
29332012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2936 name with \0.
2937
8f803a5d
JU
29382012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2939
2940 * docs/grub-dev.texi: Remove dot from .png.
2941
13c6353f
VS
29422012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2945 protective entry in any slot.
2946 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2947 if protective entry is found in any slot.
2948
2949 Protective entry in non-first slot make no sense but is a widespread
2950 brain damage.
2951
4cf6be1b
VS
29522012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2953
2954 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2955
937d1c44
VS
29562012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2959 with old reiserfs.
2960 (grub_reiserfs_open): Don't free root.
2961
021d90ec
VS
29622012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2963
2964 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2965 after freeing for safety.
2966
967b2b64
VS
29672012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2968
2969 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2970 Reported by: Jordan Uggla.
2971
34274d02
JU
29722012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2973
967b2b64
VS
2974 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2975 actual implementation. Specifically, clarify that the grub menu will
2976 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2977 passed.
34274d02 2978
dcaaae9d
BH
29792012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2980
2981 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2982 of r0.
2983
7086ad52
VS
29842012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 Remove unjustified hard dependency of normal.mod on gfxterm.
2987
2988 * include/grub/term.h (grub_term_output): New member fullscreen.
2989 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2990 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2991 (grub_gfxterm): Set .fullscreen.
2992 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2993 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2994
37ed2c9b
VS
29952012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2998 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 2999 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 3000
a4469c88
VS
30012012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3004
4e461486
VS
30052012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3008 a bad FS.
3009
aa78f5c4
VS
30102012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3011
3012 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3013 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3014
197626b5
VS
30152012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3016
3017 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3018 (grub_jfs_mount): Fill caseins.
3019 (grub_jfs_find_file): Respect caseins.
3020
8ad3f28c
VS
30212012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3022
3023 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3024 through UTF-16.
3025
0c6c324e
VS
30262012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3029 New argument origpath. All users updated.
3030
c6666ba6
VS
30312012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3034 (read_attr): Ensure that we read start of possibly compressed block.
3035
e28e5fe5
VS
30362012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3039 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3040 All users updated.
3041
5fc23ab2
VS
30422012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3045 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3046 (dejavu.pf2): Replace with ...
3047 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3048 this.
3049
79dbc21c
VS
30502012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3051
3052 * util/grub.d/20_linux_xen.in: Add missing line.
3053
d2fcfb0c
VS
30542012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3055
3056 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3057 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3058 (grub_utf16_to_utf8): Likewise.
3059
5560e9d6
VS
30602012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3063 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3064 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3065 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3066 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3067 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3068
30692012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
3070
3071 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3072 a bad FS.
3073
5560e9d6 30742012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
3075
3076 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3077 (grub_udf_read_symlink): Handle read_string failure.
3078
5eae3175
VS
30792012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3082 comment.
3083
c1ad82db
VS
30842012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3085
3086 Fix handling of UDF symlinks.
3087
3088 * grub-core/fs/udf.c (read_string): New argument outbuf.
3089 All users updated.
3090 (grub_ufs_read_symlink): Rename to ...
3091 (grub_udf_read_symlink): ... this. All users updated.
3092 Handle symlinks with more than one component.
3093
33eca6e0
VS
30942012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3095
3096 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3097 symlinks. Replace leading colon with a slash.
3098
57f4a70b
VS
30992012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3102 filename.
3103
38c8ee20
VS
31042012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3105
3106 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3107 match in inner node.
3108
2e57f28f
VS
31092012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3110
3111 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3112 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3113 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3114 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3115 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3116 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3117 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3118 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3119 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3120
fe8c2f11
VS
31212012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 Use grub-probe and not cmp to check that disk is empty.
3124
3125 * util/grub-install.in: Use grub-probe for zero-check.
3126 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3127 (probe): Handle PRINT_ZERO_CHECK.
3128 (argp_parser): Handle -t zero_check.
3129
31302012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
3131
3132 Flush block cache on adding disk to device map.
3133
3134 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3135 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3136 adding.
3137 (read_device_map): Likewise.
3138 (open_device): Flush on opening.
3139
690434e8
VS
31402012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3141
3142 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3143 (handle_symlink): Fix off-by-one error.
3144 Canonicalize the target.
3145 (grub_cpio_dir): Canonicalize the name.
3146 Fix memory leak.
3147 Set directory.
3148 (grub_cpio_open): Canonicalize the name.
3149
742d2be6
VS
31502012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3151
3152 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3153 handling.
3154
3244fe96
VS
31552012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3158 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3159
8aeb1837
VS
31602012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3163 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 3164 All users updated.
8aeb1837 3165
9133fd05
VS
31662012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3167
3168 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3169 counterpart.
3170
6d521c5b
VS
31712012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 Fix UFS1 big file support.
3174
3175 * grub-core/fs/ufs.c (INODE): Removed.
3176 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3177 64-bit.
3178 (INODE_MODE): Simplify.
3179 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3180 (grub_ufs_lookup_symlink): Don't use INODE.
3181
21b82e17
VS
31822012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3183
3184 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3185
3186 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3187 (grub_minix_data): Replace log_block_size with block_size.
3188 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3189 (grub_minix_mount): Fill block_size.
3190
31912012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
3192
3193 * configure.ac: Bump to beta5.
3194
f417ed04
VS
31952012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3196
3197 Fix wrapped HFS+ handling.
3198
3199 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3200 blocks_start. All users updated.
3201 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3202 wrapping offset.
3203 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3204
607d282b
VS
32052012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 Fix long symlinks on reiserfs.
3208
3209 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3210 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3211 (grub_reiserfs_iterate_dir): Save size for non-directories.
3212 (grub_reiserfs_open): Don't reread stat block as we already know the
3213 size.
3214 (grub_reiserfs_read): Split into...
3215 (grub_reiserfs_read_real): ... and ...
3216 (grub_reiserfs_read): ...this.
3217
ae16024d
VS
32182012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 Fix non-indexed JFS.
3221
3222 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3223 (grub_jfs_data): New field namecomponentlen.
3224 (grub_jfs_mount): Fill namecomponentlen.
3225 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3226
eea1e26e
VS
32272012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3228
3229 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3230 * tests/grub_script_echo1.in: Add tests.
3231
df760f77
VS
32322012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 * util/grub-install.in: Ignore empty devicetree directory.
3235
5efb817d
B
32362012-05-08 Bean <bean123ch@gmail.com>
3237
3238 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3239 All users updated.
3240 (free_rsm): Free header as well.
3241 (free_old_fragments): Fix memory leak.
3242 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3243 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3244 (destroy_pq): Likewise.
3245 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3246
668ea6d2
VS
32472012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3250 resulting hash as a precaution.
3251
1739b1fe
VS
32522012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3253
3254 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3255 '_' in variable names.
3256 * grub-core/net/net.c (grub_net_network_level_interface_register):
3257 Likewise.
3258
6ae485aa
VS
32592012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3260
3261 Fix AFFS with non-512B blocks.
3262
3263 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3264 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3265 (grub_affs_data): Replace blocksize with log_blocksize.
3266 (grub_affs_read_block): Fix non-512B blocks.
3267 (grub_affs_read_symlink): Likewise.
3268 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3269 (grub_affs_read): Fix non-512B blocks.
3270 (grub_affs_label): Likewise.
3271 (grub_affs_mtime): Likewise.
3272 (grub_affs_mount): Fix block detection routine.
3273
d20fab84
VS
32742012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3275
3276 Add filesystem mtime to AFFS.
3277
3278 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3279 (aftime2ctime): New function.
3280 (grub_affs_dir): Use aftime2ctime.
3281 (grub_affs_label): Fix return value.
3282 (grub_affs_mtime): New function.
3283 (grub_affs_fs): Add mtime.
3284
e87b10f5
VS
32852012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3288 UTF-8.
3289
7dceec9b
VS
32902012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3293 UTF-8.
3294
2f48221f
VS
32952012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3298
dacd85cf
VS
32992012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3300
3301 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3302 flags.
3303 (FLAGS_CASE_SENSITIVE): New enum value.
3304 (cache_entry): New struct.
3305 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3306 cache_size and cache.
3307 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3308 Add log_blocksize and fshelp_flags.
3309 (grub_sfs_read_extent): Handle non-512 blocks.
3310 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3311 (grub_sfs_read_file): Handle non-512 blocks.
3312 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3313 fshelp_flags.
3314 (grub_sfs_read_symlink): Handle non-512 blocks.
3315 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3316 (grub_sfs_dir): Free cache.
3317 (grub_sfs_close): Likewise.
3318
24e9a854
VS
33192012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3320
3321 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3322 filesystems.
3323
62ace64d
VS
33242012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3327
83b2e89c
VS
33282012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3331
75ccaea3
VS
33322012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3335 (grub_sfs_read_extent): Likewise.
3336 (grub_sfs_read_block): Likewise.
3337 (grub_sfs_mount): Likewise.
3338 (grub_sfs_iterate_dir): Likewise.
3339 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3340 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3341
1b8463f2
VS
33422012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3343
3344 Fix errors on compressed NTFS with 512B clusters.
3345
3346 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3347 types.
3348 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3349 not 0.
3350 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3351 Relax check for inline extents.
3352 (ntfscomp): Return correct -1 on error and not 0.
3353
4f8e368f
VS
33542012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * util/grub-install.in: Fix handling of prefix containing spaces.
3357
6f5d5ee8
VS
33582012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3361 (grub_squash_read_data): Fix offset byte-swapping.
3362
ce41ab7a
VS
33632012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3364
3365 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3366 per common usage and preffered in several parts of code.
3367 (grub_memcmp): Likewise.
3368 (grub_strncmp): Likewise.
3369 * include/grub/misc.h (grub_strcasecmp): Likewise.
3370 (grub_strncasecmp): Likewise.
3371 * Makefile.util.def (cmp_test): New test.
3372 (grub_script_strcmp): Likewise.
3373 * tests/cmp_unit_test.c: New file.
3374 * tests/grub_script_strcmp.in: Likewise.
3375 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3376
49717bf4
VS
33772012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 * include/grub/pci.h: Move enums into no-asm part.
3380
0a308f64
VS
33812012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3384
1796965f
ST
33852012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3386
3387 * util/getroot.c (find_hurd_root_device): Try to make error message
3388 and comments to translators clearer.
3389
4e9b2819
VS
33902012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3391
3392 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3393
076aeb50
VS
33942012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3395
3396 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3397 btrfs.
3398
19424d94
VS
33992012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * docs/grub.cfg: Update.
3402
ebb73076
VS
34032012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3404
3405 * docs/grub.texi (PXE): Remove not present variables.
3406
9a1b669c
VS
34072012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 * grub-core/net/net.c (defserver_set_env): New function.
3410 (defserver_get_env): Likewise.
3411 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3412
d38bf7d3
VS
34132012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3416 entries.
3417
34182012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
3419
3420 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3421 * grub-core/kern/emu/hostdisk.c: Likewise.
3422
e5e4ca48
ST
34232012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3424
3425 Handle hurd userspace partitions.
3426
3427 * util/getroot.c (find_hurd_root_device): New function.
3428 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3429
56bb5dd5
VS
34302012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3433 names.
3434 Reported by: Bastian Blank.
3435
9e8bc27a
VS
34362012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3437
3438 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3439 crossing page boundary.
3440
aa01499d
VS
34412012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 Fix B-tree search in BFS, especially in presence of non-ASCII
3444 characters.
3445
3446 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3447 (find_in_b_tree): Use standard bsearch + btree algorithm.
3448
57006035
VS
34492012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3450
3451 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3452 and so on.
3453
9d34bb85
MG
34542012-05-03 Matthew Garrett <mjg@redhat.com>
34552012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 Suspend broadcom cards in order to stop their DMA.
3458
3459 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3460 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3461 (pci): Don't build on x86 EFI.
3462 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3463 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3464 New function.
3465 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3466 stop_broadcom if running on EFI.
3467 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3468 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3469 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3470 (grub_pci_find_capability): New proto.
3471
01aab997
VS
34722012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * docs/grub.texi: Remove dot from the extension as it apparently
3475 doesn't work with some makeinfo versions.
3476
fbd8dca6
VS
34772012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3480 with GRUB expectance.
3481
dab797f4
VS
34822012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3485
1516bfb4
VS
34862012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3489 zero after directory block since last entry may be not 0-terminated if
3490 it ends on block boundary. Use continue instead of if spanning whole
3491 loop.
3492
a3a0eace
VS
34932012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3494
3495 Support 4K sectors UDF inline files.
3496
3497 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3498 (grub_udf_extended_file_entry): Likewise.
3499 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3500 All users updated.
3501 (get_fshelp_size): New function.
3502 (grub_udf_read_icb): Read whole block.
3503 (grub_udf_iterate_dir): Likewise.
3504 (grub_udf_dir): Likewise.
3505 (grub_udf_open): Likewise.
3506
c82f16c1
VS
35072012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3508
3509 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3510
59fd2aac
VS
35112012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3512
3513 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3514 inline symlinks in addition to workaround.
3515
3b4afb4d
VS
35162012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3517
3518 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3519
f45c794a
VS
35202012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3521
3522 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3523
f25cecbd
VS
35242012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3525
3526 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3527
bb9a34e8
VS
35282012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 Fix reiserfs big seek times.
3531
3532 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3533 exact. All users updated.
3534 (grub_reiserfs_read): Use nearest btree search for seeking.
3535 Fix return value on error.
3536
dc478aea
VS
35372012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3540 entries.
3541 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3542 * docs/grub.texi: Update menuentry description.
3543
8db10f47
VS
35442012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3545
3546 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3547 crash when embedding onto filesystem.
3548
bcb288ed
VS
35492012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3552 name.
3553
a626fdd7
VS
35542012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3555
3556 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3557
b2f68477
VS
35582012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3561 commit.
3562
ba15b2af
B
35632012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
35642012-05-01 Bean <bean123ch@gmail.com>
3565
3566 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3567
a188012e
VS
35682012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3569
3570 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3571 Special behaviour for len = 0 to read whole file isn't used anywhere and
3572 can cause buffer ovewrflows in several places.
3573
f0a53ed2
VS
35742012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3577
5ed554f0
VS
35782012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3579
3580 Handle RAIDZ on non-512B sectors.
3581
3582 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3583 max_children_ashift.
3584 (fill_vdev_info_real): Fill max_children_ashift.
3585 (read_device): Use max_children_ashift.
3586
ddc58357
VS
35872012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3590
e3282399
VS
35912012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3594 disk names.
3595 * docs/grub.texi: Update device.map parts.
3596
ee618bd4
VS
35972012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 Don't scan into non-diskfilter devices having diskfilter names.
3600
3601 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3602 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3603 handling.
3604 (scan_disk_hook): New function.
3605
bdf88864
B
36062012-04-29 Bean <bean123ch@gmail.com>
3607
3608 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3609 allocation.
3610
32745f51
MK
36112012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3612
3613 * configure.ac: Detect starfield theme font path
3614 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3615
bc95c8c0
VS
36162012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3617
3618 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3619 geometry on serial consoles.
3620
147fbcab
VS
36212012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3624 because of network consoles.
3625
0f42c889
VS
36262012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3629 handling.
3630
4a3594c9
VS
36312012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3632
3633 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3634 falls on Q syndrom.
3635
5cb53879
VS
36362012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3639 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3640
b282dfe5
VS
36412012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3644 Allocate at lest 8192 for temporary buffer as required for lzo.
3645
daa59f47
VS
36462012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3647
3648 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3649 to cluster_bits, since it's already added in.
3650 (grub_fat_read_data): Likewise.
3651
986748ce
VS
36522012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3655 as long as cluster size is multiple of 512 bytes.
3656
a20f6ad0
VS
36572012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3658
3659 * util/grub-mkrescue.in: Fix locale directory.
3660
385f9abb
VS
36612012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3662
3663 * grub-core/kern/emu/hostdisk.c (map): Make static.
3664
1c557d30
B
36652012-04-23 Bean <bean123ch@gmail.com>
3666
3667 * util/grub-fstest.c (fstest): Add missing break.
3668
524b5d3a
ST
36692012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3670
3671 Fix hurd build.
3672
3673 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3674 not define nr variable.
fe4824e9 3675 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3676 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3677 grub_find_device): Do not define.
524b5d3a 3678
9a06490c
VS
36792012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3680
3681 Fix kfreebsd compile and behaviour.
3682
3683 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3684 format-security.
3685 * util/getroot.c: Fix wait.h include.
3686 (grub_guess_root_devices): Error if grub_find_device fails.
3687 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3688 (grub_util_get_dev_abstraction): Likewise.
3689 (grub_util_pull_device): Likewise.
3690 (grub_util_get_grub_dev): Likewise.
3691 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3692
48143d96
VS
36932012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3694
3695 Fix and unify wholedisk detection.
3696
3697 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3698 is_part. All users updated.
3699 (device_is_wholedisk): Removed.
3700 (grub_util_biosdisk_get_grub_dev): Use is_part.
3701
ebbd24f3
VS
37022012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3705 mode.
3706
56f7aa1e
VS
37072012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * configure.ac: Bump to beta4.
3710
9c815e01
VS
37112012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3714 --fs-uuid --set UUID syntax.
3715
59e2651a
VS
37162012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3717
3718 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3719 disunification.
3720
54e03cfc
VS
37212012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3722
3723 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3724
81092a75
MK
37252012-04-18 Mads Kiilerich <mads@kiilerich.com>
3726
3727 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3728
f8315e14
MG
37292012-04-18 Mike Gilbert <floppym@gentoo.org>
3730
3731 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3732
1501ac21
B
37332012-04-18 Bean <bean123ch@gmail.com>
3734
3735 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3736 place.
3737
cb7f944e
VS
37382012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3741 users updated.
3742 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3743 corresponding to GRUB partitions.
3744 (grub_util_biosdisk_write): Likewise.
3745
b72d44a1
VS
37462012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 Scan mdraid before LVM.
3749
3750 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3751 (grub_diskfilter_register_front): ... this.
3752 (grub_diskfilter_register_back): New function.
3753 All users of grub_diskfilter_register updated.
3754
33d918b8
VS
37552012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3756
3757 * util/grub-install.in: Fix an automatic target detection bug.
3758
c6ca973d
VS
37592012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3760
3761 * util/grub-install.in: New option --efi-directory.
3762
b41be562
VS
37632012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3766 boot services if we have no other choice.
3767
37682012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3769
3770 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3771 document it.
3772 * tests/util/grub-shell.in: Update to --directory.
3773
e0595a73
VS
37742012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3777
4ed80652
VS
37782012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3781 (grub_minix_read_file): Likewise.
3782 (grub_minix_read_inode): Likewise.
3783 (grub_minix_find_file): Likewise.
3784 (grub_minix_dir): Likewise.
3785
56008077
VS
37862012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * util/grub-setup.c (setup): Fix partition handling and blocklist
3789 check.
3790
ee520775
VS
37912012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3794 redundant buggy overlap check.
3795
16fc9293
VS
37962012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3799 and grub-mknetdir.
3800
9bab65c4
VS
38012012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3804 kh.loadflags on pre-2.00 kernels.
3805
3c491b47
VS
38062012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 Terminate UNDI and PXE before launching the payload to avoid problems
3809 with DMA.
3810
3811 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3812 (grub_loader_flags): ... this. All users updated.
3813 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3814 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3815 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3816 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3817 function.
3818 (grub_pxe_restore): Likewise.
3819 (fini_hnd): New var.
3820 (GRUB_MOD_INIT): Register shutdown hook.
3821 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3822 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3823 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3824 (grub_loader_set): Rename second argument to flags.
3825
851ffada
VS
38262012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3827
3828 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3829 written bytes.
3830 (grub_get_num_of_utf8_bytes): New function.
3831 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3832 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3833 executing it.
3834 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3835 (grub_ucs4_to_utf8): Change return type.
3836
491c57a8
VS
38372012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3840 warning.
851ffada
VS
3841 * grub-core/fs/bfs.c (hop_level): Likewise.
3842 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 3843
756773df
VS
38442012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 * grub-core/lib/adler32.c: Recode due to license unclearness.
3847
fd556a96
VS
38482012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3851 (test_header): Likewise.
3852
9f9d3f69
VS
38532012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 Fix --help formatting.
3856
3857 * util/grub-mkconfig_lib.in (print_option_help): New function.
3858 (grub_fmt): Likewise.
3859 * util/grub-install.in: Use print_option_help and grub_fmt.
3860 * util/grub-kbdcomp.in: Likewise.
3861 * util/grub-mkconfig.in: Likewise.
3862 * util/grub-mknetdir.in: Likewise.
3863 * util/grub-mkrescue.in: Likewise.
3864 * util/grub-mkstandalone.in: Likewise.
3865 * util/grub-reboot.in: Likewise.
3866 * util/grub-set-default.in: Likewise.
3867 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3868
561ec77e
VS
38692012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * linguas.sh: Remove autogenerated *.po.
3872
7ec2b021
VS
38732012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * po/README: Move language fetcing to ...
3876 * linguas.sh: ... here.
3877 * po/README: Point to linguas.sh.
3878
a88f3270
VS
38792012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 * po/README: Exclude ko.po due to disclaimer problems.
3882
d61357ce
VS
38832012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3884
3885 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3886 len = 0.
3887 (grub_gettext_translate_real): Handle 0th string.
3888 (grub_gettext_translate): Ensure that "" isn't translated.
3889
505e41dc
VS
38902012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3893 TRANSLATORS comment.
3894 (grub_diskfilter_print_partmap): Propagate changing of error into
3895 warning.
3896
e44092db
VS
38972012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3898
3899 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3900 to uint64_t to prevent overflow.
3901 (grub_diskfilter_lv): Increase start_extent and extent_count
3902 to uint64_t to prevent overflow.
3903
9b83956a
VS
39042012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3905
3906 * configure.ac: Increase version.
3907
da0d5b3f
VS
39082012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3909
3910 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3911
3912 * po/Rules-translit: New file.
3913 * po/arabic.sed: Likewise.
3914 * po/cyrillic.sed: Likewise.
3915 * po/greek.sed: Likewise.
3916 * po/hebrew.sed: Likewise.
3917 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3918 * po/Makefile.in.in: Add extra_dist4.
3919
ac66b453
VS
39202012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3923
3924 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3925 modify names. Introduce MODE_BIGENDIAN.
3926 * grub-core/fs/minix_be.c: New file.
3927 * grub-core/fs/minix2_be.c: Likewise
3928 * grub-core/fs/minix3_be.c: Likewise.
3929 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3930 minix3_be.
3931 * grub-core/Makefile.core.def (minix_be): New module.
3932 (minix2_be): Likewise.
3933 (minix3_be): Likewise.
3934
39352012-04-01 Felix <email@hamburg.de>
3936
3937 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3938 (devs): Add MBP 2011.
3939
0a2d5a82
VS
39402012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3943
d1625889
VS
39442012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3945
3946 * grub-core/normal/cmdline.c (print_completion): New field
3947 prompt_len.
3948 (grub_cmdline_get): Handle width properly.
3949
6d36a236
VS
39502012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3951
3952 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3953
9576977e
VS
39542012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3955
3956 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 3957 after 29th of February.
9576977e 3958
d73ff15d
VS
39592012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3960
3961 Fix exfat endianness handling.
3962
3963 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3964 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3965 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3966 Byte-swap utf16 when necessary.
3967 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3968
bbb39a45
AB
39692012-03-31 Anton Blanchard <anton@samba.org>
39702012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 Fix btrfs endianness handling.
3973
3974 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3975 (lower_bound): Make root uint64_t. Use root in le.
3976 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3977 (find_path): Fix template key init.
3978 (grub_btrfs_dir): Fix mtime byteswap.
3979 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3980
354e0af7
VS
39812012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3984 recursion_depth. Break infinite resursions. All users updated.
3985
4e75f21c
VS
39862012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3989 after free.
3990 Reported by: Peter Jones.
3991
25581802
AB
39922012-03-31 Anton Blanchard <anton@samba.org>
3993
3994 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3995 8 bit values.
3996
08fbf92e
VS
39972012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3998
3999 * util/grub-install.in: Fix nvram call for PreP.
4000
5d1182a6
VS
40012012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4002
4003 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4004 the error when some elements are missing into a warning.
4005
3f8cdd90
VS
40062012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4007
4008 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4009
51006716
CW
40102012-03-28 Colin Watson <cjwatson@ubuntu.com>
4011
4012 * docs/grub.texi (Invoking grub-probe): New section.
4013 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4014
e1bd676b
VS
40152012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4016
4017 Fix tab and wide character handling in editor and menu.
4018
4019 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4020 agglomerate control characters with combining marks.
4021 (bidi_line_wrap): Allow break on tab.
4022 (grub_unicode_get_comb_start): New function.
4023 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4024 and tab correctly.
4025 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4026 with a space.
4027 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4028 fixed_tab_size. All users updated.
4029 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4030 (grub_term_getcharwidth): Handle \t.
4031 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4032 and copy.
4033
22e6a774
VS
40342012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4035
4036 Handle big-endian mdraid.
4037
4038 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4039 * grub-core/Makefile.core.def (mdraid09_be): New module.
4040 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4041 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4042 * grub-core/disk/mdraid_linux_be.c: New file.
4043
3c0eae66
VS
40442012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4045
4046 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4047
b6cf74c9
VS
40482012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4051 missing quotes which caused confusion among translators.
4052
83c93b9c
VS
40532012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4054
4055 * util/grub-mkconfig_lib.in: Fix typo.
4056
ac6fd218
VS
40572012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4058
4059 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4060 spaces.
4061 * tests/grub_script_leading_whitespace.in: New file.
4062 * Makefile.util.def (grub_script_leading_whitespace): New test.
4063
ba287dd8
VS
40642012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4065
4066 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4067 to work.
4068
d2d58d0a
VS
40692012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4072 starts with control character.
4073
0382d9bb
VS
40742012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4075
4076 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4077 overflow.
4078 (grub_gdb_outbuf): Likewise.
4079
d83ff9f9
VS
40802012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4083 zero terminator. Fixes a crash.
4084
2282da4a
VS
40852012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4086
4087 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4088 beyond 4 GiB.
4089 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4090 images independently of preffered adderss field.
4091
0ae4f0bd
VS
40922012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4095 * grub-core/commands/regexp.c: Likewise.
4096 * grub-core/loader/i386/linux.c: Likewise.
4097 * grub-core/partmap/msdos.c: Likewise.
4098 * grub-core/script/execute.c: Likewise.
4099 * grub-core/term/gfxterm.c: Likewise.
4100
546fbe9b
VS
41012012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4102
4103 Add variable parsing in $"..." and fix several mismatches with bash.
4104
4105 * Makefile.util.def (grub_script_gettext): New test.
4106 * grub-core/script/execute.c (parse_string): New function.
4107 (gettext_append): Likewise.
4108 (grub_script_arglist_to_argv): Use gettext_append.
4109 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4110 * tests/grub_script_gettext.in: New file.
4111
9fdb2d7b
VS
41122012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4113
4114 Fix handling of leading spaces in scripts.
4115
4116 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4117 spaces.
4118 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4119 other than skipping \r. All users updated.
4120 * tests/grub_script_echo1.in: Add space-related tests.
4121 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4122
1a1ac4f6
VS
41232012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4126
b63d89b6
VS
41272012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 * configure.ac: Bump up the version to beta2.
4130
17f38c0f
VS
41312012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4132
4133 Fix gettext reload bugs (e.g. inability to disable gettext
4134 once enabled).
4135
4136 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4137 main_context and secondary_context. All functions updated.
4138 (grub_gettext_translate): Rename to ...
4139 (grub_gettext_translate_real): ... this. Return NULL on failed
4140 translate.
4141 (grub_gettext_translate): Handle secondary context.
4142 (grub_gettext_delete_list): Close file and zero-out the context.
4143 (grub_mofile_open): Don't call grub_gettext_delete_list.
4144 Don't close file.
4145 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4146 if locale="" to avoid pointless error message.
4147 (grub_gettext_env_write_lang): Update lang even if load fails.
4148 Handle secondary context.
4149 (grub_gettext_reread_prefix): New function.
4150 (read_main): Likewise.
4151 (read_secondary): Likewise.
4152 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4153 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4154 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4155 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4156
8e56f870
VS
41572012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4158
4159 * configure.ac: Decrease warning level to avoid spurious warnings and
4160 to be able to compile with GCC 4.2.
4161 * Makefile.util.def: Remove -Wno-error=logical-op.
4162
82f6d455
WB
41632012-03-10 William Bittner <william.bittner@gmail.com>
4164
4165 * util/import_unicode.py: Add missing brackets around string for
4166 python 3 support.
4167
1ecd61a4
VS
41682012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4169
4170 Fix efi chainloader on network root.
4171
4172 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4173 network devices.
4174 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4175 New function.
4176
14361ee8
VS
41772012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4178
4179 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4180 unused show_text member.
4181 * docs/grub.texi: Document "text" property.
4182
922aabf3
VS
41832012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4186 in dprintf.
4187
ec316771
VS
41882012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4189
4190 Fix IMSM handling on Fedora.
4191
4192 * util/getroot.c (grub_util_is_imsm): New function.
4193 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4194
0f021838
VS
41952012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4196
4197 * Makefile.am: Strip gold section.
4198 * conf/Makefile.common: Likewise.
4199 * gentpl.py: Likewise.
4200 * grub-core/Makefile.core.def: Likewise.
4201 * grub-core/genmod.sh.in: Likewise.
4202
1039c8eb
VS
42032012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4204
4205 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4206 * util/grub.d/20_linux_xen.in: Likewise.
4207 Based on Debian patch.
4208
6dd412cd
VS
42092012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * util/grub.d/10_linux.in: Fix syntax error resulting in
4212 Richard Laager's patch.
4213 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4214
3fd8bae5
VS
42152012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4216
4217 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4218 dependencies.
4219
7eea1671
RL
42202012-03-10 Richard Laager <rlaager@wiktel.com>
4221
4222 * util/grub.d/10_linux.in: Fix ZFS root passing.
4223
e8e0566b
VS
42242012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4225
4226 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4227 * grub-core/commands/xnu_uuid.c: Likewise.
4228 * grub-core/loader/efi/appleloader.c: Likewise.
4229 * grub-core/script/execute.c: Likewise.
4230 * grub-core/script/main.c: Likewise.
4231 * util/grub-mkfont.c: Likewise.
4232
1acc5b1f
VS
42332012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 * util/grub-mkfont.c (options): Use more appropriate "select" that
4236 "set" for face index.
4237
35d70620
VS
42382012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4239
4240 * util/grub-editenv.c (options): Gettextize command summaries.
4241
c9eb96b5
VS
42422012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4245 "out of memory" error messagge.
4246
1f493136
VS
42472012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4250 of diskfilter for diskfilter on diskfilter support.
4251
6d790129
VS
42522012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4253
4254 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4255
005f46c9
VS
42562012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4259 themes/starfield.
4260
c8f778a0
VS
42612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4264
de1e64eb
VS
42652012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4268
c6d54211
VS
42692012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4270
4271 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4272 of error message.
4273
dd390777
VS
42742012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4275
4276 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4277
5fd1c522
VS
42782012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4279
4280 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4281 message.
c6d54211 4282 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 4283
fae01f6c
VS
42842012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4285
4286 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4287 Gettextize.
4288 * util/grub-mount.c (options): Likewise.
4289
292fdaff
VS
42902012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4293 gettextize.
4294 * grub-core/commands/search_wrap.c (options): Likewise.
4295
ecdbae77
VS
42962012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4299
52bfedfa
VS
43002012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4303 size calculation.
4304 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4305 none is known.
4306
55b20e58
VS
43072012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4308
4309 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4310 "temporary" since it's used in identifier and is limited in space.
4311
fda9d101
VS
43122012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4313
4314 * po/POTFILES.in: Regenerate. Include *.h since they contain
4315 translatable strings as well.
4316
6a0295e2
VS
43172012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4318
4319 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4320 byte-swap on big-endian.
4321 Reported by: Lennart Sorensen
4322
807fb77c
VS
43232012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4324
4325 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4326 (allocate_pages): Improve dprintf.
4327 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4328 code32_start. Fill code32_start and kernel_alignment in params.
4329 (grub_cmd_initrd): Use prot_init_space.
4330
61ac50ba
VS
43312012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4332
4333 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4334
abdd26dd
VS
43352012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4336
4337 * util/grub-install.in: Add missing dot at the end of sentence.
4338
6e69da9c
VS
43392012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4340
4341 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4342 * grub-core/commands/videotest.c: Likewise.
4343 * grub-core/loader/i386/linux.c: Likewise.
4344
4a929343
VS
43452012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4348 sentence.
4349 Reported by: Milo Casagrande.
4350
bb51c6c6
VS
43512012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4352
4353 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4354 * grub-core/commands/gptsync.c: Likewise.
4355 * grub-core/commands/hashsum.c: Likewise.
4356 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4357 * grub-core/commands/legacycfg.c: Likewise.
4358 * grub-core/io/gzio.c: Likewise.
4359 * grub-core/net/net.c: Likewise.
4360 * grub-core/term/gfxterm.c: Likewise.
4361 * grub-core/term/terminfo.c: Likewise.
4362 * grub-core/tests/test_blockarg.c: Likewise.
4363 * grub-core/video/video.c: Likewise.
4364 * util/grub-install.in: Likewise.
4365 * util/grub-mkfont.c: Likewise.
4366
b2b149cb
VS
43672012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4368
4369 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4370
c7c080ad
VS
43712012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4372
4373 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 4374 Reported by: David Prévot.
c7c080ad 4375
f2e243c0
VS
43762012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4377
4378 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4379 description.
4380
09963c76
VS
43812012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * util/grub-script-check.c (main): Fix a syntax error message which was
4384 unclear.
4385
a50514a8
VS
43862012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4389
4650daec
VS
43902012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4393 messages.
4394
43952012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
4396
4397 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4398 without argument.
4399 * util/grub-mount.c (options): Likewise.
4400
bbc5a342
VS
44012012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4402
4403 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4404
ef292a87
VS
44052012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 * grub-core/net/http.c: Add TRANSLATORS comments.
4408 * grub-core/normal/cmdline.c: Likewise.
4409 * grub-core/normal/misc.c: Likewise.
4410 * grub-core/partmap/msdos.c: Likewise.
4411 * grub-core/parttool/msdospart.c: Likewise.
4412 * grub-core/script/execute.c: Likewise.
4413 * grub-core/script/main.c: Likewise.
4414 * grub-core/term/terminfo.c: Likewise.
4415 * grub-core/video/bitmap.c: Likewise.
4416 * util/grub-install.in: Likewise.
4417 * util/grub-mkimage.c: Likewise.
4418 * util/grub-mklayout.c: Likewise.
4419 * util/grub-setup.c: Likewise.
4420
0fc19bd0
VS
44212012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4424 with similar messages in grub-fstest.
4425
d95862ef
VS
44262012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * util/grub-install.in: Unify "option requires an argument" message
4429 with similar messages in other files.
4430 * util/grub-mkconfig.in: Likewise.
4431
b7308f90
VS
44322012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * util/grub-set-default.in: Replace printf with gettext_printf (the
4435 string in in question is already translated from grub-reboot)
4436
559dc587
VS
44372012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * configure.ac: Bump up the version to beta1.
4440
1a11761f
VS
44412012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4444 case when min_align = 0.
4445
24539abd
VS
44462012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4447
4448 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4449 and fix a case when line_start overflows.
4450
32bd735b
VS
44512012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * util/grub-reboot.in (usage): Mention id posibility.
4454 * util/grub-set-default.in (usage): Likewise.
4455
1a2fd1e6
VS
44562012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4459 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4460 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4461 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4462 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4463 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4464 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4465
90eeab76
VS
44662012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 * grub-core/commands/menuentry.c (options): Remove
4469 GRUB_ARG_OPTION_REPEATABLE.
4470 Reported by: Andreas Vogel
4471
5ad1be82
AV
44722012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4473
4474 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4475
cb055286
HE
44762012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4477
4478 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4479 error.
4480
93b1cd79
VS
44812012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 Use sort -V by the idea of Georgi Georgiev.
4484
4485 * util/grub-mkconfig_lib.in (version_sort): New function.
4486 (version_test_numeric): Use version_sort.
4487
0cdc126c
VS
44882012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4489
4490 Use submenus in grub-mkconfig.
4491
4492 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4493 * util/grub-mkconfig_lib.in (grub_quote): New function.
4494 (gettext_printf): Use gettext and not gettext_quoted to fix several
4495 messages.
4496 * util/grub.d/10_hurd.in: Use submenus.
4497 * util/grub.d/10_kfreebsd.in: Likewise.
4498 * util/grub.d/10_linux.in: Likewise.
4499 * util/grub.d/10_netbsd.in: Likewise.
4500 * util/grub.d/20_linux_xen.in: Likewise.
4501 * util/grub.d/30_os-prober.in: Likewise.
4502 * util/grub.d/10_illumos.in: Add missing quoting.
4503 * util/grub.d/10_windows.in: Likewise.
4504
d9bef9bc
VS
45052012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4506
4507 Fix menu title instability bug.
4508
4509 * grub-core/commands/menuentry.c (options): New option --id.
4510 (grub_normal_add_menu_entry): New argument id. All users updated.
4511 (grub_cmd_menuentry): Handle --id.
4512 (grub_menu_init): Accept unknown arguments.
4513 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4514 feature_menuentry_options.
4515 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4516 saved_entry.
4517 (get_entry_number): Match with id as well.
4518 * include/grub/menu.h (grub_menu_entry): New member id.
4519 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4520 * util/grub.d/00_header.in: Define menuentry_id_option.
4521 * util/grub.d/10_hurd.in: Define id.
4522 * util/grub.d/10_illumos.in: Likewise.
4523 * util/grub.d/10_kfreebsd.in: Likewise.
4524 * util/grub.d/10_linux.in: Likewise.
4525 * util/grub.d/10_netbsd.in: Likewise.
4526 * util/grub.d/10_windows.in: Likewise.
4527 * util/grub.d/20_linux_xen.in: Likewise.
4528 * util/grub.d/30_os-prober.in: Likewise.
4529
45302012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
4531
4532 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4533 "scope" with "body".
4534
7c8d0ce7
VS
45352012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4538 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4539 prot_size and prot_file_size.
4540
49de079b
VS
45412012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4542
4543 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4544 All users updated. If easily=1 require raid-5/-6 to be full.
4545 (is_node_readable): Likewise.
4546 (scan_devices): Scan incomplete but readable LVs at the end.
4547 (grub_diskfilter_memberlist): Pull missing devices.
4548 (insert_array): Skip scanning until device is complete or scan is
4549 done otherwise.
4550 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4551 check.
4552 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4553 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4554
aff05d45
MG
45552012-03-03 Matthew Garrett <mjg@redhat.com>
45562012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4557
4558 Avoid EFI boot services when loading Linux.
4559
4560 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4561 avoid_efi_bootservices. All users updated.
4562 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4563 argument avoid_efi_bootservices. All users updated.
4564 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4565 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4566 align, min_align, relocatable, prefered_address. All users updated.
4567 Allocate avoiding boot services if kernel is relocatable.
4568 (grub_cmd_linux): Check if kernel is relocatable.
4569 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4570 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4571 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4572 avoid_efi_boot_services.
4573 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4574 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4575 (linux_kernel_params): Likewise.
4576
3935dde2
MG
45772012-03-03 Matthew Garrett <mjg@redhat.com>
45782012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4579
4580 Use EDID on EFI.
4581
4582 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4583 datasize_out.
4584 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4585 modes. Set gop_handle.
4586 (grub_video_gop_get_edid): New function.
4587 (grub_gop_get_preferred_mode): Likewise.
4588 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4589 (grub_video_efi_gop_adapter): Set .get_edid.
4590 * include/grub/efi/edid.h: New file.
4591 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4592
32107ec0
VS
45932012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * util/grub-install.in: Load efivars unconditionally.
4596
e70a2c50
VS
45972012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * po/Rules-piglatin: Change suffix from .po-update-en to
4600 .po-update-en-piglatin.
4601
8f9cace1
VS
46022012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 Add a pig farm.
4605
4606 * po/piglatin.sed: New file.
4607 * po/en@piglatin.header: Likewise.
4608 * po/Rules-piglatin: Likewise.
4609 * po/README: Add en@piglatin to autogenerated languages.
4610
8f95d002
VS
46112012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4612
4613 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4614 "Command for ...".
4615 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4616 "Check" since we don't check anything.
4617 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4618 is 64-bit one.
4619 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4620 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4621 (grub_md_sha512_real): Likewise.
4622
805a8dcc
VS
46232012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 * grub-core/commands/gptsync.c: Fix typographic quoting.
4626 * grub-core/commands/ieee1275/suspend.c: Likewise.
4627 * grub-core/commands/parttool.c: Likewise.
4628 * grub-core/commands/search_wrap.c: Likewise.
4629 * grub-core/commands/videoinfo.c: Likewise.
4630 * grub-core/gfxmenu/gui_label.c: Likewise.
4631 * grub-core/hello/hello.c: Likewise.
4632 * grub-core/kern/emu/main.c: Likewise.
4633 * grub-core/net/net.c: Likewise.
4634 * grub-core/normal/menu.c: Likewise.
4635 * grub-core/normal/menu_text.c: Likewise.
4636 * grub-core/normal/misc.c: Likewise.
4637 * util/grub-editenv.c: Likewise.
4638 * util/grub-install.in: Likewise.
4639 * util/grub-kbdcomp.in: Likewise.
4640 * util/grub-mkconfig.in: Likewise.
4641 * util/grub-mknetdir.in: Likewise.
4642 * util/grub-mkrescue.in: Likewise.
4643 * util/grub-mkstandalone.in: Likewise.
4644 * util/grub-reboot.in: Likewise.
4645 * util/grub-set-default.in: Likewise.
4646 * util/grub-setup.c: Likewise.
4647 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4648
40211ab8
VS
46492012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4650
4651 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4652 * grub-core/commands/keystatus.c: Likewise.
4653 * grub-core/commands/loadenv.c: Likewise.
4654 * grub-core/commands/probe.c: Likewise.
4655 * grub-core/commands/regexp.c: Likewise.
4656 * grub-core/commands/true.c: Likewise.
4657 * grub-core/commands/videoinfo.c: Likewise.
4658 * grub-core/disk/cryptodisk.c: Likewise.
4659 * grub-core/disk/ldm.c: Likewise.
4660 * grub-core/disk/loopback.c: Likewise.
4661 * grub-core/disk/luks.c: Likewise.
4662 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4663 * grub-core/kern/disk.c: Likewise.
4664 * grub-core/kern/emu/hostdisk.c: Likewise.
4665
0c7d99c7
VS
46662012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4667
4668 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4669 * util/grub-install.in: Add missing quote in the comment.
4670
e7d2559b
VS
46712012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4674 * grub-core/commands/lsmmap.c: Likewise.
4675 * grub-core/commands/minicmd.c: Likewise.
4676 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4677 * grub-core/commands/regexp.c: Likewise.
4678 * grub-core/gdb/gdb.c: Likewise.
4679 * grub-core/term/gfxterm.c: Likewise.
4680 * util/grub-mkconfig.in: Likewise.
4681 * util/grub-mkfont.c: Likewise.
4682 * util/grub-mklayout.c: Likewise.
4683 * util/grub-mknetdir.in: Likewise.
4684 * util/grub-mkrescue.in: Likewise.
4685 * util/grub.d/30_os-prober.in: Likewise.
4686
49ce9e50
VS
46872012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4688
4689 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4690 with "Direct color" and "Packed" with "Packed pixel".
4691 (grub_cmd_videoinfo): Simplify legend.
4692
e4b791fa
VS
46932012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4694
4695 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4696 absolutely unclear error message.
4697
fd1265cb
VS
46982012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * util/grub-mkstandalone.in: Remove confusing leftover print.
4701
8822a8a0
VS
47022012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4703
4704 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4705 comments.
4706 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4707 (GRUB_MOD_INIT): Likewise.
4708 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4709 VGA mode.
4710 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4711 comments.
4712 * util/grub-install.in (usage): Likewise.
4713 Spell ID in whole letters.
4714 Add missing ending dot.
4715 Quote variables.
4716 * util/grub-reboot.in: Fix capitalisation.
4717 * util/grub-set-default.in: Likewise.
4718
937fd0cc
VS
47192012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4720
4721 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4722 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4723 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4724 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4725 Disable -Werror for -Wdeprecated-declarations.
4726 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4727 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4728 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4729 (grub_util_get_grub_dev): Make luks handling dependent on
4730 HAVE_DEVICE_MAPPER and not __linux__.
4731 (get_win32_path): Fix format security.
4732 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4733 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4734 Don't try grub_find_zpool_from_dir.
4735 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4736 #ifdef-out paresdir.
4737
1bab1ae3
VS
47382012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4739
4740 * util/grub-pe2elf.c (usage): Add missing noreturn.
4741 (write_section_data): Rename name to shname to avoid shadowing.
4742 (write_symbol_table): Rename name to symname to avoid shadowing.
4743 Fix write_reloc_section call.
4744
ef023e42
VS
47452012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4748 to ensure that it's after the last byte of .text.
4749
48afcb75
VS
47502012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 * util/ieee1275/ofpath.c (my_isdigit): New function.
4753 (trailing_digits): Use my_isdigit.
4754 (strip_trailing_digits): Likewise.
4755
88d51eff
VS
47562012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4757
4758 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4759 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4760
17edc2ba
VS
47612012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4762
4763 * grub-core/kern/i386/pc/startup.S: Define __start.
4764
ad5518d7
VS
47652012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4768 strip already transforms he format.
4769
9e95e1bf
VS
47702012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4773
9cc3ee5c
VS
47742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4775
4776 * util/grub-install.in: Add missing gettext init.
4777 * util/grub-kbdcomp.in: Likewise.
4778 * util/grub-mkconfig.in: Likewise.
4779 * util/grub-mknetdir.in: Likewise.
4780 * util/grub-mkrescue.in: Likewise.
4781 * util/grub-mkstandalone.in: Likewise.
4782 * util/grub-reboot.in: Likewise.
4783 * util/grub-set-default.in: Likewise.
4784 * util/grub.d/00_header.in: Likewise.
4785 * util/grub.d/10_hurd.in: Likewise.
4786 * util/grub.d/10_windows.in: Likewise.
4787 * util/grub.d/30_os-prober.in: Likewise.
4788 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4789
49e08a06
VS
47902012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4791
4792 * po/Rules-swiss: Fix header comment.
4793
3809cb41
AV
47942012-02-29 Andreas Vogel <anvoit>
4795
4796 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4797 resulted in leak of arguments.
4798
fa6ec573
VS
47992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4802 reed_solomon_size const definition instead of computing it since
4803 Apple assembler doesn't support the later.
4804
22899b9c
VS
48052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 * gentpl.py (kernel): Rewrite Apple part.
4808
a132afc3
VS
48092012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4812
9d742bd4
VS
48132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4816 ELF section gap.
4817 (load_image): Likewise.
4818
f04a9a21
VS
48192012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * configure.ac: Fix a typo in previous commit.
4822
46cf439c
VS
48232012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4824
4825 Don't add -Wl,-N on Apple platform.
4826
4827 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4828 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4829
c4c48c54
VS
48302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4831
4832 * grub-core/Makefile.core.def (lzma_decompress): Use
4833 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4834
31a12124
VS
48352012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4836
4837 * grub-core/genmod.sh.in: Rewrite the Apple part.
4838
4f3aa1af
VS
48392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4840
4841 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4842 comparison.
4843
7bd8b0c7
VS
48442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4845
4846 * acinclude.m4 (grub_CHECK_PIC): New test.
4847 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4848
97304d7c
VS
48492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4852 to avoid the warning.
4853
fb883812
VS
48542012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4855
4856 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4857 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4858 after. All users updated.
4859
a121c964
VS
48602012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 Use the common size routine in hostfs so we can read disks as well.
4863
4864 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4865 (grub_util_get_fd_size): ... this. Return size in bytes.
4866 All users updated.
4867 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4868 grub_util_get_fd_size.
4869
c66d6410
VS
48702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4871
4872 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4873 Add blocksize retrieval.
4874
dfc8aeb0
VS
48752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4876
4877 * configure.ac: Restore CFLAGS after efiemu check.
4878
403e25a5
VS
48792012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4880
4881 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4882 Apple bug.
4883
382775d1
VS
48842012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4885
4886 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4887
6fd4e6e4
VS
48882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4889
4890 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4891 (grub_cmd_halt): Likewise.
4892
bea359d6
VS
48932012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4896 for local arithmetics.
4897 Break %sp init into 2 instructions.
4898 Add 0 byte at the end.
4899
32eb6ee1
VS
49002012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4901
4902 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4903 before loops.
4904
e8377389
VS
49052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4906
4907 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4908 for context.
4909
8cb17de7
VS
49102012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4911
4912 * grub-core/disk/ldm.c (make_vg): Init part.name.
4913 (grub_ldm_detect): Silence spurious warning.
4914 (grub_util_is_ldm): Likewise.
4915
595717e6
VS
49162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4917
4918 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4919 sane value to avoid a spurious warning.
4920
c4b7e588
VS
49212012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4922
4923 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4924 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4925
59824957
VS
49262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4927
4928 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4929 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4930
70115b99
VS
49312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4932
4933 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4934 hardcoding the relevant info.
4935
56733740
VS
49362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4937
4938 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4939 missing const qualifiers.
4940 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4941
43481481
VS
49422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4943
4944 * util/getroot.c [__APPLE__]: Add missing includes.
4945 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4946
3cb38f01
VS
49472012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4948
4949 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4950
d9dbf11e
VS
49512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4954 avoid conflicts.
4955
0c42a45d
VS
49562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4959
46c34eb0
VS
49602012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4963 and grub_file_close call.
4964
99ce1597
VS
49652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 Add LZSS Mach-O support (needed for new xnu kernelcache).
4968
4969 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4970 * grub-core/loader/lzss.c: New file.
4971 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4972 on Mach-O open failure.
4973 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4974 Don't free cmdsXX in uncompressedXX is set.
4975 (grub_macho_file): Init new fields.
4976 New argument is_64bit. All users updated.
4977 Handle compressed. Error out if no suitable architecture is found.
4978 Don't close file.
4979 (grub_macho_open): New argument is_64bit. All users updated.
4980 * grub-core/loader/macho32.c: Add defines for new fields.
4981 * grub-core/loader/macho64.c: Likewise.
4982 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4983 (grub_macho_parse): Handle compressed.
4984 Defer actual processing if compressed.
4985 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4986 "filename". All users updated.
4987 (grub_macho_size): New argument "filename". All users updated.
4988 (grub_macho_get_entry_point): Likewise.
4989 (grub_macho_load): Handle compressed.
4990 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4991 (GRUB_MACHO_LZSS_OFFSET): New define.
4992 (grub_decompress_lzss): New proto.
4993 * include/grub/machoload.h (grub_macho_file): New fields to handle
4994 compressed.
4995 (grub_macho_contains_macho64): Remove proto.
4996 (grub_macho_contains_macho32): Likewise.
4997 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4998
ebd17d6f
VS
49992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5000
5001 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5002
2702b4e4
VS
50032012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5004
5005 Fix make dist.
5006
5007 * Makefile.am (starfield_theme_files): New var.
5008 (starfield_DATA): Use starfield_theme_files.
5009 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5010 Add bootcheck-related files.
5011 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5012 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5013 and font_char_metrics.txt.
5014 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5015 (setjmp): Add lib/ia64/longjmp.S.
5016 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5017 * po/POTFILES.in: Regenerate.
5018 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5019 DISTFILES.common.extra1.
5020 * util/devicemap.c: Removed.
5021 * grub-core/lib/i386/relocator_backward.S: Likewise.
5022 * util/import_gcry.py: Remove unused files. Add extra_dist for
5023 ChangeLog.
5024
cf1adfdf
VS
50252012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5026
5027 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5028 grub_gettext_delete_list before changing grub_gettext_max to avoid
5029 running out of array bounds.
5030
50312012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
5032
5033 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5034 grub_vga_text_init/grub_vga_text_fini.
5035
cf1adfdf 50362012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
5037
5038 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5039
541d92e9
VS
50402012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5041
5042 * configure.ac: Bump to 2.00~beta0.
5043
7931dddf
VS
50442012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5045
5046 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5047 missing initialisation.
5048
f1b16fa3
VS
50492012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5050
5051 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5052
83ddae23
VS
50532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5054
5055 Support v2 xnu boot arguments.
5056
5057 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5058 New argument fsbfreq_out.
5059 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5060 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5061 be used.
5062 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5063 darwin_version.
5064 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5065 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5066 (grub_xnu_boot_params): Rename to ...
5067 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5068 (grub_xnu_boot_params_v2): New struct.
5069
dc693fe6
VS
50702012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5071
5072 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5073 zeroing of CRC field before computing CRC.
5074
5a6e39c2
VS
50752012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5076
5077 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5078 Change order of allocations to decrease fragmentation.
5079
6c21f5d7
VS
50802012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5083
cfe456dc
CW
50842012-02-27 Colin Watson <cjwatson@ubuntu.com>
5085
5086 Use write-combining MTRR to speed up video with buggy BIOSes.
5087
5088 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5089 (cpuid): New define.
5090 (rdmsr): Likewise.
5091 (wrmsr): Likewise.
5092 (mtrr_base): Likewise.
5093 (mtrr_mask): Likewise.
5094 (grub_vbe_enable_mtrr_entry): New function.
5095 (grub_vbe_enable_mtrr): Likewise.
5096 (grub_vbe_disable_mtrr): Likewise.
5097 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5098 control off to BIOS.
5099 (grub_video_vbe_init): Fill mtrr.
5100 (grub_video_vbe_fini): Disable mtrr.
5101 (grub_video_vbe_get_info_and_fini): Likewise.
5102 (grub_video_vbe_setup): Enable mtrr.
5103
e3c78337
CW
51042012-02-27 Colin Watson <cjwatson@ubuntu.com>
5105
5106 * include/grub/partition.h (grub_partition_map): Change prototype of
5107 embed to take a maximum value for nsectors.
5108 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5109 * include/grub/fs.h (grub_fs): Likewise.
5110 * grub-core/partmap/msdos.c (embed_signatures): New array.
5111 (pc_partition_map_embed): Check for and avoid sectors matching any
5112 of the signatures in embed_signatures, up to max_nsectors.
5113 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5114 returned sector map to max_nsectors.
5115 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5116 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5117 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5118 * util/grub-setup.c (setup): Allow for the embedding area being
5119 split into multiple blocklists. Tell dest_partmap->embed the
5120 maximum number of sectors we care about.
5121
51222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5123
5124 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5125 Specify blocklist_install and reserver_first_sector for all fs.
5126 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5127 blocklists.
5128
984b973f
VS
51292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 * util/grub-install.in: Clarify strings.
5132 Fix source dir check.
5133
f122e0d6
RL
51342012-02-27 Richard Laager <rlaager@wiktel.com>
5135
5136 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5137 "zfs" and "fuse.zfs" as synonyms.
5138
071114bb
VS
51392012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5140
5141 * configure.ac: Put platform and target_cpu substitutions back since
5142 they are used for directories.
5143
817e6abc
RL
51442012-02-27 Richard Laager <rlaager@wiktel.com>
51452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5146
5147 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5148 * util/grub.d/20_linux_xen.in: Likewise.
5149
897b7419
RL
51502012-02-27 Richard Laager <rlaager@wiktel.com>
5151
5152 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5153 with full paths.
5154
a414bd15
RL
51552012-02-27 Richard Laager <rlaager@wiktel.com>
5156
5157 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5158 unescape.
5159
30ac48c4
VS
51602012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 Don't use insecure popen in getroot.
5163
5164 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5165 (exec_pipe): ... here.
5166 (find_root_devices_from_poolname): Use exec_pipe.
5167
53f13848
VS
51682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 Remove platform and target_cpu replacement.
5171
5172 * configure.ac: Remove platform and target_cpu substitutions.
5173 * tests/util/grub-shell.in: Use modinfo.
5174 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5175 explicitly.
5176
90cb2803
VS
51772012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5178
5179 Autodetect platform in grub-install but allow override.
5180
5181 * util/grub-install.in: Autodetect platform. Support --target and
5182 --directory. Read platform from modinfo.sh.
5183
b9136427
VS
51842012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 Support btrfs multi-volume probe.
5187
5188 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5189 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5190 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5191 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5192 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5193 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5194 grub_find_root_devices_from_btrfs if on btrfs.
5195
c36e5cd1
VS
51962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 Remove any awareness of *.c util files about target.
5199
5200 * Makefile.util.def (grub-setup): Split to ...
5201 (grub-bios-setup): ... and this.
5202 (grub-sparc64-setup): ... and this.
5203 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5204 * docs/man/grub-setup.h2m: Split into ...
5205 * docs/man/grub-sparc64-setup.h2m: ... this.
5206 * docs/man/grub-bios-setup.h2m: ... and this.
5207 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5208 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5209 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5210 (grub_target_addr_t): Remove.
5211 (grub_target_size_t): Remove.
5212 (grub_target_ssize_t): Remove.
5213 * util/grub-install.in: Use new grub-*-setup.
5214 * util/grub-mkimagexx.c (Elf_Word): New define.
5215 (Elf_Half): Likewise.
5216 (Elf_Section): Likewise.
5217 (ELF_ST_TYPE): Likewise.
5218 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5219 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5220
584b2f8a
VS
52212012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5222
5223 Replace grub_target_addr with more appropriate types.
5224
5225 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5226 grub_target_addr with grub_addr.
5227 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5228 grub_target_addr with grub_port.
5229 (grub_cmd_write): Likewise.
5230 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5231 grub_target_addr with grub_addr.
5232 (grub_cmd_write): Likewise.
5233 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5234
5a0dc6fb
VS
52352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5236
5237 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5238 const qualifier for vendor_guid.
5239
786aff6e
VS
52402012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5243 const qualifier.
5244 (efiemu_memequal): Likewise.
5245 (find_variable): Likewise.
5246
49017b17
VS
52472012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5248
5249 Fix missing console prototype on qemu-mips.
5250
5251 * include/grub/mips/qemu_mips/console.h: New file.
5252
c5988629
MG
52532012-02-27 Matthew Garrett <mjg@redhat.com>
52542012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5255
5256 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5257 * include/grub/efi/efi.h: Likewise.
5258 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5259 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5260 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5261 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5262 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5263 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5264
e33f8d69
MG
52652012-02-27 Matthew Garrett <mjg@redhat.com>
5266
5267 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5268
fb312cd9
VS
52692012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5270
5271 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5272 error.
5273
7134247c
VS
52742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 * configure.ac: Remove inappropriate use of program_transform_name
5277 on grubdir and bootdir but allow explicit specification of those
5278 variables.
5279
6a313124
VS
52802012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5281
5282 * util/grub-mknetdir.in (grub_prefix): Removed.
5283 (subdir): Use @bootdirname@ and @grubdirname@.
5284
2311c5ca
VS
52852012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5286
5287 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5288
7d5d60f7
VS
52892012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 * po/POTFILES.in: Regenerated.
5292
8151bc82
VS
52932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5294
5295 Remove improper use of program_transform_name on pkglibrootdir.
5296
5297 * configure.ac (pkglibrootdir): Removed.
5298 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5299 * util/grub-mkimage.c: Likewise.
5300
b4a6a533
VS
53012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5302
5303 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5304 warning.
5305
668f304f
VS
53062012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5307
5308 * util/grub-install.in: Use file identifier if no UUID is available
5309 or user explicitly prompted for it.
5310
665f2341
NP
53112012-02-27 Navdeep Parhar <nparhar@gmail.com>
5312
5313 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5314 (freebsd_get_zfs): New function.
5315 (grub_freebsd_boot): Pass zfs UUID.
5316 (grub_cmd_freebsd): Set zfs UUID.
5317
8151bc82 53182012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
5319
5320 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5321 pkglibrootdir.
5322
e4c498a1
MG
53232012-02-27 Mike Gilbert <floppym@gentoo.org>
5324
5325 Add configure flag to control libzfs integration.
5326
5327 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5328
1e9a9a3f
VS
53292012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5330
5331 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5332 device.
5333 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5334 small devices.
5335
036985b8
VS
53362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5337
5338 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5339 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5340 be used on non-modules.
5341
5342 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5343 Rename to grub_boot_init.
5344 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5345 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5346 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5347 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5348 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5349 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5350 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5351 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5352 includes.
5353 (grub_machine_init): Remove empty inits.
5354 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5355 includes.
5356 (grub_machine_init): Remove empty inits.
5357 * grub-core/term/arc/console.c: Remove explicit proto.
5358 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5359 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5360 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5361 grub_at_keyboard_fini.
5362 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5363 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5364 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5365 grub_gfxterm_fini.
5366 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5367 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5368 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5369 grub_vgatext_fini.
5370 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5371 * grub-core/term/serial.c (GRUB_MOD_INIT)
5372 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5373 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5374 grub_serial_fini.
5375 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5376 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5377 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5378 grub_terminfo_fini.
5379 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5380 (GRUB_MOD_FINI): Likewise.
5381 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5382 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5383 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5384 grub_video_radeon_fuloong2e_fini.
5385 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5386 [LOONGSON]: Rename to grub_video_sis315pro_init.
5387 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5388 grub_video_sis315pro_fini.
5389 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5390 [LOONGSON]: Rename to grub_video_sm712_init.
5391 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5392 grub_video_sm712_fini.
5393 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5394 (grub_at_keyboard_fini): Likewise.
5395 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5396 Don't declare grub_{modname}_init.
5397 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5398 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5399 New proto.
5400 (grub_keylayouts_fini) [!EMU]: Likewise.
5401 * include/grub/serial.h (grub_serial_init) [!EMU]:
5402 New proto.
5403 (grub_serial_fini) [!EMU]: Likewise.
5404 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5405 New proto.
5406 (grub_terminfo_fini) [!EMU]: Likewise.
5407 * include/grub/video.h (grub_font_init) [!EMU]:
5408 New proto.
5409 (grub_font_fini) [!EMU]: Likewise.
5410 (grub_gfxterm_init) [!EMU]: Likewise.
5411 (grub_gfxterm_fini) [!EMU]: Likewise.
5412 (grub_video_sm712_init) [!EMU]: Likewise.
5413 (grub_video_sm712_fini) [!EMU]: Likewise.
5414 (grub_video_sis315pro_init) [!EMU]: Likewise.
5415 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5416 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5417 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5418
d5534665
VS
54192012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 Make nand a prefix for nand devices.
5422
5423 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5424
10133b5f
VS
54252012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5426
5427 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5428 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5429
8e307a62
VS
54302012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 * include/grub/env.h (grub_env_find): Remove prototype.
5433 * grub-core/kern/env.c (grub_env_find): Make static.
5434 (grub_env_set): Remove useless set.
5435
a4c65f34
VS
54362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5437
5438 * grub-core/kern/i386/realmode.S: Remove useless align.
5439
d87893d5
VS
54402012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5441
5442 * include/grub/dl.h (grub_dl_load_file): Don't export.
5443
50159add
VS
54442012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5445
5446 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5447 grub_dprintf.
5448
b2582b84
VS
54492012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5450
5451 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5452 grub_errors.
5453 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5454 not reloading whole superblock but only the part which is really needed.
5455 Remove useless grub_errors.
5456 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5457 grub_errors.
5458
e2a83395
VS
54592012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5460
5461 Don't export grub_get_rtc.
5462
5463 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5464 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5465
e7d2a906
VS
54662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5467
5468 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5469
6cf1363b
VS
54702012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5471
5472 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 5473 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 5474
eece3349
VS
54752012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 Remove prio_list.
5478
5479 * include/grub/list.h (grub_prio_list): Removed.
5480 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5481 GRUB_COMMAND_PRIO_MASK.
5482 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5483 GRUB_COMMAND_FLAG_ACTIVE.
5484 (grub_prio_list_insert): Removed.
5485 (grub_prio_list_remove): Likewise.
5486 (GRUB_AS_PRIO_LIST): Likewise.
5487 (GRUB_AS_PRIO_LIST_P): Likewise.
5488 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5489 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5490 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5491 * grub-core/kern/command.c (grub_register_command_prio): Inline
5492 the prio_list code.
5493 (grub_unregister_command): Likewise.
5494
94f064b4
VS
54952012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 Fix interrupt mixup from previous commit.
5498
5499 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5500 (grub_realidt): New var.
5501 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5502 Load idt.
5503 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5504 New declaration.
5505 (grub_relocator16_boot): Set grub_relocator16_idt.
5506 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5507 (LOCAL(realidt)): ... this.
5508 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5509 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5510 (grub_realidt): New variable.
5511
27317084
VS
55122012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5515 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5516 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5517 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5518 Gettextize.
5519 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5520 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5521 * po/POTFILES.in: Regenerate.
5522
47b40053
VS
55232012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5524
5525 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5526 errors.
5527
2b343101
VS
55282012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5531 \0.
5532 (add_length): Likewise.
5533
ff27c3dd
LK
55342012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
55352012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5536
5537 GDB serial and backtrace support.
5538
5539 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5540 (prot_to_real): Likewise.
5541 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5542 * grub-core/Makefile.core.def (backtrace): New module.
5543 (gdb): Likewise.
5544 * grub-core/gdb/cstub.c: New file.
5545 * grub-core/gdb/gdb.c: Likewise.
5546 * grub-core/gdb/i386/idt.c: Likewise.
5547 * grub-core/gdb/i386/machdep.S: Likewise.
5548 * grub-core/gdb/i386/signal.c: Likewise.
5549 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 5550 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
5551 * include/grub/backtrace.h: Likewise.
5552 * include/grub/gdb.h: Likewise.
5553 * include/grub/i386/gdb.h: Likewise.
5554
55552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
5556
5557 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5558 New function.
5559 (add_length): Likewise.
5560 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5561 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5562 proto.
5563 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5564 __argp_get_display_len.
5565
ff27c3dd 55662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
5567
5568 $"..." support in scripts.
5569
5570 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5571 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5572 * grub-core/script/yylex.l: Likewise.
5573 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5574 value.
5575
ff27c3dd 55762012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
5577
5578 * gentpl.py: Remove obsolete pkglib_DATA handling.
5579
ff27c3dd 55802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
5581
5582 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5583 mailing list.
5584
5585 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5586 * util/grub-kbdcomp.in: Likewise.
5587 * util/grub-mkconfig.in: Likewise.
5588 * util/grub-mkconfig_lib.in: Likewise.
5589 * util/grub-mknetdir.in: Likewise.
5590 * util/grub-mkrescue.in: Likewise.
5591 * util/grub-mkstandalone.in: Likewise.
5592 * util/grub-reboot.in: Likewise.
5593 * util/grub-set-default.in: Likewise.
5594 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5595
ff27c3dd 55962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
5597
5598 Remove GRUB_PREFIX.
5599
5600 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5601 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5602 used for backward compatibility.
5603
ff27c3dd 56042012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
5605
5606 Add new all_video module.
5607
5608 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5609 * grub-core/Makefile.core.def (all_video): New module.
5610 * grub-core/genmoddep.awk: Generate dependency of all_video from
5611 video.lst.
5612 * grub-core/lib/fake_module.c: New file.
5613 * grub-core/normal/main.c (features): Add feature_all_video_module.
5614 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5615 don't do explicit search again.
47454da5 5616 insmod all_video in load_video if available.
22c7ce85 5617
ff27c3dd 56182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
5619
5620 Another round of string clarification and adding TRANSLATORS comments.
5621
ff27c3dd 56222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
5623
5624 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5625
ff27c3dd 56262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
5627
5628 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5629 to grub_ssize_t.
5630 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5631 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5632
ff27c3dd 56332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
5634
5635 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5636 trailing newline implicitly. All users updated.
5637
ff27c3dd 56382012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
5639
5640 Implement serial on IEEE1275 and EFI.
5641
5642 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5643 on emu. Mention arc and emu as the only platforms without serial
5644 support.
5645 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5646 ieee1275 platforms.
5647 * grub-core/term/efi/serial.c: New file.
5648 * grub-core/term/ieee1275/serial.c: Likewise.
5649 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5650 specification if no ns8250 driver is available.
5651 (grub_cmd_serial): Likewise.
5652 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5653 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5654 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5655 (grub_efi_parity_type_t): New type.
5656 (grub_efi_stop_bits_t): Likewise.
5657 (grub_efi_serial_io_interface): New struct.
5658 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5659 available for all interfaces.
5660 Add EFI and IEEE1275 fields.
5661 (grub_ofserial_init): New proto.
5662 (grub_efiserial_init): Likeiwse.
5663 * util/grub.d/00_header.in: Don't check for the presence of serial
5664 module.
5665
ff27c3dd 56662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
5667
5668 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5669 name as if it was an alias.
5670
114076ef
VS
56712012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5672
5673 * grub-core/commands/lsacpi.c (options): Fix typo.
5674
6a656b0e
VS
56752012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5676
5677 Convert grub-emu to argp.
5678
5679 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5680 emu.
5681 * util/argp_common.c: Rename to ...
5682 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5683 Add missing includes.
5684 * grub-core/kern/emu/main.c: Convert to argp.
5685 * po/POTFILES.in: Regenerate.
5686 * util/grub-install.in (usage): Make first letter lowcase in messages
5687 for uniformity.
5688 * util/grub-setup.c (options): Likewise.
5689
1e3f8ae8
VS
56902012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5691
5692 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5693 Put back accidently commented-out code.
5694
ed167a80
VS
56952012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5696
5697 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5698 loop check using Brent algorithm.
5699 (grub_hfsplus_btree_search): Likewise.
5700
6753c0ec
VS
57012012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5702
5703 * util/grub-install.in: Fix usage of wrong device for PreP install.
5704
4e27343f
VS
57052012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5706
5707 * conf/Makefile.common (CFLAGS_GNULIB): Add
5708 -Wno-unsafe-loop-optimizations.
5709 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5710 on tools.
5711 * grub-core/commands/legacycfg.c: Add pragma to skip
5712 -Wunsafe-loop-optimizations.
5713 (check_password_md5_real): Fix loop counter type.
5714 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5715 reading.
5716 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5717 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5718 loop condition.
5719 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5720 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5721 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5722 condition.
5723 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5724 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5725 avoid possible infinite loops.
5726 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5727 and -Wunsafe-loop-optimizations.
5728 * grub-core/script/yylex.l: Likewise.
5729 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5730 (print_glyphs): Avoid infinite loops.
5731 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5732
697f18b0
GS
57332012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5734
5735 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5736 to avoid infinite loop.
5737 (disp_acpi_rsdt_table): Likewise.
5738
274416e8
VS
57392012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5740
5741 * grub-core/font/font.c (grub_font_load): Add support for default
5742 path for fonts ($prefix/fonts).
5743 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5744 for checking if string is a path.
5745 * grub-core/normal/main.c (features): Add feature_default_font_path.
5746 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5747 * util/grub.d/00_header.in: Use default directory if possible.
5748 * util/grub-install.in: Install unicode.pf2.
5749
b3e08622
VS
57502012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5751
5752 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5753 * po/Rules-swiss: New file.
5754 * po/swiss.sed: Likewise.
5755
fe42ce09
VS
57562012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * grub-core/fs/btrfs.c (find_device): Fix typos.
5759 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5760 * util/grub-mkrelpath.c (argp_parser): Likewise.
5761 Reported by: Yuri Chornoivan.
5762
72f1d065
DO
57632012-02-23 Dalet Omega <daletomega@gmail.com>
5764
5765 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5766 for usual informative messages.
5767
c5884973
DO
57682012-02-23 Dalet Omega <daletomega@gmail.com>
5769
5770 Starfield theme.
5771
5772 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5773 * conf/Makefile.common: Define starfielddir.
5774 * configure.ac: Configure starfield.
5775 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5776 * themes/starfield/README: Likewise.
5777 * themes/starfield/blob_w.png: Likewise.
5778 * themes/starfield/boot_menu_c.png: Likewise.
5779 * themes/starfield/boot_menu_e.png: Likewise.
5780 * themes/starfield/boot_menu_n.png: Likewise.
5781 * themes/starfield/boot_menu_ne.png: Likewise.
5782 * themes/starfield/boot_menu_nw.png: Likewise.
5783 * themes/starfield/boot_menu_s.png: Likewise.
5784 * themes/starfield/boot_menu_se.png: Likewise.
5785 * themes/starfield/boot_menu_sw.png: Likewise.
5786 * themes/starfield/boot_menu_w.png: Likewise.
5787 * themes/starfield/slider_c.png: Likewise.
5788 * themes/starfield/slider_n.png: Likewise.
5789 * themes/starfield/slider_s.png: Likewise.
5790 * themes/starfield/src/blob_nw.xcf: Likewise.
5791 * themes/starfield/src/bootmenu/: Likewise.
5792 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5793 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5794 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5795 * themes/starfield/src/slider_c.xcf: Likewise.
5796 * themes/starfield/src/slider_n.xcf: Likewise.
5797 * themes/starfield/src/slider_s.xcf: Likewise.
5798 * themes/starfield/src/terminalbox/: Likewise.
5799 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5800 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5801 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5802 * themes/starfield/starfield.png: Likewise.
5803 * themes/starfield/terminal_box_c.png: Likewise.
5804 * themes/starfield/terminal_box_e.png: Likewise.
5805 * themes/starfield/terminal_box_n.png: Likewise.
5806 * themes/starfield/terminal_box_ne.png: Likewise.
5807 * themes/starfield/terminal_box_nw.png: Likewise.
5808 * themes/starfield/terminal_box_s.png: Likewise.
5809 * themes/starfield/terminal_box_se.png: Likewise.
5810 * themes/starfield/terminal_box_sw.png: Likewise.
5811 * themes/starfield/terminal_box_w.png: Likewise.
5812 * themes/starfield/theme.txt: Likewise.
5813
17d73325
VS
58142012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5815
5816 * util/grub.d/00_header.in: Add missing export theme.
5817
dbebaf92
VS
58182012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5819
5820 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5821 already included.
5822 Reported by: Eren D.
5823
3d68bffb
VS
58242012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5825
5826 * conf/Makefile.common (grubdatadir): Removed.
5827 (Makefile.am): Move eveything grubdata to pkgdata.
5828
4b59234d
VS
58292012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5830
5831 * grub-core/commands/acpihalt.c (get_sleep_type):
5832 Remove unused variable.
5833
463dcadc
VS
58342012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5835
5836 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5837 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5838 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5839 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5840 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5841 i18n with gettext no-op.
5842 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5843 GRUB_ACPI_OPCODE_STRING_CONST.
5844 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5845 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5846
e5b90c82
VS
58472012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5848
5849 * po/POTFILES.in: Regenerate.
5850
2a704ca9
VS
58512012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5852
5853 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5854 -Wno-error=missing-noreturn.
5855
84f9d341
VS
58562012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5857
5858 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5859 condition to avoid possibly infinite loops.
5860 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5861 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5862
d46683f9
VS
58632012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5864
5865 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5866 condition to avoid possibly infinite loops.
5867
c44866b2
VS
58682012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5869
5870 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5871 on show_error.
5872
96790539
VS
58732012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5874
5875 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5876
1ba7e295
VS
58772012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5878
5879 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5880
21ffe8f1
VS
58812012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5882
5883 * util/bin2h.c (usage): Add missing attribute noreturn.
5884
0ccb6b3c
VS
58852012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5886
5887 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5888 if the size isn't divisible by 512.
5889
b00d7fb6
VS
58902012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5891
5892 Make list_push and list_remove functions rather than inline functions
5893 to decrease size and avoid aliasing violations.
5894
5895 * include/grub/list.h (grub_list_push): Move to ...
5896 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5897 * include/grub/list.h (grub_list_remove): Move to ...
5898 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5899
9d369087
VS
59002012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5901
5902 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5903 and -Wunused-result.
5904
af0250d9
VS
59052012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5906
5907 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5908 Reported by: Seth Goldberg
5909
aad32b14
VS
59102012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5911
5912 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5913
ac96441c
ST
59142012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5915
5916 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5917 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5918 command line.
5919 * docs/grub.texi (Simple configuration): Document
5920 GRUB_CMDLINE_GNUMACH.
5921
59222012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
5923
5924 * conf/Makefile.common (platform_SCRIPTS): New variable.
5925 (platform_PROGRAMS): Likewise.
5926 * gentpl.py: Mark *,module and *.image for install.
5927 * grub-core/gdb_grub.in: Add a notice of expected environment.
5928 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5929 (gmodule.pl): Likewise.
5930
ac96441c 59312012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
5932
5933 Replace grub_checkkey with grub_getkey_noblock.
5934
5935 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5936 (grub_getkey_noblock): ... this. All users updated.
5937
ac96441c 59382012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
5939
5940 * grub-core/kern/emu/console.c: Move to ...
5941 * grub-core/term/emu/console.c: ...here.
5942 (grub_ncurses_getkey): Fix return value if no key is detected.
5943
e51b5666
VS
59442012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5945
5946 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5947 (grub_unit_test_fini): Likewise.
5948 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5949
59502012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5951
5952 * include/grub/test.h (GRUB_UNIT_TEST)
5953
d9a62292
VS
59542012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5955
5956 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5957 Better error handling.
5958 (grub_script_return): Likewise.
5959 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5960
77c9182f
VS
59612012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5962
5963 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5964 rimplicit redifinition.
5965
edb13cf9
VS
59662012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5969 GRUB.
5970
a9e9dc7c
VS
59712012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5972
5973 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5974 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5975 prompt here.
5976
b4ba8e02
VS
59772012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5978
5979 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5980 as GRUB_ERR_BUG. Don't malloc if no device is available.
5981
dded5540
VS
59822012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5985 Mark calling with invalid term as GRUB_ERR_BUG.
5986
0cf69874
VS
59872012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5990 packets rather than raising an error.
5991
59bfe502
VS
59922012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5993
5994 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5995 in if.
5996
db5fc596
VS
59972012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6000 diagnostic to dprintf.
6001 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6002
e4b7f404
VS
60032012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6006 device name.
6007
e7b02f9e
VS
60082012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6011 (grub_ntfs_iterate_dir): Likewise.
6012
0331e102
VS
60132012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6014
6015 Efiemu stylistic fixes and gettext.
6016
6017 * grub-core/efiemu/i386/loadcore32.c
6018 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6019 * grub-core/efiemu/i386/loadcore64.c
6020 (grub_arch_efiemu_relocate_symbols64): Likewise.
6021 * grub-core/efiemu/i386/pc/cfgtables.c
6022 (grub_machine_efiemu_init_tables): Likewise.
6023 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6024 (grub_efiemu_loadcore_initXX): Add a filename argument.
6025 All users updated.
6026 Improved error message.
6027 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6028 Add a filename argument.
6029 All users updated.
6030 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6031 Reclassify double relocation as GRUB_ERR_BUG.
6032
306fc074
VS
60332012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6036 handling.
6037
794d8ef2
VS
60382012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6039
6040 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6041 on partition.
6042
60432012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
6044
6045 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6046
794d8ef2 60472012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
6048
6049 Improve string. Gettextize.
6050
78dde88e
VS
60512012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6052
6053 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6054 utils.
6055 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6056
4786a90f
VS
60572012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6058
6059 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6060 [GRUB_UTIL]: New function.
6061 (insert_array) [GRUB_UTIL]: Store partmaps.
6062 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6063 partmaps.
6064 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6065 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6066 (probe_abstraction): Print diskfilter and not raid.
6067 Reported by: Lennart Sorensen
6068
0b6225bd
VS
60692012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6070
6071 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6072 * util/grub-mkimagexx.c (MASK3): New define.
6073 (add_value_to_slot_20b): Use MASK3.
6074 (add_value_to_slot_21): Likewise.
6075 (relocate_addresses): Fix format specification.
6076 (load_image): Explicitly init symtab_section.
6077
b055f8f6
VS
60782012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6081 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6082
b77c2fb7
VS
60832012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6086 on powerpc.
6087 Reported by: Lennart Sorensen
6088
e3ec28ab
VS
60892012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6090
6091 * gentpl.py: Add missing license header.
6092 * docs/grub.texi: Update copyright year.
6093
c8d9ead6
GS
60942012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6095
6096 Source grub-mkconfig_lib from the build directory at build time.
6097 Suggested by: Vladimir Serbinenko.
6098
6099 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6100 * util/grub-install.in: Define pkgdatadir if not already set, and source
6101 grub-mkconfig_lib from there.
6102 * util/grub-kbdcomp.in: Likewise.
6103 * util/grub-mkconfig.in: Likewise.
6104 * util/grub-mknetdir.in: Likewise.
6105 * util/grub-mkrescue.in: Likewise.
6106 * util/grub-mkstandalone.in: Likewise.
6107 * util/grub-reboot.in: Likewise.
6108 * util/grub-set-default.in: Likewise.
6109 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6110
ebcecdf1
VS
61112012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6112
6113 Increase warning level.
6114
6115 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6116 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6117 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6118 (TARGET_CFLAGS): Likewise.
6119 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6120 * grub-core/Makefile.core.def (decompressor_xz): Add
6121 -Wno-unreachable-code.
6122 (normal): Add -Wno-redundant-decls.
6123 (xzio): Add -Wno-unreachable-code.
6124 (lzopio): Add -Wno-redundant-decls -Wno-error.
6125 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6126 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6127 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6128 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6129 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6130 * grub-core/kern/i386/coreboot/init.c: Add exception to
6131 -Wsuggest-attribute=noreturn.
6132 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6133 * grub-core/kern/ia64/dl_helper.c: Likewise.
6134 * grub-core/kern/mips/dl.c: Likewise.
6135 * grub-core/kern/sparc64/dl.c: Likewise.
6136 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6137 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6138 (memcmp): Likewise.
6139 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6140 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6141 * grub-core/loader/mips/linux.c: Likewise.
6142 * grub-core/loader/multiboot_elfxx.c: Likewise.
6143 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6144 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6145 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6146 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6147 fixme.
6148 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6149 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6150 Fix prototype.
6151
37bb97fe
VS
61522012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6153
6154 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6155 address.
6156
29a3550b
VS
61572012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6158
6159 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6160 Avoid improper use of strings.
6161 (grub_cmd_legacy_initrdnounzip): Likewise.
6162
dfdffd0d
VS
61632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6164
6165 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6166 attribute.
6167 (grub_util_info): Likewise.
6168 (grub_util_error): Likewise.
6169
102fae4a
VS
61702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6171
6172 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6173 * util/grub-fstest.c (fstest): Likewise.
6174
7e94d044
VS
61752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6178 (grub_md_sha512_real): Likewise.
6179 (grub_util_get_geli_uuid): Likewise.
6180 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6181 (grub_util_biosdisk_open): Fix format specification.
6182 Respect format security.
6183 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6184 (xrealloc): Likewise.
6185 (xasprintf): Likewise.
6186
5ebd9769
VS
61872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6188
6189 * util/import_gcry.py: Include grub/crypto.h in init.c.
6190
495fc8c1
VS
61912012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6194 (generate_image): Make prefix a const char *.
6195 Fix format specifications. Respect format security.
6196 Avoid void * arithmetics.
6197 Avoid shadowing.
6198 (argp_parser): Remove unused variable. Respect format security.
6199 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6200 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6201 (count_funcs): Remove unused variable.
6202 (relocate_addresses): Fix format specification.
6203 Disable x86-64 with elf32. Remove unused variables.
6204 (add_fixup_entry): Avoid shadowing.
6205 (make_reloc_section): Fix format specification.
6206 Use assert.
6207 (locate_sections): Fix format specifications.
6208 (load_image): Avoid shadowing.
6209
043c2ea3
VS
62102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6213 Fix format specifications. Respect format security.
6214 Don't translate already translated grub_errmsg.
6215 (argp_parser): Remove unused variable
6216
3ec65a81
VS
62172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6218
6219 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6220
a4d9fe4a
VS
62212012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6222
6223 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6224 (main): Likewise. Use xmalloc. Respect format security.
6225
15b81d49
VS
62262012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6227
6228 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6229 a const char *.
6230 (argp_parser): Remove unused variable.
6231
31731fc0
VS
62322012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6233
6234 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6235 (add_pixel): Make static.
6236 (add_font): Likewise.
6237 (write_string_section): Make name and str a const char *.
6238 (write_be16_section): Make name a const char *.
6239 (print_glyphs): Make static.
6240 (write_font_ascii_bitmap): Likewise.
6241 (write_font_width_spec): Likewise.
6242 (write_font_pf2): Likewise.
6243 (argp_parser): Remove unused variable.
6244 Respect format security.
6245 (main): Avoid shadowing. Respect format security.
6246
0809527b
VS
62472012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6248
6249 * util/grub-editenv.c (argp_parser): Make static.
6250 (create_envblk_file): Use xmalloc.
6251 (open_envblk_file): Likewise.
6252 Resepect format security.
6253 (set_variables): Respect format security.
6254
45b0c8b7
VS
62552012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 * util/getroot.c (grub_find_device): Respect format security.
6258 (get_mdadm_uuid): Remove unused variable.
6259 (grub_util_pull_device): Dont call gettext on already translated
6260 grub_errmsg.
6261 (find_system_device): Remove unused variable.
6262 (grub_util_get_grub_dev): Likewise.
6263 (grub_make_system_path_relative_to_its_root): Respect format security.
6264
1b024b4e
VS
62652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * util/grub-fstest.c (execute_command): Make first argument
6268 a const char *.
6269 (read_file): Avoid shadowing.
6270 Reuse underlying error message if device open fails.
6271 (cmd_cmp): Respect format security.
6272 (root): Make const char *.
6273 (fstest): Remove args argument and use global copy.
6274 Respect format security.
6275 (argp_parser): Make static.
6276 (main): Make default_root const char *.
6277
5d1d4e28
VS
62782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 * util/grub-mount.c (root): Make const char *.
6281 (execute_command): Make first argument a const char *.
6282 (fuse_init): Respect format security.
6283 (argp_parser): Make static. Remove unused variable.
6284 (main): Make default_root a const char *.
6285 Respect format security.
6286
36eb7379
VS
62872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * util/grub-probe.c (probe): Don't call gettext on already translated
6290 grub_errmsg.
6291 Remove unused variables.
6292 (argp_parser): Remove unused variable.
6293
76fb2ea9
VS
62942012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6295
6296 * util/grub-script-check.c (argp_parser): Remove unused variable.
6297 (main): Rename read to curread to avoid shadowing.
6298
56c98584
VS
62992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6300
6301 * util/misc.c (grub_util_write_image_at): Fix format specification.
6302 (grub_util_write_image): Likewise.
6303 (grub_script_execute_argument_to_string): Removed (unused).
6304 (grub_script_execute_menuentry): Likewise.
6305 (grub_putchar): Likewise.
6306
164ebb48
VS
63072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6308
6309 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6310 (FUNCTION) [GRUB_UTIL]: Likewise.
6311 (VARIABLE) [GRUB_UTIL]: Likewise.
6312
44318d61
VS
63132012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6314
6315 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6316 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6317
31a26002
VS
63182012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6319
6320 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6321 buffer.
6322
63232012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6324
6325 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6326 (LzmaEnc_SaveState): Removed (unused).
6327 (LzmaEnc_RestoreState): Likewise.
6328 (LzmaEnc_InitPriceTables): Made static.
6329 (LzmaEnc_Construct): Likewise.
6330 (LzmaEnc_FreeLits): Likewise.
6331 (LzmaEnc_Destruct): Likewise.
6332 (LzmaEnc_Init): Likewise.
6333 (LzmaEnc_InitPrices): Likewise.
6334 (LzmaEnc_Finish): Likewise.
6335 (LzmaEnc_PrepareForLzma2): Removed (unused).
6336 (LzmaEnc_MemPrepare): Likewise.
6337 (LzmaEnc_GetNumAvailableBytes): Likewise.
6338 (LzmaEnc_GetCurBuf): Likewise.
6339 (LzmaEnc_CodeOneMemBlock): Likewise.
6340
6fa67967
VS
63412012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6342
6343 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6344 (grub_util_ldm_embed): Likewise.
6345
9a7428e6
VS
63462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 * util/grub-editenv.c (print_var): Rename name to varname to
6349 avoid shadowing.
6350 (main): Rename index to curindex to avoid shadowing.
31a26002 6351 Make filename a const char *.
9a7428e6 6352
4f96abd1
VS
63532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6356 to arg_getline to avoid shadowing.
6357
44d10dad
VS
63582012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6359
6360 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6361 disk_ to avoid shadowing.
6362
340ba63e
VS
63632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6366 curindex to avoid shadowing.
6367 Make static.
6368 (MatchFinder_GetNumAvailableBytes): Make static.
6369
22965bce
VS
63702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6371
6372 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6373 avoid shadowing.
6374
7b5784d4
VS
63752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6376
6377 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6378 argument from encrypt to do_encrypt to avoid shadowing.
6379
6f48ca01
VS
63802012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6383 incorrect nesting of #if's.
6384
a4ea2dff
VS
63852012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6388 checks which are always false on some platforms.
6389 (grub_cmd_lsacpi): Likewise.
6390 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6391 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6392 Likewise.
6393
def9fc1b
VS
63942012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6395
6396 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6397 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6398
a67b2a04
VS
63992012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6402 re_dfa_t to avoid breaking alignment invariants.
6403 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6404 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6405
44c6828d
VS
64062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6409 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6410
bebe0dd0
VS
64112012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6412
6413 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6414 Fix declaration.
6415
a9cdb3cf
VS
64162012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6417
6418 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6419 conserve alignment invariants.
6420 (grub_ehci_ehcc_read16): Likewise.
6421 (grub_ehci_oper_read32): Likewise.
6422 (grub_ehci_oper_write32): Likewise.
6423 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6424 Conserve alignment invariants.
6425
ccc3b1b8
VS
64262012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6427
6428 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6429 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6430 declarations.
6431
987fbd95
VS
64322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6433
6434 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6435 Remove unused variable.
6436
0df363f3
VS
64372012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6438
6439 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6440 Remove set in if.
6441
b2c0c4a6
VS
64422012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6443
6444 * include/grub/net.h: Remove double declarations.
6445
690c531f
VS
64462012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6447
6448 Remove "payload" command in ia64 Linux loader since I couldn't
6449 find any evidence of it being used for anything.
6450 Replace "relocate" command with an environment variable
6451
6452 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6453 fields.
6454 (ia64_boot_payload): Removed.
6455 (last_payload): Likewise.
6456 (RELOCATE_OFF): Likewise.
6457 (RELOCATE_ON): Likewise.
6458 (RELOCATE_FORCE): Likewise.
6459 (relocate): Likewise.
6460 (free_pages): Don't free payloads.
6461 (grub_load_elf64): Use common error messages.
6462 Use "linux_relocate" variable.
6463 Increase the space after boot_params.
6464 (grub_cmd_payload): Removed.
6465 (grub_cmd_relocate): Likewise.
6466 (grub_cmd_fpswa): Improve messages.
6467 (cmd_payload): Removed.
6468 (cmd_relocate): Likewise.
6469 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6470 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6471
01783768
VS
64722012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 Convert UHCI to DMA framework.
6475
6476 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6477 (grub_uhci_pci_iter): Fill new members
6478 (grub_alloc_td): Use P2V and V2P functions.
6479 (grub_free_queue): Likewise.
6480 (grub_alloc_qh): Likewise.
6481 (grub_uhci_setup_transfer): Likewise.
6482 (grub_uhci_check_transfer): Likewise.
6483
43206939
VS
64842012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6485
6486 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6487 Remove assignment in if while on it.
6488
571e140e
VS
64892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6490
6491 * util/grub-mkstandalone.in: Fix modules directory.
6492
a9d96eeb
VS
64932012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6496 on i386-pc target.
6497 (argp_parser): Accept "auto" as compression specification.
6498
e4e37e8d
VS
64992012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6500
6501 Fix `help' with unloaded modules.
6502
6503 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6504 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6505 (grub_dyncmd_dispatcher): Small stylistic fix.
6506 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6507 explicit help is requested.
6508
e1ea3ade
VS
65092012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6512 Explicitly init restart while on it.
6513
27556881
VS
65142012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6515
6516 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6517 uninited variable.
6518
d65f6b36
VS
65192012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6520
6521 * util/grub-mknetdir.in: Use . rather than source for POSIX
6522 compatibility.
6523
0a1e473c
VS
65242012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6525
6526 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6527
ce6647c8
VS
65282012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6529
6530 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6531 variable.
6532
66747894
VS
65332012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6534
6535 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6536 without quotes.
6537
71645f6e
VS
65382012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6541
0e1c1f61
VS
65422012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6543
6544 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6545 iteration of partitions.
6546
9c4b5c13
VS
65472012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 Improve gettext support. Stylistic fixes and error handling fixes while
6550 on it.
6551
215c90cb
VS
65522012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6555 part. Instead setup the correct stack in RM.
6556 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6557 for stack.
6558 * include/grub/i386/relocator_private.h: New file.
6559
b5c1f9bf
VS
65602012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6561
6562 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6563 argument.
6564 * util/grub-fstest.c (options): Add missing DEVICE part.
6565
b525fd83
VS
65662012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6567
6568 Clarify and unify messages.
6569
6570 * grub-core/commands/hashsum.c (options): Unify messages.
6571 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6572 literal-only message as translatable.
6573 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6574 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6575 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6576 commands.
6577 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6578 key, not the key used to unlock. Clarify what it's used for.
6579 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6580 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6581 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6582 * util/grub-editenv.c (options): Unify "verbose" message.
6583 * util/grub-fstest.c (read_file): Unify error message.
6584 (fstest): Add quotes around commands.
6585 (options): Unify "verbose" message.
6586 * util/grub-install.in: Add quotes around variable name.
6587 * util/grub-kbdcomp.in: Unify error message.
6588 * util/grub-mkfont.c (main): Likewise.
6589 * util/grub-mkrescue.in: Likewise.
6590 * util/grub-mklayout.c (options): Unify "verbose" message.
6591 * util/grub-mkstandalone.in: Unify help and verbose messages.
6592 * util/grub-mount.c (options): Unify "verbose" message.
6593 * util/grub-probe.c (options): Likewise.
6594 * util/grub-script-check.c (options): Likewise.
6595 * util/grub-setup.c (setup): Unify no-terminator message.
6596 (options): Use DEVICE and not DEV.
6597 Unify "verbose" message.
6598 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6599
0ae70393
VS
66002012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 Improve and unify messages.
6603
6604 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6605 name. All users updated.
6606 Print filename in error.
6607 (read_device_map): Print filename in error.
6608 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6609 (grub_util_get_os_disk): Likewise.
6610 (grub_util_biosdisk_get_grub_dev): Likewise.
6611 (grub_util_check_block_device): Likewise.
6612 (grub_util_check_char_device): Likewise.
6613 (grub_make_system_path_relative_to_its_root): Likewise.
6614 * util/grub-editenv.c (create_envblk_file): Likewise.
6615 (open_envblk_file): Likewise.
6616 (write_envblk): Likewise.
6617 * util/grub-fstest.c (cmd_cp): Likewise.
6618 (cmd_cat): Likewise.
6619 (cmd_cmp): Likewise.
6620 * util/grub-menulst2cfg.c (main): Likewise.
6621 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6622 (write_font_width_spec): Likewise.
6623 (write_font_pf2): Likewise.
6624 * util/grub-mkimage.c (generate_image): New argument outname.
6625 All users updated.
6626 Remove unreacheable message.
6627 (options): Unify messages.
6628 (help_filter): Likewise.
6629 * util/grub-mklayout.c (usage): Removed (unused).
6630 (main): Print filename in error.
6631 * util/grub-mkrescue.in: Fix wrong quoting.
6632 * util/grub-setup.c (setup): Print filename in error.
6633 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6634 (check_sas): Likewise.
6635 * util/misc.c (grub_util_get_fp_size): Removed.
6636 (grub_util_get_image_size): Print filename in error.
6637 (grub_util_read_at): Removed.
6638 (grub_util_read_image): Print filename in error.
6639 (grub_util_load_image): Likewise.
6640 (grub_util_write_image_at): New argument filename. All users updated.
6641 Print filename in error.
6642 (grub_util_write_image): New argument filename. All users updated.
6643 Print filename in error.
6644 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6645 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6646
0a96117d
VS
66472012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 * grub-core/Makefile.core.def (pxechain): New module.
6650 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6651 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6652 function.
6653 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6654 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6655
aca002f7
VS
66562012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6659 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6660 * include/grub/err.h (grub_error_saved): New struct.
6661 (grub_errmsg): Make array size explicit.
6662 * include/grub/misc.h (grub_error_save): New function.
6663 (grub_error_load): Likewise.
6664 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6665 (grub_error_push): Update `errno' member name.
6666 (grub_error_pop): Likewise
6667 * grub-core/net/tftp.c (tftp_data): New member save_err.
6668 (tftp_receive): Save error.
6669 (tftp_open): Restore error.
6670
a51dab13
VS
66712012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6672
6673 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6674 to real mode down to execute A20-related code in protected mode as
6675 intended.
6676
eb6e6649
GS
66772012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6678
6679 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6680 NULL when the argument `level' has an unexpected value.
6681
92cd0f6e
VS
66822012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 Move platform-dependent files from $prefix to $prefix/$platform.
6685
6686 * config.h.in (GRUB_TARGET_CPU): New definition.
6687 (GRUB_PLATFORM): Likewise.
6688 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6689 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6690 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6691 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6692 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6693 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6694 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6695 * grub-core/normal/term.c (read_terminal_list): Likewise.
6696 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6697 $prefix/locale.
6698 (grub_gettext_init_ext): Likewise.
6699 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6700 grub_platform.
6701 * util/grub-install.in: Update directories.
6702 * util/grub-mknetdir.in: Likewise.
6703 * util/grub-mkrescue.in: Likewise.
6704
db606889
VS
67052012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6708 grub_error framework. All users updated.
6709
c39992a4
VS
67102012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6713 lists (by always binsearching), improve caching (cache strings
6714 used for binsearch, not only results), improve
6715 maintainability (by using more structured binary search) and correct
6716 error handling.
6717
1e5ec32f
VS
67182012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6719
6720 * grub-core/script/execute.c (grub_script_return): Fix warning.
6721
ac576cde
VS
67222012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * grub-core/script/execute.c (grub_script_return): Fix potential
6725 NULL-dereference.
6726 Reported by: Jim Meyering.
6727
498453f6
VS
67282012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6729
6730 * po/POTFILES.in: Regenerate.
6731 * util/grub-install.in: Gettextize the strings missed in first pass.
6732
8be63f2e
VS
67332012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * Makefile.util.def (grub-mkdevicemap): Removed.
6736 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6737 * include/grub/util/deviceiter.h: Removed.
6738 * util/deviceiter.c: Likewise.
6739 * util/getroot.c (grub_util_get_os_disk): New function.
6740 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6741 replacement for EFI.
6742 * util/grub-mkdevicemap.c: Removed.
6743 * util/grub-probe.c (probe): Handle PRINT_DISK.
6744 (argp_parser): Handle -t disk.
6745
8e1e4e39
VS
67462012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 * util/grub-mkfont.c: Migrate to argp.
6749 * util/grub-mklayout.c: Likewise.
6750 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6751 * util/grub-mkrelpath.c: Likewise.
6752 * util/grub-probe.c: Likewise.
6753 * util/grub-script-check.c: Likewise.
6754
4459819a
VS
67552012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6756
6757 * util/grub-reboot.in: Add missing datarootdir.
6758 Add missing newline.
6759 * util/grub-set-default.in: Add missing datarootdir.
6760 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6761 * util/grub-mkrescue.in: Likewise.
6762
f65741c7
VS
67632012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6764
6765 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6766
c1a33466
VS
67672012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6768
6769 * util/grub-kbdcomp.in: Add decent help and gettextize.
6770 * docs/man/grub-kbdcomp.h2m: New file.
6771
c76899a0
VS
67722012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6773
6774 Migrate grub-mkimage.c to argp.
6775
6776 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6777 (grub-setup): Likewise.
6778 * util/grub-setup.c (print_version): Move to ...
6779 * util/argp_common.c (print_version): ... here.
6780 * util/grub-setup.c (argp_program_version_hook): Move to ...
6781 * util/argp_common.c (argp_program_version_hook): ... here.
6782 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6783 safety.
6784 * util/grub-mkimage.c (main): Migrate to argp.
6785
57db0757
VS
67862012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6787
6788 * util/grub-mkrescue.in: Use same message as
6789 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6790 for better translations.
6791
18534ad9
VS
67922012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6793
6794 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6795 options with generic grub-mkrescue.in with the goal of future
6796 merge.
6797
c84ba308
VS
67982012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 * grub-core/kern/mm.c: Add missing include of i18n.h
6801 * grub-core/lib/relocator.c: Likewise.
6802
347998c2
VS
68032012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6806 error.
6807 (allocate_pages): Check return value.
6808 Replace fatal with error.
6809 (grub_linux_boot): Replace printf with dprintf.
6810 Check find_mmap_size return value.
6811 Replace fatal with error.
6812 Don't call grub_machine_fini.
6813 (grub_load_elf64): Replace printf with dprintf.
6814 (grub_cmd_linux): Likewise.
6815 (grub_cmd_initrd): Likewise.
6816 (grub_cmd_payload): Likewise.
6817
c779226e
VS
68182012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6821 message.
6822 * grub-core/video/radeon_fuloong2e.c
6823 (grub_video_radeon_fuloong2e_setup): Likewise.
6824 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6825 * grub-core/video/video.c (grub_video_set_mode): Don't override
6826 standard out of memory message.
6827
dc87d45a
GS
68282012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6829
6830 NetBSD disk wedge support.
6831
6832 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6833 [__NetBSD__]: Handle NetBSD disk wedges.
6834 * util/getroot.c (convert_system_partition_to_system_disk)
6835 [__NetBSD__]: Likewise.
6836
055f856f
MW
68372012-02-03 Mark Wooding <mdw@distorted.org.uk>
6838
6839 * util/grub-mkconfig.in: Use umask rather than chmod to create
6840 grub.cfg.new to avoid insecure grub.cfg.
6841
4a9f8346
VS
68422012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 * grub-core/commands/ls.c: Gettextize.
6845 * grub-core/commands/setpci.c: Likewise.
6846 * grub-core/commands/videotest.c: Likewise.
6847 * grub-core/disk/geli.c: Likewise.
6848 * grub-core/kern/mm.c: Likewise.
6849 * grub-core/lib/relocator.c: Likewise.
6850 * grub-core/loader/efi/appleloader.c: Likewise.
6851 * grub-core/loader/i386/xnu.c: Likewise.
6852 * grub-core/loader/ia64/efi/linux.c: Likewise.
6853 * grub-core/loader/xnu.c: Likewise.
6854 * grub-core/net/dns.c: Likewise.
6855 * grub-core/net/net.c: Likewise.
6856 * grub-core/script/lexer.c: Likewise.
6857 * grub-core/script/parser.y: Likewise.
6858 * grub-core/script/yylex.l: Likewise.
6859 * util/getroot.c: Likewise.
6860 * util/grub-setup.c: Likewise.
6861
a646a366
VS
68622012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6863
6864 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6865 number.
6866
54e2be26
VS
68672012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6868
6869 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6870
f7c71e68
VS
68712012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6872
6873 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6874 macro.
6875 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6876 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6877
a32d5c71
VS
68782012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6881 * util/grub-install.in: Gettextize.
6882 * util/grub-mkconfig.in: Likewise.
6883 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6884 if not available.
6885 (grub_warn): Gettextize.
6886 * util/grub-mknetdir.in: Gettextize.
6887 * util/grub-mkrescue.in: Likewise.
6888 * util/grub-mkstandalone.in: Likewise.
6889 * util/grub-reboot.in: Likewise.
6890 * util/grub-set-default.in: Likewise.
6891 * util/grub.d/00_header.in: Likewise.
6892 * util/grub.d/10_hurd.in: Likewise.
6893 * util/grub.d/10_kfreebsd.in: Likewise.
6894 * util/grub.d/10_linux.in: Likewise.
6895 * util/grub.d/10_netbsd.in: Likewise.
6896 * util/grub.d/10_windows.in: Likewise.
6897 * util/grub.d/20_linux_xen.in: Likewise.
6898 * util/grub.d/30_os-prober.in: Likewise.
6899 * po/POTFILES-shell.in: Regenerate.
6900
69edd81a
RL
69012012-02-03 Richard Laager <rlaager@wiktel.com>
6902
6903 * util/grub-mkimage.c (main): Fix format-security warning.
6904 * util/grub-mkrelpath.c (main): Likewise.
6905 * util/grub-probe.c (main): Likewise.
6906
65f08dbf
RL
69072012-02-03 Richard Laager <rlaager@wiktel.com>
6908
6909 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6910 failure.
6911 Put back lost PRINT_DRIVE.
6912
e9084abe
RL
69132012-02-03 Richard Laager <rlaager@wiktel.com>
6914
6915 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6916 (grub_guess_root_devices): Replace strlen with sizeof.
6917 Avoid crash.
6918 (find_root_devices_from_poolname): Remove unused variable.
6919 Handle raidzN.
6920
cf5f7ee7
VS
69212012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6922
6923 Support install on multi-device filesystems.
6924
6925 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6926 (grub_guess_root_devices): ...this. Return char **. All users updated.
6927 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6928 Removed.
6929 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6930 (find_root_devices_from_poolname): ... here.
6931 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6932 Support zfs-fuse.
6933 (grub_guess_root_device): Rename to ...
6934 (grub_guess_root_devices): ... this. Return char **. All users updated.
6935 * util/grub-install.in: Handle multi-device filesystems.
6936 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6937 argument. All users updated.
6938 Handle multi-device filesystems.
6939 Use 'delim' as separator.
6940 Remove device check to allow filesystems on file.
6941 (main): Support -0 argument. Handle multi-device.
6942 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6943 Fix a cross-device check while on it.
6944 (arguments): Remove root_dev.
6945 (argp_parser): Remove -r.
6946 (main): Remove root_dev.
6947
2f53a9ed
VS
69482012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6949
6950 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6951
17e1d934
VS
69522012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6953
6954 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6955 symbol.
6956 Reported by: NODA, Kai <nodakai>.
6957
d3e3fab5
VS
69582012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6959
6960 Fix ehci on amd64.
6961
6962 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6963 pointers.
6964 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6965 (grub_ehci_setup_qh): Likewise.
6966 (grub_ehci_find_qh): Likewise.
6967 (grub_ehci_transaction): Likewise.
6968 (grub_ehci_setup_transfer): Likewise.
6969 (grub_ehci_check_transfer): Likewise.
6970 (grub_ehci_portstatus): Likewise.
6971 (grub_ehci_detect_dev): Likewise.
6972 (grub_ehci_transfer_controller_data): New field td_last_phys.
6973 (grub_ehci_setup_transfer): Fill td_last_phys.
6974 (grub_ehci_check_transfer): Use td_last_phys.
6975
3008675b
SG
69762012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6977
6978 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6979 if no submenu is present.
6980
fc9b5652
AN
69812012-02-01 Aleš Nesrsta <starous@volny.cz>
6982
6983 CBI support.
6984
6985 * include/grub/usb.h (grub_usbms_protocol_t): New values
6986 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6987 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6988 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6989 (grub_usbms_dev): Add subclass, protocol and intrpt.
6990 Remove in_maxsz and out_maxsz.
6991 (grub_usbms_reset): Rename to ...
6992 (grub_usbms_bo_reset): .. this.
6993 (grub_usbms_cbi_cmd): New function.
6994 (grub_usbms_cbi_reset): Likewise.
6995 (grub_usbms_reset): Likewise.
6996 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6997 (grub_usbms_transfer): Rename to ...
6998 (grub_usbms_transfer_bo): ... this.
6999 (grub_usbms_transfer_cbi): Likewise.
7000 (grub_usbms_transfer): Likewise.
7001
a2b81d53
AN
70022012-02-01 Aleš Nesrsta <starous@volny.cz>
70032012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7004
7005 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7006 the support for the CS5536 modification thereos and few bugfixes.
7007
7008 * grub-core/Makefile.core.def (ehci): New module.
7009 * grub-core/bus/usb/ehci.c: New file.
7010 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7011 port and hubaddr. All users updated.
7012 Save port and hubaddr into dev structure.
7013 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7014 define.
7015 * include/grub/pci.h (grub_dma_phys2virt): New function.
7016 (grub_dma_virt2phys): Likewise.
7017 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7018
b1d51f02
VS
70192012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7022 check as some mkfs implementations omit it.
7023
fc694106
VS
70242012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7027
6c0920e3
VS
70282012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7029
7030 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7031 Add new member volname2.
7032 (grub_jfs_label): Use volname2 if available.
7033
d1a46f9a
VS
70342012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7037 over last_mounted as seen in image generated by mkfs.nilfs2.
7038 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7039
dec8ed14
VS
70402012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7041
7042 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7043 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7044 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7045
7397c69b
VS
70462012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7049 over the sector.
7050
b3fe42ad
VS
70512012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7052
7053 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7054 subvolume name (by removing a bogus and useless check).
7055
10476bb0
VS
70562012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7057
7058 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7059 sizeof while on it.
7060
9c08ad87
VS
70612012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7062
7063 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7064 (grub_scsi_read_capacity10): ... this.
7065 (grub_scsi_read_capacity16): New function.
7066 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7067 0xffffffff.
7068 Fix off-by-one error.
7069 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7070 64-bit unsigned.
7071 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7072 (grub_scsi_read_capacity10): ... this.
7073 (grub_scsi_read_capacity_data): Rename to ...
7074 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7075 (grub_scsi_read_capacity16): New struct.
7076 (grub_scsi_read_capacity16_data): Likewise.
7077 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7078 grub_scsi_cmd_read_capacity10.
7079 New command grub_scsi_cmd_read_capacity16.
7080
bc8d0f45
VS
70812012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7082
7083 SCSI >2TiB support.
7084
7085 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7086 (grub_scsi_write16): Likewise.
7087 (grub_scsi_read): Use read16 when necessary.
7088 (grub_scsi_write): Likewise.
7089 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7090 (grub_scsi_write16): Likewise.
7091 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7092
cc774926
VS
70932012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 SCSI write support (for usbms mainly).
7096
7097 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7098 a const pointer.
7099 (grub_scsi_write): Implement.
7100 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7101
67639fd7
VS
71022012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7103
7104 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7105 variable.
7106
9079d3ed
VS
71072012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7108
7109 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7110
c6a6f204
VS
71112012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 * po/POTFILES.in: Regenerate.
7114
ecbf8cd1
VS
71152012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7118 with grub_printf to avoid unnecessary fatal failure.
7119
0b3b3b38
VS
71202012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7121
7122 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7123 (INT_MAX): Likewise.
7124 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7125 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7126 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7127 (strcpy): Likewise.
7128 (strstr): Likewise.
7129 (strchr): Likewise.
7130 (strncpy): Likewise.
7131 (strcat): Likewise.
7132 (strncat): Likewise.
7133 (strcoll): Likewise.
7134 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7135 (GRUB_INT_MAX): Likewise.
7136
db7337a3
VS
71372012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7140 unexpected error.
7141 (optimize_utf8): Likewise.
7142 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7143
f37c87e1
VS
71442012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * grub-core/boot/i386/pc/lnxboot.S: Use
7147 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7148 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7149 location.
7150 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7151 definition.
7152 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7153
63fe43f3
VS
71542012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7157 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7158 now to avoid double free.
7159 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7160 hostdisk.
7161 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7162 * util/grub-probe.c (escape_of_path): Always return a new copy.
7163 (print_full_name): Escape path.
7164 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7165 Fix hints on abstractions.
7166
ebe2c961
VS
71672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7168
7169 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7170 Don't add "root" line if no compatibility hont is available.
7171 Suggested by: Seth Goldberg.
7172
2b5336a2
VS
71732012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7174
7175 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7176 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7177 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7178 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7179
74310bd8
VS
71802012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7181
7182 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7183
c30582ba
VS
71842012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7185
7186 * util/grub-pe2elf.c (ehdr): Make static.
7187 (shdr): Likewise.
7188 (num_sections): Likewise.
7189 (offset): Likewise.
7190
5f47782c
VS
71912012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7192
7193 Eliminate ofpath limits and possible overflows.
7194
7195 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7196 (OF_PATH_MAX): Removed.
7197 (MAX_DISK_CAT): New const.
7198 (find_obppath): Use allocated rather than preallocated buffer.
7199 Return result. Argument of_path removed. All users updated.
7200 Add missing fdstat.
7201 (xrealpath): New function.
7202 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7203 Allocate rather than use preallocated buffer. All users updated.
7204 (__of_path_common): Use allocated rather than preallocatecd buffer.
7205 Return result. Argument of_path removed. All users updated.
7206 (vendor_is_ATA): Read only needed part form the file.
7207 (check_sas): Allocate depending on contents rather than fixed.
7208 (main) [STANDALONE]: Handle NULL result.
7209
f990cbf9
VS
72102012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7211
7212 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7213
9c6e84b8
VS
72142012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7215
7216 Cryptodisk write support.
7217
7218 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7219 (grub_cryptodisk_decrypt): Moved logic to ...
7220 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7221 (grub_cryptodisk_write): Implement.
7222 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7223 (grub_util_fd_write): ... this. Make global.
7224 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7225
87cf9744
VS
72262012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7227
7228 * include/grub/list.h (grub_list_remove): Don't crash if element is
7229 removed twice.
7230
ca8c0baf
VS
72312012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7232
7233 Rename ofconsole to console.
7234
7235 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7236 as sysnonym to console.
7237 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7238 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7239 Rename grub_ofconsole_ to grub_console_. All users updated
7240 (grub_console_term_output): Rename "ofconsole" to "console".
7241 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7242 as "console".
7243
64c8b8f6
VS
72442012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7247 handling.
7248 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7249 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7250 GRUB_DISK_DEVICE_FILE_ID.
7251
f6c434d5
VS
72522012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7255 and improve performance.
7256
5858b42d
VS
72572012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7258
7259 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7260 missing ieee1275/ prefix on whole disk.
7261
4ed3c26b
VS
72622012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7263
7264 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7265 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7266
df71143e
VS
72672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7268
7269 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7270
076e7c0f
VS
72712012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7272
7273 Merge common RAID and LVM logic to an abstract diskfilter.
7274 Add LDM support using the same framework.
7275
7276 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7277 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7278 (libgrubmods): Remove grub-core/disk/raid.c and
7279 grub-core/partmap/gpt.c.
7280 * grub-core/Makefile.core.def (ldm): New module.
7281 (raid): Renamed to diskfilter. All users updated.
7282 * grub-core/disk/raid.c: Moved to ...
7283 * grub-core/disk/diskfilter.c: ... here.
7284 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7285 (lv_num): New var.
7286 (find_array): Renamed to ...
7287 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7288 (grub_is_array_readable): Renamed to ...
7289 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7290 (insert_array): New argument id.
7291 (is_node_readable): New function.
7292 (scan_device): Rename to ...
7293 (scan_disk): .. this. Restrict to one disk.
7294 (scan_devices): New function.
7295 (grub_diskfilter_iterate): Support multi-LV.
7296 Skip invisible and nameless LVs.
7297 (grub_diskfilter_memberlist): Support multi-LV.
7298 (grub_diskfilter_read_node): New function.
7299 (grub_raid_read): Most of logic moved to ...
7300 (read_segment): ... here
7301 (read_lv): New function.
7302 (grub_diskfilter_get_vg_by_uuid): New function.
7303 (grub_diskfilter_make_raid): Likewise.
7304 * grub-core/disk/ldm.c: New file.
7305 * grub-core/disk/lvm.c (vg_list): Removed.
7306 (lv_count): Likewise.
7307 (scan_depth): Likewise.
7308 (is_lv_readable): Likewise.
7309 (grub_lvm_getvalue): Advance pointer past the number.
7310 (find_lv): Removed.
7311 (do_lvm_scan): Refactored into ...
7312 (grub_lvm_detect): ... this. Support raid.
7313 (grub_lvm_iterate): Removed.
7314 (grub_lvm_memberlist): Likewise.
7315 (grub_lvm_open): Likewise.
7316 (grub_lvm_close): Likewise.
7317 (read_lv): Likewise.
7318 (read_node): Likewise.
7319 (is_node_readable): Likewise.
7320 (is_lv_readable): Likewise.
7321 (grub_lvm_read): Likewise.
7322 (grub_lvm_write): Likewise.
7323 (grub_lvm_dev): Use diskfilter
7324 (GRUB_MOD_INIT): Likewise.
7325 (GRUB_MOD_FINI): Likewise.
7326 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7327 new interface.
7328 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7329 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7330 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7331 grub_diskfilter_read_node.
7332 Fix a bug with xor.
7333 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7334 grub_diskfilter_read_node.
7335 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7336 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7337 (grub_disk_dev_iterate): Move from here...
7338 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7339 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7340 Make global.
7341 (grub_hostdisk_find_partition_start): Likewise.
7342 (grub_hostdisk_os_dev_to_grub_drive): New function.
7343 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7344 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7345 * util/getroot.c (make_device_name): ... here.
7346 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7347 Move to ...
7348 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7349 * grub-core/kern/emu/hostdisk.c
7350 (convert_system_partition_to_system_disk): Move to ...
7351 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7352 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7353 * util/getroot.c (device_is_wholedisk): ... here.
7354 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7355 * util/getroot.c (find_system_device): ... here.
7356 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7357 Move to ...
7358 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7359 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7360 Move to ...
7361 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7362 Handle LDM.
7363 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7364 Move to ...
7365 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7366 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7367 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7368 DISKFILTER.
7369 * include/grub/raid.h: Renamed to ...
7370 * include/grub/diskfilter.h: ... this.
7371 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7372 (GRUB_RAID_LAYOUT_*): Make into array.
7373 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7374 (grub_diskfilter_vg): New struct.
7375 (grub_diskfilter_pv_id): Likewise.
7376 (grub_raid_member): Removed.
7377 (grub_raid_array): Likewise.
7378 (grub_diskfilter_pv): New struct.
7379 (grub_diskfilter_lv): Likewise.
7380 (grub_diskfilter_segment): Likewise.
7381 (grub_diskfilter_node): Likewise.
7382 (grub_diskfilter_get_vg_by_uuid): New proto.
7383 (grub_raid_register): Inline.
7384 (grub_diskfilter_unregister): Likewise.
7385 (grub_diskfilter_make_raid): New proto.
7386 (grub_diskfilter_vg_register): Likewise.
7387 (grub_diskfilter_read_node): Likewise.
7388 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7389 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7390 (grub_util_is_ldm): Likewise.
7391 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7392 (grub_hostdisk_find_partition_start): Likewise.
7393 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7394 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7395 New definition.
7396 (grub_gpt_partition_map_iterate): New proto.
7397 * include/grub/lvm.h (grub_lvm_vg): Removed.
7398 (grub_lvm_pv): Likewise.
7399 (grub_lvm_lv): Likewise.
7400 (grub_lvm_segment): Likewise.
7401 (grub_lvm_node): Likewise.
7402 * util/getroot.c [...]
7403 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7404 (probe_abstraction): Likewise.
7405 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7406 (main): Remove dead logic.
7407
8a7f9b9c
VS
74082012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 Simplify root device discover and don't fail when trying to open
7411 incorrect devices.
7412
7413 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7414 function.
7415 (get_diskname_from_path): Likewise.
7416 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7417 of iterating.
7418
30545b85
VS
74192012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7420
7421 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7422
28ea58cf
VS
74232012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7424
7425 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7426 pastthe end.
7427
692dabca
VS
74282012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7429
7430 * util/grub-install.in: Add missing \.
7431 Reported by: gentoofan
7432
f6e4ea70
VS
74332012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7434
7435 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7436 (direct_read): Use correct compressed size.
7437 (grub_squash_read_data): Likewise.
7438
74392012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
7440
7441 * docs/grub.texi (Platform limitations): New section.
7442 (Platform-specific operations): Likewise.
7443 * docs/grub-dev.texi (Porting): Likewise.
7444
76261110
VS
74452012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7446
7447 IEEE1275 disk write support.
7448
7449 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7450 const void *.
7451 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7452 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7453 and seek loginc to ...
7454 (grub_ofdisk_prepare): ... here.
7455 (grub_ofdisk_write): Implement.
7456
fc36d603
VS
74572012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7458
7459 ARC disk write support.
7460
7461 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7462 (reopen): New argument writable. All users updated.
7463 Handle required access mode.
7464 (grub_arcdisk_write): Implement.
7465 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7466 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7467
e06c2e7a
VS
74682012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7469
7470 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7471 (read_sblock): Don't attempt to read superblocks outside the disk size.
7472
ff447958
VS
74732012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7474
7475 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7476 first superblock to find the second one when possible.
7477
9e88df39
VS
74782012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 * util/grub-install.in: Fix an ARC bug.
7481 Print a warning if no platform-specific setup is available.
7482
bb26e4ff
VS
74832012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7484
7485 Use static allocation rather than scratch pointer in reed_solomon.
7486 It decreases its size significantly and avoids a variable in .text.
7487
7488 * grub-core/lib/reed_solomon.c (scratch): Removed.
7489 (chosenstat): New const or static array.
7490 (sigma): Likewise.
7491 (errpot): Likewise.
7492 (errpos): Likewise.
7493 (sy): Likewise.
7494 (mstat): Likewise.
7495 (errvals): Likewise.
7496 (eqstat): Likewise.
7497 (pol_evaluate): Replace x with log_x argument. All users updated.
7498 (syndroms): Removed.
7499 (gauss_solve): Use statically allocated arrays.
7500 (rs_recover): Likewise.
7501 Calculate syndroms directly.
7502 (decode_block): Use statically allocated arrays.
7503 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7504 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7505
2e13ede5
VS
75062012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7507
7508 Eliminate fixed limit on reed solomon decoder length.
7509
7510 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7511 rather than hardcoding the address.
7512 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7513 no_reed_solomon_length.
7514 Move gate_a20 to no-reed-solomon part.
7515 Don't force a particular size of no reed-solomon part.
7516 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7517 Removed.
7518 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7519 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7520
f8a9ab12
VS
75212012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7522
7523 * grub-core/commands/wildcard.c (match_files): Handle filenames
7524 without explicit device.
7525 (wildcard_expand): Don't add explicit device if not already present.
7526 * tests/grub_script_echo1.in: Add a new expansion test.
7527
87edb894
VS
75282012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7529
7530 Replace single-linked with double-linked lists. It results in more
7531 compact and more efficient code.
7532
7533 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7534 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7535 (grub_list_remove): Moved from here ...
7536 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7537 (grub_prio_list_insert): Set prev.
7538 * include/grub/list.h (grub_list): Add prev. All users updated.
7539
48b391e9
VS
75402012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 Handle newer autotools. Add some missing quotes while on it.
7543
7544 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7545 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7546 (pkgdata_DATA): ... here.
7547 * Makefile.util.def (update-grub_lib): Removed.
7548 * conf/Makefile.common (pkglib_DATA): Removed.
7549 (pkglib_SCRIPTS): Likewise.
7550 (pkgdata_DATA): New variable.
7551 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7552 needed.
7553 Add missing quotes.
7554 Remove unused variable while on it.
7555 * tests/util/grub-shell.in: Likewise.
7556 * util/grub-install.in: Likewise.
7557 * util/grub-mkconfig.in: Likewise.
7558 * util/grub-mknetdir.in: Likewise.
7559 * util/grub-mkrescue.in: Likewise.
7560 * util/grub-mkstandalone.in: Likewise.
7561 * util/grub.d/00_header.in: Likewise.
7562 * util/grub.d/10_hurd.in: Likewise.
7563 * util/grub.d/10_illumos.in: Likewise.
7564 * util/grub.d/10_kfreebsd.in: Likewise.
7565 * util/grub.d/10_linux.in: Likewise.
7566 * util/grub.d/10_netbsd.in: Likewise.
7567 * util/grub.d/10_windows.in: Likewise.
7568 * util/grub.d/20_linux_xen.in: Likewise.
7569 * util/grub.d/30_os-prober.in: Likewise.
7570 * util/update-grub_lib.in: Removed.
7571
75722012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
7573
7574 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7575 a workaround for intel problem.
7576
66832792
PRP
75772012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
75782012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
75792012-01-23 pfsmorigo
7580
7581 * util/grub-install.in: Support dd'in into PreP partition.
7582 * util/grub-probe.c (probe): Support discovering partition type.
7583 (main): Support -t msdos_parttype.
7584
7816a17e
VS
75852012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7588 infinite recursion using counter.
7589 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7590 init to skip it if the magic check fails.
7591 (dec_stream_header): Init s->crc32.
7592
8f9d3a8c
ZB
75932012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
75942012-01-22 Zachary Bedell <pendorbound@gmail.com>
75952012-01-22 Richard Laager <rlaager@wiktel.com>
7596
7597 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7598 All users updated.
7599 (find_bestub): Determine correct size.
7600 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7601 (scan_disk): Align the size down.
7602 Call check pool before find_bestub to have ashift.
7603
b055dd32
VS
76042012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7607 dprintf in no-malloc zone.
7608
d779e9bd
ML
76092012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7610
7611 * configure.ac: Add back in test for limits.h.
7612
b508af69
VS
76132012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7614
7615 Support 4K-sector NTFS.
7616
7617 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7618 (grub_ntfs_data): Remove blocksize.
7619 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7620 Remove data argument. All users updated.
7621
dad9c8b5
VS
76222012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7623
7624 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7625 being in .text to avoid dprel references.
7626 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7627 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7628 (grub_arch_highmemsize): Likewise.
7629 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7630 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7631 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7632
d43a777e
VS
76332012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7634
7635 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7636
7637 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7638 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7639
34e4208f
VS
76402012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7643 GRUB_UTIL.
7644 (grub_set_datetime_cmos): Likewise.
7645
3ec0fc1c
VS
76462012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7647
7648 Make XZ compression parameters dependent on target and not host CPU.
7649
7650 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7651 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7652
22489834
VS
76532012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7654
7655 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7656 set but not used variable.
7657
8502fbca
VS
76582012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7659
7660 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7661 created when no uuid support is compiled into mkfs.reiser.
7662
76df2068
VS
76632012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7664
7665 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7666 (utf8_to_macroman): Do the opposite.
7667 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7668
64e3f8f6
VS
76692012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 * configure.ac: Refise build qemu_mips w/o unifont.
7672
9c271078
VS
76732012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7674
7675 Eliminate grub_min/grub_max prone to overflow usage.
7676
7677 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7678 (poll_nonroot_hub): Likewise.
7679 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7680 (grub_affs_label): Likewise.
7681 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7682 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7683 (grub_hfs_label): Likewise.
7684 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7685 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7686 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7687 (zap_leaf_array_get): Likewise.
7688 (dnode_get_path): Likewise.
7689 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7690 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7691 * grub-core/script/execute.c (grub_script_break): Likewise.
7692 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7693 grub_max.
7694 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7695 * include/grub/misc.h (grub_min): Removed.
7696 (grub_max): Likewise.
7697
80662dbc
VS
76982012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7699
7700 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7701 direct.inode = 0.
7702
e6da1467
VS
77032012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7706
b1ac4cb1
VS
77072012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7708
7709 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7710
b4bf7c3b
VS
77112012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7712
7713 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7714 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7715
8ee1101a
VS
77162012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7717
7718 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7719 rather than a hack for grub_strncasemap.
7720
77212012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7722
7723 Support multiple initrds
7724 Note: part of this was accidently committed in r3739.
7725
7726 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7727 initrd.
7728 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7729 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7730 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7731 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7732 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7733
4d1e2bc9
VS
77342012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7735
7736 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7737 disks with unknown size.
7738 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7739
75b49ebe
VS
77402012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7741
7742 Remove defines pertaining to arbitrary limits not affecting GRUB
7743 anymore.
7744
7745 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7746 (EXT2_MAX_SYMLINKCNT): Likewise.
7747 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7748 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7749 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7750 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7751 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7752 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7753 (DN_MAX_OBJECT_SHIFT): Likewise.
7754 (DN_MAX_OFFSET_SHIFT): Likewise.
7755 (DN_MAX_OBJECT): Likewise.
7756 (DNODES_PER_LEVEL_SHIFT): Likewise.
7757 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7758 (SPA_MAXBLOCKSIZE): Likewise.
7759 (SPA_BLOCKSIZES): Likewise.
7760 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7761 (MZAP_MAX_BLKSZ): Likewise.
7762
74a1dce7
VS
77632012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7764
7765 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7766 handle NULL appropriately.
7767 Remove MIN.
7768
30c7d3ce
VS
77692012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7770
7771 Fix efiemu.
7772
7773 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7774 cpu/types.h.
7775 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7776 * configure.ac: Fix efiemu check.
7777
3c76ea0c
VS
77782012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7779
7780 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7781 grub_probe.
7782 Reported by: adamwill
7783
7e532280
SG
77842012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7785
7786 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7787
30492374
VS
77882012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7789
7790 Fix handling of wide characters in gfxterm.
7791
7792 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7793 (clear_char): Likewise.
7794 (paint_char): Skip code == NULL chars.
7795 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7796
e70cb72f
VS
77972012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7798
7799 * grub-core/normal/charset.c: Move comment to right place.
7800
5c827cf9
VS
78012012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7804 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7805 (grub_affs_mount): Revert the correct version checking.
7806
53603892
VS
78072012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7808
7809 * docs/grub.texi (Unicode): Mention several other unsupported features.
7810
ff094b9b
VS
78112011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7812
7813 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7814 case statements as compile-time one.
7815 (direct_read): Prevent spurious warnings.
7816 (grub_squash_read_data): Likewise.
7817
c029da8a
VS
78182011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7819
7820 Various squash4 fixes and LZO and XZ support.
7821
7822 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7823 Add xzembed source files.
7824 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7825 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7826 (grub_squash_inode): New subtype long_dir.
7827 (SQUASH_TYPE_LONG_DIR): New inode type.
7828 (COMPRESSION): New enum.
7829 (XZBUFSIZ): New const.
7830 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7831 (read_chunk): Use data->decompress.
7832 (zlib_decompress): New function.
7833 (lzo_decompress): Likewise.
7834 (xz_decompress): Likewise.
7835 (squash_mount): Set new data fields.
7836 (grub_squash_iterate_dir): Handle long dir.
7837 (squash_unmount): Free xzdec and xzbuf.
7838 (grub_squash_open): Check ino type.
7839 (direct_read): Stylistic fixes. Use data->decompress.
7840 (grub_squash_read_data): Likewise.
7841 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7842 (get_byte): Likewise.
7843 (grub_zlib_disk_read): Removed.
7844 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7845 (GRUB_POSIX_BOOL_DEFINED): New define.
7846 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7847 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7848 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7849 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7850
7a45a539
VS
78512011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7852
7853 Don't override more informative errors.
7854
7855 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7856 * grub-core/font/font.c (open_section): Likewise.
7857 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7858 filename. Don't override errors.
7859 (grub_cmd_openbsd_ramdisk): Don't override errors.
7860 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7861 (grub_cmd_initrd): Likewise.
7862 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7863 (grub_cmd_initrd): Likewise.
7864 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7865 (grub_cmd_linux): Likewise.
7866 (grub_cmd_initrd): Likewise.
7867 (grub_cmd_payload): Likewise.
7868 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7869 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7870 (grub_cmd_module): Likewise.
7871 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7872 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7873 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7874 (grub_cmd_xnu_mkext): Likewise.
7875 (grub_cmd_xnu_ramdisk): Likewise.
7876 (grub_xnu_check_os_bundle_required): Likewise.
7877 (grub_xnu_load_kext_from_dir): Likewise.
7878 (grub_cmd_xnu_kextdir): Likewise.
7879 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7880
b2d004db
VS
78812011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7882
7883 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7884 as 1024 in block size field. Found on one of my test images.
7885 Small optimisation while on it.
7886
ec000eac
VS
78872011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7888
7889 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7890 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7891 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7892 performance fixes while on it.
7893 (grub_sfs_close): Fix memory leak while on it.
7894 (grub_sfs_label): Convert Latin1 to UTF-8.
7895
f50e1165
VS
78962011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7897
7898 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7899 space to avoid overflows.
7900 (grub_hfs_label): Convert from macroman to UTF-8.
7901
2ae254de
VS
79022011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7903
7904 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7905
0108f491
VS
79062011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7907
7908 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7909
f45f5f89
VS
79102011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7911
7912 * unicode: Import Unicode 6.0 data.
7913
4d8c4765
VS
79142011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7915
63fa8ef9
VS
7916 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7917 outside of range.
7918
79192011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7920
7921 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
7922
7923 * include/grub/charset.h (grub_getend): New function.
7924 * grub-core/script/function.c (grub_script_function_find): Use
7925 grub_getend.
7926 * grub-core/normal/completion.c (add_completion): Likewise.
7927
f3cb4a4e
VS
79282011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7929
7930 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7931 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7932 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7933 (GRUB_UNICODE_TAG_END): Likewise.
7934 (GRUB_UNICODE_LAST_VALID): Likewise.
7935
5da8dbc5
VS
79362011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7937
7938 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7939 len and make it smaller. All users updated.
7940 * util/import_unicode.py: Put length and not end character.
7941 Check length.
7942
8569f13d
VS
79432011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7944
7945 Make better Unicode-compliant and unify some UTF-8 code pathes.
7946
7947 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7948 valid character.
7949 (grub_is_valid_utf8): Use grub_utf8_process.
7950 Check resulting code range.
7951 (grub_utf8_to_ucs4): Use grub_utf8_process.
7952 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7953 valid character.
7954
cc4fddf5
VS
79552011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7956
7957 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7958
bbc47747
VS
79592011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7960
7961 * docs/grub.texi (Filesystems): Mention AFS.
7962
f63d6bf4
VS
79632011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7964
7965 * docs/grub.texi (Filesystems): Clarify restrictions.
7966 (Regexp): Mention non-Unicode regexp behaviour.
7967 (Other): Mention non-Unicode matching behaviour.
7968
74bbf0db
VS
79692011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7970
f63d6bf4 7971 Make HFS implementation use MacRoman.
74bbf0db
VS
7972
7973 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7974 (macroman): New const array.
7975 (macroman_to_utf8): New function.
7976 (utf8_to_macroman): Likewise.
7977 (grub_hfs_find_dir): Use utf8_to_macroman.
7978 (grub_hfs_dir): Use macroman_to_utf8.
7979 Set case_insensitive.
7980
4ea0316e
VS
79812011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7982
7983 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7984
d3c13cbd
VS
79852011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7986
7987 Integrate hints into autogeneration scripts.
7988
7989 * docs/grub.texi (Filesystems): Add a hostdisk example.
7990 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7991 (grub-probe): Add ofpath.
7992 * gentpl.py: Remove group nosparc64.
7993 * grub-core/commands/search.c (cache_entry): New struct.
7994 (cache): New var.
7995 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7996 * grub-core/commands/search_wrap.c (options): Add platform-specific
7997 hint options.
7998 (grub_cmd_search): Handle platform-specific hints.
7999 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8000 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8001 (grub_util_biosdisk_data): Likewise.
8002 (grub_util_biosdisk_open): Set device_map.
8003 (read_device_map): Handle "" as indication of no map.
8004 Set device_map.
8005 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8006 (grub_util_biosdisk_get_compatibility_hint): New function.
8007 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8008 * include/grub/emu/hostdisk.h
8009 (grub_util_biosdisk_get_compatibility_hint): New proto.
8010 * util/grub-install.in: Don't call grub-mkdevicemap.
8011 Add platform-specific hint to load.cfg.
8012 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8013 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8014 hints. Set root preliminary to compatibility hint, not to OS name.
8015 * util/grub-probe.c (PRINT_*): Add hints.
8016 (print): Make static.
8017 (escape_of_path): New function.
8018 (guess_bios_drive): Likewise.
8019 (guess_efi_drive): Likewise.
8020 (guess_baremetal_drive): Likewise.
8021 (print_full_name): Likewise.
8022 (probe): Handle hints.
8023 (main): Likewise.
8024 * util/ieee1275/devicemap.c: Removed.
8025 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8026 updated.
8027 (grub_util_devname_to_ofpath): Return NULL on failure.
8028
8029 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8030 resource leak.
8031 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8032
8033 * po/POTFILES.in: Regenerated.
8034
8035 Allow purely long options
8036
8037 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8038 (SHORT_ARG_USAGE): Likewise.
8039 (grub_arg_show_help): Compare opt with help_options.
8040 (parse_option): Receive opt as argument. If makes big simplificatons.
8041 All users updated
8042
00ce2df3
VS
80432011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8044
8045 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8046 Restructure to avoid warning.
8047
e77e325f
VS
80482011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8049
8050 * util/grub-install.in: Account for possible escaped comma in device
8051 name.
8052
165099ea
VS
80532011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8054
8055 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8056 channel.
8057
ce4a999d
VS
80582011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8061 allocation and zero-setting.
8062 (grub_ieee1275_get_devname): Check that alias is complete.
8063
379586ad
VS
80642011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8065
8066 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8067 unaligned segments.
8068
9197b0ad
VS
80692011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8070
8071 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8072 prefix.
8073 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8074 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8075 Add ieee1275 prefix.
8076
edddb7f9
VS
80772011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8078
8079 * docs/grub.texi (Filesystems): Update.
8080
a1a8b1b9
VS
80812011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8082
8083 Support odc, newc and bigendian cpio formats.
8084
8085 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8086 * grub-core/Makefile.core.def (newc): New module.
8087 (odc): Likewise.
8088 (cpio_be): Likewise.
8089 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8090 (MAGIC): Likewise.
8091 (MAGIC2): Likewise.
8092 (head) [MODE_ODC]: Adapt for the format.
8093 (head) [MODE_NEWC]: Likewise.
8094 (head) [!MODE_*]: Write fields of interest as arrays.
8095 (MAGIC_USTAR): Removed.
8096 (read_number) [MODE_NEWC]: Change to hex.
8097 (read_number) [!MODE_*]: Parse binary arrays.
8098 (grub_cpio_find_file): Factor out the code for better structure and
8099 always use read_number.
8100 (grub_cpio_mount): Use MAGIC and MAGIC2.
8101 (grub_cpio_dir): Exit on first hook non-0 return.
8102 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8103 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8104 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8105 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8106 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8107 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8108 * grub-core/fs/newc.c: New file.
8109 * grub-core/fs/odc.c: Likewise.
8110 * grub-core/fs/cpio_be.c: Likewise.
8111
58eba9ee
VS
81122011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8113
8114 Fix handling of tar numbers occupying the whole field.
8115
8116 * grub-core/fs/cpio.c (read_number): New function.
8117 (grub_cpio_find_file): Use read_number instead of strtoull.
8118
a54a0e12
VS
81192011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8120
8121 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8122 occupying the whole field size.
8123
a6120aca
LA
81242011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8125
8126 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8127
a93964ce
VS
81282011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8129
8130 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8131
3ea1ca46
SG
81322011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8133
8134 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8135 TARGET_IMG_LDFLAGS.
8136
b87f7ef2
VS
81372011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8138
8139 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8140 (mountinfo_entry): Increase the field size to take escaping into
8141 account.
8142 (find_root_device_from_libzfs): Add one byte to size of strings for
8143 security.
8144
62092395
VS
81452011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8146
8147 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8148 an assert.
8149 * util/grub-setup.c (setup): Likewise.
8150
1f0b1a77
VS
81512011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8152
8153 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8154 _LzmaDecodeA.
8155
8eba9997
VS
81562011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8157
8158 * docs/grub.texi (Internationalisation): New section.
8159
dd0c91e9
VS
81602011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8161
8162 * docs/grub.texi (Loopback booting): New section.
8163
81642011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
8165
8166 * util/grub-mkstandalone.in: Fix minor typo errors.
8167
198e150a
VS
81682011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8169
8170 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8171
8172 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8173 net/icmp.c and net/icmp6.c.
8174 (http): New module.
8175 (priority_queue): Likewise.
8176 * grub-core/io/bufio.c: Rewritten.
8177 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8178 TYPE_WITH_CONFIGFILE_OPTION.
8179 (legacy_commands): Add bootp and dhcp.
8180 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8181 (grub_legacy_parse): Likewise.
8182 * grub-core/lib/priority_queue.c: New file.
8183 * grub-core/net/arp.c: Add missing license header.
8184 (arp_find_entry): Removed.
8185 (arp_find_entry): Likewise.
8186 (grub_net_arp_resolve): Rename to ...
8187 (grub_net_arp_send_request): ...this.
8188 (grub_net_arp_receive): New card argument.
8189 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8190 Set router and DNS server.
8191 (grub_net_configure_by_dhcp_ack): Handle routing information.
8192 (grub_cmd_bootp): Set checksum.
8193 (grub_bootp_init): Remove net_dhcp.
8194 * grub-core/net/dns.c: New file.
8195 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8196 completion.
8197 (get_card_packet): Handle allocation.
8198 (grub_efinet_findcards): Set mtu.
8199 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8200 (get_card_packet): Handle allocation.
8201 (emucard): Set mtu.
8202 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8203 (GRUB_MOD_INIT): Set mtu.
8204 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8205 mtu.
8206 (get_card_packet): Handle allocation.
8207 (grub_ofnet_findcards): Set mtu.
8208 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8209 assert.
8210 (grub_net_recv_ethernet_packet): Handle IPv6.
8211 * grub-core/net/http.c: New file.
8212 * grub-core/net/icmp.c: Likewise.
8213 * grub-core/net/icmp6.c: Likewise.
8214 * grub-core/net/ip.c (ip6addr): New type.
8215 (ip6hdr): Likewise.
8216 (reassemble): Likewise.
8217 (cmp): New function.
8218 (reassembles): New variable.
8219 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8220 (id): New variable.
8221 (send_fragmented): New function.
8222 (grub_net_send_ip_packet): Rename to ...
8223 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8224 Handle non-UDP.
8225 (grub_net_recv_ip_packets): Rename to ...
8226 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8227 (free_rsm): New function.
8228 (free_old_fragments): Likewise.
8229 (grub_net_recv_ip4_packets): New function.
8230 (grub_net_send_ip6_packet): Likewise.
8231 (grub_net_send_ip_packet): Likewise.
8232 (grub_net_recv_ip6_packets): Likewise.
8233 (grub_net_recv_ip_packets): Likewise.
8234 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8235 (LINK_LAYER_CACHE_SIZE): New const.
8236 (link_layer_find_entry): New function.
8237 (grub_net_link_layer_add_address): Likewise.
8238 (grub_net_link_layer_resolve_check): Likewise.
8239 (grub_net_link_layer_resolve): Likewise.
8240 (grub_net_ipv6_get_slaac): Likewise.
8241 (grub_net_ipv6_get_link_local): Likewise.
8242 (grub_cmd_ipv6_autoconf): Likewise.
8243 (parse_ip): Handle one number representation.
8244 (parse_ip6): New functoion.
8245 (match_net): Handle IPv6.
8246 (grub_net_resolve_address): Handle IPv6 and DNS.
8247 (grub_net_resolve_net_address): Handle IPv6.
8248 (route_cmp): New function.
8249 (grub_net_route_address): Find best route.
8250 (grub_net_addr_to_str): Handle IPv6.
8251 (grub_net_addr_cmp): New function.
8252 (grub_net_add_addr): Register local route.
8253 (print_net_address): Handle net address.
8254 (grub_net_poll_cards): Retransmit TCP.
8255 (grub_net_poll_cards_idle_real): Likewise.
8256 (have_ahead): New function.
8257 (grub_net_seek_real): Use underlying seek.
8258 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8259 * grub-core/net/tcp.c: New file.
8260 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8261 (cmp): New function.
8262 (ack): Likewise.
8263 (tftp_receive): Handle unordered input.
8264 (destroy_pq): New function.
8265 (tftp_close): Close pq.
8266 * grub-core/net/udp.c: Put missing license header.
8267 (grub_net_udp_socket): New function.
8268 (udp_socket_register): Likewise.
8269 (grub_net_udp_close): Likewise.
8270 (grub_net_recv_udp_packet): Check checksum.
8271 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8272 * include/grub/misc.h (grub_memchr): New function.
8273 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8274 (grub_net_card_driver): Return buf in recv.
8275 (grub_net_slaac_mac_list): New struct.
8276 (grub_network_level_protocol_id): Add ipv6.
8277 (grub_net_network_level_addr): Likewise.
8278 (grub_net_network_level_net_addr): Likewise.
8279 (grub_net_app_protocol): Add seek.
8280 (grub_net_socket): Removed.
8281 (grub_net_sockets): Likewise.
8282 (grub_net_socket_register): Likewise.
8283 (grub_net_socket_unregister): Likewise.
8284 (FOR_NET_SOCKETS): Likewise.
8285 (grub_net_add_addr): Add const.
8286 (GRUB_NET_BOOTP_*): New enum.
8287 (grub_net_addr_cmp): New proto.
8288 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8289 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8290 (grub_net_hwaddr_to_str): NEw proto.
8291 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8292 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8293 (grub_dns_init): New proto.
8294 (grub_dns_fini): Likewise.
8295 (grub_net_tcp_retransmit): Likewise.
8296 (grub_net_link_layer_add_address): Likewise.
8297 (grub_net_link_layer_resolve_check): Likewise.
8298 (grub_net_link_layer_resolve): Likewise.
8299 (grub_net_dns_lookup): Likewise.
8300 (grub_net_add_dns_server): Likewise.
8301 (grub_net_remove_dns_server): Likewise.
8302 (GRUB_NET_TRIES): New const.
8303 (GRUB_NET_INTERVAL): Likewise.
8304 * include/grub/net/arp.h: Mostly rewritten.
8305 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8306 * include/grub/net/ip.h: Mostly rewritten.
8307 * include/grub/net/netbuff.h: Indent.
8308 * include/grub/net/tcp.h: New file.
8309 * include/grub/net/udp.h: Mostly rewritten.
8310 * include/grub/priority_queue.h: New file.
8311 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8312 (grub_swap_bytes64_compile_time): Likewise.
8313 (grub_cpu_to_be16_compile_time): Likewise.
8314 (grub_cpu_to_be32_compile_time): Likewise.
8315 (grub_cpu_to_be64_compile_time): Likewise.
8316 (grub_be_to_cpu64_compile_time): Likewise.
8317
215c1800
VS
83182011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8321 UINT_TO_PTR with cast.
8322
c17e546c
VS
83232011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8324
8325 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8326 don't use them.
8327
ff6b18b6
VS
83282011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8329
8330 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8331 already there.
8332
70ffcc93
VS
83332011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8334
8335 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8336 confusing ipxe.
8337
e5f4d260
VS
83382011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8339
8340 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8341 Add missing const attribute.
8342 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8343 Likewise.
8344 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8345 Likewise.
8346
8e54b4b7
VS
83472011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8348
8349 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8350 misaligned access.
8351 (serpent_setkey): Likewise.
8352 (serpent_encrypt_internal): Likewise.
8353 (serpent_decrypt_internal): Likewise.
8354 (serpent_encrypt): Don't put an alignment-increasing cast.
8355 (serpent_decrypt): Likewise.
8356 (serpent_test): Likewise.
8357
813c0a2b
VS
83582011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8361
f2b60fbd
VS
83622011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8363
8364 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8365
8366 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8367 grub_addr_t casts.
8368 (PTR_TO_UINT64): Likewise.
8369 (PTR_TO_UINT32): Likewise.
8370
5ef5c511
VS
83712011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8372
8373 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8374 because of stack.
8375 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8376 limit.
8377
c476e6df
VS
83782011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8379
8380 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8381 text_width > available width a bit more gracefully.
8382
384ad7cc
VS
83832011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8384
8385 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8386 current address calculation.
8387
96f8caf8
VS
83882011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8389
8390 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8391 stack.
8392 (encode_block): Likewise.
8393
276b7a8b
VS
83942011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8397 certainety.
8398
e3fd394a
VS
83992011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8400
8401 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8402 non-RS part to avoid RS messing with GDT.
8403 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8404 Increase to suit in realmode routines.
8405
84062011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8407
8408 * grub-core/kern/i386/realmode.S: Increase alignment.
8409 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8410
ee9c2e7a
VS
84112011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8412
8413 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8414 be deterministic.
8415 (syndroms): Compute 0 syndrom.
8416 (rs_recover): Use 0 syndrom.
8417
7a7f7cc9
VS
84182011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8419
8420 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8421
a14b16d1
VS
84222011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8425 brackets.
8426
9f59e9fc
VS
84272011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8428
ca1b552c
VS
8429 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8430 account.
8431 (get_top_pad): Likewise.
8432 (get_right_pad): Likewise.
8433 (get_bottom_pad): Likewise.
8434
84352011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8436
8437 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 8438
e739d698
VS
84392011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8440
8441 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8442 attribute as the structure isn't guaranteed to be properly aligned.
8443 (grub_efi_pci_device_path): Likewise.
8444 (grub_efi_pccard_device_path): Likewise.
8445 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8446 specify the size of `memory_type'.
8447 (grub_efi_vendor_device_path): Likewise.
8448 (grub_efi_controller_device_path): Likewise.
8449 (grub_efi_acpi_device_path): Likewise.
8450 (grub_efi_expanded_acpi_device_path): Likewise.
8451 (grub_efi_atapi_device_path): Likewise.
8452 (grub_efi_scsi_device_path): Likewise.
8453 (grub_efi_fibre_channel_device_path): Likewise.
8454 (grub_efi_1394_device_path): Likewise.
8455 (grub_efi_usb_device_path): Likewise.
8456 (grub_efi_usb_class_device_path): Likewise.
8457 (grub_efi_i2o_device_path): Likewise.
8458 (grub_efi_mac_address_device_path): Likewise.
8459 (grub_efi_ipv4_device_path): Likewise.
8460 (grub_efi_ipv6_device_path): Likewise.
8461 (grub_efi_infiniband_device_path): Likewise.
8462 (grub_efi_uart_device_path): Likewise.
8463 (grub_efi_vendor_messaging_device_path): Likewise.
8464 (grub_efi_hard_drive_device_path): Likewise.
8465 (grub_efi_cdrom_device_path): Likewise.
8466 (grub_efi_vendor_media_device_path): Likewise.
8467 (grub_efi_file_path_device_path): Likewise.
8468 (grub_efi_protocol_device_path): Likewise.
8469 (grub_efi_piwg_device_path): Likewise.
8470 (grub_efi_bios_device_path): Likewise.
8471
cb8f88ea
VS
84722011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8473
8474 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8475 (grub_ucs4_to_utf8_alloc): Likewise.
8476 (grub_ucs4_to_utf8): Likewise.
8477 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8478 (grub_ucs4_to_utf8_alloc): Likewise.
8479
309e5352
VS
84802011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8481
8482 AFFS never uses unicode.
8483
8484 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8485 (grub_latin1_to_utf8): New inline function.
8486 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8487
e7987e1b
VS
84882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8489
8490 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8491 overflow.
8492
efc2616e
VS
84932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8494
8495 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8496 (grub_squash_dirent_header): Likewise.
8497 (read_chunk): Don't double swap.
8498 (grub_squash_iterate_dir): Fix swap sizes.
8499
3c349f5a
VS
85002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8501
8502 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8503
b453412d
VS
85042011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8505
8506 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8507 (grub_hfs_iterate_dir): Likewise.
8508
12e9d4d1
VS
85092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8510
8511 Fix video on platforms where unaligned access is forbidden.
8512 Make several optimisations while on it.
8513
8514 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8515 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8516 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8517 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8518 Disable.
8519 (grub_video_fbblit_replace_16bit_1bit):
8520 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8521 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8522 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8523 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8524 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8525 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8526 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8527 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8528 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8529 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8530 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8531 (grub_video_fbblit_replace_index_RGB888): Likewise.
8532 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8533 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8534 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8535 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8536 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8537 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8538 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8539 Disable.
8540 (grub_video_fbblit_blend_XXX565_1bit):
8541 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8542 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8543 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8544 void *.
8545 * grub-core/video/fb/video_fb.c (common_blitter)
8546 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8547 (grub_video_fb_create_render_target_from_pointer)
8548 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8549 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8550 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8551 definition.
8552 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8553
ace96609
VS
85542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8557 HH22 and HM10 relocations.
8558
fd261d73
VS
85592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8560
8561 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8562
e59b7857
VS
85632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8564
8565 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8566 allocation succeeded.
8567
9b4baaa4
VS
85682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8569
8570 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8571 argument a u8 pointer. All users updated.
8572 Handle unaligned buffers.
8573
dc713193
VS
85742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8575
8576 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8577 add_part to workaround compiler bug.
8578
30dd48c2
VS
85792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8580
8581 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8582
0c6087a8
VS
85832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8584
8585 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8586 Reserve alignment invariants.
8587 (grub_multiboot_load): Likewise.
8588 (retrieve_video_parameters): Likewise.
8589 (grub_multiboot_make_mbi): Likewise.
8590
c2e77777
VS
85912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8592
8593 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8594 incorrect pointer.
8595
b70b6d11
VS
85962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8597
8598 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8599 (grub_pata_pio_write): Likewise.
8600
02a2bf83
VS
86012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8602
8603 Add noreturn attributes and remove unreachable code.
8604
8605 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8606 code.
8607 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8608 code. Mark as noreturn.
8609 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8610 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8611 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8612 unreachable code.
8613 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8614 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8615 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8616 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8617 * include/grub/kernel.h (grub_main): Mark as noreturn.
8618 * include/grub/reader.h (grub_rescue_run): Likewise.
8619
2019d09e
VS
86202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8621
8622 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8623 redundant declaration.
8624
d1c501ee
VS
86252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8626
8627 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8628 redundant declaration.
8629 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8630
61664420
VS
86312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8632
8633 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8634 to ensure alignment.
8635 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8636 alignment. Ensure tmp alignment.
8637 (grub_cmd_hdparm): Ensure buf alignment.
8638 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8639 to ensure alignment.
8640 (grub_ata_dumpinfo): Ensure text alignment.
8641 (grub_atapi_identify): Preserve alignment invariant.
8642 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8643
0d51ee20
VS
86442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8645
8646 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8647 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8648 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8649 * include/grub/misc.h (grub_reboot)
8650 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8651 (grub_halt) [__mips__]: Likewise.
8652
753ef8c1
VS
86532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8654
8655 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8656 Remove redundant declaration.
8657 (grub_mmap_get_post64): Likewise.
8658 (grub_mmap_get_upper): Likewise.
8659 (grub_mmap_get_lower): Likewise.
8660
85c85365
VS
86612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8662
8663 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8664 uint32_t * to ensure alignment.
8665 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8666
a23f2cc4
VS
86672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8668
93018f64
VS
8669 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8670 uint16_t * to ensure alignment.
8671 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8672 alignment.
8673
86742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8675
8676 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
8677 to ensure alignment.
8678 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8679
58acccd6
VS
86802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8683 Handle unaligned pointers.
8684 (u32at): Likewise.
8685 (u64at): Likewise.
8686 (fixup): Use byte access instead of v16at.
8687 (find_attr): Fix imporper usage of v32at.
8688 (read_data): Likewise.
8689 (list_file): Handle byte-swapping and unaligned strings.
8690 (grub_ntfs_label): Likewise.
8691
9b05cad7
VS
86922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8693
8694 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8695 as it's not necessarily aligned.
8696
b3950b84
VS
86972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8698
8699 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8700 redundant declaration.
8701 (grub_serial_init): Likewise.
8702 (grub_terminfo_init): Likewise.
8703
fcd232b7
VS
87042011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8707 function.
8708 (ZAP_HASH_IDX): Likewise.
8709 (ZAP_LEAF_HASH_SHIFT): Likewise.
8710 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8711 (LEAF_HASH): Likewise.
8712 (ZAP_LEAF_NUMCHUNKS): Likewise.
8713 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8714 alignment invariants. Return pointer. All users updated.
8715 (ZAP_LEAF_ENTRY): Make into inline function.
8716 (NBBY): Removed.
8717 (xor): LIkewise.
8718 (xor_out): Use grub_crypto_xor.
8719 (dnode_get_path): Use grub_get_unaligned.
8720 (nvlist_find_value): Likewise.
8721 (grub_zfs_nvlist_lookup_uint64): Likewise.
8722 (grub_zfs_nvlist_lookup_string): Likewise.
8723 (get_nvlist_size): Likewise.
8724 (grub_zfs_open): Likewise.
8725 (fill_fs_info): Likewise.
8726 (grub_zfs_dir): Likewise.
8727 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8728 alignment invariants.
8729 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8730 necessarily aligned.
8731
f138623a
VS
87322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8733
8734 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8735
564840dc
VS
87362011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8737
8738 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8739 arithmetic to conserve alignment invariants.
8740
9b40df20
VS
87412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8742
8743 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8744 redundant declaration.
8745 (grub_efiemu_mm_obtain_request): Likewise.
8746 (grub_efiemu_prepare): Likewise.
8747
d1c930f9
VS
87482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8749
8750 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8751 to match types.
8752
4c5f3056
VS
87532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8754
8755 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8756 case of aunaligned recptr.
8757 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8758 alignment.
8759 (grub_hfsplus_btree_search): Handle unaligned index.
8760
728cba91
VS
87612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8762
8763 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8764 to get freetag and skip.
8765
eb561f31
VS
87662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8767
8768 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8769 array.
8770 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8771 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8772
20993fbb
VS
87732011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8774
8775 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8776 name for checksum and fix allocation algorithm.
8777
1f313b94
VS
87782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 * include/grub/types.h (grub_properly_aligned_t): New type.
8781 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8782 (grub_get_unaligned16): Add explicit casts.
8783 (grub_get_unaligned32): Likewise.
8784 (grub_get_unaligned64): Likewise.
8785 (grub_set_unaligned16): New function.
8786 (grub_set_unaligned32): Likewise.
8787
47ae27ec
VS
87882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8789
8790 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8791
78c2cd1c
VS
87922011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8793
8794 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8795 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8796 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8797
53072f9b
VS
87982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8799
8800 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8801 conditionals.
8802
055dc239
VS
88032011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8804
8805 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8806 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8807
496bd074
VS
88082011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8809
8810 Unify and improve RAID and crypto xor.
8811
8812 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8813 changed to grub_crypto_xor
8814 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8815 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8816 Use bigger types when possible.
8817
ef6e4335
VS
88182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8819
8820 * grub-core/disk/raid.c (scan_devices): Fix condition.
8821
5d048bf2
VS
88222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8823
8824 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8825 Make name a const ptr.
8826
ee533335
VS
88272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8830 first argument a const pointer.
8831 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8832 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8833 proto.
8834 (grub_children_iterate): Likewise.
8835 (grub_machine_mmap_iterate): Remove redundant declaration.
8836
cc8f3668
VS
88372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8840 (grub_cmd_acpi) [!x86]: Disable EBDA.
8841
c5fc563a
VS
88422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 Enable UTF8 in gnulib regexp.
8845
8846 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8847 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8848 (isupper): Use grub_isupper.
8849 (isascii): New inline function.
8850 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8851 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8852 * grub-core/normal/charset.c (grub_utf8_process): New function.
8853 (grub_utf8_to_utf16): Use grub_utf8_process.
8854 (grub_encode_utf8_character): New function.
8855 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8856 * include/grub/charset.h (grub_utf8_process): New declaration.
8857 (grub_encode_utf8_character): Likewise.
8858 * include/grub/misc.h (grub_islower): New inline function.
8859 (grub_isupper): Likewise.
8860 (grub_strchrsub): Moved down to fix the definitions.
8861
0af2346f
VS
88622011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8863
8864 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8865 specification.
8866
74dbd244
VS
88672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8868
8869 * include/grub/loader.h (grub_loader_register_preboot_hook):
8870 Use struct preboot * and not void * for handle. All users updated.
8871 (grub_loader_unregister_preboot_hook): Likewise.
8872
1bc8f60d
VS
88732011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8876 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8877 UTF-16-BE. All users updated.
8878 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8879 (grub_hfsplus_iterate_dir): Likewise.
8880 (grub_hfsplus_label): Likewise.
8881
48d6e456
VS
88822011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8883
8884 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8885
bf3a3857
VS
88862011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8887
8888 Add missing const qualifiers.
8889
8890 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8891 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8892 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8893 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8894 (grub_lvm_check_flag): Likewise.
8895 * grub-core/efiemu/i386/coredetect.c
8896 (grub_efiemu_get_default_core_name): Likewise
8897 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8898 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8899 * grub-core/fs/ntfs.c (fixup): Likewise.
8900 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8901 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8902 (fzap_lookup): Likewise.
8903 (zap_lookup): Likewise.
8904 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8905 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8906 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8907 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8908 (grub_freebsd_add_meta_module): Likewise.
8909 (grub_cmd_freebsd_module): Likewise.
8910 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8911 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8912 (grub_xnu_writetree_get_size): Likewise.
8913 (grub_xnu_writetree_toheap_real): Likewise.
8914 (grub_xnu_find_key): Likewise.
8915 (grub_xnu_create_key): Likewise.
8916 (grub_xnu_create_value): Likewise.
8917 (grub_xnu_register_memory): Likewise.
8918 (grub_xnu_check_os_bundle_required): Likewise.
8919 (grub_xnu_scan_dir_for_kexts): Likewise.
8920 (grub_xnu_load_kext_from_dir): Likewise.
8921 * grub-core/normal/color.c (color_list): Likewise.
8922 * grub-core/normal/completion.c (current_word): Likewise.
8923 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8924 * grub-core/term/serial.c (grub_serial_find): Likewise.
8925 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8926 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8927 Likewise.
8928 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8929 (grub_freebsd_add_meta_module): Likewise.
8930 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8931 * include/grub/net.h (grub_net_card_driver): Likewise.
8932 (grub_net_card): Likewise.
8933 (grub_net_app_protocol): Likewise.
8934 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8935 * include/grub/serial.h (grub_serial_find): Likewise.
8936 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8937 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8938 (grub_xnu_create_value): Likewise.
8939 (grub_xnu_find_key): Likewise.
8940 (grub_xnu_scan_dir_for_kexts): Likewise.
8941 (grub_xnu_load_kext_from_dir): Likewise.
8942
8943 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8944 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8945 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8946 Moved from here ...
8947 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8948
112b4837
CW
89492011-11-28 Colin Watson <cjwatson@ubuntu.com>
8950
8951 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8952
49e891ac
VS
89532011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8956 (read_device): Fix size calculation.
8957
fd258e5c
RM
89582011-11-25 Robert Millan <rmh@gnu.org>
8959
8960 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8961 (find_root_device_from_libzfs): Add zpool output parser to be used
8962 as fallback when libzfs isn't available.
8963
78845dc2
SG
89642011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8965
8966 * po/Makefile.in.in: Add missing escape-continuation.
8967
adac5211
VS
89682011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8971
10b64f1c
VS
89722011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8973
8974 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8975
bb416954
VS
89762011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8977
8978 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8979
bdfe9eeb
VS
89802011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8983
581ffa8a
VS
89842011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8985
8986 * grub-core/lib/adler32.c: Add missing license specification.
8987 * grub-core/lib/crc64.c: Likewise.
8988 * grub-core/loader/i386/pc/plan9.c: Likewise.
8989 * grub-core/partmap/plan.c: Likewise.
8990
2536cf64
LK
89912011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8992
8993 Add facility to debug GRUB with gdb under qemu.
8994
8995 * grub-core/gdb_grub.in: New file.
8996 * grub-core/gmodule.pl.in: Likewise.
8997 * grub-core/Makefile.core.def (gmodule.pl): New script.
8998 (gdb_grub): Likewise.
8999
bc108a4a
VS
90002011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9001
9002 * util/grub-mount.c (argp_parser): Accept relative pathes.
9003 * util/grub-fstest.c (argp_parser): Likewise.
9004
111c1778
VS
90052011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9006
9007 Plan9 support.
9008
9009 * Makefile.util.def (libgrubmods): Add
9010 grub-core/partmap/plan.c.
9011 * docs/grub.texi: Notice Plan9 support.
9012 * grub-core/Makefile.core.def (plan9): New module.
9013 (part_plan): Likewise.
9014 * grub-core/loader/i386/pc/plan9.c: New file.
9015 * grub-core/partmap/plan.c: Likewise.
9016 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9017 define.
9018 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9019 * include/grub/mm.h (grub_extend_alloc): New inline function.
9020
c30be3b6
VS
90212011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9022
9023 Make Reed-Solomon faster by using power of generator representation of
9024 GF(256)*.
9025
9026 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9027 (gf_double_t): Likewise.
9028 (gf_invert): Removed.
9029 (gf_powx): New array.
9030 (gf_powx_inv): Likewise.
9031 (scratch): Move higher.
9032 (gf_reduce): Removed.
9033 (gf_mul): Use powx.
9034 (gf_invert): Likewise.
9035 (init_inverts): Replaced with ...
9036 (init_powx): ...this. All users updated.
9037 (pol_evaluate): Replace multiplications with additions.
9038 (rs_encode): Likewise.
9039 (gauss_eliminate): Call gf_invert.
9040 (grub_reed_solomon_add_redundancy): Call init_powx.
9041 (grub_reed_solomon_recover): Call init_powx unconditionally.
9042
fa5aeffc
VS
90432011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9044
9045 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9046
a346b81c
VS
90472011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9050 disk->partiton for safety.
9051
d89ee414
VS
90522011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9053
9054 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9055 Fix a memory leak.
9056 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9057
91ee7b6d
VS
90582011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9061
91e5a33d
VS
90622011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9065
9edd7be2
VS
90662011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 Fix spaces handling in proc/self/mountinfo.
9069
9070 * util/getroot.c (unescape): New function.
9071 (grub_find_root_device_from_mountinfo): Use unescape.
9072
ba102053
VS
90732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9074
9075 Support ZFS embedding.
9076
9077 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9078 (grub_zfs_fs): Register grub_zfs_embed.
9079
aa94b870
VS
90802011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9081
9082 Fix MIPS compilation.
9083
9084 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9085 * include/grub/offsets.h: Rename decompressor fields from
9086 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9087 * util/grub-mkimage.c (image_targets): Use new names.
9088
5fbdac14
VS
90892011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9090
9091 Defer multiboot device parsing until we're in compressed part.
9092
9093 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9094 bsd_part. setdevice has fallen into disuse.
9095 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9096 (bsd_part): Likewise.
9097 (boot_dev): New variable.
9098 (multiboot_trampoline): Don't parse multiboot device.
9099 Pass multiboot device in %edx.
9100 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9101 grub_boot_device.
9102 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9103 Likewise.
9104 * grub-core/kern/i386/pc/startup.S: Save edx.
9105 (grub_boot_drive): Removed.
9106 (grub_install_dos_part): Likewise.
9107 (grub_install_bsd_part): Likewise.
9108 (grub_boot_device): New variable.
9109 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9110 (grub_install_bsd_part): Likewise.
9111 (grub_boot_drive): Likewise.
9112 (grub_boot_device): New variable.
9113 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9114 Removed.
9115 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9116 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9117 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9118 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9119 * util/grub-install.in: Remove redundant condition.
9120
691cbb58
VS
91212011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 Fix bug introduced by previous commit.
9124
9125 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9126
60240b8b
VS
91272011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 Use decompressors framework on i386-pc. It increases core size
9130 by 46 bytes but improves compatibility and maintainability.
9131
9132 * grub-core/Makefile.core.def (lzma_decompress): New image.
9133 (kernel): Add i386_pc_ldflags.
9134 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9135 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9136 to real_to_prot, prot_to_real and device info.
9137 * include/grub/offsets.h: Renamed decompressor offsets.
9138 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9139 (image_target_desc): Remove raw_size and rename decompressor fields.
9140 (compress_kernel): Handle lzma.
9141 (generate_image): Handle decompressors on i386-pc.
9142
e9d3421c
VS
91432011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9144
9145 * configure.ac: Add -fno-asynchronous-unwind-tables.
9146
2b23074a
VS
91472011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 Move assembly code to C by using intwrap. It increases core size
9150 by 88 bytes but improves compatibility and maintainability.
9151
9152 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9153 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9154 ... here. Translated to C.
9155 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9156 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9157 ... here. Translated to C.
9158 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9159 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9160 ... here. Translated to C.
9161 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9162 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9163 ... here. Translated to C.
9164 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9165 * grub-core/term/i386/pc/console.c (grub_console_cls):
9166 ... here. Translated to C.
9167 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9168 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9169 ... here. Translated to C.
9170 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9171 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9172 Translated to C.
9173 * grub-core/term/i386/pc/console.c (int10_9): New function.
9174 (grub_console_putchar): Likewise.
9175 * include/grub/i386/pc/console.h: Removed the not anymore shared
9176 functions.
9177
678f4b67
VS
91782011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9179
9180 Move grub_chainloader_real_boot out of the kernel.
9181
9182 * grub-core/Makefile.am: Remove machine/loader.h.
9183 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9184 Removed.
9185 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9186 variable.
9187 (grub_relocator16_keep_a20_enabled): Likewise.
9188 (grub_relocator16_boot): Fill new variables.
9189 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9190 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9191 relocator.
9192 (grub_chainloader_unload): Likewise.
9193 (grub_chainloader_cmd): Likewise.
9194 * include/grub/i386/pc/loader.h: Removed.
9195 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9196 and esi. All initialisers updated.
9197
4626edf6
VS
91982011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
91992011-11-12 Colin Watson <cjwatson@ubuntu.com>
9200
9201 * Makefile.util.def (grub-mount): New util.
9202 * .bzrignore: Add grub-mount.
9203 * configure.ac: Check for fuse and enable grub-mount if available.
9204 * docs/man/grub-mount.h2m: New file.
9205 * util/grub-mount.c: Likewise.
9206
10f0117b
VS
92072011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9208
9209 * grub-core/commands/efi/fixvideo.c: Gettextize.
9210 * grub-core/commands/hashsum.c: Likewise.
9211 * grub-core/commands/i386/cmostest.c: Likewise.
9212 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9213 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9214 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9215 * grub-core/commands/lsmmap.c: Likewise.
9216 * grub-core/commands/menuentry.c: Likewise.
9217 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9218 * grub-core/commands/setpci.c: Likewise.
9219 * grub-core/loader/i386/bsd.c: Likewise.
9220 * grub-core/loader/i386/linux.c: Likewise.
9221 * util/getroot.c: Likewise.
9222 * util/grub-editenv.c: Likewise.
9223 * util/grub-fstest.c: Likewise.
9224 * util/grub-mkfont.c: Likewise.
9225 * util/grub-mkimage.c: Likewise.
9226 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9227 * util/grub-pe2elf.c: Likewise.
9228 * util/grub-probe.c: Likewise.
9229 * util/grub-setup.c: Likewise.
9230 * util/ieee1275/ofpath.c: Likewise.
9231 * util/misc.c: Likewise.
9232 * util/raid.c: Likewise.
9233
566f779b
RM
92342011-11-11 Robert Millan <rmh@gnu.org>
9235
9236 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9237 __attribute__((unused)) from `os_dev', which *is* being used.
9238
b50787de
VS
92392011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9240
9241 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9242 forgotten define.
9243 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9244 GRUB_IA64_DL_GOT_ALIGN.
9245 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9246 GRUB_IA64_DL_TRAMP_ALIGN.
9247
119d11c8
VS
92482011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9249
9250 Replace grub_fatal with normal errors in i386 linux loader.
9251
9252 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9253 (allocate_pages): Check find_efi_mmap_size return value.
9254 (grub_e820_add_region): Return error.
9255 (grub_linux_boot): Check mmap return value.
9256
6e0632e2
VS
92572011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9258
9259 * grub-core/commands/acpihalt.c: Gettextized.
9260 * grub-core/commands/cacheinfo.c: Likewise.
9261 * grub-core/commands/cmp.c: Likewise.
9262 * grub-core/commands/efi/loadbios.c: Likewise.
9263 * grub-core/commands/gptsync.c: Likewise.
9264 * grub-core/commands/ieee1275/suspend.c: Likewise.
9265 * grub-core/commands/legacycfg.c: Likewise.
9266 * grub-core/commands/memrw.c: Likewise.
9267 * grub-core/commands/minicmd.c: Likewise.
9268 * grub-core/commands/parttool.c: Likewise.
9269 * grub-core/commands/time.c: Likewise.
9270 * grub-core/commands/videoinfo.c: Likewise.
9271 * grub-core/disk/geli.c: Likewise.
9272 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9273 * grub-core/disk/luks.c: Likewise.
9274 * grub-core/disk/lvm.c: Likewise.
9275 * grub-core/font/font_cmd.c: Likewise.
9276 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9277 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9278 * grub-core/gfxmenu/view.c: Likewise.
9279 * grub-core/kern/emu/hostdisk.c: Likewise.
9280 * grub-core/kern/emu/main.c: Likewise.
9281 * grub-core/kern/emu/misc.c: Likewise.
9282 * grub-core/kern/emu/mm.c: Likewise.
9283 * grub-core/kern/mips/arc/init.c: Likewise.
9284 * grub-core/kern/mips/loongson/init.c: Likewise.
9285 * grub-core/kern/partition.c: Likewise.
9286 * grub-core/lib/i386/halt.c: Likewise.
9287 * grub-core/lib/mips/arc/reboot.c: Likewise.
9288 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9289 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9290 * grub-core/loader/i386/xnu.c: Likewise.
9291 * grub-core/loader/multiboot.c: Likewise.
9292 * grub-core/net/bootp.c: Likewise.
9293 * grub-core/net/net.c: Likewise.
9294 * grub-core/normal/term.c: Likewise.
9295 * grub-core/partmap/bsdlabel.c: Likewise.
9296 * grub-core/parttool/msdospart.c: Likewise.
9297 * grub-core/term/gfxterm.c: Likewise.
9298 * grub-core/term/terminfo.c: Likewise.
9299 * grub-core/video/i386/pc/vbe.c: Likewise.
9300 * util/grub-menulst2cfg.c: Likewise.
9301 * util/grub-mkdevicemap.c: Likewise.
9302 * util/grub-mklayout.c: Likewise.
9303 * util/grub-mkrelpath.c: Likewise.
9304 * util/grub-script-check.c: Likewise.
9305 * util/ieee1275/grub-ofpathname.c: Likewise.
9306 * util/resolve.c: Likewise.
9307
073aa7a9
VS
93082011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9309
9310 Support %1$d syntax.
9311
9312 * tests/printf_unit_test.c: New file.
9313 * Makefile.util.def (printf_test): New test.
9314 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9315
c76b5417
VS
93162011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9317
9318 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9319 fix.
9320
df067ad1
VS
93212011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9322
9323 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9324 dprintf.
9325 * grub-core/font/font.c (grub_font_load): Likewise.
9326
5b289bc5
VS
93272011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9328
9329 * util/grub-macho2img.c: Add comment concerning gettext.
9330 * grub-core/lib/legacy_parse.c: Likewise.
9331
c1860f87
VS
93322011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9335 (grub_xvasprintf): Likewise.
9336
d35d0d37
VS
93372011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9338
9339 Add const keyword to grub_env_get and gettextize week days.
9340
9341 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9342 (grub_read_hook_datetime): Return const char *.
9343 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9344 updated.
9345 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9346 Mark for gettext.
9347 (grub_get_weekday_name): Return const char *. Call gettext.
9348 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9349 char * and len as the argument. All users updated.
9350 (grub_script_argv_split_append): Receive const char *.
9351 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9352 * include/grub/env.h (grub_env_get): Likewise.
9353 (grub_env_read_hook_t): Return const char *.
9354 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9355 (grub_script_argv_split_append): Likewise.
9356
9aed8a71
VS
93572011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9358
9359 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9360
067fdf00
VS
93612011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9362
9363 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9364 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9365
a8bd9d39
VS
93662011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9367
9368 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9369 Fix prototype.
9370
f7ce5baf
VS
93712011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9372
9373 Fix mips compilation.
9374
9375 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9376 normal decoder.
9377 (hashes): Use in embed decoder as well (for sizes).
9378 (dec_stream_header): Fix embed decompressor logic.
9379 (dec_stream_footer): Likewise.
9380
9bb182f3
VS
93812011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9382
9383 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9384 an error and not a fatal on unrecognised relocation types.
9385
63a9e6f6
VS
93862011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9387
9388 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9389 Issue error rather than printf on unknown arguments.
9390
4c458569
VS
93912011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9394 Make buf a const.
9395
e2d22baf
VS
93962011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9397
9398 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9399 Fix module name.
9400
53dc8590
VS
94012011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9402
9403 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9404 leftover debug printf.
9405
6c189294
VS
94062011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9407
9408 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9409
f7688369
VS
94102011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9411
9412 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9413 A stylistic fix.
9414
11a775a3
VS
94152011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9416
9417 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9418
33f784e8
SL
94192011-11-10 Shea Levy <slevy@tieronedesign.com>
9420
9421 Allow all modules to perform serial IO
9422
9423 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9424 * include/grub/serial.h (grub_serial_port_configure): New inline
9425 function.
9426 (grub_serial_port_fetch): Likewise.
9427 (grub_serial_port_put): Likewise.
9428 (grub_serial_port_fini): Likewise.
9429 (grub_serial_find): New proto.
9430
f6276525
VS
94312011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9432
9433 Put symlink at the end of the node and fix a potential
9434 memory corruption.
9435
9436 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9437 Make symlink into an array.
9438 (set_rockridge): Set have_symlink and alloc_dirents.
9439 (grub_iso9660_read_symlink): Use new layout.
9440 (grub_iso9660_iterate_dir): Fix memory corruption.
9441 Use new layout.
9442 (grub_iso9660_dir): Set have_symlink.
9443 (grub_iso9660_open): Likewise.
9444
c3591189
VS
94452011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9446
9447 Remove local keyword.
9448
9449 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9450 (version_test_gt): Likewise.
9451 (version_find_latest): Likewise.
9452 (gettext_printf): Likewise.
9453 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9454
cb544caa
VS
94552011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9456
9457 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9458
45bd824d
VS
94592011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9460
9461 Fix ZFS memory and resource leaks.
9462
9463 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9464 All users updated.
9465 Free type on exit.
9466 (fill_vdev_info): New parameter inserted. All users updated.
9467 (check_pool_label): Likewise.
9468 (scan_disk): Likewise.
9469 (scan_devices): Close non-inserted disks.
9470 (fzap_iterate): Free l.
9471 (unmount_device): Free children descripto memory.
9472
ad9a2f44
VS
94732011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9474
9475 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9476 argument (access out of bounds).
9477
6b68db81
VS
94782011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9479
9480 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9481 >= 6 drives.
9482
28840fda
VS
94832011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9484
9485 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9486 Fix declaration.
9487
8a5a3a5b
VS
94882011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9489
9490 Fix several memory leaks.
9491
9492 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9493 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9494 (grub_cpio_dir): Likewise.
9495 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9496 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9497 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9498 (grub_romfs_label): Likewise.
9499 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9500 (squash_unmount): New function.
9501 (grub_squash_dir): Fix memory leak.
9502 (grub_squash_open): Likewise.
9503 (grub_squash_read): Likewise.
9504 (grub_squash_mtime): Likewise.
9505 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9506 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9507 * util/grub-fstest.c (fstest): Likewise.
9508
57b01250
VS
95092011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9512 avoid accessing beyond the array.
9513
19e81ba7
VS
95142011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9515
9516 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9517
52b656c0
VS
95182011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9519
9520 Several AFFS fixes.
9521
9522 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9523 (GRUB_AFFS_FLAG_FFS): Removed.
9524 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9525 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9526 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9527 (grub_fshelp_node): Make block 32-bit.
9528 Add block_cache and last_block_cache.
9529 (grub_affs_read_block): Fill and use block cache.
9530 (grub_affs_read_file): Removed.
9531 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9532 boot block.
9533 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9534 safety.
9535 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9536 space.
9537 (grub_affs_close): Free block cache.
9538 (grub_affs_read): Use grub_fshelp_read_file directly.
9539
438a746a
VS
95402011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9541
9542 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9543 with no error set.
9544
49a45021
VS
95452011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9546
9547 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9548 used variable.
9549 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9550 Likewise.
9551
3ae17eb8
VS
95522011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9555
9556 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9557 byteswap when needed.
9558
27610c38
VS
95592011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 Fix FreeBSD compilation.
9562
9563 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9564 to avoid circular dependency.
9565 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9566 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9567 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9568
4a19b601
VS
95692011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9570
9571 Fix ZFS crypto error types.
9572
9573 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9574 (grub_gcm_decrypt): Likewise.
9575 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9576 from PBKDF2.
9577
958ee221
VS
95782011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9579
9580 Illumos support.
9581
9582 * Makefile.util.def (10_illumos): New script.
9583 * configure.ac: Set COND_HOST_ILLUMOS.
9584 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9585 Support Illumos calls.
9586 (find_partition_start) [__sun__]: Likewise.
9587 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9588 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9589 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9590 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9591 device.
9592 * util/grub-probe.c (probe) [__sun__]: Do character check.
9593 * util/grub.d/10_illumos.in: New file.
9594
cac14fb6
VS
95952011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9596
9597 Support escaped commas in hostdisk.
9598
9599 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9600 (find_grub_drive): Use unescape_cmp.
9601 (make_device_name): Escape commas.
9602
78e08dc3
VS
96032011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9604
9605 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9606
9f421dd1
VS
96072011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9608
9609 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9610 variable.
9611
ed64e9e2
VS
96122011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9613
9614 Support trampoline jumps on powerpc.
9615
9616 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9617 __ia64__ path.
9618 (grub_dl_load_segments): Set mod->sz.
9619 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9620 segments.
9621 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9622 (jump): Likewise.
9623 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9624 function.
9625 (trampoline): New struct.
9626 (trampoline_template): New const.
9627 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9628 * include/grub/dl.h (grub_dl): Add sz element.
9629 [__powerpc__]: Follow __ia64__.
9630 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9631 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9632 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9633 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9634
3084ede4
VS
96352011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 ZFS crypto support.
9638
9639 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9640 * grub-core/Makefile.core.def (zfscrypt): New module.
9641 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9642 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9643 it. All users updated.
9644 (grub_zfs_decrypt): New var.
9645 (grub_zfs_load_key): Likewise.
9646 (zio_checksum_functions): Add SHA256+MAC.
9647 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9648 (zio_read): Handle encrypted blocks.
9649 (zap_verify): Remove incorrect check.
9650 (fzap_iterate): Handle non-standard fzap.
9651 (zap_iterate): Likewise.
9652 (zap_iterate_u64): New function.
9653 (dnode_get_fullpath): Load keys.
9654 * grub-core/fs/zfs/zfscrypt.c: New file.
9655 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9656 (grub_crypto_ecb_encrypt): Make input const.
9657 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9658 (grub_crypto_ecb_encrypt): Make input const.
9659 (GRUB_CIPHER_AES): New macro.
9660 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9661 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9662 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9663 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9664 prefix. All users updated.
9665 (grub_zfs_add_key): New proto.
9666 (grub_zfs_decrypt): Likewise.
9667 (grub_zfs_load_key): Likewise.
9668 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9669 * util/grub-fstest.c (options): Add -K option.
9670 (argp_parser): Likewise.
9671
b632b404
VS
96722011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9673
9674 Support zle compression on ZFS.
9675
9676 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9677 (decomp_table): Add zle.
9678 * include/grub/zfs/zio.h (zio_compress): Add zle.
9679
c7ba4f69
VS
96802011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9681
9682 Support BtrFS embedding.
9683
9684 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9685 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9686 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9687 * util/grub-setup.c (setup): Use fs embedding if available.
9688 Add additional sanity check.
9689
455377d9
VS
96902011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9691
9692 * util/grub-install.in: Fix condition for config_opt.
9693
c2fd16ca
VS
96942011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9695
9696 Support third redundancy strip on raidz3.
9697
9698 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9699 Return error on singularity. All users updated.
9700 (read_device): Don't stop on 3rd failure on raidz3.
9701
8622923b
VS
97022011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9703
9704 Support case-insensitive ZFS subvolumes.
9705
9706 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9707 All users updated.
9708 (zap_hash): Likewise.
9709 (name_cmp): New function.
9710 (zap_leaf_array_equal): New parameter case_insensitive.
9711 All users updated.
9712 (zap_leaf_lookup): Likewise.
9713 (fzap_lookup): Likewise.
9714 (zap_lookup): Likewise.
9715 (dnode_get_path): New parameter case_insensitive. Retrieve case
9716 sensitiviness of a volume. All users updated.
9717 (dnode_get_fullpath): New parameter case_insensitive.
9718 All users updated.
9719 (grub_zfs_dir): Set info.case_insensitiveness.
9720
95f2e860
VS
97212011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 Support second redundancy strip on raidz(2,3).
9724
9725 * grub-core/fs/zfs/zfs.c (powx): New array.
9726 (powx_inv): Likewise.
9727 (poly): New const.
9728 (xor_out): New function.
9729 (gf_mul): Likewise.
9730 (recovery): Likewise.
9731 (read_device): Use second redundancy strip.
9732
11ee4389
VS
97332011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9734
9735 Use a power of generator representation of GF(256) multiplication group
9736 to save space time and complexity.
9737
9738 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9739 (raid6_table2): Likewise.
9740 (powx): New array.
9741 (powx_inv): Likewise.
9742 (poly): New const.
9743 (grub_raid_block_mul): Replace with ...
9744 (grub_raid_block_mulx): ...this.
9745 (grub_raid6_init_table): Rewritten.
9746 (grub_raid6_recover): Use power of generator representation.
9747
09e2763f
VS
97482011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9749
9750 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9751 for the right device.
9752
8bec9a28
VS
97532011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9754
9755 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9756 expected by grub-mkimage and it's more clear since there is no implicit
9757 padding.
9758
dbd3a32e
VS
97592011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9762 disk.
9763 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9764
182c872a
PMH
97652011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9766
9767 * util/grub-mkrescue.in: Fix handling xorriso option.
9768
1e51cabd
VS
97692011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9770
9771 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9772 NULL.
9773
9cc3581d 97742011-11-03 crocket <crockabiscuit@gmail.com>
9775
9776 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9777
158dc1ea
VS
97782011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9779
9780 XZ CRC64 and SHA256 support.
9781
9782 * Makefile.util.def (libgrubmods): Add crc64.c.
9783 * grub-core/Makefile.core.def (crc64): New module.
9784 * grub-core/lib/crc64.c: New file.
9785 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9786 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9787 Fix the type.
9788 (MAX_HASH_SIZE): New define.
9789 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9790 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9791 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9792 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9793 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9794 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9795 Handle non-crc32 hashes.
9796 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9797 (dec_stream_header): Handle non-crc32 hashes.
9798 (dec_stream_footer): Likewise.
9799 (dec_block_header): Likewise.
9800 (dec_main): Likewise.
9801 (xz_dec_init): Likewise.
9802 (xz_dec_reset): Likewise.
9803 (xz_dec_end): Likewise.
9804 * util/import_gcry.py: Add CRC64 line.
9805
9d9b3d2f
VS
98062011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9807
9808 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9809 as well.
9810
7d0ac931
VS
98112011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 Make reiserfs label retrieval similar to other *_label functions.
9814
9815 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9816 (REISERFS_MAX_LABEL_LENGTH): Removed.
9817 (REISERFS_LABEL_OFFSET): Likewise.
9818 (grub_reiserfs_label): Rewritten.
9819
98202011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9821
9822 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9823 field.
9824
cf5ba824
VS
98252011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9826
9827 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9828
17744004
VS
98292011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9830
9831 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9832 drive failure on both raidz and raidz2.
9833
aca5aefc
VS
98342011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 Fix RAIDZ(2) for >= 5 devices.
9837
9838 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9839 asize argument. All users updated.
9840
ce8ca56e
VS
98412011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9842
9843 Fix RAIDZ(2).
9844
9845 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9846 (fill_vdev_info_real): Set ashift.
9847 (read_device): Rewrite RAIDZ part based on reverse engineering.
9848
7c01e783
VS
98492011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9850
9851 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9852 don't report potentially unavialiable fields in debug output.
9853 (find_path): Fix double-free and memory leak.
9854
ce109e84
VS
98552011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9856
9857 Read label on UFS1.
9858
9859 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9860 (grub_ufs_fs): Always set .label.
9861
87661123
VS
98622011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 Use shifts in UFS.
9865
9866 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9867 (grub_ufs_data): New field log2_blksz.
9868 (grub_ufs_read_file): Use shifts.
9869 (grub_ufs_mount): Check block size and logarithm it.
9870
46bc1dc2
VS
98712011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9872
9873 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9874 long symlinks.
9875
19ee2987
VS
98762011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9877
9878 Handle symlinks and long names on tar and cpio.
9879
9880 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9881 (ATTR_FILE): Likewise.
9882 (ATTR_DIR): Likewise.
9883 (ATTR_LNK): Likewise.
9884 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9885 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9886 L and K entries.
9887 (grub_cpio_mount): Zero-fill data.
9888 (handle_symlink): New function.
46bc1dc2
VS
9889 (grub_cpio_dir): Handle symlinks.
9890 (grub_cpio_open): Likewise.
9891 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 9892
c83a08d8
VS
98932011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9894
9895 Fix iso9660 filename limitations and fix memory leaks.
9896
9897 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9898 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9899
45cdd3ea
VS
99002011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 Fix JFS file name length limitations.
9903
9904 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9905 (grub_jfs_diropen): Fix maximum filename length.
9906 (grub_jfs_getent): Fix filename length.
9907 (grub_jfs_lookup_symlink): Fix size checks.
9908
94ef05c2
VS
99092011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9910
9911 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9912 string.
9913
785ab8c7
VS
99142011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9915
eb0b6b45
VS
9916 Leverage BFS implementation to read AFS.
9917
9918 * Makefile.util.def (libgrubmods): Add afs.c.
9919 * grub-core/Makefile.core.def (afs): New module
9920 * grub-core/fs/afs.c: New file.
9921 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9922
99232011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9924
9925 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 9926
c4a1628f
VS
99272011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9928
9929 * grub-core/fs/bfs.c: Run indent.
9930
5825b379
VS
99312011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9932
9933 BFS implementation based on the specification.
9934
9935 * grub-core/fs/bfs.c: New file.
9936 * Makefile.util.def (libgrubmods): Add bfs.c.
9937 * grub-core/Makefile.core.def (bfs): New module.
9938
42b2a706
VS
99392011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 * util/grub-fstest.c (cmd_cp): Clarify error message.
9942 (cmd_cmp): Likewise.
9943
61b99bfc
YB
99442011-10-30 Yves Blusseau <blusseau@zetam.org>
9945
9946 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9947 and befs_be.
9948
faba3d16
VS
99492011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9950
9951 Remove afs and befs because of copyright problem.
9952
9953 * grub-core/fs/afs.c: Removed.
9954 * grub-core/fs/afs_be.c: Removed.
9955 * grub-core/fs/befs.c: Removed.
9956 * grub-core/fs/befs_be.c: Removed.
9957 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9958 * grub-core/Makefile.core.def (afs): Removed.
9959 (afs_be): Likewise.
9960 (befs): Likewise.
9961 (befs_be): Likewise.
9962
c39224b0
VS
99632011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9964
9965 Prefer rockridge over Joliet.
9966
9967 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9968 to ...
9969 (set_rockridge): ... here.
9970 (grub_iso9660_mount): Check rockridge on the primary label when
9971 discovering. Ignore Joliet if Rockridge is present.
9972
e551115a
VS
99732011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9974
9975 Use shifts in nilfs2.
9976
9977 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9978 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9979 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9980 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9981 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9982 (grub_nilfs2_entries_per_block): Replaced with ...
9983 (grub_nilfs2_log_entries_per_block_log): ... this.
9984 (grub_nilfs2_blocks_per_group): Replaced with ...
9985 (grub_nilfs2_blocks_per_group_log): ... this.
9986 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9987 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9988 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9989 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9990 (grub_nilfs2_palloc_entry_offset): Replaced ...
9991 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9992 (grub_nilfs2_dat_translate): Use shifts.
9993 (grub_nilfs2_read_inode): Likewise.
9994 (GRUB_MOD_INIT): Ensure that logs are correct.
9995
564dd58c
VS
99962011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9997
9998 Use shifts in minix filesystem.
9999
10000 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10001 (GRUB_MINIX_ZONE2SECT): Likewise.
10002 (grub_minix_data): Replace block_size with log_block_size.
10003 (grub_minix_read_file): Use shifts.
10004 (grub_minix_mount): Check block size and take a logarithm.
10005
ed9ba06d
VS
100062011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10007
10008 Use shifts in squash4.
10009
10010 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10011 (squash_mount): Check block size and take logarithm.
10012 (direct_read): Use shifts.
10013
ad03fe76
VS
100142011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10015
10016 Correct befs block counting logic.
10017
10018 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10019 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10020 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10021 (grub_afs_read_inode): Use block_shift.
10022 (RANGE_SHIFT): New definition.
10023 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10024 unexpected conditions, use shifts and appropriate types.
10025 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10026
6563f63d
VS
100272011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 * grub-core/disk/raid.c (scan_devices): Check partition.
10030 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10031
5b1ae25f
VS
100322011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10033
10034 Support BFS (befs) UUID.
10035
10036 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10037 (grub_afs_small_data_element_header): New struct.
10038 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10039 (grub_afs_read_attribute) [MODE_BFS]: New function.
10040 (grub_afs_iterate_dir): Allocate for complete inode.
10041 (grub_afs_mount): Likewise.
10042 (grub_afs_uuid) [MODE_BFS]: New function.
10043 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10044
f8d82408
VS
100452011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10046
10047 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10048 (zfs_unmount): Fix memory leak.
10049
5773fb64
VS
100502011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10051
10052 Support NTFS reparse points.
10053
10054 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10055 (symlink_descriptor): New struct.
10056 (grub_ntfs_read_symlink): New function.
10057 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10058 (grub_ntfs_open): Likewise.
10059
91c3fdde
VS
100602011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10061
10062 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10063
3be82e10
VS
100642011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10065
10066 fstest xnu_uuid subcommand.
10067
10068 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10069 grub-core/commands/xnu_uuid.c.
10070 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10071 (fstest): Handle xnu_uuid.
10072 (options): Document xnu_uuid.
10073 (argp_parser): Parse xnu_uuid.
10074
8e32442e
VS
100752011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10076
10077 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10078 -l argument. Add newline at the end if printing.
10079 (GRUB_MOD_INIT): Document -l.
10080
52a05075
VS
100812011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10082
10083 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10084
1869edb5
VS
100852011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 ZFS multi-device and version 33 support.
10088
10089 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10090 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10091 (grub_zfs_data): Add multidev-ice-related fields.
10092 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10093 (dva_get_offset): Make dva const.
10094 (zfs_fetch_nvlist): New function.
10095 (fill_vdev_info_real): Likewise.
10096 (fill_vdev_info): Likewise.
10097 (check_pool_label): Likewise.
10098 (scan_disk): Likewise.
10099 (scan_devices): Likewise.
10100 (read_device): Likewise.
10101 (read_dva): Likewise.
10102 (zio_read_gang): Use read_dva.
10103 (zio_read_data): Likewise.
10104 (zap_leaf_lookup): Add missing endian conversion.
10105 (zap_verify): Add missing endian conversion. All users updated.
10106 (fzap_lookup): Likewise.
10107 (fzap_iterate): Likewise.
10108 (dnode_get_path): Handle SA bonus.
10109 (nvlist_find_value): Make input const. All users updated.
10110 (unmount_device): New function.
10111 (zfs_unmount): Use unmount_device.
10112 (zfs_mount): Use scan_disk.
10113 (zfs_mtime): New function.
10114 (grub_zfs_open): Handle system attributes.
10115 (fill_fs_info): Likewise.
10116 (grub_zfs_dir): Likewise.
10117 (grub_zfs_fs): Add mtime.
10118 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10119 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10120 (SA_MTIME_OFFSET): Likewise.
10121 (SA_SYMLINK_OFFSET): Likewise.
10122 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10123 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10124 (fstest): Support zfsinfo.
10125 (argp_parser): Likewise.
10126
186b4028
VS
101272011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10128
10129 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10130 error.
10131
101322011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
10133
10134 ZFS fixes.
10135
10136 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10137 sharing the same block. Iterate over correct number of indices.
10138 (dnode_get_path): Handle symlinks correctly.
10139
c0584900
VS
101402011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10143
67e2bd71
VS
101442011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10145
10146 Read label on HFS+.
10147
10148 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10149 (grub_hfsplus_btree_search): Fix types.
10150 (grub_hfsplus_label): Implement.
10151
e9cc6b7b
VS
101522011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10153
10154 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10155
19832ddb
VS
101562011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10157
10158 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10159
66b40850
VS
101602011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10161
10162 Fix symlink handling on iso9660.
10163
10164 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10165 All users updated.
10166 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10167 (grub_iso9660_read_symlink): Moved most of code ...
10168 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10169
db821363
VS
101702011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10171
10172 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10173 Use union to avoid breaking strict-aliasing rules.
10174
e1211949
VS
101752011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10176
10177 Support multi-extent iso files.
10178
10179 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10180 Add node.
10181 (grub_fshelp_node): Revamp. All users updated.
10182 (FLAG_*): New enum.
10183 (read_node): New function.
10184 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10185 All users updated.
10186 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10187 (get_node_size): New function.
10188 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10189 entries.
10190 Fix memory leak on . and ..
10191 (grub_iso9660_read): Use read_node.
10192 (grub_iso9660_close): Free node.
10193
d4888031
VS
101942011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 Fix tar 4G limit and handle paths containing dot.
10197
10198 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10199 (canonicalize): New function.
10200 (grub_cpio_find_file): Use canonicalize. Store offs in
10201 grub_disk_addr_t.
10202 (grub_cpio_dir): Use grub_disk_addr_t.
10203 (grub_cpio_open): Likewise.
10204
9f12e664
VS
102052011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10206
10207 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10208
10209 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10210 unused flags.
10211 (grub_squash_inode): Add long_file and block_size.
10212 (grub_squash_cache_inode): New struct.
10213 (grub_squash_dirent): Make types into enum.
10214 (SQUASH_TYPE_LONG_REGULAR): New type.
10215 (grub_squash_frag_desc): Add field size.
10216 (SQUASH_BLOCK_FLAGS): New enum.
10217 (grub_squash_data): Use grub_squash_cache_inode.
10218 (grub_fshelp_node): Make ino_chunk 64-bit.
10219 (read_chunk): Minor argument change. All users updated.
10220 (squash_mount): Use correct le_to_cpu.
10221 (grub_squash_open): Handle LONG_REGULAR.
10222 (direct_read): New function.
10223 (grub_squash_read_data): Handle blocks correctly.
10224
9f326fba
VS
102252011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10226
10227 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10228
f4d9b64b
VS
102292011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10232
5bbd28b8
VS
102332011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10234
10235 Fix 2G limit on ZFS.
10236
10237 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10238 types.
10239 (uberblock_verify): Likewise.
10240 (dmu_read): Likewise.
10241 (grub_zfs_read): Likewise. Remove invalid cast.
10242
68c72069
VS
102432011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10244
10245 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10246 (grub_jfs_blkno): Fix incorrect shift.
10247 (grub_jfs_read_file): Use more appropriate types.
10248
6e536dc8
VS
102492011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10250
10251 Support triple indirect on minix2 and minix3.
10252
10253 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10254 Declare triple_indir_zone.
10255 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10256 indirect.
10257
e0864e7a
VS
102582011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10259
10260 Minix FS fixes.
10261
10262 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10263 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10264 Rename ctime to mtime. All users updated.
10265 (grub_minix_get_file_block): Fix types and double indirect computations.
10266
89481cab
VS
102672011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10268
10269 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10270 if no label is found.
10271 (grub_fat_iterate_dir): Fix file size type.
10272 (grub_fat_iterate_dir): Likewise.
10273
f646e143
VS
102742011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10277 save some space.
10278 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10279 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10280
534d769e
VS
102812011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10282
10283 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10284
e084ba18
VS
102852011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10286
10287 * util/import_gcry.py: Accept space between # and include.
10288
3471ecdf
VS
102892011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10290
10291 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10292
124df5f6
VS
102932011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10294
10295 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10296
10297 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10298 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10299 yylex_strncpy.
10300 * grub-core/script/yylex.l: Add fine-grained #pragma.
10301
4defb8d5
VS
103022011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10303
10304 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10305 New inline function.
10306 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10307 Likewise.
10308 (memset) [GRUB_UTIL]: Likewise.
10309 (memcmp) [GRUB_UTIL]: Likewise.
10310
4e94ae65
VS
103112011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10312
10313 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10314 inline function rather than a define.
10315
18c575e5
VS
103162011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10317
10318 * util/grub-setup.c: Add missing include.
10319
f8bc22a8
VS
103202011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10321
10322 * util/ieee1275/grub-ofpathname.c: Add missing include.
10323
3ce69fc9
VS
103242011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10327 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10328 Likewise.
10329
d1e293bb
VS
103302011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10331
10332 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10333 grub_memcmp usage.
10334
7a5c54a4
VS
103352011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 * util/grub-install.in: Add datarootdir as per automake manual
10338 suggestion.
10339 * util/grub-mknetdir.in: Likewise.
10340
103412011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
10342
10343 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10344 suggestion.
10345 * util/grub.d/10_kfreebsd.in: Likewise.
10346 * util/grub.d/10_linux.in: Likewise.
10347 * util/grub.d/10_netbsd.in: Likewise.
10348 * util/grub.d/10_windows.in: Likewise.
10349 * util/grub.d/20_linux_xen.in: Likewise.
10350
766f7d08
VS
103512011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10352
10353 Remove redundant grub_kernel_image_size.
10354
10355 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10356 _edata and _start.
10357 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10358 the small code. It moves it only by few bytes but simplifies the code.
10359 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10360 _start.
10361 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10362 (grub_kernel_image_size): Removed.
10363 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10364 (grub_kernel_image_size): Removed.
10365 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10366 compiled with Apple toolchain.
10367 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10368 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10369 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10370 (grub_total_module_size): Likewise.
10371 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10372 Removed.
10373 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10374 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10375 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10376 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10377 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10378 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10379 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10380 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10381 Removed.
10382 (grub_total_module_size): Removed.
10383 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10384 (image_targets): Likewise.
10385 Set .compressed_size to no field on sparc.
10386 (generate_image): Remove kernel_image_size handling.
10387
fcf1d672
SJ
103882011-10-19 Szymon Janc <szymon@janc.net.pl>
10389
10390 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10391 NULL pointer dereference.
10392
de9c615e
VS
103932011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10394
10395 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10396 done with a dedicated section.
10397
10398 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10399 Ensure the correct position of boot_path.
10400 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10401 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10402 other fields.
10403 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10404 * include/grub/boot.h: Removed. All references removed.
10405 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10406 Removed.
10407 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10408
e55599dc
VS
104092011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10410
10411 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10412 name.
10413
36dd20ad
VS
104142011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10415
10416 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10417
f8f72eb8
VS
104182011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10419
10420 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10421 Don't add the bogus brackets.
10422
a374751b
VS
104232011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10424
10425 ExFAT support.
10426
10427 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10428 * grub-core/Makefile.core.def (exfat): New module.
10429 * grub-core/fs/exfat.c: New file.
10430 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10431 (GRUB_FAT_ATTR_*): Make into an enum.
10432 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10433 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10434 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10435 (GRUB_FAT_MAXFILE): Removed.
10436 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10437 (grub_current_fat_bpb_t): New type.
10438 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10439 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10440 (grub_fat_dir_node_t): New type.
10441 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10442 (fat_log2) [MODE_EXFAT]: Removed.
10443 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10444 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10445 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10446 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10447 (grub_fat_label) [MODE_EXFAT]: New function.
10448 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10449 reserved_first_sector to 0.
10450
544c2487
VS
104512011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10452
10453 Move grub_reboot out of the kernel.
10454
10455 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10456 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10457 * grub-core/lib/efi/reboot.c: ... here.
10458 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10459 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10460 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10461 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10462 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10463 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10464 * grub-core/lib/ieee1275/reboot.c: ... here.
10465 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10466 * grub-core/lib/mips/arc/reboot.c: ... here.
10467 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10468 * grub-core/lib/mips/loongson/reboot.c: ...here.
10469 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10470 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10471 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10472 * include/grub/i386/reboot.h: New file.
10473 * include/grub/mips/loongson/ec.h: Fix includes.
10474 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10475 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10476 * grub-core/lib/i386/reboot.c: New file.
10477
a97501d2
VS
104782011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 Make grub_prefix into module to fix the arbitrary limit and save
10481 some space.
10482
10483 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10484 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10485 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10486 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10487 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10488 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10489 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10490 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10491 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10492 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10493 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10494 * include/grub/ia64/efi/kernel.h: Removed.
10495 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10496 (grub_prefix): Removed.
10497 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10498 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10499 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10500 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10501 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10502 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10503 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10504 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10505 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10506 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10507 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10508 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10509 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10510 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10511 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10512 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10513 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10514 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10515 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10516 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10517 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10518 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10519 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10520 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10521 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10522 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10523 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10524 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10525 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10526 from module.
10527 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10528 prefix_end.
10529 (image_targets): Likewise.
10530 (generate_image): Put prefix as a module.
10531
39705fad
VS
105322011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10533
10534 Replace grub_module_iterate with FOR_MODULES.
10535
10536 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10537 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10538 (grub_efi_modules_addr): ...this.
10539 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10540 (grub_efi_init): Set grub_modbase.
10541 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10542 (grub_modbase): New variable.
10543 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10544 (grub_modbase): New variable.
10545 (grub_machine_init): Set grub_modbase.
10546 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10547 (grub_modbase): New variable.
10548 (grub_machine_init): Set grub_modbase.
10549 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10550 (grub_modbase): New variable.
10551 (grub_machine_init): Set grub_modbase.
10552 * grub-core/kern/main.c (grub_module_iterate): Remove.
10553 (grub_modules_get_end): Use grub_modbase.
10554 (grub_load_modules): Use FOR_MODULES.
10555 (grub_load_config): Likewise.
10556 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10557 (grub_modbase): New variable.
10558 (grub_machine_init): Set grub_modbase.
10559 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10560 (grub_modbase): New variable.
10561 (grub_machine_init): Set grub_modbase.
10562 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10563 Removed.
10564 (grub_modbase): New variable.
10565 (grub_machine_init): Set grub_modbase.
10566 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10567 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10568 (grub_module_iterate): Likewise.
10569 (grub_modbase): New variable declaration.
10570 (FOR_MODULES): New macro.
10571
2afb7f6c
VS
105722011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10573
10574 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10575 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10576
366e34fa
VS
105772011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10578
10579 Fix few obvious type discrepancies.
10580
10581 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10582 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10583 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10584 variable.
10585 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10586 and connected types.
10587 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10588 offset.
10589 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10590 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10591 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10592 and connected types.
10593
177b960e
VS
105942011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10595
10596 Fix python 3.x incompatibilities.
10597
10598 * gentpl.py: Put brackets around print strings.
10599 * util/import_gcry.py: Open explicitly as utf-8.
10600 Use in instead of has_key.
10601
3b619ae1
VS
106022011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10603
10604 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10605 (GRUB_XFS_INO_AGBITS): Make into inline function.
10606 (GRUB_XFS_INO_INOINAG): Likewise.
10607 (GRUB_XFS_INO_AG): Likewise.
10608 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10609 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10610 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10611 (GRUB_XFS_EXTENT_SIZE): Likewise.
10612 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10613 (GRUB_XFS_NEXT_DIRENT): Likewise.
10614 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10615 (grub_xfs_read_file): Fix offset type.
10616
8bcebcb8
RM
106172011-10-15 Robert Millan <rmh@gnu.org>
10618
10619 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10620
0017e5ef
RM
106212011-10-15 Robert Millan <rmh@gnu.org>
10622
10623 Fix build problem on FreeBSD and GNU/kFreeBSD.
10624
10625 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10626
d8919552
VS
106272011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10628
10629 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10630
10631 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10632 types.
10633 (grub_hfsplus_btree_recoffset): Likewise.
10634 (grub_hfsplus_btree_recptr): Likewise.
10635 (grub_hfsplus_find_block): Likewise.
10636 (grub_hfsplus_btree_search): Likewise.
10637 (grub_hfsplus_read_block): Likewise.
10638 (grub_hfsplus_read_file): Likewise.
10639 (grub_hfsplus_mount): Likewise.
10640 (grub_hfsplus_btree_iterate_node): Likewise.
10641 (grub_hfsplus_btree_search): Likewise.
10642 (grub_hfsplus_iterate_dir): Likewise.
10643 (grub_hfsplus_read): A small code simplification.
10644
c81296b6
VS
106452011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10646
10647 * grub-core/kern/emu/hostdisk.c
10648 (convert_system_partition_to_system_disk): Don't assume that children
10649 of mapper nodes are mapper nodes.
10650
0eb8ffb1
VS
106512011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10652
10653 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10654 * include/grub/misc.h (grub_isxdigit): New function.
10655 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10656 switched to grub_isxdigit.
10657 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10658 number starting with a letter.
10659
a98f4a08
RM
106602011-10-09 Robert Millan <rmh@gnu.org>
10661
10662 LVM support for FreeBSD and GNU/kFreeBSD.
10663
10664 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10665 GNU/kFreeBSD.
10666 (LVM_DEV_MAPPER_STRING): Move from here ...
10667 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10668 * util/getroot.c: Include `<grub/util/lvm.h>'.
10669 (grub_util_get_dev_abstraction): Enable
10670 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10671 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10672 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10673 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10674 support it.
10675 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10676 GNU/kFreeBSD.
10677 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10678 when LVM abstraction is required for ${GRUB_DEVICE}.
10679
050e8e90
SJ
106802011-10-06 Szymon Janc <szymon@janc.net.pl>
10681
10682 Add support for LZO compression in GRUB:
10683 - import of minilzo library,
10684 - LZO decompression for btrfs,
10685 - lzop files decompression.
10686
10687 * grub-core/io/lzopio.c: New file.
10688 * grub-core/lib/adler32.c: Likewise.
10689 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10690 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10691 * grub-core/lib/minilzo/minilzo.c: Likewise.
10692 * grub-core/lib/minilzo/minilzo.h: Likewise.
10693 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10694 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10695 grub-core/lib/minilzo/minilzo.c to common.
10696 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10697 cflags in cppflags.
10698 * grub-core/Makefile.core.def (btrfs): Likewise.
10699 * grub-core/Makefile.core.def (lzopio): New module.
10700 (adler32): Likewise.
10701 * grub-core/fs/btrfs.c: Include minilzo.h.
10702 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10703 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10704 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10705 (grub_btrfs_lzo_decompress): New function.
10706 (grub_btrfs_extent_read): Add support for LZO compression type.
10707 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10708 (GRUB_USHRT_MAX): Likewise.
10709 (GRUB_UINT_MAX): Likewise.
10710 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10711 (UINT_MAX): Likewise.
10712 (CHAR_BIT): Likewise.
10713 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10714 grub-core/lib/posix_wrap/limits.h
10715 (UCHAR_MAX): Likewise.
10716 * include/grub/file.h (grub_file_filter_id): New compression filter
10717 GRUB_FILE_FILTER_LZOPIO.
10718 * include/grub/file.h (grub_file_filter_id): Set
10719 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10720 * include/grub/types.h (grub_get_unaligned16): New function.
10721 (grub_get_unaligned32): Likewise.
10722 (grub_get_unaligned64): Likewise.
10723 * util/import_gcry.py (cryptolist): Add adler32.
10724
0eb8ffb1
VS
107252011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10726
10727 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10728 in perspective decreases the complexity of build system and fixes
10729 compilation right now.
10730
ce79cc99 107312011-10-01 Ales Nesrsta <starous@volny.cz>
10732
10733 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10734 (fixed problem related to using UHCI with coreboot).
10735
8667a314
BC
107362011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10737
10738 * gentpl.py: Use Autogen macros so that the output template file
10739 (Makefile.tpl) size is reduced.
10740
fc5efcc0
MK
107412011-09-29 Mads Kiilerich <mads@kiilerich.com>
10742
10743 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10744 extra_dist.
10745
d1ab689d
ML
107462011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10747
10748 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10749 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10750
c05de032
ML
107512011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10752
10753 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10754 _fullpath.
10755
cca7ccd8
ML
107562011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10757
10758 Remove extra declaration of sleep for mingw32.
10759
10760 * util/misc.c (sleep) [__MINGW32__]: Removed.
10761 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10762
e0b0dc83
GS
107632011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10764
10765 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10766 type and packname.
10767 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10768 Resurrected.
10769 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10770 (grub_netbsd_btinfo_bootwedge): New struct.
10771 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10772 New function.
10773 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10774
91a1a164
TH
107752011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10776
10777 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10778 loader.
10779
2ded951e
AB
107802011-09-28 Andreas Born <futur.andy@googlemail.com>
10781
10782 Fix incorrect identifiers in bash-completion.
10783
10784 * util/bash-completion.d/grub-completion.bash.in
10785 (_grub_mkpasswd-pbkdf2): Rename to ...
10786 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10787 (_grub_script-check): Rename to ...
10788 (_grub_script_check): ... this. All users updated.
10789
69915030
VS
107902011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10793 Return 0 if disk isn't biosdisk.
10794
20fd15f9
GS
107952011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10796
10797 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10798 on NetBSD.
10799 * Makefile.util.def (grub-fstest): Likewise.
10800
1a7d7db9
GS
108012011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10802
10803 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10804 Get sector size from disk label.
10805
2221ab6c
CW
108062011-09-05 Colin Watson <cjwatson@ubuntu.com>
10807
10808 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10809 */README* as well as README*.
10810 Reported by: Axel Beckert.
10811
ca51c4a0
VS
108122011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10813
10814 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10815 case of less than 256 MiB of RAM.
10816
ab80f326
VS
108172011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 * grub-core/commands/wildcard.c (make_regex): Handle @.
10820
4155e697
VS
108212011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10822
10823 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10824
ab178c08
SJ
108252011-08-21 Szymon Janc <szymon@janc.net.pl>
10826
10827 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10828 AC_LANG_CONFTEST macros.
10829
7dc3c686
SJ
108302011-08-20 Szymon Janc <szymon@janc.net.pl>
10831
10832 Add grub-fstest option to uncompress data for commands.
10833
10834 * util/grub-fstest.c (uncompress): New var.
10835 (options): New option -u.
10836
fe8d4a7b
SJ
108372011-08-20 Szymon Janc <szymon@janc.net.pl>
10838
10839 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10840 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10841
a5219af1
SJ
108422011-08-20 Szymon Janc <szymon@janc.net.pl>
10843
10844 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10845 file type was not recognized correctly (not gzip or corrupted).
10846
f87abff5
VS
108472011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10848
10849 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10850 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10851
d94497ea
VS
108522011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10853
10854 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10855 loongson.
10856 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10857 video_radeon_fuloong2e.
10858 * grub-core/video/radeon_fuloong2e.c: New file.
10859 * include/grub/video.h (grub_video_id_t): Add new ID
10860 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10861
0d1fd011
VS
108622011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10865 define.
10866 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10867 that PRID matches the detected subplatform and reset the subplatform
10868 if it doesn't.
10869
84beb0ee
VS
108702011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10871
10872 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10873
1227c133
VS
108742011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10875
10876 Fix PCI iterating on functions >= 4.
10877
10878 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10879 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10880 Removed.
10881 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10882 (grub_pci_read): Fix bitmask.
10883 (grub_pci_read_word): Likewise.
10884 (grub_pci_read_byte): Likewise.
10885 (grub_pci_write): Likewise.
10886 (grub_pci_write_word): Likewise.
10887 (grub_pci_write_byte): Likewise.
10888
9594c689
VS
108892011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10890
10891 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10892 can still be specified in TARGET_CFLAGS)
10893
14a2562c
VS
108942011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10895
10896 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10897
10898 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10899 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10900 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10901 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10902 (FULOONG): Rename to ...
10903 (FULOONG2F): ... this. All users updated.
10904 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10905 (machtype_fuloong2f_str): ... this.
10906 (machtype_fuloong2e_str): New string.
10907 Check for machtype_fuloong2e_str.
10908 * grub-core/loader/mips/linux.c (loongson_machtypes)
10909 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10910 * grub-core/term/serial.c (loongson_defserial)
10911 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10912 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10913 loongson_defserial.
10914 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10915 Rename to ...
10916 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10917 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10918 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10919 to IMAGE_FULOONG2F_FLASH. All users updated.
10920 (image_targets): Rename images.
10921 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10922
b526cbb6
SJ
109232011-08-19 Szymon Janc <szymon@janc.net.pl>
10924
10925 Make enable of disk cache statistics code configurable.
10926
10927 * configure.ac: --enable-cache-stats added.
10928 * config.h.in (DISK_CACHE_STATS): New define.
10929 * grub-core/Makefile.core.def (cacheinfo): New command.
10930 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10931 * grub-core/commands/cacheinfo.c: New file.
10932 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10933 moved to cacheinfo.c.
10934 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10935 debug code.
10936 * include/grub/disk.h: Likewise.
10937
fb739ccd
SJ
109382011-08-19 Szymon Janc <szymon@janc.net.pl>
10939
10940 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10941 * grub-core/Makefile.am: Likewise.
10942
2bba8cfd
VS
109432011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10944
10945 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10946 non-zero pull.
10947
43526629
VS
109482011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10949
10950 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10951 All users updated.
10952 (grub_jfs_lookup_symlink): Use correct starting inode.
10953
5c144cc8
VS
109542011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 * util/grub-setup.c (main): Add missing gcry initialisation.
10957
b1257f65
VS
109582011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10959
10960 Don't accept text modes on EFI when booting Linux.
10961
10962 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10963 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10964
828bc390
ML
109652011-08-15 Mario Limonciello <mario_limonciello@dell.com>
109662011-08-15 Colin Watson <cjwatson@ubuntu.com>
10967
10968 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10969 use of "/path/.." as in grub-install for EFI as well as handling
10970 symlinks correctly.
10971 Fixes Debian bug #637768.
10972
5f60ccac
CW
109732011-08-15 Colin Watson <cjwatson@ubuntu.com>
10974
10975 * util/grub-probe.c: Remove duplicate #include.
10976
6dc212f9
RM
109772011-08-10 Robert Millan <rmh@gnu.org>
10978
10979 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10980
10981 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10982 function.
10983 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10984 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10985
66816d85
RM
109862011-08-03 Robert Millan <rmh@gnu.org>
10987
10988 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10989 la_array as packed.
10990 Reported by: Zachary Bedell
10991
20168fca
CW
109922011-07-26 Colin Watson <cjwatson@ubuntu.com>
10993
10994 * configure.ac: The Loongson port requires grub-mkfont due to its
10995 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10996 be built.
10997
303b6246
CW
109982011-07-26 Colin Watson <cjwatson@ubuntu.com>
10999
11000 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11001 processing arguments (otherwise help2man fails when GRUB has not yet
11002 been installed).
11003
6795300e
VS
110042011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11005
41aa28ea
VS
11006 New script grub-mkstandalone.
11007
11008 * Makefile.util.def (grub-mkstandalone): New script.
11009 * docs/man/grub-mkstandalone.h2m: New file.
11010 * util/grub-mkstandalone.in: Likewise.
11011
110122011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11013
11014 Support ATA disks with 4K sectors.
6795300e
VS
11015
11016 * include/grub/ata.h (grub_ata): New member log_sector_size.
11017 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11018 (grub_ata_identify): Read sector size.
11019 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11020
92227597
VS
110212011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11022
11023 * util/grub-install.in: Don't use uhci outside of x86.
11024
c77069f5
VS
110252011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11026
11027 * util/grub-mkrescue.in: Add missing quotes.
11028
110292011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
11030
11031 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11032 dereference.
11033
583168a2
VS
110342011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11035
11036 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11037
6be1c01f
VS
110382011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11039
11040 * include/grub/video.h: add missing EXPORT_FUND on
11041 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11042
a1167439
VS
110432011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11044
11045 * include/grub/mips/kernel.h: Fix define conflict.
11046
bf66054f
VS
110472011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11048
11049 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11050 all four ways.
11051
8fc4fa45
CW
110522011-07-21 Colin Watson <cjwatson@ubuntu.com>
11053
11054 Preferred resolution detection for VBE.
11055
11056 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11057 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11058 the Flat Panel extension, in line with the X.org VESA driver.
11059 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11060 New function.
11061 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11062 (grub_vbe_bios_read_edid): Likewise.
11063 (grub_vbe_get_preferred_mode): Likewise.
11064 (grub_video_vbe_setup): When the mode is "auto", try to get the
11065 preferred mode from VBE, and use the largest mode that is no larger
11066 than the preferred mode (some BIOSes expose a preferred mode that is
11067 not in their mode list!). If this fails, fall back to 640x480 as a
11068 safe conservative choice.
11069 (grub_video_vbe_get_edid): New function.
11070 (grub_video_vbe_adapter): Add get_edid.
11071 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11072 (struct grub_video_adapter): Add get_edid.
11073 (grub_video_edid_checksum): Add prototype.
11074 (grub_video_edid_preferred_mode): Likewise.
11075 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11076 structure.
11077
11078 * grub-core/commands/videoinfo.c (print_edid): New function.
11079 (grub_cmd_videoinfo): Print EDID if available.
11080
11081 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11082 is more appropriate on a wider range of platforms than 640x480.
11083 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11084 documentation.
11085
ca5572a9
VS
110862011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11087
11088 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11089
e4bcf625
VS
110902011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11091
11092 * po/POTFILES.in: Regenerate.
11093
c4edd548
VS
110942011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11097 incorrect memory usage.
11098
16a2bab0
VS
110992011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11100
11101 * util/grub-install.in: Source grub-mkconfig_lib.
11102
2e418de6
VS
111032011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 Remove getroot.c from core on emu platform.
11106
11107 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11108 kern/emu/raid.c.
11109 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11110 useless.
11111 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11112 * util/getroot.c (get_win32_path): ... here.
11113 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11114 * util/getroot.c (fini_libzfs): ... here.
11115 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11116 * util/getroot.c (grub_get_libzfs_handle): ... here.
11117 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11118 Moved from here...
11119 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11120 * grub-core/kern/emu/misc.c
11121 (grub_make_system_path_relative_to_its_root): Moved from here...
11122 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11123 * grub-core/kern/emu/getroot.c: Moved from here ...
11124 * util/getroot.c: ... here. All users updated.
11125 * grub-core/kern/emu/raid.c: Moved from here ...
11126 * util/raid.c: ... here. All users updated.
11127
def9832a
VS
111282011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11129
11130 * po/POTFILES.in: Regenerate.
11131
cd8fe79a
VS
111322011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11133
11134 Fix compilation on GNU/Linux.
11135
11136 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11137 Disable geli.
11138 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11139 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11140 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11141
a251b719
VS
111422011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
111432011-07-07 Michael Gorven <michael@gorven.za.net>
111442011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11145
11146 LUKS and GELI support.
11147
11148 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11149 grub-core/disk/luks.c, grub-core/disk/geli.c,
11150 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11151 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11152 grub-core/lib/arg.c.
11153 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11154 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11155 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11156 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11157 (grub-bin2h): Add libgcry.a.
11158 (grub-mkimage): Likewise.
11159 (grub-mkrelpath): Likewise.
11160 (grub-script-check): Likewise.
11161 (grub-editenv): Likewise.
11162 (grub-mkpasswd-pbkdf2): Likewise.
11163 (grub-pe2elf): Likewise.
11164 (grub-fstest): Likewise.
11165 (grub-mkfont): Likewise.
11166 (grub-mkdevicemap): Likewise.
11167 (grub-probe): Likewise.
11168 (grub-ofpath): Likewise.
11169 (grub-mklayout): Likewise.
11170 (example_unit_test): Likewise.
11171 (grub-menulst2cfg): Likewise.
11172 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11173 * grub-core/Makefile.core.def (cryptodisk): New module.
11174 (luks): Likewise.
11175 (geli): Likewise.
11176 * grub-core/disk/AFSplitter.c: New file.
11177 * grub-core/disk/cryptodisk.c: Likewise.
11178 * grub-core/disk/geli.c: Likewise.
11179 * grub-core/disk/luks.c: Likewise.
11180 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11181 grub_util_is_lvm.
11182 (grub_util_get_dm_abstraction): New function.
11183 (grub_util_follow_gpart_up): Likewise.
11184 (grub_util_get_geom_abstraction): Likewise.
11185 (grub_util_get_dev_abstraction): Use new functions.
11186 (grub_util_pull_device): Pull GELI and LUKS.
11187 (grub_util_get_grub_dev): Handle LUKS and GELI.
11188 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11189 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11190 (follow_geom_up): Removed.
11191 (grub_util_fd_seek): New function.
11192 (open_device): Use grub_util_fd_seek.
11193 (nread): Rename to ..
11194 (grub_util_fd_read): ... this. All users updated.
11195 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11196 (grub_crypto_cbc_decrypt): Likewise.
11197 (grub_crypto_hmac_write): Likewise.
11198 (grub_crypto_hmac_buffer): Likewise.
11199 (grub_password_get): Extend to util.
11200 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11201 New member modname.
11202 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11203 * include/grub/cryptodisk.h: New file.
11204 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11205 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11206 LUKS and GELI.
11207 (grub_util_follow_gpart_up): New proto.
11208 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11209 (grub_util_fd_read): Likewise.
11210 (grub_cryptodisk_cheat_mount): Likewise.
11211 (grub_util_cryptodisk_print_uuid): Likewise.
11212 (grub_util_get_fd_sectors): Likewise.
11213 * util/grub-fstest.c (mount_crypt): New var.
11214 (fstest): Mount crypto if requested.
11215 (options): New option -C.
11216 (argp_parser): Parse -C.
11217 (main): Init and fini gcry.
11218 * util/grub-install.in: Support cryptodisk install.
11219 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11220 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11221 cryptodisk.
11222 (prepare_grub_to_access_device): Likewise.
11223 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11224 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11225 (probe_cryptodisk_uuid): New function.
11226 (probe_abstraction): Likewise.
11227 (probe): Use new functions.
11228 * util/import_gcry.py: Create Makefile.utilgcry.def.
11229 Add modname member.
11230
9bfdcbbc
VS
112312011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11232
11233 Lazy device scanning.
11234
11235 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11236 (grub-setup): Remove util/raid.c.
11237 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11238 * grub-core/disk/lvm.c (scan_depth): New variable.
11239 (grub_lvm_iterate): Rescan if necessary.
11240 (find_lv): New function based on grub_lvm_open.
11241 (grub_lvm_open): Use find_lv. Rescan on error.
11242 (is_node_readable): New function.
11243 (is_lv_readable): Likewise.
11244 (grub_lvm_scan_device): Skip already found disks.
11245 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11246 Stop if searched device is found and readable.
11247 * grub-core/disk/raid.c (inscnt): New variable.
11248 (scan_depth): Likewise.
11249 (scan_devices): New function based on grub_raid_register. Abort if
11250 looked for device is found.
11251 (grub_raid_iterate): Rescan if needed.
11252 (find_array): NEw function based on -grub_raid_open.
11253 (grub_raid_open): Use find_array and rescan.
11254 (insert_array): Set became_readable_at.
11255 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11256 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11257 New function.
11258 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11259 (grub_util_pull_device): New function.
11260 (grub_util_get_grub_dev): Call grub_util_pull_device.
11261 * util/raid.c: Moved to ..
11262 * grub-core/kern/emu/raid.c: ... here.
11263 (grub_util_raid_getmembers): New parameter "bootable".
11264 All users updated. Support 1.x.
11265 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11266 All users updated.
11267 * include/grub/disk.h (grub_disk_pull_t): New enum.
11268 (grub_disk_dev): Change iterate prototype.
11269 All users updated.
11270 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11271 New proto.
11272 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11273 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11274 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11275 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11276 All users updated.
11277 * include/grub/util/raid.h: Removed.
11278
1c358e59
VS
112792011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11280
11281 * po/POTFILES.in: Regenerate.
11282
abee94ed
VS
112832011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11284
11285 Unify sparc init with other ieee1275.
11286
11287 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11288 instead of kern/sparc64/ieee1275/init.c.
11289 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11290 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11291 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11292 grub/machine/kernel.h.
11293 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11294 (grub_claim_heap) [__sparc__]: Use sparc version.
11295 (grub_machine_init): Moved args parsing to
11296 (grub_parse_cmdline): ...this.
11297 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11298 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11299 New definition.
11300 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11301
11302 Move BOOTP to separate file.
11303
11304 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11305 * grub-core/net/net.c: Move all BOOTP functions to
11306 * grub-core/net/bootp.c: ... here.
11307
11308 Use frame interface on PXE.
11309
11310 * grub-core/Makefile.core.def (pxecmd): Removed.
11311 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11312 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11313 * grub-core/i386/pc/pxe.c: Moved from here ...
11314 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11315 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11316 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11317
11318 EFI network support.
11319
11320 * grub-core/Makefile.core.def (efinet): New module.
11321 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11322 here...
11323 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11324 All users updated.
11325 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11326 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11327 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11328 * grub-core/net/drivers/efi/efinet.c: New file.
11329 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11330 (grub_efi_net_config): New extern var.
11331
11332 Various cleanups and bugfixes.
11333
11334 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11335 error.
11336 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11337 disk declared as partition.
11338 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11339 leak on failure.
11340 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11341 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11342 (grub_debug_zalloc): Likewise.
11343 (grub_debug_realloc): Likewise.
11344 (grub_debug_memalign): Likewise.
11345 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11346 Check that target is IPv4.
11347 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11348 local-mac-address as fallback.
11349 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11350 memory leak.
11351 * grub-core/net/ip.c (ipchksum): Rename to ...
11352 (grub_net_ip_chksum): ... this. All users updated.
11353 (grub_net_recv_ip_packets): Special handling for DHCP.
11354 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11355
11356 Unify prefix handling
11357
11358 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11359 (grub_machine_get_bootlocation): ... this.
11360 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11361 (grub_machine_get_bootlocation): ... this.
11362 (grub_prefix): New variable.
11363 (prefix): Removed.
11364 (root_dev): New variable.
11365 (dir): Likewise.
11366 (main): Use new variables.
11367 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11368 Revamped into ...
11369 (grub_machine_get_bootlocation): ... this.
11370 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11371 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11372 (grub_machine_get_bootlocation): ... this.
11373 (grub_machine_set_prefix): Removed.
11374 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11375 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11376 Revamped into ...
11377 (grub_machine_get_bootlocation): ... this.
11378 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11379 (grub_set_prefix_and_root): ... this. All users updated.
11380 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11381 Revamped into ...
11382 (grub_machine_get_bootlocation): ... this.
11383 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11384 (grub_machine_get_bootlocation): New proto.
11385 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11386
11387 Less intrusive and more reliable seek on network implementation.
11388
11389 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11390 (grub_file_seek): Don't call grub_file_net_seek.
11391 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11392 (grub_net_fs_read_real): .. this.
11393 (grub_net_seek_real): Use net->offset.
11394 (grub_net_fs_read): Seek if necessary.
11395
11396 Unify IEEE1275 netwotk config with the other platforms.
11397
11398 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11399 New variable.
11400 (grub_machine_get_bootlocation): Support network.
11401 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11402 Support type and device parsing.
11403 (grub_ieee1275_get_device_type): New function.
11404 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11405 into ...
11406 (grub_ieee1275_net_config_real): ... this.
11407 (grub_ofnet_probecards): Removed.
11408 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11409 * include/grub/ieee1275/ofnet.h: Removed.
11410 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11411 extern var.
11412 (grub_ieee1275_get_device_type): New function.
11413
11414 Unify network device closing across platforms and make more robust.
11415
11416 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11417 grub_grubnet_fini.
11418 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11419 already.
11420 * grub-core/net/net.c (grub_net_network_level_interface_register):
11421 Update num_ifaces.
11422 (grub_net_card_unregister): Close all interfaces.
11423 (receive_packets): Don't poll if no iterfaces are registered.
11424 Open if necessary.
11425 (grub_net_fini_hw): New function.
11426 (grub_net_restore_hw): Likewise.
11427 (fini_hnd): New variable.
11428 (GRUB_MOD_INIT): Register preboot hook.
11429 (GRUB_MOD_FINI): Run and unregister preboot hook.
11430
11431 Poll network cards when idle.
11432
11433 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11434 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11435 * grub-core/net/net.c (receive_packets): Save last poll time.
11436 (grub_net_poll_cards_idle_real): New function.
11437 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11438 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11439 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11440
11441 Rename ofnet interfaces.
11442
11443 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11444 (grub_ofnet_findcards): Use ofnet_%s names.
11445
11446 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11447
11448 Cleanup socket opening.
11449
11450 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11451 (grub_net_fs_close): Likewise.
11452 (grub_net_fs_read_real): Use eof member.
11453 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11454 (+grub_net_udp_close): New inline function.
11455
11456 * include/grub/net/tftp.h: Moved to the top of ...
11457 * grub-core/net/tftp.c: ... here.
11458 * include/grub/net/ip.h: Moved mostly to the top of ...
11459 * grub-core/net/ip.c: ... here.
11460 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11461 * grub-core/net/ethernet.c: ... here.
11462
11463 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11464
11465 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11466 FS name.
11467
11468 * include/grub/net/ip.h (ipv4_ini): Removed.
11469 (ipv4_fini): Likewise.
11470
11471 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11472 (grub_net_send_ip_packets): Likewise.
11473
cf1337aa
VS
114742011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11475
11476 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11477 grub_read_cmos prototype.
11478
93c06ff9
VS
114792011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11480
11481 VGA text support in qemu-mips
11482
11483 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11484 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11485 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11486 text.
11487 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11488 * grub-core/kern/vga_init.c: ... this.
11489 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11490 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11491 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11492 Adjust.
11493 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11494 GRUB_MACHINE_PCI_IO_BASE.
11495
748ccabe
VS
114962011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11497
11498 MIPS qemu flash support.
11499
11500 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11501 magic.
11502 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11503 (grub_machine_init): Probe memory if its size isn't known.
11504 * util/grub-mkimage.c (image_targets): Add flash targets.
11505 (generate_image): Handle flash targets.
11506
d7345994
VS
115072011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11508
11509 MIPS qemu at_keyboard support.
11510
11511 * gentpl.py (videoinkernel): Add qemu-mips.
11512 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11513 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11514 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11515 modules.
11516 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11517 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11518 * grub-core/term/serial.c (grub_serial_register)
11519 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11520
a07a81b3
VS
115212011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11522
11523 CMOS support on sparc.
11524
11525 * gentpl.py (cmos): Add powerpc and sparc.
11526 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11527 powerpc and sparc.
11528 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11529 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11530 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11531 grub_set_datetime_cmos.
11532 * grub-core/lib/ieee1275/cmos.c: New file.
11533 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11534 (find_rtc): Set no_ieee1275_rtc on error.
11535 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11536 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11537 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11538 fail. Move value to argument. All users updated
11539 (grub_cmos_write): Likewise.
11540 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11541 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11542 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11543 grub_get_datetime_cmos and grub_set_datetime_cmos.
11544
77546584
GS
115452011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11546
11547 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11548 sourcing grub-mkconfig_lib.
11549 * util/update-grub_lib.in: Likewise.
11550 * util/grub.d/00_header.in: Likewise.
11551 * util/grub.d/10_hurd.in: Likewise.
11552 * util/grub.d/10_kfreebsd.in: Likewise.
11553 * util/grub.d/10_linux.in: Likewise.
11554 * util/grub.d/10_netbsd.in: Likewise.
11555 * util/grub.d/10_windows.in: Likewise.
11556 * util/grub.d/20_linux_xen.in: Likewise.
11557 * util/grub.d/30_os-prober.in: Likewise.
11558
54894791
CW
115592011-06-28 Colin Watson <cjwatson@ubuntu.com>
11560
11561 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11562 default_bg_color rather than black.
11563 (grub_gfxterm_fullscreen): Likewise.
11564 (grub_gfxterm_background_color_cmd): Save new background color in
11565 default_bg_color.
11566
8d5d8444
VS
115672011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11568
11569 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11570
5afeb5bd
VS
115712011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11572
11573 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11574 mismerge.
11575
ba7df45e
VS
115762011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 Chainloading on coreboot support.
11579
11580 * grub-core/Makefile.core.def (chain): Add coreboot.
11581 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11582
d0b526b2
VS
115832011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11584
11585 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11586 if it happens.
11587
5ff1d945
VS
115882011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11589
11590 Implement time command.
11591
11592 * grub-core/Makefile.core.def (time): New module.
11593 * grub-core/commands/time.c: New file.
11594 * grub-core/script/parser.y: Remove "time" keyword.
11595 * grub-core/script/yylex.l: Likewise.
11596
5ebaad7e
VS
115972011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11598
11599 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11600
bdea3798
VS
116012011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11602
11603 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11604 when handling leftovers.
11605
b28c5655
VS
116062011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11607
11608 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11609 so that help2man doesn't fail.
11610
b6f945dc
VS
116112011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11612
11613 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11614 type in pointers on sparc64.
11615 (get_card_packet): Likewise.
11616
f9b75e8a
CW
116172011-06-27 Colin Watson <cjwatson@ubuntu.com>
11618
11619 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11620 with `*'.
11621 (grub_cmd_videoinfo): Fetch current video mode.
11622
1e3d9b86
VS
116232011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11624
11625 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11626 because of underlying system restrictions.
11627
efff4b1c
VS
116282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11629
11630 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11631 necessary.
11632
9fc9ce37
VS
116332011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11634
11635 Coreboot video support.
11636
11637 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11638 (vbe): Likewise.
11639 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11640 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11641 here ...
11642 * grub-core/kern/i386/int.S: ... here.
11643 * grub-core/video/i386/pc/vbe.c: Updated includes.
11644 * grub-core/video/i386/pc/vga.c: Likewise.
11645 * include/grub/i386/coreboot/memory.h
11646 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11647 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11648 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11649 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11650 Disable interrupts.
11651 * include/grub/i386/pc/vga.h: Removed. All users updated.
11652
41bec7fe
VS
116532011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11654
11655 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11656 definitions for dprintf.
11657 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11658
ca80309d
VS
116592011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11660
11661 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11662 prototype.
11663 (get_card_packet): Likewise.
11664
9e322ce8
YB
116652011-06-26 Yves Blusseau <blusseau@zetam.org>
11666
11667 Display the path of the file when file is not found
11668
11669 * grub-core/fs/fat.c: Display the filename when file is not found.
11670 * grub-core/fs/fshelp.c: Likewise.
11671 * grub-core/fs/hfs.c: Likewise.
11672 * grub-core/fs/jfs.c: Likewise.
11673 * grub-core/fs/minix.c: Likewise.
11674 * grub-core/fs/ufs.c: Likewise.
11675 * grub-core/fs/btrfs.c: Likewise.
11676 * grub-core/commands/i386/pc/play.c: Likewise.
11677
cbf597af
SJ
116782011-06-26 Szymon Janc <szymon@janc.net.pl>
11679
11680 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11681 pointer checks before calling grub_free().
11682 * grub-core/commands/wildcard.c (match_devices): Likewise.
11683 * grub-core/commands/wildcard.c (match_files): Likewise.
11684 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11685 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11686 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11687 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11688 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11689 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11690 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11691 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11692 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11693
6295b32f
P
116942011-06-25 Patrick <p55@mailinator.com>
11695
11696 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11697
77c0840b
VS
116982011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11699
11700 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11701 (grub_pxe_send): Likewise.
11702 (GRUB_MOD_INIT): Fix types.
11703
40ea05de
SJ
117042011-06-24 Szymon Janc <szymon@janc.net.pl>
11705
11706 * grub-core/io/xzio.c: Fix code style issues
11707
90162423
MRA
117082011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
117092011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
11710
11711 Network infrastructure.
11712 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11713
11714 * include/grub/net/arp.h: New file.
90162423
MRA
11715 * include/grub/net/device.h: Likewise.
11716 * include/grub/net/ethernet.h: Likewise.
11717 * include/grub/net/ip.h: Likewise.
11718 * include/grub/net/netbuff.h: Likewise.
11719 * include/grub/net/tftp.h: Likewise.
11720 * include/grub/net/udp.h: Likewise.
11721 * include/grub/ieee1275/ofnet.h: Likewise.
11722 * include/grub/emu/export.h: Likewise.
11723 * include/grub/net.h: Likewise.
11724 * grub-core/net/arp.c: Likewise.
11725 * grub-core/net/ethernet.c: Likewise.
11726 * grub-core/net/ip.c: Likewise.
11727 * grub-core/net/udp.c: Likewise.
11728 * grub-core/net/tftp.c: Likewise.
11729 * grub-core/net/netbuff.c: Likewise.
11730 * grub-core/net/net.c: Likewise.
11731 * grub-core/net/drivers/emu/emunet.c: Likewise.
11732 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11733 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11734 export.h.
11735 * grub-core/Makefile.core.def (net): New module.
11736 (tftp): Likewise.
11737 (ofnet): Likewise.
11738 (emunet): Likewise.
11739 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11740 network protocols.
11741 * grub-core/kern/device.c (grub_net_open) : New variable.
11742 (grub_device_open): Handle network device.
11743 (grub_device_close): Likewise.
11744 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11745 (grub_grubnet_fini): Likewise.
11746 (grub_file_seek): Seek in network device.
11747 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11748 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11749 network root.
11750 (grub_machine_fini): Call grub_grubnet_fini.
11751 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11752 network.
11753 (grub_ieee1275_get_aliasdevname): New function.
11754 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11755 Add unofficial Solaris network info.
11756 (grub_multiboot_make_mbi): Likewise.
11757 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11758 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11759 * include/grub/device.h (grub_fs): Removed.
11760 * include/grub/err.h (grub_err_t): Add network-related values.
11761 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11762 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11763 (grub_ieee1275_get_aliasdevname): New proto.
11764 * include/grub/net.h: Rewritten.
423a1849 11765
031f22a0
VS
117662011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11767
11768 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11769 names.
11770
4388ca72
VS
117712011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11772
11773 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11774 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11775 it truncates the output.
11776 Reported by: Ximin Luo.
11777
98e2f506
VS
117782011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11779
11780 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11781
2a5e94d8
VS
117822011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11783
11784 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11785 partmap before abstraction.
11786
535c1910
AK
117872011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11788
11789 * util/grub-mkconfig_lib.in: Add missing quotes.
11790
bc09e1a2
VS
117912011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11792
11793 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11794 old method if mountinfo would return /dev/root and /dev/root doesn't
11795 exist.
11796
290766fb
VS
117972011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11798
11799 ZFS zlib support
11800
11801 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11802 (decomp_table): Add zlib entries.
11803 (zio_read): USe 8 bits for compression function rather than 3.
11804 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11805
118062011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11807
11808 * grub-core/disk/ahci.c: Add missing license statements.
11809 * grub-core/fs/romfs.c: Likewise.
11810 * grub-core/lib/ia64/setjmp.S: Likewise.
11811 * grub-core/loader/i386/pc/freedos.c: Likewise.
11812 * grub-core/loader/ia64/efi/linux.c: Likewise.
11813 * grub-core/video/colors.c: Likewise.
11814 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11815
5ab3f48a
VS
118162011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 AHCI support.
11819
11820 * grub-core/Makefile.core.def (ata_pthru): Removed.
11821 (ahci): New module.
11822 (pata): Likewise.
11823 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11824 on unload.
11825 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11826 readwrite.
11827 (grub_hdparm_do_check_powermode_cmd): Likewise.
11828 (grub_hdparm_do_smart_cmd): Likewise.
11829 (grub_hdparm_set_val_cmd): Likewise.
11830 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11831 * grub-core/disk/ahci.c: New file.
11832 * grub-core/disk/ata.c: Factor out the low-level part into ...
11833 * grub-core/disk/pata.c: ... here.
11834 * grub-core/disk/ata_pthru.c: Contents moved to ...
11835 * grub-core/disk/pata.c: ... here.
11836 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11837 (grub_scsi_iterate): Use grub_scsi_names.
11838 (grub_scsi_open): Likewise.
11839 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11840 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11841 (grub_ata_regs_t): New struct.
11842 (grub_disk_ata_pass_through_parms): Likewise.
11843 (grub_ata_device): Renamed to ...
11844 (grub_ata): ... this.
11845 (grub_ata_dev): New struct.
11846 Removed all low-level inline functions.
11847 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11848 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11849 iterate hooks and open. All users updated.
11850 * util/grub-install.in: Handle AHCI disk module.
11851
c31dc5f5
SJ
118522011-06-23 Szymon Janc <szymon@janc.net.pl>
11853
11854 Add support for DRI and RSTn markers in JPEG files.
11855
11856 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11857 (JPEG_MARKER_RST0): Likewise.
11858 (JPEG_MARKER_RST1): Likewise.
11859 (JPEG_MARKER_RST2): Likewise.
11860 (JPEG_MARKER_RST3): Likewise.
11861 (JPEG_MARKER_RST4): Likewise.
11862 (JPEG_MARKER_RST5): Likewise.
11863 (JPEG_MARKER_RST6): Likewise.
11864 (JPEG_MARKER_RST7): Likewise.
11865 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11866 (grub_jpeg_decode_dri): New function.
11867 (grub_jpeg_decode_sos): Move image data related part into
11868 grub_jpeg_decode_data function.
11869 (grub_jpeg_decode_data): New function.
11870 (grub_jpeg_reset): New function.
11871 (grub_jpeg_decode_jpeg): Handle new markers.
11872
fe12fd5b
VS
118732011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11874
11875 * util/ieee1275/ofpath.c (check_sas): Close fd.
11876 (main): Free of_path.
11877 Reported by: David Volgyes <dvolgyes>.
11878
03147f46
VS
118792011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11880
11881 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11882 Reported by: David Volgyes <dvolgyes>.
11883
cad3237f
VS
118842011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11887 file after stat.
11888 Reported by: David Volgyes <dvolgyes>.
11889
13548d26
VS
118902011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11891
11892 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11893
11894 Reported by: David Volgyes <dvolgyes>.
11895
e061a1b5
VS
118962011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11897
11898 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11899 Prevent memory leak.
11900
1abe47dc
VS
119012011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11902
11903 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11904 (main): Close file.
e061a1b5 11905 Reported by: David Volgyes <dvolgyes>.
1abe47dc 11906
fbc62666
VS
119072011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11908
11909 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11910 to continue if allocation is failed.
11911
11912 Reported by: David Volgyes <dvolgyes>.
11913
e98c83e9
DV
119142011-06-23 David Volgyes <dvolgyes>
11915
11916 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11917 dereference.
11918
a199a8cd
VS
119192011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11920
11921 Fix spurious warning.
11922
11923 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11924 (acorn_partition_map_find): Use .bin member.
11925
e2d1dba0
VS
119262011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11927
11928 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11929 /dev/root as a valid device.
11930
8a5d6919
JM
119312011-06-23 Jim Meyering <meyering@redhat.com>
11932
e2d1dba0
VS
11933 Avoid NULL deref in grub_device_open.
11934
8a5d6919
JM
11935 * grub-core/kern/device.c (grub_device_open): Don't dereference
11936 a NULL pointer upon failed grub_env_get.
11937
f7db6f4a
VS
119382011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11939
11940 Support non-512B sectors and agglomerate reads.
11941
11942 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11943 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11944 (disk_io_guid): Removed.
11945 (make_devices): Locate solely by BlockIO.
11946 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11947 (grub_efidisk_read): Use read_blocks.
11948 (grub_efidisk_write): Use write_blocks.
11949 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11950 log_sector_size.
11951 (get_safe_sectors): Handle non-512B sectors.
11952 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11953 sectors.
11954 (grub_biosdisk_write): Handle non-512B sectors.
11955 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11956 (grub_scsi_read): Remove special non-512B block handling (now handled
11957 one level up).
11958 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11959 and do sanity checks.
11960 (grub_disk_adjust_range): Handle non-512B sectors.
11961 (transform_sector): New function.
11962 (grub_disk_read_small): Likewise.
11963 (grub_disk_read): Rewritten.
11964 (grub_disk_write): Handle non-512B sectors.
11965 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11966 log_sector_size.
11967 (open_device): Use log_sector_size.
11968 (grub_util_biosdisk_read): Likewise.
11969 (grub_util_biosdisk_write): Likewise.
11970 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11971 non-512B sectors.
11972 (pc_partition_map_embed): Likewise.
11973 * include/grub/disk.h (grub_disk): New field log_sector_size.
11974 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11975 (GRUB_DISK_CACHE_BITS): Increased to 6.
11976 * util/grub-fstest.c (fstest): New command testload.
11977 (argp_parser): Likewise.
11978
881ac815
RM
119792011-06-16 Robert Millan <rmh@gnu.org>
11980
11981 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11982 `ata' driver on kernel of FreeBSD 9.
11983
11984 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11985 (get_ataraid_disk_name): New functions.
11986 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11987 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11988 get_ataraid_disk_name() and get_ada_disk_name().
11989
1e9aef7d
CW
119902011-06-13 Colin Watson <cjwatson@ubuntu.com>
11991
11992 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11993 input format.
11994
351c7c8a
CW
119952011-05-29 Colin Watson <cjwatson@ubuntu.com>
11996
11997 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11998 `ftp.gnu.org' for `alpha.gnu.org'.
11999
6b4e6430
CW
120002011-05-27 Colin Watson <cjwatson@ubuntu.com>
12001
12002 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12003 partitions under /dev/disk/by-id/.
12004
c64db050
CW
120052011-05-27 Colin Watson <cjwatson@ubuntu.com>
12006
12007 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12008 after ten consecutive open failures. Scanning all the way up to
12009 10000 is excessive and can cause serious performance problems in
12010 some configurations.
12011 Fixes Ubuntu bug #787461.
12012
245f4aba
VS
120132011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12016 opening new one.
12017
f767c929
VS
120182011-05-21 Colin Watson <cjwatson@ubuntu.com>
120192011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12020
12021 Don't stat devices unless we have to.
12022
12023 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12024 dir == /dev/mapper.
12025 (grub_guess_root_device): Use already known os_dev if possible.
12026 * grub-core/kern/emu/hostdisk.c
12027 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12028 if device is known to be a dm one.
12029
f35fa3a6
CW
120302011-05-20 Colin Watson <cjwatson@ubuntu.com>
12031
12032 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12033 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12034 Reported by: Pawel Tecza.
12035
9a79fcf2
VS
120362011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12037
12038 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12039 (lsefisystab): Likewise.
12040 (lssal): Likewise.
12041 (lsefimmap): Likewise.
12042 (hdparm): Enable on qemu-mips.
12043 (setjmp): Add ia64 nodist.
12044 (serial): Simplify tags.
12045
63e3eea9
CW
120462011-05-18 Colin Watson <cjwatson@ubuntu.com>
12047
12048 * Makefile.util.def (grub-ofpathname): Install manual page.
12049
09728256
CW
120502011-05-18 Colin Watson <cjwatson@ubuntu.com>
12051
12052 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12053
8b63a142
CW
120542011-05-18 Colin Watson <cjwatson@ubuntu.com>
12055
12056 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12057
e775d8ed
VS
120582011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12059
12060 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12061 into dprintf.
12062
bf947d36
VS
120632011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 Use full 64-bit division.
12066
12067 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12068 (grub_divmod64): ... this.
12069 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12070 version.
12071
b84f26c5
CW
120722011-05-18 Colin Watson <cjwatson@ubuntu.com>
12073
12074 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12075 `source'.
12076
5626056f
CW
120772011-05-18 Colin Watson <cjwatson@ubuntu.com>
12078
12079 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12080 to avoid accidents when debugging with 'sh -x'.
12081 * grub-core/gensyminfo.sh.in: Likewise.
12082 * tests/example_scripted_test.in: Likewise.
12083 * tests/grub_cmd_regexp.in: Likewise.
12084 * tests/grub_script_blanklines.in: Likewise.
12085 * tests/grub_script_dollar.in: Likewise.
12086 * tests/grub_script_expansion.in: Likewise.
12087 * tests/grub_script_final_semicolon.in: Likewise.
12088 * tests/partmap_test.in: Likewise.
12089 * tests/util/grub-shell-tester.in: Likewise.
12090 * tests/util/grub-shell.in: Likewise.
12091
e2965f4a
CW
120922011-05-18 Colin Watson <cjwatson@ubuntu.com>
12093
12094 Move gfxmenu color handling to video, so that gfxterm can use it
12095 too.
12096
12097 * grub-core/gfxmenu/named_colors.c: Move to ...
12098 * grub-core/video/colors.c: ... here. Rename
12099 grub_gui_get_named_color to grub_video_get_named_color.
12100 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12101 * grub-core/video/colors.c (my_isxdigit): ... here.
12102 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12103 Move to ...
12104 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12105 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12106 to ...
12107 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12108
12109 * include/grub/gui.h (grub_gui_color_t): Move to ...
12110 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12111 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12112 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12113 * include/grub/gui.h (grub_gui_map_color): Move to ...
12114 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12115 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12116 to ...
12117 * include/grub/video.h (grub_video_get_named_color): ... here.
12118 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12119 * include/grub/video.h (grub_video_parse_color): ... here.
12120
12121 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12122 video/colors.c.
12123 (gfxmenu): Remove gfxmenu/named_colors.c.
12124 (video) [videomodules]: Add video/colors.c.
12125
12126 Add a background_color command.
12127
12128 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12129 function.
12130 (GRUB_MOD_INIT): Register background_color command.
12131 (GRUB_MOD_FINI): Unregister background_color command.
12132 (redraw_screen_rect): Allow blend/replace of text layer to be
12133 controlled independently from whether there is a background bitmap.
12134 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12135 changing bitmap.
12136
1e4b4390
VS
121372011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12138
26618ff0
VS
12139 Patch BPB in ntldr and chainloader --bpb.
12140
1e4b4390
VS
12141 * grub-core/fs/fat.c: Include grub/fat.h.
12142 (grub_fat_bpb): Moved to ...
12143 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12144 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12145 grub/ntfs.h.
12146 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12147 Moved from here...
12148 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12149 here.
12150 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12151 New function.
12152 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12153 (GRUB_MOD_INIT): Show --bpb.
12154 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12155 * grub-core/normal/main.c (features): New variable.
12156 (GRUB_MOD_INIT): Set feature_* variables.
12157 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12158 proto.
12159 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12160
cf02731e
VS
121612011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12164 for cleanness.
12165
e3a1073f
VS
121662011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12167
12168 FreeDOS direct loading support.
12169
12170 * docs/grub.texi (Supported OS): Add FreeDOS.
12171 * grub-core/Makefile.core.def (freedos): New module.
12172 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12173 variable.
12174 (grub_relocator16_boot): Handle %ebx.
12175 * grub-core/lib/i386/relocator16.S: Likewise.
12176 * grub-core/loader/i386/pc/freedos.c: New file.
12177
05caa461
VS
121782011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12179
12180 Long Linux command line support.
12181
12182 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12183 (maximal_cmdline_size): New variable.
12184 (allocate_pages): Use maximal_cmdline_size.
12185 (grub_cmd_linux): Set and use maximal_cmdline_size.
12186 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12187 (allocate_pages): Use maximal_cmdline_size.
12188 (grub_cmd_linux): Set and use maximal_cmdline_size.
12189 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12190 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12191 and cmdline_size.
12192
a2491e23
VS
121932011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
121942011-05-18 Colin Watson <cjwatson@ubuntu.com>
12195
12196 Improve devmapper support
12197
12198 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12199 (grub_util_is_lvm): New function.
12200 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12201 than lvm if not dmraid.
12202 Handle mapped md nodes.
12203 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12204 (grub_util_device_is_mapped): ... this. Make always available. All users
12205 updated.
12206 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12207 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12208 dmraid nodes.
12209 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12210
6ad6223e
VS
122112011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12212
12213 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12214
12215 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12216 * grub-core/modinfo.sh.in: New file.
12217 * grub-core/Makefile.core.def (modinfo.sh): New script.
12218 * util/grub-mknetdir.in: Use modinfo.sh.
12219 * util/grub-mkrescue.in: Likewise.
12220
543a8f6e
VS
122212011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12222
12223 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12224 Fix potential usage of Elf32 instead of Elf64 when compiling on
12225 32-bit architecture. Add endianness macros while on it.
12226
4959e111
VS
122272011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12228
12229 Use mipsel- rather than mips- in directories involving mipsel ports to
12230 allow both endiannesses coexist.
12231
12232 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12233 mips. All conditions adjusted.
12234 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12235 variable.
12236 * util/grub-install.in: Adjust conditions to take renaming into account.
12237 * util/grub-mkimage.c (image_targets): Likewise. New target
12238 mips-qemu_mips-elf for bigendian mips.
12239
35341bbc
VS
122402011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12241
12242 Avoid unnecessary copying on MIPS.
12243
12244 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12245 early if src == dest.
12246 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12247 compression is none.
12248
b772baed
VS
122492011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12250
12251 Reduce memory footprint on SGI by putting modules before the kernel
12252 as opposed to after.
12253
12254 * grub-core/Makefile.core.def (kernel): Increase linking address.
12255 (none_decompress): Likewise.
12256 (xz_decompress): Likewise.
12257 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12258 address.
12259 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12260 layout change.
12261 (grub_arch_modules_addr): New function.
12262 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12263 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12264 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12265 here.
12266 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12267 (grub_total_modules_size): ... this. Make global.
12268 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12269 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12270 New definition.
12271 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12272 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12273 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12274 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12275 * util/grub-mkimage.c (image_target_desc): New flag
12276 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12277 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12278 (generate_image): Handle images with modules before kernel.
12279
566a1917
VS
122802011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12281
12282 Prevent potential loss of memory map by overwrite on qemu-mips.
12283
12284 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12285 Save ram size in $s4.
12286 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12287 All users changed to grub_arch_memsize.
12288 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12289 Loongson.
12290 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12291 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12292 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12293 external variable.
12294
5d420cd9
CW
122952011-05-17 Colin Watson <cjwatson@ubuntu.com>
12296
12297 * .bzrignore: Remove grub-dumpbios.
12298
d064b830
CW
122992011-05-17 Colin Watson <cjwatson@ubuntu.com>
12300
12301 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12302 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12303 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12304 existing options which append).
12305 * docs/grub.texi (Simple configuration): Document new options.
12306 Reported by: Ian Jackson. Fixes Debian bug #617538.
12307
3ca2b466
CW
123082011-05-17 Colin Watson <cjwatson@ubuntu.com>
12309
12310 * util/grub-fstest.c (cmd_cat): New function.
12311 (fstest): Handle CMD_CAT.
12312 (options): Add cat.
12313 (argp_parser): Handle cat.
12314
24c9143a
CW
123152011-05-17 Colin Watson <cjwatson@ubuntu.com>
12316
12317 * Makefile.util.def (grub-bin2h): Don't install.
12318 * docs/man/grub-bin2h.h2m: Remove.
12319
90f7ac19
VS
123202011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12321
12322 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12323 place.
12324
8d4a5178
VS
123252011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12326
12327 Reenable qemu-mips port.
12328
12329 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12330 Fix small arc bug while on it.
12331 * gentpl.py: Handle qemu_mips.
12332 * grub-core/Makefile.am: Likewise.
12333 * grub-core/Makefile.core.def: Likewise.
12334 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12335 inappropriate includes.
12336 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12337 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12338 * grub-core/kern/main.c (grub_modules_get_end)
12339 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12340 * grub-core/kern/mips/qemu-mips: Moved to ..
12341 * grub-core/kern/mips/qemu_mips: ... this.
12342 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12343 (grub_machine_init): Call terminfo_init and serial_init.
12344 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12345 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12346 New variable.
12347 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12348 parameter passing.
12349 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12350 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12351 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12352 * include/grub/mips/qemu_mips/cmos.h: New file.
12353 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12354 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12355 Removed.
12356 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12357 Use correct mips-style address.
12358 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12359 (GRUB_TICKS_PER_SECOND): Removed.
12360 (grub_get_rtc): Likewise.
12361 (grub_cpu_idle): Likewise.
12362 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12363 New definition.
12364 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12365 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12366 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12367 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12368 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12369 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12370 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12371 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12372
400b9371
VS
123732011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12374
12375 SGI ARCS port.
12376
12377 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12378 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12379 platforms.
12380 * configure.ac: New target mips-arc.
12381 * gentpl.py: Likewise.
12382 * grub-core/Makefile.am: Likewise.
12383 * grub-core/Makefile.core.def: Likewise.
12384 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12385 (none_decompress): Likewise.
12386 (lsdev): New module.
12387 (datetime): Use lib/arc/datetime.c on ARC.
12388 (part_dvh): New module.
12389 * grub-core/commands/arc/lsdev.c: New file.
12390 * grub-core/disk/arc/arcdisk.c: Likewise.
12391 * grub-core/kern/mips/arc/init.c: Likewise.
12392 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12393 aligned addresses.
12394 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12395 support.
12396 (grub_arch_dl_relocate_symbols): Likewise.
12397 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12398 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12399 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12400 platforms.
12401 * grub-core/lib/arc/datetime.c: New file.
12402 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12403 pci.h on non-loongson.
12404 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12405 (grub_linux_boot): Set unused registers to 0.
12406 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12407 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12408 * grub-core/mmap/mips/uppermem.c: ...here.
12409 * grub-core/partmap/dvh.c: New file.
12410 * grub-core/term/arc/console.c: Likewise.
12411 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12412 (grub_terminfo_set_current): Add terminal "arc".
12413 (grub_terminfo_readkey): Support ARC sequences.
12414 * include/grub/arc/arc.h: New file.
12415 * include/grub/arc/console.h: Likewise.
12416 * include/grub/disk.h (grub_disk_dev_id): Add
12417 GRUB_DISK_DEVICE_ARCDISK_ID.
12418 * include/grub/mips/arc/kernel.h: New file.
12419 * include/grub/mips/arc/memory.h: Likewise.
12420 * include/grub/mips/arc/time.h: Likewise.
12421 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12422 * include/grub/mips/kernel.h (grub_halt): ... here.
12423 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12424 here...
12425 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12426 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12427 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12428 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12429 proto.
12430 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12431 from here ...
12432 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12433 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12434 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12435 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12436 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12437 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12438 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12439 (grub_phys_addr_t): Moved from here ...
12440 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12441 (grub_vtop): Moved from here ...
12442 * include/grub/mips/memory.h (grub_vtop): ... here.
12443 (grub_map_memory): Moved from here ...
12444 * include/grub/mips/memory.h (grub_map_memory): ... here.
12445 (grub_unmap_memory): Moved from here ...
12446 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12447 (grub_machine_mmap_iterate): Moved from here ...
12448 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12449 (grub_mmap_get_lower): Moved from here ...
12450 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12451 (grub_mmap_get_upper): Moved from here ...
12452 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12453 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12454 here ...
12455 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12456 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12457 here ...
12458 * include/grub/mips/time.h (grub_get_rtc): ... here.
12459 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12460 here ...
12461 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12462 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12463 here ...
12464 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12465 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12466 definition.
12467 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12468 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12469 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12470 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12471 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12472 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12473 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12474 (GRUB_MACHINE_LINK_ADDR): Likewise.
12475 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12476 to 6.
12477 * util/grub-install.in: Run dvhtool on ARC.
12478 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 12479 (generate_image): Handle ECOFF output for mips-arc.
400b9371 12480
c8ecc840
VS
124812011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12482
12483 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12484 blocks.
12485
153a4b55
VS
124862011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12487
12488 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12489 after enabling port.
12490
ff44d107
VS
124912011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12492
12493 Skip incorrect USB devices.
12494
12495 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12496 configcnt == 0.
12497 * include/grub/usb.h (grub_usb_err_t): New enum value
12498 GRUB_USB_ERR_BADDEVICE.
12499
638dbe4f
VS
125002011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12501
12502 Fuloong video init support.
12503
12504 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12505 well.
12506 (grub_vga_read_arx): New function.
12507 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12508 definition.
12509 (framebuffer): New members io, mmioptr and mmiobase.
12510 (read_sis_cmd): New function.
12511 (write_sis_cmd): Likewise.
12512 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12513 rather than 640x400.
12514 * grub-core/video/sis315_init.c: New file.
12515
c3fc520c
VS
125162011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12517
12518 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12519 non-loongson.
12520 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12521 to grub_dl_register_symbol.
12522
67b1e5c9
VS
125232011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12524
12525 Fix compilation errors.
12526
12527 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12528 potentially unused.
12529 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12530 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12531 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12532 to loongson machines.
12533
b756f75f
VS
125342011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12535
12536 Several FS mtime support.
12537
12538 * grub-core/fs/affs.c (grub_affs_time): New struct.
12539 (grub_affs_file): New field mtime.
12540 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12541 type. Removed 'size'. New field 'di'. All users updated.
12542 (grub_affs_mount): Simplify checsum checking.
12543 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12544 (grub_affs_dir): Handle mtime.
12545 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12546 (grub_cpio_dir): Likewise.
12547 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12548 (grub_hfs_filerec): New field mtime.
12549 (grub_hfs_dir): Handle mtime.
12550 (grub_hfs_mtime): New function.
12551 (grub_hfs_fs): Register grub_hfs_mtime.
12552 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12553 (grub_iso9660_dir): New field mtime.
12554 (grub_fshelp_node): New field dirent.
12555 (iso9660_to_unixtime): New function.
12556 (iso9660_to_unixtime2): Likewise.
12557 (grub_iso9660_read_symlink): Use node->dirent.
12558 (grub_iso9660_iterate_dir): Likewise.
12559 (grub_iso9660_dir): Set mtime.
12560 (grub_iso9660_mtime): New function.
12561 (grub_iso9660_fs): Register grub_iso9660_mtime.
12562 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12563 (grub_jfs_inode): New fields atime, ctime and mtime.
12564 (grub_jfs_dir): Set mtime.
12565 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12566 * grub-core/fs/ntfs.c (list_file): Set mtime.
12567 (grub_ntfs_dir): Likewise.
12568 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12569 (grub_reiserfs_iterate_dir): Set mtime.
12570 (grub_reiserfs_dir): Likewise.
12571 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12572 (grub_fshelp_node): Likewise.
12573 (grub_sfs_iterate_dir): Set mtime.
12574 (grub_sfs_dir): Likewise.
12575 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12576 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12577 (grub_xfs_inode): New fields atime, mtime, ctime.
12578 (grub_xfs_dir): Set mtime.
12579 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12580 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12581 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12582
12583 Support UDF symlinks.
12584
12585 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12586 (grub_ufs_read_symlink): New function. All users updated.
12587
12588 Check amiga partmap checksum.
12589
12590 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12591 (grub_amiga_partition): Likewise.
12592 (amiga_partition_map_checksum): New function.
12593 (amiga_partition_map_iterate): Check checksum.
12594
5470225d
VS
125952011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 ROMFS support.
12598
12599 * Makefile.util.def (libgrubmods.a): Add romfs.
12600 * grub-core/Makefile.core.def (romfs): New module.
12601 * grub-core/fs/romfs.c: New file.
12602
d4680a35
VS
126032011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12604
12605 Squashfs v4 support.
12606
12607 * Makefile.util.def (libgrubmods.a): Add squash4.
12608 * grub-core/Makefile.core.def (squash4): New module.
12609 * grub-core/fs/squash4.c: New file.
12610 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12611 disk_input_start, disk_input.
12612 (get_byte): Handle disk_input.
12613 (grub_zlib_disk_read): New function.
12614 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12615
bcb18e74
FZ
126162011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
126172011-05-15 Feiran Zheng <famcool@gmail.com>
12618
12619 * Makefile.util.def (libgrubmods.a): Add minix3.
12620 * grub-core/Makefile.core.def (minix3): New module.
12621 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12622 (GRUB_MINIX_BSIZE): Removed.
12623 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12624 (grub_minix_ino_t): New type.
12625 (grub_minix_le_to_cpu_ino): New macro.
12626 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12627 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12628 (grub_minix_data): New field block_size.
12629 (grub_minix_read_file): Handle 64-bit correctly.
12630 * grub-core/fs/minix3.c: New file.
12631
32297d5f
TG
126322011-05-15 Tristan Gingold <gingold@free.fr>
126332011-05-15 Robert Millan <rmh.grub@aybabtu.com>
126342011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12635
12636 IA64 support.
12637
12638 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12639 * configure.ac: Add ia64-efi target.
12640 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12641 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12642 * gentpl.py: Add ia64_efi platform.
12643 Rename x86_efi to efi and Add ia64-efi. All users updated.
12644 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12645 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12646 Remove kern/generic/rtc_get_time_ms.c on EFI.
12647 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12648 kern/ia64/dl_helper.c on ia64-efi.
12649 Add kern/emu/cache.c on emu.
12650 (linux): Use on loader/ia64/efi/linux.c on ia64.
12651 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12652 whether symbol is a function.
12653 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12654 (grub_symbol): New field 'isfunc'.
12655 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12656 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12657 (grub_dl_load_segments): Place all sections into the same region.
12658 [__ia64__]: Create trampolines and got.
12659 [GRUB_MACHINE_EMU]: Call mprotect.
12660 (grub_dl_resolve_symbols): Resolve symbol type as well.
12661 [__ia64__]: Create function descriptors.
12662 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12663 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12664 (grub_get_rtc): New function.
12665 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12666 * grub-core/kern/emu/cache.S: Renamed to ...
12667 * grub-core/kern/emu/cache_s.S: ... this.
12668 [__ia64__]: Add a nop.
12669 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12670 [__ia64__]: New function.
12671 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12672 * grub-core/kern/ia64/dl.c: New file.
12673 * grub-core/kern/ia64/dl_helper.c: Likewise.
12674 * grub-core/kern/ia64/efi/init.c: New file.
12675 * grub-core/kern/ia64/efi/startup.S: Likewise.
12676 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12677 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12678 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12679 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12680 * grub-core/loader/ia64/efi/linux.c: New file.
12681 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12682 (GRUB_MOD_DEP): Likewise.
12683 (grub_dl) [__ia64__]: New fields got and tramp.
12684 (grub_dl): New field 'base'.
12685 (grub_dl_register_symbol): New argument isfunc. All users updated.
12686 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12687 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12688 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12689 (grub_ia64_dl_get_tramp_got_size): New proto.
12690 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12691 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12692 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12693 * include/grub/efi/api.h: Skip call wrappers on ia64.
12694 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12695 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12696 * include/grub/elf.h (ELF_ST_INFO): New definition.
12697 * include/grub/ia64/efi/kernel.h: New file.
12698 * include/grub/ia64/efi/memory.h: Likewise.
12699 * include/grub/ia64/efi/time.h: Likewise.
12700 * include/grub/ia64/kernel.h: Likewise.
12701 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12702 * include/grub/ia64/time.h: New file.
12703 * include/grub/ia64/types.h: Likewise.
12704 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12705 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12706 New protos.
12707 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12708 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12709 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12710 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12711 All users updated.
12712 (EFI64_HEADER_SIZE): New definition. All users updated.
12713 (image_targets): Add ia64-efi.
12714 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12715 jumpers_addr. All users updated.
12716 Create function descriptors.
12717 (count_funcs): New function.
12718 (unaligned_uint32): New struct.
12719 (MASK20): New definition.
12720 (MASK19): Likewise.
12721 (MASKF21): Likewise.
12722 (add_value_to_slot_20b): New function.
12723 (add_value_to_slot_21_real): Likewise.
12724 (add_value_to_slot_21): Likewise.
12725 (ia64_kernel_trampoline): New struct.
12726 (nopm): New variable.
12727 (jump): Likewise.
12728 (make_trampoline): New function.
12729 (relocate_addresses): Handle ia64.
12730 (make_reloc_section): Likewise.
12731 (load_image): Likewise.
12732
983b414d
VS
127332011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12734
12735 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12736 warning. Move variables before code while on it.
12737
5d063cdc
VS
127382011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12739
12740 Fuloong support.
12741
12742 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12743 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12744 * grub-core/boot/mips/loongson/fuloong.S: New file.
12745 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12746 Explicitly init CS5536.
12747 [FULOONG]: Don't use serial until CS5536 is available.
12748 Set GPIO based on dumps.
12749 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12750 [FULOONG]: Handle GPIO and memory controller differences.
12751 Parse machine type in $a2.
12752 * grub-core/boot/mips/startup_raw.S: Determine and save the
12753 architecture.
12754 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12755 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12756 init on architecture type.
12757 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12758 SIS315E. Don't init at_keyboard on fuloong.
12759 (grub_halt): Support Fuloong.
12760 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12761 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12762 (loongson_machtypes): New array.
12763 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12764 type.
12765 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12766 config. All users updated. Handle CS5536 serial.
12767 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12768 default port on machine type. Register serial as inactive.
12769 * grub-core/video/sis315pro.c: New file.
12770 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12771 definition.
12772 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12773 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12774 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12775 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12776 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12777 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12778 to ...
12779 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12780 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12781 definition.
12782 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12783 (grub_arch_machine): New extern var.
12784 * include/grub/mips/loongson/serial.h
12785 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12786 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12787 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12788 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12789 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12790 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12791 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12792 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12793 * include/grub/term.h (grub_term_register_input_inactive): New inline
12794 function.
12795 (grub_term_register_output_inactive): Likewise.
12796 * include/grub/video.h (grub_video_driver_id): New value
12797 GRUB_VIDEO_DRIVER_SIS315PRO.
12798 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12799 New field "names". All users updated.
12800 New field value IMAGE_FULOONG_FLASH.
12801 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12802
6ada82d1
JU
128032011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12804
12805 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12806 and add some clarification.
12807
90c571a4
VS
128082011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12809
12810 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12811 platforms if kernel is compressed.
12812
de04eecf
VS
128132011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12814
12815 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12816 unused modules since currently referrence counter isn't reliable and
12817 there isn't much memory to recover there anyway.
12818
57688121
VS
128192011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12820
12821 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12822 rather than resetting it to allow modules to reference themselves
12823 in init.
12824
3d2c7e35
VS
128252011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12826
12827 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12828 counter on dependencies since grub_dl_unref already handles this.
12829
b25db218
VS
128302011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12831
12832 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12833 on error if not already done.
12834
25a45338
VS
128352011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12836
12837 Fix few potential memory misusage.
12838
12839 * grub-core/font/font.c (load_font_index): Don't free char_index to
12840 avoid double free.
b25db218
VS
12841 (grub_font_load): Zero-fill font at alloc for safety.
12842 Close file on error.
12843 (free_font): Free bmp_idx.
25a45338 12844
0cac83df
VS
128452011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12846
12847 * docs/grub.texi (Installation): Fix several outdated claims.
12848
2217a143
VS
128492011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12850
12851 Handle module_license on windows.
12852
12853 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12854 sections shifted.
12855 (insert_string): Make argument const char * instead of char *.
12856 (write_section_data): Handle long section names.
12857 Handle module_license.
12858
d4de6b01
VS
128592011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12860
12861 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12862 handle class-free menuentries.
12863 (grub_normal_add_menu_entry): Add a check to be sure.
12864
4c2a3b43
VS
128652011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12866
12867 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12868 PgUp and PgDown.
12869
85c6210f
VS
128702011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12871
12872 * configure.ac: Bump version to 1.99.
12873
36084912
VS
128742011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12875
12876 Give ATA device a bit more time on first try in order to allow disks
12877 to spin up.
12878
12879 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12880 if dev->present is 1. Reset dev->present on failure.
12881 (grub_ata_device_initialize): Set dev->present to 1.
12882 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12883 (grub_ata_device): New member 'present'.
12884
bda0e219
VS
128852011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12886
12887 * util/grub-mkimage.c (generate_image): Update hash.
12888
19e1c41b
VS
128892011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12890
12891 Flush caches on DMA memory.
12892
12893 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12894 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12895 (grub_dma_free): Likewise.
12896 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12897
91bbcc0c
VS
128982011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12899
12900 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12901 to avoid asm treating ld and sd as macros.
12902
60ddfad3
VS
129032011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12904
12905 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12906 decompressor.
12907
a298aa04
VS
129082011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12909
12910 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12911 grub_decompress_core since later would fail if grub_decompress_core
12912 is too far.
12913
9b44feca
VS
129142011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12915
12916 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12917 R_MIPS_JALR since it's used by newer compiler.
12918
56dbe7b4
VS
129192011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12920
12921 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12922
52856af2
VS
129232011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12924
12925 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12926 file_path to 0 for surety.
12927 (grub_chainloader_boot): Set exit_data to NULL.
12928 Unset the loader once done.
12929 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12930
9c9bfc6d
VS
129312011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12932
12933 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12934 unknown key into a dprintf.
12935
dd94a3df
VS
129362011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12937
12938 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12939 on first non-existant partition.
12940
fa68d99c
VS
129412011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12942
12943 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12944 openning fails.
12945 Reported by: Mark Korenberg.
12946
157effb7
VS
129472011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12948
12949 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12950 overflow.
12951
ea75312f
VS
129522011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12953
12954 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12955 before closing to ensure that it will be readable by grub-setup.
12956
072b5d31
VS
129572011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12958
12959 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12960 (devpath_1): Use MAKE_PIWG_PATH.
12961 (devpath_2): Likewise.
12962 (devpath_3): Likewise.
12963 (devpath_4): Likewise.
12964 (devpath_5): Likewise.
12965 (devpath_6): Likewise.
12966
12967 The appleldr.mod was checked that to be binary identical to previous
12968 version.
12969
7fae0051
Z
129702011-05-05 Zach <mikezackles>
12971
12972 Support 2010 Macbooks.
12973
12974 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12975 (devs): Add devpath_6.
12976
7c515bee
VS
129772011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12978
12979 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12980 /dev/random. /dev/urandom is good enough for our purposes (salting).
12981
ed660bd8
VS
129822011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12983
12984 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12985
ee5614b7
VS
129862011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12987
12988 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12989 hexadecimal.
12990
664889a6
VS
129912011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12992
12993 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12994 and not 0 on failure.
12995
bd405bbc
CW
129962011-05-03 Colin Watson <cjwatson@ubuntu.com>
12997
12998 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12999 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13000 disk; otherwise grub_fs_probe will not fall back to the next
13001 filesystem.
13002 (grub_pxefs_open): Likewise, for consistency.
13003 Reported and tested by: Ezekiel Grave.
13004
4ebff753
CW
130052011-05-03 Colin Watson <cjwatson@ubuntu.com>
13006
13007 * tests/partmap_test.in: Don't hardcode path to parted.
13008 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13009
8f942553
CW
130102011-05-01 Colin Watson <cjwatson@ubuntu.com>
13011
13012 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13013 of `ls' to find out which devices are available.
13014
3c62402d
VS
130152011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13016
13017 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13018 than source address for efi mmap buffer.
13019
723f63f2
VS
130202011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13021
13022 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13023 wrong action on non-detecting the magic.
13024
68797f92
VS
130252011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13026
13027 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13028 already supplied by another part of the module (fixes compilation on
13029 FreeBSD).
13030
6be8715d
VS
130312011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13032
13033 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13034 match the one used by mdadm.
13035
e91dba5b
CW
130362011-04-21 Colin Watson <cjwatson@ubuntu.com>
13037
13038 * po/README: Add instructions for creating po/LINGUAS.
13039
c85140b3
CW
130402011-04-21 Colin Watson <cjwatson@ubuntu.com>
13041
13042 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13043 #551428.
13044
13045 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13046 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13047 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13048 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13049 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13050 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13051 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13052 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13053 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13054 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13055 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13056 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13057 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13058 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13059 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13060 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13061 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13062 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13063 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13064 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13065 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13066 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13067
92051871
CW
130682011-04-21 Colin Watson <cjwatson@ubuntu.com>
13069
13070 * grub-core/kern/emu/getroot.c
13071 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13072 test that was incorrectly reintroduced in r3214.
13073 Reported by: Ian Dall. Fixes Savannah bug #33133.
13074
b13f79a4
CW
130752011-04-21 Colin Watson <cjwatson@ubuntu.com>
13076
13077 Fix stack pointer handling in 16-bit relocator.
13078
13079 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13080 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13081 Fixes Ubuntu bug #683904.
13082
9b710a88
VS
130832011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 * configure.ac: Bump version to 1.99~rc2.
13086
d97e7b59
VS
130872011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13088
13089 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13090 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13091 * grub-core/lib/x86_64/setjmp.S: Likewise.
13092 * grub-core/lib/mips/setjmp.S: Likewise.
13093 * grub-core/lib/powerpc/setjmp.S: Likewise.
13094 * grub-core/lib/sparc64/setjmp.S: Likewise.
13095
0624551c
VS
130962011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13097
13098 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13099 * grub-core/lib/efi/datetime.c: Likewise.
13100
e8f28d4c
VS
131012011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13102
13103 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13104 New function.
13105 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13106 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13107 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13108
bba79a15
VS
131092011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13110
13111 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13112 bitmap.
13113 (grub_gfxterm_term_init): Likewise.
13114
abc474ef
VS
131152011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13116
13117 Take into account the decorations the computing menu entry width.
13118
13119 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13120 (grub_gfxmenu_create_box): Register get_border_width.
13121 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13122 if available.
13123 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13124 get_border_width.
13125
e74b3947
EP
131262011-04-18 Endres Puschner <code@e7p.de>
13127
13128 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13129 Don't skip first class.
13130
34faa595
VS
131312011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13132
13133 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13134 chunks.
13135 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13136
93a777e3
VS
131372011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13138
13139 Complete 64-bit division support.
13140
13141 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13142 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13143 * include/grub/misc.h (grub_divmod64): Rename to ...
13144 (grub_divmod64_full): ... this.
13145 (grub_divmod64): New inline function.
13146
a5102d94
VS
131472011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13148
13149 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13150
f3fb7b36
VS
131512011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13152
13153 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13154 performing the necessary test.
13155
9ac718b0
VS
131562011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13157
13158 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13159 (kfreebsd.elf): Likewise.
13160 (pc-chainloader.elf): Likewise.
13161 (ntldr.elf): Likewise.
13162
50d2cc5a
VS
131632011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13164
13165 Identify RAID by its UUID rather than (guessed) name.
13166
13167 * grub-core/disk/raid.c (ascii2hex): New function.
13168 (grub_raid_open): Accept mduuid/%s specification.
13169 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13170 (get_mdadm_uuid): ... this.
13171 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13172
e03f7bea
VS
131732011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13174
13175 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13176 to negative size.
13177
e74c3112
CW
131782011-04-13 Colin Watson <cjwatson@ubuntu.com>
13179
13180 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13181 btrfs subvolume.
13182 * util/grub.d/20_linux_xen.in: Likewise.
13183
78fa584f
CW
131842011-04-13 Colin Watson <cjwatson@ubuntu.com>
13185
13186 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13187 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13188
13189 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13190 Build a list of relevant visible mounts using the mnt_id and
13191 parent_mnt_id fields, and then scan that list at the end.
13192
9d5f8162
CW
131932011-04-12 Colin Watson <cjwatson@ubuntu.com>
13194
13195 * docs/grub.texi (normal): New section.
13196 (normal_exit): New section.
13197 (Embedded configuration): Add reference to normal.
13198 (GRUB only offers a rescue shell): Likewise.
13199 * docs/grub-dev.texi (Error Handling): Fix typo.
13200
09a9d66f
CW
132012011-04-12 Colin Watson <cjwatson@ubuntu.com>
13202
13203 * NEWS: Drop obsolete entry about probe-only btrfs support.
13204
0c676933
CW
132052011-04-12 Colin Watson <cjwatson@ubuntu.com>
13206
13207 * util/import_gcry.py: Fix typo.
13208
ec9f5e0d
VS
132092011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13210
13211 * NEWS: Add btrfs support.
13212
fe6b2cba
VS
132132011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
132142011-04-11 Colin Watson <cjwatson@ubuntu.com>
13215
13216 BtrFS support. Written by me (Vladimir) with important bugfixes and
13217 even more important testing by Colin.
13218
13219 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13220 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13221 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13222 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13223 mem_input_off and mem_input. All users updated to accept in-RAM input.
13224 (gzio_seek): New function.
13225 (test_zlib_header): Likewise.
13226 (grub_gzio_read): Likewise.
13227 (grub_zlib_decompress): Likewise.
13228 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13229 Accept partial and non-virtual mounts.
13230 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13231 avoid receiving /dev/dm-X as device.
13232 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13233 Handle bind and partial mounts.
13234 * grub-core/lib/crc.c: New file.
13235 * include/grub/deflate.h: Likewise.
13236 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13237 proto.
13238 * include/grub/lib/crc.h: New file.
13239
e745cf0c
VS
132402011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13241
13242 Implement automatic module license checking according to new GNU
13243 guidelines.
13244
13245 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13246 (grub_dl_load_core): Use grub_dl_check_license.
13247 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13248 (GRUB_MOD_LICENSE): Likewise.
13249 (GRUB_MOD_DUAL_LICENSE): Likewise.
13250 All modules updated.
13251
2a9bc016
CW
132522011-04-11 Colin Watson <cjwatson@ubuntu.com>
13253
13254 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13255 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13256 loaders.
13257 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13258
8a3bc88e
VS
132592011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13260
13261 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13262
af869a4a
VS
132632011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13264
13265 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13266 failed.
13267
9ee8d94f
VS
132682011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13269
13270 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13271 parenthesis in the middle of the filename.
13272
b01abe3e
VS
132732011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13274
13275 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13276 rather than trying to put initrd way too high.
13277 Reported by: Ryan Lortie <desrt@desrt.ca>
13278
335bda1e
VS
132792011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13280
13281 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13282 improperly removed string.
13283
5ca1a64d
VS
132842011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13285
13286 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13287 is_disk.
13288 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13289 (open_device) Likewise.
13290 (grub_util_biosdisk_close): Likewise.
d8ce9995 13291 Reported by: Mark Korenberg.
5ca1a64d 13292
cbac5b1e
AK
132932011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13294
13295 * util/grub-mkconfig_lib.in: Add missing quotes.
13296
088cdb65
CW
132972011-04-10 Colin Watson <cjwatson@ubuntu.com>
13298
13299 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13300 is NULL.
13301
8b8a81fa
VS
133022011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13303
13304 Dynamically count the number of lines for the lower banner.
13305
13306 * grub-core/normal/menu_entry.c (per_term_screen): New member
13307 num_entries.
13308 (print_down): Use num_entries.
13309 (update_screen): Likewise.
13310 (grub_menu_entry_run): Set num_entries.
13311 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13312 num_entries.
13313 (grub_print_message_indented): Move real part to ...
13314 (grub_print_message_indented_real): ... here. Additional argument
13315 dry_run.
13316 (draw_border): Additional argument num_entries.
13317 (print_message): Additional argument dry_run.
13318 (print_entries): Receive menu viewer data.
13319 (grub_menu_init_page): New argment num_entries.
13320 (menu_text_set_chosen_entry): Use num_entries.
13321 (grub_menu_try_text): Likewise.
13322 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13323 All users updated.
13324 (grub_ucs4_count_lines): New function.
13325 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13326 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13327 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13328 (grub_term_border_height): Likewise.
13329 (grub_term_num_entries): Likewise.
13330
277f955b
VS
133312011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13332
13333 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13334 Remove now unused string.
13335
536ce85a
CW
133362011-04-09 Colin Watson <cjwatson@ubuntu.com>
13337
13338 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13339 build system.
13340 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13341
13342 (Comment): Fix typo.
13343 (Getting started): General copy-editing.
13344 (Typical Development Experience): Likewise.
13345 (Error Handling): Likewise.
13346 (Video API): Likewise.
13347
2cf09e32
CW
133482011-04-09 Colin Watson <cjwatson@ubuntu.com>
13349
13350 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13351 throughout.
13352
1ec652f4
VS
133532011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13354
13355 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13356 directory.
13357
2c583728
CW
133582011-04-08 Colin Watson <cjwatson@ubuntu.com>
13359
13360 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13361 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13362 "development".
13363
d7a565e9
VS
133642011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13365
13366 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13367 grub_strcpy since the lines aren't necessarily 0-terminated.
13368
7c2e4909
VS
133692011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13370
13371 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13372 root on legacy.
13373
34c09785
VS
133742011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13375
13376 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13377 (GRUB_MOD_INIT): DEVICE isn't optional.
13378
6a6f8058
VS
133792011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13380
13381 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13382 word on new line if it's too long anyway. Fixes a hang.
13383
2e335e90
VS
133842011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13385
13386 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13387 const.
13388 * util/grub-setup.c (main): Reuse md device name if available.
13389 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13390 not GRUB name as argument.
13391 Based on patch by: Florian Wagner <fwagner>.
13392
10a7a867
VS
133932011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13394
13395 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13396 Place mbi on low memory for better compatibility.
13397
7a3d6cd9
VS
133982011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13399
13400 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13401
18dd6b47
VS
134022011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
134032011-04-08 Colin Watson <cjwatson@ubuntu.com>
13404
13405 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 13406 * conf/Makefile.common: Likewise.
18dd6b47 13407
3c0e3f14
VS
134082011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13409
f7148863
VS
13410 * grub-core/normal/menu.c: Add missing include.
13411
134122011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13413
13414 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 13415
6d1fa41f
MZ
134162011-04-08 Martin Zuther <mzuther@mzuther.de>
13417
13418 * util/grub-mkconfig.in: Ignore emacsen backup.
13419
478182a8
VS
134202011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13421
13422 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13423 on open.
13424 (grub_util_biosdisk_close): Likewise.
13425
72a89a54
VS
134262011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13427
13428 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13429 const attribute and use grub_isdigit.
13430
b5ebecfa
A
134312011-04-06 Andrey <dev_null@ukr.net>
13432
13433 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13434 gcc warning.
13435
7755f66e
VS
134362011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13437
13438 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13439 useful grub_dprintf's.
13440
461121ff
VS
134412011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13442
13443 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13444
2a961775
VS
134452011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13446
13447 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13448
adf594cc
VS
134492011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13450
13451 Output errors if theme loading failed.
13452
13453 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13454 grub_gfxterm_fullscreen on error paths to ...
13455 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13456 theme loading error.
13457
665900a3
VS
134582011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13461 space for older compilers.
13462 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13463
a562b479
VS
134642011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13465
13466 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13467 and report them as not RAID members since they are useless for GRUB.
13468 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13469
850e9373
VS
134702011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13471
13472 Increase LVM implementation robustness in order not to crash on
13473 configurations like pvmove. Previously code assumed that in some places
13474 only lvs or only pvs are used whereas it seems that they are used
13475 interchangeably.
13476
13477 * grub-core/disk/lvm.c (read_node): New function.
13478 (read_lv): Use read_node.
13479 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13480 Match volumes only at the end when all lvs are found. Take both
13481 pvs (first) and lvs (second) into account.
13482 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13483 mirror_* into node_*. All users updated.
13484 (grub_lvm_stripe): Merge this ...
13485 (grub_lvm_mirror): ... and this ...
13486 (grub_lvm_node): ... into this. All users updated.
13487
6f332153
VS
134882011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13489
13490 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13491 of function to allow further scanning for LVMs.
13492
829ea451
VS
134932011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13494
13495 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13496 on failed seek as it breaks open fd reusage.
13497
09ceb9a5
VS
134982011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13499
13500 * util/grub-install.in: Add a recommendation to use --recheck before
13501 reporting bugs.
13502
67e11623
VS
135032011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13504
13505 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13506 are obtained.
13507
caee5efd
VS
135082011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 GRUB developper manual based on existing Internals section and
13511 contributions by the various authors with active copyright assignment.
13512
13513 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13514 * docs/font_char_metrics.png: New file.
13515 * docs/font_char_metrics.txt: Likewise.
13516 * docs/grub-dev.texi: Likewise.
13517 * docs/grub.texi (Internals): Move from here ...
13518 * docs/grub-dev.texi: ... here.
13519
2cccc747
CW
135202011-04-01 Colin Watson <cjwatson@ubuntu.com>
13521
13522 Store the loopback device as data on loopback grub_disk structures,
13523 rather than the file it points to. This fixes use of freed memory
13524 if an existing loopback device is replaced.
13525
13526 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13527 disk->data, not dev->file.
13528 (grub_loopback_read): Adjust file assignment to match.
13529 Fixes Ubuntu bug #742967.
13530
186ae367
CW
135312011-04-01 Colin Watson <cjwatson@ubuntu.com>
13532
13533 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13534 when replacing an existing device.
13535
cfed2ad0
VS
135362011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13537
13538 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13539 memory corruptions.
13540
13541 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13542 unsigned.
13543 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13544 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13545 (grub_jfs_read_inode): Likewise.
13546 (grub_jfs_opendir): Likewise. Remove now useless casts.
13547 (grub_jfs_getent): Likewise.
13548 Make ino a grub_uint32_t rather than int.
13549 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13550 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13551 division and module with bit operations.
13552 (grub_jfs_find_file): Make ino a grub_uint32_t.
13553 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13554
05d2ed32
CW
135552011-04-01 Colin Watson <cjwatson@ubuntu.com>
13556
13557 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13558 warning. (This was in fact always initialised before use, but GCC
13559 wasn't smart enough to prove that.)
13560 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13561
91dc6073
VS
135622011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13563
13564 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13565 stack alignment.
13566 (efi_wrap_1): Likewise.
13567 (efi_wrap_2): Likewise.
13568 (efi_wrap_3): Likewise.
13569 (efi_wrap_4): Likewise.
13570 (efi_wrap_5): Likewise.
13571 (efi_wrap_6): Likewise.
13572 (efi_wrap_10): Likewise.
13573 Based on information by: Red Hat/Peter Jones.
13574
a8afc1d1
CW
135752011-03-31 Colin Watson <cjwatson@ubuntu.com>
13576
13577 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13578 set-but-not-used variable.
13579
a826cc7d
CW
135802011-03-31 Colin Watson <cjwatson@ubuntu.com>
13581
13582 * docs/grub.texi (Simple configuration): Be more explicit about
13583 GRUB_DEFAULT, and add an example.
13584 Reported by: Leslie Rhorer.
13585
875b67ba
CW
135862011-03-30 Colin Watson <cjwatson@ubuntu.com>
13587
13588 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13589 shell".
13590
fd7cd914
AS
135912011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13592
13593 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13594 * util/grub.d/20_linux_xen.in: Likewise.
13595
090b1b6a
VS
135962011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13597
13598 * util/grub.d/10_linux.in: Try alternative config filenames where
13599 we parse config file.
13600 * util/grub.d/20_linux_xen.in: Likewise.
13601
baad885c
AS
136022011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13603
13604 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13605 * util/grub.d/20_linux_xen.in: Likewise.
13606
241e41f5
VS
136072011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13608
13609 * grub-core/disk/raid.c (insert_array): Add few potentially
13610 useful grub_util_info.
13611 (grub_raid_register): Likewise.
13612
56445fb2
VS
136132011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13614
13615 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13616 Preserve partition number in mdadm code path.
13617
c871b1c6
VS
136182011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13619
13620 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13621 few potentially useful grub_util_info.
13622
5e631b4f
CW
136232011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13624
13625 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13626
2d5d0333
CW
136272011-03-30 Colin Watson <cjwatson@ubuntu.com>
13628
13629 * docs/grub.texi (default): Use @example rather than nested
13630 itemized lists to avoid breaking gendocs.
13631
3d7ed04e
CW
136322011-03-30 Colin Watson <cjwatson@ubuntu.com>
13633
13634 * docs/grub.texi (Future): Update.
13635
abf04200 136362011-03-30 Colin Watson <cjwatson@ubuntu.com>
13637
13638 * docs/grub.texi (Environment): New chapter.
13639 (Changes from GRUB Legacy): Link to "Environment block" section for
13640 details of limitations.
13641 (Simple configuration): Likewise. Link to documentation of gfxmode
13642 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13643 respectively.
13644 (Shell-like scripting): Note that normal variables are stored in the
13645 environment.
13646 (gettext): Link to documentation of lang and locale_dir.
13647 (list_env): New section.
13648 (load_env): New section.
13649 (save_env): New section.
13650
13651 (Reporting bugs): Fix typo.
13652
e1ad0edd
VS
136532011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13654
13655 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13656 the example.
13657
5d803174
VS
136582011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13659
13660 * grub-core/term/at_keyboard.c (set_scancodes)
13661 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13662
2a2da1d0
CW
136632011-03-30 Colin Watson <cjwatson@ubuntu.com>
13664
13665 * docs/grub.texi (Menu-specific commands): Remove some semantics
13666 that were true in GRUB Legacy but not in GRUB 2.
13667 (submenu): New section.
13668 (false): New section.
13669 (read): New section.
13670 (true): New section.
13671
a7527639
CW
136722011-03-30 Colin Watson <cjwatson@ubuntu.com>
13673
13674 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13675
136762011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
13677
13678 * docs/grub.texi (Simple configuration): Explain some of the
13679 current limitations of grub-mkconfig.
8a748df2 13680 Reported by: Leslie Rhorer.
e30af029 13681
fc858482
VS
136822011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13683
13684 Old macs search for boot.efi rather than for bootia32.efi.
13685
13686 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13687 * util/grub-mkrescue.in: Likewise.
13688 Suggested by: Peter Jones.
13689
e1eb511d
VS
136902011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13691
13692 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13693
70e75364
VS
136942011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13695
13696 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13697 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13698 (grub_lvm_mirror): New struct.
13699 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13700 (grub_lvm_iterate): Iterate only visible volumes.
13701 (grub_lvm_read): Factor out to ..
13702 (read_lv): ... this. Support mirrors.
13703 (grub_lvm_read): New wrapper function.
13704 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13705 stripped or mirrored.
13706
fc18f6a3
VS
137072011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13708
13709 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13710
5c650f4c
CW
137112011-03-29 Colin Watson <cjwatson@ubuntu.com>
13712
13713 * docs/grub.texi (loopback): New section.
13714
61d7156b
CW
137152011-03-29 Colin Watson <cjwatson@ubuntu.com>
13716
13717 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13718 removed -p option.
13719
994b8264
CW
137202011-03-29 Colin Watson <cjwatson@ubuntu.com>
13721
13722 * docs/grub.texi (BIOS installation): New section, partly based on
13723 previous text in other sections.
13724 (Installing GRUB using grub-install): Replace BIOS discussion with a
13725 cross-reference.
13726 (Images): Likewise.
13727
9e4d19e0
VS
137282011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13729
13730 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13731 [HAVE_DIOCGDINFO]: Add safety checks.
13732
a307c0b2
VS
137332011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13734
13735 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13736 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13737
b4db4f39
CW
137382011-03-29 Colin Watson <cjwatson@ubuntu.com>
13739
13740 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13741 real_sb->size is zero (e.g. RAID-0), get the disk size from
13742 real_sb->data_size instead.
13743 Fixes Ubuntu bug #743136.
13744
35e5f84c
VS
137452011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13746
13747 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13748 printf clauses for printing size and start.
13749
d2e29d81
VS
137502011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13751
13752 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13753 Reported and tested by: Timothy Nikkel.
13754
ed5587af
VS
137552011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13756
13757 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13758 (dirty_region_add_real): ... this.
13759 (dirty_region_add): Don't discard margin refresh when performing
13760 scheduled repaint.
13761
a1dc717c
VS
137622011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13763
13764 * grub-core/lib/relocator.c (allocate_regstart)
13765 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13766 terminals are capabple of malloc-free operation.
13767 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13768 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13769
9f3677d3
VS
137702011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13771
13772 * util/grub-setup.c: Copy the partition table zone if floppy support
13773 is disabled, even if no partition table is found.
13774
13775 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13776 during POST if an invalid partition table is contained in the PBR
13777 of the active partition when GRUB is installed to a partition.
13778
24148725
CW
137792011-03-28 Colin Watson <cjwatson@debian.org>
13780
13781 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13782 comment.
13783
f329eda7
CW
137842011-03-28 Colin Watson <cjwatson@debian.org>
13785
13786 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13787 to be specific about what kind of RAID device we're scanning for.
13788
c482ad98
SG
137892011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13790
13791 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13792 return freed string.
13793
5ee04984
VS
137942011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13795
13796 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13797
f4727da9
VS
137982011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13799
13800 Use libgeom on FreeBSD to detect partitions.
13801
13802 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13803 (grub-mkrelpath): Likewise.
13804 (grub-script-check): Likewise.
13805 (grub-editenv): Likewise.
13806 (grub-mkpasswd-pbkdf2): Likewise.
13807 (grub-fstest): Likewise.
13808 (grub-mkfont): Likewise.
13809 (grub-mkdevicemap): Likewise.
13810 (grub-probe): Likewise.
13811 (grub-setup): Likewise.
13812 (grub-ofpathname): Likewise.
13813 (grub-mklayout): Likewise.
13814 (example_unit_test): Likewise.
13815 (grub-menulst2cfg): Likewise.
13816 * grub-core/Makefile.core.def (grub-emu): Likewise.
13817 (grub-emu-lite): Likewise.
13818 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13819 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13820 define HAVE_DIOCGDINFO.
13821 (follow_geom_up) [FreeBSD]: New function.
13822 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13823 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13824 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13825 unconditionally of HAVE_DIOCGDINFO.
13826
82fe6c75
VS
138272011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13828
13829 Fix FreeBSD compilation problem.
13830
13831 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13832 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13833
4c6c9431
CW
138342011-03-24 Colin Watson <cjwatson@ubuntu.com>
13835
13836 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13837 Switch back to page zero before loading a kernel, since some kernel
13838 drivers expect that.
13839 Thanks to: Felix Kuehling.
13840
c7064d94
VS
138412011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13842
13843 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13844 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13845 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13846
3f71cded
VS
138472011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13848
13849 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13850 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13851
ef6de21a
VS
138522011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13853
13854 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13855 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13856 malloc is disabled.
13857
8bc66a2c
VS
138582011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13859
13860 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13861 for modules headers when counting the needed allocation size.
13862
5657722c
VS
138632011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13864
13865 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13866 if no ASCII character is found to prevent crash.
13867
41a85f55
AK
138682011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13869
13870 * grub-core/video/bitmap.c (match_extension): Ignore case.
13871
59e1e5f1
VS
138722011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13873
13874 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13875
bd4d051a
VS
138762011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13877
13878 * grub-core/script/parser.y: Declare "time" as valid argument.
13879
bae7fcc1
PJ
138802011-03-23 Peter Jones <pjones@redhat.com>
13881
13882 Fix incorrect assert failure reporting.
13883
13884 * grub-core/tests/example_functional_test.c (example_test): Add
13885 a failure comment.
13886 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13887 (failure_start): ...this. Check that malloc succeeded.
13888 Don't call xvasprintf. Return failure struct.
13889 (failure_append_vtext): New function.
13890 (failure_append_text): Likewise.
13891 (add_failure): Likewise.
13892 (grub_test_assert_helper): Likewise.
13893 * include/grub/test.h (grub_test_assert_helper): New declaration.
13894 (grub_test_assert): Macro rewritten.
13895
537dc9be
VS
138962011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13897
13898 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13899
fa3e01bf
VS
139002011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13901
13902 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13903
b1d28404
VS
139042011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13905
13906 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13907 into GRUB-style one.
13908
2e3e2e09
VS
139092011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13910
13911 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13912 error and not grub_errno.
13913 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13914
ed57e557
VS
139152011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13916
13917 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13918 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13919
d1611f01
VS
139202011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13921
13922 * grub-core/efiemu/i386/pc/cfgtables.c
13923 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13924 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13925 (grub_xnu_unlock): Likewise.
13926 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13927
7d4e39d6
VS
139282011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13929
13930 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13931 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13932 * grub-core/commands/hashsum.c (aliases): Likewise.
13933 * grub-core/commands/setpci.c (pci_registers): Likewise.
13934 * grub-core/disk/usbms.c (attach_hook): Likewise.
13935 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13936 (zio_checksum_table): Likewise.
13937 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13938 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13939 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13940 * grub-core/lib/relocator.c (leftovers): Likewise.
13941 (extra_blocks): Likewise.
13942 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13943 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13944 (modules_last): Likewise.
13945 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13946 (devices): Likewise.
13947 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13948 (modules_last): Likewise.
13949 * grub-core/normal/auth.c (users): Likewise.
13950 * grub-core/normal/context.c (initial_menu): Likewise.
13951 (current_menu): Likewise.
13952 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13953 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13954 (grub_serial_terminfo_input_template): Likewise.
13955 (grub_serial_terminfo_output_template): Likewise.
13956 (grub_serial_terminfo_input): Likewise.
13957 (grub_serial_terminfo_output): Likewise.
13958 (registered): Likewise.
13959 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13960
40fc4659
VS
139612011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13962
13963 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13964 grub_video_mode_type_t.
13965 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13966 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13967 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13968
2da48d28
VS
139692011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13970
13971 * util/grub-install.in: Correct the x86-64 name as x86_64.
13972
9b43bf39
CW
139732011-03-11 Colin Watson <cjwatson@ubuntu.com>
13974
13975 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13976 initial chunk read from the kernel always includes GRUB's multiboot
13977 header, which is now outside the first sector.
13978
be1a7ce0
CW
139792011-03-09 Colin Watson <cjwatson@ubuntu.com>
13980
13981 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13982 cached mmap_size, so that this works correctly when called multiple
13983 times.
13984 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13985
83a3c48d
CW
139862011-03-09 Colin Watson <cjwatson@ubuntu.com>
13987
13988 * docs/grub.texi (Simple configuration): Tidy up formatting.
13989
57d75699
SJ
139902011-03-07 Szymon Janc <szymon@janc.net.pl>
13991
13992 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13993 Set-but-not-used variable removed.
13994
028501a0
VS
139952011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13996
13997 Workaround yet another IEEE1275 bug.
13998
13999 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14000 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14001 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14002 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14003 is set.
14004 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14005 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14006
d998657d
VS
140072011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14008
14009 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14010 error.
14011
fee7cdd4
CW
140122011-02-11 Colin Watson <cjwatson@ubuntu.com>
14013
14014 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14015 empty, since in that case we can only generate either nothing or a
14016 syntactically invalid configuration file.
14017 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14018
97286eb5
CW
140192011-02-09 Colin Watson <cjwatson@ubuntu.com>
14020
14021 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14022 (Making a GRUB bootable CD-ROM): Likewise.
14023 (Invoking grub-mkrescue): New section.
14024 Reported by: Yann Dirson. Fixes Debian bug #612585.
14025
22b28eb3
CW
140262011-02-09 Colin Watson <cjwatson@ubuntu.com>
14027
14028 * util/grub-install.in: Remove unnecessary brackets from tr
14029 arguments.
14030 * util/grub.d/10_hurd.in: Likewise.
14031 * util/grub.d/10_kfreebsd.in: Likewise.
14032 * util/grub.d/10_linux.in: Likewise.
14033 * util/grub.d/20_linux_xen.in: Likewise.
14034 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14035
7e735e43
CW
140362011-02-08 Colin Watson <cjwatson@ubuntu.com>
14037
14038 * include/grub/file.h (not_easly_seekable): Rename to ...
14039 (not_easily_seekable): ... this. Update all users.
14040
800f1881
CW
140412011-01-28 Colin Watson <cjwatson@ubuntu.com>
14042
14043 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14044 grub-mkrescue.
14045
3281d3d6
VS
140462011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 * util/grub-mkimage.c (generate_image): Refuse to create the images
14049 bigger than the actual flash (512K) in Loongson machines. 512K is also
14050 the biggest chip supported by them.
14051
3533413c
VS
140522011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14053
14054 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14055
73ae4f4f
VS
140562011-01-22 Anthony DeRobertis <anthony@derobert.net>
14057
14058 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14059 super_offset field.
14060
37f4f608
VS
140612011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14062
14063 * util/grub-install.in: Ignore install device on platforms
14064 where it doesn't make sense. Always use UUIDs except on pc, efi and
14065 sparc64.
14066 Reported by: Daniel Kahn Gillmor.
14067
03a4ccb5
VS
140682011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14069
14070 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14071
ffc8f4d8
VS
140722011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14073
14074 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14075 (iterate_real): Don't rely on partition being non-NULL.
14076
80f23be7
VS
140772011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14078
14079 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14080 supported platforms. Put a compile time assert for this rather than
14081 generate a warning with 32-bit shift.
14082
5d4f4dd5
VS
140832011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14084
14085 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14086 logical expression more readable.
14087
e489601a
VS
140882011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14089
14090 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14091 even if some elements have a name.
14092 Reported by: Alexander GQ Gerasiov.
14093
96e0a6ea
CW
140942011-01-22 Colin Watson <cjwatson@ubuntu.com>
14095
14096 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14097 path unreadable if `grub-probe -t abstraction' fails, for example if
14098 memberlist fails on an LVM volume group.
14099 Reported by: Darius Jahandarie.
14100
81431e2b
CW
141012011-01-22 Colin Watson <cjwatson@ubuntu.com>
14102
14103 * docs/grub.texi (Simple configuration): Document
14104 GRUB_PRELOAD_MODULES.
14105
5e79d66a
CW
141062011-01-17 Colin Watson <cjwatson@ubuntu.com>
14107
14108 * .bzrignore: Remove nonexistent grub-pbkdf2.
14109
646ada34
VS
141102011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14111
14112 * configure.ac: Bump version to 1.99~rc1.
14113
04360337
VS
141142011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14115
14116 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14117 for safety.
14118
46c9db88
VS
141192011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14120
14121 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14122 module.
14123
141242011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
14125
14126 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14127
4fbf1852
VS
141282011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14129
14130 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14131 diskdevid.
14132
f1632d4d
VS
141332011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14134
14135 Fix compilation on cygwin.
14136
14137 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14138 -R .drectve on cygwin.
14139 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14140 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14141 (COND_CYGWIN): New condition.
14142 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14143 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14144 not @TARGET_OBJ2ELF@.
14145 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14146 type to determine whether aux is to be used.
14147
0b5e127b
VS
141482011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14149
14150 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14151 realpath'ed device string.
14152 Handle floppy (somewhat).
14153 Issue error in unknown case rather than garbage.
14154 Reported by: Axel Beckert.
14155
173b71e9
VS
141562011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14157
14158 * util/grub.d/00_header.in (load_video): Handle the case when no video
14159 drivers available.
14160 Thanks to: Axel Beckert.
14161
f8f479db
VS
141622011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14163
14164 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14165 variable. Fixes problem on big endian platforms.
14166
8fc0a245
VS
141672011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14168
14169 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14170 It doesn't work well there.
14171
b8494fbe
VS
141722011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14173
14174 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14175 warning.
14176 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14177 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14178 counter.
14179
b44a558c
VS
141802011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14181
14182 Use alias->path rather than buggy "canon".
14183
14184 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14185 (ofdisk_hash_add): New argument curcan. All users updated.
14186
51fa856c
CW
141872011-01-11 Colin Watson <cjwatson@ubuntu.com>
14188
14189 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14190
9da068a5
VS
141912011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14192
14193 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14194 loadmask before doing any calculations. Use correct type for offset.
14195 (grub_linux_load64): Likewise.
14196
86205c94
CW
141972011-01-11 Colin Watson <cjwatson@ubuntu.com>
14198
14199 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14200 with NULL.
14201 (console_grub_equivalences_unshift): Likewise.
14202 Reported by: Daniel Dehennin.
14203
4531a206
VS
142042011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14205
14206 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14207 (set_env_limn_ro): Likewise.
14208 (GRUB_MOD_INIT): Likewise.
14209 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14210 ARRAY_SIZE while on it.
14211 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14212 * grub-core/normal/context.c (grub_env_export): Move from here ...
14213 * grub-core/kern/env.c (grub_env_export): ... here.
14214 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14215 prefix.
14216 * grub-core/kern/main.c (grub_main): Export root and prefix.
14217 * include/grub/env.h (grub_env_export): Export.
14218 Reported by: Seth Goldberg.
14219
45146057
VS
142202011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14221
14222 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14223 Take into account space used by ELF sections and multiboot palette.
14224 Reported by: Grégoire Sutre.
14225
f093110b
VS
142262011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14227
14228 * BUGS: New file.
14229
3395fe52
VS
142302011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14231
14232 Pass more appropriate video id to Linux.
14233
14234 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14235 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14236 fill have_vga.
14237 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14238 shift params->lfb_size.
14239 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14240
c2fa6cbb
VS
142412011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14242
14243 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14244
b3ff6ff0
VS
142452011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14246
14247 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14248 separator and pass bootpath/devid even if only one of them is available.
14249 Reported by: Seth Goldberg.
14250
ae67942e
VS
142512011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14252
14253 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14254 implementations bug on them.
14255
14256 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14257 memory.
14258 (filter_memory_map): Likewise.
14259
d570097a
VS
142602011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14261
14262 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14263 Reported by: nebuchadnezzar.
14264
a508e776
VS
142652011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14266
14267 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14268 Reported by: nebuchadnezzar.
14269
dcb883b1
VS
142702011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 Submenu default support.
14273
14274 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14275 auto_boot. All users updated.
14276 Declared static.
14277 Handle chosen and default with submenus.
14278 (grub_menu_execute_with_fallback): Declared static.
14279 Don't notify failure if autobooted. Upper level does it.
14280 (menuentry_eq): New function.
14281 (get_entry_number): Use menuentry_eq.
14282 (show_menu): New parameter "autobooted". All users updated.
14283 (grub_show_menu): Likewise.
14284 * include/grub/normal.h (grub_show_menu): Likewise.
14285 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14286 (grub_menu_execute_with_fallback): Likewise.
14287
6fef99b4
VS
142882011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14289
14290 * util/grub-mklayout.c (usage): Update help text.
14291
47a77af5
VS
142922011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14293
14294 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14295
ce6bb3ee
VS
142962011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14297
14298 * util/grub-menulst2cfg.c (main): Trim the line.
14299
db87be2a
VS
143002011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14301
14302 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14303 (grub_machine_init): Don't check amount of low memory as reportedly
14304 INT 12h can be broken and if low memory is too low we wouldn't have
14305 gotten into grub_machine_init anyway.
14306
c49849cc
VS
143072011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14308
14309 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14310 (grub_machine_mmap_iterate): Take low memory into account
14311
b1969b30
VS
143122011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14313
14314 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14315 badfs.
14316 Reported by: TiCPU.
14317
cf0eaf13
VS
143182011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14319
14320 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14321 members errors.
14322
1f060f39
GS
143232011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14324
14325 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14326 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14327
a21e5672
GS
143282011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14329
14330 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14331 openbsd and netbsd types being in part_bsd module.
14332
c88172fa
VS
143332011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14334
14335 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14336 (_FILE_OFFSET_BITS): Likewise.
14337 Reported by: Seth Goldberg.
14338
53798c4b
GS
143392011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14340
14341 * configure.ac: Check for libdevmapper header.
14342
e7121b69
VS
143432011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14344
14345 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14346 avoid aliasing.
14347 (fzap_lookup): Likewise.
14348 (dnode_get): Likewise.
14349 (make_mdn): Likewise.
14350 (zfs_mount): Likewise.
14351 (fzap_iterate): Use temporary pointer to avoid aliasing.
14352 (grub_zfs_read): Likewise.
14353 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14354 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14355 pointers to avoid aliasing.
14356 (grub_cmd_xnu_kernel64): Likewise.
14357 (grub_xnu_load_driver): Likewise.
14358
fc836af9
VS
143592011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14360
14361 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14362 aliasing warning.
14363 (grub_cmd_terminal_output): Likewise.
14364 Reported and tested by: Grégoire Sutre.
14365
f9f37648
VS
143662011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14369 warning.
14370 Reported and tested by: Grégoire Sutre.
14371
ec1dfd63
VS
143722011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14373
14374 * configure.ac: Do CPU substitution even if it's specified explicitly.
14375 Reported and tested by: Alain Greppin.
14376
9462775a
VS
143772011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14380 Reported and tested by: Alain Greppin.
14381
0fd48e35
VS
143822011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14383
14384 Satisfy some bison versions need for inttypes.h.
14385
14386 * grub-core/lib/posix_wrap/inttypes.h: New file.
14387 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14388 (int16_t): Likewise.
14389 (int32_t): Likewise.
14390 (int64_t): Likewise.
14391 Reported and tested by: Alain Greppin.
14392
43f1bc83
VS
143932011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14394
14395 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14396 Silence spurious warning.
14397 Reported and tested by: Alain Greppin.
14398
64d1f041
SJ
143992011-01-07 Szymon Janc <szymon@janc.net.pl>
14400
14401 * docs/grub.texi (Support automatic decompression): Update with xz
14402 decompression support.
14403
25953e10
SJ
144042011-01-07 Szymon Janc <szymon@janc.net.pl>
14405
14406 Improve loaders' kernel command line handling.
14407
14408 * grub-core/lib/cmdline.c: New file.
14409 * include/grub/lib/cmdline.h: Likewise.
14410 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14411 grub_create_loader_cmdline to create kernel command line.
14412 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14413 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14414 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14415 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14416 (linux): Add lib/cmdline.c on common.
14417
e72d259f
VS
144182011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14419
14420 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14421 inopos might be unaligned.
14422
c0cf26da
VS
144232011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14424
14425 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14426 endian transformations.
14427 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14428 Based on report by: Doug Nazar.
14429
0ca09e6c
DN
144302011-01-07 Doug Nazar <nazard.michi@gmail.com>
14431
14432 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14433 array->members[i].start_sector.
14434 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14435
014b6806
VS
144362011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14437
14438 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14439 Reported and tested by: Grégoire Sutre.
14440
415502c2
CW
144412011-01-06 Colin Watson <cjwatson@ubuntu.com>
14442
14443 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14444 avoid causing test failures by clearing the screen.
14445
71b6a2b7
CW
144462011-01-06 Colin Watson <cjwatson@ubuntu.com>
14447
14448 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14449 Fix prefix check to handle the case where dir ends with a slash
14450 (most significantly, "/" itself).
14451 Reported by: Michael Vogt.
14452
b3f8d28a
VS
144532011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14454
14455 Run terminfo_cls on initing terminfo output to clear the screen and
14456 move the cursor to (0,0).
14457
14458 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14459 Call grub_terminfo_output_init.
14460 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14461 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14462 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14463
4c3e4f37
VS
144642011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14465
14466 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14467 only when needed.
14468
488f71f1
VS
144692011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14470
14471 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14472 CTRL.
14473
18a38098
VS
144742011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14475
14476 The E820 type 5 is BADRAM, not EXEC_CODE.
14477
14478 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14479 (GRUB_E820_BADRAM): New define.
14480 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14481 into reserved. Propagate BADRAM.
14482 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14483 (GRUB_E820_BADRAM): New define.
14484
9eae2084
VS
144852011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14486
14487 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14488 Ignore the memory post-4G.
14489 (grub_relocator_firmware_alloc_region): Additional debug statement.
14490
ebc71d28
VS
144912011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14492
14493 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14494 names.
14495 Reported by: David Pravec.
14496
446fa400
VS
144972011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14498
14499 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14500 BIOSes.
14501
a0159f37
VS
145022011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14503
14504 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14505 Prevent overflow.
14506 (grub_reed_solomon_recover): Likewise.
14507
e5146ca1
VS
145082011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14509
14510 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14511
145122011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
14513
14514 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14515 variable.
14516
5b1bdf12
CW
145172011-01-04 Colin Watson <cjwatson@ubuntu.com>
14518
14519 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14520 descriptions of extract_legacy_entries_source and
14521 extract_legacy_entries_configfile.
14522 Reported by: Seung Soo, Ha.
14523
99d925aa
CW
145242011-01-03 Colin Watson <cjwatson@ubuntu.com>
14525
14526 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14527 on devices that do not implement function 0.
14528
4af0504b
DV
145292011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14530
14531 * grub-core/fs/hfsplus.c: Make parent unsigned.
14532 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14533 overflows.
14534 (grub_hfsplus_cmp_extkey): Likewise
14535
469ee10a
VS
145362011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14537
14538 * util/grub-install.in: Correctly use bootloader_id and not
14539 GRUB_DISTRIBUTOR on efibootmgr line.
14540
323a8e9c
VS
145412011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14544
1b394975
IC
145452010-12-31 Ian Campbell <ijc@hellion.org.uk>
14546
14547 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14548 Xen and reorder menu item wording to make it clearer that this entry
14549 will launch Xen. Print separate messages when loading Xen and
14550 Linux.
14551
275bff5f
VS
145522010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14553
14554 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14555 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14556 loop in case of incorrect amiga partmap.
14557
307806cb
VS
145582010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14559
14560 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14561 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14562 Reported by:EHeM.
14563
b12b923e
VS
145642010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14565
14566 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14567 spurious warning.
14568 Reported by: crocket
14569
14b48a19
VS
145702010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14571
14572 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14573 Preload EFIemu.
14574 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14575
693db2df
VS
145762010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14577
14578 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14579 is loaded
14580 (grub_cmd_xnu_kextdir): Likewise.
14581 (grub_cmd_xnu_splash): Likewise.
14582
c7638645
VS
145832010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14584
14585 Avoid using Reed-Solomon with 0 redundancy.
14586
14587 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14588 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14589 or 0 redundancy.
14590 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14591 (grub_reed_solomon_recover): Likewise.
14592
25dd4780
VS
145932010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14594
14595 Don't use disk subsystem in freebsd_boot.
14596
14597 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14598 (freebsd_biosdev): Likewise.
14599 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14600 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14601
0b2db943
VS
146022010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14603
14604 Handling of files of unknown size is currently limited. They can't be
14605 used e.g. for initrd or modules. Moreover gzip handling of not
14606 easily seekable files is buggy. Disable unknown file size for now. May
14607 be inefficient but works.
14608
14609 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14610 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14611
5c408d0f
MP
146122010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14613
14614 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14615 floppy probe.
14616
190a011a
JD
146172010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14618
14619 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14620
022d01b8
SL
146212010-12-25 Shea Levy <shlevy>
14622
14623 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14624
c4855fdc
VS
146252010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14626
14627 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14628 Windows Server 2008.
14629 Reported by: Devin Giddings.
14630
0354b867
VS
146312010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14632
14633 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14634 writing an error message because of async power management.
14635 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14636 (grub_reboot): Likewise.
14637
ab66c69f
JU
146382010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14639
14640 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14641 keep unit tests from failing when they shouldn't.
14642
1426ef35
CW
146432010-12-21 Colin Watson <cjwatson@ubuntu.com>
14644
14645 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14646 previous patch increased the size of the RS code by 20 bytes (at
14647 least with gcc-4.4), so increase this by 20 bytes to match.
14648 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14649
20641b6b
CW
146502010-12-21 Colin Watson <cjwatson@ubuntu.com>
14651
14652 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14653 scratch area. Make sure to initialise chosen in standalone mode as
14654 well as non-standalone.
14655 Reported by: Robert Hooker and Andy Whitcroft.
14656 Tested by: Andy Whitcroft.
14657
d060ad60
CW
146582010-12-21 Colin Watson <cjwatson@ubuntu.com>
14659
14660 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14661 constructing a new unescaped string and passing it to grub_xputs in
14662 one go, rather than passing characters to grub_printf one at a time.
14663
b889cfad
CW
146642010-12-21 Colin Watson <cjwatson@ubuntu.com>
14665
14666 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14667 initialising utf16.
14668
4e01b6c8
CW
146692010-12-21 Colin Watson <cjwatson@ubuntu.com>
14670
14671 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14672 comment. Add an extra layer of quotation, requiring the output of
14673 this function to be used in a printf format string.
14674 (gettext_printf): New function.
14675 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14676 Extract translatable strings from here-documents and use a temporary
14677 variable instead, so that xgettext can find them.
14678 * util/grub.d/10_kfreebsd.in: Likewise.
14679 * util/grub.d/10_linux.in: Likewise.
14680 * util/grub.d/20_linux_xen.in: Likewise.
14681
14682 * po/grub.d.sed: New file.
14683 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14684 arguments. Set c-format flags on all strings extracted from
14685 util/grub.d/ (xgettext refuses to include these itself for strings
14686 it extracted from a shell file, but these really are c-format).
14687
5318fe98
VS
146882010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14689
14690 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14691 Avoid next pointing to nowhere.
14692
6c85b743
VS
146932010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14694
14695 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14696 rather than assuming than rootblock is exactly in the middle.
14697 (grub_affs_label): Likewise.
14698
a2a08a35
VS
146992010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14702 reserved_first_sector to 0.
14703 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14704 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14705 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14706
7059d1ec
VS
147072010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14708
14709 Fix handling of UTF-16 UDF labels.
14710
14711 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14712 (read_string): .. here.
14713 (grub_udf_label): Use read_string.
14714
30aff4cb
BC
147152010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14716
14717 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14718 editor under argument scope.
14719 Reported by: Jordan Uggla
14720
5cf86f4b
VS
147212010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14722
14723 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14724
32570200
CW
147252010-12-18 Colin Watson <cjwatson@ubuntu.com>
14726
14727 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14728 line, and other keys scroll an entire page (previous handling was
14729 for \r and \n to scroll a page and other keys to scroll two lines).
14730
e1dffcf2
VS
147312010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14732
14733 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14734 Set ptrdest to correct get_physical_target_address rather than
14735 incorrect get_virtual_current_address.
14736
b04298cf 147372010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14738
14739 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14740 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14741
5367ecd3
CW
147422010-12-10 Colin Watson <cjwatson@ubuntu.com>
14743
14744 * .bzrignore: Ignore grub-core/rs_decoder.S.
14745
1fb430f8
CW
147462010-12-10 Colin Watson <cjwatson@ubuntu.com>
14747
14748 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14749 .mo/.mo.gz opening sequence to ...
14750 (grub_mofile_open_lang): ... here.
14751 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14752 * util/grub.d/00_header.in (grub_lang): Include country part of
14753 locale.
14754 Reported by: Mario Limonciello.
14755
a94a6671
RM
147562010-12-09 Robert Millan <rmh@gnu.org>
14757
14758 * NEWS: Document addition of ZFS support.
14759
24b7938b
CW
147602010-12-04 Colin Watson <cjwatson@ubuntu.com>
14761
14762 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14763 rather than `/ 2', as the latter requires -Wa,--divide which would
14764 require bumping our minimum binutils version.
14765
bddc3ef6
BC
147662010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14767
14768 * util/grub-script-check.c (main): Print script line number on
14769 error.
14770
bf78d5b2
RM
147712010-12-01 Robert Millan <rmh@gnu.org>
14772
14773 * grub-core/fs/zfs/zfs.c: New file.
14774 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14775 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14776 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14777 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14778
14779 * include/grub/zfs/dmu.h: Likewise.
14780 * include/grub/zfs/dmu_objset.h: Likewise.
14781 * include/grub/zfs/dnode.h: Likewise.
14782 * include/grub/zfs/dsl_dataset.h: Likewise.
14783 * include/grub/zfs/dsl_dir.h: Likewise.
14784 * include/grub/zfs/sa_impl.h: Likewise.
14785 * include/grub/zfs/spa.h: Likewise.
14786 * include/grub/zfs/uberblock_impl.h: Likewise.
14787 * include/grub/zfs/vdev_impl.h: Likewise.
14788 * include/grub/zfs/zap_impl.h: Likewise.
14789 * include/grub/zfs/zap_leaf.h: Likewise.
14790 * include/grub/zfs/zfs.h: Likewise.
14791 * include/grub/zfs/zfs_acl.h: Likewise.
14792 * include/grub/zfs/zfs_znode.h: Likewise.
14793 * include/grub/zfs/zil.h: Likewise.
14794 * include/grub/zfs/zio.h: Likewise.
14795 * include/grub/zfs/zio_checksum.h: Likewise.
14796
14797 * Makefile.util.def: Build ZFS into libgrubmods.
14798 * grub-core/Makefile.core.def: Build zfs.mod.
14799
3f0f3831
SJ
148002010-11-30 Szymon Janc <szymon@janc.net.pl>
14801
14802 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14803 variable.
14804 * grub-core/commands/wildcard.c (match_files): Likewise.
14805
3a4253b2
RM
148062010-11-30 Robert Millan <rmh@gnu.org>
14807
14808 * grub-core/loader/i386/bsd.c
14809 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14810 whether kernel is loaded using grub_loader_is_loaded(), rather
14811 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14812 certain error conditions.
14813
8c317b27
RM
148142010-11-30 Robert Millan <rmh@gnu.org>
14815
c5c9cd3e
RM
14816 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14817 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 14818
49d3ab46
VS
148192010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14820
14821 Avoid using tricks for initialising endian variables.
14822
14823 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14824 Make const.
14825 (GRUB_MOD_INIT): Don't byte-swap.
14826 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14827 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14828 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14829 (grub_swap_bytes32_compile_time): Likewise.
14830 (grub_cpu_to_le32_compile_time): Likewise.
14831 (grub_cpu_to_le16_compile_time): Likewise.
14832
f420a804
VS
148332010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14834
14835 * util/grub-setup.c (setup): Stop recommending --force. People who
14836 understand the dangers of blocklists are able to find this option
14837 anyway and the ones who don't shouldn't use it anyway.
14838
4e7db17b
RM
148392010-11-26 Robert Millan <rmh@gnu.org>
14840
14841 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14842 Update all users.
14843
9be57a0d
CW
148442010-11-26 Colin Watson <cjwatson@ubuntu.com>
14845
14846 Fix LVM-on-RAID probing.
14847
14848 * util/grub-probe.c (probe): Remember which disk was detected as
14849 RAID (perhaps an LVM physical volume). Use that disk's raidname
14850 rather than that of the top-level disk.
14851
2c7859b3 148522010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 14853
d7647bb6
BC
14854 Fix cmdline argument quotes for setparams command of menuentry
14855 definitions.
7e623b0d
BC
14856
14857 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14858 quotes for arguments.
f866fe80 14859 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 14860 grub_strchrsub function instead.
f866fe80 14861
7955bea0 14862 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 14863
74f72a64
CW
148642010-11-24 Colin Watson <cjwatson@ubuntu.com>
14865
14866 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14867 effort by skipping "." and ".." entries up-front.
14868 Suggested by: Michael Lazarev.
14869
5a407278
CW
148702010-11-24 Colin Watson <cjwatson@ubuntu.com>
14871
14872 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14873 ldflags to ldadd, to fix link line ordering.
14874 (none_decompress): Likewise.
14875
3030d8ec
CW
148762010-11-24 Colin Watson <cjwatson@ubuntu.com>
14877
14878 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14879 platforms.
14880 (grub-emu-lite): Remove kern/emu/cache.S.
14881
b7fbac12
CW
148822010-11-23 Colin Watson <cjwatson@ubuntu.com>
14883
14884 * util/deviceiter.c (compare_devices): If the by-id link for a
14885 device couldn't be resolved, fall back to sorting by the by-id link
14886 rather than segfaulting.
14887 Reported and tested by: Daniel Mierswa.
14888
5225f328
CW
148892010-11-23 Colin Watson <cjwatson@ubuntu.com>
14890
14891 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14892 ldflags, to fix link line ordering.
14893
038b3ce8
CW
148942010-11-23 Colin Watson <cjwatson@ubuntu.com>
14895
14896 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14897 linkers are picky about this.
14898
bf16e98e
CW
148992010-11-23 Colin Watson <cjwatson@ubuntu.com>
14900
14901 * grub-core/Makefile.am (command.lst): Adjust sed expression
14902 ordering so that extended and priority commands aren't treated as
14903 ordinary commands.
14904
7242bab6
CW
149052010-11-23 Colin Watson <cjwatson@ubuntu.com>
14906
14907 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14908 Remove byte-swapping function calls, which are not valid in
14909 structure initialisers.
14910 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14911 non-const.
14912 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14913 grub_gpt_partition_type_bios_boot.
14914
14e8b279
CW
149152010-11-22 Colin Watson <cjwatson@ubuntu.com>
14916
14917 Fix test program build on GNU/kFreeBSD.
14918
14919 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14920 $(LIBNVPAIR)' library dependencies.
14921
e6f63338 149222010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
14923
14924 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14925
cf8ffc38
CW
149262010-11-22 Colin Watson <cjwatson@ubuntu.com>
14927
14928 * util/grub-install.in: Remove excessive quoting that broke
14929 installations to RAID devices.
14930
7f8b0fd7
VS
149312010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14932
14933 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14934 bootloader version instead of 0.
14935
dfd240b1
VS
149362010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14937
14938 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14939 warning.
14940
7b61e609
VS
149412010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14942
14943 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14944 retrieve the metadat sector if size isn't known.
14945 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14946
9dfe92d0
RM
149472010-11-18 Robert Millan <rmh@gnu.org>
14948
14949 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14950 with grub_memcmp().
14951
41cc919e
VS
149522010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14953
14954 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14955 arrow.
14956 Reported by: Jordan Uggla.
14957
1afcc914
VS
149582010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14959
14960 Make better UTF compliant.
14961
14962 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14963 sequences as incorrect.
14964 (grub_is_valid_utf8): Likewise.
14965 (grub_utf8_to_ucs4): Likewise.
14966 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14967 (grub_ucs4_to_utf8_alloc): Likewise.
14968 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14969
f1808884
VS
149702010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14971
14972 Make legacy_source behave like source.
14973
14974 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14975 grub_show_menu.
14976 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14977
24ec575b
CW
149782010-11-16 Colin Watson <cjwatson@debian.org>
14979
14980 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14981 (-Wunused implies -Wunused-parameter, but not vice versa).
14982
72b7c7aa
CW
149832010-11-16 Colin Watson <cjwatson@ubuntu.com>
14984
14985 * configure.ac: Make error messages less confusing by testing for
14986 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14987 accepted, but produces a diagnostic if something else is wrong).
14988
e98937aa
VS
149892010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14990
14991 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14992 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14993 (now unused).
14994 (grub_keyboard_controller_init)
14995 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14996 read the initial state since controller isn't inited yet.
14997
f6bbabc3
VS
149982010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14999
15000 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15001 allocate_regbeg may need to create new chunk header.
15002
22e7dbb2
VS
150032010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15004
15005 Fix quoting in legacy parser.
15006
15007 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15008 single quotes.
15009 (grub_legacy_parse): Likewise.
15010 Reported by: Jordan Uggla.
15011 Tested by: Jordan Uggla.
15012
03f80960
VS
150132010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15014
15015 Don't add -lgcc on i386 and x86_64.
15016
15017 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15018 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15019 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15020
779dc15b
VS
150212010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15022
15023 * configure.ac: Add -Wno-trampolines when supported.
15024
d20a3b37
MV
150252010-11-14 Modestas Vainius <modax@debian.org>
15026
15027 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15028 fakeraid.
15029
e5360933
GC
150302010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15031
15032 Add generic logical block size support for UDF.
15033
15034 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15035 (GRUB_UDF_BLKSZ): Removed.
15036 (struct grub_udf_data): New field "lbshift" to hold the logical block
15037 size of the file system in log2 format. All users updated.
15038 (sblocklist): Change type to unsigned.
15039 (grub_udf_mount): Change type of "sblklist" to unsigned.
15040 Move AVDP search before VRS recognition, because the latter requires
15041 knowledge of the logical block size, which is detected during the
15042 former.
15043 Detect and validate logical block size during AVDP search, adding
15044 support for block sizes 512, 1024 and 4096.
15045 Make VRS recognition independent of block size.
15046
cb0229c5
GC
150472010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15048
15049 Properly handle deleted files on UDF.
15050
15051 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15052 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15053 set.
15054
406858a8
GC
150552010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15056
15057 Support reading files larger than 2 GiB.
15058
15059 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15060 "offset" to grub_off_t.
15061 (grub_udf_read_file): Likewise for parameter "pos".
15062
130da6a7
VS
150632010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15064
15065 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15066 unavailable.
15067 (Simple configuration): Refer to Changes from GRUB Legacy about
15068 save_env availability.
15069
65e93f6b
VS
150702010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15071
15072 * util/grub-install.in: Ignore empty partition table detection
15073 instead of trying to include part_ module.
15074
1fd08bf1
VS
150752010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15076
15077 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15078 LVM on RAID support.
15079
de1a024f
VS
150802010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15081
15082 Properly define WORDS_BIGENDIAN in wrapped environments.
15083
15084 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15085 definition.
15086 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15087
15088 Reported by: Manoel Rebelo Abranches.
15089 Tested by: Manoel Rebelo Abranches.
15090
bc5dd0b9
VS
150912010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15092
15093 * util/grub-mkconfig.in: Fix quoting.
15094
58c184be
VS
150952010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15096
15097 Support big ext2 files.
15098
15099 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15100 (grub_ext2_read_block): Support triple indirect blocks.
15101 (grub_ext2_read_file): Use 64-bit types and read size_high.
15102 (grub_ext2_open): Read size_high.
15103 Reported by: Ximin Luo.
15104 Tested by: Manoel Rebelo Abranches.
15105
5f0c02b3
VS
151062010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15107
15108 * util/grub-install.in: Handle filenames containing spaces.
15109 Reported by: Jordan Uggla.
15110 Tested by: Jordan Uggla.
15111
4417aae6
VS
151122010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15113
15114 * util/grub-mkconfig.in (grub_script_check): New variable.
15115 Use grub_script_check instead of grub-script-check.
15116 Reported by: Barry Jackson.
15117
7625a68e
VS
151182010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15119
15120 * docs/grub.texi (menu): Correct the order.
15121 Reported by: D. Hugh Redelmeier.
15122
10001ac5
VS
151232010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15124
15125 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15126 jump.
15127
9c4cf53b
MRA
151282010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15129
10001ac5
VS
15130 * include/grub/elfload.h (grub_elf32_size): New parameter.
15131 All users updated.
9c4cf53b
MRA
15132 Return maximum segments alignment.
15133 (grub_elf64_size): Likewise.
15134 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15135 Return maximum segments alignment.
15136 (grub_elf64_size): Likewise.
15137 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
15138 (grub_linux_claimmap_iterate): New function. Uses the
15139 "available" property in the "memory" node for memory allocation
15140 for kernel in the PowerPC loader.
9c4cf53b
MRA
15141 (grub_linux_load32): Correctly find linux entry point offset.
15142 (grub_linux_load64): Likewise.
15143
d2bf06bf
RM
151442010-11-07 Robert Millan <rmh@gnu.org>
15145
15146 On mips-yeeloong, build with -march=loongson2f when this flag is
15147 available (GCC >= 4.4).
15148 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15149 `-march=mips3'.
15150 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15151 or otherwise add -march=mips3.
15152
898c99a2
BC
151532010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15154
87220a68
BC
15155 Suppress shell expansion on echo '*' and echo "*" like cases.
15156 Reported by: Jordan Uggla.
898c99a2
BC
15157
15158 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15159 string arguments before shell expansion.
15160 * tests/grub_cmd_echo.in: New testcases.
15161
4f9b406a
RM
151622010-11-07 Robert Millan <rmh@gnu.org>
15163
15164 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15165 transition.
15166
80c6d25e
VS
151672010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15168
15169 * grub-core/kern/emu/hostdisk.c
15170 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15171
4a1a0153
VS
151722010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15173
15174 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15175 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15176 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15177
34706ddc
VS
151782010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15179
15180 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15181
6972dea9
VS
151822010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15183
15184 * util/grub-install.in: Replace useless recomendation to pass
15185 --modules with a recomendation to report a bug.
15186
9c693bd6
VS
151872010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15188
15189 Properly register serial terminfo.
15190 Reported by: Jordan Uggla
15191
15192 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15193 const.
15194 (grub_serial_terminfo_output_template): Likewise.
15195 (grub_cmd_serial): Register "serial" with terminfo.
15196 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15197 grub_serial_terminfo_output.
15198
6c9e4c0c
RM
151992010-11-05 Robert Millan <rmh@gnu.org>
15200
15201 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15202 needed).
15203
b9b3839f
RM
152042010-11-05 Robert Millan <rmh@gnu.org>
15205
15206 On Yeeloong, pass machine type information to Linux.
15207
15208 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15209 (LOONGSON_MACHTYPE): New macro, set to
15210 "machtype=lemote-yeeloong-2f-8.9inches".
15211 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15212 additional argument to Linux.
15213
1a3aaff4
RM
152142010-11-04 Robert Millan <rmh@gnu.org>
15215
15216 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15217 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15218 (its SATA disks are detected as slaveless IDE master drives on
15219 kFreeBSD).
15220 Reported by Carsten Aulbert.
15221
a75f4f62
CW
152222010-11-02 Colin Watson <cjwatson@ubuntu.com>
15223
15224 * util/bin2h.c (main): Fix spelling error in generated output.
15225
33b4b0c6
GS
152262010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15227
15228 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15229
2b36fbf4
VS
152302010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15231
15232 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15233 vga= option is supplied.
15234
74aaf558
VS
152352010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15236
15237 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15238 * util/grub.d/10_kfreebsd.in: Likewise.
15239 * util/grub.d/10_linux.in: Likewise.
15240 * util/grub.d/20_linux_xen.in: Likewise.
15241
6428dec3
VS
152422010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15245 argument as an argument to no-argument option.
15246
f8729d98
VS
152472010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15248
15249 * util/grub.d/10_linux.in: Add missing load_video with explicit
15250 GRUB_GFXPAYLOAD_LINUX.
15251
89d68fa6
VS
152522010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15253
15254 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15255
3a1197cd
VS
152562010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15257
15258 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15259 elements with invlid index.
15260 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15261 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15262 members.
15263 * include/grub/raid.h (grub_raid_member): New struct.
15264 (grub_raid_array): Transform devices and start_sector into usage of
15265 grub_raid_member. All users updated
15266 (allocated_devs): New member.
15267
71574288
VS
152682010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15269
15270 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15271 is modified
15272
8d40ec65
BC
152732010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15274
15275 NetBSD build fix for getline function conflict from gnulib.
15276
15277 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15278 components that depend on gnulib headers.
15279 (libgrubmods.a): Renamed from earlier libgrub.a.
15280 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15281
95b9257e
VS
152822010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15283
15284 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15285 install rather than creating a broken install.
15286
26c53dc6
VS
152872010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15288
15289 * util/grub-setup.c (argp): Remove misleading example of installing to
15290 a partition.
15291
4171b3c5
VS
152922010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15293
15294 * util/grub-setup.c (setup): Clarify the error message.
15295
18568d18
VS
152962010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15297
15298 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15299
4f6a2e21
VS
153002010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15301
15302 * grub-core/kern/emu/misc.c
15303 (grub_make_system_path_relative_to_its_root)
15304 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15305
153062010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
15307
15308 * grub-core/kern/emu/misc.c
15309 (grub_make_system_path_relative_to_its_root): Revert r2882.
15310
e138c458
VS
153112010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15314 useless field head. All users updated.
15315 (free_subchunk): Correct handling of IN_REGION subchunk.
15316
0cbcdf0e
CW
153172010-10-22 Colin Watson <cjwatson@ubuntu.com>
15318
15319 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15320 (Supported kernels): Likewise.
15321
b65ea155
GS
153222010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15323
15324 Make mktemp invocations portable.
15325
15326 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15327 exit if mktemp fails.
15328 * tests/grub_script_blockarg.in: Likewise.
15329 * tests/partmap_test.in: Likewise.
15330 * tests/util/grub-shell-tester.in: Likewise.
15331 * tests/util/grub-shell.in: Likewise.
15332 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15333 * Makefile.am: Likewise, and chain shell commands with `&&'
15334 instead of ';'.
15335 * util/grub-mkrescue.in: Use the same explicit template as above, and
15336 exit if mktemp fails.
15337
05f43cdd
BC
153382010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15339
15340 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15341 Linux kernel, reported by Dennis Schridde.
15342
800e6a9b
SJ
153432010-10-17 Szymon Janc <szymon@janc.net.pl>
15344
15345 * grub-core/normal/auth.c (grub_auth_check_authentication):
15346 Set-but-not-used variable removed.
15347
d82df574
VS
153482010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15349
15350 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15351 32-bit linux protocol.
15352
7bced458
VS
153532010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15354
15355 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15356 cursor shape for sanity.
15357
5b027690
VS
153582010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15359
15360 * docs/grub.texi (Installation): Document buggy BIOS install.
15361
ba5f65cf
VS
153622010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15363
15364 * docs/grub.texi (Installation): Indent.
15365
fdf2ec9c
VS
153662010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15367
15368 * util/grub-setup.c (setup): New parameter allow_floppy.
15369 (arguments): New member allow_floppy.
15370 (argp_parser): Handle --allow-floppy.
15371 (main): Pass allow_floppy.
15372 * util/grub-install.in: New option --allow-floppy passed though to
15373 grub-setup.
15374
861dfd4c
VS
153752010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15376
15377 * util/grub-install.in: Handle partitionless disks.
15378
f77a8c24
VS
153792010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15380
15381 * util/grub-setup.c (setup): Don't clean blocklists before readability
15382 verfification.
15383
27d9ee32
VS
153842010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15385
15386 * docs/grub.texi (Installation): Document embedding zone. Remove
15387 obsolete grub-install example.
15388
6bdda8f8
SJ
153892010-10-16 Szymon Janc <szymon@janc.net.pl>
15390
15391 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15392 Set-but-not-used variable ifdef'ed.
15393 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15394 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15395 variable removed.
15396 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15397 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15398 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15399 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15400 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15401 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15402 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15403 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15404 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15405 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15406 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15407 Likewise.
15408
e19b016b
VS
154092010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15410
15411 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15412 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15413 enum value.
15414
6c8d3002
VS
154152010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15416
15417 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15418 synonym to _S5_. Needed for some DSDTs.
15419
c32b51c9
VS
154202010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15421
15422 Userspace ACPI parser debugging.
15423
15424 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15425 headers and add relevant defines. Don't include standard headers.
15426 (main) [GRUB_DSDT_TEST]: New function.
15427 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15428 Don't declare functions.
15429
fbfbeb39
VS
154302010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15431
15432 Remove dead grub_efi_mm_fini.
15433
15434 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15435 (ALLOCATED_PAGES_SIZE): Likewise.
15436 (MAX_ALLOCATED_PAGES): Likewise.
15437 (allocated_pages): Likewise.
15438 (grub_efi_allocate_pages): Don't record allocated pages.
15439 (grub_efi_free_pages): Likewise.
15440 (grub_efi_mm_init): Likewise.
15441 (grub_efi_mm_fini): Removed.
15442
65f7ed7c
VS
154432010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15444
15445 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15446 (grub_efi_mm_init): Take into account the memory map size increase.
15447
24977b44
VS
154482010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15449
15450 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15451 (serial_hw_put): Wait based on real time rather than port reads. Don't
15452 roken ports.
15453 * include/grub/serial.h (grub_serial_port): New field broken.
15454
1eb01cd2
RM
154552010-10-16 Robert Millan <rmh@gnu.org>
15456
15457 * grub-core/kern/emu/misc.c
15458 (grub_make_system_path_relative_to_its_root): Fix premature return
15459 when processing non-root ZFS filesystems.
5f8b440b 15460 Reported by Sergio Talens-Oliag.
1eb01cd2 15461
2d5fed60
RM
154622010-10-15 Robert Millan <rmh@gnu.org>
15463
15464 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15465 guarantee compressed ones are processed first.
15466
d0f4c1ea
VS
154672010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15468
15469 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15470 grub_efiemu_autocore.
15471
d87c681f
VS
154722010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15473
15474 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15475 rather than 0x1b.
15476 (grub_console_getkey): Use correct jae opcode rather than ja.
15477
219b3564
RM
154782010-10-12 Robert Millan <rmh@gnu.org>
15479
15480 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15481 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15482 variable. All references updated.
15483
15484 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15485
20c6bb7e
VS
154862010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15487
15488 Correctly distinguish mdraid flavours.
15489
15490 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15491 (insert_array): New argument raid.
15492 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15493 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15494 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15495
74baff84
VS
154962010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15497
15498 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15499 handling of special keys.
15500
3ef068df 155012010-10-02 Aleš Nesrsta <starous@volny.cz>
15502
c7980ad9
VS
15503 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15504 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 15505
a9455194 155062010-10-02 Aleš Nesrsta <starous@volny.cz>
15507
c7980ad9
VS
15508 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15509 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15510 users updated.
a9455194 15511 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 15512 Use right endpoint when querying descriptor.
a9455194 15513
441cfe65
VS
155142010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15515
15516 Clear out 0x80 color bit on EFI.
15517 Tested by: decoder
15518 Reported by: decoder and meta tech.
15519
15520 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15521 (grub_console_setcolorstate): Clear out 0x80 bit.
15522 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15523 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15524 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15525
bf26bcc4
VS
155262010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15527
15528 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15529 Set to "auto".
15530
6e3c515d
VS
155312010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15532
15533 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15534 mo_file after freeing.
15535
e6d983ba
VS
155362010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15539
74ccb5b5
VS
155402010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15541
15542 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15543 flags.
15544
17821956
VS
155452010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15546
15547 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15548 usage.
15549
ee74fa48
VS
155502010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15551
15552 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15553
15554 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15555 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15556 and terminfo.h when needed.
15557 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15558 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15559 (terminfo): Enable only on terminfokernel.
15560 (extcmd): Likewise.
15561 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15562 * include/grub/lib/arg.h: Likewise.
15563 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15564 incorrect usage of ->.
15565
aa438e68
VS
155662010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15567
15568 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15569 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15570
57994012
VS
155712010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15572
15573 Fix coreboot compilation.
15574
15575 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15576 Take VBE info into account even if only text is supported.
15577 (fill_vbe_info): Take into account the case when only VGA text
15578 is supported.
15579 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15580 on coreboot, multiboot and qemu.
15581
2a406611
VS
155822010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15583
15584 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15585 debug messages.
15586 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15587
d33613fc
VS
155882010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15589
15590 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15591 parameters.
15592
44a1b432
VS
155932010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15594
15595 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15596 if they were BSD-style.
15597
edde54e6
VS
155982010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15599
15600 * grub-core/boot/i386/pc/lnxboot.S: Replace
15601 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15602 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15603
b65830fa
VS
156042010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15605
15606 Write embedding zone using Reed-Solomon.
15607
15608 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15609 * grub-core/Makefile.am (rs_decoder.S): New target.
15610 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15611 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15612 (multiboot): Move to RS part.
15613 (post_reed_solomon): New label.
15614 (grub_boot_drive): Move to non-RS part since it's modified in memory
15615 on boot.
15616 Include rs_decoder.S.
15617 * grub-core/lib/reed_solomon.c: New file.
15618 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15619 New definition.
15620 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15621 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15622 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15623 * include/grub/partition.h (grub_partition_map): Change prototype of
15624 embed to allow returning additional sectors.
15625 * include/grub/reed_solomon.h: New file.
15626 * util/grub-setup.c (setup): Handle Reed-Solomon.
15627
0b4b227f
CW
156282010-09-28 Colin Watson <cjwatson@ubuntu.com>
15629
15630 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15631 i386 and x86-64 definedness tests.
15632
f772623b
YB
156332010-09-27 Yves Blusseau <blusseau@zetam.org>
15634
15635 Fix generation of kernel_syms.lst
15636
15637 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15638 ASM_PREFIX
15639
8e57a6ca
RM
156402010-09-26 Robert Millan <rmh@gnu.org>
15641
15642 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15643
15644 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15645 the pool is an array of devices, iterate through it and return the
15646 first device that passes a stat() test (instead of blindly returning
15647 the first one).
15648
f9130836
RM
156492010-09-26 Robert Millan <rmh@gnu.org>
15650
15651 Build fixes for GNU/kFreeBSD.
15652
15653 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15654 to programs that require ZFS conversion.
15655 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15656 kernels that don't have FLOPPY_MAJOR.
15657
96510faf
BC
156582010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15659
15660 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15661
449333eb
BC
156622010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15663
15664 Fix grub-emu build.
15665
15666 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15667 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15668 mdraid09 and mdraid1x.
15669
e1fd1939
CW
156702010-09-24 Colin Watson <cjwatson@ubuntu.com>
15671
15672 Re-enable grub-extras.
15673
15674 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15675 avoid confusing Automake. Run autogen only twice, once for the top
15676 level and once for grub-core. Add Makefile.util.def and
15677 Makefile.core.def from extra modules to the appropriate autogen
15678 invocations. If Makefile.common exists in an extra module, include
15679 it in both Makefile.util.am and grub-core/Makefile.core.am;
15680 similarly, include any Makefile.util.common file in Makefile.util.am
15681 and any Makefile.core.common file in grub-core/Makefile.core.am.
15682 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15683 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15684 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15685 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15686
15687 * gentpl.py (gvar_add): Turn GVARS into a set.
15688 (global_variable_initializers): Sort global variables on output.
15689 (vars_init): New function.
15690 (first_time): Likewise.
15691 (library): Ensure that non-global variable initialisations are
15692 emitted before the first time we emit code for a library block.
15693 Append to variables rather than setting them. Only emit
15694 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15695 each conditional path.
15696 (program): installdir() emits an Autogen macro, so must be passed to
15697 var_add rather than gvar_add.
15698 (data): Likewise.
15699 (script): Likewise.
15700 (rules): New function, centralising handling for different target
15701 types. Set up Guile association lists for first_time and vars_init,
15702 and send most output to a diversion so that variable initialisations
15703 can be emitted first.
15704 (module_rules): Use new rules function.
15705 (kernel_rules): Likewise.
15706 (image_rules): Likewise.
15707 (library_rules): Likewise.
15708 (program_rules): Likewise.
15709 (script_rules): Likewise.
15710 (data_rules): Likewise.
15711
15712 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15713
15714 * .bzrignore: Add contrib and grub-core/contrib. Remove
15715 grub-core/Makefile.gcry.am.
15716
1d12cf29
YB
157172010-09-24 Yves Blusseau <blusseau@zetam.org>
15718
15719 * grub-core/lib/LzFind.c: Add missing include.
15720 * grub-core/lib/LzmaEnc.c: Likewise.
15721 * grub-core/script/lexer.c: Likewise.
15722 * grub-core/script/yylex.l: Likewise.
15723 * util/grub-macho2img.c: Likewise.
15724 * util/grub-menulst2cfg.c: Likewise.
15725 * util/grub-mklayout.c: Likewise.
15726 * util/grub-mkpasswd-pbkdf2.c
15727 * util/grub-mkrelpath.c: Likewise.
15728 * util/resolve.c: Likewise.
15729
dd363028
BC
157302010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15731
15732 * Makefile.util.def (example_unit_test): Add
15733 grub-core/gnulib/libgnu.a.
15734
f5a109e2
GS
157352010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15736
15737 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15738
6d0fa83c
VS
157392010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15740
15741 Support xz compression on yeeloong.
15742
15743 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15744 * configure.ac: Check for LZMA.
15745 * grub-core/Makefile.core.def (xz_decompress): New target.
15746 (none_decompress): Likewise.
15747 * grub-core/boot/decompressor/minilib.c: New file.
15748 * grub-core/boot/decompressor/none.c: Likewise.
15749 * grub-core/boot/decompressor/xz.c: Likewise.
15750 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15751 * grub-core/kern/mips/cache_flush.S: Likewise.
15752 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15753 * grub-core/kern/mips/startup.S: Move first stage to ...
15754 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15755 nomacro.
15756 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15757 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15758 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15759 Allocate statically.
15760 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15761 Allocate statically or use scratch. Don't check CRC32.
15762 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15763 Allocate statically. Don't check CRC32.
15764 * include/grub/decompressor.h: New file.
15765 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15766 Removed.
15767 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15768 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15769 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15770 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15771 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15772 * util/grub-mkimage.c (grub_compression_t): New type.
15773 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15774 (image_target_desc): New field default_compression.
15775 (image_targets): Adjust yeeloong targets.
15776 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15777 (compress_kernel): New parameter comp.
15778 (generate_image): Likewise. Handle new compression case.
15779 (options): New option --compression
15780 (help): Likewise.
15781 (main): Handle new option.
15782
1b655af6
GS
157832010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15784
15785 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15786
8f03f0b5
CW
157872010-09-22 Colin Watson <cjwatson@ubuntu.com>
15788
15789 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15790 typo in __i386__ conditional.
15791
7835dfd3
VS
157922010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15793
15794 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15795 include.
15796
e255597e
VS
157972010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15798
6d0fa83c 15799 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
15800
15801 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15802 new tags as supported.
15803 (acpiv2_size): New function.
15804 (grub_multiboot_get_mbi_size): Take new tags into account.
15805 (grub_multiboot_make_mbi): Add new tags.
15806 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 15807
6cc14051 158082010-09-21 Aleš Nesrsta <starous@volny.cz>
15809
15810 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15811 Added missing configuration of USB device.
15812
df7769d8
CW
158132010-09-21 Colin Watson <cjwatson@ubuntu.com>
15814
15815 * grub-core/normal/menu_entry.c (run): Make sure we always return
15816 a value.
15817
b031012d
CW
158182010-09-21 Colin Watson <cjwatson@ubuntu.com>
15819
15820 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15821 NumberOfPages is UINT64 according to the UEFI specification, not
15822 UINTN. Fix printf format.
15823
174de8f3
CW
158242010-09-21 Colin Watson <cjwatson@ubuntu.com>
15825
15826 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15827 `err' to grub_usb_err_t.
15828 Reported and tested by: KESHAV P.R.
15829
d7dbe923
CW
158302010-09-21 Colin Watson <cjwatson@ubuntu.com>
15831
15832 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15833 tpart non-const, so that we can assign to it. (Since this is a
15834 typedef, the constness refers to the pointer rather than what it
15835 points to.)
15836
8d5e2af3
CW
158372010-09-21 Colin Watson <cjwatson@ubuntu.com>
15838
15839 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15840 $(top_srcdir)/grub-core/gnulib as well as
15841 $(top_builddir)/grub-core/gnulib.
15842 Reported by: KESHAV P.R.
15843
5c527783
CW
158442010-09-21 Colin Watson <cjwatson@ubuntu.com>
15845
15846 * util/grub-install.in: Fix the bootloader ID option to be
15847 consistently --bootloader-id, not --bootloader_id.
15848 Reported by: KESHAV P.R.
15849
d309a16e
CW
158502010-09-21 Colin Watson <cjwatson@ubuntu.com>
15851
15852 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15853 check hash checksum." consistently translatable.
15854
b830cd16
YB
158552010-09-21 Yves Blusseau <blusseau@zetam.org>
15856
15857 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15858 $(top_builddir).
15859
c4fe27a8
CW
158602010-09-21 Colin Watson <cjwatson@ubuntu.com>
15861
15862 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15863 (GRUB_MOD_INIT): Register sha1sum command.
15864 (GRUB_MOD_FINI): Unregister sha1sum command.
15865
a4c1d277
YB
158662010-09-21 Yves Blusseau <blusseau@zetam.org>
15867
15868 Keep boot and grub directory names in sync with utils scripts
15869
15870 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15871 * config.h.in: Add previous macros.
15872 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15873 * util/grub-install.in: Use $bootdir and $grubdir variables.
15874
4eff79d2
CW
158752010-09-21 Colin Watson <cjwatson@ubuntu.com>
15876
15877 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15878 convert partition names to disk names if the new `convert' parameter
15879 is set.
15880 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15881 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15882 disk in its own right. This can happen with Xen disk images.
15883
934d7e44
YB
158842010-09-21 Yves Blusseau <blusseau@zetam.org>
15885
15886 * util/grub-editenv.c: Update strings to avoid warnings when generating
15887 grub.pot file.
15888 * util/grub-setup.c: Likewise.
934d7e44 15889
df3367cc
VS
158902010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15891
15892 * configure.ac: Change version to 1.99~beta0.
15893
77a94e98
VS
158942010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15895
15896 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15897 Add BADRAM.
15898 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15899 Likewise.
15900 * include/multiboot.h: Resynced with specification.
15901 * include/multiboot2.h: Likewise.
15902
269004c1
CW
159032010-09-21 Colin Watson <cjwatson@ubuntu.com>
15904
15905 Fix po directory handling.
15906
15907 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15908 * grub-core/gnulib/Makefile.am: Import gettext module.
15909 * m4/gnulib-cache.m4: Likewise.
15910 * m4/gnulib-comp.m4: Likewise.
15911 * m4/gettext.m4: New file, from gnulib.
15912 * m4/glibc2.m4: Likewise.
15913 * m4/iconv.m4: Likewise.
15914 * m4/intdiv0.m4: Likewise.
15915 * m4/intl.m4: Likewise.
15916 * m4/intldir.m4: Likewise.
15917 * m4/intlmacosx.m4: Likewise.
15918 * m4/intmax.m4: Likewise.
15919 * m4/inttypes-pri.m4: Likewise.
15920 * m4/lcmessage.m4: Likewise.
15921 * m4/lib-ld.m4: Likewise.
15922 * m4/lib-link.m4: Likewise.
15923 * m4/lib-prefix.m4: Likewise.
15924 * m4/lock.m4: Likewise.
15925 * m4/nls.m4: Likewise.
15926 * m4/po.m4: Likewise.
15927 * m4/printf-posix.m4: Likewise.
15928 * m4/progtest.m4: Likewise.
15929 * m4/threadlib.m4: Likewise.
15930 * m4/uintmax_t.m4: Likewise.
15931 * m4/visibility.m4: Likewise.
15932 * po/Makefile.am: Remove.
15933 * po/Makefile.in.in: New file, from gettext.
15934 ($(DOMAIN).pot-update): Support POTFILES-shell.
15935 * po/Makevars: New file.
15936 * po/POTFILES-shell: Rename to ...
15937 * po/POTFILES-shell.in: ... this. Update.
15938 * po/POTFILES: Rename to ...
15939 * po/POTFILES.in: ... this. Update.
15940 * po/Rules-quot: New file, from gettext.
15941 * po/boldquot.sed: Likewise.
15942 * po/en@boldquot.header: Likewise.
15943 * po/en@quot.header: Likewise.
15944 * po/insert-header.sin: Likewise.
15945 * po/quot.sed: Likewise.
15946 * po/remove-potcdate.sin: Likewise.
15947
3e0fa5d0
VS
159482010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15949
15950 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15951
ade9bd66
VS
159522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15953
15954 * util/grub.d/20_linux_xen.in: Use submenus.
15955
fc55cc4c
VS
159562010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15957
15958 Support submenus.
15959
15960 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15961 parameter submenu. All users updated.
15962 * grub-core/normal/main.c (free_menu): Rename to ...
15963 (grub_normal_free_menu): ... this. Made global.
15964 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15965 if requested.
15966 * grub-core/normal/menu_entry.c (screen): New field submenu.
15967 (make_screen): Set submenu.
15968 (run): Open new context if requested.
15969 * include/grub/menu.h (grub_menu_entry): New field submenu.
15970 * include/grub/normal.h (grub_normal_free_menu): New proto.
15971
600cedf7
VS
159722010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15973
15974 Menu entries extractor.
15975
15976 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15977 variants.
15978 (GRUB_MOD_INIT): Register new variants.
15979 (GRUB_MOD_FINI): Unregister new variants.
15980 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15981 into grub_cmd_legacy_source.
15982 (grub_cmd_legacy_source): Implement extractor variants.
15983 (GRUB_MOD_INIT): Register new variants.
15984 (GRUB_MOD_FINI): Unregister new variants.
15985 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15986 as an extractor.
15987 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15988 search as an extractor.
15989 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15990 test as an extractor.
15991 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15992 as an extractor.
15993 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15994 (grub_env_new_context): New function.
15995 (grub_env_context_open): Likewise.
15996 (grub_env_extractor_open): Likewise.
15997 (grub_env_extractor_close): Likewise.
15998 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15999 grub_extractor_level.
16000 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16001 * include/grub/env.h (grub_env_extractor_open): New proto.
16002 (grub_env_extractor_close): Likewise.
16003 * include/grub/normal.h (grub_extractor_level): New external variable.
16004
7bda3a87
VS
160052010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16006
16007 Make cutmem accept a region specification.
16008 Suggested by: Samuel Thibault
16009
16010 * grub-core/mmap/mmap.c (parsemem): New function.
16011 (grub_cmd_cutmem): Handle new arguments.
16012
2ea57f88
VS
160132010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16014
16015 New command cutmem.
16016
16017 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16018 (GRUB_MOD_INIT): Register new command.
16019 (GRUB_MOD_FINI): Unregister new command.
16020
74342e31
VS
160212010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16022
16023 Support some annoying BSD and Minix subpartitions.
16024
16025 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16026 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16027 Properly handle concatenation.
16028 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16029 * grub-core/normal/completion.c (iterate_partition): Likewise.
16030 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16031 contain partition. All users updated.
16032 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16033 struct.
16034 (grub_openbsdlabel_partition_map): Likewise.
16035 (bsdlabel_partition_map_iterate): Rename to ..
16036 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16037 (bsdlabel_partition_map_iterate): New function.
16038 (netopenbsdlabel_partition_map_iterate): Likewise.
16039 (netbsdlabel_partition_map_iterate): Likewise.
16040 (openbsdlabel_partition_map_iterate): Likewise.
16041 (GRUB_MOD_INIT): Register new partmaps.
16042 (GRUB_MOD_FINI): Unregister new partmaps.
16043 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16044 (grub_partition_msdos_iterate): ... this. All users updated.
16045 Don't support embedding other than in a minix partition.
16046 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16047 proto.
16048 * include/grub/partition.h (grub_partition): New field msdostype.
16049 * util/grub-install.in: Handle openbsd and netbsd types being in
16050 part_bsd module.
16051
1e8d555b
VS
160522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16053
16054 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16055
16056 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16057 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16058 (mdraid09): ... this.
16059 (mdraid1x): New module.
16060 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16061 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16062
899d8af4
VS
160632010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16064
16065 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16066 vsprintf.
16067
40901acd
CW
160682010-09-20 Colin Watson <cjwatson@ubuntu.com>
16069
16070 * grub-core/commands/efi/lsefimmap.c: Correct header.
16071 * NEWS: Update.
16072
dfe3b247
CW
160732010-09-20 Colin Watson <cjwatson@ubuntu.com>
16074
16075 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16076 as printf format strings; the translations might contain '%' which
16077 could cause a crash.
16078 (main): Likewise.
16079 * util/grub-fstest.c (argp_parser): Likewise.
16080 * util/grub-setup.c (argp_parser): Likewise.
16081 (main): Likewise.
16082
3286a4b4
VS
160832010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16084
16085 Use argp in grub-fstest.
16086
16087 * util/grub-fstest.c: Don't include getopt.h.
16088 Include argp.h.
16089 (root): New variable.
16090 (args_count): Likewise.
16091 (nparm): Likewise.
16092 (num_disks): Likewise.
16093 (images): Likewise.
16094 (cmd): Likewise.
16095 (debug_str): Likewise.
16096 (args): Likewise.
16097 (options): Transformed to argp.
16098 (usage): Removed.
16099 (main): Split argument parsing into ...
16100 (argp_parser): ... this. Changed to argp format.
16101 (argp): New variable.
16102 (main): Use argp_parse.
16103
3dccbe4b
TG
161042010-09-20 Tristan Gingold <gingold@free.fr>
161052010-09-20 Robert Millan <rmh.grub@aybabtu.com>
161062010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16107
16108 * grub-core/commands/efi/lsefimmap.c: New file.
16109 * grub-core/Makefile.core.def (lsefimmap): New module.
16110 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16111
38c259a7
VS
161122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16113
16114 Pause the execution (10s max) if any errors are displayed so the user
16115 has a chance to see them.
16116
16117 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16118 (grub_print_error): Increment grub_err_printed_errors.
16119 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16120 execution if any errors were displayed.
16121 (show_menu): Remove old code for pause.
16122 * grub-core/normal/menu_entry.c (run): Likewise.
16123 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16124 users updated.
16125 (grub_normal_get_char_counter): Likewise.
16126 * include/grub/err.h (grub_err_printed_errors): New external variable.
16127 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16128
f218b09c
VS
161292010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16130
16131 Support multiboot VBE info.
16132
16133 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16134 Take VBE info into account.
16135 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16136 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16137 Call fill_vbe_info when appropriate.
16138 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16139 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16140 as supported.
16141 (grub_multiboot_get_mbi_size): Take new tags into account.
16142 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16143 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16144 Call fill_vbe_tag when appropriate.
16145 (grub_multiboot_make_mbi): Properly align tags.
16146 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16147 function.
16148 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16149 proto.
16150 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16151
a9cc5438
VS
161522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16153
16154 Suport manual terminal geometry specification.
16155
16156 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16157 Save state in grub_ofconsole_terminfo_output.
16158 (grub_ofconsole_term): Use grub_terminfo_getwh.
16159 (grub_ofconsole_getwh): Removed.
16160 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16161 (grub_serial_term): Use grub_terminfo_getwh.
16162 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16163 (options): New struct.
16164 (OPTION_*): New enum.
16165 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16166 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16167 width and height.
16168 (grub_terminfo_getwh): New proto.
16169 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16170
1a8fed20
VS
161712010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16172
16173 Handle legacy "terminal" command.
16174
16175 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16176 and FLAG_TERMINAL.
16177 (legacy_commands): Add terminal and title.
16178 (grub_legacy_parse): Handle terminal. Simplify title handling.
16179
41e9c57d
VS
161802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16181
16182 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16183 parameters overflow.
16184
61c874c5
CW
161852010-09-20 Colin Watson <cjwatson@ubuntu.com>
16186
16187 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16188 widthspec.h.
16189
16190 * docs/grub.texi (Shell-like scripting): Document `!'.
16191 (Network): Simplify using new i386-pc-pxe format. Mention
16192 grub-mknetdir.
16193
16194 * NEWS: Update.
16195
943682b4
CW
161962010-09-20 Colin Watson <cjwatson@ubuntu.com>
16197
16198 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16199 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16200 when needed.
16201
6d3d698d
CW
162022010-09-20 Colin Watson <cjwatson@ubuntu.com>
16203
16204 * grub-core/commands/efi/lsefisystab.c: Correct header.
16205 * grub-core/commands/efi/lssal.c: Likewise.
16206 * grub-core/commands/testload.c: Likewise.
16207
c982589f
CW
162082010-09-20 Colin Watson <cjwatson@ubuntu.com>
16209
16210 * util/grub-mkrescue.in: Add explicit root argument to --set to
16211 prevent the UUID being interpreted as an argument to --set (matches
16212 previous change to prepare_grub_to_access_device).
16213
a63c31b6
CW
162142010-09-20 Colin Watson <cjwatson@ubuntu.com>
16215
16216 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16217 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16218 the verbosity of later #ifs.
16219 (find_partition_start): Define this function on FreeBSD too.
16220 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16221 function.
16222 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16223 on FreeBSD.
16224
6439b8ee
YB
162252010-09-20 Yves Blusseau <blusseau@zetam.org>
16226
16227 * util/grub-editenv.c: Use argp instead of getopt.
16228
c5930ec8
YB
162292010-09-20 Yves Blusseau <blusseau@zetam.org>
16230
16231 * util/grub-setup.c: Use argp instead of getopt.
16232
15c69261
YB
162332010-09-20 Yves Blusseau <blusseau@zetam.org>
16234
16235 Use gnulib-tool to create gnulib source files.
16236
16237 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16238 grub-core/gnulib directories
16239 * .bzignore: Add **/.deps and autogenerated gnulib files
16240 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16241 of gnulib macros, add grub-core/gnulib/Makefile
16242 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16243 include m4 directory to aclocal.
16244 * Makefile.util.def: Remove direct compilation of gnulib source files
16245 and use the new grub-core/gnulib/libgnu.a.
16246 * build-aux/config.rpath: move config.rpath from top directory to
16247 build-aux
16248 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16249 in gnulib headers
16250 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16251 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16252 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16253 header.
16254 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16255 string.
16256
e511c9f5
YB
162572010-09-20 Yves Blusseau <blusseau@zetam.org>
16258
16259 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16260 grub-core/genmod.sh and grub-core/gensyminfo.sh
16261
c2dede05
BC
162622010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16263
16264 Add a test for echo command options.
16265
16266 * tests/grub_cmd_echo.in: New test.
16267 * Makefile.util.def: Rules for new test.
16268
c55f5018
SJ
162692010-09-20 Szymon Janc <szymon@janc.net.pl>
16270
16271 Remove crc.mod and move crc command to hashsum.mod.
16272 Remove lib/crc.c - users updated to use gcrypt implementation.
16273
16274 * grub-core/commands/crc.c: Removed.
16275 * grub-core/Makefile.core.def (crc): Module removed.
16276 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16277 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16278 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16279 * grub-core/lib/crc.c: Removed.
16280 * include/grub/lib/crc.h: Removed.
16281 * Makefile.util.def (crc): Remove lib/crc.c
16282 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16283 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16284 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16285 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16286 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16287 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16288
e0337366
VS
162892010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16290
16291 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16292
742f9232
VS
162932010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16294
16295 Split config.h for util and core.
16296
16297 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16298 (ADDR32): Likewise.
16299 (DATA32): Likewise.
16300 (BSS_START_SYMBOL): Likewise.
16301 (END_SYMBOL): Likewise.
16302 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16303 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16304 * config.h.in: New file.
16305 * configure.ac: Use config-util.h as config define file.
16306 Rename MACHINE into GRUB_MACHINE. All users updated.
16307 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16308 updated.
16309 (NESTED_FUNC_ATTR): Likewise.
16310 Substitue new variables.
16311 (COND_HAVE_ASM_USCORE): New conditional.
16312 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16313 (kernel_syms.lst): Use ASM_PREFIX.
16314 * grub-core/kern/emu/console.c: Include config-util.h.
16315 * grub-core/kern/emu/misc.c: Likewise.
16316 * grub-core/kern/emu/mm.c: Likewise.
16317 * include/grub/emu/misc.h: Likewise.
16318 * include/grub/libgcc.h: Likewise.
16319
39feb0e8
VS
163202010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16321
16322 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16323 constants usage.
16324 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16325 Fix GRUB_TERM_KEY_* constants usage.
16326 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16327
9af6dac3
VS
163282010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16329
16330 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16331 print pointer.
16332 * grub-core/bus/usb/uhci.c: Remove empty define.
16333 (grub_uhci_check_transfer): Add missing cast.
16334 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16335 print pointer.
16336 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16337 PRIuGRUB_SIZE.
16338 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16339
d6d94820
VS
163402010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16341
16342 * grub-core/Makefile.core.def (legacycfg): Add
16343 lib/i386/pc/vesa_modes_table.c on emu.
16344
3572f2b6
BC
163452010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16346
16347 Reduce number of temporary files generated by build system.
16348
16349 * grub-core/gencmdlist.sh: Removed.
16350 * grub-core/genfslist.sh: Removed.
16351 * grub-core/genhandlerlist.sh: Removed.
16352 * grub-core/genmodsrc.sh: Removed.
16353 * grub-core/genpartmaplist.sh: Removed.
16354 * grub-core/genparttoollist.sh: Removed.
16355 * grub-core/gentermiinallist.sh: Removed.
16356 * grub-core/genvideolist.sh: Removed.
16357
16358 * grub-core/genmod.sh.in: New file.
16359 * grub-core/gensyminfo.sh.in: New file.
16360
16361 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16362 * conf/Makefile.extra-dist: Update with new files.
16363 * gentpl.py: Remove rules related to unnecessary temporary files.
16364 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16365 and und-* files.
16366 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16367 genmod.sh scripts.
16368 * grub-core/bus/usb/uhci.c: Remove empty #define.
16369 * grub-core/genmoddep.awk: Updated with new syminfo format.
16370 * util/bash-completion.d/Makefile.am: Add config.log to
16371 CLEANFILES.
16372
c836b030
YB
163732010-09-19 Yves Blusseau <blusseau@zetam.org>
16374
16375 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16376
2f4e8053
BC
163772010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16378
16379 * util/grub-mkconfig.in: Check the config script for syntax errors
16380 before saving.
16381
75831c34
CW
163822010-09-19 Colin Watson <cjwatson@ubuntu.com>
163832010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16384
16385 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16386 platforms.
16387 * util/grub-install.in: Add EFI and IEEE1275 support.
16388 * util/i386/efi/grub-install.in: Removed.
16389 * util/ieee1275/grub-install.in: Likewise.
16390
eaf41b25
VS
163912010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16392
16393 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16394 (grub_cmd_cmosclean): Likewise.
16395 (GRUB_MOD_INIT): Register command cmosclean.
16396 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16397 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16398
1a9130dd
CPE
163992010-09-18 Carles Pina i Estany <carles@pina.cat>
164002010-09-18 Aleš Nesrsta <starous@volny.cz>
164012010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16402
16403 Add keyboard layouts support.
16404
16405 * Makefile.util.def (grub-mklayout): New file.
16406 (grub-kbdcomp): New script.
16407 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16408 Add keyboard_layouts.h.
16409 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16410 commands/boot.c on yeeloong.
16411 (keylayouts): New module.
16412 * grub-core/bus/usb/ohci.c
16413 * grub-core/bus/usb/uhci.c
16414 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16415 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16416 (attach_root_port): Likewise.
16417 (poll_nonroot_hub): Likewise.
16418 (grub_usb_poll_devices): Likewise.
16419 (detach_device): Close transfer.
16420 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16421 function.
16422 (grub_usb_bulk_setup_readwrite): Likewise.
16423 (grub_usb_bulk_finish_readwrite): Likewise.
16424 * grub-core/commands/keylayouts.c: New file.
16425 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16426 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16427 aliases.
16428 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16429 support scancode 2.
16430 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16431 * include/grub/keyboard_layouts.h: New file.
16432 * util/grub-mklayout.c: New file.
16433 * util/grub-kbdcomp.in: Likewise.
16434
a1d84a5e
VS
164352010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16436
16437 Unify memory types.
16438
16439 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16440 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16441 types.
16442 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16443 (grub_upper_mem): Likewise.
16444 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16445 * include/grub/memory.h (grub_memory_type_t): New enum.
16446 All users updated.
16447
9696382e
VS
164482010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16449
16450 * grub-core/Makefile.core.def (lsapm): New module.
16451 * grub-core/commands/i386/pc/lsapm.c: New file.
16452 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16453 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16454 Likewise.
16455 * include/grub/i386/pc/apm.h: New file.
16456 * include/multiboot.h (multiboot_apm_info): New struct.
16457
164582010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16459
16460 GRUB-legacy configuration file support.
16461
16462 * Makefile.util.def (grub-menulst2cfg): New util.
16463 * docs/man/grub-menulst2cfg.h2m: New file.
16464 * grub-core/Makefile.core.def (legacycfg): New module.
16465 * grub-core/commands/legacycfg.c: New file.
16466 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16467 (grub_normal_add_menu_entry): ... this.
16468 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16469 (grub_normal_set_password): ...this.
16470 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16471 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16472 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16473 * grub-core/lib/legacy_parse.c: New file.
16474 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16475 * include/grub/i386/pc/vesa_modes_table.h: New file.
16476 * include/grub/legacy_parse.h: Likewise.
16477 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16478 * util/grub-menulst2cfg.c: New file.
16479
bf8d1338
CW
164802010-09-17 Colin Watson <cjwatson@ubuntu.com>
16481
16482 * grub-core/kern/emu/hostdisk.c
16483 (convert_system_partition_to_system_disk): Initialise node.
16484
9c0bad2e
CW
164852010-09-17 Colin Watson <cjwatson@ubuntu.com>
16486
16487 * grub-core/kern/emu/hostdisk.c
16488 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16489 leak.
16490 Reported and based on patch by: Modestas Vainius.
16491
a939d135
CW
164922010-09-17 Colin Watson <cjwatson@ubuntu.com>
16493
16494 Fix DM-RAID probing with recent versions of device-mapper udev
16495 rules.
16496
16497 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16498 canonicalise device paths under /dev/mapper/.
16499 (convert_system_partition_to_system_disk): Compare the
16500 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16501 path, since device nodes under /dev/mapper/ are often symlinks.
16502
0f7ee3c9
YB
165032010-09-17 Yves Blusseau <blusseau@zetam.org>
16504
16505 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16506
10854d0d
YB
165072010-09-16 Yves Blusseau <blusseau@zetam.org>
16508
16509 * configure.ac: Avoid some annoying error messages if freetype-config
16510 program is not found.
16511
108538d8
CW
165122010-09-16 Colin Watson <cjwatson@ubuntu.com>
16513
16514 Support RAID on virtio devices, and others.
16515
16516 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16517 Rename to ...
16518 [__MINGW32__] (grub_find_device): ... this.
16519 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16520 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16521 reasonable default if dir is NULL.
16522 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16523 ...
16524 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16525 (grub_guess_root_device): Update callers.
16526 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16527
16528 * util/raid.c (grub_util_getdiskname): Remove.
16529 (grub_util_raid_getmembers): Use grub_find_device rather than
16530 grub_util_getdiskname.
16531
e5bfc130
CW
165322010-09-16 Colin Watson <cjwatson@ubuntu.com>
16533
16534 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16535 needing to be compiled with serial support.
16536 (ls): Indicate that multiple files are accepted.
16537 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16538 indicate that multiple files are accepted.
16539
be458ae2
CW
165402010-09-16 Colin Watson <cjwatson@ubuntu.com>
16541
16542 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16543 libgrub_a_init.c, and util/bash-completion.d/grub.
16544
cb731b5e
VS
165452010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16546
16547 * util/grub-setup.c (setup): Fix incorrect container semantics.
16548
35139e8a
VS
165492010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16550
16551 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16552 misusage.
16553 Reported by: J. Nick Terry
16554
e50fca4a
VS
165552010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16556
16557 Move embedding routines to partmap sources files.
16558
16559 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16560 [GRUB_UTIL]: New variable.
16561 (gpt_partition_map_iterate): Set part.parent.
16562 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16563 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16564 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16565 New function.
16566 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16567 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16568 (grub_partition_map) [GRUB_UTIL]: New field embed.
16569 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16570 (setup): Use ->embed.
16571
f00478b7
VS
165722010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16573
16574 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16575 function.
16576 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16577 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16578
2b94e3ff
YB
165792010-09-15 Yves Blusseau <blusseau@zetam.org>
16580
16581 Add function to get completions from usage.
16582
16583 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16584 completions from usage. Use LC_ALL=C to get options properly.
16585
2e04a006
VS
165862010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16587
16588 * grub-core/gnulib/basename-lgpl.c: Imported.
16589 * grub-core/gnulib/basename.c: Likewise.
16590 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16591 * grub-core/gnulib/dirname.c: Likewise.
16592 * grub-core/gnulib/dirname.h: Likewise.
16593 * grub-core/gnulib/stripslash.c: Likewise.
16594
5dcdf93a
VS
165952010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16596
16597 * grub-core/gnulib/error.c: Resynced.
16598 * grub-core/gnulib/getopt.c: Likewise.
16599 * grub-core/gnulib/getopt_int.h: Likewise.
16600 * grub-core/gnulib/regex.h: Likewise.
16601 * grub-core/gnulib/regex_internal.c: Likewise.
16602 * grub-core/gnulib/regex_internal.h: Likewise.
16603
014f47b7
SJ
166042010-09-15 Szymon Janc <szymon@janc.net.pl>
16605
16606 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16607 CRC calculations and validity checks.
16608 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16609 calculations.
16610
dd521a4a
SJ
166112010-09-15 Szymon Janc <szymon@janc.net.pl>
16612
16613 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16614
79c4eeb9
VS
166152010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16616
16617 Fix incorrect echo options handling.
16618 Reported by: Yves Blusseau.
16619
16620 * include/grub/command.h (grub_command_flags_t): New flags
16621 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16622 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16623 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16624
ed80f7d5
VS
166252010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16626
16627 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16628 users updated.
16629 (GRUB_COMMAND_FLAG_MENU): Likewise.
16630 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16631 (GRUB_COMMAND_FLAG_TITLE): Removed.
16632 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16633 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16634 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16635 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16636 (grub_command_flags_t): New enum. All users updated.
16637
5fe7620a
SG
166382010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16639
16640 Fix solaris compilation.
16641
16642 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16643 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16644 (grub-emu-list): Likewise.
16645
545b752f
VS
166462010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16647
16648 Remove deprecated root command.
16649
16650 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16651 updated.
16652
6c1a338c
VS
166532010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16654
16655 * util/i386/pc/grub-setup.c: Merge this ...
16656 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16657 * util/grub-setup.c: ... into this.
16658 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16659 New struct.
16660
166612010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16662
16663 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16664 possible.
16665
d2ea4551
VS
166662010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16669 allocate p.
16670
3c3b5040
VS
166712010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16672
16673 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16674 explicit root argument to set to prevent UUID to be interpreted as
16675 argument to set.
16676
b71c3fae
VS
166772010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16678
16679 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16680
275433e6
VS
166812010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16682
16683 Don't export grub_gate_a20.
16684
16685 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16686 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16687 to ...
16688 (grub_gate_a20): ... this. All users updated.
16689 * include/grub/i386/pc/init.h: Removed. All users updated.
16690
a5dbb1f1
VS
166912010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16692
16693 Create euro.pf2 which supports most European languages.
16694
16695 * Makefile.am (grubdata_DATA): Add euro.pf2.
16696 (euro.pf2): New target.
16697 (CLEANFILES): Add euro.pf2.
16698
62a747cb
VS
166992010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16700
16701 * configure.ac: Disable emu-usb by default to prevent inadvertent
16702 device takeover.
16703
608e43b1
VS
167042010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 Disable usbserial on grub-emu since our libusb code isn't good enough
16707 yet.
16708
16709 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16710 (usbserial_pl2303): Likewise.
16711 (usbserial_ftdi): Likewise.
16712
94564f81
VS
167132010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16714
16715 * include/grub/disk.h (grub_disk): Remove has_partitions.
16716 All users updated.
16717 * disk/loopback.c (grub_loopback): Remove has_partitions.
16718 All users updated.
16719 (options): Remove partitions. All users updated.
16720 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16721 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16722 actual partition table is found.
16723
3352800b
VS
167242010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16725
16726 Remove readability checks (too many false negatives).
16727
16728 * util/grub-install.in: Remove readability checks.
16729 * util/grub-mkconfig.in: Likewise.
16730 * util/grub.d/10_hurd.in: Likewise.
16731 * util/grub.d/10_kfreebsd.in: Likewise.
16732 * util/grub.d/10_linux.in: Likewise.
16733 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16734 way.
16735
2419f17a
VS
167362010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16737
16738 Enable acpi shutdown on all ACPI platforms.
16739
16740 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16741 on coreboo, multiboot and EFI.
16742 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16743 (grub_acpi_halt): Likewise.
16744 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16745 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16746 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16747 * grub-core/lib/i386/halt.c (grub_halt)
16748 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16749
0575c7c3
VS
167502010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16751
16752 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16753 context.
16754
54ac3cd1
VS
167552010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16756
16757 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16758 * grub-core/video/efi_uga.c: Likewise.
16759
b2a30ac5
VS
167602010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16761
16762 Filter devaliases and never open same device twice.
16763
16764 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16765 (last_ihandle): Likewise.
16766 (ofdisk_hash_ent): New member shortest.
16767 (ofdisk_hash_add): Add canonical path too.
16768 (scan): New function.
16769 (grub_ofdisk_iterate): Iterate over hashed entries.
16770 (compute_dev_path): Don't add :0.
16771 (grub_ofdisk_open): Don't really open the disk.
16772 (grub_ofdisk_close): Avoid closing unrelated disk.
16773 (grub_ofdisk_read): Implement reopen logic.
16774 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16775 New function.
16776 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16777 New proto.
16778
fb53b340
VS
167792010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16780
16781 Fix sparc64.
16782
16783 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16784 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16785 right address. Add sparc64_ieee1275_ldflags.
16786 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16787 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16788 to grub_host_to_target_addr
16789 (load_image): Likewise.
16790
f452b040
VS
167912010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16792
16793 * grub-core/normal/completion.c (complete_file): Handle device
16794 containing slash.
16795 Fix based on patch by Doug Nazar.
16796
9b5b2541
VS
167972010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16798
16799 grub-mknetdir script.
16800
16801 * Makefile.util.def (grub-mknetdir): New module.
16802 * tests/util/grub-shell.in: Support boot=net
16803 * util/grub-mknetdir.in: New file.
16804
9d2be652
VS
168052010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16806
16807 videoinfo on non-vbe.
16808
16809 * grub-core/Makefile.core.def (vbeinfo): Removed.
16810 (vbetest): Removed.
16811 (videoinfo): New module.
16812 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16813 * grub-core/commands/i386/pc/vbetest.c: Removed.
16814 * grub-core/commands/videoinfo.c: New file.
16815 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16816 specification.
16817 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16818 as vbetest.
16819 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16820 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16821 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16822 mode_number. New parameter mode. All users updated.
16823 (grub_video_gop_iterate): New function.
16824 (grub_video_efi_gop): New member iterate.
16825 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16826 (grub_vbe_set_video_mode): Remove setting useless fields.
16827 (vbe2videoinfo): New function.
16828 (grub_video_vbe_iterate): Likewise.
16829 (grub_video_vbe_setup): Use vbe2videoinfo.
16830 (grub_video_vbe_print_adapter_specific_info): New function.
16831 (grub_video_vbe_adapter): New fields iterate and
16832 print_adapter_specific_info.
16833 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16834 All users updated.
16835 (grub_video_mode_info): New field mode_number.
16836 (grub_video_adapter): New fields iterate and
16837 print_adapter_specific_info.
16838
179503f5
TG
168392010-09-13 Tristan Gingold <gingold@free.fr>
168402010-09-13 Robert Millan <rmh.grub@aybabtu.com>
168412010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16842
16843 * grub-core/commands/efi/lsefisystab.c: New file.
16844 * grub-core/commands/efi/lssal.c: Likewise.
16845 * grub-core/Makefile.core.def (lsacpi): New module.
16846 (lsefisystab): Likewise.
16847 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16848 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16849 (grub_efi_sal_system_table): New struct.
16850 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16851 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16852 (grub_efi_sal_system_table_platform_features): Likewise.
16853 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16854 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16855 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16856 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16857
cf9827de
VS
168582010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16859
16860 Support explicit user claim that a device is BIOS-visible.
16861
16862 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16863 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16864 * grub-core/kern/emu/hostdisk.c
16865 (convert_system_partition_to_system_disk): Support mdX.
16866 (find_system_device): New parameter add. All users updated.
16867 (grub_util_biosdisk_is_present): New function.
16868 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16869 proto.
16870
53f0eb1f
VS
168712010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16872
16873 Search hints support.
16874
16875 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16876 All users updated.
16877
b23ffd70
YB
168782010-09-13 Yves Blusseau <blusseau@zetam.org>
16879
16880 Bash completion script for util commands
16881
16882 * Makefile.am: Add util/bash-completion.d directory
16883 * configure.ac: Likewise.
16884 * util/bash-completion.d/Makefile.am: New file.
16885 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16886
d547dc28
VS
168872010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16888
16889 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16890 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16891 Reported by: Yves Blusseau.
16892
2fc8ccb9
VS
168932010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16894
16895 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16896 partition size and offset.
16897
d8a84076
VS
168982010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16899
16900 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16901
84fb3b3d
VS
169022010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16903
16904 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16905
768ec2e2
VS
169062010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16907
16908 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16909 (grub_xvasprintf): Likewise.
16910
4870900f
VS
169112010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16912
16913 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16914
faca6bec
VS
169152010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16916
16917 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16918 args ending with NULL.
16919
169202010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
16921
16922 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16923 pointer.
16924
3c70f225
SJ
169252010-09-11 Szymon Janc <szymon@janc.net.pl>
16926
16927 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16928
4df7996d
VS
169292010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16930
16931 Shutdown using ACPI.
16932
16933 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16934 * grub-core/commands/acpihalt.c: New file.
16935 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16936 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16937 (grub_acpi_halt): New proto.
16938 (GRUB_ACPI_SLP_EN): New const.
16939 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16940 (GRUB_ACPI_OPCODE_*): New enum.
16941 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16942
126b4c32
TG
169432010-09-11 Tristan Gingold <gingold@free.fr>
169442010-09-11 Robert Millan <rmh.grub@aybabtu.com>
169452010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16946
16947 * commands/lsacpi.c: New file.
16948 * grub-core/Makefile.core.def (lsacpi): New module.
16949 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16950 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16951 (grub_acpi_madt_entry_header): New struct.
16952 (grub_acpi_madt): Likewise.
16953 (grub_acpi_madt_entry_interrupt_override): Likewise.
16954 (grub_acpi_madt_entry_sapic): Likewise.
16955 (grub_acpi_madt_entry_lsapic): Likewise.
16956 (grub_acpi_madt_entry_platform_int_source): Likewise.
16957 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16958 (PRIuGRUB_UINT32_T): Likewise.
16959 (PRIxGRUB_UINT64_T): Likewise.
16960
1aa4fe88
VS
169612010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16962
16963 Implement loading palette on ieee1275_fb.
16964
16965 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16966 (have_setcolors): Likewise.
16967 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16968 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16969 (grub_video_ieee1275_set_palette): Implement.
16970
25761e13
VS
169712010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
169722010-09-11 Colin Watson <cjwatson@ubuntu.com>
16973
16974 * util/grub-install.in (grub_partition): New variable.
16975 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16976 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16977 Fixes a bug reported by Yves Blusseau.
16978
050abaea
VS
169792010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16980
16981 Fix emu on mipsel.
16982
16983 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16984 =grub_cpu_flush_cache on all mips and not only yeeloong.
16985 * configure.ac (COND_mips): New conditional.
16986 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16987 platforms.
16988 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16989 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16990 [GRUB_LINKER_HAVE_INIT]: New function.
16991 (grub_emu_post_init): Likewise.
16992 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16993 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16994 * include/grub/cache.h (_mips): Include mips/cache.h.
16995 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16996 LVM and RAID prototypes.
16997 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16998 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16999 function.
17000
5ed7d816
CW
170012010-09-10 Colin Watson <cjwatson@ubuntu.com>
17002
17003 * util/grub-install.in: Don't try to verify core.img until after
17004 running grub-mkimage to create it.
17005
90367e04
RM
170062010-09-10 Robert Millan <rmh@gnu.org>
17007
17008 * util/grub.d/10_hurd.in: Add misc readability checks.
17009 * util/grub.d/10_kfreebsd.in: Likewise.
17010 * util/grub.d/10_linux.in: Likewise.
17011
c452fa66
CW
170122010-09-10 Colin Watson <cjwatson@ubuntu.com>
17013
17014 * util/grub-install.in: ${imgext} won't be defined here until the
17015 install branch is merged. For the meantime, only verify core.img on
17016 i386-pc and sparc64-ieee1275 platforms.
17017
c38fe9f4
RM
170182010-09-10 Robert Millan <rmh@gnu.org>
17019
17020 Solaris support in grub_find_zpool_from_dir(). Thanks
17021 Seth Goldberg for referring to getextmntent() facility.
17022
17023 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17024 `sys/mkdev.h'.
17025 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17026 `<sys/mnttab.h>'.
17027 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17028 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17029 method for finding zpool name.
17030
905f7773
CW
170312010-09-10 Colin Watson <cjwatson@ubuntu.com>
17032
17033 grub-fstest needs the host and hostfs modules while other utilities
17034 actively require those modules to be absent, so grub-fstest needs
17035 its own initialisation and finalisation code.
17036
17037 * Makefile.am (grub_fstest.pp): New target.
17038 (grub_fstest_init.lst): Likewise.
17039 (grub_fstest_init.c): Likewise.
17040 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17041
fb90b546
RM
170422010-09-10 Robert Millan <rmh@gnu.org>
17043
17044 * configure.ac: Check for `struct statfs.f_fstypename' and
17045 `struct statfs.f_mntfromname'.
17046
17047 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17048 kFreeBSD-specific code.
17049
66d4bea5
RM
170502010-09-10 Robert Millan <rmh@gnu.org>
17051
17052 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17053 on ZFS. Now non-main filesystems are supported as / too.
17054
b6a690ee
CW
170552010-09-09 Colin Watson <cjwatson@ubuntu.com>
17056
17057 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17058 and grub-core/disk/host.c to ...
17059 (grub-fstest): ... here. Having the host disk implementation
17060 present confuses grub-probe and other utility programs.
17061
17062 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17063 when writing to a file, not when writing to stdout.
17064
8901b00c 170652010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17066
17067 * tests/partmap_test.in: New test for partitions.
17068 * Makefile.util.def: Rules for new test.
17069
7bf45fdd
RM
170702010-09-09 Robert Millan <rmh@gnu.org>
17071
17072 * util/grub-probe.c (probe): Fix a pair of unhandled error
17073 conditions.
17074
4dfbc574
RM
170752010-09-09 Robert Millan <rmh@gnu.org>
17076
17077 Basic Btrfs support (detection and UUID).
17078
17079 * grub-core/fs/btrfs.c: New file.
17080 * Makefile.util.def (library): Register btrfs.c.
17081 * grub-core/Makefile.core.def: Likewise.
17082
6b8e78ae
RM
170832010-09-08 Robert Millan <rmh@gnu.org>
17084
17085 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17086 with (optional) parameters to specify device and relative path.
17087 * util/grub-install.in: Use is_path_readable_by_grub() to
17088 verify readability of a few critical files.
17089 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17090 verify readability of grub.cfg.new.
17091
27f21a8b
VS
170922010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17093
17094 Split minix.mod into minix.mod and minix2.mod.
17095
17096 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17097 * grub-core/Makefile.core.def (minix2): New module.
17098 * grub-core/fs/minix.c: Use definitions instead of runtime version
17099 checking.
17100 * grub-core/fs/minix2.c: New file.
17101
c0e53ea5
YB
171022010-09-08 Yves Blusseau <blusseau@zetam.org>
17103
17104 Add new --boot-directory option to replace --root-directory
17105
17106 * util/grub-install.in: Add new --boot-directory option
17107 * util/grub-reboot.in: Likewise.
17108 * util/grub-set-default.in: Likewise.
17109
b9fe6ea2
YB
171102010-09-08 Yves Blusseau <blusseau@zetam.org>
17111
17112 * util/grub-mkconfig.in: Use new variable.
17113
d87aedff
YB
171142010-09-08 Yves Blusseau <blusseau@zetam.org>
17115
17116 * configure.ac: Define some useful variables.
17117
e55e8495
VS
171182010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17119
17120 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17121 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17122 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17123 Use terminfo and don't use cursor-on/cursor-off unless it's known
17124 to work.
17125 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17126 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17127
6fa6d675
CW
171282010-09-08 Colin Watson <cjwatson@ubuntu.com>
17129
17130 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17131 starts with "(,", fill the drive containing the loaded image in
17132 between those two characters, but expect that a full partition
17133 specification including partition map names will follow.
17134
92f2aef0
RM
171352010-09-08 Robert Millan <rmh@gnu.org>
17136
17137 * configure.ac: Remove `--enable-grub-fstest' option.
17138 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17139
17140 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17141 `grub-fstest' instead of `grub-probe' for readability verification.
17142 * util/grub-probe.c (probe): Remove readability verification kludge.
17143
99fd620d
RM
171442010-09-08 Robert Millan <rmh@gnu.org>
17145
17146 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17147 initializing `GRUB_FS'.
17148
058e30ac 171492010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17150
17151 Not command (!) support to GRUB script.
17152
17153 * tests/grub_script_not.in: New test.
17154 * Makefile.util.def: Rules for new test.
17155
17156 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17157 ! command as a special case.
17158 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17159
b61d05ed 171602010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17161
058e30ac 17162 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17163 grub_free.
b61d05ed 17164
4d69c786 171652010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17166
17167 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17168
aa3119c4 171692010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17170
17171 * docs/grub.texi (Shell-like scripting): Documentation for break,
17172 continue, shift and return commands.
17173
db0f7e3d
VS
171742010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17175
17176 Rename CD-ROM to cd on BIOS.
17177
17178 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17179 "cd".
17180 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17181
88b87c93
VS
171822010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17183
17184 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17185 * util/grub-probe.c (main): Likewise.
17186 * util/i386/pc/grub-setup.c (main): Likewise.
17187 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17188 Reported and debugged by: alexxy
17189
294f324d
VS
171902010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17191
17192 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17193 diagnostic info.
17194
d7ee3441
JS
171952010-09-05 Jo Shields <directhex@apebox.org>
17196
17197 * util/grub.d/30_os-prober.in: Add missing classes.
17198
d7e06c1f
VS
171992010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17200
17201 * docs/grub.texi (Theme file format): Document new position format.
17202
fc157e53
VS
172032010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17204
17205 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17206 a table. Use @code instead of @verbatim.
17207
506e9a1c
CB
172082010-09-05 Colin D Bennett <colin@gibibit.com>
17209
17210 Gfxmenu documentation.
17211
17212 * docs/grub.texi (Theme file format): New chapter.
17213
f0aff67c
SJ
172142010-09-05 Szymon Janc <szymon@janc.net.pl>
17215
17216 * grub-core/Makefile.core.def (xzio): New module.
17217 * grub-core/io/xzio.c: New file.
17218 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17219 * grub-core/lib/xzembed/xz_config.h: Likewise.
17220 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17221 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17222 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17223 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17224 * grub-core/lib/xzembed/xz_private.h: Likewise.
17225 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17226 * include/grub/file.h (grub_file_filter_id): New compression filter
17227 GRUB_FILE_FILTER_XZIO.
17228
82a85062
VS
172292010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17230
17231 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17232 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17233 size.
17234
3579415d
VS
172352010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17236
17237 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17238 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17239
5124ae6d
VS
172402010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17241
17242 Uncompressed checksum support.
17243
17244 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17245 (check_list): New parameter uncompress.
17246 (grub_cmd_hashsum): Handle --uncompress.
17247
9aadb3d1
VS
172482010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17249
17250 Reintroduce testload.
17251
17252 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17253 from here ...
17254 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17255 (GRUB_MOD_INIT): New function.
17256 (GRUB_MOD_FINI): Likewise.
17257 * grub-core/Makefile.core.def (testload): New module.
17258
a17792c3
SJ
172592010-09-05 Szymon Janc <szymon@janc.net.pl>
17260
17261 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17262 (uint8_t): New type.
17263 (uint16_t): Likewise.
17264 (uint32_t): Likewise.
17265 (uint64_t): Likewise.
17266
b81e40a3
SJ
172672010-09-05 Szymon Janc <szymon@janc.net.pl>
17268
17269 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17270
fc2ef117
VS
172712010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17272
17273 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17274 Made static.
17275 (grub_gzfile_open): Removed. All users updated.
17276 (GRUB_MOD_INIT): New function.
17277 (GRUB_MOD_FINI): Likewise.
17278 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17279 (grub_file_filters_enabled): Likewise.
17280 (grub_file_open): Handle filters.
17281 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17282 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17283 * include/grub/file.h (grub_file_filter_id_t): New type.
17284 (grub_file_filter_t): Likewise.
17285 (grub_file_filters_all): New extern variable.
17286 (grub_file_filters_enabled): Likewise.
17287 (grub_file_filter_register): New inline function.
17288 (grub_file_filter_unregister): Likewise.
17289 (grub_file_filter_disable): Likewise.
17290 (grub_file_filter_disable_compression): Likewise.
17291 * include/grub/gzio.h: Removed.
17292
35ee15e0
BC
172932010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17294
17295 Filename expansion support for wildcards in GRUB script.
17296
17297 * tests/grub_script_expansion.in: New test.
17298 * Makefile.util.def: Rule for new test.
17299
17300 * grub-core/commands/wildcard.c: New file, implements filename
17301 expansion support for GRUB script.
17302 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17303 * grub-core/script/argv.c: Cosmetic changes.
17304 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17305 Refactored to perform wildcard expansion on arguments.
17306 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17307 struct.
17308
17309 * tests/util/grub-shell.in: Fix quoting for read input.
17310
5f0c4aca
BC
173112010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17312
17313 Support for updating environment variables with matched substrings
17314 of regexp.
17315
17316 * tests/grub_cmd_regexp.in: New test.
17317 * Makefile.util.def: Rule for new test.
17318
17319 * grub-core/commands/regexp.c: New option -s to update environment
17320 variables with regexp matches.
17321
3759a35f
SJ
173222010-09-04 Szymon Janc <szymon@janc.net.pl>
17323
17324 * include/grub/file.h (grub_file): New member not_easly_seekable.
17325 (grub_file_seekable): New inline function.
17326 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17327 easily seekable.
17328 (grub_gzio_open): Set not_easly_seekable.
17329 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17330 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17331
ed8c6dec
BC
173322010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17333
17334 Support for options to appear multiple times on cmdline.
17335
17336 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17337 * grub-core/commands/extcmd.c: Support for repeatable option.
17338 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17339 repeatable option support.
17340
17341 Refactor menuentry into a regular command.
17342
17343 * grub-core/commands/menuentry.c: New file, menuentry command
17344 implementation.
17345 * grub-core/Makefile.core.def: Rule update for normal.mod.
17346 * grub-core/normal/main.c: Moved menuentry creation to
17347 grub-core/commands/menuentry.c.
17348 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17349 (grub_menu_execute_entry_real): Removed.
17350 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17351 function.
17352 (grub_script_execute_menuentry): Removed.
17353 * grub-core/script/parser.y (menuentry): Removed.
17354 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17355 * grub-core/script/yylex.l (menuentry): Removed.
17356 * include/grub/menu.h (grub_menu_init): New prototype.
17357 (grub_menu_fini): New prototype.
17358 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17359 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17360 (grub_script_execute_sourcecode): New prototype.
17361
dacd0cf0
BC
173622010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17363
17364 "return" command for GRUB script functions.
17365
17366 * tests/grub_script_return.in: New test.
17367 * Makefile.util.def: Rules for new test.
17368
17369 * grub-core/script/execute.c (grub_script_return): New function.
17370 * grub-core/script/main.c: Register/unregister return commaond.
17371 * include/grub/script_sh.h (grub_script_return): New prototype.
17372
52e72f9d
BC
173732010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17374
17375 "setparams" command to update positional parameters.
17376
17377 * tests/grub_script_setparams.in: New test.
17378 * Makefile.util.def: Rules for new test.
17379
17380 * grub-core/script/argv.c (grub_script_argv_make): New function.
17381 * grub-core/script/execute.c (replace_scope): New function.
17382 (grub_script_setparams): New function.
17383 * grub-core/script/lexer.c: Remove unused variables.
17384 * grub-core/script/main.c: Register/unregister setparams command.
17385 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17386 (grub_script_setparams): New prototype.
17387
25b60c91
BC
173882010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17389
17390 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17391 grub_free order.
17392
37e7bf68
BC
173932010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17394
17395 Support for passing block of commands as an argument to extcmds.
17396
17397 * Makefile.util.def: Rules for new test.
17398 * tests/grub_script_blockarg.in: New test.
17399 * grub-core/tests/test_blockarg.c: New file, block argument
17400 command used in the test.
17401
17402 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17403 (grub_register_extcmd_prio): New function prototype.
17404 (grub_extcmd_dispatcher): New function prototype.
17405 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17406 type.
17407 * include/grub/script_sh.h (struct grub_script): New members
17408 `children', `next_siblings' and `refcnt' for block arguments and
17409 reference counting.
17410 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17411 (grub_script_arg): New member `script' for block argument.
17412 (grub_script_argv): New member `script' for block argument.
17413 (grub_parser_param): New member `scripts' for block argument.
17414 (grub_script_mem_free): New extern function prototype.
17415 (grub_script_ref): New function prototype.
17416 (grub_script_unref): New function prototype.
17417
17418 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17419 extcmd form to support block arguments.
17420 * grub-core/script/argv.c: Block arguments support.
17421 * grub-core/script/execute.c: Likewise.
17422 * grub-core/script/lexer.c: Likewise.
17423 * grub-core/script/main.c: Likewise.
17424 * grub-core/script/script.c: Likewise.
17425 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17426 non-terminals.
17427
17428 * grub-core/commands/acpi.c: Update extcmd implementations with
17429 grub_extcmd_context_t.
17430 * grub-core/commands/cat.c: Likewise.
17431 * grub-core/commands/echo.c: Likewise.
17432 * grub-core/commands/extcmd.c: Likewise.
17433 * grub-core/commands/hashsum.c: Likewise.
17434 * grub-core/commands/hdparm.c: Likewise.
17435 * grub-core/commands/help.c: Likewise.
17436 * grub-core/commands/hexdump.c: Likewise.
17437 * grub-core/commands/i386/cpuid.c: Likewise.
17438 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17439 * grub-core/commands/i386/pc/halt.c: Likewise.
17440 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17441 * grub-core/commands/iorw.c: Likewise.
17442 * grub-core/commands/keystatus.c: Likewise.
17443 * grub-core/commands/loadenv.c: Likewise.
17444 * grub-core/commands/ls.c: Likewise.
17445 * grub-core/commands/lspci.c: Likewise.
17446 * grub-core/commands/memrw.c: Likewise.
17447 * grub-core/commands/probe.c: Likewise.
17448 * grub-core/commands/search_wrap.c: Likewise.
17449 * grub-core/commands/setpci.c: Likewise.
17450 * grub-core/commands/sleep.c: Likewise.
17451 * grub-core/disk/loopback.c: Likewise.
17452 * grub-core/hello/hello.c: Likewise.
17453 * grub-core/loader/i386/bsd.c: Likewise.
17454 * grub-core/loader/xnu.c: Likewise.
17455 * grub-core/term/gfxterm.c: Likewise.
17456 * grub-core/term/serial.c: Likewise.
17457 * grub-core/tests/lib/functional_test.c: Likewise.
17458
888d1500
BC
174592010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17460
17461 Multi-line quoted strings support.
17462
17463 * grub-core/script/lexer.c (append_newline): Removed.
17464 (grub_script_lexer_yywrap): Refactored.
17465 (grub_script_lexer_init): Refactored.
17466 * grub-core/script/yylex.l (yywrap): New function.
17467 (grub_lexer_resplit): New function.
17468 (grub_lexer_unput): New function.
17469 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17470 and resplit.
17471 * tests/grub_script_echo1.in: Added few more testcases.
17472
dda060dd
VS
174732010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17474
17475 * grub-core/kern/misc.c: Don't add abort alias in utils.
17476 Reported by: echoline.
17477
6556eba9
BC
174782010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17479
17480 Add missing files into "make dist" tarball for other platforms.
17481
17482 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17483 * conf/Makefile.common (dist_noinst_DATA): New variable.
17484 * conf/Makefile.extra-dist: Added missing make dist files.
17485 * grub-core/Makefile.core.def: Likewise.
17486
c8e7bf5f
VS
174872010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17488
17489 Compress grub_prefix.
17490
17491 * grub-core/boot/i386/pc/lnxboot.S: Use
17492 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17493 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17494 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17495 GRUB_MACHINE_PREFIX_END. All users updated.
17496 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17497 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17498 + 0x40.
17499 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17500 * util/grub-mkimage.c (image_target_desc): Change data_end to
17501 prefix_end. All users updated.
17502
a7c00cdb
VS
175032010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17504
17505 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17506 value.
17507 (grub_openbsd_boot): Likewise.
17508 (grub_netbsd_boot): Likewise.
17509 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17510 (grub_xnu_boot): Likewise.
17511
9f915872
VS
175122010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17513
17514 * configure.ac: Clean LIBS variable after tests.
17515
efa1bee7
CW
175162010-09-02 Colin Watson <cjwatson@ubuntu.com>
17517
17518 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17519
61d720e5
VS
175202010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17521
17522 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17523 echo if libdevmapper will be used.
17524
ef8e0ec8
IT
175252010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17526
17527 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17528 constant for the same file.
17529
03e261d8
VS
175302010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17531
17532 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17533
c2a4eba6
CW
175342010-09-02 Colin Watson <cjwatson@ubuntu.com>
17535
17536 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17537 grub-core/*.pp.
17538
9056cbf3
CW
175392010-09-02 Colin Watson <cjwatson@ubuntu.com>
17540
17541 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17542 required by the boot protocol.
17543
17544 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17545 ebp and edi members.
17546 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17547 state.ebp and state.edi.
17548 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17549 %ebp and %edi according to grub_relocator32_ebp and
17550 grub_relocator32_edi respectively.
17551 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17552 and state.edi.
17553
529cc99a
VS
175542010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17555
17556 Add i386-pc-pxe image target.
17557
17558 * util/grub-mkimage.c (image_target_desc): New enum value
17559 IMAGE_I386_PC_PXE.
17560 (image_targets): New target i386-pc-pxe.
17561 (generate_image): Handle i386-pc-pxe image.
17562
9a093920
VS
175632010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17564
17565 Fix grub_pxe_scan.
17566
17567 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17568 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17569 All users updated.
17570 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17571 (grub_pxe_pxenv): Correct type.
17572
f9cefc4e
CW
175732010-09-01 Colin Watson <cjwatson@ubuntu.com>
17574
17575 * NEWS: Document most of the important changes since 1.98.
17576
4066f57f
CW
175772010-09-01 Colin Watson <cjwatson@ubuntu.com>
17578
17579 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17580 generated manual page) a little.
17581
da2891f9
CW
175822010-09-01 Colin Watson <cjwatson@ubuntu.com>
17583
17584 * docs/grub.texi: Add myself as an author.
17585
ad717fae
VS
175862010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17587
17588 * Makefile.util.def (libgrub.a): Add missing sunpc.
17589 Reported by: Seth Goldberg.
17590
eefe8abd
VS
175912010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17592
17593 Interrupt wrapping and code simplifications.
17594
9494ef9a
VS
17595 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17596 x86_noieee1275 which are functionaly equivalent in this case.
17597 (grub-install): Make source on each platform explicit. Enable on
17598 all noemu.
17599 * gentpl.py (x86_efi_pc): Removed group.
17600 (x86_noefi): Likewise.
17601 (i386_noefi): Likewise.
17602 (x86_noieee1275): Likewise.
17603 (i386_noieee1275): Likewise.
17604 (i386_noefi_noieee1275): Likewise.
17605 (i386_pc_qemu_coreboot): Likewise.
17606 (i386_coreboot_multiboot): Likewise.
17607 (i386_pc_coreboot_multiboot_qemu): Likewise.
17608 (x86_noefi_mips): Likewise.
17609 (noieee1275): Likewise.
17610 (ieee1275_mips): Likewise.
17611 (noemu_noieee1275): Likewise.
17612 (cmos): New group.
17613 (usb): Likewise.
17614 (videoinkernel): Likewise.
17615 (videomodules): Likewise.
eefe8abd 17616 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
17617 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17618 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17619 include/grub/loader.h, include/grub/msdos_partition.h,
17620 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17621 include/grub/machine/console.h, include/grub/machine/vga.h,
17622 include/grub/machine/vbe.h, include/grub/machine/init.h,
17623 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17624 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 17625 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
17626 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17627 * grub-core/Makefile.core.def (kernel): Explicit the source for
17628 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17629 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17630 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17631 Use videoinkernel tag.
17632 (usb): Enable on all usb.
17633 (usbserial_common): Likewise.
17634 (usbserial_pl2303): Likewise.
17635 (usbserial_ftdi): Likewise.
17636 (uhci): Enable on all x86.
17637 (ohci): Enable on all pci.
17638 (cmostest): Enable on all CMOS.
17639 (acpi): Include commands/acpi.c on all platforms.
17640 (halt): Add relevant lib/*/halt.c.
17641 (hdparm): Enable on all pci.
17642 (lspci): Likewise.
17643 (usbtest): Enable on all usb.
17644 (ata): Enable on all pci.
17645 (ata_pthru): Likewise.
17646 (usbms): Enable on all usb.
17647 (usb_keyboard): Likewise.
17648 (font): Use tag videomodules.
17649 (bufio): Likewise.
17650 (datetime): Use tag cmos. Enable on all noemu.
17651 (mmap): Use tags common and x86.
17652 (gfxterm): Use tag videomodules.
17653 (bitmap): Likewise.
17654 (bitmap_scale): Likewise.
17655 (video_fb): Likewise.
17656 (video): Likewise.
17657 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17658 adjust padding accordingly. All users updated.
17659 (grub_ohci_transaction): Fix bad format specification.
17660 (GRUB_MOD_INIT): Add asserts for struct size.
17661 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17662 (grub_alloc_td): Likewise.
17663 (grub_free_queue): Likewise.
17664 (grub_uhci_transfer): Likewise.
17665 (grub_uhci_transaction): Fix bad format specification.
17666 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17667 (grub_usb_bulk_readwrite): Likewise.
17668 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17669 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17670 Made static.
17671 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17672 Made static.
17673 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17674 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17675 Transformed into C.
17676 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17677 Moved from here ...
17678 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17679 ... here. Transformed into C. Made static.
17680 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17681 Moved from here ...
17682 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17683 ... here. Transformed into C. Made static.
17684 * grub-core/kern/i386/pc/startup.S
17685 (grub_biosdisk_check_int13_extensions): Moved from here ...
17686 * grub-core/disk/i386/pc/biosdisk.c
17687 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17688 Made static.
17689 * grub-core/kern/i386/pc/startup.S
17690 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17691 * grub-core/disk/i386/pc/biosdisk.c
17692 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17693 Transformed into C. Made static.
17694 * grub-core/kern/i386/pc/startup.S
17695 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17696 * grub-core/disk/i386/pc/biosdisk.c
17697 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17698 Transformed into C. Made static.
17699 * grub-core/kern/i386/pc/startup.S
17700 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17701 * grub-core/disk/i386/pc/biosdisk.c
17702 (grub_biosdisk_get_diskinfo_standard): ... here.
17703 Transformed into C. Made static.
17704 * grub-core/kern/i386/pc/startup.S
17705 (grub_biosdisk_get_num_floppies): Moved from here ...
17706 * grub-core/disk/i386/pc/biosdisk.c
17707 (grub_biosdisk_get_num_floppies): ... here.
17708 Transformed into C. Made static.
17709 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17710 New function.
17711 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17712 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17713 Transformed into C. Made static.
17714 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17715 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17716 Transformed into C. Made static.
17717 * grub-core/kern/i386/ieee1275/init.c: Removed.
17718 * grub-core/kern/i386/misc.S: Likewise.
17719 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17720 Splitted from here ...
17721 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17722 Transformed into C. Made static. All users updated.
17723 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17724 Transformed into C. Made static. All users updated.
17725 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17726 Moved from here...
17727 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17728 Transformed into C. Made static. All users updated.
17729 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17730 Moved from here...
17731 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17732 Transformed into C. Made static. All users updated.
17733 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17734 Removed (replaced by C version).
17735 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17736 Moved from here...
17737 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17738 Transformed into C. Made static.
17739 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17740 Moved from here...
17741 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17742 ... here. Transformed into C.
17743 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17744 Moved from here...
17745 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17746 ... here. Transformed into C.
17747 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17748 Moved from here...
17749 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17750 ... here. Transformed into C. Made static.
17751 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17752 Moved from here...
17753 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17754 ... here. Transformed into C.
21ed554b
VS
17755 * grub-core/kern/i386/pc/startup.S
17756 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17757 * grub-core/video/i386/pc/vbe.c
17758 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
17759 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17760 Moved from here...
17761 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17762 ... here. Transformed into C.
17763 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17764 Moved from here...
17765 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17766 ... here. Transformed into C.
17767 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17768 Moved from here...
17769 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17770 ... here. Transformed into C.
17771 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17772 Moved from here...
17773 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17774 ... here. Transformed into C.
17775 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17776 Moved from here...
17777 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17778 ... here. Transformed into C. Made static.
17779 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17780 Moved from here...
17781 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17782 ... here. Transformed into C. Made static.
17783 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17784 Moved from here...
17785 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17786 ... here. Transformed into C. Made static.
17787 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17788 pxe_rm_entry as third argument.
17789 (grub_bios_interrupt): New function.
17790 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17791 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17792 of calling grub_stop.
17793 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17794 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17795 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17796 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17797 * grub-core/lib/i386/halt.c: Moved from here ...
17798 * grub-core/lib/i386/halt.c: ... here.
17799 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17800 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17801 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17802 grub_stop_floppy.
17803 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17804 * include/grub/i386/coreboot/init.h: Removed.
17805 * include/grub/i386/multiboot/init.h: Likewise.
17806 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17807 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17808 * include/grub/i386/pc/int.h: New file.
17809 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17810 (grub_pxe_scan): Removed.
17811 (grub_pxe_call): Update prototype.
17812 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17813 prototypes.
17814 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17815 * include/grub/i386/qemu/init.h: Removed.
17816 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17817 noreturn.
17818 (grub_halt): Likewise.
17819 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17820 (grub_reboot): Likewise.
17821 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17822 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
17823 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17824
215dd471
RM
178252010-08-30 Robert Millan <rmh@gnu.org>
17826
17827 * NEWS: Document addition of ZFS support in `grub-install' and
17828 `grub-mkconfig'.
17829
ebd65b82
BC
178302010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17831
17832 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17833 dprintf output.
17834
11721d19
VS
178352010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17836
17837 Remove leftover embedding of font objects.
17838
17839 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17840 * util/grub-install.in (font): Removed.
17841 * util/grub-mkimage.c (generate_image): Remove font support. All users
17842 updated.
17843
37837d4e
VS
178442010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17845
17846 Remove leftover embedding of font objects.
17847
17848 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17849 * util/grub-install.in (font): Removed.
17850 * util/grub-mkimage.c (generate_image): Remove font support. All users
17851 updated.
17852
b4c1aae0
VS
178532010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17854
17855 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 17856 Reported by: Ian Turner
b4c1aae0 17857
8920a08d
VS
178582010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17859
17860 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17861 timeout to avoid indefinite boot stalling.
17862
f21db033
VS
178632010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17864
17865 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17866 (grub_env_write_color_highlight): Likewise.
17867
9a9de209
VS
178682010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17869
17870 * grub-core/normal/term.c (print_more): Return to normal and not
17871 to standard state after printing "---MORE---".
17872
3dca01d7
VS
178732010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17874
17875 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17876 Mask out the bit 0x80 since it has other meaning that specifiing color.
17877
0b986c40
VS
178782010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17879
17880 New relocator. Allows for more kernel support and more straightforward
17881 loader writing.
17882
17883 * Makefile.am (BOOTTARGET): New variable.
17884 (QEMU32): Likewise.
17885 (linux.init.x86_64): New target.
17886 (linux.init.i386): Likewise.
17887 (multiboot.elf): Likewise.
17888 (kfreebsd.elf): Likewise.
17889 (kfreebsd.aout): Likewise.
17890 (pc-chainloader.elf): Likewise.
17891 (pc-chainloader.bin): Likewise.
17892 (ntldr.elf): Likewise.
17893 (ntldr.bin): Likewise.
17894 (multiboot2.elf): Likewise.
17895 (kfreebsd.init.x86_64): Likewise.
17896 (kfreebsd.init.i386): Likewise.
17897 (knetbsd.init.i386): Likewise.
17898 (kopenbsd.init.i386): Likewise.
17899 (knetbsd.init.x86_64): Likewise.
17900 (kopenbsd.init.x86_64): Likewise.
17901 (linux-initramfs.i386): Likewise.
17902 (linux-initramfs.x86_64): Likewise.
17903 (kfreebsd-mfsroot.i386.img): Likewise.
17904 (knetbsd.image.i386): Likewise.
17905 (kopenbsd.image.i386): Likewise.
17906 (kopenbsd.image.x86_64): Likewise.
17907 (knetbsd.miniroot-image.i386.img): Likewise.
17908 (kfreebsd-mfsroot.x86_64.img): Likewise.
17909 (knetbsd.image.x86_64): Likewise.
17910 (knetbsd.miniroot-image.x86_64.img): Likewise.
17911 (kfreebsd-mfsroot.i386.gz): Likewise.
17912 (bootcheck-kfreebsd-i386): Likewise.
17913 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17914 (bootcheck-kfreebsd-x86_64): Likewise.
17915 (knetbsd.miniroot-image.i386.gz): Likewise.
17916 (bootcheck-knetbsd-i386): Likewise.
17917 (bootcheck-kopenbsd-i386): Likewise.
17918 (bootcheck-kopenbsd-x86_64): Likewise.
17919 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17920 (bootcheck-knetbsd-x86_64): Likewise.
17921 (bootcheck-linux-i386): Likewise.
17922 (bootcheck-linux-x86_64): Likewise.
17923 (bootcheck-linux16-i386): Likewise.
17924 (bootcheck-linux16-x86_64): Likewise.
17925 (bootcheck-multiboot): Likewise.
17926 (bootcheck-multiboot2): Likewise.
17927 (bootcheck-kfreebsd-aout): Likewise.
17928 (bootcheck-pc-chainloader): Likewise.
17929 (bootcheck-ntldr): Likewise.
17930 (CLEANFILES): Add new targets.
17931 (BOOTCHECKS): New variable.
17932 (.PHONY): Add bootchecks.
17933 (SUCCESSFUL_BOOT_STRING): New variable.
17934 (BOOTCHECK_TIMEOUT): Likewise.
17935 (bootcheck): New target
17936 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17937 * configure.ac: Correct efiemu excuse.
17938 * docs/grub.texi (Supported kernels): New chapter.
17939 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17940 include/grub/mm_private.h. Simplify inclusion of
17941 include/grub/boot.h, include/grub/loader.h
17942 and include/grub/msdos_partition.h
17943 (KERNEL_HEADER_FILES) [i386_coreboot]:
17944 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17945 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17946 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17947 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17948 include/grub/machine/loader.h.
17949 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17950 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17951 extra_dist.
17952 (pci.mod): Enable on i386-multiboot.
17953 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17954 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17955 i386-qemu.
17956 (relocator.mod): Rewritten.
17957 (aout.mod): Enable on all x86.
17958 (bsd.mod): Likewise.
17959 (ntldr.mod): New module.
17960 (linux.mod): Use loader/i386/linux.c on all x86.
17961 (xnu.mod): Enable on all x86.
17962 (vga_text.mod): disable on EFI and QEMU.
17963 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17964 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17965 * grub-core/efiemu/loadcore.c: Likewise.
17966 * grub-core/efiemu/main.c: Likewise.
17967 (grub_efiemu_exit_boot_services): Removed.
17968 (grub_efiemu_finish_boot_services): Likewise.
17969 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17970 function.
17971 * grub-core/efiemu/i386/nocfgtables.c: New file.
17972 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17973 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17974 (grub_efi_finish_boot_services): Moved from here ...
17975 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17976 Fille finish memory map and related data.
17977 (finish_mmap_buf): New variable.
17978 (grub_efi_uintn_t finish_mmap_size): Likewise.
17979 (grub_efi_uintn_t finish_key): Likewise.
17980 (grub_efi_uintn_t finish_desc_size): Likewise.
17981 (grub_efi_uint32_t finish_desc_version): Likewise.
17982 (grub_efi_is_finished): Likewise.
17983 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17984 finished.
17985 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17986 (grub_elf64_phdr_iterate): Likewise.
17987 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17988 (grub_os_area_size): Likewise.
17989 (grub_machine_init): Don't reserve os area.
17990 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17991 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17992 * grub-core/kern/i386/loader.S: Removed.
17993 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17994 (grub_os_area_size): Likewise.
17995 (grub_machine_init): Don't reserve os area.
17996 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17997 Don't call grub_dl_unload_all.
17998 Don't include loader.S.
17999 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18000 Declare the memory after _end as available.
18001 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 18002 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 18003 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
18004 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18005 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18006 * include/grub/mm_private.h (grub_mm_header): ... here.
18007 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18008 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
18009 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18010 (grub_mm_region): ..here. Removed addr. Added pre_size.
18011 All users updated.
18012 * grub-core/kern/mm.c (base): Renamed to ...
18013 (grub_mm_base): ... this. Made global.
18014 (grub_real_malloc): Alloc from end of region.
18015 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18016 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18017 * grub-core/kern/powerpc/cache_flush.S: ... here.
18018 * grub-core/lib/efi/relocator.c: New file.
18019 * grub-core/lib/i386/relocator.c: Rewritten.
18020 * grub-core/lib/i386/relocator16.S: New file.
18021 * grub-core/lib/i386/relocator32.S: Likewise.
18022 * grub-core/lib/i386/relocator64.S: Likewise.
18023 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18024 * grub-core/lib/i386/relocator_common.S: New file.
18025 * grub-core/lib/ieee1275/relocator.c: Likewise.
18026 * grub-core/lib/mips/relocator.c: Rewritten.
18027 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18028 stylistic adjustments.
18029 * grub-core/lib/powerpc/relocator.c: New file.
18030 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18031 * grub-core/lib/relocator.c: Rewritten.
18032 * grub-core/lib/x86_64/relocator_asm.S: New file.
18033 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18034 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18035 (bsd_tag): New struct.
18036 (tags): New variable.
18037 (tags_last): Likewise.
18038 (netbsd_module): New struct.
18039 (netbsd_mods): New variable.
18040 (netbsd_mods_last): Likewise.
18041 (openbsd_opts): New parameter "serial".
18042 (OPENBSD_SERIAL_ARG): New definition.
18043 (netbsd_opts): New parameter "serial".
18044 (NETBSD_SERIAL_ARG): New definition.
18045 (grub_freebsd_add_meta): Reorganised into ...
18046 (grub_bsd_add_meta): ...this. All users updated.
18047 (grub_freebsd_add_mmap): Reorganised into ...
18048 (generate_e820_mmap): ...this...
18049 (grub_bsd_add_mmap): ...and this. All users updated.
18050 (grub_freebsd_list_modules): Use tags.
18051 (grub_netbsd_add_meta_module): New function.
18052 (grub_netbsd_list_modules): Likewise.
18053 (grub_freebsd_boot): Use relocator and finish EFI.
18054 (grub_openbsd_boot): Likewise.
18055 (grub_netbsd_setup_video): New function.
18056 (grub_netbsd_add_modules): Likewise.
18057 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18058 and finish EFI.
18059 (grub_bsd_unload): Unload tags.
18060 (grub_bsd_load_aout): Use relocator.
18061 (grub_bsd_elf32_size_hook): New function.
18062 (grub_bsd_elf32_hook): Use relocator.
18063 (grub_bsd_elf64_size_hook): New function.
18064 (grub_bsd_elf64_hook): Use relocator.
18065 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18066 (grub_bsd_load): Zero-out openbsd_ramdisk.
18067 (grub_bsd_load): Use relocator.
18068 (grub_cmd_openbsd): Support serial.
18069 (grub_cmd_netbsd): Support modules.
18070 (grub_cmd_freebsd_module): Use relocator.
18071 (grub_netbsd_module_load): New function.
18072 (grub_cmd_netbsd_module): Likewise.
18073 (grub_cmd_openbsd_ramdisk): Likewise.
18074 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18075 kopenbsd_ramdisk.
18076 (GRUB_MOD_FINI): Unregister new commands.
18077 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18078 (grub_freebsd_load_elfmodule_obj): Use relocator.
18079 (grub_freebsd_load_elfmodule): Likewise.
18080 (grub_freebsd_load_elf_meta): Likewise.
18081 (grub_netbsd_load_elf_meta): New function.
18082 (grub_openbsd_find_ramdisk): Likewise.
18083 * grub-core/loader/i386/bsd_helper.S: Removed.
18084 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18085 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18086 * grub-core/loader/i386/efi/linux.c: Likewise.
18087 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18088 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18089 (DEFAULT_VIDEO_MODE): Likewise.
18090 (real_mode_target): New variable.
18091 (prot_mode_target): Likewise.
18092 (initrd_mem_target): Likewise.
18093 (relocator): Likewise.
18094 (efi_mmap_buf): Likewise.
18095 (efi_mmap_size): Likewise.
18096 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18097 (free_pages): Use relocator.
18098 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18099 (grub_linux_setup_video): Return error.
18100 (grub_linux_trampoline_start): Removed.
18101 (grub_linux_trampoline_end): Likewise.
18102 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18103 andd video parameters depending on firmware.
18104 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18105 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18106 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18107 (grub_cmd_initrd): Use relocator.
18108 * grub-core/loader/i386/linux_trampoline.S: Removed.
18109 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18110 (elf_sec_entsize): Likewise.
18111 (elf_sec_shstrndx): Likewise.
18112 (elf_sections): Likewise.
18113 (grub_multiboot_load): Use relocator.
18114 (grub_multiboot_get_mbi_size): Account for sections.
18115 (grub_multiboot_make_mbi): Use relocator and support sections.
18116 (grub_multiboot_add_elfsyms): New function.
18117 (grub_multiboot_free_mbi): Free sections.
18118 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18119 (grub_linux_real_target): Likewise.
18120 (grub_linux_real_chunk): Likewise.
18121 (grub_linux16_prot_size): Likewise.
18122 (grub_linux16_boot): Use relocator.
18123 (grub_linux_unload): Unload relocator.
18124 (grub_cmd_linux): Use relocator.
18125 (grub_cmd_initrd): Likewise.
18126 * grub-core/loader/i386/pc/ntldr.c: New file.
18127 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18128 Don't try to guess CPU frequency.
18129 (grub_xnu_set_video): Stretch bitmap.
18130 (grub_xnu_boot): Use relocator.
18131 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18132 (grub_linux_unload): Free relocator.
18133 (grub_linux_load32): Use relocator.
18134 (grub_linux_load64): Likewise.
18135 (grub_cmd_initrd): Likewise.
18136 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18137 (grub_multiboot_unload): Unload relocator.
18138 (grub_cmd_multiboot): Use relocator.
18139 (grub_cmd_module): Likewise.
18140 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18141 Use relocator and support sections.
18142 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18143 (elf_sec_entsize): Likewise.
18144 (elf_sec_shstrndx): Likewise.
18145 (elf_sections): Likewise.
18146 (grub_multiboot_load): Use relocator.
18147 (grub_multiboot_get_mbi_size): Account for sections.
18148 (grub_multiboot_make_mbi): Use relocator and support sections.
18149 (grub_multiboot_add_elfsyms): New function.
18150 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18151 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18152 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18153 Prototype changed. All users updated.
18154 (grub_xnu_align_heap): Simplified.
18155 (grub_xnu_writetree_toheap): Likewise.
18156 (grub_xnu_unload): Unload relocator.
18157 (grub_cmd_xnu_kernel): Use relocator.
18158 (grub_cmd_xnu_kernel64): Likewise.
18159 (grub_xnu_register_memory): Simplified.
18160 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
18161 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18162 EFI is finished.
18163 (grub_console_checkkey): Likewise.
18164 (grub_console_getkey): Likewise.
18165 (grub_console_getwh): Likewise.
18166 (grub_console_getxy): Likewise.
18167 (grub_console_gotoxy): Likewise.
18168 (grub_console_cls): Likewise.
18169 (grub_console_setcolorstate): Likewise.
18170 (grub_console_setcursor): Likewise.
18171 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18172 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18173 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18174 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18175 * grub-core/tests/boot/kernel-8086.S: Likewise.
18176 * grub-core/tests/boot/kernel-i386.S: Likewise.
18177 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18178 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18179 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18180 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18181 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18182 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18183 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18184 * grub-core/tests/boot/linux.cfg: Likewise.
18185 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18186 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18187 * grub-core/tests/boot/linux16.cfg: Likewise.
18188 * grub-core/tests/boot/multiboot.cfg: Likewise.
18189 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18190 * grub-core/tests/boot/ntldr.cfg: Likewise.
18191 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18192 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18193 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18194 New definition.
18195 * include/grub/dl.h (grub_dl_unload_all): Removed.
18196 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18197 (grub_efi_finish_boot_services): Change prototype.
18198 (grub_efi_is_finished): New variable.
18199 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18200 Changed prototype.
18201 (grub_efiemu_finish_boot_services): Removed.
18202 (grub_machine_efiemu_init_tables): New prototype.
18203 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18204 (grub_elf64_phdr_iterate): Likewise.
18205 * include/grub/i386/bsd.h: Include relocator.h.
18206 (freebsd_tag_header): New struct.
18207 (grub_openbsd_bios_mmap): Removed.
18208 (grub_unix_real_boot): Removed.
18209 (grub_freebsd_load_elfmodule32): Changed prototype.
18210 (grub_freebsd_load_elfmodule_obj64): Likewise.
18211 (grub_freebsd_load_elf_meta32): Likewise.
18212 (grub_freebsd_load_elf_meta64): Likewise.
18213 (grub_freebsd_add_meta): Removed.
18214 (grub_netbsd_load_elf_meta32): New prototype.
18215 (grub_netbsd_load_elf_meta64): Likewise.
18216 (grub_bsd_add_meta): Likewise.
18217 (grub_openbsd_ramdisk_descriptor): New struct.
18218 (grub_openbsd_find_ramdisk32): New prototype.
18219 (grub_openbsd_find_ramdisk64): Likewise.
18220 * include/grub/i386/coreboot/loader.h: Removed.
18221 * include/grub/i386/efi/loader.h: Likewise.
18222 * include/grub/i386/ieee1275/loader.h: Likewise.
18223 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18224 to grub_uint32_t.
18225 * include/grub/i386/loader.h: Removed.
18226 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18227 value.
18228 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18229 (grub_phys_addr_t): New type.
18230 (grub_vtop): New inline function.
18231 (grub_map_memory): Likewise.
18232 (grub_unmap_memory): Likewise.
18233 * include/grub/i386/multiboot/loader.h: Removed.
18234 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18235 (NETBSD_BTINFO_CONSOLE): New definition.
18236 (NETBSD_BTINFO_SYMTAB): Likewise.
18237 (NETBSD_BTINFO_MODULES): Likewise.
18238 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18239 (grub_netbsd_bootinfo): New struct.
18240 (grub_netbsd_btinfo_common): Use explicit bitsize.
18241 (grub_netbsd_btinfo_mmap_entry): Removed.
18242 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18243 (grub_netbsd_btinfo_bootdisk): New struct.
18244 (grub_netbsd_btinfo_symtab): Likewise.
18245 (grub_netbsd_btinfo_serial): Likewise.
18246 (grub_netbsd_btinfo_modules): Likewise.
18247 (grub_netbsd_btinfo_framebuf): Likewise.
18248 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18249 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18250 Likewise.
18251 (grub_openbsd_bootargs): Use explicit bitsize.
18252 (grub_openbsd_bootarg_console): New struct.
18253 (GRUB_OPENBSD_COM_MAJOR): New definition.
18254 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18255 * include/grub/i386/pc/efiemu.h: Removed.
18256 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18257 * include/grub/i386/qemu/loader.h: Removed.
18258 * include/grub/i386/relocator.h: Rewritten.
18259 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18260 * include/grub/mips/memory.h: New file.
18261 * include/grub/mips/multiboot.h: Rewritten.
18262 * include/grub/mips/relocator.h: Rewritten.
18263 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18264 (grub_vtop): New function.
18265 (grub_map_memory): Likewise.
18266 (grub_unmap_memory): Likewise.
18267 * include/grub/misc.h (ALIGN_DOWN): New definition.
18268 * include/grub/mm.h (grub_mm_check_real): New proto.
18269 (GRUB_MM_CHECK): New definition.
18270 * include/grub/mm_private.h: New file.
18271 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18272 (grub_multiboot_get_mbi_size): Removed.
18273 (grub_multiboot_make_mbi): Change prottype.
18274 (grub_multiboot_set_accepts_video): New proto.
18275 (grub_multiboot_add_elfsyms): Likewise.
18276 (grub_multiboot_payload_eip): New variable.
18277 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18278 New prototype.
18279 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18280 New definition.
18281 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18282 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18283 * include/grub/powerpc/ieee1275/loader.h: Removed.
18284 * include/grub/powerpc/memory.h: New file.
18285 * include/grub/powerpc/relocator.h: Likewise.
18286 * include/grub/relocator.h: Likewise.
18287 * include/grub/relocator_private.h: Likewise.
18288 * include/grub/sparc64/ieee1275/loader.h: Removed.
18289 * include/grub/x86_64/memory.h: New file.
18290 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18291 (grub_xnu_heap_malloc): Likewise.
18292 (grub_xnu_heap_real_start): Removed.
18293 (grub_xnu_heap_start): Likewise.
18294 (grub_xnu_relocator): New variable.
18295 (grub_xnu_heap_target_start): Likewise.
18296 * tests/util/grub-shell.in: Support non-pc.
18297 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 18298
5303b85d
VS
182992010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18300
18301 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18302 on malloc error.
18303 (grub_bidi_logical_to_visual): Check that malloc succeded.
18304 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18305 puts.
18306 (grub_xputs_normal): Likewise.
18307
d768d159
VS
183082010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18309
18310 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18311 extra_dist.
18312
183132010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18314
18315 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18316
5bf84df4
VS
183172010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18318
18319 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18320
3626810e
VS
183212010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18322
18323 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18324 dprintf.
18325
a7363f53
BC
183262010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18327
18328 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18329
902f75f6
VS
183302010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18331
18332 * grub-core/normal/term.c (print_more): Fix a memory leak.
18333 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18334 (grub_xputs_normal): Likewise.
18335
3c707967
VS
183362010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18337
18338 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18339 the begining of the string
18340
2053cc07
VS
183412010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18342
18343 * grub-core/script/script.c (grub_script_parse): Free parsed on
18344 failure.
18345
46422ebf
VS
183462010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18347
18348 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18349 on failure.
18350
9e0fa3f6
VS
183512010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18352
18353 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18354 return.
18355
3393cf16
VS
183562010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18357
18358 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18359 (scroll_up): Fix a memory leak.
18360
b17540cb
VS
183612010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18362
18363 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18364 errors.
18365
67140446
VS
183662010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18367
18368 Handle USB pendrives exposed as floppies.
18369
18370 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18371 floppy.
18372 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18373 Check for partitions on all devices.
18374
e35e46fc
VS
183752010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18376
18377 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18378 (readkey): Likewise.
18379
d24c6190
BC
183802010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18381
18382 Multiple variable names support to "export" command.
18383
18384 * normal/context.c (grub_cmd_export): "export" command supports
18385 multiple variable names.
18386
04ddcc6a
ST
183872010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18388
18389 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18390 --target=drive output to Mach device name.
18391
0c8b61d8
BC
183922010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18393
18394 New Automake based build system for GRUB.
18395
18396 * ABOUT-NLS: New file.
18397 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18398 in Makefile.util.def file.
18399 * Makefile.util.def: New file. Autogen build definitions file for
18400 GRUB host utils.
18401 * conf/Makefile.common: New file. Common variables for GRUB host
18402 utils and target modules.
18403 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18404 * docs/Makefile.am: New file. Automake file for docs.
18405 * gentpl.py: New file. Python script to generate Autogen
18406 template.
18407 * grub-core/Makefile.am: New file. GRUB target modules' rules
18408 that doesn't fit in Makefile.core.def file.
18409 * grub-core/Makefile.core.def: New file. Autogen build
18410 definitions file for GRUB target modules.
18411 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18412 specific setjmp.S file.
18413 * po/Makefile.am: New file.
18414
18415 * .bzrignore: New ignores.
18416 * INSTALL: New requirements, without Ruby.
18417 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18418 * autogen.sh: Updated to invoke autogen as necessary.
18419 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18420 and defines for Automake conditionals.
18421 * geninit.sh: Refactoring.
18422
18423 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18424 necessary.
18425 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18426 New prototype.
18427
18428 * include/grub/test.h: Fix functional test modules' naming.
18429 * grub-core/tests/example_functional_test.c: Fix test module name.
18430
18431 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18432 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18433 * util/grub-editenv.c: Likewise.
18434 * util/grub-fstest.c: Likewise.
18435 * util/grub-mkdevicemap.c: Likewise.
18436 * util/grub-mkfont.c: Likewise.
18437 * util/grub-mkimage.c: Likewise.
18438 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18439 * util/grub-probe.c: Likewise.
18440 * util/grub-script-check.c: Likewise.
18441 * util/i386/pc/grub-setup.c: Likewise.
18442 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18443
18444 * tests/util/grub-shell.in: Fix override directory path.
18445 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18446 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18447
18448 * util/lvm.c: Update #includes.
18449 * util/raid.c: Likewise.
18450 * util/resolve.c: Likewise.
18451 * grub-core/bus/emu/pci.c: Likewise.
18452 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18453 * grub-core/lib/posix_wrap/string.h: Likewise.
18454 * grub-core/kern/emu/main.c: Likewise.
18455
18456 * grub-core/gensymlist.sh: New file. Script for generating kernel
18457 symbols file.
18458 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18459
18460 * grub-core/gentrigtables.c: Fix unused variable warnings.
18461
18462 * Makefile.in: Removed.
18463 * conf/any-emu.rmk: Removed.
18464 * conf/common.rmk: Removed.
18465 * conf/i386-coreboot.rmk: Removed.
18466 * conf/i386-efi.rmk: Removed.
18467 * conf/i386-ieee1275.rmk: Removed.
18468 * conf/i386-multiboot.rmk: Removed.
18469 * conf/i386-pc.rmk: Removed.
18470 * conf/i386-qemu.rmk: Removed.
18471 * conf/i386.rmk: Removed.
18472 * conf/mips-yeeloong.rmk: Removed.
18473 * conf/mips.rmk: Removed.
18474 * conf/powerpc-ieee1275.rmk: Removed.
18475 * conf/sparc64-ieee1275.rmk: Removed.
18476 * conf/tests.rmk: Removed.
18477 * conf/x86-efi.rmk: Removed.
18478 * conf/x86_64-efi.rmk: Removed.
18479 * gendistlist.sh: Removed.
18480 * geninitheader.sh: Removed.
18481 * genkernsyms.sh.in: Removed.
18482 * genmk.rb: Removed.
18483 * gensymlist.sh.in: Removed.
18484 * mkinstalldirs: Removed.
18485 * boot: Moved ...
18486 * grub-core/boot: ... to here.
18487 * bus: Moved ...
18488 * grub-core/bus: ... to here.
18489 * commands: Moved ...
18490 * grub-core/commands: ... to here.
18491 * disk: Moved ...
18492 * grub-core/disk: ... to here.
18493 * efiemu: Moved ...
18494 * grub-core/efiemu: ... to here.
18495 * font: Moved ...
18496 * grub-core/font: ... to here.
18497 * fs: Moved ...
18498 * grub-core/fs: ... to here.
18499 * gencmdlist.sh: Moved ...
18500 * grub-core/gencmdlist.sh: ... to here.
18501 * genemuinit.sh: Moved ...
18502 * grub-core/genemuinit.sh: ... to here.
18503 * genemuinitheader.sh: Moved ...
18504 * grub-core/genemuinitheader.sh: ... to here.
18505 * genfslist.sh: Moved ...
18506 * grub-core/genfslist.sh: ... to here.
18507 * genhandlerlist.sh: Moved ...
18508 * grub-core/genhandlerlist.sh: ... to here.
18509 * genmoddep.awk: Moved ...
18510 * grub-core/genmoddep.awk: ... to here.
18511 * genmodsrc.sh: Moved ...
18512 * grub-core/genmodsrc.sh: ... to here.
18513 * genpartmaplist.sh: Moved ...
18514 * grub-core/genpartmaplist.sh: ... to here.
18515 * genparttoollist.sh: Moved ...
18516 * grub-core/genparttoollist.sh: ... to here.
18517 * genterminallist.sh: Moved ...
18518 * grub-core/genterminallist.sh: ... to here.
18519 * gentrigtables.c: Moved ...
18520 * grub-core/gentrigtables.c: ... to here.
18521 * genvideolist.sh: Moved ...
18522 * grub-core/genvideolist.sh: ... to here.
18523 * gettext: Moved ...
18524 * grub-core/gettext: ... to here.
18525 * gfxmenu: Moved ...
18526 * grub-core/gfxmenu: ... to here.
18527 * gnulib: Moved ...
18528 * grub-core/gnulib: ... to here.
18529 * hello: Moved ...
18530 * grub-core/hello: ... to here.
18531 * hook: Moved ...
18532 * grub-core/hook: ... to here.
18533 * io: Moved ...
18534 * grub-core/io: ... to here.
18535 * kern: Moved ...
18536 * grub-core/kern: ... to here.
18537 * lib: Moved ...
18538 * grub-core/lib: ... to here.
18539 * loader: Moved ...
18540 * grub-core/loader: ... to here.
18541 * mmap: Moved ...
18542 * grub-core/mmap: ... to here.
18543 * normal: Moved ...
18544 * grub-core/normal: ... to here.
18545 * partmap: Moved ...
18546 * grub-core/partmap: ... to here.
18547 * parttool: Moved ...
18548 * grub-core/parttool: ... to here.
18549 * script: Moved ...
18550 * grub-core/script: ... to here.
18551 * term: Moved ...
18552 * grub-core/term: ... to here
18553 * tests/example_functional_test.c: Moved ...
18554 * grub-core/tests/example_functional_test.c: ... to here.
18555 * tests/lib/functional_test.c: Moved ...
18556 * grub-core/tests/lib/functional_test.c: ... to here.
18557 * tests/lib/test.c: Moved ...
18558 * grub-core/tests/lib/test.c: ... to here.
18559 * video: Moved ...
18560 * grub-core/video: ... to here.
18561
645586e6
BC
185622010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18563
18564 Replace --enable-grub-emu-modules with grub-emu-lite.
18565
18566 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18567 cache.S.
18568
18569 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18570 * kern/emu/full.c: New file. For grub-emu specific initialization.
18571 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18572 * kern/emu/main.c: Call initialization function grub_emu_init.
18573
18574 * Makefile.in: Include grub-emu-lite in install.
18575 * commands/parttool.c: Use grub_no_autoload to differentiate
18576 between grub-emu and grub-emu-lite.
18577 * include/grub/misc.h: New variable grub_no_autoload.
18578
18579 * conf/any-emu.rmk: New rules for grub-emu-lite.
18580 * configure.ac: Remove --enable-grub-emu-modules.
18581 * genmk.rb: Cleanup unnecessary rules.
18582 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18583
18584 * normal/main.c: Don't load list files on grub-emu-lite.
18585 * util/misc.c (grub_arch_sync_caches): Removed.
18586
f86a4030
CW
185872010-08-23 Colin Watson <cjwatson@ubuntu.com>
18588
18589 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18590 grub-mkimage rather than grub-mkelfimage.
18591 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18592
06776944
VS
185932010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18594
18595 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18596 a key after CapsLock or NumLock. It's just a qemu bug.
18597
df262419
VS
185982010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18599
18600 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18601 needed by libusb wrapper.
18602
b40ea81b
ST
186032010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18604
18605 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18606
dee50575
VS
186072010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18608
18609 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18610 --nounzip is passed.
18611
fb1d7b79
VS
186122010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18613
18614 USB hotunplugging and USB serial support.
18615
18616 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18617 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18618 (grub_uhci_transfer): Respect timeout and set *actual.
18619 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18620 non-standard length.
18621 (grub_usb_device_attach): Autoload modules.
18622 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18623 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18624 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18625 users updated.
18626 (grub_usb_add_hub): Fill nports and children.
18627 (attach_root_port): Receive hub instead of controller.
18628 All users updated. Fill hub->devices.
18629 (grub_usb_root_hub): Allocate hub->devices.
18630 (detach_device): New function.
18631 (poll_nonroot_hub): Fill children and detach devices.
18632 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18633 actual arguments. All users updated.
18634 (grub_usb_bulk_read_extended): New function.
18635 * bus/usb/serial/common.c: New file.
18636 * bus/usb/serial/ftdi.c: Likewise.
18637 * bus/usb/serial/pl2303.c: Likewise.
18638 * commands/terminal.c (handle_command): Support wildcard.
18639 * commands/usbtest.c: Output "Unknown" instead of empty string.
18640 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18641 (usbserial_common_mod_SOURCES): New variable.
18642 (usbserial_common_mod_CFLAGS): Likewise.
18643 (usbserial_common_mod_LDFLAGS): Likewise.
18644 (pkglib_MODULES): Add usbserial_pl2303.mod.
18645 (usbserial_pl2303_mod_SOURCES): New variable.
18646 (usbserial_pl2303_mod_CFLAGS): Likewise.
18647 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18648 (pkglib_MODULES): Add usbserial_ftdi.mod.
18649 (usbserial_ftdi_mod_SOURCES): New variable.
18650 (usbserial_ftdi_mod_CFLAGS): Likewise.
18651 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18652 (pkglib_MODULES): Add serial.mod.
18653 (serial_mod_SOURCES): New variable.
18654 (serial_mod_CFLAGS): Likewise.
18655 (serial_mod_LDFLAGS): Likewise.
18656 * conf/i386-pc.rmk: Likewise.
18657 * conf/mips-yeeloong.rmk: Likewise.
18658 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18659 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18660 * disk/usbms.c (first_available_slot): New variable.
18661 (grub_usbms_attach): Don't reuse free slots due to potential cache
18662 problems.
18663 * include/grub/serial.h: Moved to ..
18664 * include/grub/ns8250.h: ...this.
18665 * include/grub/serial.h: New file.
18666 * include/grub/term.h (grub_term_poll_usb): New variable.
18667 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18668 readkey. All users updated.
18669 (grub_terminfo_output_state): Pass term to put.
18670 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18671 (grub_usb_controller_dev): Add timeout and actual arguments to
18672 transfer. All users updated.
18673 (grub_usb_interface): New field detach_data.
18674 (grub_usb_device): New fields children and nports.
18675 (grub_usb_ep_type_t): New type.
18676 (grub_usb_get_ep_type): New function.
18677 (grub_usb_bulk_read_extended): Likewise.
18678 * include/grub/usbdesc.h (grub_usb_desc): New type.
18679 * include/grub/usbserial.h: New file.
18680 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18681 * kern/term.c (grub_term_poll_usb): New variable.
18682 (grub_getkey): Call grub_term_poll_usb if set.
18683 (grub_checkkey): Likewise.
18684 (grub_getkeystatus): Likewise.
18685 * term/serial.c: Moved controller-specific parts to ...
18686 * term/ns8250.c: ... here.
18687 * term/serial.c: Mostly rewritten.
18688 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18689 according to spec.
18690
21a313de
RM
186912010-08-20 Robert Millan <rmh@gnu.org>
18692
18693 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18694 a separate module and maybe other interesting combinations.
18695
18696 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18697 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18698 (kfreebsd_entry): Add generic filesystem module load routine.
18699 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18700
63c734a6
CW
187012010-08-20 Colin Watson <cjwatson@ubuntu.com>
18702
18703 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18704 "numcenter" (I misunderstood the purpose of this entry).
18705 * docs/grub.texi (sendkey): Likewise.
18706
c4d16542
CW
187072010-08-20 Colin Watson <cjwatson@ubuntu.com>
18708
18709 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18710 status flag options; simply omitting the option is equivalent and
18711 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18712 (keysym_table): Rename "num5numlock" to "numlock".
18713 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18714 can uniformly say that only the last of multiple `sendkey'
18715 invocations has any effect.
18716 * docs/grub.texi (sendkey): New section.
18717
93541d66
CW
187182010-08-19 Colin Watson <cjwatson@ubuntu.com>
18719
18720 * commands/i386/pc/sendkey.c (options): Fix three typos.
18721
b4ece5e1
VS
187222010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18723
18724 Implement sendkey support.
18725
18726 * commands/i386/pc/sendkey.c: New file.
18727 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18728 (sendkey_mod_SOURCES): New variable.
18729 (sendkey_mod_CFLAGS): Likewise.
18730 (sendkey_mod_LDFLAGS): Likewise.
18731
51f1f5af
CW
187322010-08-18 Colin Watson <cjwatson@ubuntu.com>
18733
18734 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18735 fix warnings from Autoconf.
18736
9da94e05
CW
187372010-08-18 Colin Watson <cjwatson@ubuntu.com>
18738
18739 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18740 to avoid false positives with some assemblers that output things
18741 like "someprefix_func" as part of their output.
18742
729a0f2e
RM
187432010-08-15 Robert Millan <rmh@gnu.org>
18744
18745 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18746 errors.
18747 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18748 grub_get_libzfs_handle() errors.
18749
f3710e08
RM
187502010-08-14 Robert Millan <rmh@gnu.org>
18751
18752 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18753 filesystem is not ZFS.
18754
7a3c13de
BC
187552010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18756
18757 Fix for misspelled color names defaulting to black/black (bug
18758 reported by Doug Nazar)
18759
18760 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18761 status to prototype.
18762 * normal/color.c (grub_parse_color_name_pair): Return failure
18763 status.
18764 (grub_env_write_color_normal): Ignore bad color names.
18765 (grub_env_write_color_highlight): Likewise.
18766 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18767
ab8ba50d
BC
187682010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18769
18770 "shift" command support to GRUB script.
18771
18772 * include/grub/script_sh.h (grub_script_shift): New prototype.
18773 * script/execute.c (grub_script_shift): New function.
18774 * script/main.c (grub_script_init): Register shift command.
18775 (grub_script_fini): Unregister shift command.
18776 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18777
18778 * tests/grub_script_shift.in: New testcase.
18779 * conf/tests.rmk: Rules for new testcase.
18780
4d61999e
BC
187812010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18782
18783 "continue" command support to GRUB script.
18784
18785 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18786 (grub_script_break): Continue support.
18787 * script/main.c (grub_script_init): Register continue command.
18788 (grub_script_fini): Unregister continue command.
18789
18790 * tests/grub_script_continue.in: New testcase.
18791 * conf/tests.rmk: Rules for new testcase.
18792
4df51e00
BC
187932010-08-12 BVK Chaitanya <bvk@dbook>
18794
18795 "break" command support to GRUB script.
18796
18797 * conf/common.rmk: Rule updates to grub-script-check.
18798 * include/grub/misc.h (grub_min): New function.
18799 * include/grub/script_sh.h (grub_script_init): New prototype.
18800 (grub_script_fini): New prototype.
18801 (grub_script_break): New prototype.
18802 * script/main.c (grub_script_init): New function.
18803 (grub_script_fini): New function.
18804 * script/execute.c (grub_script_break): New function.
18805 * normal/main.c: Calls to grub_script_{init,fini}.
18806 * util/grub-script-check.c (grub_script_break): New function.
18807
18808 * tests/grub_script_break.in: New testcase.
18809 * conf/tests.rmk: Rules for new test case.
18810
f12c8420
BC
188112010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18812
18813 Function parameters support to GRUB script.
18814
18815 * script/yylex.l (VARIABLE): Regular expression update.
18816 * script/function.c (grub_script_function_call): Moved ...
18817 * script/execute.c (grub_script_function_call): ... to here.
18818 (grub_script_execute_arglist_to_argv): Removed.
18819 (grub_script_arglist_to_argv): New function.
18820 * script/argv.c: New file.
18821 (grub_script_argv_free): New function.
18822 (grub_script_argv_next): Likewise.
18823 (grub_script_argv_append): Likewise.
18824 (grub_script_argv_split_append): Likewise.
18825 * include/grub/script_sh.h (grub_script_argv): New struct.
18826 (grub_script_argv_free): New function.
18827 (grub_script_argv_next): Likewise.
18828 (grub_script_argv_append): Likewise.
18829 (grub_script_argv_split_append): Likewise.
18830
18831 * conf/common.rmk (normal.mod): New source script/argv.c.
18832
18833 * tests/grub_script_echo1.in: More tests.
18834 * tests/grub_script_vars1.in: Likewise.
18835 * tests/grub_script_functions.in: New test case.
18836 * conf/tests.rmk: Rules for new testcase.
18837
8022b748
BC
188382010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18839
18840 Remove grub_script_cmdblock struct.
18841
18842 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18843 * script/parser.y: Likewise.
18844 * script/execute.c: Rename cmdblock suffix to cmdlist.
18845 * script/script.c: Likewise.
18846 * util/grub-script-check.c: Likewise.
18847
79a6ba61
YB
188482010-08-11 Yves Blusseau <blusseau@zetam.org>
18849
18850 * .bzrignore: add grub-macho2img
18851
d04b9414
VS
188522010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18853
18854 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18855
f947ab49
VS
188562010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18857
18858 Remove the dump of sm712 initialisation sequence.
18859
18860 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18861 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18862 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18863 (GRUB_VGA_CR_*): Added many registers.
18864 (GRUB_VGA_SR_*): Likewise.
18865 (GRUB_VGA_GR_*): Likewise.
18866 (grub_vga_write_arx): New function.
18867 (grub_video_hw_config): New struct.
18868 (grub_vga_set_geometry): New function.
18869 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18870 GRUB_PCI_CLASS_SUBCLASS_VGA.
18871 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18872 * video/sm712.c (grub_sm712_write_reg): New function
18873 (grub_sm712_read_reg): Likewise.
18874 (grub_sm712_sr_write): Likewise.
18875 (grub_sm712_gr_write): Likewise.
18876 (grub_sm712_cr_write): Likewise.
18877 (grub_sm712_write_arx): Likewise.
18878 (grub_sm712_cr_shadow_write): Likewise.
18879 (grub_sm712_write_dda_lookup): Likewise.
18880 (grub_video_sm712_setup): Initialise the video rather then
18881 blindly replay the dump.
18882 (main) [TEST]: Add a routine to be able to compile as standalone for
18883 tests.
18884 * video/sm712_init.c (sm712_init): Removed.
18885 (sm712_sr_seq1): New array.
18886 (sm712_sr_seq2): Likewise.
18887
f0206638
VS
188882010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18889
18890 * include/grub/vga.h: Add missing grub/pci.h include.
18891
2764da3b
YB
188922010-08-10 Yves Blusseau <blusseau@zetam.org>
18893
18894 * util/grub-macho2img.c (main): fix typo
18895
cf0c775e
VS
188962010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18897
18898 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18899 (grub_vga_gr_read): Likewise.
18900 (grub_vga_cr_write): Likewise.
18901 (grub_vga_cr_read): Likewise.
18902 (grub_vga_sr_write): Likewise.
18903 (grub_vga_sr_read): Likewise.
18904 (grub_vga_palette_read): Likewise.
18905 (grub_vga_palette_write): Likewise.
18906 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18907 (grub_sm712_sr_read): New function.
18908 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18909 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18910
07f360e9
RM
189112010-08-09 Robert Millan <rmh@gnu.org>
18912
18913 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18914 out unused variables on non-ZFS build.
18915
346c2072
RM
189162010-08-08 Robert Millan <rmh@gnu.org>
18917
18918 Fix path generation for sub-filesystems in ZFS.
18919
18920 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18921 missing slash.
18922
71175420
RM
189232010-08-08 Robert Millan <rmh@gnu.org>
18924
18925 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18926
0d8286f3
RM
189272010-08-08 Robert Millan <rmh@gnu.org>
18928
18929 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18930 exist, issue a proper error message (rely on `ls' for translated
18931 strings).
18932
55dd2924
RM
189332010-08-08 Robert Millan <rmh@gnu.org>
18934
18935 Fix grub-probe invocation.
18936
18937 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18938
d3dd9e80
RM
189392010-08-04 Robert Millan <rmh@gnu.org>
18940
18941 * configure.ac: Remove checks for getfsstat() and getmntany().
18942 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18943 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18944 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18945 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18946 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18947 function.
18948 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18949 via find_mount_point_from_dir() and getfsstat() / getmntany().
18950
0de22aa9
RM
189512010-08-04 Robert Millan <rmh@gnu.org>
18952
18953 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18954 (grub_find_zpool_from_mount_point): Merge into ...
18955 (grub_find_zpool_from_dir): ... this.
18956 * kern/emu/misc.c: Likewise.
18957
18958 * kern/emu/misc.c
18959 (grub_make_system_path_relative_to_its_root): Replace
18960 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18961 with grub_find_zpool_from_dir().
18962 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18963
62858144
RM
189642010-08-04 Robert Millan <rmh@gnu.org>
18965
18966 Support OpenSolaris in ZFS device resolution.
18967
18968 * configure.ac: Check for getmntany().
18969 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18970 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18971 support.
18972
9dd6fd50
RM
189732010-08-03 Robert Millan <rmh@gnu.org>
18974
18975 Fix grub-emu build.
18976
18977 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18978 * include/grub/emu/misc.h: ... here.
18979
18980 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18981 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18982
18983 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18984 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18985 (grub_get_libzfs_handle): Move to ...
18986 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18987 (grub_get_libzfs_handle): ... here.
18988
c9f7ff97
BC
189892010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18990
18991 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18992 as command name case.
18993
a870a783
CW
189942010-08-02 Colin Watson <cjwatson@ubuntu.com>
18995
18996 * disk/raid.c (insert_array): Select unique numbers for named arrays
18997 as well, for use as keys in the disk cache.
18998
c7db243b
RM
189992010-08-01 Robert Millan <rmh@gnu.org>
19000
19001 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19002 kFreeBSD device name, except on ZFS where the filesystem label is
19003 used.
19004 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19005 `/boot/zfs/zpool.cache'.
19006 Set mountfrom kernel variable using ${kfreebsd_device}.
19007
f7abdefb
RM
190082010-08-01 Robert Millan <rmh@gnu.org>
19009
19010 Make it even harder to use uninitialized `libzfs_handle' (and
19011 make the interface a bit simpler).
19012
19013 * include/grub/util/misc.h (grub_util_init_libzfs)
19014 (libzfs_handle): Remove.
19015 (grub_get_libzfs_handle): New prototype.
19016
19017 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19018 attribute.
19019 (grub_util_init_libzfs): Remove.
19020 (grub_get_libzfs_handle): New function.
19021
19022 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19023 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19024 accessing `libzfs_handle' directly.
19025
c882acc0
RM
190262010-08-01 Robert Millan <rmh@gnu.org>
19027
19028 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19029 (grub_find_zpool_from_mount_point): New function prototypes.
19030
19031 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19032 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19033
19034 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19035 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19036 `static' attribute.
19037
19038 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19039 finding zpool from mount point into ...
19040 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19041
19042 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19043 requested path is part of a ZFS pool, use
19044 grub_find_zpool_from_mount_point() to detect its filesystem name,
19045 and generate a path with `/fsname@path' syntax.
19046
8bfe31d8
CW
190472010-08-01 Colin Watson <cjwatson@ubuntu.com>
19048
19049 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19050 (void) rather than () so that this is a proper prototype.
19051
553df63d
VS
190522010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19053
19054 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19055
8687cf07
VS
190562010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19057
19058 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19059 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19060
ea9be8ea
CW
190612010-08-01 Colin Watson <cjwatson@ubuntu.com>
19062
19063 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19064
6eea041a
CW
190652010-08-01 Colin Watson <cjwatson@ubuntu.com>
19066
19067 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19068
2cfb45df
CW
190692010-08-01 Colin Watson <cjwatson@ubuntu.com>
19070
19071 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19072 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19073 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19074 disable gfxpayload.
19075 (Shell-like scripting): Add real content.
19076 (Serial terminal): Suggest `terminal_input serial; terminal_output
19077 serial' rather than putting the two commands on separate lines,
19078 since console input will be inoperative after the first command.
19079 (menuentry): Document --class, --users, and --hotkey options.
19080 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19081 Vladimir Serbinenko).
19082
7decd202
VS
190832010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
190842010-08-01 Colin Watson <cjwatson@ubuntu.com>
19085
19086 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19087
c882acc0
RM
190882010-08-01 Robert Millan <rmh@gnu.org>
19089
19090 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19091 (grub_find_zpool_from_mount_point): New function prototypes.
19092
19093 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19094 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19095
19096 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19097 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19098 `static' attribute.
19099
19100 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19101 finding zpool from mount point into ...
19102 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19103
19104 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19105 requested path is part of a ZFS pool, use
19106 grub_find_zpool_from_mount_point() to detect its filesystem name,
19107 and generate a path with `/fsname@path' syntax.
19108
deb0caa3
RM
191092010-08-01 Robert Millan <rmh@gnu.org>
19110
19111 Prevent accidental use of uninitialized libzfs_handle.
19112
19113 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19114 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19115 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19116
ce04ef47
CW
191172010-08-01 Colin Watson <cjwatson@ubuntu.com>
19118
19119 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19120 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19121
ebf53056
RM
191222010-08-01 Robert Millan <rmh@gnu.org>
19123
19124 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 19125
3710bb6b
RM
191262010-07-31 Robert Millan <rmh@gnu.org>
19127
19128 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19129
8072efeb
RM
191302010-07-31 Robert Millan <rmh@gnu.org>
19131
19132 * kern/emu/misc.c: Add missing license header.
19133
3169f4c7
RM
191342010-07-31 Robert Millan <rmh@gnu.org>
19135
19136 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19137
19138 * include/grub/util/libnvpair.h: Include `<config.h>'.
19139 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19140 declaring libnvpair prototypes ourselves.
19141 * include/grub/util/libzfs.h: Include `<config.h>'.
19142 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19143 declaring libzfs prototypes ourselves.
19144
19145 (libzfs_handle): Moved to ...
19146 * include/grub/util/misc.h (libzfs_handle): ... here.
19147 Include `<grub/util/libzfs.h>'.
19148
c9a00aee
RM
191492010-07-30 Robert Millan <rmh@gnu.org>
19150
19151 * include/grub/emu/misc.h: Add missing license header.
19152
a184f9c8
RM
191532010-07-30 Robert Millan <rmh@gnu.org>
19154
19155 Enable `grub-probe -t device' resolution on ZFS.
19156
19157 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19158 * include/grub/util/libnvpair.h: New file.
19159 * include/grub/util/libzfs.h: New file.
19160
19161 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19162 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19163 `<grub/util/libnvpair.h>'.
19164 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19165
19166 (find_mount_point_from_dir): New static function.
19167 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19168 function.
19169 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19170 find_root_device_from_libzfs() before ressorting to find_root_device().
19171
19172 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19173 prototype.
19174 * util/misc.c: Include `<grub/util/libzfs.h>'.
19175 (grub_util_init_libzfs): New function.
19176 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19177 [HAVE_LIBZFS] (fini_libzfs): New static function.
19178 (grub_util_init_libzfs): New function.
19179 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19180
f7790cdd
RM
191812010-07-30 Robert Millan <rmh@gnu.org>
19182
19183 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19184 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19185 `warn_unused_result' attribute.
19186 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19187 (grub_xasprintf, grub_xvasprintf): Likewise.
19188 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19189
0806b63c
RM
191902010-07-29 Robert Millan <rmh@gnu.org>
19191
19192 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19193 (probe): Handle `PRINT_FS_LABEL'.
19194 (main): Handle `-t fs_label'.
19195
9f841f5c
RM
191962010-07-29 Robert Millan <rmh@gnu.org>
19197
19198 * configure.ac: Remove grub-mkisofs checks.
19199
46371121
VS
192002010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19201
19202 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19203 Reported by: Lennart Sorensen.
19204
192052010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19206
19207 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19208 prior to terminal_input/terminal_output separation. It's been over 1.5
19209 years and those versions weren't widely deployed.
19210
a9600892
CW
192112010-07-22 Colin Watson <cjwatson@ubuntu.com>
19212
19213 * disk/raid.c (insert_array): Don't count named arrays when looking
19214 for unused array numbers.
697e053c 19215 Reported and tested by: Michael Guntsche.
a9600892 19216
c03507df
CW
192172010-07-20 Colin Watson <cjwatson@ubuntu.com>
19218
19219 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19220 implementation of this so that grub-emu links again, with a note
19221 that this should support hotplugging in the future.
19222
b26f1c11
CW
192232010-07-20 Colin Watson <cjwatson@ubuntu.com>
19224
19225 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19226
efc9d7f1
CW
192272010-07-20 Colin Watson <cjwatson@ubuntu.com>
19228
19229 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19230 handle on failure.
19231 (grub_loopback_close): Remove empty function.
19232 (grub_loopback_dev): Remove close method.
19233
dd8ff5c9
CW
192342010-07-20 Colin Watson <cjwatson@ubuntu.com>
19235
19236 Disable EFI cursor when the EFI console becomes inactive.
19237
19238 * term/efi/console.c (grub_efi_console_init): New function.
19239 (grub_efi_console_fini): New function.
19240 (grub_console_term_output): Register init and fini methods.
19241
5e3bec67
VS
192422010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19243
19244 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19245 sh script.
19246
afaec079
VS
192472010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19248
19249 * disk/loopback.c (grub_loopback): Replace filename with file.
19250 (delete_loopback): Handle new semantics.
19251 (grub_cmd_loopback): Likewise.
19252 (grub_loopback_iterate): Likewise.
19253 (grub_loopback_close): Likewise.
19254
a6a11f3c
VS
192552010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19256
19257 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19258 with -p "".
19259 Reported by: Tito Keitel.
19260
64a638b0
VS
192612010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19262
19263 * docs/grub.texi (Naming convention): Document new naming convention.
19264
ab8ba957
VS
192652010-07-20 Vadim Solomin <vadic052@gmail.com>
192662010-07-20 Colin Watson <cjwatson@ubuntu.com>
19267
19268 Generate device.map in something closer to the old ordering.
19269
19270 * util/deviceiter.c (struct device): New declaration.
19271 (compare_file_names): Rename to ...
19272 (compare_devices): ... this. Sort by kernel name in preference to
19273 the stable by-id name, but keep the latter as a fallback comparison.
19274 Update header comment.
19275 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19276 of `struct device' rather than of plain file names.
19277
a29d6a4b
TF
192782010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19279
19280 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19281 on i386.
19282
39d824e8
VS
192832010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19284
19285 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19286 hardcoding size.
19287 (setv1table): Likewise.
19288
f058276b
FZ
192892010-07-20 Colin Watson <cjwatson@ubuntu.com>
19290
19291 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19292 removing the homehost if present.
19293 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19294 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19295 removing the homehost if present.
19296 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19297 if possible.
19298 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19299
19300 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19301 parameter. Set its pointer target to 0.
19302 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19303 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19304 `data_offset' value from the superblock for 1.x metadata.
19305 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19306 data on the device.
19307 (insert_array): Record the start sector of data on the device.
19308 (grub_raid_register): Pass start_sector parameters to
19309 grub_raid_list->detect and insert_array.
19310 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19311 member.
19312 (struct grub_raid): Add start_sector parameter to `detect'.
19313
19314 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19315 __attribute__ ((packed)), leaving a comment.
19316 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19317 (grub_mdraid_detect_09): ... here and ...
19318 (grub_mdraid_detect_1x): ... here.
19319
193202010-07-20 Peter Henn <peter.henn@web.de>
19321
19322 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19323 chunk size and disk size, which are already given as sector counts
19324 as distinct from the 0.90 units. Fetch the correct device number
19325 from the role table instead of using the table index.
19326
193272010-07-20 Felix Zielcke <fzielcke@z-51.de>
19328
19329 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19330 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19331 (WriteMostly1): New macro.
19332 Set array->name to NULL for metadata format 0.90. Add support for
19333 metadata 1.x. Fix some comments.
19334 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19335 few comments.
19336 * util/getroot.c (grub_util_get_grub_dev): Add support for
19337 /dev/md/name style devices.
19338
4b761da9
CW
193392010-07-20 Colin Watson <cjwatson@ubuntu.com>
19340
19341 * .bzrignore: Ignore 20_linux_xen.
19342
5771289a
CW
193432010-07-17 Colin Watson <cjwatson@ubuntu.com>
19344
19345 * util/import_unicode.py: Remove unnecessary imports.
19346
5dab68df
AN
193472010-07-17 Aleš Nesrsta <starous@volny.cz>
19348
19349 Hotplugging and USB hub support.
19350
19351 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19352 (grub_ohci): Likewise.
19353 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19354 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19355 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19356 (GRUB_OHCI_CTRL_EDS): Likewise.
19357 (GRUB_OHCI_BULK_EDS): Likewise.
19358 (GRUB_OHCI_TDS): Likewise.
19359 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19360 (grub_ohci_ed_phys2virt): New function.
19361 (grub_ohci_virt_to_phys): Likewise.
19362 (grub_ohci_td_phys2virt): Likewise.
19363 (grub_ohci_td_virt2phys): Likewise.
19364 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19365 attachment.
19366 (grub_ohci_find_ed): New function.
19367 (grub_ohci_alloc_td): Likewise.
19368 (grub_ohci_free_td): Likewise.
19369 (grub_ohci_free_tds): Likewise.
19370 (grub_ohci_transfer): Use previously allocated memory.
19371 (grub_ohci_portstatus): Reset status changed bit.
19372 (grub_ohci_detect_dev): Supply status changed.
19373 (grub_ohci_fini_hw): Free memory.
19374 (grub_ohci_restore_hw): Reallocate memory.
19375 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19376 Reset status change.
19377 (grub_uhci_detect_dev): Supply status_change.
19378 * bus/usb/usb.c (attach_hooks): New var.
19379 (grub_usb_device_attach): New function.
19380 (grub_usb_register_attach_hook_class): Likewise.
19381 (grub_usb_unregister_attach_hook_class): Likewise.
19382 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19383 (grub_usb_add_hub): Reset connection changed bit.
19384 (attach_root_port): New function.
19385 (grub_usb_root_hub): Likewise.
19386 (poll_nonroot_hub): Likewise.
19387 (grub_usb_poll_devices): Likewise.
19388 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19389 * disk/usbms.c (grub_usbms_open): Use device hooks.
19390 (grub_usbms_iterate) :Poll devices.
19391 (grub_usbms_finddevs): Split into ...
19392 (grub_usbms_attach): ... this ...
19393 (grub_usbms_attach): ... and this.
19394 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19395 in detect_dev.
19396 (grub_usb_interface): New fields attached and detach_hook.
19397 (grub_usb_attach_hook_class): New type.
19398 (grub_usb_attach_desc): New struct.
19399 (grub_usb_register_attach_hook_class): New function.
19400 (grub_usb_unregister_attach_hook_class): Likewise.
19401 (grub_usb_poll_devices): Likewise.
19402 (grub_usb_device_attach): Likewise.
19403 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19404 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19405
3222efaf
VS
194062010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19407
19408 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19409 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19410 delta determination style. Works with most NetBSD partitions too.
19411
139b714a
VS
194122010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19413
19414 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19415 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19416
986aad56
VS
194172010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19418
19419 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19420
99be513c
AB
194212010-07-14 Anton Blanchard <anton@samba.org>
19422
19423 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19424 ET_DYN files.
19425
18075f62
GS
194262010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19427
19428 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19429
8d9a5b15
GS
194302010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19431
19432 * kern/partition.c (grub_partition_check_containment): New function to
19433 check that a partition is physically contained in a parent. Since
19434 offsets are relative (and non-negative), this reduces to checking that
19435 the partition ends before its parent.
19436 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19437 (grub_partition_iterate): Likewise.
19438 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19439 comments.
19440 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19441 partitions that start before their parent, and add debug printfs.
19442
19563c25
CW
194432010-07-13 Colin Watson <cjwatson@ubuntu.com>
19444
19445 * Makefile.in (.SUFFIX): Spell correctly, as ...
19446 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19447 bare module name without `.mod', e.g. `test') tried to invoke a
19448 Modula-2 compiler.
19449
1a1f1e67
CW
194502010-07-13 Colin Watson <cjwatson@ubuntu.com>
19451
19452 * README: Point to the Info manual.
19453
811b0dca
JS
194542010-07-13 Jiro SEKIBA <jir@unicus.jp>
19455
19456 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19457 2nd superblock position from partition size.
19458
e4f4eafc
CW
194592010-07-10 Colin Watson <cjwatson@ubuntu.com>
19460
19461 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19462 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19463 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19464 outputs.
19465
4274c30f
VS
194662010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19467
19468 Restructure SCSI .id handling.
19469 Reported and tested by: Aleš Nesrsta.
19470
19471 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19472 (grub_atapi_dev): Changed .name to "ata". New field .id.
19473 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19474 (grub_usbms_dev): New field .id.
19475 * disk/scsi.c (grub_scsi_iterate): Generate name.
19476 (grub_scsi_open): Parse name.
19477 * include/grub/scsi.h (grub_make_scsi_id): New function.
19478 (grub_scsi_dev): Change iterate and open to number instead of naming
19479 busses. All users updated.
19480 (grub_scsi): Remove name. Add .bus.
19481
5bc24388
VS
194822010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19483
19484 * commands/help.c (grub_cmd_help): Fix a typo.
19485
249975ba
VS
194862010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19487
19488 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19489 Reported and tested by: Colin Watson.
19490
3eaac1a1
VS
194912010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19492
19493 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19494 in this context.
19495
becce1b1
VS
194962010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19497
19498 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19499
f7bf0918
CW
195002010-07-07 Colin Watson <cjwatson@ubuntu.com>
19501
19502 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19503 indentation.
19504
0b0f9620
CW
195052010-07-06 Colin Watson <cjwatson@ubuntu.com>
19506
19507 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19508 and disk/raid6_recover.c.
19509 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19510 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19511
1e545469
CW
195122010-07-06 Colin Watson <cjwatson@ubuntu.com>
19513
19514 * term/gfxterm.c (repaint_schedulded): Rename to ...
19515 (repaint_scheduled): ... this. Update all callers.
19516 (repaint_was_schedulded): Rename to ...
19517 (repaint_was_scheduled): ... this. Update all callers.
19518
5357687a
CW
195192010-07-06 Colin Watson <cjwatson@ubuntu.com>
19520
19521 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19522 which we expect to be handled by upper layers.
19523
29d7e783
BC
195242010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19525
19526 * bus/usb/usbhub.c: #include time.h header.
19527
37582066
CW
195282010-07-06 Colin Watson <cjwatson@ubuntu.com>
19529
19530 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19531 entry_name also for entries without stat blocks (e.g. ".."); fixes
19532 corruption of the first entry in a directory.
19533
c8c06953
CW
195342010-07-06 Colin Watson <cjwatson@ubuntu.com>
19535
19536 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19537 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19538 doesn't work otherwise.
19539
e75056f1
CW
195402010-07-05 Colin Watson <cjwatson@ubuntu.com>
19541
19542 * docs/grub.texi (Features): Update list of supported file systems.
19543 (GNU/Linux): Update for GRUB 2.
19544 (Serial terminal): Remove mention of --disable-serial, which was a
19545 GRUB Legacy configure option. Update instructions to use
19546 `terminal_input' and `terminal_output' rather than `terminal'.
19547 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19548 configuration' and `Installing GRUB using grub-install'.
19549 (Menu entry editor): Update for GRUB 2.
19550 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19551 Document new -a, -u, and -v options.
19552 (initrd): New section.
19553 (initrd16): New section.
19554 (linux): New section.
19555 (linux16): New section.
19556 (search): The `var' argument to `--set' is optional.
19557 (GRUB only offers a rescue shell): Go into a little more detail on
19558 drive ordering.
19559
5cf69151
CW
195602010-07-05 Colin Watson <cjwatson@ubuntu.com>
19561
19562 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19563
e3f90044
CW
195642010-07-05 Colin Watson <cjwatson@ubuntu.com>
19565
19566 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19567 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19568
38d8f4f3
CW
195692010-07-05 Colin Watson <cjwatson@ubuntu.com>
19570
19571 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19572 install_prefix, in line with install_dos_part and install_bsd_part.
19573 Add new prefix variable, which is copied to install_prefix after
19574 comparing core.img in memory with the one read from disk in the
19575 no-embedding case, and use that rather than overwriting
19576 install_prefix immediately when installing to a partition.
19577 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19578 Bicakci.
19579
57ebd41e
GS
195802010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19581
19582 * configure.ac: Avoid == in test command, it's not portable.
19583 * util/grub.d/30_os-prober.in: Likewise.
19584
cb7f64b2
CW
195852010-07-04 Colin Watson <cjwatson@ubuntu.com>
19586
19587 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19588
6b654bb0
GS
195892010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19590
19591 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19592 multiple (top-level) partmaps.
19593
72a2026d
VS
195942010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19595
19596 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 19597 Reported by: Tino Keitel.
72a2026d 19598
df3eb88f
VS
195992010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19600
19601 Bidi and diacritics support.
19602
19603 * Makefile.in (widthspec.bin): New target.
19604 (widthspec.h): Likewise.
19605 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19606 * autogen.sh: Generate unidata.c.
19607 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19608 * commands/ls.c (grub_ls_list_devices): Likewise.
19609 (grub_ls_list_files): Likewise.
19610 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19611 (grub_mini_cmd_lsmod): Likewise.
19612 * commands/read.c: Likewise.
19613 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19614 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19615 * lib/arg.c (grub_arg_show_help): Likewise.
19616 * lib/crypto.c (grub_password_get): Likewise.
19617 * normal/auth.c (grub_username_get): Likewise.
19618 * normal/misc.c (grub_normal_print_device_info): Likewise.
19619 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19620 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19621 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19622 (normal/charset.c_DEPENDENCIES): New variable.
19623 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19624 (pkglib_MODULES): Remove charset.mod.
19625 (charset_mod_SOURCES): Removed.
19626 (charset_mod_CFLAGS): Likewise.
19627 (charset_mod_LDFLAGS): Likewise.
19628 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19629 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19630 and term/tparm.c.
19631 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19632 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19633 (kernel_img_HEADERS): Add terminfo.h.
19634 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19635 Fill ->font. Reverse ascii bitmaps.
19636 (grub_font_get_xheight): New function.
19637 * font/font.c (grub_font_get_string_width): Moved from here ...
19638 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19639 * font/font.c (grub_font_draw_string): Moved from here ...
19640 * gfxmenu/font.c (grub_font_draw_string): ... here.
19641 * font/font.c (grub_font_dup_glyph): New function.
19642 (grub_font_blit_glyph): Likewise.
19643 (grub_font_blit_glyph_mirror): Likewise.
19644 (blit_comb): Likewise.
19645 (grub_font_construct_dry_run): Likewise.
19646 (grub_font_get_constructed_device_width): Likewise.
19647 (grub_font_construct_glyph): Likewise.
19648 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19649 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19650 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19651 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19652 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19653 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19654 (grub_font_get_xheight): New proto.
19655 (grub_font_get_constructed_device_width): Likewise.
19656 (grub_font_construct_glyph): Likewise.
19657 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19658 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19659 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19660 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19661 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19662 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19663 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19664 (grub_console_getcharwidth): Likewise.
19665 * include/grub/misc.h (grub_xputs): New proto.
19666 (grub_puts): Inlined.
19667 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19668 (grub_normal_get_line_counter): Removed.
19669 (grub_install_newline_hook): Likewise.
19670 (grub_normal_get_char_counter): New proto.
19671 (grub_normal_reset_more): Likewise.
19672 (grub_xputs_normal): Likewise.
19673 * include/grub/powerpc/ieee1275/console.h: Removed.
19674 * include/grub/sparc64/ieee1275/console.h: Likewise.
19675 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19676 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19677 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19678 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19679 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19680 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19681 (grub_term_input): Pass reference to self. All users updated.
19682 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19683 Pass reference to self. New fields normal_color, highlight_color and
19684 data. All users updated.
19685 (grub_putchar): Removed.
19686 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19687 (grub_unicode_estimate_width): New function.
19688 (grub_term_getcharwidth): Add defaults.
19689 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19690 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19691 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19692 (grub_cls): Remove EXPORT_FUNC.
19693 (grub_setcolorstate): Inline.
19694 (grub_newline_hook): Removed.
19695 * include/grub/terminfo.h: Rewritten. All users updated.
19696 * include/grub/unicode.h: New file.
19697 * include/grub/video.h (grub_video_signed_rect): New type.
19698 * kern/emu/console.c (grub_console_highlight_color): Removed.
19699 (grub_console_normal_color): Likewise.
19700 (grub_console_standard_color): Made static.
19701 (grub_ncurses_putchar): Remove mapping.
19702 (grub_ncurses_getcharwidth): Removed.
19703 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19704 (grub_ncurses_setcolor): Removed.
19705 (grub_ncurses_getcolor): Likewise.
19706 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19707 (grub_console_putchar): ... this.
19708 (grub_console_putchar): Handle argument difference.
19709 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19710 console_init_early and console_init_lately.
19711 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19712 * kern/misc.c (grub_puts): Removed.
19713 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19714 (grub_vsnprintf_real): Remove str = NULL support.
19715 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19716 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19717 * kern/term.c (grub_putcode): Renamed to ...
19718 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19719 (grub_putchar): Removed.
19720 (grub_xputs_dumb): New function.
19721 (grub_xputs): New variable.
19722 * lib/charset.c: Move from here ...
19723 * normal/charset.c: ... to here.
19724 (grub_ucs4_to_utf8): New function.
19725 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19726 (join_types): New variable.
19727 (unpack_join): New function.
19728 (bidi_types): New variable.
19729 (unpack_bidi): New function.
19730 (get_bidi_type): Likewise.
19731 (get_join_type): Likewise.
19732 (is_mirrored): Likewise.
19733 (grub_unicode_get_comb_type): Likewise.
19734 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19735 (is_type_after): Likewise.
19736 (grub_unicode_aglomerate_comb): Likewise.
19737 (bidi_line_wrap): Likewise.
19738 (grub_bidi_line_logical_to_visual): Likewise.
19739 (grub_bidi_logical_to_visual): Likewise.
19740 (grub_unicode_mirror_code): Likewise.
19741 (grub_unicode_shape_code): Likewise.
19742 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19743 Don't use grub_putchar.
19744 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19745 (grub_normal_reader_init): Likewise.
19746 (grub_xputs_saved): New variable.
19747 (GRUB_MOD_INIT): Set grub_xputs.
19748 (GRUB_MOD_FINI): Restore grub_xputs.
19749 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19750 (menu_init): Avoid printing gfxmenu error.
19751 (show_menu): Use grub_normal_get_char_counter.
19752 * normal/menu_entry.c (update_screen): Fix out-of-array.
19753 (complete): Avoid NULL dereferencing.
19754 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19755 * normal/menu_text.c (print_spaces): Removed.
19756 (grub_print_ucs4): Likewise.
19757 (grub_print_message_indented): Use grub_print_ucs4.
19758 (print_message): Use grub_putcode.
19759 (print_entry): Hanlde diacritics.
19760 * normal/term.c (term_state): New type.
19761 (grub_more_lines): Removed.
19762 (term_states): New variable.
19763 (grub_normal_line_counter): Renamed to ..
19764 (grub_normal_char_counter): ...this. All users updated.
19765 (grub_normal_get_line_counter): Renamed to ...
19766 (grub_normal_get_char_counter): ... this.
19767 (grub_normal_reset_more): New function.
19768 (process_newline): Removed.
19769 (print_more): New function.
19770 (grub_install_newline_hook): Removed.
19771 (map_code): New function.
19772 (grub_puts_terminal): Use grub_print_ucs4.
19773 (putglyph): New function.
19774 (putcode_real): Likewise.
19775 (grub_putcode): Use putcode_real.
19776 (get_maxwidth): New function.
19777 (get_startwidth): Likewise.
19778 (print_ucs4_terminal): Likewise.
19779 (find_term_state): Likewise.
19780 (put_glyphs_terminal): Likewise.
19781 (print_backlog): Likewise.
19782 (print_ucs4_real): Likewise.
19783 (grub_print_ucs4): Likewise.
19784 (grub_xputs_normal): Likewise.
19785 * term/efi/console.c (grub_console_putchar): Output diacritics.
19786 (grub_console_getcharwidth): Removed.
19787 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19788 * term/gfxterm.c (clear_char): Free chars.
19789 (scroll_up): Avoid leaking memory.
19790 (grub_gfxterm_putchar): Support diacritics.
19791 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19792 * term/i386/pc/console.c (grub_console_term_output): Declare as
19793 GRUB_TERM_CODE_TYPE_VGA.
19794 * term/i386/pc/vga.c (grub_vga_term): Declare as
19795 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19796 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19797 GRUB_TERM_CODE_TYPE_VGA.
19798 * term/i386/vga_common.c (map_char): Removed.
19799 (grub_console_putchar): Likewise.
19800 (grub_console_getcharwidth): Likewise.
19801 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19802 (colors): Reordered to match terminfo.
19803 (grub_ofconsole_normal_color): Removed.
19804 (grub_ofconsole_writeesc): Likewise.
19805 (grub_ofconsole_highlight_color): Likewise.
19806 (grub_ofconsole_getcharwidth): Likewise.
19807 (grub_ofconsole_setcolorstate): Likewise.
19808 (grub_ofconsole_setcolor): Likewise.
19809 (grub_ofconsole_getcolor): Likewise.
19810 (grub_ofconsole_readkey): Renamed to ...
19811 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19812 key.
19813 (grub_ofconsole_checkkey): Removed.
19814 (grub_ofconsole_getkey): Likewise.
19815 (grub_ofconsole_getxy): Likewise.
19816 (grub_ofconsole_gotoxy): Likewise.
19817 (grub_ofconsole_cls): Likewise.
19818 (grub_ofconsole_refresh): Likewise.
19819 (grub_ofconsole_terminfo_input): New struct.
19820 (grub_ofconsole_terminfo_output): Likewise.
19821 (grub_ofconsole_term_input): Use terminfo.
19822 (grub_ofconsole_term_output): Likewise.
19823 (grub_console_init): Split into ...
19824 (grub_console_init_early): ...this and ...
19825 (grub_console_init_lately): ...this. Use terminfo.
19826 (grub_ofconsole_putchar): Renamed to ...
19827 (put): ... this. Remove mapping.
19828 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19829 * term/serial.c: Simplify using terminfo.
19830 (xpos): Removed.
19831 (ypos): Likewise.
19832 (keep_track): Likewise.
19833 (registered): Likewise.
19834 (input_buf): Likewise.
19835 (npending): Likewise.
19836 (serial_translate_key_sequence): Likewise.
19837 (fill_input_buf): Likewise.
19838 (grub_serial_checkkey): Likewise.
19839 (grub_serial_getkey): Likewise.
19840 (grub_serial_getxy): Likewise.
19841 (grub_serial_gotoxy): Likewise.
19842 (grub_serial_putchar): Likewise.
19843 (grub_serial_cls): Likewise.
19844 (grub_serial_setcolorstate): Likewise.
19845 (grub_serial_setcursor): Likewise.
19846 (serial_hw_init): Use serial_hw_fetch.
19847 (grub_serial_terminfo_input): New variable.
19848 (grub_serial_terminfo_output): Likewise.
19849 (grub_serial_term_input): Use terminfo.
19850 (grub_serial_term_output): Likewise.
19851 * term/terminfo.c (putstr): Use put.
19852 (grub_terminfo_all_free): New function
19853 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19854 (grub_terminfo_output_register): New function.
19855 (grub_terminfo_output_unregister): Likewise.
19856 (grub_terminfo_getxy): Likewise.
19857 (grub_terminfo_readkey): Likewise.
19858 (grub_terminfo_checkkey): Likewise.
19859 (grub_terminfo_getkey): Likewise.
19860 (grub_terminfo_input_init): Likewise.
19861 (print_terminfo): Likewise.
19862 (grub_cmd_terminfo): Handle encoding.
19863 (grub_terminfo_gotoxy): Track position.
19864 (grub_terminfo_cls): Likewise.
19865 (grub_terminfo_putchar): Likewise.
19866 (grub_terminfo_setcolorstate): Handle colors
19867 (grub_terminfo_cursor_on): This ...
19868 (grub_terminfo_cursor_off): ... and this merged into ...
19869 (grub_terminfo_setcursor): ... this.
19870 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19871 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19872 * unicode/BidiMirroring.txt: Likewise.
19873 * unicode/UnicodeData.txt: Likewise.
19874 * unicode/COPYING: Likewise.
19875 * util/grub-editenv.c (grub_putchar): Removed.
19876 (grub_xputs_real): New function.
19877 (grub_xputs): New variable.
19878 * util/grub-fstest.c (grub_putchar): Removed.
19879 (grub_xputs_real): New function.
19880 (grub_xputs): New variable.
19881 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19882 (grub_xputs_real): New function.
19883 (grub_xputs): New variable.
19884 * util/grub-probe.c (grub_putchar): Removed.
19885 (grub_xputs_real): New function.
19886 (grub_xputs): New variable.
19887 * util/grub-script-check.c (grub_putchar): Removed.
19888 (grub_xputs_real): New function.
19889 (grub_xputs): New variable.
19890 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19891 (grub_xputs_real): New function.
19892 (grub_xputs): New variable.
19893 * util/import_unicode.py: New file.
19894 * util/grub-mkfont.c (ft_errmsgs): New array.
19895 (grub_glyph_info): Make bitmap a pointer.
19896 (file_formats): New type WIDTH_SPEC.
19897 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19898 (options): Add width-spec.
19899 (help): Likewise.
19900 (add_char): Renamed to ...
19901 (add_glyph): ... this.
19902 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19903 (glyph_replace): New type.
19904 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19905 (add_char): New function.
19906 (add_subst): Likewise.
19907 (process_cursive): Likewise.
19908 (add_font): Handle GSUB.
19909 (write_font_width_spec): New function.
19910 (main): Sort glyphs.
19911 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19912 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19913 * kern/term.c (grub_cls): Moved from here...
19914 * normal/term.c (grub_cls): ... here.
19915
50f0bcda
CW
199162010-07-02 Colin Watson <cjwatson@ubuntu.com>
19917
19918 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19919 suitable for using within the format argument of printf when
19920 converting grub_size_t.
19921 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19922 "x" to convert grub_size_t arguments.
19923
40372103
VS
199242010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19925
19926 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19927 too long captions.
19928 (list_get_minimal_size): Take selection box into account.
19929
942a10c7
VS
199302010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19931
19932 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19933 NULL font.
19934
2bdb2892
CW
199352010-07-02 Colin Watson <cjwatson@ubuntu.com>
19936
19937 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19938 devices when iterating over /dev/disk/by-id; they will be handled
19939 later if appropriate, which they aren't always (e.g. LVM).
19940
e03ed6c1
CW
199412010-07-02 Colin Watson <cjwatson@ubuntu.com>
19942
19943 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19944 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19945 fails.
19946 (grub_halt): Likewise.
19947 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19948 reset-all fails.
19949 (grub_halt): Don't return, even if all of shut-down, power-off, and
19950 poweroff fail.
19951
47695765
CW
199522010-07-02 Colin Watson <cjwatson@ubuntu.com>
19953
19954 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19955 arguments, not three.
19956
507736c8
CW
199572010-07-02 Colin Watson <cjwatson@ubuntu.com>
19958
19959 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19960 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19961 LVM-on-RAID is handled correctly.
19962
e3c8cd37
CW
199632010-07-02 Colin Watson <cjwatson@ubuntu.com>
19964
19965 * docs/grub.texi (Changes from GRUB Legacy): New section.
19966 (Future): Fix typo.
19967
8d4a2fec
CW
199682010-07-02 Colin Watson <cjwatson@ubuntu.com>
19969
19970 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19971 grub.d/README accidentally ends up executable for one reason or
19972 another. Ignore it.
19973
1c4827be
VS
199742010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19975
19976 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19977 (gpt_partition_map_iterate): Support non-512B sectors.
19978
d9a0c941
VS
199792010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19980
19981 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19982 Tested by: Seth Goldberg.
19983
48f27e87
VS
199842010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19985
19986 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19987 Properly align mbi.
19988 Reported by: Seth Goldberg.
19989
b0c4f956
VS
199902010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19991
19992 * util/grub-mkrescue.in: Avoid module duplication.
19993
105a2e8c
SF
199942010-07-01 Sean Finney <seanius@seanius.net>
19995
19996 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19997
5944958c
SF
199982010-07-01 Sean Finney <seanius@seanius.net>
19999
20000 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20001
200022010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20003
20004 * disk/lvm.c (grub_lvm_checkvalue): New function.
20005 (grub_lvm_check_flag): Likewise.
20006
b79889ba
RM
200072010-07-01 Robert Millan <rmh@gnu.org>
20008
20009 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20010 Support 'p' as partition separator on kernel of FreeBSD (used
20011 with GPT labels).
20012 (grub_util_biosdisk_get_grub_dev): Likewise.
20013
ec1d04f1
VS
200142010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20015
20016 Yeeloong firmware port.
20017
20018 * boot/mips/yeeloong/fwstart.S: New file.
20019 * bus/cs5536.c (gpiodump): New const.
20020 (set_io_space): New function.
20021 (set_iod): Likewise.
20022 (set_p2d): Likewise.
20023 (grub_cs5536_init_geode): Likewise.
20024 * commands/mips/yeeloong/lsspd.c: New file.
20025 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20026 (serial_mod_SOURCES): New variable.
20027 (serial_mod_CFLAGS): Likewise.
20028 (serial_mod_LDFLAGS): Likewise.
20029 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20030 term/terminfo.c and term/tparm.c.
20031 (pkglib_IMAGES): Add fwstart.img.
20032 (fwstart_img_SOURCES): New variable.
20033 (fwstart_img_CFLAGS): Likewise.
20034 (fwstart_img_ASFLAGS): Likewise.
20035 (fwstart_img_LDFLAGS): Likewise.
20036 (fwstart_img_FORMAT): Likewise.
20037 (pkglib_MODULES): Add lsspd.mod.
20038 (lsspd_mod_SOURCES): New variable.
20039 (lsspd_mod_CFLAGS): Likewise.
20040 (lsspd_mod_LDFLAGS): Likewise.
20041 (pkglib_MODULES): Add halt.mod.
20042 (halt_mod_SOURCES): New variable.
20043 (halt_mod_CFLAGS): Likewise.
20044 (halt_mod_LDFLAGS): Likewise.
20045 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20046 (serial_mod_SOURCES): Removed.
20047 (serial_mod_CFLAGS): Likewise.
20048 (serial_mod_LDFLAGS): Likewise.
20049 * disk/ata.c (check_device): New function.
20050 (grub_ata_device_initialize): Use check_device.
20051 (grub_ata_iterate): Recheck devices.
20052 (grub_ata_open): Likewise.
20053 (grub_atapi_iterate): Likewise.
20054 (grub_atapi_open): Likewise.
20055 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20056 (GRUB_ATA_CH1_PORT1): Likewise.
20057 (GRUB_ATA_CH0_PORT2): Likewise.
20058 (GRUB_ATA_CH1_PORT2): Likewise.
20059 * include/grub/mips/loongson.h: New file.
20060 * include/grub/mips/yeeloong/ec.h: Likewise.
20061 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20062 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20063 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20064 * include/grub/misc.h (grub_halt): Declare as noreturn.
20065 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20066 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20067 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20068 (UART_ENABLE_DTRRTS): Likewise.
20069 (UART_ENABLE_MODEM): Removed.
20070 (UART_ENABLE_OUT2): New const.
20071 * include/grub/term.h (grub_term_register_input_active): New function.
20072 (grub_term_register_output_active): Likewise.
20073 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20074 argument.
20075 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20076 (init_pci): New function.
20077 (grub_machine_init): Execute platform init when firmware. Init serial.
20078 (grub_halt): Implement.
20079 (grub_exit): Likewise.
20080 (grub_reboot): Likewise.
20081 * term/serial.c (serial_hw_init): Update macros.
20082 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20083 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20084 (image_targets): New target mipsel-yeeloong-flash.
20085 (generate_image): Support IMAGE_YEELOONG_FLASH.
20086 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20087 (grub_video_sm712_setup): Init card.
20088 (grub_video_sm712_set_palette): Removed.
20089 * video/sm712_init.c: New file.
20090
ff4a70d2
CW
200912010-06-30 Colin Watson <cjwatson@ubuntu.com>
20092
20093 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20094 PATH when running help2man and then run it on the unadorned
20095 executable names, rather than passing $(builddir)/* paths to
20096 help2man. This avoids the build directory ending up in generated
20097 manual pages.
20098
1246efeb
CW
200992010-06-29 Colin Watson <cjwatson@ubuntu.com>
20100
20101 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20102 to avoid accidents when debugging with 'sh -x'.
20103 * util/grub-mkrescue.in: Likewise.
20104 * util/grub.d/00_header.in: Likewise.
20105 * util/grub.d/10_hurd.in: Likewise.
20106 * util/grub.d/10_kfreebsd.in: Likewise.
20107 * util/grub.d/10_linux.in: Likewise.
20108 * util/grub.d/10_netbsd.in: Likewise.
20109 * util/grub.d/10_windows.in: Likewise.
20110 * util/grub.d/20_linux_xen.in: Likewise.
20111 * util/grub.d/30_os-prober.in: Likewise.
20112 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20113
1ba9b889
CW
201142010-06-29 Colin Watson <cjwatson@ubuntu.com>
20115
20116 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20117 last character in the buffer.
20118 Reported by: Vladimir Serbinenko.
20119
dccaf99d
RM
201202010-06-29 Robert Millan <rmh@gnu.org>
20121
20122 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20123 (Command-line and menu entry commands): Document `badram' command.
20124
d500ed12
RM
201252010-06-28 Robert Millan <rmh@gnu.org>
20126
20127 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20128 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20129 command using ${GRUB_BADRAM} as parameter.
20130
20bc84a6
CW
201312010-06-28 Colin Watson <cjwatson@ubuntu.com>
20132
20133 * docs/grub.texi (Device map): New section.
20134 (Themes): New section (stub).
20135 * Makefile.in (docs/grub.info): The info documentation now builds
20136 without errors. Make sure it stays that way.
20137
4045dee1
VS
201382010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20139
20140 Use normal parser for menu entries.
20141 Reported by: Thomas Frauendorfer
20142
20143 * include/grub/parser.h (grub_parser_execute): Don't export.
20144 * normal/menu.c (grub_menu_execute_entry_real): New function.
20145 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20146
bca58c7b
CW
201472010-06-28 Colin Watson <cjwatson@ubuntu.com>
20148
20149 * docs/grub.texi (Embedded configuration): New section (replacing
20150 old "Preset Menu" stub).
20151 (Images): New section.
20152 (configfile): Note that any menu entries defined in `file' are shown
20153 immediately.
20154
dec53e63
JT
201552010-06-28 Josh Triplett <josh@joshtriplett.org>
20156
20157 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20158
c06e40f7
CW
201592010-06-28 Colin Watson <cjwatson@ubuntu.com>
20160
20161 * util/grub-install.in: Add --debug-image= option.
20162
cb88052b
CW
201632010-06-28 Colin Watson <cjwatson@ubuntu.com>
20164
20165 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20166 possible on Linux.
20167
20168 * util/deviceiter.c (check_device): Rename to ...
20169 (check_device_readable_unique): ... this. Update all callers.
20170 Maintain and check a list of which devices (by canonicalized name)
20171 have already been seen.
20172 (clear_seen_devices): New function.
20173 (compare_file_names) [__linux__]: New function.
20174 (grub_util_iterate_devices): Clear the list of seen devices on exit
20175 and (just in case) on entry.
20176 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20177 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20178 seen-devices list, superseded by general code in check_device.
20179
bbe34652
CW
201802010-06-28 Colin Watson <cjwatson@ubuntu.com>
20181
20182 * commands/cat.c (options): New variable.
20183 (grub_cmd_cat): Parse options. If the --dos option is given, print
20184 DOS-style "\r\n" line endings as simple newlines (Debian bug
20185 #586358).
20186 (GRUB_MOD_INIT): Use extcmd.
20187 (GRUB_MOD_FINI): Likewise.
20188 * docs/grub.texi (cat): Document --dos.
20189
412e09f3
VS
201902010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20191
20192 XEN with Linux grub-mkconfig support.
20193
20194 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20195 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20196 GRUB_CMDLINE_XEN_DEFAULT.
20197 * util/grub.d/20_linux_xen.in: New file.
20198
53f3ef38 201992010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
20200
20201 Initialise VGA video on qemu ourselves.
20202
20203 * boot/i386/qemu/boot.S: Don't call 0xc000.
20204 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20205 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20206 (kernel_img_HEADERS): Add pci.h.
20207 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20208 * configure.ac: Force unifont on qemu and yeeloong.
20209 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20210 (grub_vga_palette_write): Use correct register.
20211 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20212 Call grub_qemu_init_cirrus.
20213 * kern/i386/qemu/init.c: New file.
20214 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20215
20216 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20217
c75be4fb
PR
202182010-06-26 Pavel Roskin <proski@gnu.org>
20219
20220 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20221 13.
20222
d8034603
CW
202232010-06-26 Colin Watson <cjwatson@ubuntu.com>
20224
20225 * docs/grub.texi (Simple configuration): Explain that
20226 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20227 set to `true' to disable their respective recovery entries, not
20228 merely set.
20229
3fa06487
CW
202302010-06-26 Colin Watson <cjwatson@ubuntu.com>
20231
20232 Make the `source' command slightly faster.
20233
20234 * normal/main.c (grub_normal_execute): Don't re-read list files when
20235 nested.
20236
e9b29642
CW
202372010-06-23 Colin Watson <cjwatson@ubuntu.com>
20238
20239 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20240 field position and mask size to red fields from mode_info, not
20241 green.
20242 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20243 Remove redundant tag->common.framebuffer_type assignment.
20244 Reported by: Seth Goldberg.
20245
e726542f
CW
202462010-06-23 Colin Watson <cjwatson@ubuntu.com>
20247
20248 Sync up other versions of the Linux loader with Robert Millan's
20249 change of 2010-01-09, "Make loader output a bit more user-friendly".
20250
20251 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20252 grub_dprintf().
20253 (grub_cmd_linux): Likewise.
20254 (grub_cmd_initrd): Likewise.
20255 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20256 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20257
d6e98a17
CW
202582010-06-21 Colin Watson <cjwatson@ubuntu.com>
20259
20260 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20261 larger than MEMORY_MAP_SIZE.
20262
14d3f08e
BC
202632010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20264
20265 Fix parallel build.
20266
20267 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20268 dependency.
20269 * script/parser.y: #include grub_script.tab.h header.
20270
4f9613a3
VS
202712010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20272
20273 Support >3GiB and <16MiB RAM in i386-qemu.
20274
20275 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20276 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20277 (grub_lower_mem): Removed.
20278 (grub_upper_mem): Likewise.
20279 (mem_size): Made static.
20280 (above_4g): New variable.
20281 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20282 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20283 support.
20284
05e51879
VS
202852010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20286
20287 Cirrus 5446 and Bochs video cards support.
20288
20289 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20290 video_bochs.mod
20291 (video_cirrus_mod_SOURCES): New variable.
20292 (video_cirrus_mod_CFLAGS): Likewise.
20293 (video_cirrus_mod_LDFLAGS): Likewise.
20294 (video_bochs_mod_SOURCES): Likewise.
20295 (video_bochs_mod_CFLAGS): Likewise.
20296 (video_bochs_mod_LDFLAGS): Likewise.
20297 * include/grub/vga.h: New file.
20298 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20299 (grub_video_fb_set_page_t): New type.
20300 (grub_video_fb_setup): New prototype.
20301 (grub_video_fb_swap_buffers): Likewise.
20302 (grub_video_fb_get_info_and_fini): Likewise.
20303 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20304 (CRTC_DATA_PORT): Likewise.
20305 (CRTC_CURSOR): Likewise.
20306 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20307 (CRTC_CURSOR_ADDR_LOW): Likewise.
20308 (CRTC_CURSOR_DISABLE): Likewise.
20309 (update_cursor): Use grub_vga_cr_write.
20310 (grub_vga_text_setcursor): Likewise.
20311 * video/bochs.c: New file.
20312 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20313 (palette): Likewise.
20314 (palette_size): Likewise.
20315 (framebuffer): New variable.
20316 (grub_video_fb_init): Use 'framebuffer'.
20317 (grub_video_fb_fini): Likewise.
20318 (grub_video_fb_get_info): Likewise.
20319 (grub_video_fb_get_palette): Likewise.
20320 (grub_video_fb_set_palette): Likewise.
20321 (grub_video_fb_set_viewport): Likewise.
20322 (grub_video_fb_get_viewport): Likewise.
20323 (grub_video_fb_map_color): Likewise.
20324 (grub_video_fb_map_rgb): Likewise.
20325 (grub_video_fb_map_rgba): Likewise.
20326 (grub_video_fb_unmap_color): Likewise.
20327 (grub_video_fb_unmap_color_int): Likewise.
20328 (grub_video_fb_fill_rect): Likewise.
20329 (grub_video_fb_blit_bitmap): Likewise.
20330 (grub_video_fb_blit_render_target): Likewise.
20331 (grub_video_fb_scroll): Likewise.
20332 (grub_video_fb_create_render_target): Likewise.
20333 (grub_video_fb_doublebuf_blit_init): Likewise.
20334 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20335 (doublebuf_pageflipping_update_screen): New function.
20336 (doublebuf_pageflipping_init): Likewise.
20337 (grub_video_fb_setup): Likewise.
20338 (grub_video_fb_swap_buffers): Likewise.
20339 (grub_video_fb_get_info_and_fini): Likewise.
20340 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20341 All users updated.
20342 (doublebuf_pageflipping_commit): Restructured into ...
20343 (doublebuf_pageflipping_set_page): ... this.
20344 (doublebuf_pageflipping_update_screen): Removed.
20345 (doublebuf_pageflipping_init): Likewise.
20346 (double_buffering_init): Likewise.
20347 (grub_video_vbe_setup): Use grub_video_fb_setup.
20348 (grub_video_vbe_swap_buffers): Removed.
20349 (grub_video_vbe_set_active_render_target): Likewise.
20350 (grub_video_vbe_get_active_render_target): Likewise.
20351 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20352 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20353 grub_video_fb_set_active_render_target and
20354 grub_video_fb_get_active_render_target.
20355 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20356 (SEQUENCER_DATA_PORT): Likewise.
20357 (MAP_MASK_REGISTER): Likewise.
20358 (CRTC_ADDR_PORT): Likewise.
20359 (CRTC_DATA_PORT): Likewise.
20360 (START_ADDR_HIGH_REGISTER): Likewise.
20361 (START_ADDR_LOW_REGISTER): Likewise.
20362 (GRAPHICS_ADDR_PORT): Likewise.
20363 (GRAPHICS_DATA_PORT): Likewise.
20364 (READ_MAP_REGISTER): Likewise.
20365 (INPUT_STATUS1_REGISTER): Likewise.
20366 (INPUT_STATUS1_VERTR_BIT): Likewise.
20367 (get_map_mask): Use grub_vga_sr_read.
20368 (set_map_mask): Use grub_vga_sr_write.
20369 (set_read_map): Use grub_vga_gr_write.
20370 (set_start_address): Use grub_vga_cr_write.
20371 * video/sm712.c (framebuffer): Remove leftover fields.
20372
4321c64a
CW
203732010-06-20 Colin Watson <cjwatson@ubuntu.com>
20374
20375 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20376 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20377 instead. Replace the gfxterm backend check with a check that
20378 ${GRUB_PREFIX}/video.lst is non-empty.
20379 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20380 again.
20381 (load_video): New generated function. Call it before loading
20382 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20383 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20384 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20385 * docs/grub.texi (Simple configuration): Document
20386 GRUB_VIDEO_BACKEND.
20387
203882010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20389
20390 Use video functions in linux and xnu loaders.
20391
20392 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20393 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20394 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20395 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20396 loader/i386/pc/linux.c.
20397 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20398 (find_line_len): Removed.
20399 (find_framebuf): Likewise.
20400 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20401 * loader/i386/efi/xnu.c: Removed.
20402 * loader/i386/pc/xnu.c: Moved from here...
20403 * loader/i386/xnu.c: ...here.
20404
20405 Enable priorities in video drivers.
20406
20407 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20408 (grub_video_adapter): New field prio.
20409 (grub_video_register): Respect prio when inserting.
20410 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20411 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20412 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20413 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20414 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20415 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20416 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20417
20418 Fix SDL driver ID.
20419
20420 * include/grub/video.h (grub_video_driver_id_t): New value
20421 GRUB_VIDEO_DRIVER_SDL.
20422 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20423
7d24e434
CW
204242010-06-17 Colin Watson <cjwatson@ubuntu.com>
20425
20426 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20427 argument to printf.
20428 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20429
c88a83f6
CW
204302010-06-17 Colin Watson <cjwatson@ubuntu.com>
20431
20432 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20433 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20434
094dfb69
CW
204352010-06-17 Colin Watson <cjwatson@ubuntu.com>
20436
20437 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20438 directly, and recommend grub-install instead.
20439 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20440
2164da6b
CW
204412010-06-17 Colin Watson <cjwatson@ubuntu.com>
20442
20443 Fix i386-pc prefix handling with nested partitions (Debian bug
20444 #585068). Note that the case where the core image is booted using
20445 multiboot and relocated from its original location still requires
20446 more work.
20447
20448 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20449 with "(,", fill the boot drive in between those two characters, but
20450 expect that a full partition specification including partition map
20451 names will follow.
20452 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20453 specified, write a prefix without the drive name but including a
20454 full partition specification.
20455
044e2e60
CW
204562010-06-16 Colin Watson <cjwatson@ubuntu.com>
20457
20458 * util/grub-mkconfig.in: Ignore non-option arguments, for
20459 compatibility with older versions (before 2010-06-12) which did the
20460 same. In particular, this makes it easier to ship an update-grub
20461 wrapper which is compatible with that used with GRUB Legacy (Debian
20462 bug #586056).
20463
5591324f
GS
204642010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20465
20466 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20467 for manual page generation.
20468
662e24d5
GS
204692010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20470
20471 * po/POTFILES: Remove leftover commands/handler.c.
20472
8d70754e
CW
204732010-06-14 Colin Watson <cjwatson@ubuntu.com>
20474
20475 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20476 left this script non-functional.
20477
41160e2e
CW
204782010-06-14 Colin Watson <cjwatson@ubuntu.com>
20479
20480 * docs/man/grub-emu.h2m: New file.
20481
b5309cc1
CW
204822010-06-13 Colin Watson <cjwatson@ubuntu.com>
20483
20484 * docs/grub.texi (Commands): Document reduced command set in rescue
20485 mode.
20486 (cpuid): New section.
20487
fcb2d090
GS
204882010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20489
20490 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20491 new partition naming style.
20492 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20493
96e5c556
BC
204942010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20495
20496 Add "-o grub.iso" like cmdline options support.
20497
20498 * util/grub-install.in: Improve cmdline option parsing.
20499 * util/grub-mkconfig.in: Likewise.
20500 * util/grub-mkrescue.in: Likewise.
20501 * util/grub-reboot.in: Likewise.
20502 * util/grub-set-default.in: Likewise.
20503 * util/i386/efi/grub-install.in: Likewise.
20504 * util/ieee1275/grub-install.in: Likewise.
20505 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20506
c16be99b
CW
205072010-06-12 Colin Watson <cjwatson@ubuntu.com>
20508
20509 * .bzrignore: Ignore 41_custom.
20510
ce08a9fb
TS
205112010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20512
20513 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20514
7beac90c
CW
205152010-06-12 Colin Watson <cjwatson@ubuntu.com>
20516
20517 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20518 prototype declarations.
20519
20520 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20521 generating fs, partmap, and video lists.
20522 * include/grub/fs.h (grub_fs_register): Omit prototype if
20523 GRUB_LST_GENERATOR is defined.
20524 * include/grub/partition.h (grub_partition_map_register): Likewise.
20525 * include/grub/video.h (grub_video_register): Likewise.
20526
1c8f0f8d
JM
205272010-06-12 Javier Martín <lordhabbit@gmail.com>
20528
20529 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20530
a6085973
TS
205312010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20532
20533 * util/grub-mkrescue.in: Support --xorriso argument.
20534
25c56d29
VS
205352010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20536
20537 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20538 Suggested by: Thomas Schmitt.
20539
e03e4b24
VS
205402010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20541
20542 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20543 Suggested by: Thomas Schmitt.
20544
57711df6
VS
205452010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20546
20547 custom.cfg support.
20548
20549 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20550 * util/grub.d/41_custom.in: New file.
20551
ee62c427
CW
205522010-06-12 Colin Watson <cjwatson@ubuntu.com>
20553
20554 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20555 been merged back into normal.
20556
283af07a
CW
205572010-06-11 Colin Watson <cjwatson@ubuntu.com>
20558
20559 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20560 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20561
56a0d956
CW
205622010-06-11 Colin Watson <cjwatson@ubuntu.com>
20563
20564 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20565 when generating manual pages.
20566 * docs/man/grub-bin2h.h2m: New file.
20567 * docs/man/grub-editenv.h2m: New file.
20568 * docs/man/grub-fstest.h2m: New file.
20569 * docs/man/grub-install.h2m: New file.
20570 * docs/man/grub-macho2img.h2m: New file.
20571 * docs/man/grub-mkconfig.h2m: New file.
20572 * docs/man/grub-mkdevicemap.h2m: New file.
20573 * docs/man/grub-mkfont.h2m: New file.
20574 * docs/man/grub-mkimage.h2m: New file.
20575 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20576 * docs/man/grub-mkrelpath.h2m: New file.
20577 * docs/man/grub-mkrescue.h2m: New file.
20578 * docs/man/grub-ofpathname.h2m: New file.
20579 * docs/man/grub-pe2elf.h2m: New file.
20580 * docs/man/grub-probe.h2m: New file.
20581 * docs/man/grub-reboot.h2m: New file.
20582 * docs/man/grub-script-check.h2m: New file.
20583 * docs/man/grub-set-default.h2m: New file.
20584 * docs/man/grub-setup.h2m: New file.
20585
3a37e322
VS
205862010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20587
20588 Use FOR_* macros instead of *_iterate whenever possible.
20589
20590 * commands/handler.c: Removed.
20591 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20592 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20593 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20594 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20595 (grub_probe_SOURCES): Remove kern/parser.c.
20596 (util/grub-script-check.c_DEPENDENCIES): Removed.
20597 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20598 and grub_script_check_init.c.
20599 (grub_script_check_init.lst): Removed.
20600 (grub_script_check_init.h): Likewise.
20601 (grub_script_check_init.c): Likewise.
20602 (pkglib_MODULES): Remove handler.mod and sh.mod.
20603 (handler_mod_SOURCES): Removed.
20604 (handler_mod_CFLAGS): Likewise.
20605 (handler_mod_LDFLAGS): Likewise.
20606 (normal_mod_SOURCES): Remove normal/handler.c.
20607 Add script/main.c, script/script.c, script/execute.c,
20608 script/function.c, script/lexer.c, grub_script.tab.c
20609 and grub_script.yy.c.
20610 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20611 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20612 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20613 (grub_setup_SOURCES): Remove kern/parser.c.
20614 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20615 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20616 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20617 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20618 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20619 (grub_setup_SOURCES): Remove kern/parser.c.
20620 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20621 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20622 * include/grub/command.h (grub_command_iterate): Removed.
20623 (FOR_COMMANDS): New macro.
20624 * include/grub/dl.h (grub_dl): New member next.
20625 (grub_dl_iterate): Removed.
20626 (grub_dl_head): New variable declaration.
20627 (FOR_DL_MODULES): New macro.
20628 * include/grub/fs.h: Include list.h.
20629 (grub_fs): Make next first element.
20630 (grub_fs_list): New variable declaration.
20631 (grub_fs_register): Make inline.
20632 (grub_fs_unregister): Likewise.
20633 (grub_fs_iterate): Removed.
20634 (FOR_FILESYSTEMS): New macro.
20635 * include/grub/handler.h: Removed.
20636 * include/grub/list.h (grub_list_hook_t): Removed.
20637 (grub_list_test_t): Likewise.
20638 (grub_list_pop): Likewise.
20639 (grub_list_iterate): Likewise.
20640 (grub_list_insert): Likewise.
20641 (FOR_LIST_ELEMENTS): New macro.
20642 * include/grub/parser.h (grub_parser_class): Removed.
20643 (grub_parser_register): Likewise.
20644 (grub_parser_unregister): Likewise.
20645 (grub_parser_get_current): Likewise.
20646 (grub_parser_set_current): Likewise.
20647 (grub_register_rescue_parser): Likewise.
20648 (grub_rescue_parse_line): New function.
20649 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20650 * include/grub/script_sh.h (grub_script_function_list): New variable
20651 declaration.
20652 (FOR_SCRIPT_FUNCTIONS): New macro.
20653 (grub_script_function_iterate): Removed.
20654 (grub_normal_parse_line): New prototype.
20655 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20656 (FOR_DISABLED_TERM_INPUTS): Likewise.
20657 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20658 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20659 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20660 element.
20661 (grub_video_register): Inline.
20662 (grub_video_unregister): Likewise.
20663 (grub_video_adapter_list): New variable declaration.
20664 (grub_video_iterate): Removed.
20665 (FOR_VIDEO_ADAPTERS): New macro.
20666 * kern/dl.c (grub_dl_list): Removed. All users updated.
20667 (grub_dl_iterate): Removed.
20668 * kern/fs.c (grub_fs_list): Make global.
20669 (grub_fs_register): Removed.
20670 (grub_fs_unregister): Likewise.
20671 (grub_fs_iterate): Likewise.
20672 * kern/handler.c: Removed.
20673 * kern/list.c (grub_list_pop): Removed.
20674 (grub_list_iterate): Likewise.
20675 (grub_list_insert): Likewise.
20676 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20677 (grub_prio_list_insert): Don't use grub_list_insert.
20678 * kern/main.c (grub_register_rescue_parser): Don't call
20679 grub_register_rescue_parser.
20680 * kern/parser.c (grub_parser_class): Removed.
20681 (grub_parser_execute): Use grub_rescue_parse_line.
20682 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20683 (grub_rescue_parser): Removed.
20684 (grub_register_rescue_parser): Likewise.
20685 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20686 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20687 (grub_auth_check_authentication): Likewise.
20688 * normal/completion.c (iterate_command): Removed.
20689 (grub_normal_do_completion): Use FOR_COMMANDS.
20690 * normal/handler.c: Removed.
20691 * normal/main.c (read_config_file): Remove parser changing.
20692 (grub_normal_execute): Don't call read_handler_list.
20693 (grub_normal_read_line_real): Statically allocate prompt.
20694 (grub_cmdline_run): Use grub_normal_parse_line.
20695 (GRUB_MOD_FINI): Don't call free_handler_list.
20696 * normal/menu_entry.c (run): Likewise.
20697 * script/function.c (grub_script_function_list): Make global.
20698 (grub_script_function_iterate): Removed.
20699 * script/main.c (grub_normal_parse_line): Make global.
20700 (grub_sh_parser): Removed.
20701 (GRUB_MOD_INIT): Likewise.
20702 (GRUB_MOD_FINI): Likewise.
20703 * tests/lib/functional_test.c (grub_functional_test): Use
20704 FOR_LIST_ELEMENTS.
20705 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20706 (grub_test_run): Use FOR_LIST_ELEMENTS.
20707 * tests/lib/unit_test.c (main): Likewise.
20708 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20709 grub_list_pop.
20710 * util/grub-fstest.c (grub_term_input_class): Removed.
20711 (grub_term_output_class): Likewise.
20712 * util/grub-probe.c: Likewise.
20713 * util/i386/pc/grub-setup.c: Likewise.
20714 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20715 * util/grub-script-check.c (main): Don't call grub_init_all and
20716 grub_fini_all.
20717 * video/video.c (grub_video_adapter_list): Make global.
20718 (grub_video_register): Removed.
20719 (grub_video_unregister): Likewise.
20720 (grub_video_iterate): Likewise.
20721
6289c3a7
VS
207222010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20723
20724 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20725 reported by Henrique Ferreiro.
20726
91460247
RM
207272010-06-09 Robert Millan <rmh@gnu.org>
20728
20729 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20730 ones, when both are available.
20731
0ea7c4f9
GS
207322010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20733
20734 Make --version uniform and avoid hard-coded program name.
20735
20736 * util/grub-mkimage.c (main): Use `program_name' instead of
20737 hard-coded string.
20738 * util/i386/pc/grub-setup.c (main): Likewise.
20739 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20740 * util/grub-install.in: Save the basename of $0 in $self, and use the
20741 latter in informational messages. Use the same format for --version
20742 as the binary programs.
20743 * util/grub-mkconfig.in: Likewise.
20744 * util/grub-mkrescue.in: Likewise.
20745 * util/grub-reboot.in: Likewise.
20746 * util/grub-set-default.in: Likewise.
20747 * util/i386/efi/grub-install.in: Likewise.
20748 * util/ieee1275/grub-install.in: Likewise.
20749 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20750
e8a6f3b6
GS
207512010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20752
20753 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20754 embedding area. Use <= instead of == when checking for non-emptiness.
20755
f4d095d7
GS
207562010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20757
20758 * configure.ac: Add `.' to the directories searched for unifont.
20759
50e532ca
CW
207602010-06-08 Colin Watson <cjwatson@ubuntu.com>
20761
20762 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20763 grub_script.yy.h.
20764
d39f3dec
CW
207652010-06-08 Colin Watson <cjwatson@ubuntu.com>
20766
20767 * docs/grub.texi (History): Expand to cover GRUB 2.
20768 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20769 commands, not `terminal'.
20770 (serial): Likewise.
20771 (terminal_input): New section.
20772 (terminal_output): New section.
20773 (uppermem): New section (stub).
20774 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20775
6ef0ddb4
CW
207762010-06-08 Colin Watson <cjwatson@ubuntu.com>
20777
20778 * docs/grub.texi (Security): Menu entries are unrestricted by
20779 default, not restricted to superusers as I had previously thought.
20780 Reword to account for this.
20781
e0f4c438
CW
207822010-06-07 Colin Watson <cjwatson@ubuntu.com>
20783
20784 * kern/emu/misc.c (device_mapper_null_log): New function.
20785 (grub_device_mapper_supported): New function.
20786 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20787 prototype.
20788 * kern/emu/hostdisk.c (find_partition_start): Check whether
20789 device-mapper is supported before trying to use it.
20790 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20791
da908200
CW
207922010-06-07 Colin Watson <cjwatson@ubuntu.com>
20793
20794 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20795 (File name syntax): Likewise.
20796 (help): --all is no longer supported in GRUB 2. Be more precise
20797 about pattern matching.
20798
fb55c3ac
CW
207992010-06-07 Colin Watson <cjwatson@ubuntu.com>
20800
20801 * normal/completion.c (grub_normal_do_completion): When completing
20802 arguments to "set" and the current word contains an equals sign,
20803 skip to after the equals sign before starting completion.
20804
258c2573
CW
208052010-06-07 Colin Watson <cjwatson@ubuntu.com>
20806
20807 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20808
ee75515e
CW
208092010-06-07 Colin Watson <cjwatson@ubuntu.com>
20810
20811 * docs/grub.texi (Network): New section.
20812 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20813 `(nd)' as in GRUB Legacy.
20814 (pxe_unload): New section.
20815
a6a700aa
CW
208162010-06-07 Colin Watson <cjwatson@ubuntu.com>
20817
20818 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20819 in the rescue shell, so recommend using `set' instead. Thanks,
20820 Jordan Uggla.
20821
4003dd38
CW
208222010-06-07 Colin Watson <cjwatson@ubuntu.com>
20823
20824 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20825 (password): New section.
20826 (password_pbkdf2): New section.
20827 (search): New section.
20828 (Security): New section.
20829 (Troubleshooting): New section, currently very incomplete.
20830 (Invoking grub-mkpasswd-pbkdf2): New section.
20831 (Internals): New section, currently very incomplete.
20832
e1cbcc40
CW
208332010-06-07 Colin Watson <cjwatson@ubuntu.com>
20834
20835 * util/grub.d/00_header.in: Add some more quoting (of
20836 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20837 work again.
20838 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20839
db8fa1ad
CW
208402010-06-07 Colin Watson <cjwatson@ubuntu.com>
20841
20842 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20843 to `count', fixing variable shadowing that broke the -c option.
20844
208452010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
20846
20847 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20848 in case they contain spaces.
20849
f28a9212
CW
208502010-06-04 Colin Watson <cjwatson@ubuntu.com>
20851
20852 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20853 "part_" to partmap module names, in line with grub-install.
20854 Reported by: Jindřich Makovička (Debian bug #584426).
20855
9cdfe32f
CW
208562010-06-04 Colin Watson <cjwatson@ubuntu.com>
20857
20858 * util/grub-mkimage.c: Make target-related error messages slightly
20859 more helpful; -O talks about "format". Explicitly point to the use
20860 of -O if no target is specified.
20861 Reported by: Didier Raboud (Debian bug #584415).
20862
795b593a
CW
208632010-06-03 Colin Watson <cjwatson@ubuntu.com>
20864
20865 * INSTALL: Document several build requirements for optional features
20866 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20867
9d9b5833
GS
208682010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20869
20870 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20871 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20872 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20873
0819fec8
CW
208742010-06-02 Colin Watson <cjwatson@ubuntu.com>
20875
20876 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20877 Thanks to Jordan Uggla for spotting this.
20878
49396b4f
VS
208792010-06-02 Aleš Nesrsta <starous@volny.cz>
20880
20881 Finally make USB usable.
20882
20883 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20884 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20885 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20886 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20887 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20888 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20889 (GRUB_OHCI_FSMPS): Likewise.
20890 (GRUB_OHCI_PERIODIC_START): Likewise.
20891 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20892 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20893 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20894 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20895 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20896 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20897 (grub_ohci_transaction): Likewise.
20898 (grub_ohci_transfer): Improve condition detection algorithms.
20899 Handle toggle property. Program the transactions correctly.
20900 Improve error handling. Various important fixups.
20901 (grub_ohci_portstatus): Put register writes in right order.
20902 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20903 (grub_uhci_transfer): Don't show "failed" message on success.
20904 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20905 array.
20906 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20907 determine its size.
20908 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20909 before initialization is completed. Use IN direction for empty
20910 transfers. Use last_trans and compute toggle.
20911 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20912 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20913 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20914 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20915 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20916 (grub_usb_device): Increase toggle to 256.
20917 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20918 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20919 GRUB_USBMS_SUBCLASS_SFF8070.
20920 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20921 (grub_scsi_inquiry): New member page and alloc_length.
20922 (grub_scsi_request_sense): New structure.
20923 (grub_scsi_request_sense_data): Likewise.
20924 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20925 control.
20926 * disk/scsi.c (grub_scsi_request_sense): New function.
20927 (grub_scsi_test_unit_ready): Likewise.
20928 (grub_scsi_inquiry): Fill new fields.
20929 (grub_scsi_read_capacity): Likewise.
20930 (grub_scsi_read10): Add request sense at the end.
20931 (grub_scsi_read12): Likewise.
20932 (grub_scsi_write10): Likewise.
20933 (grub_scsi_write12): Likewise.
20934 (grub_scsi_open): Add Test Unit Ready.
20935 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20936 Support additional subclasses. Con't clear halt yet. Activate the
20937 proper config. Calculate LUNs correctly.
20938 (grub_usbms_transfer): Various important fixups.
20939
209402010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20941
20942 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20943 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20944 (grub_ohci_fini_hw): New function.
20945 (grub_ohci_restore_hw): Likewise.
20946 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20947 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20948 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20949
209502010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20951
20952 Dedicated DMA allocations.
20953
20954 * bus/pci.c (grub_memalign_dma32): New function
20955 (grub_dma_free): Likewise.
20956 (grub_dma_get_virt): Likewise.
20957 (grub_dma_get_phys): Likewise.
20958 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20959 (grub_ohci_pci_iter): Use dma32_alloc.
20960 (grub_ohci_transfer): Likewise.
20961 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20962 (grub_usb_bulk_readwrite): Likewise.
20963 * include/grub/pci.h: Add declarations.
20964
209652010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20966
20967 CS5536 support.
20968
20969 * bus/cs5536.c: New file.
20970 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20971 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20972 (cs5536_mod_SOURCES): New variable.
20973 (cs5536_mod_CFLAGS): Likewise.
20974 (cs5536_mod_LDFLAGS): Likewise.
20975 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20976 machine/pci.h.
20977 (kernel_img_SOURCES): Add bus/cs5536.c.
20978 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20979 usb_keyboard.mod.
20980 (usb_mod_SOURCES): New variable.
20981 (usb_mod_CFLAGS): New variable.
20982 (usb_mod_LDFLAGS): New variable.
20983 (usbtest_mod_SOURCES): New variable.
20984 (usbtest_mod_CFLAGS): New variable.
20985 (usbtest_mod_LDFLAGS): New variable.
20986 (ohci_mod_SOURCES): New variable.
20987 (ohci_mod_CFLAGS): New variable.
20988 (ohci_mod_LDFLAGS): New variable.
20989 (usbms_mod_SOURCES): New variable.
20990 (usbms_mod_CFLAGS): New variable.
20991 (usbms_mod_LDFLAGS): New variable.
20992 (usb_keyboard_mod_SOURCES): New variable.
20993 (usb_keyboard_mod_CFLAGS): New variable.
20994 (usb_keyboard_mod_LDFLAGS): New variable.
20995 * include/grub/smbus.h: New file.
20996 * include/grub/cs5536.h: New file.
20997
0b35b2a9
CW
209982010-06-02 Colin Watson <cjwatson@ubuntu.com>
20999
21000 * util/grub.d/00_header.in: Add safety check to make sure that
21001 ${locale_dir} exists before trying to probe it.
21002
ca0afd5b
CW
210032010-06-02 Colin Watson <cjwatson@ubuntu.com>
21004
21005 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21006 per the GNU Coding Standards; this is now too obscure to be worth
21007 documenting.
21008 (QNX): Likewise.
21009 (chainloader): Remove cross-reference to `SCO UnixWare'.
21010
1c41aa78
CW
210112010-06-02 Colin Watson <cjwatson@ubuntu.com>
21012
21013 * docs/grub.texi (Chain-loading): New section.
21014 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21015 adjusted for GRUB 2.
21016 (SCO UnixWare): Likewise.
21017 (QNX): Likewise.
21018 (chainloader): Add reference to `Block list syntax'.
21019 (drivemap): New section.
21020 (parttool): New section.
21021
bb8ea0f5
CW
210222010-06-02 Colin Watson <cjwatson@ubuntu.com>
21023
21024 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21025 the grub shell'.
21026 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21027 (Installing GRUB using grub-install): Remove reference to the grub
21028 shell; mention `grub-mkimage' and `grub-setup' instead.
21029 (Invoking grub-install): Likewise.
21030 (Interface): Add reference to `Menu entry editor'.
21031 (serial): Remove `--device' option.
21032
288dd6ed
CW
210332010-06-02 Colin Watson <cjwatson@ubuntu.com>
21034
21035 * docs/grub.texi (Configuration): New section, documenting
21036 configuration file generation using grub-mkconfig. I've left a slot
21037 for documenting the full shell scripting format but have not yet
21038 started on writing that up.
21039 (Invoking grub-mkconfig): New section.
21040
34c9f0e9
CW
210412010-06-02 Colin Watson <cjwatson@ubuntu.com>
21042
21043 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21044 (GNU GRUB manual): Likewise.
21045 (General commands): Update description of `terminfo' for GRUB 2.
21046
9121567e
CW
210472010-06-02 Colin Watson <cjwatson@ubuntu.com>
21048
21049 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21050 (GRUB_MOD_INIT): Fix capitalisation.
21051 * docs/grub.texi (Command-line and menu entry commands): Document
21052 gettext and gptsync commands.
21053
ab631611
CW
210542010-06-02 Colin Watson <cjwatson@ubuntu.com>
21055
21056 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21057 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21058
bde4a9ac
CW
210592010-06-01 Colin Watson <cjwatson@ubuntu.com>
21060
21061 Add btrfs probing support, currently only in the single-device case.
21062
21063 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21064 function.
21065 (grub_guess_root_device): Call find_root_device_from_mountinfo
21066 before looking in /dev.
21067
b1d17e10
VS
210682010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21069
21070 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21071 GRUB_DISK_SIZE_UNKNOWN.
21072 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21073
dfbfe004
JS
210742010-05-31 Jiro SEKIBA <jir@unicus.jp>
21075
21076 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21077 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21078 corrupted or not synced properly.
21079
c2ffc8e9
VS
210802010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21081
21082 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21083 Reported by: Seth Goldberg.
21084
56293166
VS
210852010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21086
21087 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21088 addition of dest.
21089 Reported by: Seth Goldberg.
21090
7620e7de
VS
210912010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21092
21093 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21094 Reported by: Seth Goldberg.
21095
c837af3f
VS
210962010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21097
21098 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21099 64-bit address as signed on MIPS.
21100
c7c75cf4
CW
211012010-05-28 Colin Watson <cjwatson@ubuntu.com>
21102
21103 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21104 to the empty string.
21105
fa4b8490
BC
211062010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21107
21108 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21109
21110 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21111 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21112 * kern/misc.c (__enable_execute_stack): Disable on
21113 GRUB_MACHINE_EMU.
21114
a33075b9
CW
211152010-05-28 Colin Watson <cjwatson@ubuntu.com>
21116
21117 Make grub-probe work with symbolic links under /dev/mapper as well
21118 as with real block devices. The Linux world seems to be (at best)
21119 in transition here, and GRUB shouldn't get caught in the middle.
21120
21121 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21122 /dev/mapper.
21123
d8708134
CW
211242010-05-27 Colin Watson <cjwatson@ubuntu.com>
21125
21126 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21127 input files (in which case exit zero).
21128
db2102a0
CW
211292010-05-27 Colin Watson <cjwatson@ubuntu.com>
21130
21131 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21132 return NULL for various reasons even if it has a maximum-length
21133 buffer: for example, there might be a symlink loop, or the path
21134 might exceed PATH_MAX. If this happens, return NULL.
21135
5fdba519
RM
211362010-05-27 Robert Millan <rmh@gnu.org>
21137
21138 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21139 partmap module to handle cross-partmap setups.
21140 Reported by Orestes Mas. Gràcies!
21141
d1d368e4
CW
211422010-05-27 Colin Watson <cjwatson@ubuntu.com>
21143
21144 * util/grub-mkrescue.in: Initialise override_dir rather than
21145 assuming that it's unset or empty in the environment.
21146
95ac3c73
GS
211472010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21148
21149 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21150 variable index into p_index to suppress a warning with -Wshadow.
21151
7d8c0213
BC
211522010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21153
21154 * INSTALL: Added flex >= 2.5.35 requirement.
21155
db4d5813
VS
211562010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21157
21158 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21159
f24f4300
VS
211602010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21161
21162 cmostest support.
21163
21164 * commands/i386/cmostest.c: New file.
21165 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21166 (cmostest_mod_SOURCES): New variable.
21167 (cmostest_mod_CFLAGS): Likewise.
21168 (cmostest_mod_LDFLAGS): Likewise.
21169 * conf/i386-pc.rmk: Likewise.
21170 * docs/grub.texi (Vendor power-on keys): New section.
21171 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21172 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21173 and GRUB_BUTTON_CMOS_ADDRESS.
21174 * util/grub.d/00_header.in: Handle powering-on by separate button.
21175
ad603f61
VS
211762010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21177
21178 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21179 Removed drawing_scrollbar argument. All users updated
21180 Fixes #29792.
21181 Reported by Jo Shields
21182
3ecb080a
VS
211832010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21184
21185 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21186 buffer since gfxterm handles double repaint.
21187
5f2316c1
VS
211882010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21189
21190 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21191 * term/gfxterm.c (real_scroll): Likewise.
21192
9a25f885
VS
211932010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21194
21195 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21196 before calling BIOS.
21197
39fbb79a
VS
211982010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21199
21200 * include/grub/i18n.h: Always enable grub_gettext.
21201
228cfa97
VS
212022010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21203
21204 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21205 partition naming style.
21206
21717c8f
CW
212072010-05-21 Colin Watson <cjwatson@ubuntu.com>
21208
21209 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21210 not the first option.
21211
c0f48e65
CW
212122010-05-20 Colin Watson <cjwatson@ubuntu.com>
21213
21214 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21215
96779aec
CW
212162010-05-20 Colin Watson <cjwatson@ubuntu.com>
21217
21218 * util/misc.c: Move inclusion of <limits.h> to ...
21219 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21220
fa9d256e
GS
212212010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21222
21223 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21224 Fix merge error in NetBSD code.
21225 (find_partition_start) [__NetBSD__]: Likewise.
21226
123b7a85
BC
212272010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21228
21229 Fix grub-mkrescue usage unit testing.
21230
21231 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21232
74276c0d
CF
212332010-05-18 Christian Franke <franke@computer.org>
21234
21235 * util/grub.d/10_windows.in: Use path names instead of
21236 drive letters to prevent warning from Cygwin 1.7.
21237 Add drivemap command to menuentry if needed.
21238
c4f7b523
ST
212392010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21240
21241 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21242 gnumach and gnumach.gz.
21243
95b97950
VS
212442010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21245
21246 * include/grub/i18n.h (gettext): Inline instead of using #define.
21247 (grub_gettext): Likewise.
21248 (_): Likewise.
21249
01b8d2d7
VS
212502010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21251
21252 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21253 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21254 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21255 (main): Add a slash after pkglibdirroot.
21256
654e1d1e
VS
212572010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21258
21259 * util/grub-install.in: Add missing "in" keyword.
21260
26966aeb
VS
212612010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21262
21263 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21264 Reported by: Seth Goldberg.
21265
75006747
VS
212662010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21267
21268 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21269
74cbf5bd
CW
212702010-05-18 Colin Watson <cjwatson@ubuntu.com>
21271
21272 * configure.ac: Check for Linux device-mapper support.
21273
21274 * util/hostdisk.c (device_is_mapped): New function.
21275 (find_partition_start): New function, partly broken out from
21276 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21277 device-mapper support added.
21278 (linux_find_partition): Use find_partition_start.
21279 (convert_system_partition_to_system_disk): Add `st' argument.
21280 Support Linux /dev/mapper/* devices if device-mapper support is
21281 available; only DM-RAID devices are understood at present.
21282 (find_system_device): Add `st' argument. Pass it to
21283 convert_system_partition_to_system_disk.
21284 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21285 find_system_device and convert_system_partition_to_system_disk. Use
21286 find_partition_start.
21287
21288 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21289 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21290 * util/deviceiter.c [__linux__]: Define MINOR.
21291 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21292 * util/mkdevicemap.c (grub_putchar): New function.
21293 (grub_getkey): New function.
21294 (grub_refresh): New function.
21295 (main): Set debug=all if -v -v is used.
21296
355b51e9
CW
212972010-05-18 Colin Watson <cjwatson@ubuntu.com>
21298
21299 Fix build with non-GNU libcs.
21300
21301 * util/misc.c (canonicalize_file_name): Move to ...
21302 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21303 grub_make_system_path_relative_to_its_root.
21304
7fb5c25f
CW
213052010-05-18 Colin Watson <cjwatson@ubuntu.com>
21306
21307 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21308 we handle finding grub-mkimage. Default to finding grub-mkimage in
21309 ${bindir} with program_transform_name applied, and provide a
21310 --grub-mkimage option to override this.
21311
1d3293d6
VS
213122010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21313
21314 Remove grub-mkisofs.
21315
21316 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21317 (grub_mkisofs_SOURCES): Removed.
21318 (grub_mkisofs_CFLAGS): Removed.
21319 * util/mkisofs/defaults.h: Removed.
21320 * util/mkisofs/eltorito.c: Likewise.
21321 * util/mkisofs/exclude.h: Likewise.
21322 * util/mkisofs/hash.c: Likewise.
21323 * util/mkisofs/include/: Likewise.
21324 * util/mkisofs/include/fctldefs.h: Likewise.
21325 * util/mkisofs/include/mconfig.h: Likewise.
21326 * util/mkisofs/include/prototyp.h: Likewise.
21327 * util/mkisofs/include/statdefs.h: Likewise.
21328 * util/mkisofs/iso9660.h: Likewise.
21329 * util/mkisofs/joliet.c: Likewise.
21330 * util/mkisofs/match.c: Likewise.
21331 * util/mkisofs/match.h: Likewise.
21332 * util/mkisofs/mkisofs.c: Likewise.
21333 * util/mkisofs/mkisofs.h: Likewise.
21334 * util/mkisofs/msdos_partition.h: Likewise.
21335 * util/mkisofs/multi.c: Likewise.
21336 * util/mkisofs/name.c: Likewise.
21337 * util/mkisofs/rock.c: Likewise.
21338 * util/mkisofs/tree.c: Likewise.
21339 * util/mkisofs/write.c: Likewise.
21340
5dde9afe
VS
213412010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21342
21343 Unify grub-mkimage accross platforms.
21344
21345 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21346 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21347 (grub_mkelfimage_SOURCES): Removed.
21348 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21349 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21350 (bin_UTILITIES): Add grub-mkimage.
21351 (grub_mkimage_SOURCES): New variable.
21352 (kernel_img_HEADERS): Remove machine/kernel.h.
21353 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21354 (pkglib_PROGRAMS): Add kernel.img.
21355 (kernel_img_HEADERS): Add machine/kernel.h.
21356 (kernel_img_FORMAT): Removed.
21357 (bin_UTILITIES): Remove grub-mkimage.
21358 (grub_mkimage_SOURCES): Removed.
21359 (grub_mkimage_CFLAGS): Likewise.
21360 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21361 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21362 (pkglib_PROGRAMS): Add kernel.img.
21363 (bin_UTILITIES): Remove grub-mkimage.
21364 (grub_mkimage_SOURCES): Removed.
21365 (grub_mkimage_CFLAGS): Likewise.
21366 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21367 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21368 (pkglib_PROGRAMS): Add kernel.img.
21369 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21370 (pkglib_PROGRAMS): Add kernel.img.
21371 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21372 (grub_mkimage_SOURCES): Removed.
21373 (grub_mkimage_CFLAGS): Likewise.
21374 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21375 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21376 (pkglib_PROGRAMS): Add kernel.img.
21377 (bin_UTILITIES): Remove grub-mkimage.
21378 (grub_mkimage_SOURCES): Removed.
21379 (grub_mkimage_CFLAGS): Likewise.
21380 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21381 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21382 (grub_mkimage_SOURCES): Removed.
21383 (grub_mkimage_CFLAGS): Likewise.
21384 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21385 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21386 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21387 (grub_pe32_optional_header): ... this.
21388 (grub_pe64_optional_header): ... and this. All users updated.
21389 (GRUB_PE32_PE32_MAGIC): Split into ..
21390 (GRUB_PE32_PE32_MAGIC): .. this.
21391 (GRUB_PE32_PE64_MAGIC): .. and this.
21392 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21393 * include/grub/elf.h (PT_GNU_STACK): New definition.
21394 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21395 * include/grub/i386/efi/kernel.h: Likewise.
21396 * include/grub/i386/kernel.h: Likewise.
21397 * include/grub/i386/pc/kernel.h: Likewise.
21398 * include/grub/i386/qemu/boot.h: Likewise.
21399 * include/grub/mips/kernel.h: Likewise.
21400 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21401 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21402 * include/grub/powerpc/kernel.h: Likewise.
21403 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21404 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21405 * include/grub/sparc64/kernel.h: Likewise.
21406 * include/grub/x86_64/efi/kernel.h: Likewise.
21407 * include/grub/x86_64/kernel.h: Likewise.
21408 * include/grub/offsets.h: New file.
21409 * include/grub/kernel.h (grub_module_info): Split into ...
21410 (grub_module_info32): ... this.
21411 (grub_module_info64): ... and this.
21412 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21413 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21414 (grub_boot_blocklist): Moved from here ...
21415 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21416 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21417 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21418 * include/grub/types.h (grub_target_to_host16): Removed.
21419 (grub_target_to_host32): Likewise.
21420 (grub_target_to_host64): Likewise.
21421 (grub_host_to_target16): Likewise.
21422 (grub_host_to_target32): Likewise.
21423 (grub_host_to_target64): Likewise.
21424 (grub_host_to_target_addr): Likewise.
21425
21426 Support grub-mkrescue for efi, coreboot and qemu.
21427
21428 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21429 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21430 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21431 * util/grub-mkrawimage.c: Moved from here ...
21432 * util/grub-mkimage.c: ... here. All users updated.
21433 (ALIGN_ADDR): Use image_target.
21434 (TARGET_NO_FIELD): New const.
21435 (image_target_desc): New type.
21436 (image_targets): New array.
21437 (grub_target_to_host64): Use image_target.
21438 (grub_target_to_host32): Likewise.
21439 (grub_target_to_host16): Likewise.
21440 (grub_host_to_target64): Likewise.
21441 (grub_host_to_target32): Likewise.
21442 (grub_host_to_target16): Likewise.
21443 (grub_host_to_target_addr): Likewise.
21444 (generate_image): Handle multiimage.
21445 (main): Require -O parameter. All users updated.
21446 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21447 util/efi/grub-mkimage.c
21448 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21449 New option --rom-directory.
21450 Use xorriso.
21451 * util/i386/efi/grub-mkimage.c: Removed.
21452 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21453 (grub_target_to_host32): Likewise.
21454 (grub_target_to_host64): Likewise.
21455 (grub_host_to_target16): Likewise.
21456 (grub_host_to_target32): Likewise.
21457 (grub_host_to_target64): Likewise.
21458 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21459 (grub_target_to_host32): Likewise.
21460 (grub_target_to_host64): Likewise.
21461 (grub_host_to_target16): Likewise.
21462 (grub_host_to_target32): Likewise.
21463 (grub_host_to_target64): Likewise.
21464
f4fc97d0
BC
214652010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21466
21467 Source tree is reorganized for emu build.
21468
21469 * include/grub/util/console.h: Move from here...
21470 * include/grub/emu/console.h: ...to here.
21471 * include/grub/util/getroot.h: Move from here...
21472 * include/grub/emu/getroot.h: ...to here.
21473 * include/grub/util/hostdisk.h: Move from here...
21474 * include/grub/emu/hostdisk.h: ...to here.
21475 * util/console.c: Move from here...
21476 * kern/emu/console.c: ...to here.
21477 * util/getroot.c: Move from here...
21478 * kern/emu/getroot.c: ...to here.
21479 * util/grub-emu.c: Move from here...
21480 * kern/emu/main.c: ...to here.
21481 * util/hostdisk.c: Move from here...
21482 * kern/emu/hostdisk.c: ...to here.
21483 * util/hostfs.c: Move from here...
21484 * kern/emu/hostfs.c: ...to here.
21485 * util/mm.c: Move from here...
21486 * kern/emu/mm.c: ...to here.
21487 * util/pci.c: Move from here...
21488 * bus/emu/pci.c: ...to here.
21489 * util/sdl.c: Move from here...
21490 * video/emu/sdl.c: ...to here.
21491 * util/time.c: Move from here...
21492 * kern/emu/time.c: ...to here.
21493 * util/usb.c: Move from here...
21494 * bus/usb/emu/usb.c: ...to here.
21495
21496 * include/grub/emu/misc.h: New header for grub-emu functions.
21497 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21498
21499 * conf/any-emu.rmk: Rule updates for above renames.
21500 * conf/common.rmk: Likewise.
21501 * conf/i386-pc.rmk: Likewise.
21502 * conf/i386-qemu.rmk: Likewise.
21503 * conf/mips.rmk: Likewise.
21504 * conf/sparc64-ieee1275.rmk: Likewise.
21505 * conf/x86-efi.rmk: Likewise.
21506
21507 * disk/lvm.h: #include updates for above renames.
21508 * util/grub-mkrelpath.c: Likewise.
21509 * util/grub-probe.c: Likewise.
21510 * util/i386/pc/grub-setup.c: Likewise.
21511 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21512 * kern/emu/console.c: Likewise.
21513 * kern/emu/getroot.c: Likewise.
21514 * kern/emu/hostdisk.c: Likewise.
21515 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21516
21517 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21518 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21519 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21520 * util/misc.c: Remove grub-emu functions.
21521
cced9145
VS
215222010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21523
21524 Fix gfxmenu crash.
21525 Reported by: Thorsten Grützmacher.
21526
21527 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21528 timeout hook.
21529 (circprog_set_property): Register and unregister timeout hook.
21530 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21531 (label_destroy): Free template. and unregister hook.
21532 (label_set_state): New function.
21533 (label_set_property): Handle templates and hooks.
21534 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21535 timeout hook.
21536 (progress_bar_set_property): Register and unregister timeout hook.
21537 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21538 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21539 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21540 (update_timeout_visit): Removed.
21541 (update_timeouts): New function.
21542 (redraw_timeouts): Likewise.
21543 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21544 (grub_gfxmenu_clear_timeout): Likewise.
21545 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21546 (grub_gfxmenu_timeout_notify): Likewise.
21547 (grub_gfxmenu_timeout_notifications): New external variable.
21548 (grub_gfxmenu_timeout_register): New function.
21549 (grub_gfxmenu_timeout_unregister): Likewise.
21550
c6e5caab
VS
215512010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21552
21553 Transform (broken) vga terminal into (working) vga video driver.
21554
21555 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21556 video/i386/pc/vga.c.
21557 * include/grub/video.h (grub_video_driver_id):
21558 Add GRUB_VIDEO_DRIVER_VGA.
21559 * term/i386/pc/vga.c: Renamed to ...
21560 * video/i386/pc/vga.c: ...this
21561 (DEBUG_VGA): Removed.
21562 (CHAR_WIDTH): Likewise.
21563 (CHAR_HEIGHT): Likewise.
21564 (TEXT_WIDTH): Likewise.
21565 (TEXT_HEIGHT): Likewise.
21566 (DEFAULT_FG_COLOR): Likewise.
21567 (DEFAULT_BG_COLOR): Likewise.
21568 (colored_char): Likewise.
21569 (xpos): Likewise.
21570 (ypos): Likewise.
21571 (cursor_state): Likewise.
21572 (fg_color): Likewise.
21573 (bg_color): Likewise.
21574 (text_buf): Likewise.
21575 (page): Likewise.
21576 (font): Likewise.
21577 (framebuffer): New variable.
21578 (set_read_map): Disabled.
21579 (setup): New variable.
21580 (is_target): Likewise.
21581 (grub_vga_mod_init): Likewise.
21582 (grub_vga_mod_fini): Likewise.
21583 (check_vga_mem): Likewise.
21584 (write_char): Likewise.
21585 (write_cursor): Likewise.
21586 (scroll_up): Likewise.
21587 (grub_vga_putchar): Likewise.
21588 (grub_vga_getcharwidth): Likewise.
21589 (grub_vga_getwh): Likewise.
21590 (grub_vga_getxy): Likewise.
21591 (grub_vga_gotoxy): Likewise.
21592 (grub_vga_cls): Likewise.
21593 (grub_vga_setcolorstate): Likewise.
21594 (grub_vga_setcursor): Likewise.
21595 (grub_video_vga_init): New function.
21596 (grub_video_vga_setup): Likewise.
21597 (grub_video_vga_fini): Likewise.
21598 (update_target): Likewise.
21599 (grub_video_vga_blit_bitmap): Likewise.
21600 (grub_video_vga_blit_render_target): Likewise.
21601 (grub_video_vga_set_active_render_target): Likewise.
21602 (grub_video_vga_get_active_render_target): Likewise.
21603 (grub_video_vga_swap_buffers): Likewise.
21604 (grub_video_vga_set_palette): Likewise.
21605 (grub_video_vga_get_info_and_fini): Likewise.
21606 (grub_vga_term): Removed.
21607 (grub_video_vga_adapter): New variable.
21608 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21609 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21610
2bf61a98
VS
216112010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21612
21613 * video/readers/jpeg.c: Indented.
21614
09ddcd11
VS
216152010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21616
21617 Various jpeg cleanups.
21618
21619 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21620 (grub_jpeg_decode_quan_table): Use sizeof.
21621 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21622
e5507505
PH
216232010-05-05 Peter Hurley <No e-mail available> (tiny change)
21624
21625 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21626 tables. Ignore non-last ac bit.
21627 (grub_jpeg_decode_quan_table): Likewise.
21628
7e720a9b
VS
216292010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21630
21631 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21632 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21633 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21634 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21635 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21636 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21637
a7fc080b
VS
216382010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21639
21640 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21641 error.
21642
2bf6012d
VS
216432010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21644
21645 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21646
265d68cd
VS
216472010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21648
21649 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21650 condition.
21651
216522010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
21653
21654 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21655 part.
21656
265d68cd 216572010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
21658
21659 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21660 pointers.
21661
265d68cd 216622010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
21663
21664 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21665
d1b61374
CF
216662010-05-01 Christian Franke <franke@computer.org>
21667
21668 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21669 Remove broken Cygwin path conversion.
21670 * util/misc.c: [__CYGWIN__] Add include and define.
21671 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21672 for Cygwin 1.7.
21673 (make_system_path_relative_to_its_root): Simplify loop, replace early
21674 return by break.
21675 [__CYGWIN__] Add conversion to win32 path.
21676 Include "/" case in trailing slash removal.
21677
3558c6e9
VS
216782010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21679
21680 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21681 Reported by: Seth Goldberg
21682
f5f3ff93
VS
216832010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21684
21685 * commands/help.c (grub_cmd_help): Fix a typo.
21686 Reported by: Seth Goldberg
21687
d8b5cd40
VS
216882010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21689
21690 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21691 name and add N_.
21692 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21693 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21694 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21695 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21696 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21697 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21698 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21699 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21700 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21701 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21702 * normal/context.c (GRUB_MOD_INIT): Likewise.
21703 * normal/main.c (GRUB_MOD_INIT): Likewise.
21704 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21705 * term/serial.c (GRUB_MOD_INIT): Likewise.
21706 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21707
88c14915
VS
217082010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21709
21710 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21711 extra == 0.
21712
165134bc
VS
217132010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21714
21715 * commands/iorw.c: New file.
21716 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21717 (iorw_mod_SOURCES): New variable.
21718 (iorw_mod_CFLAGS): Likewise.
21719 (iorw_mod_LDFLAGS): Likewise.
21720
c5ac9b32
VS
217212010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21722
21723 Hotkey support
21724
21725 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21726 * normal/main.c (hotkey_aliases): New variable.
21727 (grub_normal_add_menu_entry): Parse "--hotkey".
21728 * normal/menu_text.c (run_menu): Handle hotkeys.
21729
ce60689c
VS
217302010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21731
21732 * kern/i386/coreboot/init.c (grub_machine_init): Call
21733 grub_machine_mmap_init on qemu.
21734
0359d006
VS
217352010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21736
21737 * boot/i386/qemu/boot.S: Add a missing .code16.
21738
7819a456
VS
217392010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21740
21741 Use LBIO on coreboot.
21742
21743 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21744 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21745 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21746 New declaration.
21747 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21748 grub_machine_mmap_init on coreboot.
21749 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21750 GRUB_LINUXBIOS_MEMBER_LINK.
21751 (grub_machine_mmap_iterate): Fix declaration.
21752 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21753
7210dca9
VS
217542010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21755
21756 Split coreboot and multiboot ports.
21757
21758 * conf/i386-multiboot.rmk: New file.
21759 * configure.ac: Add multiboot port.
21760 * include/grub/i386/multiboot/boot.h: New file.
21761 * include/grub/i386/multiboot/console.h: Likewise.
21762 * include/grub/i386/multiboot/init.h: Likewise.
21763 * include/grub/i386/multiboot/kernel.h: Likewise.
21764 * include/grub/i386/multiboot/loader.h: Likewise.
21765 * include/grub/i386/multiboot/memory.h: Likewise.
21766 * include/grub/i386/multiboot/serial.h: Likewise.
21767 * include/grub/i386/multiboot/time.h: Likewise.
21768 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21769 * loader/multiboot.c: Likewise.
21770 * loader/multiboot_mbi2.c: Likewise.
21771 * util/grub-mkrescue.in: Generate multiboot rescue.
21772
6f8aaf68
VS
217732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21774
3080f7a7
VS
21775 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21776
217772010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21778
21779 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
21780
21781 * commands/terminal.c (abstract_terminal): New struct.
21782 (handle_command): New function. Based on grub_cmd_terminal_input.
21783 (grub_cmd_terminal_input): Use handle_command.
21784 (grub_cmd_terminal_output): Use handle_command.
21785
a8ebb841
BC
217862010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21787
21788 Fix comment handling.
21789
21790 * tests/grub_script_comments.in: New testcase.
21791 * conf/tests.rmk: Rules for new testcase.
21792 * script/yylex.l: Updated flex rules.
21793
bb06ba08
ST
217942010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21795
21796 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
21797 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21798 if argc is 1.
bb06ba08 21799
cc9d2425
VS
218002010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21801
21802 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21803 autogen issues.
21804
460d8402
CF
218052010-04-26 Christian Franke <franke@computer.org>
21806
21807 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21808 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21809 (grub_get_prefix): Remove function.
21810 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21811 make_system_path_relative_to_its_root ().
21812 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21813
553c01f9
CF
218142010-04-24 Christian Franke <franke@computer.org>
21815
21816 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21817 (kernel_img_LDFLAGS): Remove -static-libgcc.
21818
2aec1692
CF
218192010-04-24 Christian Franke <franke@computer.org>
21820
21821 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21822 and CHECK_END_SYMBOL if grub-emu is built.
21823 Unset TARGET_OBJ2ELF if grub-emu is built
21824 without module support.
21825
f67dc308
JS
218262010-04-24 Jiro SEKIBA <jir@unicus.jp>
21827
21828 Nilfs2 support.
21829
21830 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21831 (grub_fstest_SOURCES): Likewise.
21832 (pkglib_MODULES): Add nilfs2.mod.
21833 (nilfs2_mod_SOURCES): New variable.
21834 (nilfs2_mod_CFLAGS): Likewise.
21835 (nilfs2_mod_LDFLAGS): Likewise.
21836 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21837 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21838 * fs/nilfs2.c: New file.
21839
4ba8d354
VS
218402010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21841
21842 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21843 is not supported.
21844
0d2c20c6
GS
218452010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21846
21847 Add grub-mkconfig support for NetBSD.
21848
21849 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21850 * util/grub-mkconfig.in: export new NetBSD specific variables.
21851 * po/POTFILES-shell: added 10_netbsd.in.
21852 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21853
bc4a2d83
BC
218542010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21855
21856 Fix emu build with grub-emu-pci and grub-emu-modules.
21857
21858 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21859 functions.
21860 * include/grub/libpciaccess.h: New file.
21861 * conf/any-emu.rmk: Update kernel headers for emu build.
21862
f48c87aa
VS
218632010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21864
21865 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21866
18959385
VS
218672010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21868
21869 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21870
0037de3f
VS
218712010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21872
21873 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21874 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21875 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21876 util/ieee1275/ofpath.c.
21877 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21878 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21879 * include/grub/sparc64/ieee1275/boot.h
21880 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21881 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21882 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21883 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21884 const char *.
21885 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21886 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21887 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21888 install.
21889
38e55e90
GS
218902010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21891
21892 * util/grub-mkconfig.in: Corrected two == equality tests.
21893 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21894 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21895 expect a number appended to it.
21896 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21897 expects a number appended to it.
21898
a9e6ff28
VS
218992010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21900
21901 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21902
0b830b8f
VS
219032010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21904
21905 * util/hostdisk.c (make_device_name): Change to new partition naming.
21906
0973daeb
VS
219072010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21908
21909 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21910
460d8402 219112010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
21912
21913 * Makefile.in: Add missing localedir setting.
21914
0b456309
CW
219152010-04-14 Colin Watson <cjwatson@ubuntu.com>
21916
21917 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21918 mistake in r2156. Noticed by Anthony Fok.
21919
21920 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21921 @localedir@.
21922 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21923
08f46d62
BC
219242010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21925
21926 Fix a spurious, uninitialized variable warning.
21927
21928 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21929 Initialize variable, shdr.
21930 (grub_freebsd_load_elfmodule): Likewise.
21931 (grub_freebsd_load_elf_meta): Likewise.
21932
8c4a72d4
BC
219332010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21934
21935 Fix for escaped dollar in double quoted strings.
21936
21937 * script/yylex.l: Updated flex rules.
21938 * conf/tests.rmk: Rule for new testcase.
21939 * tests/grub_script_dollar.in: New testcase.
21940
ce44826e
CPE
219412010-04-13 Carles Pina i Estany <carles@pina.cat>
219422010-04-13 Colin Watson <cjwatson@ubuntu.com>
21943
21944 Enclose all translated strings in grub.cfg in single quotes, and
21945 escape them appropriately (Ubuntu bug #552921).
21946
21947 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21948 * util/grub.d/10_hurd.in: Use it.
21949 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21950 * util/grub.d/10_linux.in (linux_entry): Likewise.
21951
4b0cd8f8
VS
219522010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21953
21954 Fix cygwin compilation.
21955
21956 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21957 * include/grub/misc.h (__register_frame_info)
21958 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21959 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21960 * kern/misc.c (__register_frame_info)
21961 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21962 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21963
01fcf061
VS
219642010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21965
21966 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21967
5d04b11e
VS
219682010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21969
21970 Unify libgcc processing.
21971
21972 * Makefile.in (kernel_img_LDFLAGS): New variable.
21973 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21974 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21975 overwriting.
21976 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21977 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21978 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21979 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21980 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21981 overwriting. Remove -lgcc and -static-libgcc
21982 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21983 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21984 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21985 (kernel_img_LDFLAGS): Append instead of overwriting.
21986 Remove -lgcc and -static-libgcc
21987 * conf/sparc64-ieee1275.rmk: Likewise.
21988 * include/grub/powerpc/libgcc.h: Move to ...
21989 * include/grub/libgcc.h: .. this.
21990 * include/grub/libgcc.h: Don't export most of the function on x86.
21991 (__bswapsi2): New export.
21992 (__bswapdi2): Likewise.
21993 * include/grub/mips/libgcc.h: Removed.
21994 * include/grub/sparc64/libgcc.h: Likewise.
21995
b7f3ac29
VS
219962010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21997
21998 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21999 disk_info_msg (conflicts with gettexting into languages with cases).
22000
2c7031b1
GS
220012010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22002
22003 Add grub-probe support for NetBSD.
22004
22005 * util/getroot.c (find_root_device): Convert block device to
22006 character device on NetBSD.
22007 * util/probe.c (probe): Require character device on NetBSD.
22008 * util/hostdisk.c: NetBSD specific headers.
22009 (configure_device_driver): new function to tune device driver
22010 parameters (currently only for NetBSD floppy driver).
22011 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22012 via disklabel ioctl).
22013 (open_device): call configure_device_driver on NetBSD.
22014 (convert_system_partition_to_system_disk): NetBSD specific code.
22015 (device_is_wholedisk): Likewise.
22016 (grub_util_biosdisk_get_grub_dev): Likewise.
22017 (make_device_name): Fixed a typo in bsd_part_str.
22018 * configure.ac: check for opendisk() and getrawpartition() on
22019 NetBSD and set LIBUTIL.
22020 * Makefile.in: add LIBUTIL to LIBS.
22021
f516290c
BC
220222010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22023
22024 Documentation fix.
22025
22026 * util/grub-script-check.c: Better help message.
22027
d8dcc0df
BC
220282010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22029
22030 Fix FreeBSD build.
22031
22032 * configure.ac: Flex version check.
22033 * conf/common.rmk: Add -Wno-error to sh.mod.
22034 * script/yylex.l: Remove all #pragma.
22035
6734334a
VS
220362010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22037
22038 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22039 prototype.
22040 Reported by: Seth Goldberg.
22041
daea6abd
VS
220422010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22043
22044 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22045 Rename "module" to "module2".
22046 Reported by: Seth Goldberg.
22047
f2fd9d2b
VS
220482010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22049
22050 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22051 EXPORT_FUNC.
22052 Reported by: Seth Goldberg.
22053
be124579
VS
220542010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22055
22056 * lib/posix_wrap/locale.h: Add missing file.
22057 Reported by: Seth Goldberg.
22058
ef5da797
VS
220592010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22060
22061 grub-emu module load support.
22062
22063 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22064 NO_DYNAMIC_MODULES switched to this.
22065 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22066 (CFLAGS): Likewise.
22067 * conf/any-emu.rmk: Generate symlist.
22068 (kernel_img_HEADERS): Add util/datetime.h.
22069 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22070 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22071 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22072 kern/$(target_cpu)/cache.S.
22073 * configure.ac (grub-emu-modules): New option.
22074 * genmk.rb: Handle multiple source lists.
22075 * include/grub/sdl.h: New file.
22076 * include/grub/libusb.h: Likewise.
22077 * util/grub-emu.c (main): Hanle (host) root.
22078 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22079 GRUB_ERR_UNKNOWN_DEVICE.
22080 * util/misc.c: Move mm functions to ...
22081 * util/mm.c: ... here. All users updated.
22082
47822096
VS
220832010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22084
22085 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22086 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22087 missing files.
22088 (maintainer-clean): Remove libgcrypt-grub.
22089
5d7e7445
VS
220902010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22091
22092 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22093
25f4e252
EC
220942010-04-09 EFI Coder <eficoder@hotmail.com>
22095
22096 * normal/menu_text.c (print_message): Clean up the message and show
22097 the Fn information when on EFI
22098 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22099
027de555
VS
221002010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22101
22102 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22103 All users updated.
22104 * normal/crypto.c (read_crypto_list): Likewise.
22105 * normal/dyncmd.c (read_command_list): Likewise.
22106 * normal/term.c (read_terminal_list): Likewise.
22107 * normal/main.c (read_lists): Use explicit prefix.
22108 (read_lists_hook): Use read_lists.
22109 (grub_normal_execute): Likewise.
22110
47779711
VS
221112010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22112
22113 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22114 Reported by: Thomas Schmitt.
22115 Add -no-emul-boot to grub-mkisofs parameters.
22116
1118c32e
VS
221172010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22118
22119 * font/font.c: Indented.
22120
7d652447
BC
221212010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22122
22123 Elif support to GRUB script (by Deepak Vankadaru).
22124
22125 * tests/grub_script_if.in: New testcase.
22126 * conf/tests.rmk: Rule for new testcase.
22127 * script/parser.y: Grammar rules for elif.
22128
34bb22df
BC
221292010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22130
22131 While and until loops support to GRUB script.
22132
22133 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22134 (grub_script_create_cmdwhile): New function prototype.
22135 (grub_script_execute_cmdwhile): New function prototype.
22136 * script/execute.c (grub_script_execute_cmdwhile): New function.
22137 * script/parser.y (command): New commands.
22138 (whilecmd): New grammar rule.
22139 (untilcmd): New grammar rule.
22140 * script/script.c (grub_script_create_cmdwhile): New function.
22141 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22142 function.
22143
22144 * tests/grub_script_while1.in: New testcase.
22145 * conf/tests.rmk: Rule for new testcase.
22146
e215d8e0
VS
221472010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22148
22149 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22150 as *.jpg.
22151
d7c43ba1
MV
221522010-04-09 Mario Vazquez <mariovazq@gmail.com>
22153
22154 GRUB_BACKGROUND support.
22155
22156 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22157 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22158
d64795c0
VS
221592010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22160
22161 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 22162 Idea by: Mario Vazquez
d64795c0
VS
22163
22164 * util/grub.d/00_header.in: Load pf2 and image modules.
22165
f267f83a
VS
221662010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22167
22168 grub-mkconfig multiple terminal support.
22169
22170 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22171 * util/grub.d/00_header.in: Likewise.
22172
b7841ceb
VS
221732010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22174
22175 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22176 we use cd $(srcdir).
22177
df60998c
CW
221782010-04-08 Colin Watson <cjwatson@ubuntu.com>
22179
22180 * util/grub.d/10_linux.in: Only use the first word of
22181 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22182 spaces in GRUB_DISTRIBUTOR.
22183 * util/grub.d/10_kfreebsd.in: Likewise.
22184 * util/grub.d/10_hurd.in: Likewise.
22185
fa09c82e
BC
221862010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22187
14e18ae3 22188 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
22189
22190 * tests/util/grub-shell.in: Remove -serial stdio option.
22191
daf892b3
BC
221922010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22193
22194 POSIX header file wrappers.
22195
22196 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22197 equivalents.
22198 * lib/posix_wrap/ctype.h: Likewise.
22199 * lib/posix_wrap/errno.h: Likewise.
22200 * lib/posix_wrap/langinfo.h: Likewise.
22201 * lib/posix_wrap/limits.h: Likewise.
22202 * lib/posix_wrap/localcharset.h: Likewise.
22203 * lib/posix_wrap/stdint.h: Likewise.
22204 * lib/posix_wrap/stdio.h: Likewise.
22205 * lib/posix_wrap/stdlib.h: Likewise.
22206 * lib/posix_wrap/string.h: Likewise.
22207 * lib/posix_wrap/sys/types.h: Likewise.
22208 * lib/posix_wrap/unistd.h: Likewise.
22209 * lib/posix_wrap/wchar.h: Likewise.
22210 * lib/posix_wrap/wctype.h: Likewise.
22211 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22212 (grub_script.yy.h): Likewise.
22213 * script/yylex.l: Remove POSIX emulation #defines.
22214 * Makefile.in (POSIX_CFLAGS): New variable.
22215 (GNULIB_UTIL_CFLAGS): Likewise.
22216
22217 Regexp support.
22218
22219 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22220 (regexp_mod_SOURCES): New variable.
22221 (regexp_mod_CFLAGS): Likewise.
22222 (regexp_mod_LDFLAGS): Likewise.
22223 * commands/regexp.c: New file.
22224 * gnulib/regcomp.c: New file. Imported from gnulib.
22225 * gnulib/regex.c: Likewise.
22226 * gnulib/regex_internal.c: Likewise.
22227 * gnulib/regex_internal.h: Likewise.
22228 * gnulib/regexec.c: Likewise.
22229 * gnulib/regex.h: Likewise.
22230
974ac4f7
VS
222312010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22232
22233 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22234 unsupported video mode types.
22235
2622c3ff
VS
222362010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22237
22238 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22239
064cb524
VS
222402010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22241
22242 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22243 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22244
a8c3b552
VS
222452010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22246
22247 Remove unused grub_vga_get_font.
22248
22249 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22250 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22251
187bbe3d
GS
222522010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22253
22254 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22255 * include/grub/misc.h: Likewise.
22256
b9396631
GS
222572010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22258
22259 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22260 for which failure is fatal.
22261
50479feb
GS
222622010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22263
22264 * util/grub-install.in: Use mkdir -p to create grub directory.
22265 * util/i386/efi/grub-install.in: Likewise.
22266 * util/ieee1275/grub-install.in: Likewise.
22267
b1654fdf
GS
222682010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22269
22270 * Makefile.in (LEX): new variable.
22271
bd5a6415
GS
222722010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22273
22274 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22275 `=' and added double quotes on operands of this equality test.
22276
3db3a82b
VS
222772010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22278
22279 * Makefile.in (uninstall): Remove a leftover debug echo.
22280 Reported by: Grégoire Sutre
22281
38023412
VS
222822010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22283
22284 MIPS multiboot2 support.
22285
22286 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22287 (multiboot2_mod_SOURCES): New variable.
22288 (multiboot2_mod_CFLAGS): Likewise.
22289 (multiboot2_mod_LDFLAGS): Likewise.
22290 (multiboot2_mod_ASFLAGS): Likewise.
22291 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22292 definition.
22293 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22294 (MULTIBOOT_MBI_REGISTER): Likewise.
22295 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22296 (MULTIBOOT_ELF32_MACHINE): Likewise.
22297 (MULTIBOOT_ELF64_MACHINE): Likewise.
22298 * include/grub/mips/multiboot.h: New file.
22299 * include/grub/video.h (grub_video_driver_id): New type
22300 GRUB_VIDEO_DRIVER_SM712.
22301 (grub_video_get_info_and_fini): Export.
22302 (grub_video_get_palette): Likewise.
22303 (grub_video_get_driver_id): Likewise.
22304 * include/multiboot2.h: Resynced with spec.
22305 * loader/i386/multiboot.c: Moved from here ...
22306 * loader/multiboot.c: ... here. All users updated.
22307 (grub_multiboot_boot): Use platform-specific macros.
22308 * loader/i386/multiboot_elfxx.c: Moved from here ...
22309 * loader/multiboot_elfxx.c: ... here. All users updated.
22310 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22311 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22312 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22313
47674667
VS
223142010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22315
22316 Import gnulib argp module.
22317
22318 * gnulib/argp-ba.c: New file.
22319 * gnulib/argp-eexst.c: Likewise.
22320 * gnulib/argp-fmtstream.c: Likewise.
22321 * gnulib/argp-fmtstream.h: Likewise.
22322 * gnulib/argp-fs-xinl.c: Likewise.
22323 * gnulib/argp-help.c: Likewise.
22324 * gnulib/argp-namefrob.h: Likewise.
22325 * gnulib/argp-parse.c: Likewise.
22326 * gnulib/argp-pin.c: Likewise.
22327 * gnulib/argp-pv.c: Likewise.
22328 * gnulib/argp-pvh.c: Likewise.
22329 * gnulib/argp-version-etc.c: Likewise.
22330 * gnulib/argp-version-etc.h: Likewise.
22331 * gnulib/argp-xinl.c: Likewise.
22332 * gnulib/argp.h: Likewise.
22333
495442ed
VS
223342010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22335
22336 * kern/device.c (grub_device_iterate): Clear errors after failed
22337 opening device.
22338
f9fd65df
VS
223392010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22340
22341 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22342 returned by firmware.
22343
af09641e
VS
223442010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22345
22346 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22347 compilation on coreboot and qemu
22348
016883a5
VS
223492010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22350
22351 * include/multiboot2.h: Resync with spec.
22352
f97e1f7d
VS
223532010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22354
22355 Multiboot2 tag support
22356
22357 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22358 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22359 Remove loader/multiboot_loader.c.
22360 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22361 (grub_multiboot2_real_boot): Likewise.
22362 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22363 (grub_get_multiboot_mmap_count): New proto.
22364 (grub_fill_multiboot_mmap): Likewise.
22365 (grub_multiboot_set_video_mode): Likewise.
22366 (grub_multiboot_set_console): Likewise.
22367 (grub_multiboot_load): Likewise.
22368 (grub_multiboot_load_elf): Likewise.
22369 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22370 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22371 * include/multiboot.h: Resynced with specification.
22372 * include/multiboot2.h: Resynced with specification.
22373 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22374 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22375 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22376 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22377 users updated.
22378 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22379 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22380 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22381 Removed.
22382 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22383 Moved from here...
22384 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22385 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22386 Moved from here...
22387 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22388 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22389 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22390 All users updated.
22391 * loader/i386/multiboot_mbi2.c: New file.
22392
3506b90b
VS
223932010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22394
22395 Resync with gnulib.
22396
22397 * Makefile.in (GNULIB_CFLAGS): New variable.
22398 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22399 (grub_script_check_CFLAGS): New variable.
22400 * gnulib/alloca.h: Resync with gnulib.
22401 * gnulib/error.c: Likewise.
22402 * gnulib/error.h: Likewise.
22403 * gnulib/fnmatch.c: Likewise.
22404 * gnulib/fnmatch_loop.c: Likewise.
22405 * gnulib/getdelim.c: Likewise.
22406 * gnulib/getline.c: Likewise.
22407 * gnulib/getopt.c: Likewise.
22408 * gnulib/getopt1.c: Likewise.
22409 * gnulib/getopt_int.h: Likewise.
22410 * gnulib/gettext.h: Likewise.
22411 * gnulib/progname.c: Likewise.
22412 * gnulib/progname.h: Likewise.
22413
394a3120
GS
224142010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22415
22416 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22417 which is the case with --disabled-nls.
22418
22419 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22420 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22421 * util/misc.c: Likewise.
22422 * util/mkisofs/mkisofs.c: Likewise.
22423 * util/mkisofs/mkisofs.h: Likewise.
22424
969d1c78
VS
224252010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22426
22427 Simplify Apple CC support.
22428
22429 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22430 Add 0 byte at the end not to have a symbol with empty target.
22431 * mmap/i386/pc/mmap_helper.S: Likewise.
22432 * genmk.rb: Ignore errors 2030 and 2050.
22433 * kern/i386/pc/startup.S: Use LOCAL when possible.
22434
8d2977bb
BC
224352010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22436
22437 Testcase and the fix for final semicolon on cmdline.
22438
22439 * tests/grub_script_final_semicolon.in: New testcase.
22440 * conf/tests.rmk: Rules for the new testcase.
22441 * script/parser.y: Grammar fix.
22442
a7bd6915
BC
224432010-03-26 BVK Chaitanya <bvk@localhost>
22444
22445 Blank lines testcase for GRUB script.
22446
22447 * tests/grub_script_blanklines.in: New testcase.
22448 * conf/tests.rmk: Rules for the new testcase.
22449
e4ff6628
VS
224502010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22451
22452 Don't use __FILE__.
22453
22454 * genmk.rb: Add -DGRUB_FILE to all C targets.
22455 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22456 * include/grub/list.h: Likewise.
22457 * include/grub/misc.h: Likewise.
22458 * include/grub/mm.h: Likewise.
22459 * include/grub/test.h: Likewise.
22460 * kern/mm.c: Likewise.
22461 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22462
6a5cf6b6
VS
224632010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22464
22465 Sunpc partitions support.
22466
22467 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22468 (grub_fstest_SOURCES): Likewise.
22469 (pkglib_MODULES): Add part_sunpc.mod.
22470 (part_sunpc_mod_SOURCES): New variable.
22471 (part_sunpc_mod_CFLAGS): Likewise.
22472 (part_sunpc_mod_LDFLAGS): Likewise.
22473 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22474 * partmap/sunpc.c: New file.
22475
746d9045
BC
224762010-03-26 BVK Chaitanya <bvk@localhost>
22477
22478 For loop support to GRUB script.
22479
22480 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22481 (grub_script_create_cmdfor): New function prototype.
22482 (grub_script_execute_cmdfor): New function prototype.
22483 * script/execute.c (grub_script_execute_cmdfor): New function.
22484 * script/parser.y (command): New for command.
22485 (forcmd): New grammar rule.
22486 * script/script.c (grub_script_create_cmdfor): New function.
22487 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22488 function.
22489 * tests/grub_script_for1.in: New testcase.
22490 * conf/tests.rmk: Rules for new testcase.
22491
18486b18
VS
224922010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22493
22494 Nested partitions
22495
22496 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22497 'partition' is NULL, grub_partition_get_start already does that.
22498 * commands/loadenv.c (check_blocklists): Likewise.
22499 (write_blocklists): Likewise.
22500 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22501 (grub_fstest_SOURCES): Likewise.
22502 (pkglib_MODULES): Add part_bsd.mod.
22503 (part_bsd_mod_SOURCES): New variable.
22504 (part_bsd_mod_CFLAGS): Likewise.
22505 (part_bsd_mod_LDFLAGS): Likewise.
22506 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22507 (grub_emu_SOURCES): Likewise.
22508 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22509 * include/grub/bsdlabel.h: New file.
22510 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22511 'get_name'.
22512 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22513 (grub_partition_map_list): New variable.
22514 (grub_partition_map_register): Inline.
22515 (grub_partition_map_unregister): Likewise.
22516 (FOR_PARTITION_MAPS): New macro.
22517 (grub_partition_map_iterate): Removed.
22518 (grub_partition_get_start): Handle nested partitions.
22519 * include/grub/msdos_partition.h: Remove bsd-related entries.
22520 (grub_pc_partition): Remove.
22521 * kern/disk.c (grub_disk_close): Free partition data.
22522 (grub_disk_adjust_range): Handle nested partitions.
22523 * kern/partition.c (grub_partition_map_probe): New function.
22524 (grub_partition_probe): Parse name to number, handle subpartitions.
22525 (get_partmap): New function.
22526 (grub_partition_iterate): Handle subpartitions.
22527 (grub_partition_get_name): Likewise.
22528 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22529 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22530 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22531 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22532 Set 'number'.
22533 (acorn_partition_map_probe): Remove.
22534 (acorn_partition_map_get_name): Likewise.
22535 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22536 Set 'number'.
22537 Set 'index' to 0 since there can be only one partition entry per sector.
22538 (amiga_partition_map_probe): Remove.
22539 (amiga_partition_map_get_name): Likewise.
22540 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22541 Set 'number'.
22542 Set 'offset' and 'index' to real positions of partitions.
22543 (apple_partition_map_probe): Remove.
22544 (apple_partition_map_get_name): Likewise.
22545 * partmap/bsdlabel.c: New file.
22546 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22547 Set 'number'.
22548 Allocate 'data' so it can be correctly freed.
22549 Set 'index' to offset inside sector.
22550 (gpt_partition_map_probe): Remove.
22551 (gpt_partition_map_get_name): Likewise.
22552 * partmap/msdos.c (grub_partition_parse): Remove.
22553 (pc_partition_map_iterate): Don't force raw access.
22554 Set 'number'.
22555 Make 'ext_offset' a local variable.
22556 (pc_partition_map_probe): Remove.
22557 (pc_partition_map_get_name): Remove.
22558 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22559 Set 'number'.
22560 (sun_partition_map_probe): Remove.
22561 (sun_partition_map_get_name): Likewise.
22562 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22563 (grub_pcpart_type): Likewise.
22564 * util/hostdisk.c (open_device): Handle new numbering scheme.
22565 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22566 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22567 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22568 * util/grub-install.in: Insert all subpartition modules.
22569 * util/ieee1275/grub-install.in: Likewise.
22570
a3940f88
AG
225712010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22572
22573 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22574 grammar.
22575
21b99926 225762010-03-24 Colin Watson <cjwatson@ubuntu.com>
22577
22578 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22579
bed1d352
CW
225802010-03-21 Colin Watson <cjwatson@ubuntu.com>
22581
22582 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22583 match where 'make install' puts them.
22584 * util/i386/efi/grub-install.in: Likewise.
22585
c9f58427
CW
225862010-03-19 Colin Watson <cjwatson@ubuntu.com>
22587
22588 * .bzrignore: Add gentrigtables, grub-script-check,
22589 grub_script_check_init.c, grub_script_check_init.h, and
22590 trigtables.c.
22591
f84afb27
VS
225922010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22593
22594 * kern/parser.c: Indented.
22595
ed0e3d30
VS
225962010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22597
22598 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22599
0ea81d98
VS
226002010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22601
22602 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22603 alpha_mask_size == 0 case.
22604
0cdc2a09
BC
226052010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22606
22607 GRUB shell lexer and parser improvements.
22608
22609 * conf/any-emu.rmk: Build rule updates.
22610 * conf/common.rmk: Likewise.
22611 * conf/i386-coreboot.rmk: Likewise.
22612 * conf/i386-efi.rmk: Likewise.
22613 * conf/i386-ieee1275.rmk: Likewise.
22614 * conf/i386-pc.rmk: Likewise.
22615 * conf/powerpc-ieee1275.rmk: Likewise.
22616 * conf/x86_64-efi.rmk: Likewise.
22617
22618 * configure.ac: Configure check for flex.
22619
22620 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22621 types.
22622 (grub_lexer_param): Struct member updates.
22623 (grub_parser_param): Likewise.
22624 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22625 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22626 (grub_script_lexer_init): Prototype update.
22627 (grub_script_lexer_record_start): Likewise.
22628 (grub_script_lexer_record_stop): Likewise.
22629 (grub_script_lexer_yywrap): New function prototype.
22630 (grub_script_lexer_fini): Likewise.
22631 (grub_script_execute_argument_to_string): Removed by...
22632 (grub_script_execute_argument_to_argv): ...better version.
22633
22634 * script/execute.c (ROUND_UPTO): New macro.
22635 (grub_script_execute_cmdline): Out of memory fixes.
22636 (grub_script_execute_menuentry): Likewise.
22637 (grub_script_execute_argument_to_string): Removed. Update all
22638 users by...
22639 (grub_script_execute_argument_to_argv): ...better version.
22640 * script/function.c (grub_script_function_create): Use
22641 grub_script_execute_argument_to_argv instead of
22642 grub_script_execute_argument_to_string.
22643
22644 * script/lexer.c (check_varstate): Removed.
22645 (check_textstate): Removed.
22646 (grub_script_lexer_record_start): Likewise.
22647 (grub_script_lexer_record_stop): Likewise.
22648 (recordchar): Replaced with...
22649 (grub_script_lexer_record): ...new function.
22650 (nextchar): Removed.
22651 (grub_script_lexer_init): Rewritten.
22652 (grub_script_yylex): Rewritten.
22653 (append_newline): New function.
22654 (grub_script_lexer_yywrap): New function.
22655 (grub_script_lexer_fini): New function.
22656 (grub_script_yyerror): Sets error flag.
22657
22658 * script/yylex.l: New file.
22659 (grub_lexer_yyfree): Wrapper for flex yyffre.
22660 (grub_lexer_yyalloc): Likewise.
22661 (grub_lexer_yyrealloc): Likewise.
22662 * script/parser.y: Refactored.
22663
22664 * script/script.c (grub_script_arg_add): Out of memory fixes.
22665 (grub_script_add_arglist): Likewise.
22666 (grub_script_create_cmdline): Likewise.
22667 (grub_script_create_cmdmenu): Likewise.
22668 (grub_script_add_cmd): Likewise.
22669 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22670 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22671 unnecessary code.
22672
22673 * tests/grub_script_echo1.in: New testcase.
22674 * tests/grub_script_vars1.in: New testcase.
22675 * tests/grub_script_echo_keywords.in: New testcase.
22676
1d63a066
VS
226772010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22678
22679 Remove some redundancy in build system.
22680
22681 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22682 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22683 (TARGET_LDFLAGS): Add -nostdlib.
22684 (TARGET_IMG_LDFLAGS): Likewise.
22685 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22686 anything since mmap isn't available.
22687 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22688 Add util/time.c.
22689 (pkglib_MODULES): Remove reboot.mod.
22690 (reboot_mod_SOURCES): Removed.
22691 (reboot_mod_CFLAGS): Likewise.
22692 (reboot_mod_LDFLAGS): Likewise.
22693 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22694 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22695 (DEFSYMFILES): Add kernel_syms.lst.
22696 (kernel_img_HEADERS): Add common headers.
22697 (symlist.c): New target.
22698 (kernel_syms.lst): Likewise.
22699 (pkglib_MODULES): Add memdisk.mod.
22700 (memdisk_mod_SOURCES): New variable.
22701 (memdisk_mod_CFLAGS): Likewise.
22702 (memdisk_mod_LDFLAGS): Likewise.
22703 (pkglib_MODULES): Add reboot.mod.
22704 (reboot_mod_SOURCES): New variable.
22705 (reboot_mod_CFLAGS): Likewise.
22706 (reboot_mod_LDFLAGS): Likewise.
22707 (pkglib_MODULES): Add date.mod.
22708 (date_mod_SOURCES): New variable.
22709 (date_mod_CFLAGS): Likewise.
22710 (date_mod_LDFLAGS): Likewise.
22711 (pkglib_MODULES): Add datehook.mod.
22712 (datehook_mod_SOURCES): New variable.
22713 (datehook_mod_CFLAGS): Likewise.
22714 (datehook_mod_LDFLAGS): Likewise.
22715 (pkglib_MODULES): Add lsmmap.mod.
22716 (lsmmap_mod_SOURCES): New variable.
22717 (lsmmap_mod_CFLAGS): Likewise.
22718 (lsmmap_mod_LDFLAGS): Likewise.
22719 (pkglib_MODULES): Add boot.mod.
22720 (boot_mod_SOURCES): New variable.
22721 (boot_mod_CFLAGS): Likewise.
22722 (boot_mod_LDFLAGS): Likewise.
22723 * conf/i386-coreboot.rmk: Removed redundant parts.
22724 * conf/i386-ieee1275.rmk: Likewise.
22725 * conf/i386-pc.rmk: Likewise.
22726 * conf/mips-yeeloong.rmk: Likewise.
22727 * conf/mips.rmk: Likewise.
22728 * conf/powerpc-ieee1275.rmk: Likewise.
22729 * conf/sparc64-ieee1275.rmk: Likewise.
22730 * conf/x86_64-efi.rmk: Likewise.
22731 * conf/i386-coreboot.rmk: Moved qemu parts ..
22732 * conf/i386-qemu.rmk: ... here
22733 * conf/i386-efi.rmk: Moved common parts to...
22734 * conf/x86-efi.rmk: ... here.
22735 * conf/i386.rmk: Added modules common to all x86 variants.
22736 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22737 * disk/memdisk.c: Remove grub/machine/kernel.h.
22738 * gensymlist.sh.in: Include symbol.h.
22739 * hook/datehook.c: Correct module name.
22740 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22741 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22742 * include/grub/i386/efi/serial.h: New file.
22743 * include/grub/x86_64/efi/serial.h: Likewise.
22744 * util/time.c: Likewise.
22745 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22746
463ac55f
CK
227472010-03-14 Colin King <colin.king@ubuntu.com>
227482010-03-14 Colin Watson <cjwatson@ubuntu.com>
22749
22750 Shrink the pre-partition-table part of boot.img by eight bytes.
22751
22752 * boot/i386/pc/boot.S (ERR): New macro.
22753 (chs_mode): Use ERR.
22754 (geometry_error): Likewise.
22755 (hd_probe_error): Remove. This is only used once, so we wrwite
22756 it inline instead.
22757 (read_error): Instead of printing read_error_string, just set up
22758 %si and fall through to ...
22759 (error_message): ... this new function, also used by ERR.
22760
08e46ede
CW
227612010-03-14 Colin Watson <cjwatson@ubuntu.com>
22762
22763 Speed up consecutive hostdisk operations on the same device.
22764
22765 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22766 (grub_util_biosdisk_open): Initialise disk->data.
22767 (struct linux_partition_cache): New structure.
22768 (linux_find_partition): Cache partition start positions; these are
22769 expensive to compute on every read and write.
22770 (open_device): Cache open file descriptor in disk->data, so that we
22771 don't have to reopen it and flush the buffer cache for consecutive
22772 operations on the same device.
22773 (grub_util_biosdisk_close): New function.
22774 (grub_util_biosdisk_dev): Set `close' member.
22775
22776 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22777 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22778 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22779 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22780 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22781
4a6d2d06
VS
227822010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22783
22784 Compile parts of grub-emu as modules.
22785
22786 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22787 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22788 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22789 (all-local): Add $(GRUB_EMU).
22790 (install-local): Install $(GRUB_EMU).
22791 (uninstall): Uninstall $(GRUB_EMU).
22792 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22793 * kern/dl.c: Likewise.
22794 * commands/sleep.c: Not include machine/time.h.
22795 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22796 (COMMON_CFLAGS): Likewise.
22797 (sbin_UTILITIES): Remove grub-emu.
22798 (grub_emu_SOURCES): Removed.
22799 (kernel_img_RELOCATABLE): New variable.
22800 (pkglib_PROGRAMS): Add kernel.img.
22801 (kernel_img_SOURCES): New variable
22802 (kernel_img_CFLAGS): Likewise.
22803 (kernel_img_LDFLAGS): Likewise.
22804 (TARGET_NO_STRIP): Likewise.
22805 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22806 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22807 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22808 (grub-emu): New target.
22809 (GRUB_EMU): New variable.
22810 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22811 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22812 * loader/xnu.c: Likewise.
22813 * include/grub/pci.h: Likewise.
22814 * genemuinit.sh: New file.
22815 * genemuinitheader.sh: Likewise.
22816 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22817 Support TARGET_NO_DYNAMIC_MODULES.
22818 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22819 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22820 * disk/loopback.c: Likewise.
22821 * font/font_cmd.c: Likewise.
22822 * partmap/acorn.c: Likewise.
22823 * partmap/amiga.c: Likewise.
22824 * partmap/apple.c: Likewise.
22825 * partmap/gpt.c: Likewise.
22826 * partmap/msdos.c: Likewise.
22827 * partmap/sun.c: Likewise.
22828 * parttool/msdospart.c: Likewise.
22829 * term/gfxterm.c: Likewise.
22830 * video/bitmap.c: Likewise.
22831 * video/readers/jpeg.c: Likewise.
22832 * video/readers/png.c: Likewise.
22833 * video/readers/tga.c: Likewise.
22834 * video/video.c: Likewise.
22835 * util/grub-emu.c (read_command_list): Removed.
22836 (main): Don't call util_init_nls.
22837 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22838 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22839
91fdd2ed
VS
228402010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22841
22842 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22843 date.mod, datehook.mod.
22844 (datetime_mod_SOURCES): New variable.
22845 (datetime_mod_CFLAGS): Likewise.
22846 (datetime_mod_LDFLAGS): Likewise.
22847 (date_mod_SOURCES): Likewise.
22848 (date_mod_CFLAGS): Likewise.
22849 (date_mod_LDFLAGS): Likewise.
22850 (datehook_mod_SOURCES): Likewise.
22851 (datehook_mod_CFLAGS): Likewise.
22852 (datehook_mod_LDFLAGS): Likewise.
22853 * conf/sparc64-ieee1275.rmk: Likewise.
22854 * lib/ieee1275/datetime.c: New file.
22855
873ccae6
VS
228562010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22857
22858 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22859 (ieee1275_fb_mod_SOURCES): New variable.
22860 (ieee1275_fb_mod_CFLAGS): Likewise.
22861 (ieee1275_fb_mod_LDFLAGS): Likewise.
22862 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22863 New proto.
22864 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22865 (HEAP_MAX_ADDR): Likewise.
22866 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22867 type.
22868 Correct stop condition.
22869 (grub_ieee1275_devices_iterate): New function.
22870 * video/ieee1275.c: New file.
22871
601c97c0
VS
228722010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22873
22874 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22875
22876 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22877 as scratch.
22878 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22879 SCRATCH_PAD_DISKBOOT as scratch.
22880 (bootit): Pass Openfirmware pointer in %o4.
22881 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22882 of 0x200000.
22883 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22884 with util/grub-mkrawimage.c.
22885 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22886 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22887 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22888 (grub_aout_load) [GRUB_UTIL]: Likewise.
22889 * include/grub/kernel.h (grub_modules_get_end): New proto.
22890 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22891 (SCRATCH_PAD_BOOT): New definition.
22892 (SCRATCH_PAD_DISKBOOT): Likewise.
22893 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22894 * include/grub/sparc64/ieee1275/ieee1275.h
22895 (grub_ieee1275_original_stack): New variable
22896 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22897 New definition
22898 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22899 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22900 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22901 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22902 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22903 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22904 (grub_platform_image_format_t): New type.
22905 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22906 * kern/main.c (grub_modules_get_end)
22907 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22908 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22909 (codestart): Switch stacks.
22910 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22911 variable.
22912 (grub_heap_init): Use grub_modules_get_end.
22913 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22914 stack.
22915 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22916 (main): Likewise.
22917 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22918
d68b491e
TG
229192010-03-14 Thorsten Glaser <tg@mirbsd.org>
22920
22921 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22922
4e02ed50
MK
229232010-03-08 Matt Kraai <kraai@ftbfs.org>
22924
22925 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22926 bug #559005).
22927
1f15fc1e
VS
229282010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22929
22930 * genmoddep.awk: Output all missing symbols and not only first.
22931
fce5d8ff
VS
229322010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22933
22934 * NEWS: Put the date of 1.98 release.
22935
d1e8a02f
VS
229362010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22937
22938 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22939 ft2build.h.
22940
696fd607
VS
229412010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22942
22943 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22944 completition in the middle of string.
22945
33e2e6f3
VS
229462010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22947
22948 * util/grub-mkrescue.in: Use mktemp with explicit template.
22949
b1f6d291
VS
229502010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22951
22952 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22953
2ac227c7
VS
229542010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22955
22956 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22957 right pointer.
22958
8f9a632b
VS
229592010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22960
22961 Fix FreeBSD compilation.
22962
22963 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22964 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22965
60b03859
VS
229662010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22967
22968 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22969
48a5a769
VS
229702010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22971
22972 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22973
3ab4bd77
VS
229742010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22975
22976 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22977
d116e0d8
RM
229782010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22979
22980 Support relative image path in theme file.
22981
22982 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22983 (image_set_property): Handle theme_dir and relative path.
22984
c7ef54aa
VS
229852010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22986
22987 * configure.ac: Alias amd64 to x86_64.
22988
fcee14ed
VS
229892010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22990
22991 * NEWS: mention multiboot on EFI.
22992
d0780363
VS
229932010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22994
22995 * kern/main.c (grub_load_modules): Handle errors from init functions of
22996 embeded modules.
22997
41168ea4
VS
229982010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22999
23000 * normal/autofs.c (autoload_fs_module): Handle errors.
23001
b54d93ac
VS
230022010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23003
23004 Disable linux.mod on qemu-mips since it's not functional and leads
23005 to compilation failure.
23006
23007 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23008 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23009 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23010 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23011 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23012 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23013 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23014 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23015 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23016 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23017 Reported by: BVK Chaitanya
23018
fc8345da
JU
230192010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23020
23021 * INSTALL: Add gettext as a dependency and add qemu to a new section
23022 "Prerequisites for make-check".
23023
4760f979
CF
230242010-03-04 Christian Franke <franke@computer.org>
23025
23026 * util/grub-pe2elf.c: Add missing include "progname.h".
23027
f209b5b2
VS
230282010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23029
23030 * normal/crypto.c (read_crypto_list): Fix a typo.
23031 Reported by: Seth Goldberg.
23032
b4b7be98
VS
230332010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23034
23035 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 23036 Reported by: Seth Goldberg.
b4b7be98 23037
c0ee0385
VS
230382010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23039
23040 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23041 ascii.bitmaps.
23042
a8efbf64
VS
230432010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23044
23045 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 23046 Reported by: Seth Goldberg.
a8efbf64 23047
08dcd913
VS
230482010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23049
23050 * util/i386/efi/grub-install.in: Copy gettext files.
23051
c4d0b332
VS
230522010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23053
23054 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23055
c6f2fe52
VS
230562010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23057
23058 Wait for user entry basing on presence of output rather than on errors.
23059
23060 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23061 (grub_install_newline_hook): Likewise.
23062 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23063 * normal/menu.c (show_menu): Check line_counter to determine presence
23064 of output.
23065 * normal/term.c (grub_normal_line_counter): New variable.
23066 (grub_normal_get_line_counter): New function.
23067 (grub_install_newline_hook): Likewise.
23068
5382b1e4
VS
230692010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23070
23071 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23072
5519963b
VS
230732010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23074
23075 * configure.ac: Update version to 1.98.
23076
72b28631
VS
230772010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23078
23079 * util/grub.d/10_linux.in (linux_entry): Don't default to
23080 gfxpayload=keep if Linux doesn't support video handover.
23081
c140a180
VS
230822010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23083
23084 Don't compile video modules on yeeloong since video subsystem is part
23085 of kernel.
23086
23087 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23088 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23089 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23090 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23091 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23092 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23093 * include/grub/bitmap_scale.h: Likewise.
23094 * include/grub/bufio.h: Likewise.
23095 * include/grub/font.h: Likewise.
23096 * include/grub/gfxterm.h: Likewise.
23097 * include/grub/video.h: Likewise.
23098 * include/grub/vbe.h: Don't include video_fb.h.
23099 * video/i386/pc/vbe.c: Include video_fb.h.
23100 * commands/i386/pc/vbetest.c: Include video.h.
23101
a0ca21c2
CW
231022010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23103
23104 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23105 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23106 default entry if GRUB_SAVEDEFAULT=true. This allows using
23107 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23108 saving a new default on every boot.
23109
4a8a763c
VS
231102010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23111
23112 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23113 * normal/term.c (read_terminal_list): Likewise.
23114 * normal/main.c (grub_normal_init_page): Likewise.
23115 (grub_normal_read_line_real): Likewise.
23116
607ffde2
VS
231172010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23118
23119 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23120 memory leak.
23121 Reported by: Seth Goldberg.
23122
2b8fa975
CW
231232010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23124
23125 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23126 duplicate declaration of `start'.
23127
618307dd
VS
231282010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23129
23130 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23131 filename.
23132 Reported by: Georgy Buranov
23133
7dd05b96 231342010-02-20 Carles Pina i Estany <carles@pina.cat>
23135
23136 * util/grub-mkrawimage.c (usage): Change string formatting to
23137 improve gettext.
23138
d1484a42
MRA
231392010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23140
23141 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23142 backspace keys.
23143
42b1d186
VS
231442010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23145
23146 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23147 Reported by: Michael Suchanek.
23148
231492010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
23150
23151 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23152 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23153
d9f31a41
VS
231542010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23155
23156 Remove any reference to non-free fonts.
23157
23158 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23159 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23160 uses non-free components.
23161 * font/font.c (grub_font_get_name): Remove example name.
23162 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23163 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23164 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23165 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23166
2793c71e
GB
231672010-02-16 Georgy Buranov <gburanov@gmail.com>
23168
23169 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23170
402e3779
VS
231712010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23172
23173 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23174 Double divisor.
23175 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23176 features.
23177 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23178
0dd1e0dd
VS
231792010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23180
23181 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23182
6fa7cfce
ST
231832010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23184
23185 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23186 * docs/grub.texi (Command-line and menu entry commands): Document play
23187 command.
23188
37c8483b
ST
231892010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23190
23191 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23192 parse arguments as inline tempo and notes. Move code for playing notes
23193 to...
23194 (play): ... new function.
23195
14da0fb7
ST
231962010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23197
23198 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23199 grub_uint16_t instead of short.
23200 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23201 disk from little endian to cpu endianness.
23202
04459e70
ST
232032010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23204
23205 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23206 GRUB_TICKS_PER_SECOND instead of 120.
23207
a0876943
VS
232082010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23209
23210 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23211 escape sequence after \e.
23212
e29f95dc
VS
232132010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23214
23215 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23216 non-ASCII characters.
23217
d27859b2
VS
232182010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23219
23220 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23221 set root in single quotes to prevent \, from being unescaped.
23222
bc028f2f
VS
232232010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23224
23225 Prevent unknown commands from stopping menuentry execution.
23226
23227 * script/execute.c (grub_script_execute_cmdline): Print error after
23228 unknown command.
23229
095f5f82
VS
232302010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23231
23232 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23233 Reported by: Pavel Pisa.
23234
8c717950
VS
232352010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23236
23237 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23238
904935c3
VS
232392010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23240
23241 Merge grub_ieee1275_map_physical into grub_map and rename to
23242 grub_ieee1275_map
23243
23244 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23245 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23246 Remove.
23247 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23248 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23249 necessary.
23250 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23251
5b59a4e3
VS
232522010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23253
23254 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23255 opening and not after.
23256
69e137e8
VS
232572010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23258
23259 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23260 constants.
23261
2c0fcc36
VS
232622010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23263
23264 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23265 (alloc_phys): Use ALIGN_UP instead of align_addr.
23266
8c6052ce
VS
232672010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23268
23269 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23270
17cec782
VS
232712010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23272
23273 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23274
e0128bbd
VS
232752010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23276
23277 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23278 verbose dprintf.
23279
ca62070b
VS
232802010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23281
23282 Fix over-4GiB seek on sparc64.
23283
23284 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23285 Replace pos_i and pos_lo with pos. All users updated.
23286 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23287 New constant.
23288 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23289 Likewise.
23290 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23291 and pos_lo.
23292
bdca2607
VS
232932010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23294
23295 * util/grub-mkrawimage.c (main): Call set_program_name.
23296
da278c4d
VS
232972010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23298
23299 Properly align 64-bit targets.
23300
23301 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23302 (generate_image): Use ALIGN_ADDR.
23303
b274d734
VS
233042010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23305
23306 Properly create cross-endian images.
23307
23308 * include/grub/types.h (grub_host_to_target_addr): New macro
23309 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23310
82da2062
VS
233112010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23312
23313 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23314
7cae4377
VS
233152010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23316
23317 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23318
23319 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23320 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23321 (grub_linux_boot): Divide by 64K when on VESA.
23322
65a533e7
VS
233232010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23324
23325 Support GRUB_GFXPAYLOAD_LINUX.
23326
23327 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23328 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23329
dd01d397
VS
233302010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23331
23332 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23333 to show messages instead of discarding them.
23334 Process errors after executing command and not before. Keep old method
23335 too as precaution.
23336
660960d6
VS
233372010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23338
23339 * configure.ac: Check for ft2build.h.
23340
62509f04
VS
233412010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23342
23343 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23344
473df63d
VS
233452010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23346
23347 * genkernsyms.sh.in: Use TARGET_CC.
23348
c98d2a13
CW
233492010-02-07 Colin Watson <cjwatson@ubuntu.com>
23350
23351 * NEWS: Update.
23352
6e14234c
VS
233532010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23354
23355 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
23356 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23357 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 23358
b255e9cf
YB
233592010-02-07 Yves Blusseau <blusseau@zetam.org>
23360
6e14234c 23361 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 23362
98e6959d
VS
233632010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23364
23365 Fix warnings in grub-emu when compiling with maximum warning options.
23366
23367 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23368 (grub_arch_modules_addr): Return 0 and not NULL.
23369 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 23370 (xstrdup): Use newstr instead of dup.
f88d801b
VS
23371 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23372 of disk to dsk to avoid shadowing.
74e4934e
VS
23373 (find_free_slot): Fix prototype.
23374 * util/getroot.c (grub_util_is_dmraid): Make static.
23375 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23376 Add missing prototype.
23377 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 23378
74e31b5c
VS
233792010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23380
23381 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23382 appropriately.
23383
6b2ad14b
VS
233842010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23385
23386 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23387 code out.
23388
8f891adc
VS
233892010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23390
23391 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23392 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23393 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23394 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23395 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23396 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23397
74b45184
VS
233982010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23399
23400 * include/grub/err.h (grub_err_printf): Don't export.
23401
a4bced77
VS
234022010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23403
23404 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23405
007d0695
VS
234062010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23407
23408 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23409 * kern/misc.c (grub_gettext_dummy): Make static.
23410
b6c0d9c2
VS
234112010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23412
23413 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23414 by non-valid ones.
23415 * kern/term.c (grub_putchar): Likewise.
23416
f51a90d0
VS
234172010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23418
23419 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23420 buggy hook call and memory leak.
23421
6846cec5
VS
234222010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23423
23424 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23425
468d69fe
VS
234262010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23427
23428 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23429
51906b8c
VS
234302010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23431
23432 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23433 modevar.
23434 Return grub_errno on allocation error.
23435
09706ce5
VS
234362010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23437
23438 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23439
911df80c
YB
234402010-02-06 Yves Blusseau <blusseau@zetam.org>
23441
23442 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23443 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23444
3746a6bc
VS
234452010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23446
23447 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23448 non-pxe disk.
23449 (grub_pxefs_open): Likewise.
23450
09706ce5
VS
234512010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23452
23453 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23454 * util/grub.d/10_kfreebsd.in: Likewise.
23455 * util/grub.d/10_linux.in: Likewise.
23456
7cc192d9
VS
234572010-02-06 Colin D Bennett <colin@gibibit.com>
23458
23459 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23460 (gfxmenu_mod_SOURCES): New variable.
23461 (gfxmenu_mod_CFLAGS): Likewise.
23462 (gfxmenu_mod_LDFLAGS): Likewise.
23463 * include/grub/term.h (grub_term_set_current_output): Declare
23464 argument as const.
23465 * docs/gfxmenu-theme-example.txt: New file.
23466 * gfxmenu/gfxmenu.c: Likewise.
23467 * gfxmenu/gui_box.c: Likewise.
23468 * gfxmenu/gui_canvas.c: Likewise.
23469 * gfxmenu/gui_circular_progress.c: Likewise.
23470 * gfxmenu/gui_image.c: Likewise.
23471 * gfxmenu/gui_label.c: Likewise.
23472 * gfxmenu/gui_list.c: Likewise.
23473 * gfxmenu/gui_progress_bar.c: Likewise.
23474 * gfxmenu/gui_string_util.c: Likewise.
23475 * gfxmenu/gui_util.c: Likewise.
23476 * gfxmenu/icon_manager.c: Likewise.
23477 * gfxmenu/model.c: Likewise.
23478 * gfxmenu/named_colors.c: Likewise.
23479 * gfxmenu/theme_loader.c: Likewise.
23480 * gfxmenu/view.c: Likewise.
23481 * gfxmenu/widget-box.c: Likewise.
23482 * include/grub/gfxmenu_model.h: Likewise.
23483 * include/grub/gfxmenu_view.h: Likewise.
23484 * include/grub/gfxwidgets.h: Likewise.
23485 * include/grub/gui.h: Likewise.
23486 * include/grub/gui_string_util.h: Likewise.
23487 * include/grub/icon_manager.h: Likewise.
23488
234892010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23490
23491 Agglomerate scrolling in gfxterm.
23492
23493 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23494 (grub_virtual_screen_setup): Initialise 'total_screen'.
23495 (write_char): Split to ...
23496 (paint_char): ... this ...
23497 (write_char): ... and this.
23498 (paint_char): Handle delayed scrolling.
23499 (draw_cursor): Likewise.
23500 (scroll_up): Split to ...
23501 (real_scroll): ... this ...
23502 (scroll_up): ... and this.
23503 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23504 characters.
23505 (grub_gfxterm_refresh): Call real_scroll.
23506
235072010-02-06 Colin D Bennett <colin@gibibit.com>
23508
23509 * include/grub/misc.h (grub_iscntrl): New inline function.
23510 (grub_isalnum): Likewise.
23511 (grub_strtol): Likewise.
23512
235132010-02-06 Colin D Bennett <colin@gibibit.com>
23514
23515 * normal/menu_text.c (get_entry_number): Move from here ...
23516 * normal/menu.c (get_entry_number): ... moved here.
23517 * include/grub/menu.h (grub_menu_get_default_entry_index):
23518 New prototype.
23519 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23520 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23521 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23522 (grub_menu_viewer_should_return): Likewise.
23523 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23524 * normal/menu_text.c (run_menu): Enable menu switching.
23525 * normal/menu_viewer.c (should_return): New variable.
23526 (menu_viewer_changed): Likewise.
23527 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23528 (grub_menu_viewer_should_return): New function.
23529 (menuviewer_write_hook): Likewise.
23530 (grub_menu_viewer_init): Likewise.
23531
235322010-02-06 Colin D Bennet <colin@gibibit.com>
235332010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23534
23535 Support for gfxterm in a window.
23536
23537 * include/grub/gfxterm.h: New file.
23538 * include/grub/video.h (struct grub_video_rect): New declaration.
23539 (grub_video_rect_t): Likewise.
23540 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23541 (refcount): New variable.
23542 (render_target): Likewise.
23543 (window): Likewise.
23544 (repaint_callback): Likewise.
23545 (grub_virtual_screen_setup): Use 'render_target'.
23546 (init_window): New function.
23547 (grub_gfxterm_init_window): Likewise.
23548 (grub_gfxterm_init): Check reference counter.
23549 Use init_window.
23550 (destroy_window): New function.
23551 (grub_gfxterm_destroy_window): Likewise.
23552 (grub_gfxterm_fini): Check reference counter.
23553 Use destroy_window.
23554 (redraw_screen_rect): Restore viewport.
23555 Use 'render_target' and 'window'.
23556 Call 'repaint_callback'.
23557 (write_char): Use 'render_target'.
23558 (draw_cursor): Likewise.
23559 (scroll_up): Restore viewport.
23560 Use 'render_target' and 'window'.
23561 Call 'repaint_callback'.
23562 (grub_gfxterm_cls): Likewise.
23563 (grub_gfxterm_refresh): Use 'window'.
23564 (grub_gfxterm_set_repaint_callback): New function.
23565 (grub_gfxterm_background_image_cmd): Use 'window'.
23566 (grub_gfxterm_get_term): New function.
23567 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23568
235692010-02-06 Colin D Bennett <colin@gibibit.com>
23570
23571 Bitmap scaling support.
23572
23573 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23574 (bitmap_scale_mod_SOURCES): New variable.
23575 (bitmap_scale_mod_CFLAGS): Likewise.
23576 (bitmap_scale_mod_LDFLAGS): Likewise.
23577 * include/grub/bitmap_scale.h: New file.
23578 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23579 (background_image_cmd_options): New variable.
23580 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23581 (cmd): Rename and change type to ...
23582 (background_image_cmd_handle): ... this. All users updated.
23583 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23584 * video/bitmap_scale.c: New file.
23585
235862010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23587
23588 SDL support.
23589
23590 * Makefile.in (LIBSDL): New variable.
23591 (enable_grub_emu_sdl): Likewise.
23592 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23593 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23594 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23595 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23596 * util/sdl.c: New file.
23597
235982010-02-06 Colin D Bennett <colin@gibibit.com>
235992010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23600
23601 Double buffering support.
23602
23603 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23604 * include/grub/video.h: Update comment.
23605 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23606 New type.
23607 (grub_video_fb_doublebuf_blit_init): New prototype.
23608 * term/gfxterm.c (scroll_up): Support double buffering.
23609 (grub_gfxterm_refresh): Likewise.
23610 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23611 (grub_video_fb_doublebuf_blit_init): Likewise.
23612 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23613 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23614 'displayed_page', 'render_page' and 'update_screen'.
23615 (grub_video_vbe_fini): Free offscreen buffer.
23616 (doublebuf_pageflipping_commit): New function.
23617 (doublebuf_pageflipping_update_screen): Likewise.
23618 (doublebuf_pageflipping_init): Likewise.
23619 (double_buffering_init): Likewise.
23620 (grub_video_vbe_setup): Enable doublebuffering.
23621 (grub_video_vbe_swap_buffers): Implement.
23622 (grub_video_vbe_set_active_render_target): Handle double buffering.
23623 (grub_video_vbe_get_active_render_target): Likewise.
23624 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23625 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23626 (grub_video_vbe_enable_double_buffering): Likewise.
23627 (grub_video_vbe_swap_buffers): Use update_screen.
23628 (grub_video_set_mode): Use double buffering.
23629
236302010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23631
23632 * maintainance/gentrigtables.py: Remove.
23633 * lib/trig.c: Likewise.
23634
23635 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23636
23637 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23638 `trigtables.c'.
23639 (trigtables.c): New rule.
23640 (gentrigtables): Likewise.
23641 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23642
236432010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23644
23645 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23646 integer constants.
23647
236482010-02-06 Colin D Bennet <colin@gibibit.com>
23649
23650 Trigonometry support.
23651
23652 * include/grub/trig.h: New file.
23653 * lib/trig.c: Likewise.
23654 * maintainance/gentrigtables.py: Likewise.
23655 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23656 (trig_mod_SOURCES): New variable.
23657 (trig_mod_CFLAGS): Likewise.
23658 (trig_mod_LDFLAGS): Likewise.
23659
5562834e
VS
236602010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23661
23662 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23663 disk devices.
23664
4f8528fc
VS
236652010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23666
23667 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23668 error.
23669
2b4068e9
VS
236702010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23671
23672 * util/hostdisk.c (open_device): Don't use partition device when reading
23673 before the partition.
23674 (grub_util_biosdisk_read): Don't read from partition and before the
23675 partition in single operation.
23676 (grub_util_biosdisk_write): Don't write to partition and before the
23677 partition in single operation.
23678
399f6e4d
TL
236792010-02-03 Torsten Landschoff <torsten@debian.org>
23680
23681 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23682 last sectors.
23683
996649b0
VS
236842010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23685
23686 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23687 CDROM reads.
23688 (grub_biosdisk_write): Refuse to write to CDROM.
23689
3b205d4d
VS
236902010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23691
23692 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23693
61e89d9d
VS
236942010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23695
23696 * font/font.c (find_glyph): Check that bmp_idx is available before
23697 using it.
23698 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23699 with (font == NULL).
23700
bf7fcba2
CS
237012010-01-28 Christian Schmitt <chris@ilovelinux.de>
23702
23703 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23704
f45d2663
BC
237052010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23706
23707 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23708 * util/grub-script-check.c (getline): Fix empty lines case.
23709
ec1444e6
RM
237102010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23711
23712 * Makefile.in (check): Exit with fail status when one of the tests
23713 fails.
23714 * tests/example_functional_test.c (example_test): Fix reversed assert.
23715 * tests/example_unit_test.c (example_test): Likewise.
23716
2e1cb9bb
CW
237172010-01-28 Colin Watson <cjwatson@ubuntu.com>
23718
23719 * util/grub.d/10_linux.in: This script does not use any of the
23720 contents of gettext.sh, only the external command `gettext', so stop
23721 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23722 the same prefix as GRUB.)
23723 * util/grub.d/10_kfreebsd.in: Likewise.
23724
63533ab0
VS
237252010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23726
23727 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23728 of the line.
23729
989e1f93
VS
237302010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23731
23732 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23733 last sectors.
23734
e709ebe2
VS
237352010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23736
23737 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23738 having a 4KiB and not 32KiB buffer size.
23739
27dea7ed
RM
237402010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23741
23742 * util/hostfs.c: Include `<errno.h>'.
23743 (grub_hostfs_read): Handle errors from fseeko() and fread().
23744
67667b9c
RM
237452010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23746
23747 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23748 loop when using read hooks on files whose size isn't sector-aligned.
23749
c294d9d8
RM
237502010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23751
23752 Remove unused parameter.
23753
23754 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23755 (grub_iso9660_open): Remove initialization of `data->length'.
23756
af75a9f1
RM
237572010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23758
23759 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23760 memleak conditions.
23761
254e2ce5 237622010-01-27 Carles Pina i Estany <carles@pina.cat>
23763
23764 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23765 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23766
b510928c 237672010-01-26 Carles Pina i Estany <carles@pina.cat>
23768
23769 * util/bin2h.c (usage): Fix warning (space after backslash).
23770
aa2f9dd2 237712010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 23772
23773 * font/font.c: Include `grub/fontformat.h.
23774 Remove font file format constants.
23775 (grub_font_load): Use the new macros.
23776 * include/grub/fontformat.h: New file.
23777 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23778 (write_font_pf2): Use the new macros.
23779
94e7e712
RM
237802010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23781
23782 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23783 does.
23784
3973a59a
RM
237852010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23786
23787 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23788
23789 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23790 (_start): Macroify `0x7F'.
23791
23792 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23793 (make_install_device): Use "(pxe)" as fallback prefix when booting
23794 via PXE.
23795
42e0cba3
GS
237962010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23797
23798 * configure.ac: Reset LIBS after check for libgcc symbols.
23799
847effd8
CW
238002010-01-25 Colin Watson <cjwatson@ubuntu.com>
23801
23802 * util/hostdisk.c (open_device): Add trailing newline to debug
23803 message.
23804
ea4a7e35
GS
238052010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23806
23807 * configure.ac: Check for `limits.h'.
23808 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23809
67951a53
RM
238102010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23811
23812 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23813 capitalize error strings.
23814
c273d4ce
ST
238152010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23816
23817 * util/grub.d/10_hurd.in: Add a recovery mode.
23818
69be5b74
VS
238192010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23820
23821 * configure.ac: Check for libgcc symbols with -nostdlib.
23822
fc9e5810
BC
238232010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23824
23825 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23826
4b358c0a
VS
238272010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23828
23829 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23830 stack since heap may be unavailable at that point.
23831 (grub_ofconsole_gotoxy): Likewise.
23832
454fcd1c
VS
238332010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23834
23835 * configure.ac: Check for _restgpr_14_x.
23836 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23837 and _savegpr_* prototypes.
23838
566863ca
RM
238392010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23840
23841 Use generic grub_reboot() for i386-efi.
23842
23843 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23844 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23845 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23846
bf86e59a
VS
238472010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23848
23849 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23850 presence of "prefix" variable as it breaks when normal.mod is
23851 embedded.
23852
d645e0f8
VS
238532010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23854
23855 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23856 stack since heap is unavailable at that point.
23857
f9ab2e25
VS
238582010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23859
23860 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23861 (grub_freebsd_bootinfo): Rewritten.
23862 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23863
01fc7054
VS
238642010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23865
23866 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23867
caab4fd6
RM
238682010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23869
23870 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23871 domain now.
23872
67eb1427
FZ
238732010-01-20 Felix Zielcke <fzielcke@z-51.de>
23874
23875 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23876 around for handling "/" to the correct fix. Fix a memory leak. Use
23877 xstrdup instead of strdup.
23878
a9ed4ff3
VS
238792010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23880
23881 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23882
238832010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
23884
23885 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23886
23887 * font/font.c (struct grub_font): New member 'bmp_idx'.
23888 (font_init): Initialise 'bmp_idx'.
23889 (load_font_index): Fill 'bmp_idx'.
23890 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23891
48209f4f
VS
238922010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23893
23894 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23895 unnecessary calls.
23896
9f0a4bb7
VS
238972010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23898
23899 Move context handling out of the kernel.
23900
23901 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23902 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23903 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23904 * conf/i386-efi.rmk: Likewise.
23905 * conf/i386-ieee1275.rmk: Likewise.
23906 * conf/i386-pc.rmk: Likewise.
23907 * conf/powerpc-ieee1275.rmk: Likewise.
23908 * conf/sparc64-ieee1275.rmk: Likewise.
23909 * conf/x86_64-efi.rmk: Likewise.
23910 * include/grub/env.h: Include grub/menu.h.
23911 (grub_env_var_type): Removed.
23912 (grub_env_var): Replaced field 'type' with 'global'.
23913 (grub_env_find): New prototype.
23914 (grub_env_context_open): Remove EXPORT_FUNC.
23915 (grub_env_context_close): Likewise.
23916 (grub_env_export): Likewise.
23917 (grub_env_set_data_slot): Removed.
23918 (grub_env_get_data_slot): Likewise.
23919 (grub_env_unset_data_slot): Likewise.
23920 (grub_env_unset_menu): New prototype.
23921 (grub_env_set_menu): Likewise.
23922 (grub_env_get_menu): Likewise.
23923 * include/grub/env_private.h: New file.
23924 * include/grub/normal.h (grub_context_init): New prototype.
23925 (grub_context_fini): Likewise.
23926 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23927 * normal/context.c (grub_cmd_export): ... to here.
23928 * kern/env.c: Include env_private.h.
23929 (HASHSZ): Moved to include/grub/env_private.h.
23930 (grub_env_context): Likewise.
23931 (grub_env_sorted_var): Likewise.
23932 (current_context): Renamed from this ...
23933 (grub_current_context): ...to this. 'static' removed. All users updated.
23934 (grub_env_find): Removed 'static'.
23935 (grub_env_context_open): Moved to normal/context.c.
23936 (grub_env_context_close): Likewise.
23937 (grub_env_export): Likewise.
23938 (mangle_data_slot_name): Removed.
23939 (grub_env_set_data_slot): Likewise.
23940 (grub_env_get_data_slot): Likewise.
23941 (grub_env_unset_data_slot): Likewise.
23942 * kern/main.c (grub_set_root_dev): Don't export root.
23943 It will be done later.
23944 (grub_main): Don't export prefix.
23945 It will be done later.
23946 * normal/context.c: New file.
23947 * normal/main.c (free_menu): Use grub_env_unset_menu.
23948 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23949 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23950 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23951 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23952
8dd35b8c
VS
239532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23954
23955 setpci support.
23956
23957 * commands/setpci.c: New file.
23958 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23959 (setpci_mod_SOURCES): New variable.
23960 (setpci_mod_CFLAGS): Likewise.
23961 (setpci_mod_LDFLAGS): Likewise.
23962
449193d5
VS
239632010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23964
23965 Byte-addressable PCI configuration space.
23966
23967 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23968 dword address.
23969 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23970 GRUB_PCI_REG_CACHELINE.
23971 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23972 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23973 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23974 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23975 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23976 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23977 grub_pci_make_address.
23978 (lock_rom_area): Likewise.
23979 * commands/lspci.c (grub_lspci_iter): Use macroses
23980 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23981 of grub_pci_make_address.
23982 * disk/ata.c (grub_ata_pciinit): Likewise.
23983 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23984 (GRUB_PCI_REG_VENDOR): Likewise.
23985 (GRUB_PCI_REG_DEVICE): Likewise.
23986 (GRUB_PCI_REG_COMMAND): Likewise.
23987 (GRUB_PCI_REG_STATUS): Likewise.
23988 (GRUB_PCI_REG_REVISION): Likewise.
23989 (GRUB_PCI_REG_CLASS): Likewise.
23990 (GRUB_PCI_REG_CACHELINE): Likewise.
23991 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23992 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23993 (GRUB_PCI_REG_BIST): Likewise.
23994 (GRUB_PCI_REG_ADDRESSES): Likewise.
23995 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23996 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23997 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23998 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23999 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24000 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24001 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24002 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24003 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24004 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24005 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24006 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24007 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24008 (GRUB_PCI_REG_MIN_GNT): Likewise.
24009 (GRUB_PCI_REG_MAX_LAT): Likewise.
24010 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24011 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24012 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 24013 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
24014 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24015 space.
24016
96d73208
RM
240172010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24018
24019 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24020 can be reliably determined to be supported.
24021
d4484482
RM
240222010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24023
24024 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24025 that VESA is supported.
24026 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24027 supported.
24028
00308ecf
VS
240292010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24030
24031 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24032
f66924a4
RM
240332010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24034
24035 * util/misc.c (make_system_path_relative_to_its_root): Work around
24036 special-casing of "/", as previous incarnation of this routine did.
24037
cbca0ada
VS
240382010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24039
24040 Fix any-emu compilation.
24041
24042 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24043 * grub_bin2h_SOURCES: New variable.
24044
34a66d99
RM
240452010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24046
24047 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24048
94fabf58
RM
240492010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24050
24051 * util/grub.d/00_header.in: Fix handling of locale_dir.
24052
02cf98ca
VS
240532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24054
24055 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24056 as possible unifont location (Gentoo).
24057 Reported by: Alexander Brüning
24058
327dbcd7
VS
240592010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24060
24061 Don't try to generate lists for kernel.img.
24062
24063 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24064 (pkglib_MODULES): Remove kernel.img.
24065 (kernel_img_EXPORTS): Removed.
24066 (kernel_img_RELOCATABLE): New variable.
24067 * conf/x86_64-efi.rmk: Likewise.
24068 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24069
ca467290
VS
240702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24071
24072 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24073 grub_xasprintf or grub_snprintf.
24074 (grub_vsprintf): Likewise.
24075 (grub_snprintf): New proto.
24076 (grub_vsnprintf): Likewise.
24077 (grub_xasprintf): Likewise.
24078 (grub_xvasprintf): Likewise.
24079 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24080 (grub_sprintf): Removed.
24081 (grub_vsnprintf): New function.
24082 (grub_snprintf): Likewise.
24083 (grub_xvasprintf): Likewise.
24084 (grub_xasprintf): Likewise.
24085 (grub_vsprintf): Renamed to ...
24086 (grub_vsnprintf_real): ...this. New argument max_len.
24087
aca655fd
BC
240882010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24089
24090 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24091 fix grub-script-check warning.
24092
7ee92c32
VS
240932010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24094
24095 * include/grub/font.h (grub_font_load): Fix prototype.
24096
f80927ca
VS
240972010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24098
24099 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24100
119c50ea
VS
241012010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24102
24103 * include/grub/x86_64/at_keyboard.h: New file.
24104
47d5f3c1
VS
241052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24106
24107 * loader/mips/linux.c: Include missing grub/i18n.h.
24108
55ff5266
RM
241092009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24110
24111 * normal/menu.c (notify_execution_failure): Clarify error message.
24112
c893cc87
RM
241132009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24114
24115 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24116 return value (and revert all return statements). Update users.
24117
917dd370
CW
241182010-01-20 Dan Merillat <debian@dan.merillat.org>
24119
24120 * kern/device.c (grub_device_iterate): Allocate new part_ent
24121 structure based on sizeof (*p) rather than sizeof (p->next), to
24122 account for structure padding.
24123
24124 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24125 disk is NULL, which might happen for LVM physical volumes with no
24126 LVM signature.
24127
d4a4ee57
RM
241282009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24129
24130 * loader/mips/linux.c (grub_cmd_initrd)
24131 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24132
241332009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24134
24135 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24136 (grub_video_video_init, grub_video_bitmap_init)
24137 (grub_font_manager_init, grub_term_gfxterm_init)
24138 (grub_at_keyboard_init): New extern declarations.
24139 (grub_machine_init): Initialize gfxterm and at_keyboard.
24140
24141 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24142
24143 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24144 `gfxterm.mod' into core image.
24145
24146 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24147 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24148 (kernel_img_FORMAT): Copy to ...
24149
24150 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24151 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24152 (kernel_img_FORMAT): ... here, and ...
24153
24154 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24155 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24156 (kernel_img_FORMAT): ... here.
24157
24158 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24159 and input (at_keyboard) terminals in kernel.
24160 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24161
24162 (pkglib_MODULES): Remove `pci.mod'.
24163 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24164 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24165 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24166 (at_keyboard_mod_LDFLAGS): Remove variables.
24167
241682010-01-11 Felix Zielcke <fzielcke@z-51.de>
24169
24170 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24171
241722009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24173
24174 * include/grub/mips/libgcc.h: Only export symbols for functions
24175 that libgcc provides.
24176
241772009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24178
24179 MIPS support.
24180
24181 * bus/bonito.c: New file.
24182 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24183 GRUB_PCI_NUM_DEVICES.
24184 * term/i386/pc/serial.c: Move to ...
24185 * term/serial.c: ... here. All users updated.
24186 * util/i386/pc/grub-mkimage.c: Move to ...
24187 * util/grub-mkrawimage.c: ... here. All users updated.
24188 * term/i386/pc/at_keyboard.c: Move to ...
24189 * term/at_keyboard.c: ... here. All users updated.
24190 * conf/mips-qemu-mips.rmk: New file.
24191 * conf/mips-yeeloong.rmk: Likewise.
24192 * conf/mips.rmk: Likewise.
24193 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24194 mipsel-qemu-mips.
24195 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24196 to port addresses.
24197 (grub_ata_pciinit): Support CS5536.
24198 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24199 * font/font_cmd.c (loadfont_command): Open file before passing it to
24200 grub_font_load.
24201 (pseudo_file_read): New function.
24202 (pseudo_file_close): Likewise.
24203 (pseudo_fs): New structure.
24204 (load_font_module): New function.
24205 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24206 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24207 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24208 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24209 * include/grub/i386/at_keyboard.h: Split into ...
24210 * include/grub/at_keyboard.h: ... this ...
24211 * include/grub/i386/at_keyboard.h: ... and this.
24212 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24213 New prototype.
24214 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24215 updated.
24216 (grub_elf64_size): Likewise.
24217 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24218 filename.
24219 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24220 * include/grub/i386/coreboot/serial.h: Rewritten.
24221 * include/grub/i386/ieee1275/serial.h: Include
24222 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24223 * include/grub/i386/pc/serial.h: Moved from here ...
24224 * include/grub/serial.h: ... to here. All users updated.
24225 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24226 (GRUB_PCI_NUM_BUS): Likewise.
24227 (GRUB_PCI_NUM_DEVICES): Likewise.
24228 (grub_pci_device_map_range): Add missing volatile keyword.
24229 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24230 * include/grub/mips/at_keyboard.h: New file.
24231 * include/grub/mips/cache.h: Likewise.
24232 * include/grub/mips/io.h: Likewise.
24233 * include/grub/mips/kernel.h: Likewise.
24234 * include/grub/mips/libgcc.h: Likewise.
24235 * include/grub/mips/pci.h: Likewise.
24236 * include/grub/mips/qemu-mips/boot.h: Likewise.
24237 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24238 * include/grub/mips/qemu-mips/loader.h: Likewise.
24239 * include/grub/mips/qemu-mips/memory.h: Likewise.
24240 * include/grub/mips/qemu-mips/serial.h: Likewise.
24241 * include/grub/mips/qemu-mips/time.h: Likewise.
24242 * include/grub/mips/relocator.h: Likewise.
24243 * include/grub/mips/time.h: Likewise.
24244 * include/grub/mips/types.h: Likewise.
24245 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24246 * include/grub/mips/yeeloong/boot.h: Likewise.
24247 * include/grub/mips/yeeloong/kernel.h: Likewise.
24248 * include/grub/mips/yeeloong/loader.h: Likewise.
24249 * include/grub/mips/yeeloong/memory.h: Likewise.
24250 * include/grub/mips/yeeloong/pci.h: Likewise.
24251 * include/grub/mips/yeeloong/serial.h: Likewise.
24252 * include/grub/mips/yeeloong/time.h: Likewise.
24253 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24254 * kern/elf.c (grub_elf32_size): New parameter. All users
24255 updated.
24256 (grub_elf64_size): Likewise.
24257 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24258 Load modules before saying "Welcome to GRUB!".
24259 Call grub_refresh after saying "Welcome to GRUB!".
24260 * kern/mips/cache.S: New file.
24261 * kern/mips/cache_flush.S: Likewise.
24262 * kern/mips/dl.c: Likewise.
24263 * kern/mips/init.c: Likewise.
24264 * kern/mips/qemu-mips/init.c: Likewise.
24265 * kern/mips/startup.S: Likewise.
24266 * kern/mips/yeeloong/init.c: Likewise.
24267 * kern/term.c (grub_putcode): Handle NULL terminal.
24268 (grub_getcharwidth): Likewise.
24269 (grub_getkey): Likewise.
24270 (grub_checkkey): Likewise.
24271 (grub_getkeystatus): Likewise.
24272 (grub_getxy): Likewise.
24273 (grub_getwh): Likewise.
24274 (grub_gotoxy): Likewise.
24275 (grub_cls): Likewise.
24276 (grub_setcolorstate): Likewise.
24277 (grub_setcolor): Likewise.
24278 (grub_getcolor): Likewise.
24279 (grub_refresh): Likewise.
24280 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24281 (write_jump): Add hatch nop.
24282 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24283 * lib/mips/setjmp.S: New file.
24284 * loader/mips/linux.c: Likewise.
24285 * term/i386/pc/at_keyboard.c: Move from here ...
24286 * term/at_keyboard.c: ... to here.
24287 * term/i386/pc/serial.c: Moved from here ...
24288 * term/serial.c: ... to here. All users updated.
24289 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24290 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24291 (serial_translate_key_sequence): Avoid deadlock.
24292 (grub_serial_getkey): Handle backspace.
24293 (grub_serial_putchar): Fix newline handling.
24294 * util/i386/pc/grub-mkimage.c: Move from here ...
24295 * util/grub-mkrawimage.c: ... to here. All users updated.
24296 (generate_image): New parameters 'font_path' and 'format'.
24297 Support embedding font.
24298 Use grub_host_to_target* instead of grub_cpu_to_le*.
24299 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24300 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24301 (options): New option "--font".
24302 (usage): Likewise.
24303 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24304 (main): Handle "--font".
24305 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24306 (grub_virtual_screen_setup): Set bg_color_display.
24307 (redraw_screen_rect): Use bg_color_display instead of incorrect
24308 bg_color.
24309 (grub_gfxterm_cls): Likewise.
24310 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24311 Support embedding config file.
24312 (add_segments): Likewise.
24313 (options): New option "--config".
24314 (main): Handle "--config".
24315 * video/sm712.c: New file.
24316
25c2b5b3
RM
243172010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24318
24319 Fix parallel builds.
24320
24321 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24322 font.c depend on ascii.h).
24323
243242010-01-12 Carles Pina i Estany <carles@pina.cat>
24325
24326 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24327
243282010-01-11 Carles Pina i Estany <carles@pina.cat>
24329
24330 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24331 By default: disabled.
24332 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24333 parameter.
24334
243352010-01-10 Carles Pina i Estany <carles@pina.cat>
24336
24337 * font/font.c: Update copyright years.
24338 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24339
243402010-01-10 Carles Pina i Estany <carles@pina.cat>
24341
24342 * font/font.c: Include `ascii.h'.
24343 (ASCII_BITMAP_SIZE): New macro.
24344 (ascii_font_glyph): Define.
24345 (ascii_glyph_lookup): New function.
24346 (grub_font_get_string_width): Change comment. If glyph not found, use
24347 ascii_glyph_lookup.
24348 (grub_font_get_glyph_with_fallback): If glyph not available returns
24349 ascii_glyph_lookup.
24350 * util/grub-mkfont.c (file_formats): New enum.
24351 (options): Add `ascii-bitmaps' new option.
24352 (usage): Add `asii-bitmaps' new option.
24353 (write_font_ascii_bitmap): New function.
24354 (write_font): Rename to ...
24355 (write_font_p2): ... this. Remove print_glyphs call.
24356 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24357 used. Call print_glyphs.
24358 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24359
243602010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24361
24362 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24363 (grub_bin2h_SOURCES): New variable.
24364 * util/bin2h.c: New file.
24365
915fc1b8
VS
243662010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24367
24368 * include/multiboot.h: Resynced with spec.
24369 * include/multiboot2.h: Likewise.
24370 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24371 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24372
9444b678
RM
243732010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24374
24375 * include/grub/term.h (grub_term_register_input,
24376 grub_term_register_output): Check return of terminal init()
24377 routines, and abort if errors are raised.
24378
24379 * commands/terminal.c: Update copyright year.
24380
cba98e8d
RM
243812010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24382
24383 * commands/terminal.c (grub_cmd_terminal_input)
24384 (grub_cmd_terminal_output): Check return of terminal init()
24385 routines, and abort if errors are raised.
24386
6f7db5d6
VS
243872010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24388
24389 * include/grub/i386/bsd.h: Fix include pathes.
24390
262bff8d
VS
243912010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24392
24393 Add missing *BSD copyright headers.
24394
24395 * include/grub/aout.h: Add BSD licence.
24396 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24397 * include/grub/i386/freebsd_linker.h: ... here,
24398 * include/grub/i386/freebsd_reboot.h: ... here,
24399 * include/grub/i386/netbsd_bootinfo.h: ... here,
24400 * include/grub/i386/netbsd_reboot.h: ... here,
24401 * include/grub/i386/openbsd_bootarg.h: ... here,
24402 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24403 licence to each file.
24404
b2cab848
RM
244052010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24406
24407 * acinclude.m4: Remove `nop' assembly instruction; it's not
24408 implemented by all architectures.
24409
2cb6be4b
RM
244102010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24411
24412 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24413 ELILO. This is no longer necessary.
24414
a2eaee15
BC
244152010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24416
24417 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24418
24419 * util/grub-script-check.c: grub-script-check tool.
24420 * conf/common.rmk: Make rules for grub-script-check.
24421
88d17012
RM
244222010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24423
24424 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24425 spotting it back in 2008. Shame on me for forgetting he did.
24426
24427 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24428
8040619d
RM
244292010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24430
24431 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24432 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24433 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24434 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24435 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24436 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24437
a0c2a0f6
RM
244382010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24439
24440 * include/grub/test.h: Add license header.
24441 * tests/example_functional_test.c: Likewise.
24442 * tests/example_unit_test.c: Likewise.
24443 * tests/lib/functional_test.c: Likewise.
24444 * tests/lib/test.c: Likewise.
24445 * tests/lib/unit_test.c: Likewise.
24446
b0b13907
VS
244472010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24448
24449 Use flag-based instead of hook-based video mode selection and "auto"
24450 keyword.
24451
24452 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24453 (grub_video_set_mode): Changed prototype. All users updated.
24454 (grub_video_check_mode_flag): New inline function.
24455 * video/video.c (parse_modespec): New function.
24456 (grub_video_set_mode): Parse flags and keywords.
24457
ea379330 244582010-01-17 Carles Pina i Estany <carles@pina.cat>
24459
24460 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24461 fprintf call.
24462
e15c215e
FZ
244632010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24464
24465 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24466
409ae1c9 244672010-01-16 Carles Pina i Estany <carles@pina.cat>
24468
24469 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24470 string.
24471 * util/grub-emu.c (usage): Likewise.
24472 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24473 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24474 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24475 * util/i386/pc/grub-setup.c (usage): Likewise.
24476
70a14d3d 244772010-01-16 Carles Pina i Estany <carles@pina.cat>
24478
24479 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24480 the message.
24481 (grub_util_info): Likewise.
24482 (grub_util_error): Likewise.
24483 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24484 and/or new lines in `grub_util_warna', `grub_util_info',
24485 `grub_util_error' calls.
24486 * util/getroot.c: Likewise.
24487 * util/grub-editenv.c: Likewise.
24488 * util/grub-emu.c: Likewise.
24489 * util/grub-fstest.c: Likewise.
24490 * util/grub-mkdevicemap.c: Likewise.
24491 * util/grub-mkfont.c: Likewise.
24492 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24493 * util/grub-mkrelpath.c: Likewise.
24494 * util/grub-pe2elf.c: Likewise.
24495 * util/grub-probe.c: Likewise.
24496 * util/hostdisk.c: Likewise.
24497 * util/i386/efi/grub-mkimage.c: Likewise.
24498 * util/i386/pc/grub-mkimage.c: Likewise.
24499 * util/i386/pc/grub-setup.c: Likewise.
24500 * util/ieee1275/ofpath.c: Likewise.
24501 * util/mkisofs/eltorito.c: Likewise.
24502 * util/mkisofs/rock.c: Likewise.
24503 * util/mkisofs/write.c: Likewise.
24504 * util/raid.c: Likewise.
24505 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24506 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24507
a0b766fc
VS
245082010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24509
24510 Enable multiboot on non-pc.
24511
24512 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24513 multiboot.mod and multiboot2.mod to ...
24514 * conf/i386.rmk (pkglib_MODULES): ... here.
24515 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24516 Moved to ...
24517 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24518 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24519 Moved to ...
24520 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24521 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24522 Moved to ...
24523 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24524 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24525 Moved to ...
24526 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24527 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24528 relocator.mod.
24529 (ata_mod_SOURCES): Removed.
24530 (ata_mod_CFLAGS): Likewise.
24531 (ata_mod_LDFLAGS): Likewise.
24532 (relocator_mod_SOURCES): Removed.
24533 (relocator_mod_CFLAGS): Likewise.
24534 (relocator_mod_ASFLAGS): Likewise.
24535 (relocator_mod_LDFLAGS): Likewise.
24536 Include i386.mk.
24537 * include/grub/x86_64/multiboot.h: New file.
24538 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24539 Terminate EFI.
24540
884ade56
VS
245412010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24542
24543 Video multiboot support.
24544
24545 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24546 New prototype.
24547 * include/multiboot.h: Resynced with multiboot specification.
24548 * include/multiboot2.h: Likewise.
24549 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24550 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24551 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24552 (HAS_VGA_TEXT): Likewise.
24553 (accepts_video): New variable.
24554 (grub_multiboot_set_accepts_video): New function.
24555 (grub_multiboot_get_mbi_size): Account for video structures.
24556 (set_video_mode): New function.
24557 (retrieve_video_parameters): Likewise.
24558 (grub_multiboot_make_mbi): Fill video fields.
24559
0d90e8a6
VS
245602010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24561
24562 Video driver ids.
24563
24564 * include/grub/video.h (grub_video_driver_id): New type.
24565 (grub_video_adapter): New member 'id'. All users updated.
24566 (grub_video_get_driver_id): New proto.
24567 * video/video.c (grub_video_get_driver_id): New function.
24568
5c71db1b 245692010-01-14 Carles Pina i Estany <carles@pina.cat>
24570
24571 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24572 `var=val'.
24573
cca15b52 245742010-01-14 Carles Pina i Estany <carles@pina.cat>
24575
24576 * normal/cmdline.c (print_completion): Gettextizze.
24577
c586fbb2 245782001-01-14 Carles Pina i Estany <carles@pina.cat>
24579
24580 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24581
ba2f6848 245822010-01-14 Carles Pina i Estany <carles@pina.cat>
24583
24584 * gettext/gettext.c (grub_gettext_translate): Push and pop
24585 grub_errno.
24586 (grub_gettext_delete_list): Change comment style.
24587 * kern/err.c (grub_error): Gettextizze.
24588 (grub_fatal): Gettextizze.
24589
0a46429a
RM
245902010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24591
24592 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24593 (grub_linux16_real_boot): ... this.
24594 * kern/i386/loader.S: Likewise.
24595 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24596 (grub_linux16_boot): New function. Switches to text mode and calls
24597 grub_linux16_real_boot().
24598
24599 * loader/i386/bsd.c: Include `<grub/video.h>'.
24600 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24601 text mode before calling grub_unix_real_boot().
24602
24603 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24604 (grub_multiboot_boot): Switch to text mode before calling
24605 grub_relocator32_boot().
24606
24607 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24608 (grub_chainloader_boot): Switch to text mode before calling
24609 grub_chainloader_real_boot().
24610
d6f93a66
RM
246112010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
246122010-01-05 Colin Watson <cjwatson@ubuntu.com>
24613
24614 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24615 non-empty value.
24616
246172010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
246182010-01-05 Colin Watson <cjwatson@ubuntu.com>
24619
24620 * util/grub.d/00_header.in: Define a "savedefault" function for use
24621 in menu entries.
24622 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24623
246242010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
246252010-01-05 Colin Watson <cjwatson@ubuntu.com>
24626
24627 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24628 saved_entry if boot_once is unset.
24629 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24630 previous saved entry (i.e. grub-reboot).
24631
246322009-12-08 Colin Watson <cjwatson@ubuntu.com>
24633
24634 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24635
246362009-12-08 Colin Watson <cjwatson@ubuntu.com>
24637
24638 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24639 `var=val'.
24640 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24641
246422009-12-08 Colin Watson <cjwatson@ubuntu.com>
24643
24644 * util/grub-reboot.in: Fix --version output.
24645 * util/grub-set-default.in: Likewise.
24646
246472009-12-08 Colin Watson <cjwatson@ubuntu.com>
24648
24649 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24650 blocks.
24651
246522009-12-08 Colin Watson <cjwatson@ubuntu.com>
24653
24654 * util/grub.d/00_header.in: Quote the value assigned to `default',
24655 in case it contains spaces.
24656
246572009-12-08 Colin Watson <cjwatson@ubuntu.com>
24658
24659 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24660 `save_default_entry' call from the macosx case to the linux case.
24661
246622009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
246632009-10-25 Colin Watson <cjwatson@ubuntu.com>
24664
24665 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24666 in `chosen' environment variable.
24667 * normal/menu_text.c (get_entry_number): Check if the variable
24668 matches the title of a menu entry.
24669 (run_menu): Pass menu to get_entry_number.
24670
24671 * util/grub-reboot.in: New file.
24672 * util/grub-set-default.in: New file.
24673 * conf/common.rmk (grub-reboot): New utility.
24674 (grub-set-default): New utility.
24675
24676 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24677 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24678 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24679 move it to `saved_entry' for the next boot. Load environment on
24680 initialisation.
24681 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24682 * util/grub.d/10_hurd.in: Likewise.
24683 * util/grub.d/10_linux.in (linux_entry): Likewise.
24684 * util/grub.d/10_windows.in: Likewise.
24685 * util/grub.d/30_os-prober.in: Likewise.
24686
24687 * util/grub-install.in: Create environment block.
24688 * util/i386/efi/grub-install.in: Likewise.
24689 * util/ieee1275/grub-install.in: Likewise.
24690 * util/sparc64/ieee1275/grub-install.in: Likewise.
24691
0934d184
BC
246922010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24693
24694 Unit testing framework for GRUB.
24695
24696 * Makefile.in: Test framework build rules for 'make check'.
24697 * conf/tests.rmk: Build rules for individual tests and framework.
24698
24699 * include/grub/test.h: Header file for whitebox tests.
24700 * tests/lib/functional_test.c: Framework support for whitebox
24701 functional tests.
24702 * tests/lib/test.c: Common whitebox testing code for unit and
24703 functional tests.
24704 * tests/lib/unit_test.c: Framework support for whitebox unit
24705 tests.
24706
24707 * tests/util/grub-shell-tester.in: Support utility for grub-script
24708 tests.
24709 * tests/util/grub-shell.in: Utility to execute grub-script
24710 commands in a Qemu instance.
24711
24712 * tests/example_functional_test.c: Example whitebox functional
24713 test.
24714 * tests/example_grub_script_test.in: Example grub-script test.
24715 * tests/example_scripted_test.in: Example scripted test.
24716 * tests/example_unit_test.c: Example whitebox unit test.
24717
9c4ffeeb
VS
247182010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24719
24720 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24721 Add loader/i386/multiboot_mbi.c.
24722 (multiboot2_mod_SOURCES): Likewise.
24723 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24724 (multiboot2_mod_SOURCES): Likewise.
24725 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24726 (grub_multiboot_make_mbi): Likewise.
24727 (grub_multiboot_free_mbi): Likewise.
24728 (grub_multiboot_init_mbi): Likewise.
24729 (grub_multiboot_add_module): Likewise.
24730 (grub_multiboot_set_bootdev): Likewise.
24731 * loader/i386/multiboot.c (mbi): Removed.
24732 (mbi_dest): Likewise.
24733 (alloc_mbi): New variable.
24734 (grub_multiboot_payload_size): Removed. All users updated.
24735 (grub_multiboot_pure_size): New variable.
24736 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24737 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24738 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24739 (grub_fill_multiboot_mmap): Likewise.
24740 (grub_multiboot_get_bootdev): Likewise.
24741 (grub_multiboot): Use multiboot_mbi functions.
24742 * loader/i386/multiboot_mbi.c: New file.
24743
17383dfe
VS
247442010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24745
24746 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24747 it would result in module crash.
24748
c1f28820
VS
247492010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24750
24751 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24752 (grub_ofconsole_getwh): Split to ...
24753 (grub_ofconsole_getwh): ... this.
24754 (grub_ofconsole_dimensions): ...and this.
24755 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24756
58655a16
RM
247572010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24758
24759 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24760
10891398
VS
247612010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24762
24763 * loader/i386/pc/multiboot2.c: Removed stalled file.
24764
0b8a223c
VS
247652010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24766
24767 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24768 Reported by: Grégoire Sutre
24769
92ab12b0
RM
247702010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24771
24772 * util/misc.c (canonicalize_file_name): New function.
24773 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24774 instead of realpath().
24775
a788afb6
CW
247762010-01-11 Colin Watson <cjwatson@ubuntu.com>
24777
24778 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24779 and make it clearer that it's optional. Based on confusion
24780 witnessed on IRC.
24781
ffa8e3d2
VS
247822010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24783
24784 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24785 in premature implicit newline.
24786
e9060a9d
VS
247872010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24788
24789 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24790 which resulted in garbled command line at the end of screen.
24791
f0d0c0b7
RM
247922010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24793
24794 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24795 initialization with similar approach as with other Linux loaders.
24796
0e60bae7
RM
247972010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24798
24799 Fix i386-ieee1275 build.
24800
24801 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24802 and grub_term_height() for video_{width,height} initialization.
24803
248042010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
24805
24806 Fix grub-emu build.
24807
24808 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24809
cdb3f378
RM
248102010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
248112010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24812
24813 Support for multiple terminals.
24814
24815 * Makefile.in (pkglib_DATA): terminal.lst.
24816 (terminal.lst): New target.
24817 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24818 (GRUB_MOD_INIT(handler)): Likewise.
24819 (GRUB_MOD_FINI(handler)): Likewise.
24820 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24821 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24822 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24823 (grub_cmd_sleep): Use grub_term_save_pos.
24824 * commands/terminal.c: New file.
24825 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24826 commands/terminal.c and lib/charset.c.
24827 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24828 (pkglib_MODULES): Add terminal.mod.
24829 (terminal_mod_SOURCES): New variable.
24830 (terminal_mod_CFLAGS): Likewise.
24831 (terminal_mod_LDFLAGS): Likewise.
24832 * genhandlerlist.sh: Don't handle terminals.
24833 * genmk.rb: Generate terminal-*.lst.
24834 * genterminallist.sh: New file.
24835 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24836 (grub_is_valid_utf8): Likewise.
24837 (grub_utf8_to_ucs4_alloc): Likewise.
24838 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24839 (grub_menu_register_viewer): Changed argument.
24840 (grub_menu_try_text): New proto.
24841 (grub_gfxmenu_try_hook): New declaration.
24842 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24843 (grub_menu_init_page): Additional argument term.
24844 (grub_normal_init_page): Likewise.
24845 (grub_cmdline_get): Arguments simplified.
24846 (grub_utf8_to_ucs4_alloc): Removed.
24847 (grub_print_ucs4): Additional argument term.
24848 (grub_getstringwidth): Likewise.
24849 (grub_print_message_indented): Likewise.
24850 (grub_menu_text_register_instances): New proto.
24851 (grub_show_menu): Likewise.
24852 (read_terminal_list): Likewise.
24853 (grub_set_more): Likewise.
24854 * include/grub/parser.h: Include handler.h.
24855 * include/grub/reader.h: Rewritten.
24856 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24857 (GRUB_TERM_WIDTH): Changed to function.
24858 (GRUB_TERM_HEIGHT): Likewise.
24859 (GRUB_TERM_BORDER_WIDTH): Likewise.
24860 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24861 (GRUB_TERM_NUM_ENTRIES): Likewise.
24862 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24863 (GRUB_TERM_CURSOR_X): Likewise.
24864 (grub_term_input_class): Likewise.
24865 (grub_term_output_class): Likewise.
24866 (grub_term_outputs_disabled): New declaration.
24867 (grub_term_inputs_disabled): Likewise.
24868 (grub_term_outputs): Likewise.
24869 (grub_term_inputs): Likewise.
24870 (grub_term_register_input): Rewritten.
24871 (grub_term_register_output): Likewise.
24872 (grub_term_unregister_input): Likewise.
24873 (grub_term_unregister_output): Likewise.
24874 (FOR_ACTIVE_TERM_INPUTS): New macro.
24875 (FOR_DISABLED_TERM_INPUTS): Likewise.
24876 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24877 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24878 * include/grub/terminfo.h: Add oterm argument to all protypes.
24879 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24880 Use grub_rescue_run.
24881 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24882 All users updated.
24883 * kern/reader.c: Removed. All users updated.
24884 * kern/rescue_reader.c (grub_rescue_init): Removed.
24885 (grub_rescue_reader): Likewise.
24886 (grub_register_rescue_reader): Likewise.
24887 (grub_rescue_run): New function based on kern/reader.c.
24888 * kern/term.c: Adapted for multiterm.
24889 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24890 (grub_is_valid_utf8): Likewise.
24891 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24892 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24893 right terminal.
24894 * loader/i386/linux.c (grub_linux_boot): Likewise.
24895 * normal/auth.c (grub_username_get): New function.
24896 (grub_auth_check_authentication): Use grub_username_get.
24897 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24898 * normal/color.c: Adapt for multiterm.
24899 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24900 (grub_normal_init_page): Additional argument term.
24901 (read_lists): Call read_terminal_lists.
24902 (grub_enter_normal_mode): Call grub_cmdline_run.
24903 Handle grub_normal_exit_level.
24904 (grub_cmd_normal): Make reentrant.
24905 (grub_cmd_normal_exit): New function.
24906 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24907 * normal/menu.c: Adapt for multiterm.
24908 * normal/menu_entry.c: Likewise.
24909 * normal/menu_text.c: Likewise.
24910 * normal/menu_viewer.c: Removed. All users updated.
24911 * normal/term.c: New file.
24912 * util/console.c: Change order of includes to workaround a bug in
24913 ncurses headers.
24914 * term/terminfo.c: New argument oterm on all exported functions.
24915 All users updated.
24916 * util/grub-editenv.c (grub_term_input_class): Removed.
24917 (grub_term_output_class): Likewise.
24918
1a064917
RM
249192010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24920
24921 Make loader output a bit more user-friendly.
24922
24923 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24924 is being loaded. Likewise for the Hurd.
24925
24926 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24927 that kernel of FreeBSD ${version} is being loaded.
24928
24929 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24930 grub_dprintf().
24931 (grub_cmd_initrd): Likewise.
24932 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24933 that Linux ${version} is being loaded. Likewise for initrd.
24934
5ce0a83a 249352010-01-09 Carles Pina i Estany <carles@pina.cat>
24936
24937 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24938
809bbfeb 249392010-01-08 Carles Pina i Estany <carles@pina.cat>
24940
24941 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24942 (GRUB_MOD_INIT): Gettextizze.
24943 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24944 (GRUB_MOD_INIT): Gettextizze.
24945 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24946 (grub_cmd_linux): Capitalise Linux.
24947 (GRUB_MOD_INIT): Gettextizze.
24948 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24949 (grub_cmd_linux): Capitalise Linux.
24950 (GRUB_MOD_INIT): Gettextizze.
24951 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24952 (grub_cmd_linux): Capitalise Linux.
24953 (GRUB_MOD_INIT): Gettextizze.
24954 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24955 (GRUB_MOD_INIT): Gettextizze.
24956 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24957 (grub_cmd_linux): Capitalise Linux.
24958 (GRUB_MOD_INIT): Gettextizze.
24959 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24960 (grub_cpu_xnu_init): Gettextizze.
24961 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24962 (GRUB_MOD_INIT): Gettextizze.
24963 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24964 (GRUB_MOD_INIT): Gettextizze.
24965 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24966 (grub_linux_load64): Capitalise Linux.
24967 (GRUB_MOD_INIT): Gettextizze.
24968 * loader/xnu.c: Include `<grub/i18n.h>'.
24969 (GRUB_MOD_INIT): Gettextizze.
24970 * po/POTFILES: Add `loader/efi/appleloader.c',
24971 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24972 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24973 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24974 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24975 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24976 and `loader/xnu.c'.
24977
b394b2ca
RM
249782010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24979
24980 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24981
249822010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
24983
24984 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24985 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24986 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24987
bc8b32b3
RM
249882010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24989
24990 Reset Multiboot 2 support. New loader implements the draft in
24991 /branches/multiboot2 and shares as much code as possible with the
24992 production Multiboot 1 implementation.
24993
24994 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24995 * loader/multiboot2.c: Likewise.
24996 * loader/i386/multiboot_helper.S: Likewise.
24997 * include/multiboot2.h: Replace with latest version from the draft
24998 in /branches/multiboot2.
24999
25000 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25001 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25002 and `loader/multiboot2.c'.
25003 (pkglib_MODULES): Add `multiboot2.mod'.
25004 (multiboot2_mod_SOURCES): New variable.
25005 (multiboot2_mod_LDFLAGS): Likewise.
25006 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25007
25008 * conf/i386-pc.rmk: Likewise.
25009
25010 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25011 (multiboot_mod_SOURCES): Remove variable.
25012 (multiboot_mod_LDFLAGS): Likewise.
25013 (multiboot_mod_CFLAGS): Likewise.
25014
25015 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25016 `<multiboot2.h>' instead of `<multiboot.h>'.
25017 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25018 (MULTIBOOT_HEADER_MAGIC): New macros.
25019
25020 * loader/multiboot_loader.c (module_version_status): Remove variable.
25021 (find_multi_boot2_header): Remove function.
25022 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25023 logic. Always check for the Multiboot version we're compiling for.
25024 (grub_cmd_module_loader): Likewise.
25025 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25026 command instead of `multiboot'.
25027
5d2c52b8
RM
250282010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25029
25030 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25031 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25032 all users.
25033
53108d92
RM
250342010-01-07 Robert Millan <rmh.grub@aybabtu.com>
250352010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25036
25037 Fix breakage introduced with previous commit.
25038
25039 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25040 commands.
25041 * normal/handler.c (read_handler_list): Revert part of previous commit
25042 affecting this file.
25043 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25044 (grub_normal_execute): ... here.
25045
e2e936b2
RM
250462010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25047
25048 Merge prefix-redefinition-fix branch.
25049
25050 * normal/autofs.c (read_fs_list): Make function capable of being
25051 run multiple times, gracefuly replacing the previous data
25052 structures.
25053 * normal/dyncmd.c (read_command_list): Likewise.
25054 * normal/handler.c (read_handler_list): Likewise.
25055 * normal/main.c (read_lists): New function. Calls all the
25056 list reading functions.
25057 (grub_normal_execute): Use read_lists() instead of calling all
25058 list reading functions explicitly. Register read_lists() as a
25059 variable hook attached to ${prefix}.
25060
607a3701
VS
250612010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25062
25063 Merge crypto branch.
25064
25065 * Makefile.in (pkglib_DATA): Add crypto.lst.
25066 (crypto.lst): New target.
25067 * commands/hashsum.c: New file.
25068 * commands/password.c (check_password): Use grub_crypto_memcmp.
25069 * commands/password_pbkdf2.c: New file.
25070 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25071 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25072 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25073 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25074 -I$(srcdir)/lib/libgcrypt_wrap.
25075 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25076 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25077 password_pbkdf2.mod.
25078 (crypto_mod_SOURCES): New variable.
25079 (crypto_mod_CFLAGS): Likewise.
25080 (crypto_mod_LDFLAGS): Likewise.
25081 (hashsum_mod_SOURCES): New variable.
25082 (hashsum_mod_CFLAGS): Likewise.
25083 (hashsum_mod_LDFLAGS): Likewise.
25084 (pbkdf2_mod_SOURCES): New variable.
25085 (pbkdf2_mod_CFLAGS): Likewise.
25086 (pbkdf2_mod_LDFLAGS): Likewise.
25087 (password_pbkdf2_mod_SOURCES): New variable.
25088 (password_pbkdf2_mod_CFLAGS): Likewise.
25089 (password_pbkdf2_mod_LDFLAGS): Likewise.
25090 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25091 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25092 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25093 Include conf/gcry.rmk.
25094 * include/grub/auth.h: Rewritten.
25095 * include/grub/crypto.h: New file.
25096 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25097 * include/grub/normal.h (read_crypto_list): New prototype.
25098 * lib/crypto.c: New file.
25099 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25100 * lib/pbkdf2.c: Likewise.
25101 * normal/auth.c (grub_auth_strcmp): Removed.
25102 (grub_iswordseparator): Likewise.
25103 (grub_auth_strword): Likewise.
25104 (is_authenticated): Use grub_strword.
25105 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25106 and grub_strword. Pass entered password to authentication callback.
25107 * normal/crypto.c: New file.
25108 * normal/main.c: Call read_crypto_list.
25109 * util/grub-mkpasswd-pbkdf2.c: New file.
25110 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25111
42841caa
VS
251122010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25113
25114 Fix descent and ascent calculation.
25115
25116 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25117 (options): New option "asce".
25118 (usage): Likewise.
25119 (add_char): Ignore invalid glyphs for descent calculation.
25120 Calculate ascent from actual content.
25121 (print_glyphs): Use 'asce'.
25122 (write_font): Likewise. Allow ascent override.
25123 (main): Handle "asce" option.
25124
e7730de7 251252010-01-06 Carles Pina i Estany <carles@pina.cat>
25126
25127 * kern/err.c: Include `<grub/i18n.h>'.
25128 (grub_print_error): Add full stop. Gettextizze.
25129 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25130 (grub_bsd_load_elf): Capitalise ELF.
25131 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25132 (grub_cmd_freebsd_module): Likewise.
25133 (grub_cmd_freebsd_module_elf): Likewise.
25134 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25135
40e3a41f 251362010-01-06 Carles Pina i Estany <carles@pina.cat>
25137
25138 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25139 * commands/search_file.c (HELP_MESSAGE): New macro.
25140 * commands/search_label.c (HELP_MESSAGE): Likewise.
25141 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25142 * po/POTFILES: Add `commands/search_file.c',
25143 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25144 `commands/search.c'.
25145
83507e68
RM
251462010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25147
25148 * config.rpath: Update from Gnulib.
25149
465c787b
YB
251502010-01-05 Yves Blusseau <blusseau@zetam.org>
25151
25152 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25153
6581dd3a
YB
251542010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25155
25156 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25157
3bff18c5
CW
251582010-01-05 Colin Watson <cjwatson@ubuntu.com>
25159
25160 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25161 arguments to fread so that we get a return value in bytes, rather
25162 than something that will normally be rounded down to 0.
25163 Adjust error handling to avoid producing garbage when size_t is not
25164 the same size as long long.
25165
a1368118
CW
251662010-01-05 Colin Watson <cjwatson@ubuntu.com>
25167
25168 * util/mkisofs/write.c (padblock_write): Check return value of
25169 fread.
25170
7c302978
RM
251712010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25172
25173 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25174 floppy images now.
25175
25176 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25177
e33ace06
RM
251782010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25179
25180 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25181 instead of manual alignment.
25182 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25183 verbose). Avoid attempts to read past end of the device
25184 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25185 but GRUB_DISK_CACHE_SIZE may exceed that).
25186
4b856776
RM
251872010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25188
25189 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25190 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25191 it to upper layer.
25192
52c2d97f
VS
251932010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25194
25195 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25196 New constant.
25197 (grub_efi_piwg_device_path): New structure
25198 (grub_efi_piwg_device_path_t): New type.
25199 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25200 (devpath_1): Transform to a structure. All users updated.
25201 (devpath_2): Likewise.
25202 (devpath_3): Likewise.
25203 (devpath_4): Likewise.
25204 (devpath_5): Likewise.
25205
98ff6a54
VS
252062010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25207
25208 * loader/efi/appleloader.c: Restored. Update all users.
25209
3a73dcb6
RM
252102010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25211
25212 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25213
25214 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25215 (struct boot_blocklist): Move from here ...
25216 * include/grub/i386/pc/boot.h [ASM_FILE]
25217 (struct grub_boot_blocklist): ... to here. Update all users.
25218 (setup): Only initialize `start' member of `first_block'
25219 structure. Add assert() calls to verify the other members.
25220
25221 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25222 (generate_image): Fix broken blocklist length initialization.
25223 Add assert() call to verify blocklist `segment' field.
25224
ab0eeb0c
RM
252252010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25226
25227 * loader/efi/appleloader.c: Remove. Update all users.
25228
58bc8bd5
RM
252292010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25230
25231 * boot/i386/pc/boot.S: Update copyright year.
25232 * boot/i386/pc/cdboot.S: Likewise.
25233 * boot/i386/pc/diskboot.S: Likewise.
25234 * boot/i386/pc/lnxboot.S: Likewise.
25235 * boot/i386/pc/pxeboot.S: Likewise.
25236 * bus/pci.c: Likewise.
25237 * commands/cmp.c: Likewise.
25238 * commands/help.c: Likewise.
25239 * commands/hexdump.c: Likewise.
25240 * commands/i386/pc/halt.c: Likewise.
25241 * commands/i386/pc/play.c: Likewise.
25242 * commands/i386/pc/vbeinfo.c: Likewise.
25243 * commands/ls.c: Likewise.
25244 * commands/test.c: Likewise.
25245 * disk/dmraid_nvidia.c: Likewise.
25246 * disk/i386/pc/biosdisk.c: Likewise.
25247 * disk/ieee1275/nand.c: Likewise.
25248 * disk/ieee1275/ofdisk.c: Likewise.
25249 * disk/lvm.c: Likewise.
25250 * disk/raid.c: Likewise.
25251 * disk/raid6_recover.c: Likewise.
25252 * disk/scsi.c: Likewise.
25253 * fs/affs.c: Likewise.
25254 * fs/cpio.c: Likewise.
25255 * fs/ext2.c: Likewise.
25256 * fs/hfs.c: Likewise.
25257 * fs/iso9660.c: Likewise.
25258 * fs/ntfs.c: Likewise.
25259 * fs/sfs.c: Likewise.
25260 * fs/udf.c: Likewise.
25261 * fs/ufs.c: Likewise.
25262 * fs/xfs.c: Likewise.
25263 * gencmdlist.sh: Likewise.
25264 * genmk.rb: Likewise.
25265 * include/grub/disk.h: Likewise.
25266 * include/grub/efi/api.h: Likewise.
25267 * include/grub/efi/efi.h: Likewise.
25268 * include/grub/efi/pe32.h: Likewise.
25269 * include/grub/elf.h: Likewise.
25270 * include/grub/fs.h: Likewise.
25271 * include/grub/i386/at_keyboard.h: Likewise.
25272 * include/grub/i386/pc/memory.h: Likewise.
25273 * include/grub/i386/pc/vbe.h: Likewise.
25274 * include/grub/i386/pci.h: Likewise.
25275 * include/grub/i386/tsc.h: Likewise.
25276 * include/grub/ieee1275/ieee1275.h: Likewise.
25277 * include/grub/ntfs.h: Likewise.
25278 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25279 * include/grub/sparc64/libgcc.h: Likewise.
25280 * include/grub/symbol.h: Likewise.
25281 * include/grub/types.h: Likewise.
25282 * include/multiboot2.h: Likewise.
25283 * io/gzio.c: Likewise.
25284 * kern/device.c: Likewise.
25285 * kern/disk.c: Likewise.
25286 * kern/efi/efi.c: Likewise.
25287 * kern/efi/mm.c: Likewise.
25288 * kern/elf.c: Likewise.
25289 * kern/file.c: Likewise.
25290 * kern/i386/dl.c: Likewise.
25291 * kern/i386/pc/init.c: Likewise.
25292 * kern/i386/pc/startup.S: Likewise.
25293 * kern/ieee1275/ieee1275.c: Likewise.
25294 * kern/ieee1275/init.c: Likewise.
25295 * kern/main.c: Likewise.
25296 * kern/mm.c: Likewise.
25297 * kern/powerpc/dl.c: Likewise.
25298 * kern/sparc64/dl.c: Likewise.
25299 * kern/x86_64/dl.c: Likewise.
25300 * lib/hexdump.c: Likewise.
25301 * loader/efi/appleloader.c: Likewise.
25302 * loader/i386/ieee1275/linux.c: Likewise.
25303 * loader/i386/pc/chainloader.c: Likewise.
25304 * loader/i386/pc/linux.c: Likewise.
25305 * loader/i386/pc/multiboot2.c: Likewise.
25306 * loader/ieee1275/multiboot2.c: Likewise.
25307 * loader/multiboot2.c: Likewise.
25308 * loader/multiboot_loader.c: Likewise.
25309 * loader/powerpc/ieee1275/linux.c: Likewise.
25310 * normal/completion.c: Likewise.
25311 * normal/menu_entry.c: Likewise.
25312 * partmap/apple.c: Likewise.
25313 * util/grub.d/10_hurd.in: Likewise.
25314 * util/hostfs.c: Likewise.
25315 * video/readers/png.c: Likewise.
25316
e2d70b5c
CW
253172010-01-03 Colin Watson <cjwatson@ubuntu.com>
25318
25319 * include/grub/misc.h (GNUC_PREREQ): New macro.
25320 (ATTRIBUTE_ERROR): New macro.
25321 * include/grub/list.h (grub_bad_type_cast_real): Use
25322 ATTRIBUTE_ERROR.
25323
a173283f 253242010-01-03 Carles Pina i Estany <carles@pina.cat>
25325
25326 * normal/menu_text.c (print_message): Change messages.
25327
7fa7ff74 253282010-01-03 Carles Pina i Estany <carles@pina.cat>
25329
25330 * normal/menu_entry.c (store_completion): Gettextizze.
25331
136d24f6 253322010-01-03 Carles Pina i Estany <carles@pina.cat>
25333
25334 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25335
f936862e 253362010-01-03 Carles Pina i Estany <carles@pina.cat>
25337
25338 * po/POTFILES: Sort correctly.
25339
29c44ad1 253402010-01-03 Carles Pina i Estany <carles@pina.cat>
25341
25342 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25343 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25344 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25345 full stop.
25346 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25347 summary. Gettextizze the strings.
25348 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25349 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25350 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25351 full stop.
25352 (GRUB_MOD_INIT): Remove command name from summary.
25353 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25354 summary.
25355 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25356 * term/i386/pc/serial.c (options): Add full stops.
25357 (GRUB_MOD_INIT): Remove command name from the summary.
25358
77a79592 253592010-01-03 Carles Pina i Estany <carles@pina.cat>
25360
25361 * commands/acpi.c: Gettextizze help strings and/or options. Include
25362 `grub/i18n.h' if needed.
25363 * commands/blocklist.c: Likewise.
25364 * commands/boot.c: Likewise.
25365 * commands/cat.c: Likewise.
25366 * commands/cmp.c: Likewise.
25367 * commands/configfile.c: Likewise.
25368 * commands/crc.c: Likewise.
25369 * commands/date.c: Likewise.
25370 * commands/echo.c: Likewise.
25371 * commands/efi/fixvideo.c: Likewise.
25372 * commands/efi/loadbios.c: Likewise.
25373 * commands/gptsync.c: Likewise.
25374 * commands/halt.c: Likewise.
25375 * commands/handler.c: Likewise.
25376 * commands/hdparm.c: Likewise.
25377 * commands/hexdump.c: Likewise.
25378 * commands/i386/cpuid.c: Likewise.
25379 * commands/i386/pc/drivemap.c: Likewise.
25380 * commands/i386/pc/halt.c: Likewise.
25381 * commands/i386/pc/pxecmd.c: Likewise.
25382 * commands/i386/pc/vbeinfo.c: Likewise.
25383 * commands/i386/pc/vbetest.c: Likewise.
25384 * commands/ieee1275/suspend.c: Likewise.
25385 * commands/keystatus.c: Likewise.
25386 * commands/loadenv.c: Likewise.
25387 * commands/ls.c: Likewise.
25388 * commands/lsmmap.c: Likewise.
25389 * commands/lspci.c: Likewise.
25390 * commands/memrw.c: Likewise.
25391 * commands/minicmd.c: Likewise.
25392 * commands/parttool.c: Likewise.
25393 * commands/password.c: Likewise.
25394 * commands/probe.c: Likewise.
25395 * commands/read.c: Likewise.
25396 * commands/reboot.c: Likewise.
25397 * commands/search.c: Likewise.
25398 * commands/sleep.c: Likewise.
25399 * commands/test.c: Likewise.
25400 * commands/true.c: Likewise.
25401 * commands/usbtest.c: Likewise.
25402 * commands/videotest.c: Likewise.
25403 * commands/xnu_uuid.c: Likewise.
25404 * disk/loopback.c: Likewise.
25405 * hello/hello.c: Likewise.
25406 * loader/i386/bsd.c: Likewise.
25407 * term/i386/pc/serial.c: Likewise.
25408 * po/POTFILES: Add new files.
25409
da8d5c53
CW
254102010-01-02 Colin Watson <cjwatson@ubuntu.com>
25411
25412 * term/i386/pc/at_keyboard.c
25413 (keyboard_controller_wait_untill_ready): Rename to ...
25414 (keyboard_controller_wait_until_ready): ... this. Update all users.
25415
33937904 254162010-01-01 Carles Pina i Estany <carles@pina.cat>
25417
25418 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25419 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25420 string using string width.
25421 * normal/menu_text.c (grub_print_message_indented): Use
25422 grub_print_spaces and not print_spaces.
25423 (print_timeout): Likewise.
25424 (print_spaces): Move to...
25425 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25426
3fd3b8d8
RM
254272010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25428
25429 Import from Gnulib.
25430
25431 * gnulib/getdelim.c: New file.
25432 * gnulib/getline.c: Likewise.
25433
33433555
VS
254342009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25435
25436 * include/grub/list.h (grub_assert_fail): Removed.
25437 (grub_bad_type_cast_real): New function.
25438 (grub_bad_type_cast): New macro.
25439 (GRUB_AS_LIST): Use grub_bad_type_cast.
25440 (GRUB_AS_LIST_P): Likewise.
e44721e8 25441 (GRUB_AS_NAMED_LIST): Likewise.
33433555 25442 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 25443 (GRUB_AS_PRIO_LIST): Likewise.
33433555 25444 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 25445 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 25446
f5a51306
VS
254472009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25448
25449 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25450 Fix syntax error.
25451
90d1e879
RM
254522009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25453
25454 * configure.ac: Check for TARGET_CFLAGS initialization before we
25455 initialize it ourselves (sigh).
25456 Move a few modifications to TARGET_CFLAGS to be unconditional
25457 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25458 eh_frame)
25459
25460 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25461 * term/i386/pc/at_keyboard.c
25462 (keyboard_controller_wait_untill_ready): Likewise.
25463 (keyboard_controller_led): Rename `led_status' paramter to avoid
25464 name conflict.
25465
465b5a81 254662009-12-28 Carles Pina i Estany <carles@pina.cat>
25467
25468 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25469 quotes.
25470
c181849b
VS
254712009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25472
25473 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25474
9c8739a4
VS
254752009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25476
25477 * normal/menu_text.c (grub_print_message_indented): Prevent
25478 past-the-end-of-array dereference.
25479
3e74249c
VS
254802009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25481
25482 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25483 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25484
64fd18ed 254852009-12-27 Carles Pina i Estany <carles@pina.cat>
25486
25487 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25488 * normal/main.c (grub_normal_read_line): Remove a space from the
25489 default prompt.
25490
714af9b9 254912009-12-27 Carles Pina i Estany <carles@pina.cat>
25492
25493 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25494 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25495 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25496 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25497 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25498 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25499 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25500
82f3e412 255012009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 25502
25503 * video/readers/jpeg.c (cmd): Declare.
25504 (grub_cmd_jpegtest): Use `grub_command_t' type.
25505 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25506 Assign to `cmd'.
25507 (GRUB_MOD_FINI): Use `cmd' to unregister.
25508 * video/readers/png.c (cmd): Declare.
25509 (grub_cmd_pngtest): Use `grub_command_t' type.
25510 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25511 Assign to `cmd'.
25512 (GRUB_MOD_FINI): Use `cmd' to unregister.
25513 * video/readers/tga.c (cmd): Declare.
25514 (grub_cmd_tgatest): Use `grub_command_t' type.
25515 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25516 Assign to `cmd'.
25517 (GRUB_MOD_FINI): Use `cmd' to unregister.
25518
82f3e412 255192009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 25520
25521 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25522 stops.
25523 * kern/corecmd.c (grub_register_core_commands): Likewise.
25524 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25525 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25526 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25527 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25528 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25529 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25530 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25531 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25532 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25533 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25534 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25535 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25536 * normal/handler.c (insert_handler): Likewise.
25537 * normal/main.c (GRUB_MOD_INIT): Likewise.
25538 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25539
fdcdbb66 255402009-12-26 Carles Pina i Estany <carles@pina.cat>
25541
25542 * commands/help.c (grub_cmd_help): Print the command name before the
25543 summary.
25544 (GRUB_MOD_INIT): Remove command name from the summary.
25545 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 25546 string as summary.
fdcdbb66 25547 * lib/arg.c (find_long): Print the command name before the summary.
25548 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25549 summary.
25550 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25551 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25552 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25553 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25554 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25555 * commands/date.c (GRUB_MOD_INIT): Likewise.
25556 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25557 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25558 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25559 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25560 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25561 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25562 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25563 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25564 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25565 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25566 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25567 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25568 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25569 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25570 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25571 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25572 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25573 * commands/password.c (GRUB_MOD_INIT): Likewise.
25574 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25575 * commands/read.c (GRUB_MOD_INIT): Likewise.
25576 * commands/search.c (GRUB_MOD_INIT): Likewise.
25577 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25578 * commands/test.c (GRUB_MOD_INIT): Likewise.
25579 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25580 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25581 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25582 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25583 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25584 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25585 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25586 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25587 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25588 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25589 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25590 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25591 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25592 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25593
9c288be2
VS
255942009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25595
25596 Use search command for preliminar UUID search.
25597
25598 * commands/search.c: Split into ...
25599 * commands/search_wrap.c: ...this
25600 * commands/search.c: ...and this.
25601 * commands/search_file.c: New file.
25602 * commands/search_label.c: New file.
25603 * commands/search_uuid.c: New file.
25604 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25605 Add commands/search_wrap.c, commands/search_file.c,
25606 commands/search_label.c and commands/search_uuid.c.
25607 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25608 (search_mod_SOURCES): Set to commands/search_wrap.c.
25609 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25610 search_label.mod.
25611 (search_fs_file_mod_SOURCES): New variable.
25612 (search_fs_file_mod_CFLAGS): Likewise.
25613 (search_fs_file_mod_LDFLAGS): Likewise.
25614 (search_label_mod_SOURCES): Likewise.
25615 (search_label_mod_CFLAGS): Likewise.
25616 (search_label_mod_LDFLAGS): Likewise.
25617 (search_fs_uuid_mod_SOURCES): New variable.
25618 (search_fs_uuid_mod_CFLAGS): Likewise.
25619 (search_fs_uuid_mod_LDFLAGS): Likewise.
25620 (fs_file_mod_SOURCES): Removed.
25621 (fs_file_mod_CFLAGS): Likewise.
25622 (fs_file_mod_LDFLAGS): Likewise.
25623 (fs_uuid_mod_SOURCES): Removed.
25624 (fs_uuid_mod_CFLAGS): Likewise.
25625 (fs_uuid_mod_LDFLAGS): Likewise.
25626 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25627 Set to util/grub-install.in.
25628 * disk/fs_file.c: Removed.
25629 * disk/fs_uuid.c: Likewise.
25630 * include/grub/search.h: New file.
25631 * util/grub-install.in: Handle sparc64.
25632 Create and use load.cfg.
25633 * util/sparc64/ieee1275/grub-install.in: Removed.
25634
db943399
VS
256352009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25636
25637 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25638 Ignore return status if CF is cleared.
25639 (grub_biosdisk_get_diskinfo_standard): Likewise.
25640
3fdae612
RM
256412009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25642
25643 * term/i386/pc/at_keyboard.c
25644 (keyboard_controller_wait_untill_ready): New function.
25645 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25646 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25647 for keyboard polling, rather than duplicate the same loop. This
25648 saves a few bytes in code size.
25649
7ebaa2b4
VS
256502009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25651
25652 Support for (pxe[:server[:gateway]]) syntax and
25653 use environment variable for PXE.
25654
25655 * commands/i386/pc/pxecmd.c (options): Removed.
25656 (print_ip): Removed.
25657 (grub_cmd_pxe): Removed
25658 (grub_cmd_pxe_unload): New function.
25659 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25660 (grub_pxe_your_ip): Made static.
25661 (grub_pxe_default_server_ip): Likewise.
25662 (grub_pxe_default_gateway_ip): Likewise.
25663 (grub_pxe_blksize): Likewise.
25664 (parse_ip): New function.
25665 (grub_pxe_open): Support server and gateway specification.
25666 (grub_pxe_close): Free disk->data.
25667 (grub_pxefs_open): Use disk->data.
25668 (grub_pxefs_read): Likewise.
25669 (grub_env_write_readonly): New function.
25670 (set_mac_env): Likewise.
25671 (set_env_limn_ro): Likewise.
25672 (parse_dhcp_vendor): Likewise.
25673 (grub_pxe_detect): Set the environment variables.
25674 (set_ip_env): New function.
25675 (write_ip_env): Likewise.
25676 (grub_env_write_pxe_default_server): Likewise.
25677 (grub_env_write_pxe_default_gateway): Likewise.
25678 (grub_env_write_pxe_blocksize): Likewise.
25679 (GRUB_MOD_INIT(pxe)): Set environment variables.
25680 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25681 (grub_pxe_mac_addr_t): ... this. All users updated.
25682 (grub_pxe_your_ip): Removed.
25683 (grub_pxe_server_ip): Likewise.
25684 (grub_pxe_gateway_ip): Likewise.
25685 (grub_pxe_blksize): Likewise.
25686
ec5f98ab 256872009-12-25 Carles Pina i Estany <carles@pina.cat>
25688
25689 * commands/help.c: Include `<grub/i18n.h>'.
25690 (grub_cmd_help): Gettextizze.
25691 (GRUB_MOD_INIT): Likewise.
25692 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25693 (GRUB_MOD_INIT): Gettextizze.
25694 * commands/search.c: Include `<grub/i18n.h>'.
25695 (options): Gettextizze.
25696 (GRUB_MOD_INIT): Gettextizze.
25697 * lib/arg.c: Include `<grub/i18n.h>'.
25698 (help_options): Gettextizze.
25699 (find_long): Likewise.
25700 (grub_arg_show_help): Likewise.
25701 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25702 (read_command_list): Gettextizze.
25703 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 25704 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 25705
22815526
RM
257062009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25707
25708 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25709 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25710 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25711 (led_status): New variable.
25712 (keyboard_controller_led): New function.
25713 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25714 update led status for caps lock, num lock and scroll lock.
25715
0ad46fd7
FZ
257162009-12-25 Felix Zielcke <fzielcke@z-51.de>
25717
25718 * util/hostdisk.c (open_device): Fix a comment.
25719
d0e158c2
RM
257202009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25721
25722 * util/grub-install.in (host_os): New variable.
25723 * util/i386/efi/grub-install.in (host_os): Likewise.
25724
401c0ad6
RM
257252009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25726
25727 * util/mkisofs/write.c (padblock_write): Abort when given an
25728 excedingly large embed image, instead of silently truncating it.
25729
d14d3370
RM
257302009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25731
25732 * include/multiboot.h: Indentation fixes.
25733
eeed10b4
RM
257342009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25735
25736 * include/multiboot.h (struct multiboot_aout_symbol_table)
25737 (struct multiboot_elf_section_header_table): New structure
25738 declarations (stolen from GRUB Legacy).
25739 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25740 table information.
25741
25742 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25743 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25744 type aliases.
25745
681c70ab
RM
257462009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25747
25748 * include/multiboot.h: Make comments src2texi-friendly.
25749
e4d47d8d
RM
257502009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25751
25752 For consistency with [multiboot]/docs/boot.S.
25753
25754 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25755 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25756 (MULTIBOOT_MAGIC2): Rename from this ...
25757 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25758
a0b70bda
RM
257592009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25760
25761 * include/multiboot.h: Remove `<grub/types.h>'.
25762 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25763 types. Update all users.
25764
61ba42be 257652009-12-25 Carles Pina i Estany <carles@pina.cat>
25766
25767 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25768 `couldn't' and `can not' by `cannot'.
25769 * commands/i386/pc/drivemap.c: Likewise.
25770 * disk/ata.c: Likewise.
25771 * disk/ieee1275/nand.c: Likewise.
25772 * fs/affs.c: Likewise.
25773 * fs/fat.c: Likewise.
25774 * fs/hfs.c: Likewise.
25775 * fs/hfsplus.c: Likewise.
25776 * fs/iso9660.c: Likewise.
25777 * fs/jfs.c: Likewise.
25778 * fs/minix.c: Likewise.
25779 * fs/reiserfs.c: Likewise.
25780 * fs/sfs.c: Likewise.
25781 * fs/udf.c: Likewise.
25782 * fs/ufs.c: Likewise.
25783 * fs/xfs.c: Likewise.
25784 * loader/powerpc/ieee1275/linux.c: Likewise.
25785 * loader/sparc64/ieee1275/linux.c: Likewise.
25786 * util/grub-probe.c: Likewise.
25787 * util/misc.c: Likewise.
25788
7fd0baee 257892009-12-24 Carles Pina i Estany <carles@pina.cat>
25790
25791 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25792 grub_errno calls.
25793 * commands/acpi.c: Likewise.
25794 * commands/blocklist.c: Likewise.
25795 * commands/efi/loadbios.c: Likewise.
25796 * commands/i386/pc/drivemap.c: Likewise.
25797 * commands/loadenv.c: Likewise.
25798 * commands/memrw.c: Likewise.
25799 * commands/password.c: Likewise.
25800 * commands/videotest.c: Likewise.
25801 * disk/ata.c: Likewise.
25802 * disk/ata_pthru.c: Likewise.
25803 * disk/dmraid_nvidia.c: Likewise.
25804 * disk/ieee1275/nand.c: Likewise.
25805 * disk/ieee1275/ofdisk.c: Likewise.
25806 * disk/loopback.c: Likewise.
25807 * disk/lvm.c: Likewise.
25808 * disk/mdraid_linux.c: Likewise.
25809 * disk/raid.c: Likewise.
25810 * disk/raid6_recover.c: Likewise.
25811 * disk/scsi.c: Likewise.
25812 * efiemu/main.c: Likewise.
25813 * efiemu/mm.c: Likewise.
25814 * efiemu/pnvram.c: Likewise.
25815 * efiemu/symbols.c: Likewise.
25816 * font/font.c: Likewise.
25817 * fs/cpio.c: Likewise.
25818 * fs/hfsplus.c: Likewise.
25819 * fs/iso9660.c: Likewise.
25820 * fs/jfs.c: Likewise.
25821 * fs/minix.c: Likewise.
25822 * fs/ntfs.c: Likewise.
25823 * fs/ntfscomp.c: Likewise.
25824 * fs/reiserfs.c: Likewise.
25825 * fs/ufs.c: Likewise.
25826 * fs/xfs.c: Likewise.
25827 * gettext/gettext.c: Likewise.
25828 * include/grub/auth.h: Likewise.
25829 * kern/elf.c: Likewise.
25830 * kern/file.c: Likewise.
25831 * kern/ieee1275/init.c: Likewise.
25832 * kern/ieee1275/mmap.c: Likewise.
25833 * kern/ieee1275/openfw.c: Likewise.
25834 * kern/powerpc/dl.c: Likewise.
25835 * kern/sparc64/dl.c: Likewise.
25836 * lib/arg.c: Likewise.
25837 * loader/i386/bsd.c: Likewise.
25838 * loader/i386/bsdXX.c: Likewise.
25839 * loader/i386/efi/linux.c: Likewise.
25840 * loader/i386/efi/xnu.c: Likewise.
25841 * loader/i386/ieee1275/linux.c: Likewise.
25842 * loader/i386/linux.c: Likewise.
25843 * loader/i386/multiboot.c: Likewise.
25844 * loader/i386/pc/linux.c: Likewise.
25845 * loader/i386/pc/multiboot2.c: Likewise.
25846 * loader/i386/xnu.c: Likewise.
25847 * loader/ieee1275/multiboot2.c: Likewise.
25848 * loader/macho.c: Likewise.
25849 * loader/machoXX.c: Likewise.
25850 * loader/multiboot2.c: Likewise.
25851 * loader/multiboot_loader.c: Likewise.
25852 * loader/powerpc/ieee1275/linux.c: Likewise.
25853 * loader/sparc64/ieee1275/linux.c: Likewise.
25854 * loader/xnu.c: Likewise.
25855 * loader/xnu_resume.c: Likewise.
25856 * mmap/i386/pc/mmap.c: Likewise.
25857 * normal/menu_viewer.c: Likewise.
25858 * partmap/acorn.c: Likewise.
25859 * partmap/amiga.c: Likewise.
25860 * partmap/apple.c: Likewise.
25861 * script/lexer.c: Likewise.
25862 * term/gfxterm.c: Likewise.
25863 * term/i386/pc/serial.c: Likewise.
25864 * term/i386/pc/vga.c: Likewise.
25865 * term/ieee1275/ofconsole.c: Likewise.
25866 * term/terminfo.c: Likewise.
25867 * video/bitmap.c: Likewise.
25868 * video/efi_gop.c: Likewise.
25869 * video/efi_uga.c: Likewise.
25870 * video/fb/video_fb.c: Likewise.
25871 * video/i386/pc/vbe.c: Likewise.
25872 * video/readers/tga.c: Likewise.
25873 * video/video.c: Likewise.
25874
0ad46fd7 258752009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
25876
25877 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25878 * commands/lspci.c: Likewise.
25879 * commands/probe.c: Likewise.
25880 * commands/xnu_uuid.c: Likewise.
25881 * conf/i386-coreboot.rmk: Likewise.
25882 * conf/i386-efi.rmk: Likewise.
25883 * conf/i386-ieee1275.rmk: Likewise.
25884 * conf/i386-pc.rmk: Likewise.
25885 * conf/powerpc-ieee1275.rmk: Likewise.
25886 * conf/sparc64-ieee1275.rmk: Likewise.
25887 * conf/x86_64-efi.rmk: Likewise.
25888 * fs/i386/pc/pxe.c: Likewise.
25889 * gettext/gettext.c: Likewise.
25890 * include/grub/efi/graphics_output.h: Likewise.
25891 * include/grub/i386/pc/memory.h: Likewise.
25892 * kern/env.c: Likewise.
25893 * kern/i386/qemu/startup.S: Likewise.
25894 * lib/i386/pc/biosnum.c: Likewise.
25895 * lib/i386/relocator.c: Likewise.
25896 * lib/i386/relocator_asm.S: Likewise.
25897 * lib/relocator.c: Likewise.
25898 * loader/i386/bsd.c: Likewise.
25899 * loader/i386/multiboot.c: Likewise.
25900 * loader/i386/pc/chainloader.c: Likewise.
25901 * loader/i386/xnu.c: Likewise.
25902 * loader/xnu.c: Likewise.
25903 * normal/main.c: Likewise.
25904 * normal/menu_text.c: Likewise.
25905 * util/getroot.c: Likewise.
25906 * util/grub-mkconfig_lib.in: Likewise.
25907 * util/grub.d/00_header.in: Likewise.
25908 * util/i386/pc/grub-mkimage.c: Likewise.
25909 * util/mkisofs/eltorito.c: Likewise.
25910 * util/mkisofs/exclude.h: Likewise.
25911 * util/mkisofs/hash.c: Likewise.
25912 * util/mkisofs/iso9660.h: Likewise.
25913 * util/mkisofs/joliet.c: Likewise.
25914 * util/mkisofs/mkisofs.c: Likewise.
25915 * util/mkisofs/mkisofs.h: Likewise.
25916 * util/mkisofs/multi.c: Likewise.
25917 * util/mkisofs/name.c: Likewise.
25918 * util/mkisofs/rock.c: Likewise.
25919 * util/mkisofs/tree.c: Likewise.
25920 * util/mkisofs/write.c: Likewise.
25921 * video/efi_gop.c: Likewise.
25922
009ec743
VS
259232009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25924
25925 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25926 size counting.
25927
0ad46fd7 259282009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
25929
25930 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25931 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25932
d3d30ea0
VS
259332009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25934
25935 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25936 (GRUB_MOD_INIT(memrw)): Update help line.
25937
a34f5c70
VS
259382009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25939
25940 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25941 Use grub_extcmd_t. All users updated.
25942 (options): New variable.
25943 (grub_cmd_read): Restructure for readability. Support "-v" option.
25944 (grub_cmd_write): Restructure for readability.
25945
0ad46fd7 259462009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
25947
25948 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25949
0ad46fd7 259502009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
25951
25952 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25953 with the actual contents of the correspondending make variable.
25954 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25955 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25956 specifying `*.lst' and `efiemu??.o'
25957
0ad46fd7 259582009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
25959
25960 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25961 after function name.
25962 Noticed by Rene Engelhard <rene@debian.org>.
25963
dc77a799
VS
259642009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25965
25966 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25967 (options): New variable.
25968 (iospace): Likewise.
25969 (grub_lspci_iter): List IO spaces if "-i" was given.
25970 (grub_cmd_lspci): Parse options.
25971 (GRUB_MOD_INIT(lspci)): Use extcmd.
25972 (GRUB_MOD_FINI(lspci)): Likewise.
25973
0ad46fd7 259742009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
25975
25976 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25977 `function' keyword.
25978 Patch by Tony Mancill <tmancill@debian.org>.
25979
b5d5993b
VS
259802009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25981
25982 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25983 (grub_uhci_portstatus): Likewise.
25984 (grub_uhci_portstatus): Add necessary delay.
11d18281 25985 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 25986
941903f2 259872009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 25988
941903f2 25989 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25990 (GRUB_MOD_INIT): Likewise.
25991 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 25992 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25993 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 25994 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25995 (enable_rom_area): Likewise.
25996 (GRUB_MOD_INIT): Likewise.
25997 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25998 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25999 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26000 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26001 * commands/hexdump.c (options): Likewise.
26002 * commands/i386/cpuid.c (options): Likewise.
26003 (GRUB_MOD_INIT): Likewise.
26004 * commands/i386/pc/drivemap.c (options): Likewise.
26005 (GRUB_MOD_INIT): Likewise.
26006 * commands/i386/pc/halt (options): Likewise.
26007 (GRUB_MOD_INIT): Likewise.
26008 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26009 * commands/i386/pc/pxecmd.c (options): Likewise.
26010 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26011 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26012 * commands/keystatus.c (options): Likewise.
26013 (GRUB_MOD_INIT): Likewise.
26014 * commands/loadenv.c (options): Likewise.
26015 * commands/ls.c (options): Likewise.
26016 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26017 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26018 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26019 * commands/parttool.c (helpmsg): Likewise.
26020 * commands/probe.c (options): Likewise.
26021 * commands/read.c (GRUB_MOD_INIT): Likewise.
26022 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26023 * commands/search.c (options): Likewise.
26024 * commands/sleep.c (options): Likewise.
26025 * commands/test.c (GRUB_MOD_INIT): Likewise.
26026 * commands/true.c (GRUB_MOD_INIT): Likewise.
26027 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26028 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26029 * lib/arg.c (help_options): Likewise.
e9bbb4e7 26030 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26031 `$(XGETTEXT)'.
98a50553 26032 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 26033
0ad46fd7 260342009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 26035
ef3c2c3a 26036 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
26037 instead of specifying them explicit.
26038
7922f68b
RM
260392009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26040
26041 * NEWS: Add grub-probe support for GNU/Hurd.
26042
537ce47f
RM
260432009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26044
26045 * NEWS: gettext was added after 1.97.
26046
9b214e3a
RM
260472009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26048
26049 * util/mkisofs/msdos_partition.h: New file (based on
26050 include/grub/msdos_partition.h).
26051 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26052 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26053 (ld_options, main): Recognize --protective-msdos-label.
26054 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26055 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26056 (padblock_write): If `use_protective_msdos_label' is set, patch a
26057 protective DOS-style label in the output image.
26058
26059 * util/grub-mkrescue.in: Use --protective-msdos-label.
26060
e9309813
RM
260612009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26062
26063 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26064 boot.
26065
0ae56929
RM
260662009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26067
26068 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26069 variables.
26070 (ld_options, main): Recognize `--embedded-boot'.
26071 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26072 declarations.
26073 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26074 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26075 (padblock_write): Likewise. Rewrite to support embedded boot image.
26076
26077 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26078 for BIOS-based disk boot instead of only ElTorito.
26079
b15937b1
RM
260802009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26081
26082 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26083 build (not needed for bootstrap).
26084
52cc3ce0
RM
260852009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26086
26087 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26088 from i386-pc build (not needed for bootstrap).
26089 Rewrite a pair of strings.
26090
36f5ff04
RM
260912009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26092
26093 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26094
973c6c85 260952009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
26096
26097 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26098
05d21547
AB
260992009-12-21 Andreas Born <futur.andy@googlemail.com>
26100
26101 * kern/env.c (grub_env_context_open): Mark exported variable for
26102 reexport.
26103
0175d51f
AB
261042009-12-21 Andreas Born <futur.andy@googlemail.com>
26105
26106 * kern/env.c (grub_env_export): Create nonexistent variables before
26107 exporting.
26108
7f39d92f 261092009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 26110
7f39d92f 26111 * include/grub/auth.h: Include `<grub/i18n.h>'.
26112 (GRUB_GET_PASSWORD): Gettextizze string.
26113 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26114 menu_text.c.
26115 (grub_utf8_to_ucs4_alloc): Fix indentation.
26116 (grub_print_ucs4): Likewise.
26117 (grub_getstringwidth): Likewise.
26118 (print_message_indented): New declaration.
26119 * normal/auth.c: Include `<grub/i18n.h>'.
26120 (grub_auth_check_authentication): Gettexttize string.
26121 * normal/cmdline.c: Include `<grub/i18n.h>'.
26122 (grub_cmdline_get): Gettextizze.
26123 * normal/color.c: Include `<grub/i18n.h>'.
26124 (grub_parse_color_name_pair): Gettexttize strings.
26125 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26126 string (use `print_message_indented').
26127 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26128 `include/grub/normal.h'.
26129 (print_message_indented): Renamed to ...
26130 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26131 used in normal/main.c).
26132 (print_message): Use `grub_print_message_indented' instead of
26133 `print_message_indented'.
26134 (print_timeout): Likewise.
26135 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26136 (grub_normal_print_device_info): Gettexttize strings.
26137 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26138
3041d898
VS
261392009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26140
26141 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26142 of arguments. Return number of tokens and not arguments. All users
26143 updated.
26144
de15bf8e
VS
261452009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26146
26147 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26148 non-MSDOS paritions.
26149
e0a6ca52
VS
261502009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26151
26152 * include/grub/types.h (UNUSED): Removed since it conflicts with
26153 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26154 Reported by Grégoire Sutre.
26155
b99518d1 261562009-12-19 Carles Pina i Estany <carles@pina.cat>
26157
26158 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26159 (grub_print_ucs4_alloc): Likewise.
26160 (grub_getstringwidth): Likewise.
26161 * normal/main.c (grub_normal_init_page): Gettextize version string.
26162 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26163 (getstringwidth): Renamed to ...
26164 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26165 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26166 (grub_print_ucs4): Remove `static' qualifer (now used in
26167 normal/main.c).
26168 * po/POTFILES: Add normal/main.c.
26169
bfd5e52b 261702009-12-19 Carles Pina i Estany <carles@pina.cat>
26171
26172 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26173 (print_message_indented): Add `margin_left' and `margin_right'
26174 parameters.
26175 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26176 strings.
26177 (print_timeout): Use `print_message_indented' to print the message.
26178 Deletes `second_stage' parameter.
26179 (run_menu): Update `print_timeout' calls.
26180
5a1ad2b9
VS
261812009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26182
26183 Fix console palette on OpenFirmware.
26184
26185 * term/ieee1275/ofconsole.c (MAX): Removed.
26186 (colors): Redone based on VGA palette.
26187 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26188 colors are supported.
26189 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26190
b045f00a
VS
261912009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26192
26193 Fix potential EfiEmu double prepare.
26194
26195 * efiemu/main.c (prepared): New variable
26196 (grub_efiemu_unload): Set prepare to '0'.
26197 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26198
26199 set_virtual_address_map support.
26200
26201 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26202 prototype.
26203 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26204 prototype.
26205 (grub_efiemu_crc32): Likewise.
26206 (grub_efiemu_crc64): Likewise.
26207 (grub_efiemu_set_virtual_address_map): Likewise.
26208 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26209 New definition.
26210 (grub_autoefi_set_virtual_address_map): Likewise.
26211 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26212 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26213 Restructure flow to accomodate it.
26214 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26215 (grub_efiemu_crc): Recompute CRC32.
26216 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26217 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26218 * efiemu/symbols.c (relocated_handle): New variable.
26219 (grub_efiemu_free_syms): Free relocated_handle.
26220 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26221 (grub_efiemu_write_sym_markers): New function.
26222 (grub_efiemu_set_virtual_address_map): Likewise.
26223
26224 Newer XNU parameters.
26225
26226 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26227 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26228 (grub_xnu_fill_devicetree): New prototype.
26229 (grub_xnu_heap_real_start): New variable.
26230 * loader/xnu.c (get_name_ptr): New function.
26231 (grub_xnu_load_driver): Fill namelen and name.
26232
26233 64-bit xnu support.
26234
26235 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26236 and 'loader/macho64.c'.
26237 * conf/i386-pc.rmk: Likewise.
26238 * conf/x86_64-efi.rmk: Likewise.
26239 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26240 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26241 * include/grub/macho.h (grub_macho_segment64): New structure.
26242 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26243 (grub_macho_size32): ... to this.
26244 (grub_macho32_get_entry_point): Renamed from ...
26245 (grub_macho_get_entry_point32): ... to this.
26246 (grub_macho_contains_macho64): New prototype.
26247 (grub_macho_size64): Likewise.
26248 (grub_macho_get_entry_point64): Likewise.
26249 (grub_macho32_load): Renamed from ...
26250 (grub_macho_load32): ... to this.
26251 (grub_macho32_filesize): Renamed from ...
26252 (grub_macho_filesize32): ... to this.
26253 (grub_macho32_readfile): Renamed from ...
26254 (grub_macho_readfile32): ... to this.
26255 (grub_macho_filesize64): New prototype.
26256 (grub_macho_readfile64): Likewise.
26257 (grub_macho_parse32): Likewise.
26258 (grub_macho_parse64): Likewise.
26259 * loader/macho.c: Split into ...
26260 * loader/machoXX.c: ... and this. Replace 32 with XX.
26261 * loader/macho32.c: New file.
26262 * loader/macho64.c: Likewise.
26263 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26264 (grub_cmd_xnu_kernel): Make 32-bit only.
26265 (grub_cmd_xnu_kernel64): New function.
26266 (grub_xnu_load_driver): Support Mach-O 64.
26267 (grub_cmd_xnu_mkext): Likewise.
26268 * util/grub.d/30_os-prober.in (osx_entry): New function.
26269 Generate entries for 64-bit boot too.
26270
26271 Eliminate ad-hoc tree format in XNU and EfiEmu.
26272
26273 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26274 * efiemu/pnvram.c: Rewritten to use environment variables.
26275 All users updated.
26276
26277 Inline utf16_to_utf8.
26278
26279 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26280 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26281 All users updated.
26282 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26283
26284 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26285 * commands/usbtest.c (grub_usb_get_string): ... move here.
26286 (usb_print_str): Fix error handling.
26287 * include/grub/usb.h (grub_usb_get_string): Remove.
26288
26289 UTF-8 to UTF-16 transformation.
26290
26291 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26292 (charset_mod_SOURCES): New variable.
26293 (charset_mod_CFLAGS): Likewise.
26294 (charset_mod_LDFLAGS): Likewise.
26295 * include/grub/utf.h: New file.
26296 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26297
26298 Support for device properties.
26299
26300 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26301 (grub_xnu_devprop_device_header): Likewise.
26302 (grub_xnu_devprop_device_descriptor): Likewise.
26303 (grub_xnu_devprop_add_device): New prototype.
26304 (grub_xnu_devprop_remove_device): Likewise.
26305 (grub_xnu_devprop_remove_property): Likewise.
26306 (grub_xnu_devprop_add_property_utf8): Likewise.
26307 (grub_xnu_devprop_add_property_utf16): Likewise.
26308 (grub_cpu_xnu_init): Likewise.
26309 (grub_cpu_xnu_fini): Likewise.
26310 (grub_cpu_xnu_unload): Likewise.
26311 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26312 (property_descriptor): Likewise.
26313 (devices): New variable.
26314 (grub_xnu_devprop_remove_property): New function.
26315 (grub_xnu_devprop_add_device): Likewise.
26316 (grub_xnu_devprop_remove_device): Likewise.
26317 (grub_xnu_devprop_add_property): Likewise.
26318 (grub_xnu_devprop_add_property_utf8): Likewise.
26319 (grub_xnu_devprop_add_property_utf16): Likewise.
26320 (hextoval): Likewise.
26321 (grub_cpu_xnu_fill_devprop): Likewise.
26322 (grub_cmd_devprop_load): Likewise.
26323 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26324 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26325 (cmd_devprop_load): New variable.
26326 (grub_cpu_xnu_init): New function.
26327 (grub_cpu_xnu_fini): Likewise.
26328 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26329 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26330 (grub_cmd_xnu_devtree): Likewise.
26331 (hextoval): New function.
26332 (unescape): Likewise.
26333 (grub_xnu_fill_devicetree): Likewise.
26334
26335 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26336 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26337
0945f181
VS
263382009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26339
26340 Workaround for broken ATI VBE.
26341
26342 * video/i386/pc/vbe.c (last_set_mode): New variable.
26343 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26344 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26345 (grub_video_vbe_setup): Don't check for reserved flag.
26346
0ad46fd7 263472009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
26348
26349 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26350 the `find' command.
26351
c179ebe4
VS
263522009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26353
26354 UUID support for HFS.
26355
26356 * fs/hfs.c (grub_hfs_uuid): New function.
26357 (grub_hfs_fs): New value .uuid.
26358 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26359
0ad46fd7 263602009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
26361
26362 Fix a segfault with parsing unknown long options.
26363
26364 * util/grub-mkrelpath.c (options): Zero terminate it.
26365
c4a3e41a
CPE
263662009-12-13 Carles Pina i Estany <carles@pina.cat>
26367
26368 * include/grub/misc.h (grub_puts): New declaration.
26369 (grub_puts_): Likewise.
a22008a6 26370 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
26371 (grub_puts_): Likewise.
26372
2e8a7602
RM
263732009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26374
26375 * util/grub-probe.c (probe): Improve error message.
26376
b50b77b9
RM
263772009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26378
26379 * loader/i386/multiboot_elfxx.c
26380 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26381 initialization.
26382
263832009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26384
26385 Relocator framework
26386
26387 * loader/i386/xnu_helper.S: Removed. All users updated.
26388 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26389 (relocator_mod_SOURCES): New variable.
26390 (relocator_mod_CFLAGS): Likewise.
26391 (relocator_mod_LDFLAGS): Likewise.
26392 (relocator_mod_ASFLAGS): Likewise.
26393 * conf/x86_64.rmk: Likewise.
26394 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26395 (grub_multiboot_payload_entry_offset): Likewise.
26396 (grub_multiboot_forward_relocator): Likewise.
26397 (grub_multiboot_forward_relocator_end): Likewise.
26398 (grub_multiboot_backward_relocator): Likewise.
26399 (grub_multiboot_backward_relocator_end): Likewise.
26400 (grub_multiboot_payload_eip): New variable.
26401 (grub_multiboot_payload_orig): Likewise.
26402 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26403 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26404 * include/grub/i386/memory.h
26405 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26406 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26407 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26408 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26409 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26410 * include/grub/i386/relocator.h: New file.
26411 * include/grub/x86_64/relocator.h: Likewise.
26412 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26413 (XNU_RELOCATOR): New macro.
26414 (grub_xnu_launcher_start): Remove.
26415 (grub_xnu_launcher_end): Likewise.
26416 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26417 (grub_xnu_heap_real_start): Remove.
26418 (grub_xnu_heap_start): Change to void *. All users updated.
26419 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26420 * lib/i386/relocator.c: New file.
26421 * lib/i386/relocator_asm.S: Likewise.
26422 * lib/i386/relocator_backward.S: Likewise.
26423 * lib/mips/relocator.c: Likewise.
26424 * lib/mips/relocator_asm.S: Likewise.
26425 * lib/relocator.c: Likewise.
26426 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26427 (entry): Removed.
26428 (playground): Likewise.
26429 (grub_multiboot_payload_orig): New variable.
26430 (grub_multiboot_payload_dest): Likewise.
26431 (grub_multiboot_payload_size): Likewise.
26432 (grub_multiboot_payload_eip): Likewise.
26433 (grub_multiboot_payload_esp): Likewise.
26434 (grub_multiboot_boot): Use grub_relocator32_boot.
26435 (grub_multiboot_unload): Free relocators.
26436 (grub_multiboot): Setup stack. Use relocators.
26437 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26438 (grub_multiboot_load_elfXX): Use relocators.
26439 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26440 (grub_multiboot_payload_size): Likewise.
26441 (grub_multiboot_payload_dest): Likewise.
26442 (grub_multiboot_payload_entry_offset): Likewise.
26443 (grub_multiboot_forward_relocator): Likewise.
26444 (grub_multiboot_backward_relocator): Likewise.
26445 (grub_multiboot_real_boot): Likewise.
26446 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26447 (grub_xnu_entry_point): Likewise.
26448 (grub_xnu_arg1): Likewise.
26449 (grub_xnu_stack): Likewise.
26450 (grub_xnu_launch): Removed.
26451 (grub_xnu_boot_resume): New function.
26452 (grub_xnu_boot): Use relocators.
26453 * loader/i386/xnu_helper.S: Removed.
26454 * loader/xnu.c (grub_xnu_heap_start): New variable.
26455 (grub_xnu_heap_size): Likewise.
26456 (grub_xnu_heap_malloc): Use relocators.
26457 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26458
29eb90c6
VS
264592009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26460
26461 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26462 anything.
26463
31027430
CPE
264642009-12-13 Carles Pina i Estany <carles@pina.cat>
26465
26466 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26467 GRUB_ERR_NONE before calling grub_env_set.
26468
dc0c71d9
RM
264692009-12-12 Robert Millan <rmh@aybabtu.com>
26470
26471 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26472 * genmk.rb (video): New variable.
26473 (CLEANFILES, VIDEOFILES): Add #{video}.
26474 (#{video}): New target rule.
26475 * genvideolist.sh: New file.
26476 * Makefile.in (pkglib_DATA): Add video.lst.
26477 (video.lst): New target rule.
26478 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26479 `video.lst'.
26480 * util/grub.d/30_os-prober.in: Replace `vbe' with
26481 ${GRUB_VIDEO_BACKEND}.
26482
2a4bfcf0
RM
264832009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26484
26485 * THANKS: Add David Miller.
26486
2a3aa4d5
RM
264872009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26488
26489 libpciaccess support.
26490
26491 * Makefile.in (LIBPCIACCESS): New variable.
26492 (enable_grub_emu_pci): Likewise.
26493 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26494 util/pci.c and commands/lspci.c.
26495 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26496 * configure.ac (grub-emu-pci): New option.
26497 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26498 (grub_pci_device_unmap_range): Likewise.
26499 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26500 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26501 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26502 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26503 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26504 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26505 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26506 * include/grub/pciutils.h: New file.
26507 * util/pci.c: Likewise.
26508
0ad46fd7 265092009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
26510
26511 * util/misc.c: Don't include <errno.h> twice.
26512
0ad46fd7 265132009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
26514
26515 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26516 name in an error message.
26517 (grub_biosdisk_rw): Likewise.
26518
2e59983c
VS
265192009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26520
26521 Eliminate NTFS 4Gib barrier.
26522
26523 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26524 (read_run_data): Likewise.
26525 (grub_ntfs_read_run_list): Likewise.
26526 (grub_ntfs_read_block): Likewise.
26527 (grub_ntfs_iterate_dir): Likewise.
26528 (read_mft): Likewise.
26529 (read_data): Likewise.
26530 Use COM_LOG_LEN.
26531 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26532 to avoid 64-bit division
26533 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26534 (grub_ntfs_rlst): Use grub_disk_addr_t.
26535
71ee178a
VS
265362009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26537
26538 Eliminate grub-fstest 4Gib barrier.
26539
26540 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26541 (read_file): Fix error reporting.
26542
2520d4b8
VS
265432009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26544
26545 Eliminate hexdump 4Gib barrier.
26546
26547 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26548 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26549
e1f27065
VS
265502009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26551
26552 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26553 Fixes amarsh bug.
26554
1a0f7f45
RM
265552009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26556
26557 Remove miscellaneous files in distclean target.
26558
26559 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26560
c631d9fb
CW
265612009-12-09 Colin Watson <cjwatson@ubuntu.com>
26562
26563 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26564 if they're already set. This resolves the conflict between my
26565 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26566 fixing the --grub-probe option again.
26567 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26568 change on 2009-10-06, so that we now once again source
26569 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26570
7c7b6106
RM
265712009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26572
26573 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26574 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26575 `util/devicemap.c'.
26576
e3069ec1
CPE
265772009-12-08 Carles Pina i Estany <carles@pina.cat>
26578
26579 * include/grub/misc.h (grub_printf_): New declaration.
26580 * kern/misc.c (grub_printf_): New definition.
26581 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26582 instead of `grub_printf' and `_'.
26583 * normal/menu_entry.c (store_completion): Likewise.
26584 (run): Likewise.
26585 (grub_menu_entry_run): Likewise.
26586 * normal/menu_text.c (grub_wait_after_message): Likewise.
26587 (notify_booting): Likewise.
26588 (notify_fallback): Likewise.
26589 (notify_execution_failure): Likewise.
26590
d6ceebf1
CW
265912009-12-07 Colin Watson <cjwatson@ubuntu.com>
26592
26593 * configure.ac: Check for vasprintf.
26594 * util/misc.c (asprintf): Move allocation from here ...
26595 (vasprintf): ... to here. New function.
26596 (xasprintf): New function.
26597 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26598 prototypes.
26599 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26600 * util/grub-mkfont.c (write_font): Likewise.
26601 * util/grub-probe.c (probe): Likewise.
26602 * util/hostdisk.c (make_device_name): Likewise.
26603
de6daa8b
DM
266042009-12-06 David S. Miller <davem@sunset.davemloft.net>
26605
26606 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26607 anything even prefixed with 'cdrom' as a cdrom.
26608
0ad46fd7 266092009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
26610
26611 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26612 mount points.
26613
98d3dc02
CPE
266142009-12-05 Carles Pina i Estany <carles@pina.cat>
26615
26616 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26617 grub_gettext_msg_list.
26618 (grub_gettext_gettranslation_from_position): Return const char *
26619 and not char *.
a2c1332b 26620 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
26621 returns from the list if existing there.
26622 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26623 (grub_gettext_delete_list): Delete the list.
26624 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26625 lang environment variable is changed.
26626 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26627
b283f108
VS
266282009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26629
26630 Rename kernel.mod to kernel.img.
26631
26632 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26633 (kernel_mod_EXPORTS): Rename to ...
26634 (kernel_img_EXPORTS): ... this.
26635 (kernel_mod_SOURCES): Rename to ...
26636 (kernel_img_SOURCES): ... this.
26637 (kernel_mod_HEADERS): Rename to ...
26638 (kernel_img_HEADERS): ... this. All users updated.
26639 (kernel_mod_CFLAGS): Rename to ...
26640 (kernel_img_CFLAGS): ... this.
26641 (kernel_mod_ASFLAGS): Rename to ...
26642 (kernel_img_ASFLAGS): ... this.
26643 (kernel_mod_LDFLAGS): Rename to ...
26644 (kernel_img_LDFLAGS): ... this.
26645 * conf/x86_64-efi.rmk: Likewise.
26646 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26647 (read_kernel_image): ... this. All users updated.
26648 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26649
69055f8a
CPE
266502009-12-05 Carles Pina i Estany <carles@pina.cat>
26651
26652 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26653 (print_spaces): New function.
26654 (grub_print_ucs4): New function.
26655 (getstringwidth): New function.
26656 (print_message_indented): New function.
26657 (print_message): Gettexttize strings using print_message_indented.
26658 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26659 width.
26660 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 26661 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
26662 Gettextize.
26663 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26664 string.
26665 (run): Likewise.
26666 (grub_menu_entry_run): Likewise.
26667 * PO/POTFILES: Add normal/menu_entry.c.
26668
f616f51c
VS
266692009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26670
26671 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26672
57bbe3be
CPE
266732009-12-05 Carles Pina i Estany <carles@pina.cat>
26674
26675 * util/grub-install.in: Install gettext .mo files.
26676 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26677
013d67a1
CPE
266782009-12-05 Carles Pina i Estany <carles@pina.cat>
26679
26680 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26681 grub_dprintf.
26682
fb954db0
RM
266832009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26684
26685 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26686 non-firmware-dependant one in realmode.S takes precedence.
26687
6b8474f8
RM
266882009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26689
26690 * commands/halt.c: Replace misc arch-specific headers with
26691 `<grub/misc.h>'.
26692 * commands/reboot.c: Likewise.
26693 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26694 `<grub/misc.h>'.
26695 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26696 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26697 (kernel_img_SOURCES): ... to here.
26698
26699 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26700 * include/grub/i386/pc/init.h: Likewise.
26701 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26702 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26703
26704 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26705
26706 * include/grub/i386/halt.h: Remove.
26707 * include/grub/i386/reboot.h: Likewise.
26708
26709 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26710
4b2e6ca2
DM
267112009-12-03 David S. Miller <davem@sunset.davemloft.net>
26712
26713 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26714 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26715 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26716 "progname.h"
26717 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26718 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26719 (usage): Add missing comma in printf.
26720
5239348f
RM
267212009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26722
26723 Use the same reboot approach on i386 coreboot and qemu as we do on
26724 BIOS.
26725
26726 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26727 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26728 * kern/i386/reboot.c: Remove.
26729 * include/grub/i386/reboot.h (grub_reboot): Export function.
26730 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26731 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26732 0xf000:0xfff0 instead of 0xffff:0x0000.
26733 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26734 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26735
ef34cbd4
RM
267362009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26737
26738 Fix $srcdir != $objdir build.
26739
26740 * Makefile.in (po/%.po): Rewrite as ...
26741 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26742
dc9837ea
ST
267432009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26744
26745 Fix GNU/Hurd grub-install crash.
26746 * util/grub-probe.c (probe): Try to access `path' only when it is not
26747 NULL.
26748
2f857f98
VS
267492009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26750
26751 Correct module naming.
26752
26753 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26754 (GRUB_MOD_INIT(efi_uga)): ... to this
26755 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26756 (GRUB_MOD_FINI(efi_uga)): ... to this
26757 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26758 (GRUB_MOD_INIT(efi_gop)): ... to this
26759 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26760 (GRUB_MOD_FINI(efi_gop)): ... to this
26761
c5448046
RM
267622009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26763
26764 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26765 translatable.
26766 (usage): Translate `arg' strings using gettext().
26767 Thanks to Jordi Mallach for the suggestion.
26768
c85184ad
VS
267692009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26770
26771 GOP support. Based on patch from Bean
26772 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26773
26774 * video/efi_gop.c: New file.
26775 * include/grub/efi/graphics_output.h: Likewise.
26776 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26777 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26778 variables.
26779 * conf/x86_64-efi.rmk: Likewise.
26780
8a4c48d8
VS
267812009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26782
26783 Rename efi_fb to efi_uga.
26784
26785 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26786 'efi_uga.mod'.
26787 (efi_fb_mod_SOURCES): Rename this ...
26788 (efi_uga_mod_SOURCES): ... to this.
26789 (efi_fb_mod_CFLAGS): Rename this ...
26790 (efi_uga_mod_CFLAGS): ... to this.
26791 (efi_fb_mod_LDFLAGS): Rename this ...
26792 (efi_uga_mod_LDFLAGS): ... to this.
26793 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26794 'efi_uga.mod'.
26795 (efi_fb_mod_SOURCES): Rename this ...
26796 (efi_uga_mod_SOURCES): ... to this.
26797 (efi_fb_mod_CFLAGS): Rename this ...
26798 (efi_uga_mod_CFLAGS): ... to this.
26799 (efi_fb_mod_LDFLAGS): Rename this ...
26800 (efi_uga_mod_LDFLAGS): ... to this.
26801 * video/efi_fb.c: Move this ...
26802 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26803
fb6c1a7b
RM
268042009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26805
26806 * po/README: New file. Explain our PO file workflow.
26807
3bc7896c
RM
268082009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26809
26810 * po/ChangeLog: Remove. Move relevant entries back to ...
26811 * ChangeLog: ... here.
26812 * po/ca.po: Remove (now handled by TLP).
26813 * po/id.po: Likewise.
26814 * po/zh_CN.po: Likewise.
26815 * Makefile.in (LINGUAS): Initialize in a way that supports
26816 empty set.
26817
9ed4841d
RM
268182009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26819
26820 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26821 reliing on po/LINGUAS.
26822 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26823 (po/%.po): ... this.
26824
0ad46fd7 268252009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
26826
26827 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26828 (main): Use `program_name' instead of nonexistent `progname'.
26829
e30dd392
FZ
268302009-11-26 Felix Zielcke <fzielcke@z-51.de>
26831
26832 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26833 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26834
7656de4f
RM
268352009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26836
26837 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26838 commit.
26839 * conf/i386-efi.rmk: Likewise.
26840 * conf/i386-ieee1275.rmk: Likewise.
26841 * conf/powerpc-ieee1275.rmk: Likewise.
26842 * conf/sparc64-ieee1275.rmk: Likewise.
26843 * conf/x86_64-efi.rmk: Likewise.
26844
db77c4d4
FZ
268452009-11-26 Felix Zielcke <fzielcke@z-51.de>
26846
26847 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26848
a755bb04
FZ
268492009-11-26 Felix Zielcke <fzielcke@z-51.de>
26850
26851 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26852
8a4c07fd
RM
268532009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26854
26855 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26856 (grub_mkdevicemap_SOURCES): New variable.
26857 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26858 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26859 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26860 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26861 (grub_mkdevicemap_SOURCES): Remove.
26862 * conf/i386-efi.rmk: Likewise.
26863 * conf/i386-ieee1275.rmk: Likewise.
26864 * conf/i386-pc.rmk: Likewise.
26865 * conf/powerpc-ieee1275.rmk: Likewise.
26866 * conf/sparc64-ieee1275.rmk: Likewise.
26867 * conf/x86_64-efi.rmk: Likewise.
26868 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26869 (usage): Fix strings to use `program_name'.
26870 (main): Initialize gettext.
26871 * util/grub-editenv.c: Likewise.
26872 * util/grub-emu.c: Likewise.
26873 * util/grub-fstest.c: Likewise.
26874 * util/grub-mkdevicemap.c: Likewise.
26875 * util/grub-mkfont.c: Likewise.
26876 * util/grub-mkrelpath.c: Likewise.
26877 * util/grub-pe2elf.c: Likewise.
26878 * util/grub-probe.c: Likewise.
26879 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26880 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26881 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26882
26883 * util/misc.c: Include `"progname.h"'.
26884 (progname): Remove variable.
26885 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26886
6f61ed55
FZ
268872009-11-25 Felix Zielcke <fzielcke@z-51.de>
26888
26889 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26890 printf and print a newline after the menuentry header line.
26891 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26892
f022876b
FZ
268932009-11-25 Felix Zielcke <fzielcke@z-51.de>
26894
26895 autoconf >= 2.60 support $(localedir).
26896
26897 * INSTALL: Note that autoconf 2.60 is required.
26898 * configure.ac (AC_PREREQ): Bump to 2.60.
26899 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26900 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26901
6717926e
YB
269022009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26903
26904 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26905 aclocal is run.
26906
08806a54
RM
269072009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26908
26909 * normal/main.c (grub_normal_read_line): Fix off-by-one
26910 buffer overflow.
26911
13b33fba
RM
269122009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26913
26914 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26915 "parser.grub" in grub_command_execute() call.
26916
4a8572e9
CPE
269172009-11-24 Carles Pina i Estany <carles@pina.cat>
26918
26919 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26920 * conf/i386-efi.rmk: Likewise.
26921 * conf/i386-ieee1275.rmk: Likewise.
26922 * conf/i386-pc.rmk: Likewise.
26923 * conf/powerpc-ieee1275.rmk: Likewise.
26924 * conf/sparc64-ieee1275.rmk: Likewise.
26925 * conf/x86_64-efi.rmk: Likewise.
26926 * gettext/gettex.c: Include <grub/i18n.h>.
26927 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26928 here ...
26929 * include/grub/i18n.h: ... to here
26930 * include/grub/i18n.h: ... to here.
26931 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 26932 (grub_gettext_dummy): Move above user.
4a8572e9 26933
bee48093
FZ
269342009-11-24 Felix Zielcke <fzielcke@z-51.de>
26935
26936 * util/Makefile.in (install-local): Convert a `for' into a normal
26937 shell expansion.
26938
a031e91c
RM
269392009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26940
26941 * autogen.sh: Add automake call.
26942 * config.guess: Remove.
26943 * config.sub: Likewise.
26944 * install-sh: Likewise.
26945
26bec39d
FZ
269462009-11-24 Felix Zielcke <fzielcke@z-51.de>
26947
26948 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26949
8e2532fd
FZ
269502009-11-24 Felix Zielcke <fzielcke@z-51.de>
26951
26952 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26953 function to a normal shell `for'.
26954
fefa1b7d
FZ
269552009-11-24 Felix Zielcke <fzielcke@z-51.de>
26956
26957 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26958
4501250b
FZ
269592009-11-24 Felix Zielcke <fzielcke@z-51.de>
26960
26961 * util/grub-mkrelpath.c: New file.
26962 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26963 (grub_mkrelpath_SOURCES): New variable.
26964 * include/grub/util/misc.h: New function prototype.
26965 * util/misc.c (make_system_path_relative_to_its_root): New function.
26966
26967 * util/grub-mkconfig_lib.in (bindir): New variable.
26968 (grub_mkrelpath): Likewise.
26969 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26970
26971 * util/probe.c (probe): Make the file path relative to its root.
26972 Change a info message to use the GRUB path. Enable again the
26973 check if we can read the file with GRUB facilities.
26974
26975 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26976 to its root.
26977
11d9778b
FZ
269782009-11-24 Felix Zielcke <fzielcke@z-51.de>
26979
26980 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26981 platform.
26982
4465287d
FZ
269832009-11-24 Felix Zielcke <fzielcke@z-51.de>
26984
26985 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26986 strncmp().
26987
62b47f22
FZ
269882009-11-24 Felix Zielcke <fzielcke@z-51.de>
26989
26990 * util/getroot.c (grub_util_is_dmraid): New function.
26991 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26992 devices as normal ones, not as LVM.
26993
1eafb9b9 269942009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
26995
26996 * conf/common.rmk: Add grub-gettext_lib target and updates
26997 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26998 LDFLAGS.
26999 * gettext/gettext.c: New file. (Reads mo files).
27000 * include/grub/file.h (grub_file_pread): New prototype.
27001 * include/grub/i18n.h (_): New prototype.
27002 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27003 prototypes.
27004 * kern/misc.c (grub_gettext_dummy): New function.
27005 * normal/menu_text.c: Include <grub/i18n.h>.
27006 * normal/menu_text.c (print_timeout): Gettexttize string.
27007 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
27008 * po/POTFILES: Add `normal/menu_text.c'.
27009 * po/ca.po: Add new translations.
c3ea6bd4
CPE
27010 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27011 gettext module and defines locale_dir and lang in grub.cfg.
27012 * NEWS: Add gettext support.
27013
0fdb2568
RM
270142009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27015
27016 * util/hostdisk.c: Include `<grub/i18n.h>'.
27017 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27018 (make_device_name): Rewrite using asprintf.
27019 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27020 (find_system_device): If a device is not found, generate one just
27021 by reusing the OS path name.
27022 (read_device_map): Make it permissible for device.map not to exist.
27023
f515aa62
RM
270242009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27025
27026 * script/sh/execute.c: Move from here ...
27027 * script/execute.c: ... to here. Update all users.
27028 * script/sh/function.c: Move from here ...
27029 * script/function.c: ... to here. Update all users.
27030 * script/sh/lexer.c: Move from here ...
27031 * script/lexer.c: ... to here. Update all users.
27032 * script/sh/main.c: Move from here ...
27033 * script/main.c: ... to here. Update all users.
27034 * script/sh/parser.y: Move from here ...
27035 * script/parser.y: ... to here. Update all users.
27036 * script/sh/script.c: Move from here ...
27037 * script/script.c: ... to here. Update all users.
27038
f84b481b
RM
270392009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27040
27041 * configure.ac: Detect all `emu' platforms. Define
27042 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27043 --enable-grub-emu logic. Disable include/grub/machine
27044 symlink on `emu' platforms.
27045
27046 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27047 * gensymlist.sh.in: Likewise.
27048
27049 * include/grub/i386/coreboot/machine.h: Remove file.
27050 * include/grub/i386/efi/machine.h: Likewise.
27051 * include/grub/i386/ieee1275/machine.h: Likewise.
27052 * include/grub/i386/pc/machine.h: Likewise.
27053 * include/grub/i386/qemu/machine.h: Likewise.
27054 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27055 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27056 * include/grub/x86_64/efi/machine.h: Likewise.
27057
27058 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27059 * commands/halt.c: Likewise.
27060 * commands/reboot.c: Likewise.
27061 * include/grub/autoefi.h: Likewise.
27062 * include/grub/i386/at_keyboard.h: Likewise.
27063 * include/grub/i386/kernel.h: Likewise.
27064 * include/grub/i386/loader.h: Likewise.
27065 * include/grub/i386/pc/memory.h: Likewise.
27066 * kern/dl.c: Likewise.
27067 * kern/i386/coreboot/init.c: Likewise.
27068 * loader/i386/bsd.c: Likewise.
27069 * loader/i386/linux.c: Likewise.
27070 * loader/multiboot_loader.c: Likewise.
27071 * term/i386/pc/serial.c: Likewise.
27072 * term/usb_keyboard.c: Likewise.
27073
27074 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27075 `<grub/machine/machine.h>'
27076 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27077 * util/misc.c: Remove `<grub/machine/machine.h>' and
27078 `<grub/machine/time.h>'.
27079
27080 * Makefile.in (enable_grub_emu): Remove variable.
27081 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27082
27083 * conf/any-emu.rmk: New file.
27084 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27085 (grub_emu_init.c): Move from here ...
27086 * conf/any-emu.rmk: ... to here.
27087
27088 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27089 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27090 * conf/any-emu.rmk: ... to here.
27091
4efeab03
RM
270922009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27093
27094 * include/grub/parser.h (grub_parser_register): Document need
27095 of `name' parameter.
27096 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27097 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27098 "sh" to "grub".
27099
ea1dd8bf
RM
271002009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27101
27102 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27103 `$(XGETTEXT)'.
27104 * include/grub/i18n.h (N_): New macro.
27105 * util/mkisofs/mkisofs.h: Likewise.
27106 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27107 around N_().
27108 (usage): Use gettext() to translate help strings when printing them.
27109
0c140626
RM
271102009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27111
27112 Based on patch from Bean
27113 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27114
27115 * video/efi_fb.c: New file.
27116 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27117 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27118 variables.
27119 * conf/x86_64-efi.rmk: Likewise.
27120
87d58298
RM
271212009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27122
27123 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27124 * util/i386/pc/grub-setup.c: Likewise.
27125
994cc3a3
ST
271262009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27127
27128 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27129 <hurd/fs.h>
27130 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27131 file_get_storage_info to implement grub_guess_root_device.
27132
26a61d6a
FZ
271332009-11-21 Felix Zielcke <fzielcke@z-51.de>
27134
27135 * Makefile.in (target): Use make's builtin $(shell) function
27136 instead of calling directly $(SHELL) to create the locale directories,
27137 inside the $(foreach) function.
27138
74ff1dd5
FZ
271392009-11-21 Felix Zielcke <fzielcke@z-51.de>
27140
27141 * util/grub-mkrescue.in: Print an error and usage if output option
27142 has not been given.
27143
0b787d0e
FZ
271442009-11-21 Felix Zielcke <fzielcke@z-51.de>
27145
27146 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27147 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27148 root and /boot are on different devices.
27149
1164b270
RM
271502009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27151
27152 Fix build for srcdir != objdir.
27153
27154 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27155 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27156 $(srcdir).
27157 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27158 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27159 reference for input.
27160
13774a2f
RM
271612009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27162
27163 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27164 or hardlinking it). Remove -J option, Joliet is not compatible with
27165 multiple source directories.
27166
efda854e
RM
271672009-11-21 Carles Pina i Estany <carles@pina.cat>
271682009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27169
27170 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27171 (process_input_dir): New function. Process an arbitrary input
27172 directory.
27173 Misc adjustments to support both "override mode" and system-wide mode.
27174
6c09890c
FZ
271752009-11-20 Felix Zielcke <fzielcke@z-51.de>
27176
27177 * configure.ac (UNIFONT_BDF): Rename to ...
27178 (FONT_SOURCE): ... this. Update all users.
27179
a797824f
FZ
271802009-11-20 Felix Zielcke <fzielcke@z-51.de>
27181
27182 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27183 to the list of unifont files to look for.
27184
cd4f42b0
RM
271852009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27186
27187 Patch from Joe Auricchio <jauricchio@gmail.com>
27188 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27189 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27190 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27191
393c783d
FZ
271922009-11-19 Felix Zielcke <fzielcke@z-51.de>
27193
27194 * Makefile.in (install-local): Add a missing backslash.
27195
b2f1e327
FZ
271962009-11-19 Felix Zielcke <fzielcke@z-51.de>
27197
27198 * include/grub/x86_64/io.h: New file.
27199
f577f7a0
RM
272002009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27201
27202 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27203 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27204 Include `"progname.h"'.
27205 (main): Initialize gettext.
27206 * util/i386/pc/grub-setup.c: Gettexttize.
27207 * util/i386/pc/grub-mkimage.c: Likewise.
27208
27209 * Makefile.in (po/*.po): Redefine as ...
27210 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27211
3bc7896c
RM
27212 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27213
c37943b6
RM
272142009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27215
27216 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27217 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27218 (program_name): Remove.
27219 (main): Initialize gettext support.
6323f705
RM
27220 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27221 Include `<libintl.h>'.
27222 (_): New macro.
c37943b6
RM
27223
27224 * util/mkisofs/eltorito.c: Gettexttize.
27225 * util/mkisofs/joliet.c: Likewise.
27226 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
27227 * util/mkisofs/multi.c: Likewise.
27228 * util/mkisofs/rock.c: Likewise.
27229 * util/mkisofs/tree.c: Likewise.
27230 * util/mkisofs/write.c: Likewise.
27231
3bc7896c
RM
27232 * po/POTFILES: Update with new files.
27233
5ce77c6e
RM
272342009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27235
27236 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27237 * util/mkisofs/iso9660.h: Likewise.
27238 * util/mkisofs/joliet.c: Likewise.
27239 * util/mkisofs/mkisofs.c: Likewise.
27240 * util/mkisofs/mkisofs.h: Likewise.
27241 * util/mkisofs/rock.c: Likewise.
27242 * util/mkisofs/tree.c: Likewise.
27243 * util/mkisofs/write.c: Likewise.
27244
27245 * util/mkisofs/eltorito.c (rcsid): Remove.
27246 * util/mkisofs/hash.c: Likewise.
27247 * util/mkisofs/joliet.c: Likewise.
27248 * util/mkisofs/name.c: Likewise.
27249 * util/mkisofs/rock.c: Likewise.
27250 * util/mkisofs/tree.c: Likewise.
27251 * util/mkisofs/write.c: Likewise.
27252
1dabbc77
RM
272532009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27254
27255 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27256 instead of static allocation.
27257 * util/mkisofs/match.h: Likewise.
27258
633877cb
RM
272592009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27260
3bc7896c
RM
27261 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27262 and `util/grub.d/10_linux.in'.
633877cb
RM
27263 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27264 translatable Shell files.
27265
af1c0c85
RM
272662009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27267
27268 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27269
769ae37b
RM
272702009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27271
27272 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 27273 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
27274 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27275 Add gettext initialization.
27276 (kfreebsd_entry): Make menuentry output translatable.
27277
272782009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27279
27280 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27281 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27282 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27283 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27284 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 27285 * po/LINGUAS: New file.
769ae37b
RM
27286
272872009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27288
27289 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27290 other things).
27291 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27292 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27293 bindtextdomain() calls for gettext initialization.
27294
272952009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27296
27297 * gnulib/progname.c: New file (imported from Gnulib).
27298 * gnulib/progname.h: Likewise.
27299 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27300 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27301 (usage): Replace `progname' with `program_name'.
27302 (main): Use set_program_name() for program name initialization.
27303
273042009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27305
27306 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27307 from here ...
27308 * Makefile.in (CPPFLAGS): ... to here.
27309
273102009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27311
27312 * aclocal.m4: Move from here ...
27313 * acinclude.m4: ... to here.
27314 * autogen.sh: Add call to `aclocal'.
27315 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27316
273172009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27318
27319 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27320 (LINGUAS): New variable.
27321 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27322 (install-local): Install MO files.
27323 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27324 * include/grub/i18n.h: New file.
3bc7896c
RM
27325 * po/POTFILES: New file.
27326 * po/ca.po: New file.
769ae37b
RM
27327 * util/grub.d/10_linux.in (bindir): New variable.
27328 Add gettext initialization.
27329 (linux_entry): Make menuentry output translatable.
27330 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27331 (usage): Make --help output translatable.
27332 (main): Initialize gettext.
27333
02c0a6ad
RM
273342009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27335
27336 * import_gcry.py: New file (written by Vladimir with minor
27337 adjustments).
27338 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27339 ciphers.
27340 * INSTALL: Document that Python is required for bootstrap.
27341
273422009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27343
27344 Import ciphers from libgcrypt 1.4.4.
27345
27346 * lib/libgcrypt/cipher/ChangeLog
27347 * lib/libgcrypt/cipher/ac.c
27348 * lib/libgcrypt/cipher/arcfour.c
27349 * lib/libgcrypt/cipher/bithelp.h
27350 * lib/libgcrypt/cipher/blowfish.c
27351 * lib/libgcrypt/cipher/camellia-glue.c
27352 * lib/libgcrypt/cipher/camellia.c
27353 * lib/libgcrypt/cipher/camellia.h
27354 * lib/libgcrypt/cipher/cast5.c
27355 * lib/libgcrypt/cipher/cipher.c
27356 * lib/libgcrypt/cipher/crc.c
27357 * lib/libgcrypt/cipher/des.c
27358 * lib/libgcrypt/cipher/dsa.c
27359 * lib/libgcrypt/cipher/ecc.c
27360 * lib/libgcrypt/cipher/elgamal.c
27361 * lib/libgcrypt/cipher/hash-common.c
27362 * lib/libgcrypt/cipher/hash-common.h
27363 * lib/libgcrypt/cipher/hmac-tests.c
27364 * lib/libgcrypt/cipher/md.c
27365 * lib/libgcrypt/cipher/md4.c
27366 * lib/libgcrypt/cipher/md5.c
27367 * lib/libgcrypt/cipher/primegen.c
27368 * lib/libgcrypt/cipher/pubkey.c
27369 * lib/libgcrypt/cipher/rfc2268.c
27370 * lib/libgcrypt/cipher/rijndael-tables.h
27371 * lib/libgcrypt/cipher/rijndael.c
27372 * lib/libgcrypt/cipher/rmd.h
27373 * lib/libgcrypt/cipher/rmd160.c
27374 * lib/libgcrypt/cipher/rsa.c
27375 * lib/libgcrypt/cipher/seed.c
27376 * lib/libgcrypt/cipher/serpent.c
27377 * lib/libgcrypt/cipher/sha1.c
27378 * lib/libgcrypt/cipher/sha256.c
27379 * lib/libgcrypt/cipher/sha512.c
27380 * lib/libgcrypt/cipher/tiger.c
27381 * lib/libgcrypt/cipher/twofish.c
27382 * lib/libgcrypt/cipher/whirlpool.c
27383
af2f93ac
RM
273842009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27385
27386 Fix build for systems without error().
27387
27388 * gnulib/error.c: New file (imported from Gnulib).
27389 * gnulib/error.h: Likewise.
27390 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27391 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27392 (this variable is now used by error()).
27393
73fb3dd5
FZ
273942009-11-16 Felix Zielcke <fzielcke@z-51.de>
27395
814f5e96
FZ
27396 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27397 instead of relying that char is signed.
73fb3dd5 27398
a691ca33
VS
273992009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27400
27401 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27402 blocksize different from specified.
27403 (grub_pxefs_read): Likewise.
27404
2af8f0f4
FZ
274052009-11-16 Felix Zielcke <fzielcke@z-51.de>
27406
27407 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27408
27409 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27410 (grub_ata_readwrite): Likewise. Update 2 format strings.
27411 (grub_atapi_read): Likewise.
27412
27413 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27414 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27415 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27416 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27417 (ata_mod_LDFLAGS): Move from here ...
27418 * conf/i386.rmk: ... to here ...
27419 * conf/x86_64-efi.rmk: ... and here.
27420 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27421 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27422
83bdecaf
RM
274232009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27424
27425 Relicense multiboot.h, with RMS' blessing.
27426
27427 * include/multiboot.h: Change to X11 license.
27428
fd6fd3d7
RM
274292009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27430
27431 Support --version in grub-mkisofs.
27432
27433 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27434 (OPTION_VERSION): New macro.
27435 (ld_options): Recognize --version.
27436 (usage): Move `program_name' from here ...
27437 (program_name): ... to here. Add `static' qualifier.
27438 (main): Recognize `OPTION_VERSION'.
27439
16a88c49
FZ
274402009-11-15 Felix Zielcke <fzielcke@z-51.de>
27441
27442 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27443 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27444
a4158476
RM
274452009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27446
27447 Fix help2man generation for mkisofs.
27448
27449 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27450 (usage): Send output to stdout (rather than stderr).
27451
fc2208b0
RM
274522009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27453
27454 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27455 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27456 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27457 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27458 (bin_SCRIPTS): Add `grub-mkfloppy'.
27459 (grub_mkfloppy_SOURCES): New variable.
27460
27461 * util/grub-mkrescue.in: New file.
27462 * util/i386/pc/grub-mkfloppy.in: New file.
27463
27464 * util/i386/coreboot/grub-mkrescue.in: Remove.
27465 * util/i386/pc/grub-mkrescue.in: Remove.
27466
8d0edf4a
RM
274672009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27468
27469 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27470 from here ...
27471 * include/multiboot.h (struct multiboot_header): ... to here. Update
27472 all users.
27473 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27474 from here ...
27475 * include/multiboot.h (struct multiboot_info): ... to here. Update
27476 all users.
27477 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27478 from here ...
27479 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27480 Update all users.
27481 * include/grub/multiboot.h (struct grub_mod_list): Move
27482 from here ...
27483 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27484 Update all users.
27485
a73f5969
RM
274862009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27487
27488 * include/multiboot2.h (multiboot_word): Rename from this ...
27489 (multiboot2_word): ... to this. Update all users.
27490 (multiboot_header): Rename from this ...
27491 (multiboot2_header): ... to this. Update all users.
27492 (multiboot_tag_header): Rename from this ...
27493 (multiboot2_tag_header): ... to this. Update all users.
27494 (multiboot_tag_start): Rename from this ...
27495 (multiboot2_tag_start): ... to this. Update all users.
27496 (multiboot_tag_name): Rename from this ...
27497 (multiboot2_tag_name): ... to this. Update all users.
27498 (multiboot_tag_module): Rename from this ...
27499 (multiboot2_tag_module): ... to this. Update all users.
27500 (multiboot_tag_memory): Rename from this ...
27501 (multiboot2_tag_memory): ... to this. Update all users.
27502 (multiboot_tag_unused): Rename from this ...
27503 (multiboot2_tag_unused): ... to this. Update all users.
27504 (multiboot_tag_end): Rename from this ...
27505 (multiboot2_tag_end): ... to this. Update all users.
27506
1c8927f0
RM
275072009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27508
27509 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27510 this platform we should support Multiboot1 first.
27511
27512 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27513 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27514 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27515
6e1e0d89
RM
275162009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27517
27518 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27519 of write calls (converting them to fwrite() if they aren't already).
27520 (get_torito_desc): Likewise.
27521 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27522
7f2b34d8
RM
275232009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27524
27525 * util/i386/pc/grub-install.in: Move from here ...
27526 * util/grub-install.in: ... to here. Update all users.
27527
c0ef3311
CW
275282009-11-11 Colin Watson <cjwatson@ubuntu.com>
27529
27530 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27531
e1f240ff
RM
275322009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27533
27534 Support for El Torito without floppy emulation.
27535
27536 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27537 (init_boot_catalog): Improve error handling.
27538 (get_torito_desc): Don't use floppy emulation unless requested by
27539 user. Patch boot information table when requested via
27540 `-boot-info-table'.
27541 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27542 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27543 (use_boot_info_table): New variables.
27544 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27545 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27546 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27547 `--eltorito-emul-floppy'.
27548 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27549 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27550 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27551 (use_boot_info_table, get_731): New prototypes.
27552 * util/mkisofs/write.c (get_731): New function.
27553
af7d4de5
FZ
275542009-11-11 Felix Zielcke <fzielcke@z-51.de>
27555
27556 Fix the generation of the man page.
27557
27558 * util/pc/i386/grub-install.in: Source
27559 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27560
2c55dbc0
RM
275612009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27562
27563 Large file support for grub-mkisofs.
27564
27565 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27566 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27567 (session_start): Upgrade type to `uint64_t'. Update all users.
27568 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27569 (struct directory_entry): Upgrade type of `starting_block' and
27570 `size' to `uint64_t'. Update all users.
27571 (struct deferred): Remove unused structure.
27572 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27573 Update all users.
27574 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27575 file is larger than `UINT32_MAX'.
27576 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27577 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27578 return value.
27579 (struct deferred_write): Upgrade type of `extent' and `size' to
27580 `uint64_t'. Update all users.
27581 (last_extent_written): Upgrade type to `uint64_t'. Update all
27582 users.
27583 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27584 Update all users. Upgrade type of `remain' to `int64_t' and
27585 `use' to `size_t'. Use error() to handle fread() errors.
27586 (write_files): Rely on write_one_file() rather than calling
27587 xfwrite() directly.
27588
6a9cead5
FZ
275892009-11-09 Felix Zielcke <fzielcke@z-51.de>
27590
27591 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27592
4825d790
RM
275932009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27594
27595 * util/mkisofs/fnmatch.c: Remove.
27596 * util/mkisofs/getopt1.c: Likewise.
27597 * util/mkisofs/getopt.c: Likewise.
27598 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27599 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27600 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27601 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27602 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27603
27604 * configure.ac: Detect `mingw32msvc' host_os.
27605 Check for lstat(), getuid() and getgid().
27606
27607 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27608 instances of `u_char' with `uint8_t'.
27609
27610 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27611 [!HAVE_GETUID] (getuid): New function (stub).
27612 [!HAVE_GETGID] (getgid): Likewise.
27613 [!HAVE_LSTAT] (lstat): Likewise.
27614 [!S_IROTH] (S_IROTH): New macro (dummy).
27615 [!S_IRGRP] (S_IRGRP): Likewise.
27616
84b860d8
RM
276172009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27618
27619 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27620 conditional expression).
27621
66e9b712
RM
276222009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27623
27624 Import from Gnulib.
27625
27626 * gnulib/fnmatch.c: New file.
27627 * gnulib/fnmatch.h: Likewise.
27628 * gnulib/fnmatch_loop.c: Likewise.
27629 * gnulib/getopt.c: Likewise.
27630 * gnulib/getopt.h: Likewise.
27631 * gnulib/getopt1.c: Likewise.
27632 * gnulib/getopt_int.h: Likewise.
27633 * gnulib/gettext.h: Likewise.
27634
34f4a5b0
RM
276352009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27636
27637 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27638 * normal/handler.c (read_handler_list): Likewise.
27639
ac451143
RM
276402009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27641
27642 Misc cleanup.
27643
27644 * kern/command.c (grub_register_command_prio): Use
27645 grub_zalloc() instead of explicitly zeroing data.
27646 * kern/list.c: Include `<grub/mm.h>'.
27647 (grub_named_list_find): Replace `0' with `NULL'.
27648 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27649 (fs_module_list): Change type to `grub_named_list_t'. Update all
27650 users.
27651 * normal/dyncmd.c (read_command_list): Add space between function
27652 call and parenthesis.
27653 * normal/handler.c (read_handler_list): Likewise.
27654
4089b167
RM
276552009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27656
27657 * normal/auth.c (punishment_delay): Moved from here ...
27658 (grub_auth_strcmp): ... to here (inside function).
27659
325f5037
RM
276602009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27661
27662 * include/grub/list.h (struct grub_named_list): Remove `const'
27663 qualifier from `name'.
27664 (struct grub_prio_list): Likewise.
27665
7aea29a3
RM
276662009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27667
27668 * normal/auth.c: Include `<grub/time.h>'.
27669 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27670
3fd6f044
RM
276712009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27672
27673 * normal/auth.c (punishment_delay): New variable.
27674 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27675 (grub_auth_check_authentication): Punish failed login attempts with
27676 an incremental (2^N) delay.
27677
a4cd68e4
RM
276782009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27679
27680 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27681 path with $(srcdir).
27682
7ad12f43
VS
276832009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27684
27685 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27686
c1129f03
RM
276872009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27688
27689 * util/i386/coreboot/grub-mkrescue.in: New file.
27690 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27691 variables.
27692
27693 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27694 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27695 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27696 requirements.
27697 * util/mkisofs/defaults.h: New file.
27698 * util/mkisofs/eltorito.c: Likewise.
27699 * util/mkisofs/exclude.h: Likewise.
27700 * util/mkisofs/fnmatch.c: Likewise.
27701 * util/mkisofs/getopt.c: Likewise.
27702 * util/mkisofs/getopt1.c: Likewise.
27703 * util/mkisofs/hash.c: Likewise.
27704 * util/mkisofs/include/fctldefs.h: Likewise.
27705 * util/mkisofs/include/mconfig.h: Likewise.
27706 * util/mkisofs/include/prototyp.h: Likewise.
27707 * util/mkisofs/include/statdefs.h: Likewise.
27708 * util/mkisofs/iso9660.h: Likewise.
27709 * util/mkisofs/joliet.c: Likewise.
27710 * util/mkisofs/match.c: Likewise.
27711 * util/mkisofs/match.h: Likewise.
27712 * util/mkisofs/mkisofs.c: Likewise.
27713 * util/mkisofs/mkisofs.h: Likewise.
27714 * util/mkisofs/multi.c: Likewise.
27715 * util/mkisofs/name.c: Likewise.
27716 * util/mkisofs/rock.c: Likewise.
27717 * util/mkisofs/tree.c: Likewise.
27718 * util/mkisofs/write.c: Likewise.
27719
ec8bb77d
VS
277202009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27721
27722 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27723 being insecure.
27724
3716b12c
RM
277252009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27726
27727 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27728 `grub-mkimage' (and use $0 when possible).
27729
b97b7b91
RM
277302009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27731
27732 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27733 error message for excessively large memory map.
27734
04114812
RM
277352009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27736
27737 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27738 executable bit.
27739
e4eb2373
RM
277402009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27741
27742 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27743 message for coreboot users.
27744
c926e1d5 277452009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27746
27747 Fix build with GNU gold.
27748
27749 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27750 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27751 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27752 link addresses.
27753 * aclocal.m4: Likewise.
27754
86e5b1db 277552009-11-04 Felix Zielcke <fzielcke@z-51.de>
27756
27757 * configure.ac (AC_PREREQ): Bump to 2.59d.
27758 * INSTALL: Make it more clear when Autoconf and Ruby are
27759 needed and when to run `./autogen.sh'.
27760
246cd78f 277612009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27762
27763 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27764 OSes.
27765
4f9dfb37 277662009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27767
27768 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27769
b82bd5e1 277702009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27771
27772 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27773 giving it to GNU Mach.
27774
ff1a9bca 277752009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27776
27777 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27778 GNU partition number to get internal GRUB partition number.
27779
61697d9c 277802009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27781
27782 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27783 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27784
a50569e1 277852009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27786
27787 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27788 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27789 case.
27790
5b153867 277912009-11-01 Felix Zielcke <fzielcke@z-51.de>
27792
27793 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27794
d9e2cd70 277952009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27796
27797 Fix build problem.
27798
27799 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27800 `-isystem=$(srcdir)/include'.
27801
805111a4 278022009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27803
27804 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27805 checked (grub-install doesn't currently rely on it).
27806
fa6e945f 278072009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27808
27809 Revert SVN r2660.
27810
27811 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27812 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27813 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27814 * conf/i386-ieee1275.rmk: Likewise.
27815 * conf/i386-pc.rmk: Likewise.
27816 * conf/powerpc-ieee1275.rmk: Likewise.
27817 * conf/sparc64-ieee1275.rmk: Likewise.
27818 * conf/x86_64-efi.rmk: Likewise.
27819
cee15086 278202009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27821
27822 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27823
95b9239e 278242009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27825
27826 * include/grub/misc.h: Stop checking for APPLE_CC.
27827
2ed19dfd 278282009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27829
27830 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27831 doesn't cause an infinite call loop.
27832
fdcdde19 278332009-10-28 Felix Zielcke <fzielcke@z-51.de>
27834
27835 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27836 strings.
27837
cefabfe1 278382009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27839
27840 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27841 variable.
27842 * Makefile.in: Likewise.
27843
ed96ab6d 278442009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27845
27846 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27847
0579b753 278482009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27849
27850 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27851
478df409 278522009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27853
27854 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27855
083d1679 278562009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27857
27858 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27859 from here ...
27860 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27861
5947ae32 278622009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27863
27864 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27865 in $(MAKEINFO) invocation. This makes it clear in output that
27866 errors are being ignored.
27867
94180ff6 278682009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27869
27870 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27871 from here ...
27872 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27873 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27874 * conf/i386-ieee1275.rmk: Likewise.
27875 * conf/i386-pc.rmk: Likewise.
27876 * conf/powerpc-ieee1275.rmk: Likewise.
27877 * conf/sparc64-ieee1275.rmk: Likewise.
27878 * conf/x86_64-efi.rmk: Likewise.
27879
9031b03a 278802009-10-26 Colin Watson <cjwatson@ubuntu.com>
27881
27882 * util/grub-editenv.c (main): If only a command is given, use
27883 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27884 (usage): FILENAME is now optional and has a default.
27885
e4f6809b 278862009-10-26 Colin Watson <cjwatson@ubuntu.com>
27887
27888 Improve grub-mkconfig performance when there are several menu
27889 entries on a single filesystem.
27890
27891 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27892 prepare_grub_to_access_device.
27893 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27894 * util/grub.d/30_os-prober.in: Likewise.
27895
67937d4d 278962009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27897
27898 * util/grub.d/10_freebsd.in: Remove.
27899 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27900 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27901
ee3756cc 279022009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27903
5c35048e 27904 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 27905
4dea1c6f 279062009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27907
27908 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27909 grub_util_error() call.
27910
042484d7 279112009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27912
27913 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27914 `reserved_first_sector' member.
27915 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27916 `reserved_first_sector' to 1.
27917 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27918 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27919 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27920 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27921 filesystems which begin at first sector.
27922 (options): New option --skip-fs-probe.
27923 (main): Handle --skip-fs-probe and pass it to setup().
27924
d64448a7 279252009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27926
27927 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27928 (memset): Fix function prototype.
27929
508d42ec 279302009-10-25 Robert Millan <rmh.grub@aybabtu.com>
279312009-10-25 Vasily Averin <vvs@parallels.com>
27932
27933 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27934 `dirent.direntlen == 0'.
27935
b240e30c 279362009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27937
27938 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27939 `cpio'.
27940 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27941
346e7fbe 279422009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27943
27944 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27945 `__trampoline_setup' and `__ucmpdi2'.
27946 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27947 that libgcc provides.
27948
cdb308b0 279492009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27950
27951 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27952 * include/grub/sparc64/libgcc.h (memset): Likewise.
27953 * include/grub/misc.h (memset, memcmp): New function prototypes.
27954
fb26abc2 279552009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27956
27957 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27958 `cpio'.
27959 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27960
f6693890 279612009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27962
27963 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27964 * docs/grub.cfg: Compensate for recent change in multiboot
27965 loader (since 2009-08-14 it won't pass filename to payload).
27966 * util/grub.d/10_hurd.in: Likewise.
27967
0933cdc0 279682009-10-21 Felix Zielcke <fzielcke@z-51.de>
27969
27970 * config.guess: Update to latest version from config git
27971 repository.
27972 * config.sub: Likewise.
27973
3b2fe8c2 279742009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27975
27976 Fix build on sparc64.
27977
27978 * configure.ac: Perform checks for libgcc symbols before
27979 adding `-nostdlib' to LDFLAGS.
27980
46695a62 279812009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27982
27983 Let user specify OpenBSD root device.
27984
27985 * loader/i386/bsd.c (openbsd_root): New variable.
27986 (openbsd_opts): New option 'root'.
27987 (OPENBSD_ROOT_ARG): New macro.
27988 (grub_openbsd_boot): Use 'openbsd_root'.
27989 (grub_cmd_openbsd): Fill 'openbsd_root'.
27990
d2b6b7fc 279912009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27992
27993 * NEWS: Misc adjustments.
27994
421bd7ac 279952009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27996
27997 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27998
f1d29d87 279992009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28000
28001 * configure.ac: Bump version to 1.97.
28002
6f3cd880 280032009-10-16 Colin Watson <cjwatson@ubuntu.com>
28004
28005 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28006 -mno-3dnow on x86 architectures. Some toolchains enable these
28007 features by default, but they rely on registers that aren't enabled
28008 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28009
035f7122 280102009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28011
28012 Make entry text a bit more readable.
28013
28014 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28015
44998e58 280162009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28017
28018 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28019
cd2851b3 280202009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28021
28022 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28023 operations.
28024
c6f3b249 280252009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28026
28027 * configure.ac: Add missing dollar.
28028
6b5886ba 280292009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28030
28031 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28032
28033 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28034 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28035 exports.
28036 * include/grub/sparc64/libgcc.h: Likewise. Use
28037 preprocessor conditionals.
28038
e9d66f6d 280392009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28040
28041 * conf/common.rmk (grub-dumpbios): Remove rule.
28042 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28043 * util/grub-dumpbios.in: Remove file.
28044
9155bc17 280452009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28046
28047 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28048 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28049
28050 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28051 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28052 users.
28053
28054 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28055 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28056 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28057 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28058 users.
28059
bf7f7a18 280602009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28061
28062 * term/tparm.c: Switch to GPLv3.
28063
86564c26 280642009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28065
28066 * include/grub/i386/cpuid.h: Add header protection.
28067
5c936493 280682009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28069
28070 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28071
28072 * include/grub/i386/cpuid.h: New file.
28073 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28074 (has_longmode): Rename to ...
28075 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28076 `static' attribute.
28077 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28078 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28079 on a CPU that doesn't implement AMD64 instruction set.
28080
186e7cf2 280812009-10-06 Colin Watson <cjwatson@ubuntu.com>
28082
28083 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28084 that version.texi is rebuilt on version number changes.
28085
83b65c4a 280862009-10-06 Colin Watson <cjwatson@ubuntu.com>
28087
28088 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28089 Fixes bug #27602.
28090
d244281c 280912009-10-06 Colin Watson <cjwatson@ubuntu.com>
28092
28093 * util/i386/pc/grub-install.in: Source
28094 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28095 that the --grub-probe option will work.
28096 * util/sparc64/ieee1275/grub-install.in: Likewise.
28097
da25306d 280982009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28099
28100 * configure.ac: Bump version to 1.97~beta4.
28101
e8ee83c0 281022009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28103
28104 Resync grub-mkdevicemap in x86_64-efi.
28105
28106 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28107 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28108 `util/devicemap.c'.
28109
50dcabcf 281102009-10-01 Colin Watson <cjwatson@ubuntu.com>
28111
28112 * util/grub-editenv.c (create_envblk_file): Write new block with a
28113 .new suffix and then rename it into place, to ensure atomic
28114 creation.
28115
0e51c3a7 281162009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28117
28118 Do not automatically install headers.
28119
28120 * Makefile.in (include_DATA): Remove. Update all users.
28121
31299a95 281222009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28123
28124 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28125 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28126
28127 * util/osdetect.lua: Remove.
28128 * script/lua/lauxlib.c: Likewise.
28129 * script/lua/ldebug.c: Likewise.
28130 * script/lua/grub_main.c: Likewise.
28131 * script/lua/lauxlib.h: Likewise.
28132 * script/lua/ldebug.h: Likewise.
28133 * script/lua/ltablib.c: Likewise.
28134 * script/lua/liolib.c: Likewise.
28135 * script/lua/lstrlib.c: Likewise.
28136 * script/lua/lualib.h: Likewise.
28137 * script/lua/ldo.c: Likewise.
28138 * script/lua/ldump.c: Likewise.
28139 * script/lua/ldo.h: Likewise.
28140 * script/lua/loslib.c: Likewise.
28141 * script/lua/lundump.c: Likewise.
28142 * script/lua/grub_lib.c: Likewise.
28143 * script/lua/ldblib.c: Likewise.
28144 * script/lua/lundump.h: Likewise.
28145 * script/lua/lmem.c: Likewise.
28146 * script/lua/grub_lib.h: Likewise.
28147 * script/lua/lmathlib.c: Likewise.
28148 * script/lua/lstate.c: Likewise.
28149 * script/lua/ltm.c: Likewise.
28150 * script/lua/lvm.c: Likewise.
28151 * script/lua/lmem.h: Likewise.
28152 * script/lua/lstate.h: Likewise.
28153 * script/lua/ltm.h: Likewise.
28154 * script/lua/ltable.c: Likewise.
28155 * script/lua/lvm.h: Likewise.
28156 * script/lua/llex.c: Likewise.
28157 * script/lua/lgc.c: Likewise.
28158 * script/lua/grub_lua.h: Likewise.
28159 * script/lua/loadlib.c: Likewise.
28160 * script/lua/lfunc.c: Likewise.
28161 * script/lua/lopcodes.c: Likewise.
28162 * script/lua/lparser.c: Likewise.
28163 * script/lua/ltable.h: Likewise.
28164 * script/lua/llex.h: Likewise.
28165 * script/lua/lgc.h: Likewise.
28166 * script/lua/lfunc.h: Likewise.
28167 * script/lua/lbaselib.c: Likewise.
28168 * script/lua/lopcodes.h: Likewise.
28169 * script/lua/lparser.h: Likewise.
28170 * script/lua/lzio.c: Likewise.
28171 * script/lua/linit.c: Likewise.
28172 * script/lua/lobject.c: Likewise.
28173 * script/lua/llimits.h: Likewise.
28174 * script/lua/lstring.c: Likewise.
28175 * script/lua/lzio.h: Likewise.
28176 * script/lua/lapi.c: Likewise.
28177 * script/lua/lcode.c: Likewise.
28178 * script/lua/lua.h: Likewise.
28179 * script/lua/lobject.h: Likewise.
28180 * script/lua/lstring.h: Likewise.
28181 * script/lua/lapi.h: Likewise.
28182 * script/lua/lcode.h: Likewise.
28183 * script/lua/luaconf.h: Likewise.
28184
cb8a2c38 281852009-09-26 Colin Watson <cjwatson@ubuntu.com>
28186
28187 * docs/grub.texi (Command-line and menu entry commands): Document
28188 date and echo commands.
28189
6b9b6276 281902009-09-24 Pavel Roskin <proski@gnu.org>
28191
28192 * include/grub/kernel.h (struct grub_module_header): Remove
28193 `grub_module_header_types'. Make `type' unsigned. Make `size'
28194 32-bit on all platforms.
28195 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28196 8-bit field. Use grub_host_to_target32() for `size'.
28197 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28198 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28199 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28200
4e5a02a7 282012009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28202
28203 Fix "lost keypress" bug in at_keyboard.
28204
28205 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28206 Checks for readyness of input buffer (without flushing it).
28207 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28208 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28209
c6dcedf6 282102009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28211
28212 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28213 size check within GRUB_MACHINE_PCBIOS section.
28214
74c958b1 282152009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28216
28217 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28218 return value.
28219 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28220 KEYBOARD_ISREADY check.
28221 (grub_at_keyboard_checkkey): Rename to ...
28222 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28223 Remove gratuitous cast.
28224
ff420223 282252009-09-23 Colin Watson <cjwatson@ubuntu.com>
28226
28227 * configure.ac: Call AC_PROG_MKDIR_P.
28228 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28229 version.texi in $(builddir) rather than $(srcdir).
28230 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28231 to makeinfo's @include search path.
28232
d96875df 282332009-09-23 Felix Zielcke <fzielcke@z-51.de>
28234
28235 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28236
9b3f8365 282372009-09-23 Felix Zielcke <fzielcke@z-51.de>
28238
28239 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28240 for `*.dpkg-new'.
28241
c44c90db 282422009-09-21 Colin Watson <cjwatson@ubuntu.com>
28243
28244 Build info documentation. Some code borrowed from Automake.
28245
28246 * configure.ac: Check for makeinfo.
28247 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28248 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28249 docs/version.texi.
28250 (MOSTLYCLEANFILES): Add vti.tmp.
28251 (docs/version.texi, docs/stamp-vti): Update automatically.
28252 (docs/grub.info): Build info documentation. Use --force and ignore
28253 errors for now.
28254 (all-local): Add $(INFOS).
28255 (install-local): Install info files.
28256 (uninstall): Uninstall info files.
28257 * docs/version.texi: Remove from revision control. This file is
28258 automatically generated on build now.
28259 * gendistlist.sh: Add `*.info'.
28260
e0b37bb5 282612009-09-21 Felix Zielcke <fzielcke@z-51.de>
28262
28263 * kern/term.c: Fix indentation.
28264
5a78865b 282652009-09-21 Felix Zielcke <fzielcke@z-51.de>
28266
28267 * util/hostdisk.c: Fix a comment.
28268
dace7e8a 282692009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28270
28271 Fix regression introduced in r2539.
28272
28273 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28274 to 0xA1.
28275
a83d079b 282762009-09-19 Colin Watson <cjwatson@ubuntu.com>
28277
28278 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 28279 os-prober. Under normal operation, it does not print anything to
28280 stderr; if it does, we need to debug it, and throwing away stderr
28281 makes that excessively difficult.
a83d079b 28282
be94a509 282832009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28284
28285 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28286
63f745e8 282872009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28288
28289 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28290 AC_LANG_PROGRAM from autoconf.
28291 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28292 prototypes (fixes warning).
28293
28294 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28295 `--disable-werror' was used.
28296
bbb2a70f 282972009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28298
28299 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28300 uninitialized `lastaddr'.
28301
77c24f1d 283022009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28303
0f0b8c87 28304 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 28305
07197f23 283062009-09-14 Colin Watson <cjwatson@ubuntu.com>
28307
28308 * commands/test.c (get_fileinfo): Return immediately if
28309 grub_fs_probe fails.
28310
dabf1798 283112009-09-14 José Martínez <xosemp@gmail.com>
28312
28313 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28314
d52109a7 283152009-09-14 Colin Watson <cjwatson@ubuntu.com>
28316
28317 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28318 output.
28319
56532179 283202009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28321
28322 * configure.ac: Remove --enable-grub-pe2elf. Only build
28323 grub-pe2elf when needed by the build system itself.
28324 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28325
8ef070f5 283262009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28327
28328 * configure.ac: Bump version to 1.97~beta3.
28329 * docs/version.texi: Likewise.
28330
61229557 283312009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28332
28333 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28334 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28335 from here ...
28336 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28337 (grub_linux_setup_video): ... to here (with some adjustments).
28338
5c9f8d84 283392009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28340
28341 Fix memory corruption issue (spotted by Colin Watson).
28342
28343 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28344 causing returned size to be stored in an incorrect memory location.
28345 Fix use of uninitialized value when storing the returned size.
28346
e8f5d6e9 283472009-09-12 Yves Blusseau <blusseau@zetam.org>
28348
28349 Change clean rules to properly remove files
28350
28351 * genmk.rb: add new clean rules
28352 * Makefile.in (clean): add the new targets
28353 (mostlyclean): likewise
28354
cda2a409 283552009-09-11 Colin Watson <cjwatson@ubuntu.com>
28356
28357 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28358 to grub_uint64_t.
28359 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28360 non-resident files.
28361
86695375 283622009-09-11 Colin Watson <cjwatson@ubuntu.com>
28363
28364 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28365 part of bug #27349.
28366
8aa1541a 283672009-09-10 Felix Zielcke <fzielcke@z-51.de>
28368
28369 * util/grub-mkconfig.in: Make the created config mode 400 and
28370 print a warning if it fails.
28371
48d9bb0a 283722009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28373
28374 * util/grub.d/40_custom.in: Ask user to type custom entries below
28375 comment, rather than below 'exec tail' line.
28376
3b0521be 283772009-09-10 Colin Watson <cjwatson@ubuntu.com>
28378
28379 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28380 visible in grub.cfg.
28381
50051d55 283822009-09-10 Colin Watson <cjwatson@ubuntu.com>
28383
28384 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28385 file.
28386
c0d34387 283872009-09-10 Felix Zielcke <fzielcke@z-51.de>
28388
28389 * docs/grub.cfg: Add an example menu entry for memtest86+.
28390
80a608f3 283912009-09-09 Felix Zielcke <fzielcke@z-51.de>
28392
a2094832 28393 * config.guess: Update to latest version from config git.
80a608f3 28394 * config.sub: Likewise.
28395
99423078 283962009-09-08 Colin Watson <cjwatson@ubuntu.com>
28397
28398 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28399 unknown-command case. Fixes bug #27320.
28400
44454e4c 284012009-09-08 Felix Zielcke <fzielcke@z-51.de>
28402
28403 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28404 `help' if the command exists.
28405
e30d87ad 284062009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28407
28408 * INSTALL: Require GCC 4.1.3 or later.
28409
9a86f1ec 284102009-09-06 Yves Blusseau <blusseau@zetam.org>
28411
28412 * Makefile.in (RMKFILES): add i386-qemu.rmk
28413 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28414 $(srcdir)/stamp-h.in
28415
7f26d466 284162009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28417
28418 * util/grub-probe.c (probe): Comment out buggy codepath, which
28419 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28420 should be re-enabled after 1.97.
28421
3a613259 284222009-09-05 Felix Zielcke <fzielcke@z-51.de>
28423
28424 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28425 find searches for.
28426
197f76c7 284272009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28428
28429 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28430 unnecessary calls to grub_error.
28431
70ba68ce 284322009-09-04 Colin Watson <cjwatson@ubuntu.com>
28433
28434 * NEWS: Mention `keystatus' and Unicode fonts.
28435
4ff0d7a4 284362009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28437
28438 * configure.ac: Bump version to 1.97~beta2.
28439 * docs/version.texi: Likewise.
28440
77c55a87 284412009-09-03 Colin Watson <cjwatson@ubuntu.com>
28442
28443 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28444 containing unwind information in some cases where it previously did
28445 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28446 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28447 discussion.
28448
f79572cd 284492009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28450
28451 Embedding loadenv module into grub-emu
28452
28453 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28454 commands/loadenv.c
28455 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28456 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28457 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28458 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28459 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28460 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28461
93a81088 284622009-09-03 Magnus Granberg <zorry@ume.nu>
28463
28464 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28465 include -fPIE in the default specs.
28466 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28467 to TARGET_CFLAGS.
28468
160034b2 284692009-09-03 Felix Zielcke <fzielcke@z-51.de>
28470
28471 * INSTALL: Note that GNU Bison 2.3 or later is required.
28472
087c07c4 284732009-09-03 Colin Watson <cjwatson@ubuntu.com>
28474
28475 * kern/i386/pc/startup.S: Fix typo.
28476
cbf978c0 284772009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28478
28479 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28480 according to GCS.
28481
284822009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 28483
28484 * docs/grub.texi (Naming convention): Describe one-based partition
28485 numbering.
28486 (Device syntax): Likewise.
28487 (File name syntax): Likewise.
28488 (Block list syntax): Likewise.
28489 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28490 menu.lst.
28491 (File name syntax): Likewise.
28492 (Command-line and menu entry commands): Document acpi, blocklist,
28493 crc, export, insmod, keystatus, ls, set, and unset commands.
28494
f3e8cdfd 284952009-09-02 Colin Watson <cjwatson@ubuntu.com>
28496
28497 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28498 to avoid implying that only one of --shift, --ctrl, or --alt may be
28499 used.
28500
c0bc232b 285012009-09-02 Colin Watson <cjwatson@ubuntu.com>
28502
28503 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28504 rather than comparing against S_IFREG, which will almost never work.
28505
aa0f752d 285062009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28507
28508 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28509 (write_blocklists): Likewise.
28510
ecb3166a 285112009-09-01 Colin Watson <cjwatson@ubuntu.com>
28512
28513 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28514 argument to grub_printf.
28515
c403a125 285162009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 28517
28518 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 28519 non GNU test.
31aba781 28520
b5e7312c 285212009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28522
28523 * kern/file.c (grub_file_read): Spelling fix
28524
fe00f472 285252009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28526
28527 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28528 loading of headers in some cases.
28529
cc55302e 285302009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28531
28532 * configure.ac: Bump version to 1.97~beta1.
28533 * docs/version.texi: Likewise.
28534
5c90cdd2 285352009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 28536
28537 * include/grub/i386/xnu.h: Add license header.
28538 include grub/err.h explicitly.
28539
c90edae4 285402009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28541
28542 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28543 to `ufs' in the vfs.root.mountfrom kernel parameter.
28544
d8888b5c 285452009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28546
28547 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28548
28549 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28550 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28551
28552 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28553 `ARRAY_SIZE' macro.
28554
6f07b921 285552009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28556
28557 * kern/file.c (grub_file_read): Check offset.
28558 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28559 * fs/jfs.c (grub_jfs_read_file): Likewise.
28560 * fs/ntfs.c (grub_ntfs_read): Likewise.
28561 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28562 * fs/minix.c (grub_minix_read_file): Correct offset check.
28563 * fs/ufs.c (grub_ufs_read_file): Likewise.
28564
b4f34077 285652009-08-28 Colin Watson <cjwatson@ubuntu.com>
28566
28567 * term/i386/pc/console.c (bios_data_area): Cast
28568 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28569
e7c69859 285702009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28571
28572 1-bit optimised blitters.
28573
28574 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28575 prototype.
28576 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28577 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28578 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28579 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28580 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28581 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28582 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28583 function.
28584 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28585 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28586 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28587 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28588 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28589 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28590 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28591 when possible.
28592 * video/video.c (grub_video_get_blit_format): Return
28593 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28594
a57da43f 285952009-08-28 Colin Watson <cjwatson@ubuntu.com>
28596
28597 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28598 the first argument to grub_printf.
28599
4cbe67e5 286002009-08-28 Colin Watson <cjwatson@ubuntu.com>
286012009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28602
28603 Add `getkeystatus' terminal method. Add a new `keystatus' command
28604 to query it.
28605
28606 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28607 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28608 modifier key bitmasks.
28609 (struct grub_term_input): Add `getkeystatus' member.
28610 (grub_getkeystatus): Add prototype.
28611 * kern/term.c (grub_getkeystatus): New function.
28612
28613 * include/grub/i386/pc/memory.h
28614 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28615 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28616 Data Area layout.
28617 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28618 (grub_console_term_input): Set `getkeystatus' member.
28619 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28620 constants.
28621 (grub_usb_keyboard_getreport): Likewise.
28622 (grub_usb_keyboard_checkkey): Likewise.
28623 (grub_usb_keyboard_getkeystatus): New function.
28624 (grub_usb_keyboard_term): Set `getkeystatus' member.
28625
28626 * commands/keystatus.c: New file.
28627 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28628 (keystatus_mod_SOURCES): New variable.
28629 (keystatus_mod_CFLAGS): Likewise.
28630 (keystatus_mod_LDFLAGS): Likewise.
28631 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28632 commands/keystatus.c.
28633 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28634 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28635 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28636 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28637 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28638 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 28639
6e2a9085 286402009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28641
28642 Split befs.mod and afs.mod into *_be.mod and *.mod
28643
28644 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28645 (grub_fstest_SOURCES): Likewise.
28646 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28647 (afs_be_mod_SOURCES): New variable.
28648 (afs_be_mod_CFLAGS): Likewise.
28649 (afs_be_mod_LDFLAGS): Likewise.
28650 (befs_be_mod_SOURCES): Likewise.
28651 (befs_be_mod_CFLAGS): Likewise.
28652 (befs_be_mod_LDFLAGS): Likewise.
28653 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28654 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28655 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28656 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28657 (grub_emu_SOURCES): Likewise.
28658 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28659 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28660 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28661 * fs/afs_be.c: New file.
28662 * fs/befs_be.c: New file.
28663 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28664 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28665 (U16): Replaced with ...
28666 (grub_afs_to_cpu16): ...this. All users updated.
28667 (U32): Replaced with ...
28668 (grub_afs_to_cpu32): ...this. All users updated.
28669 (U64): Replaced with ...
28670 (grub_afs_to_cpu64): ...this. All users updated.
28671 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28672 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 28673 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 28674 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28675 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28676 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28677 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28678 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28679 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28680 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28681 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28682
32a71655 286832009-08-26 Bean <bean123ch@gmail.com>
28684
28685 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28686 64-bit number.
28687 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28688 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28689 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28690
552bf6c5 286912009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28692
28693 NetBSD memory map support.
28694
28695 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28696 (grub_netbsd_btinfo_mmap_header): New structure.
28697 (grub_netbsd_btinfo_mmap_entry): Likewise.
28698 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28699
1ae2078c 287002009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28701
28702 Enable bsd.mod on coreboot.
28703
28704 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28705 (bsd_mod_SOURCES): New variable.
28706 (bsd_mod_CFLAGS): Likewise.
28707 (bsd_mod_LDFLAGS): Likewise.
28708 (bsd_mod_ASFLAGS): Likewise.
28709 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28710 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28711
beefc598 287122009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28713
28714 Cleanup NetBSD root support.
28715
28716 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28717 grub_bsd_get_device.
28718 Fix typo.
28719
3b76e68b 287202009-08-25 Felix Zielcke <fzielcke@z-51.de>
28721
28722 * util/grub.d/00_header.in: Move check for the video backend of
28723 gfxterm from here ...
28724 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28725 a suitable video backend.
28726
aea664ea 287272009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28728
28729 Fix breakage in grub-setup.
28730
28731 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28732 "msdos_partition_map".
28733
ff747d50 287342009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28735
28736 Fix breakage in normal/auth.c.
28737
28738 * normal/auth.c (grub_iswordseparator): New function.
28739
e7e1f93f 287402009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28741
28742 Authentication support.
28743
28744 * commands/password.c: New file.
28745 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28746 (password_mod_SOURCES): New variable.
28747 (password_mod_CFLAGS): Likewise.
28748 (password_mod_LDFLAGS): Likewise.
28749 (normal_mod_SOURCES): Add normal/auth.c.
28750 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28751 normal/auth.c.
28752 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28753 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28754 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28755 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28756 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28757 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28758 * include/grub/auth.h: New file.
28759 * include/grub/err.h (grub_err_t): New enum value
28760 GRUB_ERR_ACCESS_DENIED.
28761 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28762 'users'.
28763 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28764 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28765 users updated.
28766 * normal/auth.c: New file.
28767 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28768 (grub_cmdline_run): Don't allow to go to command line without
28769 authentication.
28770 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28771 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28772 menuentry without superuser rights.
28773 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28774 user isn't a superuser.
28775
70f1161d 287762009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28777
28778 Save space by inlining misc.c functions.
28779
28780 * kern/misc.c (grub_iswordseparator): Made static.
28781 * kern/misc.c (grub_strcat): Moved from here ...
28782 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28783 * kern/misc.c (grub_strncat): Moved from here ...
28784 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28785 * kern/misc.c (grub_strcasecmp): Moved from here ...
28786 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28787 * kern/misc.c (grub_strncasecmp): Moved from here ...
28788 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28789 * kern/misc.c (grub_isalpha): Moved from here ...
28790 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28791 * kern/misc.c (grub_isdigit): Moved from here ...
28792 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28793 * kern/misc.c (grub_isgraph): Moved from here ...
28794 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28795 * kern/misc.c (grub_tolower): Moved from here ...
28796 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28797
48e40bff 287982009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28799
28800 * script/sh/function.c (grub_script_function_find): Cut error message
28801 not to flood terminal.
28802 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28803 limit.
28804 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28805
c385bfc3 288062009-08-24 Colin Watson <cjwatson@ubuntu.com>
28807
28808 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28809 `report' grub_uint8_t *.
28810 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28811 Use a 50-millisecond timeout rather than just repeating
28812 grub_usb_keyboard_getreport 50 times.
28813 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28814
2d21e3e8 288152009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28816
28817 Rename *_partition_map to part_*
28818
28819 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28820 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28821 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28822 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28823 All users updated.
28824 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28825 All users updated.
28826 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28827 * util/grub-probe.c (probe_partmap): Don't transform partition name
28828 to get module name.
28829
dd103c4e 288302009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28831
28832 Fix OpenBSD and NetBSD support.
28833
28834 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28835 memory address conflict.
28836 (OPENBSD_MMAP_ACPI): New definition.
28837 (OPENBSD_MMAP_NVS): Likewise.
28838 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28839 and OPENBSD_MMAP_NVS.
28840 Add memory map terminator
28841 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 28842 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 28843
16c84d74 288442009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28845
28846 Let user specify NetBSD root device.
28847
28848 * loader/i386/bsd.c (netbsd_root): New variable.
28849 (netbsd_opts): New option 'root'.
28850 (NETBSD_ROOT_ARG): New macro.
28851 (grub_netbsd_boot): Use 'netbsd_root'.
28852 (grub_bsd_unload): Free 'netbsd_root'.
28853 (grub_cmd_netbsd): Fill 'netbsd_root'.
28854
adb29902 288552009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28856
28857 Support for 64-bit NetBSD.
28858
28859 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28860 point when booting non-FreeBSD.
28861
f5ae9f74 288622009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28863
28864 Support --no-smp and --no-acpi for NetBSD.
28865
28866 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28867 (NETBSD_AB_NOACPI): Likewise.
28868 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28869 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28870
de74f136 288712009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28872
28873 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28874 errors.
28875 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28876 errors. Call grub_error when needed.
28877
e9a925da 288782009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28879
28880 * commands/search.c (search_fs): Try searching without autoload first.
28881 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28882 filesystem module explicitly for faster booting.
28883
5174302b 288842009-08-23 Colin Watson <cjwatson@ubuntu.com>
28885
28886 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28887
c8c80635 288882009-08-23 Colin Watson <cjwatson@ubuntu.com>
28889
28890 * util/grub.d/30_os-prober.in: Disable os-prober if
28891 `GRUB_DISABLE_OS_PROBER' was set to true.
28892
71acf5e5 288932009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28894
28895 * partmap/pc.c: Rename to ...
28896 * partmap/msdos.c: ... this. Update all users.
28897 (grub_pc_partition_map): Rename to ...
28898 (grub_msdos_partition_map): ... this. Update all users.
28899
28900 * parttool/pcpart.c: Rename to ...
28901 * parttool/msdospart.c: ... this. Update all users.
28902
28903 * include/grub/pc_partition.h: Rename to ...
28904 * include/grub/msdos_partition.h: ... this. Update all users.
28905 (grub_pc_partition_bsd_entry): Rename to ...
28906 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28907 (grub_pc_partition_disk_label): Rename to ...
28908 (grub_msdos_partition_disk_label): ... this. Update all users.
28909 (grub_pc_partition_entry): Rename to ...
28910 (grub_msdos_partition_entry): ... this. Update all users.
28911 (grub_pc_partition_mbr): Rename to ...
28912 (grub_msdos_partition_mbr): ... this. Update all users.
28913 (grub_pc_partition): Rename to ...
28914 (grub_msdos_partition): ... this. Update all users.
28915 (grub_pc_partition_is_empty): Rename to ...
28916 (grub_msdos_partition_is_empty): ... this. Update all users.
28917 (grub_pc_partition_is_extended): Rename to ...
28918 (grub_msdos_partition_is_extended): ... this. Update all users.
28919 (grub_pc_partition_is_bsd): Rename to ...
28920 (grub_msdos_partition_is_bsd): ... this. Update all users.
28921
28922 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28923 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28924 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28925 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28926 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28927 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28928 (gpt_mod_LDFLAGS): Rename to ...
28929 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28930 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28931 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28932 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28933 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28934 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28935 (part_gpt_mod_LDFLAGS): ... this.
28936 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28937 `pcpart.mod' to `msdospart.mod'.
28938 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28939 to ...
28940 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28941 (msdospart_mod_LDFLAGS): ... this.
28942
c11fded5 289432009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28944
28945 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28946 (openbsd_opts): Likewise.
28947 (netbsd_opts): Likewise.
28948 (freebsd_flags): Added 0 terminator.
28949 (openbsd_flags): Likewise.
28950 (netbsd_flags): Likewise.
28951 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28952 (grub_cmd_freebsd): Transformed into extended command.
28953 (grub_cmd_openbsd): Likewise.
28954 (grub_cmd_netbsd): Likewise.
28955 (cmd_freebsd): Changed type to grub_extcmd_t.
28956 (cmd_openbsd): Likewise.
28957 (cmd_netbsd): Likewise.
28958 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28959 grub_cmd_openbsd as extended commands.
28960 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28961 cmd_netbsd and cmd_openbsd
28962
11d1c769 289632009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28964
28965 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28966
7a9094e5 289672009-08-21 Pavel Roskin <proski@gnu.org>
28968
5496c37e 28969 * Makefile.in (install-local): When checking if a file is in the
28970 build directory, use "test -e" to detect symlinks.
28971
7a9094e5 28972 * Makefile.in (install-local): Remove all files in
28973 $(DESTDIR)$(pkglibdir) before installing new files there.
28974
e53cea11 289752009-08-18 Felix Zielcke <fzielcke@z-51.de>
28976
28977 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28978 grub-mkelfimage.
28979
9aced544 289802009-08-18 Felix Zielcke <fzielcke@z-51.de>
28981
28982 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28983 explicitly specified by the user.
28984
b7da6bab 289852009-08-18 Pavel Roskin <proski@gnu.org>
28986
28987 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28988 grub_uint8_t pointer for data.
28989 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28990 Likewise.
28991 * video/fb/fbutil.c: Remove unnecessary casts.
28992
19f1b335 289932009-08-17 Michal Suchanek <hramrach@centrum.cz>
28994
28995 VBE cleanup.
28996
28997 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28998 (grub_vbe_set_video_mode): Save active mode info
28999 only after setting the mode.
29000 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29001 second argument.
29002
2f467aa9 290032009-08-17 Michal Suchanek <hramrach@centrum.cz>
29004
29005 Rename variables for clarity.
29006
29007 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29008 (active_vbe_mode_info): ... this. All users updated.
29009 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29010 All users updated.
29011 (initial_mode): Rename to ...
29012 (initial_vbe_mode): ... this. All users updated.
29013 (mode_in_use): Rename to ..
29014 (vbe_mode_in_use): ... this. All users updated.
29015 (mode_list): Rename to ..
29016 (vbe_mode_list): ... this. All users updated.
29017 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29018 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29019 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29020 'mode_list_size' to 'vbe_mode_list_size'.
29021 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29022 'best_mode_info' to 'best_vbe_mode_info' and
29023 'best_mode' to 'best_vbe_mode'
29024
6025fcd7 290252009-08-17 Michal Suchanek <hramrach@centrum.cz>
29026
29027 Remove duplicate grub_video_fb_get_video_ptr.
29028
29029 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29030 (grub_video_fb_get_video_ptr): ... this.
29031 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29032 * video/fb/fbutil.c: Add comment about addressing.
29033 (get_data_ptr): Rename to ...
29034 (grub_video_fb_get_video_ptr): ... this. All users updated.
29035 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29036
cc8c6faf 290372009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29038
29039 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29040 grub_dprintf() that was just added.
29041
08aa61f0 290422009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29043
29044 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29045 (DEFAULT_VIDEO_MODE): Remove macros.
29046 (grub_linux_boot): Remove assumption that Linux has FB support,
29047 and use "text" as default video mode.
29048
7cef4f75 290492009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29050
29051 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29052 grub_dprintf.
29053 * fs/fat.c (grub_fat_read_data): Likewise.
29054
e1f39873 290552009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29056
29057 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29058 payload.
29059 (grub_module): Likewise.
29060
c166d79e 290612009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29062
29063 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29064 mbi->cmdline but free playground.
29065
c60cee8e 290662009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29067
29068 Handle group offset on UFS1.
29069
29070 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29071 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29072
c0d8b5d4 290732009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29074
29075 Split ufs.mod into ufs1.mod and ufs2.mod.
29076
29077 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29078 (grub_fstest_SOURCES): Likewise.
29079 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29080 (ufs_mod_SOURCES): Remove.
29081 (ufs_mod_CFLAGS): Likewise.
29082 (ufs_mod_LDFLAGS): Likewise.
29083 (ufs1_mod_SOURCES): New variable.
29084 (ufs1_mod_CFLAGS): Likewise.
29085 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 29086 (ufs2_mod_SOURCES): New variable.
29087 (ufs2_mod_CFLAGS): Likewise.
29088 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 29089 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29090 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29091 Likewise.
29092 (grub_emu_SOURCES): Likewise.
29093 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29094 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29095 (grub_setup_SOURCES): Likewise.
29096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29097 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29098 (grub_setup_SOURCES): Likewise.
29099 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29100 Likewise.
29101 * fs/ufs2.c: New file.
29102 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29103
d3539132 291042009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29105
29106 Framebuffer split.
29107
29108 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29109 subsystem at the end.
29110 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29111 (video_fb_mod_SOURCES): New variable.
29112 (video_fb_mod_CFLAGS): Likewise.
29113 (video_fb_mod_LDFLAGS): Likewise.
29114 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29115 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29116 * video/i386/pc/vbeblit.c: Moved from here ...
29117 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29118 * video/i386/pc/vbefill.c: Moved from here ...
29119 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29120 * video/i386/pc/vbeutil.c: Moved from here ...
29121 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29122 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29123 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29124 * include/grub/i386/pc/vbefill.h: Moved from here ...
29125 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29126 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29127 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29128 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29129 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29130 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29131 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29132 (grub_video_adapter): Added 'get_info_and_fini'.
29133 (grub_video_get_info_and_fini): New prototype.
29134 (grub_video_set_mode): make modestring const char *.
29135 * loader/i386/linux.c (grub_linux_setup_video): Use
29136 grub_video_get_info_and_fini.
29137 (grub_linux_boot): Move modesetting just before booting.
29138 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29139 grub_video_get_info_and_fini.
29140 * video/i386/pc/vbe.c: Moved framebuffer part ...
29141 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29142 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29143 grub_video_fbstd_colors and grub_video_fb_set_palette.
29144 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29145 grub_video_fb_init.
29146 (grub_video_vbe_fini): Use grub_video_fb_fini.
29147 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29148 render_target and use grub_video_fb_set_active_render_target and
29149 grub_video_fb_set_palette.
29150 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29151 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29152 (grub_video_vbe_adapter): Use framebuffer.
29153 * video/video.c (grub_video_get_info_and_fini): New function.
29154 (grub_video_set_mode): Make modestring const char *.
29155 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29156 values are already initialised.
29157
d404ee56 291582009-08-14 Pavel Roskin <proski@gnu.org>
29159
29160 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29161 ABS and APPLE_CC.
29162 * boot/i386/pc/diskboot.S: Likewise.
29163 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29164 sectors allow compilation on MacOSX.
29165 * conf/i386-pc.rmk: Enable unconditional compilation of
29166 lnxboot.img.
29167
9a10df16 291682009-08-13 Colin Watson <cjwatson@ubuntu.com>
29169
29170 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29171 * util/grub.d/00_header.in: Enter interruptible sleep if
29172 GRUB_HIDDEN_TIMEOUT is set.
29173
be3c9ca7 291742009-08-13 Yves Blusseau <blusseau@zetam.org>
29175
29176 * include/grub/symbol.h: Add the LOCAL macro.
29177 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29178 starting with "L_".
29179
1f9e557e 291802009-08-13 Pavel Roskin <proski@gnu.org>
29181
9ca62843 29182 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29183 any modern compilers we support.
29184
1f9e557e 29185 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29186 Use local labels starting with "L_" so that Apple assembler
29187 knows they are local.
29188
81623db6 291892009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29190
29191 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29192 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29193 (bsd_kernel_types): ... this enum.
29194
29195 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29196 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29197 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29198
29199 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29200 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29201 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29202 messages.
29203
f5d35e7a 292042009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29205
29206 * util/grub-dumpdevtree: Moved from here ...
29207 * util/i386/efi/grub-dumpdevtree: ... to here.
29208 (hexify): New function. Converts a string to its hex version.
29209 Generate hex versions of "efi" and "device-properties" by calling
29210 hexify() on the ASCII strings rather than by hardcoding numbers.
29211
d1e1d527 292122009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29213
29214 * fs/jfs.c: Update copyright year.
29215
1ebbe064 292162009-08-08 Felix Zielcke <fzielcke@z-51.de>
29217
29218 * util/grub.d/00_header.in: Fix a comment.
29219 * util/grub.d/10_linux.in: Likewise.
29220 * util/grub.d/10_windows.in: Likewise.
29221 * util/grub.d/10_hurd.in: Likewise.
29222
a78c8d24 292232009-08-08 Felix Zielcke <fzielcke@z-51.de>
29224
29225 * util/grub-mkconfig.in: Allow the user to specify the used font
29226 with GRUB_FONT.
29227
29a6b9e8 292282009-08-08 Pavel Roskin <proski@gnu.org>
29229
b5f16cc4 29230 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29231 available, xfs.mod needs it now.
29232
2f5cb827 29233 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29234 the "g" modifier in sed when the intention is to strip something
29235 once. This fixes comparison of kernels with multiple dashes.
29236
29a6b9e8 29237 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29238 on it. Add missing space before closing bracket. Fix
29239 misleading formatting.
29240
892a3d98 292412009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29242
29243 * docs/grub.texi: Major overhaul. Remove all sections that are
29244 specific to GRUB Legacy, or mostly composed of Legacy-specific
29245 information.
29246
ed94253f 292472009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29248
29249 * docs/version.texi: New file. Provides version information for
29250 grub.texi.
29251
126d6628 292522009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29253
29254 * docs/grub.texi: Update CVS information to SVN.
29255 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29256
998b5aa9 292572009-08-07 Felix Zielcke <fzielcke@z-51.de>
29258
29259 * util/grub-mkconfig.in: Remove a wrong `fi'.
29260
818e094a 292612009-08-07 Felix Zielcke <fzielcke@z-51.de>
29262
29263 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29264 (grub_jfs_uuid): New function.
29265 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29266
b969c52f 292672009-08-07 Felix Zielcke <fzielcke@z-51.de>
29268
29269 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29270 of it to ...
29271 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29272 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29273
7a4894cc 292742009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29275
29276 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29277 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29278 Update all users.
29279
29280 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29281 not just "vmlinu[zx]".
29282 Moved from here ...
29283 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29284 all users.
29285
29286 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29287 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29288 all users.
29289
4e2171f8 292902009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29291
29292 * util/grub.d/10_freebsd.in: Use an absolute device path for
29293 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29294
6dcfcb32 292952009-08-06 Felix Zielcke <fzielcke@z-51.de>
29296
29297 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29298 handling of multiple abstraction modules.
29299
f56a8756 293002009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29301
29302 Fix a bug resulting in black screen when loading Linux using a
29303 packed video mode.
29304
29305 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29306 function.
29307
29308 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29309 (grub_vbe_bios_getset_dac_palette_width): New function.
29310 (grub_vbe_bios_get_dac_palette_width)
29311 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29312 grub_vbe_bios_getset_dac_palette_width()).
29313
29314 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29315 check for return status.
29316 (grub_vbe_get_video_mode_info): When getting information for a packed
29317 mode (<= 8 bpp), obtain DAC palette width using
29318 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29319 {red,green,blue}_mark_size.
29320
222671b2 293212009-08-04 Felix Zielcke <fzielcke@z-51.de>
29322
ecb1a6d9 29323 * commands/search.c (options): Fix help output to match actual code.
222671b2 29324
f84114f5 293252009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29326
29327 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29328 of homegrown code.
29329
bd288a20 293302009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 29331
29332 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29333 on XFS or ReiserFS.
29334
8aab5e25 293352009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29336
29337 Support Apple partition map with sector size different from 512 bytes.
29338
29339 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29340 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29341 and 'apart.partmap_size'.
29342
6ad6258a 293432009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
293442009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29345
29346 Fix cpuid command.
29347
29348 * commands/i386/cpuid.c (options): New variable.
29349 (grub_cmd_cpuid): Return real error.
29350 (GRUB_MOD_INIT(cpuid)): Declare options.
29351
67459bc6 293522009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29353
29354 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29355 valid.
29356
fbc6ab54 293572009-07-31 Bean <bean123ch@gmail.com>
29358
29359 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29360 log2_inode.
29361 (grub_fshelp_node): Move inode field to the end.
29362 (grub_xfs_data): Remove inode field.
29363 (grub_xfs_inode_block): Calculate inode size using sblock.
29364 (grub_xfs_inode_offset): Likewise.
29365 (grub_xfs_read_inode): Calculate inode size using sblock.
29366 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29367 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29368 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29369 to match inode size.
29370 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29371 not accessible when data is null.
29372 (grub_xfs_open): Likewise.
29373
f45d6cfc 293742009-07-31 Bean <bean123ch@gmail.com>
29375
29376 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29377 Don't change pv->disk if it's already set.
29378
29379 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29380 (grub_raid_register): ... here.
29381 (grub_raid_rescan): Removed.
29382
29383 * include/grub/raid.h (grub_raid_rescan): Removed.
29384
29385 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29386 (fstest): Replace grub_raid_rescan with module fini function followed
29387 by init function.
29388
29389 * util/grub-probe.c: Add include file <grub/raid.h>.
29390 (probe_raid_level): New function.
29391 (probe): Detect abstraction by walking the disk device, support two
29392 level of abstraction (LVM on RAID) when detecting partition map.
29393
24443b5a 293942009-07-31 Pavel Roskin <proski@gnu.org>
29395
29396 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29397 to grub_zalloc(), it was erroneous.
29398 Reported by Bean <bean123ch@gmail.com>
29399
a275d9e7 294002009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29401
29402 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 29403 embedding zone, not only the first one.
a275d9e7 29404
56c5a47f 294052009-07-29 Joe Auricchio <jauricchio@gmail.com>
29406
29407 * term/gfxterm.c (clear_char): New function.
29408 (grub_virtual_screen_setup): Use clear_char.
29409 (scroll_up): Likewise.
29410 (grub_virtual_screen_cls): Likewise.
29411
67bb323a 294122009-07-29 Felix Zielcke <fzielcke@z-51.de>
29413
29414 * util/deviceiter.c (get_acceleraid_disk_name): New static
29415 function.
29416 (grub_util_iterate_devices): Handle Accelraid devices.
29417 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29418
388a7c75 294192009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29420
29421 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29422 separator for the suggested gfxpayload string (';' collides with the
29423 parser and needs escaping).
29424
3bb7abcf 294252009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29426
29427 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29428 Clear direction flag before jumping to OS.
29429 (grub_multiboot2_real_boot): Likewise.
29430
2ddd36d7 294312009-07-28 Felix Zielcke <fzielcke@z-51.de>
29432
29433 * util/i386/pc/grub-install: Fix parsing of --disk-module
29434 option.
29435
c521b62b 294362009-07-28 Felix Zielcke <fzielcke@z-51.de>
29437
29438 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29439 when embedding.
29440
880e0a0c 294412009-07-26 Felix Zielcke <fzielcke@z-51.de>
29442
29443 * util/grub-mkconfig.in (package_version): New variable.
29444 Use it do display the version.
29445
2366e356 294462009-07-25 Felix Zielcke <fzielcke@z-51.de>
29447
29448 * kern/file.c (grub_file_open): Revert to previous check with
29449 grub_errno.
29450
7ad8c80e 294512009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29452
29453 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29454 from help line. It's out of sync with code.
29455
72b9658b 294562009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29457
29458 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29459 entries on failed boot.
29460
77435277 294612009-07-25 Felix Zielcke <fzielcke@z-51.de>
29462
29463 * kern/file.c (grub_file_open): Fix an error check.
29464
fcaa8b21 294652009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29466
35d16c74 29467 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29468 partition map couldn't be identified.
fcaa8b21 29469
48904cd1 294702009-07-23 Pavel Roskin <proski@gnu.org>
29471
ef3c317f 29472 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29473 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29474 case of little endian words becomes just an optimization.
29475 Respect const modifier.
ad8ea1f4 29476 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 29477
48904cd1 29478 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29479 to avoid loss of upper bits if align is unsigned and shorter
29480 than addr.
29481
260c9a89 294822009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29483
29484 UUID support for UFS
29485
29486 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29487 (grub_ufs_uuid): New function.
29488 (grub_ufs_fs): add .uuid
29489
f76ce889 294902009-07-21 Pavel Roskin <proski@gnu.org>
29491
29492 * kern/dl.c (grub_dl_check_header): Make static.
29493
6a6cbcaf 294942009-07-21 Felix Zielcke <fzielcke@z-51.de>
29495
29496 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29497 add drivemap for Vista. It breaks Windows 7.
29498
cffcddb2 294992009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29500
29501 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29502 128 bytes
29503
1ef44b80 295042009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29505
29506 Add BFS support
29507
29508 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29509 (grub_fstest_SOURCES): Likewise.
29510 (pkglib_MODULES): Add befs.mod.
29511 (befs_mod_SOURCES): New variable.
29512 (befs_mod_CFLAGS): Likewise.
29513 (befs_mod_LDFLAGS): Likewise.
29514 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29515 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29516 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29517 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29518 (grub_setup_SOURCES): Likewise.
29519 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29520 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29521 (grub_setup_SOURCES): Likewise.
29522 * fs/befs.c: New file.
29523 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29524 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29525 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29526 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29527 (B_KEY_INDEX_ALIGN): New declaration.
29528 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29529 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29530 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29531 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29532 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29533 (grub_afs_mount) [MODE_BFS]: Likewise.
29534 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29535 (grub_afs_fs): Use GRUB_AFS_FSNAME
29536 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29537 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29538 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29539 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29540
4f253044 295412009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29542
29543 * util/getroot.c (find_root_device): Add support for MacOSX.
29544 * util/hostdisk.c: Likewise.
29545
57a55913 295462009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29547
29548 * font/font.c (find_glyph): Check whether a font is present to avoid
29549 segmentation fault.
75421ca9 29550
295512009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 29552
29553 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29554
e98cd0c2 295552009-07-20 Pavel Roskin <proski@gnu.org>
29556
29557 * configure.ac: Trim excessively wordy excuses.
29558
1d2d169a 295592009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29560
29561 Add symlink, mtime and label support to AtheFS.
29562
29563 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29564 (grub_afs_iterate_dir): Handle symlinks.
29565 (grub_afs_open): Use grub_afs_read_symlink.
29566 (grub_afs_dir): Likewise.
29567 Pass mtime.
29568 (grub_afs_label): New function.
29569 (grub_afs_fs): Add grub_afs_label.
29570 (grub_afs_read_symlink): New function.
29571
186f3189 295722009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29573
29574 Fix AtheFS support.
29575
29576 * fs/afs.c: Fix comments style.
29577 (grub_afs_blockrun): Declare as packed.
29578 (grub_afs_datastream): Likewise.
29579 (grub_afs_bnode): Likewise.
29580 (grub_afs_btree): Likewise.
29581 (grub_afs_sblock): Likewise.
29582 Declare `name' as char.
29583 (grub_afs_inode): Declare as packed.
29584 Change void *vnode to grub_uint32_t unused.
29585 (grub_afs_iterate_dir): Check that key_size is positive.
29586 (grub_afs_mount): Don't read superblock twice.
75421ca9 29587 (grub_afs_dir): Don't free node in case of error,
186f3189 29588 grub_fshelp_find_file already handles this.
29589 (grub_afs_open): Likewise.
29590
5680109e 295912009-07-19 Pavel Roskin <proski@gnu.org>
29592
29593 * Makefile.in: Remove LIBLZO and enable_lzo.
29594 * conf/i386-pc.rmk: Remove lzo support.
29595 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29596 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29597 support.
29598 * kern/i386/pc/lzo1x.S: Remove.
29599 * kern/i386/pc/startup.S: Remove lzo support.
29600 * util/i386/pc/grub-mkimage.c: Likewise.
29601
ac70fa32 296022009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29603
29604 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29605 * fs/xfs.c (grub_xfs_dir): Likewise.
29606 * fs/afs.c (grub_afs_dir): Likewise.
29607 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29608 (grub_iso9660_open): Likewise.
29609 * fs/jfs.c (grub_jfs_open): Likewise.
29610 * fs/ext2.c (grub_ext2_dir): Likewise.
29611 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29612 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 29613
eab58da2 296142009-07-16 Pavel Roskin <proski@gnu.org>
29615
d2838156 29616 * configure.ac: Never add "-c" to CFLAGS.
29617
55c70904 29618 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29619
43e6200c 29620 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29621 grub_cv_cc_efiemu should be used.
29622
ce7a733d 29623 * configure.ac: Typo fixes.
29624
eab58da2 29625 * kern/mm.c (grub_zalloc): New function.
29626 (grub_debug_zalloc): Likewise.
29627 * include/grub/mm.h: Declare grub_zalloc() and
29628 grub_debug_zalloc().
29629 * util/misc.c (grub_zalloc): New function.
29630 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29631 instead of grub_malloc(), remove unneeded initializations.
29632 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29633 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29634 * commands/parttool.c (grub_cmd_parttool): Likewise.
29635 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29636 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29637 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29638 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29639 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29640 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29641 (grub_cmd_efiemu_pnvram): Likewise.
29642 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29643 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29644 (grub_iso9660_iterate_dir): Likewise.
29645 * fs/jfs.c (grub_jfs_opendir): Likewise.
29646 * fs/ntfs.c (list_file): Likewise.
29647 (grub_ntfs_mount): Likewise.
29648 * kern/disk.c (grub_disk_open): Likewise.
29649 * kern/dl.c (grub_dl_load_core): Likewise.
29650 * kern/elf.c (grub_elf_file): Likewise.
29651 * kern/env.c (grub_env_context_open): Likewise.
29652 (grub_env_set): Likewise.
29653 (grub_env_set_data_slot): Likewise.
29654 * kern/file.c (grub_file_open): Likewise.
29655 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29656 * loader/i386/multiboot.c (grub_module): Likewise.
29657 * loader/xnu.c (grub_xnu_create_key): Likewise.
29658 (grub_xnu_create_value): Likewise.
29659 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29660 (read_config_file): Likewise.
29661 * normal/menu_entry.c (make_screen): Likewise.
29662 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29663 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29664 * script/sh/script.c (grub_script_parse): Likewise.
29665 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29666 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29667 * video/readers/png.c (grub_png_output_byte): Likewise.
29668 (grub_video_reader_png): Likewise.
29669
830afef7 296702009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 29671
29672 Enable all targets that can be built by default
29673
830afef7 29674 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 29675 grub-mkfont and grub-fstest if they can be built
29676
ee293aee 296772009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29678
29679 Fix hang and segmentation fault in grub-emu-usb
29680
29681 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29682 * util/usb.c (grub_libusb_devices): likewise
29683 (grub_libusb_init): rename to ...
29684 (GRUB_MOD_INIT (libusb)):...this
29685 (grub_libusb_fini): rename to ..
29686 (GRUB_MOD_FINI (libusb)):...this
29687 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29688 * include/grub/disk.h (grub_raid_init): removed, it's useless
29689 (grub_raid_fini): likewise
29690 (grub_lvm_init): likewise
29691 (grub_lvm_fini): likewise
29692 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29693 by grub_init_all
29694
94414221 296952009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29696
29697 Fix libusb
29698
29699 * Makefile.in (LIBUSB): new macro
29700 * genmk.rb (Utility/print_tail): new method
29701 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29702 (top level): call util.print_tail at the end.
29703
59ade63d 297042009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29705
29706 Make FreeBSD accept zpool.cache
29707
29708 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29709 type is /boot/zfs/zpool.cache
29710
a58da8c7 297112009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29712
29713 Fix 64-bit efiemu
29714
29715 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29716 correct wrong typedef
29717 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29718
20591577 297192009-07-15 Pavel Roskin <proski@gnu.org>
29720
560ca572 29721 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29722 * kern/disk.c (struct grub_disk_cache): Likewise.
29723
e8e8e4fd 29724 * commands/probe.c (options): Typo fix.
29725
fde24e10 29726 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29727 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29728 accordingly.
29729 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29730
379c54c1 29731 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29732 the end of "Error" to make the message more readable.
29733
7bd8f5bf 29734 * boot/i386/pc/boot.S (kernel_segment): Remove.
29735 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29736 for destination.
29737
40b132c5 29738 * boot/i386/pc/boot.S (boot_version): Remove.
29739 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29740 Remove.
29741
20591577 29742 * include/grub/i386/pc/boot.h: Sort all offsets.
29743 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29744 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29745 * boot/i386/pc/boot.S: Assert location of every offset listed in
29746 include/grub/i386/pc/boot.h.
29747
2df32b2c 297482009-07-13 Pavel Roskin <proski@gnu.org>
29749
44b5d879 29750 * include/grub/i386/coreboot/machine.h: Rename
29751 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29752 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29753 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29754
17dc3751 29755 * kern/dl.c: Force native word size to suppress warnings when
29756 compiling grub-emu.
29757
2df32b2c 29758 * kern/device.c (grub_device_iterate): Change struct part_ent to
29759 hold the name, not a pointer to it. Use one grub_malloc() per
29760 partition, not two. Free partition_name if grub_malloc() fails.
29761 Set ents to NULL only before grub_partition_iterate() is called.
29762
75c59f59 297632009-07-11 Bean <bean123ch@gmail.com>
29764
29765 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29766 childname.
29767
0ae1bf88 297682009-07-10 Bean <bean123ch@gmail.com>
297692009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29770
29771 * kern/ieee1275/openfw.c (grub_children_iterate)
29772 (grub_devalias_iterate): Fix size evaluation for property or path
29773 strings, which was broken since r2132.
29774
8279cade 297752009-07-07 Pavel Roskin <proski@gnu.org>
29776
7d8a52d3 29777 * commands/search.c (search_file): Merge into ...
29778 (search_fs): ... this. Accept search type as argument.
29779 (grub_cmd_search): Pass search type to search_fs().
29780
25f9a05a 29781 * include/grub/util/console.h: New file.
29782 * util/console.c: Use it instead of grub/machine/console.h.
29783 * util/grub-emu.c: Likewise.
29784
8279cade 29785 * lib/arg.c (find_long_option): Remove.
29786 (find_long): Add `len' argument, make `s' const char *.
29787 (grub_arg_parse): Parse long options in place, not in a
29788 temporary buffer.
29789
4a11b60f 297902009-07-06 Pavel Roskin <proski@gnu.org>
29791
99f68041 29792 * commands/search.c (search_fs): Fix potential NULL pointer
29793 dereference.
29794
4a11b60f 29795 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29796 function pointer.
29797
e110f4de 297982009-07-06 Daniel Mierswa <impulze@impulze.org>
29799
29800 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29801 comparison.
29802
46eeb6a2 298032009-07-05 Pavel Roskin <proski@gnu.org>
29804
bab74958 29805 * include/grub/i386/linux.h (struct linux_kernel_params):
29806 Restore padding3, it's still needed.
29807
46eeb6a2 29808 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29809 FreeBSD.
29810 * util/osdetect.lua: Likewise.
29811
b4a1dc79 298122009-07-05 Bean <bean123ch@gmail.com>
29813
29814 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29815
29816 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29817 (grub_lua_getenv): Likewise.
29818 (grub_lua_setenv): Likewise.
29819 (save_errno): New function.
29820 (push_result): Likewise.
29821 (grub_lua_enum_device): Likewise.
29822 (grub_lua_enum_file): Likewise.
29823 (grub_lua_file_open): Likewise.
29824 (grub_lua_file_close): Likewise.
29825 (grub_lua_file_seek): Likewise.
29826 (grub_lua_file_read): Likewise.
29827 (grub_lua_file_getline): Likewise.
29828 (grub_lua_file_getsize): Likewise.
29829 (grub_lua_file_getpos): Likewise.
29830 (grub_lua_file_eof): Likewise.
29831 (grub_lua_file_exist): Likewise.
29832 (grub_lua_add_menu): Likewise.
29833
29834 * script/lua/grub_lua.h (isupper): New inline function.
29835 (islower): Likewise.
29836 (ispunct): Likewise.
29837 (isxdigit): Likewise.
29838 (strcspn): Change to normal function.
29839 (strpbkr): New function declaration.
29840 (memchr): Likewise.
29841
29842 * script/lua/grub_main.c (scan_str): New function.
29843 (strcspn): Likewise.
29844 (strpbrk): Likewise.
29845 (memchr): Likewise.
29846
29847 * script/lua/linit.c (lualibs): Enable the string library.
29848
29849 * util/osdetect.lua: New file.
29850
2da92295 298512009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29852
29853 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29854 `capabilities' member.
29855
b2582ec9 298562009-07-02 Pavel Roskin <proski@gnu.org>
29857
29858 * genparttoollist.sh: Add missing newline at the end.
29859
32622956 298602009-07-01 Pavel Roskin <proski@gnu.org>
29861
87a7339e 29862 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29863
d23af54e 29864 * util/hostdisk.c (open_device): Remove `const' from
29865 `sysctl_size', as sysctlbyname() can change it (in this case it
29866 doesn't actually happen).
29867
c94b18a9 29868 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29869 using signed long int constants.
29870
c6cd3ef0 29871 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29872 constant to avoid a warning on FreeBSD.
29873
0df63420 29874 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29875 where it's needed.
29876
999577f1 29877 * Makefile.in: Install include/grub/machine symlink.
29878
6f41557f 29879 * Makefile.in: When installing symlinks, use "cp -fR", which
29880 works on FreeBSD and MacOSX.
29881 From Yves Blusseau <cl7m42e02@sneakemail.com>
29882
c8d22988 29883 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29884 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29885
1b96e952 29886 * util/misc.c: Move grub_reboot() and grub_halt() ...
29887 * util/grub-emu.c: ... here. Make main_env static.
29888 * include/grub/util/misc.h: Remove main_env.
29889
2ef0084d 29890 * kern/mm.c: Use correct format to print size_t.
29891
32622956 29892 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29893 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29894 * kern/powerpc/dl.c: Likewise.
29895 * kern/sparc64/dl.c: Likewise.
29896 * kern/x86_64/dl.c: Likewise.
29897
3f7f0cd0 298982009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29899
29900 Fix grub-emu build on sparc64-ieee1275.
29901
75421ca9 29902 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 29903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29904
211d06b5 299052009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29906
29907 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29908 (grub_reboot, grub_halt): New functions.
29909
29910 * util/i386/pc/misc.c: Delete. Update all users.
29911 * util/sparc64/ieee1275/misc.c: Likewise.
29912 * util/powerpc/ieee1275/misc.c: Likewise.
29913
aaf53e3c 299142009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29915
29916 * conf/i386.rmk (setjmp_mod_SOURCES)
29917 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29918 * conf/common.rmk (setjmp_mod_SOURCES)
29919 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29920 to use $(target_cpu).
29921 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29922 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29923 * conf/powerpc-ieee1275.rmk: Likewise.
29924 * conf/sparc64-ieee1275.rmk: Likewise.
29925
29926 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29927 $(target_cpu) for kern/$(target_cpu)/dl.c.
29928 * conf/i386-efi.rmk: Likewise.
29929 * conf/i386-ieee1275.rmk: Likewise.
29930 * conf/x86_64-efi.rmk: Likewise.
29931 * conf/i386-coreboot.rmk: Likewise.
29932 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29933 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29934 kern/$(target_cpu)/cache.S.
29935 * conf/sparc64-ieee1275.rmk: Likewise.
29936
a337130b 299372009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29938
29939 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29940 type to `grub_uint8_t', and adjust `padding9' accordingly.
29941
c6fe4d53 299422009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29943
b09db61d 29944 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29945
c6fe4d53 29946 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29947 assembly in final jump, using register constraints.
29948
b09db61d 29949 (grub_linux_boot): For text mode, initialize `have_vga' using
29950 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29951
29952 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29953 right before the final jump.
29954
29955 Set `video_mode' to 0x3.
29956
29957 Document initialization of `video_page', `video_mode' and
29958 `video_ega_bx'.
29959
28333ad0 299602009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29961
29962 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29963 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 29964 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 29965
02164e1b 299662009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29967
29968 Fix build on Debian / sparc.
29969
29970 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29971
18b6c557 299722009-06-28 Pavel Roskin <proski@gnu.org>
29973
85f2aab6 29974 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29975 fix a warning.
29976
18b6c557 29977 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29978
ad760f81 299792009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29980
29981 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29982 `err'.
29983
87a4623b 299842009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29985
29986 Revert r2338.
29987
29988 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29989 file can't be opened. grub_file_open() is already supposed to set
75421ca9 29990 grub_errno / grub_errmsg appropriately.
87a4623b 29991 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29992
8231fb77 299932009-06-27 Pavel Roskin <proski@gnu.org>
299942009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29995
29996 * include/grub/dl.h: Include grub/elf.h.
29997 (struct grub_dl): Add symtab field.
29998 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29999 GRUB_MODULES_MACHINE_READONLY.
30000 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30001 of the header for read-only modules.
30002 (grub_dl_unload): Free mod->symtab for read-only modules.
30003 * kern/i386/dl.c: Use mod->symtab.
30004 * kern/powerpc/dl.c: Likewise.
30005 * kern/sparc64/dl.c: Likewise.
30006 * kern/x86_64/dl.c: Likewise.
30007
30008 * conf/i386-qemu.rmk: New file.
30009 * kern/i386/qemu/startup.S: Likewise.
30010 * kern/i386/qemu/mmap.c: Likewise.
30011 * boot/i386/qemu/boot.S: Likewise.
30012 * include/grub/i386/qemu/time.h: Likewise.
30013 * include/grub/i386/qemu/serial.h: Likewise.
30014 * include/grub/i386/qemu/kernel.h: Likewise.
30015 * include/grub/i386/qemu/console.h: Likewise.
30016 * include/grub/i386/qemu/boot.h: Likewise.
30017 * include/grub/i386/qemu/init.h: Likewise.
30018 * include/grub/i386/qemu/machine.h: Likewise.
30019 * include/grub/i386/qemu/loader.h: Likewise.
30020 * include/grub/i386/qemu/memory.h: Likewise.
30021
30022 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30023 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30024 [qemu] (pkglib_IMAGES): Add `boot.img'.
30025 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30026 [qemu] (boot_img_FORMAT): New variables.
30027 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30028 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30029 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30030 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30031 [qemu] (kernel_img_FORMAT): New variables.
30032
30033 * configure.ac: Recognise `i386-qemu'.
30034
30035 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30036 (for no compression).
30037 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30038 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30039 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30040 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30041 ifdefs).
30042
97fe384e 300432009-06-27 Pavel Roskin <proski@gnu.org>
30044
30045 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30046 read.
30047 * efiemu/prepare32.c: Likewise.
30048 * efiemu/prepare64.c: Likewise.
30049
c402ab17 300502009-06-26 Pavel Roskin <proski@gnu.org>
30051
30052 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30053 * include/grub/elf.h: Define symbols without "32" or "64" based
30054 on GRUB_TARGET_WORDSIZE.
30055 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30056 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30057 ELF definitions.
30058 * efiemu/loadcore64.c: Likewise.
30059 * loader/i386/bsd32.c: Likewise.
30060 * loader/i386/bsd64.c: Likewise.
30061 * kern/dl.c: Remove own ELF definitions.
30062 * util/i386/efi/grub-mkimage.c: Likewise.
30063
9bbdfd4d 300642009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30065
30066 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30067 segment 0x0 unconditionally, because the reference generated by
30068 GAS is an absolute address.
30069
a42ce6e9 300702009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30071
30072 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30073 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30074
c952cf92 300752009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30076
30077 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30078 indexes. Check for -f explicitly.
cc3752ad 30079 (search_file): Improve error message.
30080 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 30081
132a0a59 300822009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30083
30084 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30085 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30086
387a140c 300872009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30088
30089 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30090 * conf/i386-ieee1275.rmk: Likewise.
30091 * conf/i386-coreboot.rmk: Likewise.
30092
30093 * kern/i386/pc/startup.S (grub_stop): Remove function.
30094 * kern/i386/ieee1275/startup.S: Likewise.
30095 * kern/i386/coreboot/startup.S: Likewise.
30096 * kern/i386/misc.S (grub_stop): New function.
30097
41da9665 300982009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30099
30100 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30101 * kern/i386/realmode.S (real_to_prot): ... to here.
30102
bf337234 301032009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30104
30105 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30106 with `kernel.img'.
30107 (kernel_elf_SOURCES): Rename to ...
30108 (kernel_img_SOURCES): ... this.
30109 (kernel_elf_HEADERS): Rename to ...
30110 (kernel_img_HEADERS): ... this. Update all users.
30111 (kernel_elf_ASFLAGS): Rename to ...
30112 (kernel_img_ASFLAGS): ... this.
30113 (kernel_elf_CFLAGS): Rename to ...
30114 (kernel_img_CFLAGS): ... this.
30115 (kernel_elf_LDFLAGS): Rename to ...
30116 (kernel_img_LDFLAGS): ... this.
30117 * conf/i386-coreboot.rmk: Likewise.
30118 * conf/powerpc-ieee1275.rmk: Likewise.
30119
30120 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30121 with "kernel.img".
30122
f52196ff 301232009-06-21 Pavel Roskin <proski@gnu.org>
30124
c3cee413 30125 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30126 to match nested functions.
30127 * loader/sparc64/ieee1275/linux.c: Likewise.
30128
f52196ff 30129 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30130
58750afc 301312009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30132
30133 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30134 all i386 platforms.
30135
15355c7d 301362009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30137
30138 Fix asm file handling on ELF, and remove workarounds.
30139
30140 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 30141 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 30142 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30143 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30144
3f3ec72b 301452009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30146
30147 Load BSD ELF modules
30148
30149 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30150 and loader/i386/bsd64.c
30151 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30152 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30153 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30154 (grub_freebsd_load_elfmodule32): New declaration
30155 (grub_freebsd_load_elfmoduleobj64): Likewise
30156 (grub_freebsd_load_elf_meta32): Likewise
30157 (grub_freebsd_load_elf_meta64): Likewise
30158 (grub_freebsd_add_meta): Likewise
30159 (grub_freebsd_add_meta_module): Likewise
30160 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30161 (grub_freebsd_add_meta_module): Likewise and move module-specific
30162 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30163 (grub_cmd_freebsd): Add elf-kernel specific parts
30164 based on grub_freebsd_add_meta_module
30165 (grub_cmd_freebsd_module): Add type parsing moved from
30166 grub_freebsd_add_meta_module
30167 (grub_cmd_freebsd_module_elf): New function
30168 (cmd_freebsd_module_elf): New variable
30169 (GRUB_MOD_INIT): Register freebsd_module_elf
30170 * loader/i386/bsd32.c: New file
30171 * loader/i386/bsd64.c: Likewise
30172 * loader/i386/bsdXX.c: Likewise
30173 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30174 (grub_elf64_load): Likewise
30175 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30176 All users updated
30177 (grub_elf64_load_hook_t): Likewise
30178
0db15301 301792009-06-21 Colin Watson <cjwatson@ubuntu.com>
30180
30181 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30182 variable.
30183 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30184 don't write a menu entry for recovery mode.
30185
546796c1 301862009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30187
30188 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30189 after it's no longer needed.
30190
cd7310d5 301912009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30192
30193 * include/grub/i386/loader.h (grub_linux_prot_size)
30194 (grub_linux_tmp_addr, grub_linux_real_addr)
30195 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30196 GRUB_MACHINE_PCBIOS.
30197 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30198 common grub_util_info() call to ...
30199 (generate_image): ... here.
30200 Fix use of uninitialized memory, comparison of signed with
30201 unsigned integers and memory leak.
30202 Remove bogus module address message.
30203
ab32d3b5 302042009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30205
30206 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30207 grub_raid_register
30208 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30209
024ef597 302102009-06-19 Pavel Roskin <proski@gnu.org>
30211
30212 * configure.ac: Remove stray AC_MSG_CHECKING.
30213
3ac72b51 302142009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30215
30216 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 30217
e14cd814 302182009-06-18 Pavel Roskin <proski@gnu.org>
30219
30220 * conf/common.rmk: Add fs_file.mod.
30221 * disk/fs_file.c: New file.
30222 * include/grub/disk.h (enum grub_disk_dev_id): Add
30223 GRUB_DISK_DEVICE_FILE_ID.
30224
26586d98 302252009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30226
30227 Fix build with Apple's toolchain. Part 2
30228
30229 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30230 a fake start
30231
26de2bcd 302322009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30233
30234 Fix build with Apple's toolchain. Part 1
30235
30236 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30237 for long calls
30238 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 30239 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 30240 Apple's toolchain
30241
09b3490b 302422009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30243
30244 Fix warnings
30245
30246 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30247 (decomp_block): initialize ch
30248 use grub_memcpy instead of memcpy
30249
c22a006a 302502009-06-17 Pavel Roskin <proski@gnu.org>
30251
d3638678 30252 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30253 version, use declarations needed to use vga_text as the startup
30254 console.
30255
c22a006a 30256 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30257 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30258 the kernel.
30259 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30260 and grub_at_keyboard_fini(), it's done on module load and
30261 unload.
30262
05b129e0 302632009-06-17 Felix Zielcke <fzielcke@z-51.de>
30264
30265 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30266 file can't be found.
30267 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30268
cf24ed9e 302692009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30270
30271 Fix newline handling
30272
30273 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 30274 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 30275 (grub_script_yylex): don't segfault on unterminated script
30276 newline terminates command and variable
30277
74aa8e4b 302782009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30279
30280 avoid double grub_adjust_range call. Bug reported by David Simner
30281
30282 * kern/disk.c (grub_disk_write): change to raw disk access before
30283 calling disk_read
30284
1bd265f3 302852009-06-17 Colin Watson <cjwatson@ubuntu.com>
30286
30287 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30288 spaces, for the benefit of help2man.
30289 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30290
a2d08c06 302912009-06-16 Pavel Roskin <proski@gnu.org>
30292
30293 * kern/i386/halt.c: Include grub/machine/init.h.
30294 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30295
b97bcb19 302962009-06-16 Felix Zielcke <fzielcke@z-51.de>
30297
30298 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30299 drivemap menuentry.
30300
0644f96c 303012009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30302
30303 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30304 `echo' command.
30305
3ef17a2e 303062009-06-16 Pavel Roskin <proski@gnu.org>
30307
30308 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30309 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30310 save %dx, we only need %dl and we never change it.
30311 * boot/i386/pc/cdboot.S: Don't set the root drive.
30312 * boot/i386/pc/pxeboot.S: Likewise.
30313 * include/grub/i386/pc/boot.h: Remove
30314 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30315 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30316 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30317 * kern/i386/pc/init.c (make_install_device): Remove references
30318 to grub_root_drive.
30319 * kern/i386/pc/startup.S: Likewise.
30320 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30321
693fe637 303222009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30323
30324 xnu_uuid command
30325
30326 * commands/xnu_uuid.c: new file
30327 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30328 (xnu_uuid_mod_SOURCES): new variable
30329 (xnu_uuid_mod_CFLAGS): likewise
30330 (xnu_uuid_mod_LDFLAGS): likewise
30331 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30332 * conf/i386-ieee1275.rmk: likewise
30333 * conf/i386-pc.rmk: likewise
30334 * conf/powerpc-ieee1275.rmk: likewise
30335 * conf/sparc64-ieee1275.rmk: likewise
30336 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30337
c9da87d0 303382009-06-16 Pavel Roskin <proski@gnu.org>
30339
30340 * configure.ac: Avoid '==' in test command, it's not portable.
30341
9c6f4596 303422009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30343
30344 Probe command
30345
30346 * commands/probe.c: new file
30347 * conf/common.rmk (pkglib_MODULES): add probe.mod
30348 (probe_mod_SOURCES): new variable
30349 (probe_mod_CFLAGS): likewise
30350 (probe_mod_LDFLAGS): likewise
30351 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30352 * conf/i386-ieee1275.rmk: likewise
30353 * conf/i386-pc.rmk: likewise
30354 * conf/powerpc-ieee1275.rmk: likewise
30355 * conf/sparc64-ieee1275.rmk: likewise
30356
70b7f9fd 303572009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30358
30359 Fix handling of string like \"hello\" and "a
30360 b"
30361
30362 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30363 (grub_script_yylex): fix parsing of quoting, escaping and newline
30364
71c79a6b 303652009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30366
dd74360c 30367 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 30368 handling
dd74360c 30369
0644f96c 303702009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 30371
30372 * util/grub-mkconfig.in: Fix parsing of --output option.
30373
e40893c3 303742009-06-12 Pavel Roskin <proski@gnu.org>
30375
30376 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30377 genmk.rb don't need to be generated or installed.
30378
3a1acfe2 303792009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30380
30381 * commands/i386/pc/drivemap_int13h.S: add more comments
30382
3a4575d4 303832009-06-11 Pavel Roskin <proski@gnu.org>
30384
0658e928 30385 * Makefile.in (uninstall): Uninstall manuals.
30386
ca0388f0 30387 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30388 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30389 and update-grub_lib in two places.
30390 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30391
e3b27c39 30392 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30393 a compiler warning.
30394
3a4575d4 30395 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30396 `entry_lo' to fix variable shadowing.
30397
af1f4f55 303982009-06-11 Christian Franke <franke@computer.org>
30399
30400 * kern/misc.c (__enable_execute_stack): Add missing return type
30401 to prevent gcc warning.
30402
5225e649 304032009-06-11 Felix Zielcke <fzielcke@z-51.de>
30404
30405 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30406
7d83bd47 304072009-06-11 Pavel Roskin <proski@gnu.org>
30408
c1cb63ba 30409 * Makefile.in: Don't rely on any scripts being executable.
30410 Always use $(SHELL) to run shell scripts.
30411
7d83bd47 30412 * configure.ac: Always define ___main if using -nostdlib. This
30413 fixes tests on Cygwin.
30414
948f48e7 304152009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30416
30417 UDF fix
30418
7d83bd47 30419 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 30420 is in bytes and not in blocks
7d83bd47 30421
8ada9bc1 304222009-06-11 Pavel Roskin <proski@gnu.org>
30423
30424 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30425 warning.
30426
25ad2323 304272009-06-11 Felix Zielcke <fzielcke@z-51.de>
30428
30429 * util/grub.d/30_os-prober.in: Fix a comment. Source
30430 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30431 to set the root device. Place drivemap command in the generated
30432 chain entry.
30433
e65acb0c 304342009-06-11 Pavel Roskin <proski@gnu.org>
30435
30436 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30437 have long been resolved.
30438
f285fe2d 304392009-06-11 Colin Watson <cjwatson@ubuntu.com>
30440
bd47b0b5 30441 * util/grub.d/10_linux.in: Capitalise "Linux".
30442
f285fe2d 30443 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30444
a0c62e4e 304452009-06-11 Pavel Roskin <proski@gnu.org>
30446
b6783cb2 30447 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30448 fix a gcc warning and ensure that the function won't ever exit.
30449
dde032e8 30450 * kern/i386/ieee1275/init.c: Add missing prototype for
30451 grub_stop_floppy().
30452
22cd079d 30453 * loader/ieee1275/multiboot2.c [__i386__]: Include
30454 grub/cpu/multiboot.h.
30455
a0c62e4e 30456 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30457 casts to short - they are not portable and cause warnings. Fix
30458 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30459
63963d17 304602009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30461
30462 Drivemap fixes
30463
30464 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30465 new function
30466 (grub_get_root_biosnumber_saved): new variable
30467 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30468 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 30469 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 30470 %dx after the call if necessary
30471 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30472 (boot_mod_SOURCES): remove
30473 (boot_mod_CFLAGS): remove
30474 (boot_mod_LDFLAGS): remove
30475 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30476 (boot_mod_SOURCES): new variable
30477 (boot_mod_CFLAGS): likewise
30478 (boot_mod_LDFLAGS): likewise
30479 * conf/i386-efi.rmk: likewise
30480 * conf/i386-ieee1275.rmk: likewise
30481 * conf/i386-pc.rmk: likewise
30482 * conf/powerpc-ieee1275.rmk: likewise
30483 * conf/sparc64-ieee1275.rmk: likewise
30484 * conf/x86_64-efi.rmk: likewise
30485 * include/grub/i386/pc/biosnum.h: new file
30486 * lib/i386/pc/biosnum.c: likewise
30487 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30488 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30489 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 30490
33abf7ae 304912009-06-10 Pavel Roskin <proski@gnu.org>
30492
5ac35b35 30493 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30494 Use separate variables. Read only the file size at the end, but
30495 not the checksum that we don't use.
30496
5c5215d5 30497 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30498 Adjust all callers.
30499
27d5fef7 30500 * kern/ieee1275/openfw.c: Remove libc includes.
30501 * kern/ieee1275/cmain.c: Likewise.
30502 * include/grub/ieee1275/ieee1275.h: Likewise.
30503
33abf7ae 30504 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30505 compiler warnings.
30506
19d50c2b 305072009-06-10 Felix Zielcke <fzielcke@z-51.de>
30508
30509 * Makefile.in: Remove all trailing whitespace.
30510 * conf/i386-pc.rmk: Likewise.
30511 * conf/powerpc-ieee1275.rmk: Likewise.
30512 * conf/sparc64-ieee1275.rmk: Likewise.
30513 * docs/grub.texi: Likewise.
30514 * docs/texinfo.tex: Likewise.
30515 * disk/fs_uuid.c: Likewise.
30516 * disk/lvm.c: Likewise.
30517 * disk/scsi.c: Likewise.
30518 * disk/ata.c: Likewise.
30519 * disk/ieee1275/ofdisk.c: Likewise.
30520 * disk/i386/pc/biosdisk.c: Likewise.
30521 * disk/host.c: Likewise.
30522 * disk/raid.c: Likewise.
30523 * disk/efi/efidisk.c: Likewise.
30524 * disk/usbms.c: Likewise.
30525 * disk/memdisk.c: Likewise.
30526 * disk/loopback.c: Likewise.
30527 * kern/powerpc/dl.c: Likewise.
30528 * kern/device.c: Likewise.
30529 * kern/dl.c: Likewise.
30530 * kern/sparc64/dl.c: Likewise.
30531 * kern/ieee1275/ieee1275.c: Likewise.
30532 * kern/term.c: Likewise.
30533 * kern/fs.c: Likewise.
30534 * kern/i386/dl.c: Likewise.
30535 * kern/i386/pc/startup.S: Likewise.
30536 * kern/i386/pc/init.c: Likewise.
30537 * kern/i386/pc/mmap.c: Likewise.
30538 * kern/i386/pc/lzo1x.S: Likewise.
30539 * kern/i386/ieee1275/init.c: Likewise.
30540 * kern/i386/realmode.S: Likewise.
30541 * kern/i386/tsc.c: Likewise.
30542 * kern/partition.c: Likewise.
30543 * kern/corecmd.c: Likewise.
30544 * kern/file.c: Likewise.
30545 * kern/efi/efi.c: Likewise.
30546 * kern/efi/init.c: Likewise.
30547 * kern/efi/mm.c: Likewise.
30548 * kern/main.c: Likewise.
30549 * kern/err.c: Likewise.
30550 * kern/env.c: Likewise.
30551 * kern/disk.c: Likewise.
30552 * kern/generic/millisleep.c: Likewise.
30553 * kern/generic/rtc_get_time_ms.c: Likewise.
30554 * kern/misc.c: Likewise.
30555 * kern/parser.c: Likewise.
30556 * genmk.rb: Likewise.
30557 * configure.ac: Likewise.
30558 * boot/i386/pc/diskboot.S: Likewise.
30559 * boot/i386/pc/pxeboot.S: Likewise.
30560 * boot/i386/pc/boot.S: Likewise.
30561 * boot/i386/pc/lnxboot.S: Likewise.
30562 * boot/i386/pc/cdboot.S: Likewise.
30563 * parttool/pcpart.c: Likewise.
30564 * video/readers/tga.c: Likewise.
30565 * video/video.c: Likewise.
30566 * video/bitmap.c: Likewise.
30567 * lib/envblk.c: Likewise.
30568 * lib/i386/setjmp.S: Likewise.
30569 * fs/xfs.c: Likewise.
30570 * fs/afs.c: Likewise.
30571 * fs/fat.c: Likewise.
30572 * fs/ntfs.c: Likewise.
30573 * fs/udf.c: Likewise.
30574 * fs/affs.c: Likewise.
30575 * fs/iso9660.c: Likewise.
30576 * fs/hfs.c: Likewise.
30577 * fs/fshelp.c: Likewise.
30578 * fs/ext2.c: Likewise.
30579 * fs/jfs.c: Likewise.
30580 * fs/reiserfs.c: Likewise.
30581 * fs/hfsplus.c: Likewise.
30582 * fs/minix.c: Likewise.
30583 * fs/cpio.c: Likewise.
30584 * fs/sfs.c: Likewise.
30585 * fs/ufs.c: Likewise.
30586 * efiemu/prepare.c: Likewise.
30587 * efiemu/loadcore_common.c: Likewise.
30588 * efiemu/runtime/efiemu.sh: Likewise.
30589 * efiemu/runtime/efiemu.S: Likewise.
30590 * efiemu/runtime/efiemu.c: Likewise.
30591 * efiemu/pnvram.c: Likewise.
30592 * efiemu/main.c: Likewise.
30593 * efiemu/i386/pc/cfgtables.c: Likewise.
30594 * efiemu/i386/loadcore64.c: Likewise.
30595 * efiemu/i386/loadcore32.c: Likewise.
30596 * efiemu/loadcore.c: Likewise.
30597 * efiemu/symbols.c: Likewise.
30598 * efiemu/mm.c: Likewise.
30599 * include/grub/autoefi.h: Likewise.
30600 * include/grub/datetime.h: Likewise.
30601 * include/grub/term.h: Likewise.
30602 * include/grub/hfs.h: Likewise.
30603 * include/grub/lvm.h: Likewise.
30604 * include/grub/i386/tsc.h: Likewise.
30605 * include/grub/i386/linux.h: Likewise.
30606 * include/grub/i386/xnu.h: Likewise.
30607 * include/grub/i386/efiemu.h: Likewise.
30608 * include/grub/i386/pc/biosdisk.h: Likewise.
30609 * include/grub/i386/pc/memory.h: Likewise.
30610 * include/grub/i386/pc/vbe.h: Likewise.
30611 * include/grub/parttool.h: Likewise.
30612 * include/grub/video.h: Likewise.
30613 * include/grub/memory.h: Likewise.
30614 * include/grub/fs.h: Likewise.
30615 * include/grub/partition.h: Likewise.
30616 * include/grub/xnu.h: Likewise.
30617 * include/grub/efi/api.h: Likewise.
30618 * include/grub/efi/pe32.h: Likewise.
30619 * include/grub/efi/memory.h: Likewise.
30620 * include/grub/multiboot.h: Likewise.
30621 * include/grub/usbdesc.h: Likewise.
30622 * include/grub/multiboot2.h: Likewise.
30623 * include/grub/acpi.h: Likewise.
30624 * include/grub/efiemu/efiemu.h: Likewise.
30625 * include/grub/disk.h: Likewise.
30626 * include/grub/ieee1275/ieee1275.h: Likewise.
30627 * include/grub/net.h: Likewise.
30628 * include/grub/machoload.h: Likewise.
30629 * include/grub/macho.h: Likewise.
30630 * include/multiboot.h: Likewise.
30631 * genmoddep.awk: Likewise.
30632 * normal/main.c: Likewise.
30633 * normal/menu_entry.c: Likewise.
30634 * normal/menu_viewer.c: Likewise.
30635 * normal/completion.c: Likewise.
30636 * normal/cmdline.c: Likewise.
30637 * normal/misc.c: Likewise.
30638 * normal/datetime.c: Likewise.
30639 * bus/usb/usbtrans.c: Likewise.
30640 * bus/usb/ohci.c: Likewise.
30641 * bus/usb/uhci.c: Likewise.
30642 * bus/usb/usb.c: Likewise.
30643 * mmap/efi/mmap.c: Likewise.
30644 * mmap/i386/pc/mmap_helper.S: Likewise.
30645 * mmap/i386/pc/mmap.c: Likewise.
30646 * mmap/i386/mmap.c: Likewise.
30647 * mmap/i386/uppermem.c: Likewise.
30648 * mmap/mmap.c: Likewise.
30649 * commands/acpi.c: Likewise.
30650 * commands/echo.c: Likewise.
30651 * commands/blocklist.c: Likewise.
30652 * commands/loadenv.c: Likewise.
30653 * commands/usbtest.c: Likewise.
30654 * commands/boot.c: Likewise.
30655 * commands/parttool.c: Likewise.
30656 * commands/search.c: Likewise.
30657 * commands/cat.c: Likewise.
30658 * commands/i386/pc/play.c: Likewise.
30659 * commands/i386/pc/drivemap.c: Likewise.
30660 * commands/i386/pc/vbeinfo.c: Likewise.
30661 * commands/i386/pc/acpi.c: Likewise.
30662 * commands/i386/pc/vbetest.c: Likewise.
30663 * commands/ls.c: Likewise.
30664 * commands/cmp.c: Likewise.
30665 * commands/test.c: Likewise.
30666 * commands/efi/acpi.c: Likewise.
30667 * commands/gptsync.c: Likewise.
30668 * commands/help.c: Likewise.
30669 * partmap/amiga.c: Likewise.
30670 * partmap/apple.c: Likewise.
30671 * partmap/acorn.c: Likewise.
30672 * partmap/pc.c: Likewise.
30673 * partmap/sun.c: Likewise.
30674 * partmap/gpt.c: Likewise.
30675 * script/sh/lexer.c: Likewise.
30676 * script/sh/function.c: Likewise.
30677 * font/font.c: Likewise.
30678 * font/font_cmd.c: Likewise.
30679 * loader/powerpc/ieee1275/linux.c: Likewise.
30680 * loader/efi/chainloader.c: Likewise.
30681 * loader/multiboot_loader.c: Likewise.
30682 * loader/macho.c: Likewise.
30683 * loader/i386/multiboot.c: Likewise.
30684 * loader/i386/linux.c: Likewise.
30685 * loader/i386/pc/linux.c: Likewise.
30686 * loader/i386/pc/multiboot2.c: Likewise.
30687 * loader/i386/pc/chainloader.c: Likewise.
30688 * loader/i386/pc/xnu.c: Likewise.
30689 * loader/i386/bsd_trampoline.S: Likewise.
30690 * loader/i386/efi/linux.c: Likewise.
30691 * loader/i386/multiboot_elfxx.c: Likewise.
30692 * loader/i386/bsd_helper.S: Likewise.
30693 * loader/i386/bsd.c: Likewise.
30694 * loader/i386/linux_trampoline.S: Likewise.
30695 * loader/i386/xnu_helper.S: Likewise.
30696 * loader/i386/xnu.c: Likewise.
30697 * loader/i386/bsd_pagetable.c: Likewise.
30698 * loader/i386/multiboot_helper.S: Likewise.
30699 * loader/xnu.c: Likewise.
30700 * loader/xnu_resume.c: Likewise.
30701 * io/gzio.c: Likewise.
30702 * term/efi/console.c: Likewise.
30703 * term/terminfo.c: Likewise.
30704 * term/ieee1275/ofconsole.c: Likewise.
30705 * term/i386/pc/serial.c: Likewise.
30706 * term/i386/pc/vesafb.c: Likewise.
30707 * term/i386/pc/vga.c: Likewise.
30708 * term/usb_keyboard.c: Likewise.
30709 * term/gfxterm.c: Likewise.
30710 * aclocal.m4: Likewise.
30711 * util/lvm.c: Likewise.
30712 * util/grub.d/30_os-prober.in: Likewise.
30713 * util/grub.d/10_hurd.in: Likewise.
30714 * util/console.c: Likewise.
30715 * util/grub-macho2img.c: Likewise.
30716 * util/grub-probe.c: Likewise.
30717 * util/hostfs.c: Likewise.
30718 * util/i386/pc/grub-mkimage.c: Likewise.
30719 * util/i386/pc/grub-setup.c: Likewise.
30720 * util/i386/efi/grub-mkimage.c: Likewise.
30721 * util/grub-mkconfig.in: Likewise.
30722 * util/raid.c: Likewise.
30723 * util/resolve.c: Likewise.
30724 * util/grub-mkdevicemap.c: Likewise.
30725 * util/grub-emu.c: Likewise.
30726 * util/getroot.c: Likewise.
30727 * util/hostdisk.c: Likewise.
30728 * util/usb.c: Likewise.
30729 * util/grub-editenv.c: Likewise.
30730 * util/misc.c: Likewise.
30731
d2d49665 307322009-06-10 Felix Zielcke <fzielcke@z-51.de>
30733
30734 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30735 `genparttoollist.sh'.
30736 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30737 Add `*.sh' to the list find searches for and change `mdate.sh'
30738 to `mdate-sh'.
30739
fe052e37 307402009-06-10 Pavel Roskin <proski@gnu.org>
30741
2763ac18 30742 * include/grub/multiboot2.h: Provide compatibility defines for
30743 multiboot2.h.
30744 * include/multiboot2.h: Include stdint.h only if needed, using
30745 angle brackets.
30746 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30747 grub/multiboot2.h.
30748 * loader/ieee1275/multiboot2.c: Likewise.
30749 * loader/multiboot2.c: Likewise.
30750 * loader/multiboot_loader.c: Likewise.
30751
437e6adc 30752 * configure.ac: Use -nostdlib when probing for the target. It
30753 should not be required to have libc for the target.
30754
06a6836c 30755 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30756 they fail without libc headers for the target.
30757 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30758 exports.
30759 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30760 preprocessor conditionals.
30761
fe052e37 30762 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30763 build system doesn't need to be aware of the tar.c internals.
30764
afd22553 307652009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 30766
afd22553 30767 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 30768
6b787c4f 307692009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30770
30771 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30772 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30773
307742009-06-09 Felix Zielcke <fzielcke@z-51.de>
30775
30776 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 30777 aren't available if ata.mod gets used.
6b787c4f 30778
473d1e45 307792009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 30780
473d1e45 30781 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 30782 initialising controller.
473d1e45 30783 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 30784
255a27d4 307852009-06-08 Felix Zielcke <fzielcke@z-51.de>
30786
30787 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30788 to choose between ata and biosdisk module on i386-pc.
30789
473d1e45 307902009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 30791
d55842d8 30792 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30793 Subclass and Programming Interface fields in terms of the 3 byte
30794 Class Code register.
30795 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30796
fa5db0b1 30797 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30798 interface is OHCI. Add grub_dprintf for symmetry with
30799 bus/usb/uhci.c.
30800 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30801 interface is UHCI. Add interf variable for programming
30802 interface. Print interface with class/subclass.
30803
c0947beb 30804 * bus/usb/ohci.c: Set interf with correct field.
30805
69da8877 30806 * bus/usb/uhci.c: Remove unneeded doubled lines.
30807 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30808 Remove whitespace inside comment.
30809
9e172e30 308102009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30811
30812 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30813 as fallback an equivalent option without depth.
30814
de65ee2b 308152009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30816
30817 Not fail if unable to retrieve C/H/S on LBA disks
30818
473d1e45 30819 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 30820 if unable to retrieve C/H/S on LBA disks
30821
b57ea2c9 308222009-06-08 Pavel Roskin <proski@gnu.org>
30823
30824 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30825 about aliasing.
30826
af361263 308272009-06-08 Felix Zielcke <fzielcke@z-51.de>
30828
30829 * Makefile.in (uninstall): Remove all $lib_DATA files.
30830
4c9ec6b3 308312009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30832
30833 Bugfix: install on partitionless device
30834
30835 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30836 is a whole disk
30837
e76fc924 308382009-06-08 Felix Zielcke <fzielcke@z-51.de>
30839
30840 * Makefile.in (uninstall): Remove all $include_DATA files.
30841
ba5a0d05 308422009-06-08 Felix Zielcke <fzielcke@z-51.de>
30843
30844 * commands/true.c: New file. Implement the true and false commands.
30845 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30846 (true_mod_SOURCES): New variable.
30847 (true_mod_CFLAGS): Likewise.
30848 (true_mod_LDFLAGS): Likewise.
30849
c8048e32 308502009-06-05 Colin D Bennett <colin@gibibit.com>
30851
30852 Optimized font character lookup using binary search instead of linear
30853 search. Fonts now are required to have the character index ordered by
30854 code point.
30855
30856 * font/font.c (load_font_index): Verify that fonts have ordered
30857 character indices.
30858 (find_glyph): Use binary search instead of linear search to find a
30859 character in a font.
30860
408305be 308612009-06-05 Michael Scherer <misc@mandriva.org>
30862
30863 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30864 uses case sensitive btree.
30865 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30866 only for case insensitive filesystems.
30867
8ee1e0d9 308682009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30869
30870 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30871 * conf/common.rmk (search_mod_CFLAGS): likewise
30872
a9966eb1 308732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30874
473d1e45 30875 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 30876 compensate a compiler bug
30877
9e7100fb 308782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30879
473d1e45 30880 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 30881 instead of '\b'
473d1e45 30882
ede21d71 308832009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30884
30885 Definitions for creating asm symbols with Apple's CC
30886
30887 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30888 [APPLE_CC] (VARIABLE): likewise
30889
9dbf7653 308902009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30891
30892 Disable lnxboot.img when compiled
30893 with Apple's CC
30894
30895 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30896 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30897 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30898 [! APPLE_CC] (CODE_LENG): skip
30899 [! APPLE_CC] (setup_sects): likewise
30900 [! APPLE_CC]: skip filling
473d1e45 30901
e93cdc3d 309022009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30903
30904 Address in trampolines based on 32-bit registers when compiled
30905 with Apple's CC
30906
473d1e45 30907 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 30908 for addresses
30909 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30910
6c688477 309112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30912
30913 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30914
30915 * kern/misc.c [APPLE_CC] (memcpy): new function
30916 [APPLE_CC] (memmove): likewise
30917 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 30918 (memcpy): define alias conditionally on !APPLE_CC
6c688477 30919 (memset): likewise
30920 (abort): likewise
30921 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30922 APPLE_CC are defined
30923 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30924 (grub_assert_fail): make prototype conditional
30925
e37ffc5c 309262009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30927
30928 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30929
473d1e45 30930 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30931 grub-macho2img
e37ffc5c 30932 (CLEANFILES): add grub-macho2img
30933 (grub_macho2img_SOURCES): new variable
30934 * kern/i386/pc/startup.S (bss_start): new variable
30935 (bss_end): likewise
30936 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30937 * util/grub-macho2img.c: new file
30938
cf00df31 309392009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30940
30941 Use objconv when compiling with Apple's CC
30942
30943 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30944 (efiemu64.o): likewise
30945 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30946 when compiling with Apple's CC
30947 (efiemu64_s.o): likewise
30948 * configure.ac: check for objconv when compiling with Apple's CC
30949 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 30950
d119a20c 309512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30952
30953 Define segment as well as section when compiling with
30954 Apple's CC
30955
30956 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30957 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30958 (efiemu_convert_pointer): likewise
30959 (efiemu_set_virtual_address_map): likewise
30960 (efiemu_convert_pointer): likewise
30961 (efiemu_getcrc32): likewise
30962 (init_crc32_table): likewise
30963 (reflect): likewise
30964 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30965 (GRUB_MOD_DEP): likewise
473d1e45 30966
c8600122 309672009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30968
30969 Allow a compilation without -mcmodel=large
30970
30971 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30972 when compiled without -mcmodel=large
473d1e45 30973 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 30974 without -mcmodel=large
473d1e45 30975 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 30976 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 30977
e8df1d4e 309782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30979
30980 Remove nested functions in efiemu core
30981
30982 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 30983
cc6c3ac1 309842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30985
30986 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30987
30988 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30989 temporary storage
473d1e45 30990 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30991 using Apple's CC
cc6c3ac1 30992 (grub_cpu_is_tsc_supported): likewise
30993 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 30994
3e325901 309952009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30996
30997 Absolute addressing through constant with Apple's cc
30998
30999 * kern/i386/pc/startup.S: Define necessary constants
31000 and address through it when using ABS with Apple's CC
31001 * boot/i386/pc/diskboot.S: likewise
31002 * boot/i386/pc/boot.S: likewise
31003 * boot/i386/pc/lnxboot.S: likewise
31004 * boot/i386/pc/cdboot.S: likewise
31005 * mmap/i386/pc/mmap_helper.S: likewise
31006 * commands/i386/pc/drivemap_int13h.S: likewise
31007
2b167a72 310082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31009
31010 Check if compiler is apple cc
31011
31012 * Makefile.in (ASFLAGS): new variable
31013 (TARGET_ASFLAGS): likewise
31014 (TARGET_MODULE_FORMAT): likewise
31015 (TARGET_APPLE_CC): likewise
31016 (OBJCONV): likewise
31017 (TARGET_IMG_CFLAGS): likewise
31018 (TARGET_CPPFLAGS): add includedir
31019 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31020 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31021 Check for linker script only if compiler isn't Apple's CC
31022 (TARGET_MODULE_FORMAT): set
31023 (TARGET_APPLE_CC): likewise
31024 (TARGET_ASFLAGS): likewise
31025 (ASFLAGS): likewise
31026 Check for objcopy only if compiler isn't Apple's CC
31027 Check for BSS symbol only if compiler isn't Apple's CC
31028 * genmk.rb: adapt nm options if we use Apple's utils
31029 * aclocal.m4 (grub_apple_cc): new test
31030 (grub_apple_target_cc): likewise
473d1e45 31031
fb14123e 310322009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31033
31034 Simplify sed expressions and improve awk
31035
31036 * Makefile.in (install-local): simplify sed expression
31037 * gencmdlist.sh: likewise
31038 * genmoddep.awk: avoid adding module as a dependency of itself
31039
5b889789 310402009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31041
31042 Add missing start symbols
31043
31044 * boot/i386/pc/boot.S: add start
fb14123e 31045 * boot/i386/pc/pxeboot.S: likewise
473d1e45 31046
fd2bf2e3 310472009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31048
31049 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 31050
31051 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 31052 (relocate_addresses): consider both r_addend and value at offset
31053 (make_mods_section): zerofill modinfo and header
31054 (convert_elf): write prefix here
473d1e45 31055
5389763d 310562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31057
31058 Use .asciz instead of .string
31059
31060 * i386/pc/diskboot.S: use .asciz instead of .string
31061 * i386/pc/boot.S: likewise
31062 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31063 (GRUB_MOD_NAME): likewise
473d1e45 31064
3eb5ed4e 310652009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31066
31067 gfxpayload support
31068
31069 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31070 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31071 (grub_video_setup): remove
31072 (grub_video_set_mode): new prototype
31073 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31074 (vid_mode): remove
31075 (linux_vesafb_res): compile only on PCBIOS
31076 (grub_linux_boot): support gfxpayload
31077 * loader/i386/pc/xnu.c (video_hook): new function
31078 (grub_xnu_set_video): support gfxpayload
31079 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31080 (DEFAULT_VIDEO_HEIGHT): likewise
31081 (DEFAULT_VIDEO_FLAGS): likewise
31082 (DEFAULT_VIDEO_MODE): new definition
31083 (video_hook): new function
31084 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 31085 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 31086 loading xnu
31087 * video/video.c (grub_video_setup): removed
473d1e45 31088 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 31089 grub_video_setup
31090
4b0e1143 310912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31092
31093 Avoid calling biosdisk in drivemap
31094
31095 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31096 (revparse_biosdisk): likewise
31097 (list_mappings): derive name from id directly
31098 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 31099
fda6cb98 311002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31101
31102 Script fixes
31103
31104 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31105 (grub_lexer_param): add tokenonhold
31106 (grub_script_create_cmdline): remove cmdline. All callers updated
31107 (grub_script_function_create): make functionname
31108 grub_script_arg. All callers updated
31109 (grub_script_execute_argument_to_string): new prototype
31110 * kern/parser.c (state_transitions): reorder
31111 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 31112 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 31113 make global
31114 (grub_script_execute_cmdline): use new format
31115 * script/sh/function.c (grub_script_function_create): make functionname
31116 grub_script_arg. All callers updated
473d1e45 31117 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 31118 (grub_script_yylex): remove
31119 (grub_script_yylex2): renamed to ...
31120 (grub_script_yylex): ...renamed
31121 parse the expressions like a${b}c
31122 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31123 (GRUB_PARSER_TOKEN_VAR): remove
31124 (GRUB_PARSER_TOKEN_NAME): likewise
31125 ("if"): declare as typeless
31126 ("while"): likewise
31127 ("function"): likewise
31128 ("else"): likewise
31129 ("then"): likewise
31130 ("fi"): likewise
31131 (text): remove
31132 (argument): likewise
31133 (script): accept empty scripts and make exit on error
31134 (arguments): use GRUB_PARSER_TOKEN_ARG
31135 (function): likewise
31136 (command): move error handling to script
31137 (menuentry): move grub_script_lexer_ref before
473d1e45 31138 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 31139 argument. All callers updated
31140
f4448a07 311412009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31142
31143 Prevent GRUB from probing floppies during boot.
31144
31145 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31146 * commands/search.c (options): Add --no-floppy.
31147 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31148 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31149 --no-floppy when searching for UUIDs.
31150
2bf5885a 311512009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31152
31153 Simplify the code duplication in commands/search.c.
31154
31155 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31156 (search_fs): ... this. Update all users.
31157
f6fd460a 311582009-06-03 Felix Zielcke <fzielcke@z-51.de>
31159
31160 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31161
cbb3c83e 311622009-05-28 Pavel Roskin <proski@gnu.org>
31163
57788cfd 31164 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31165 Remove the original symlink explicitly.
31166
cbb3c83e 31167 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31168 just one slash. That's how grub_fshelp_find_file() does it.
31169
cd0d5e30 311702009-05-26 Pavel Roskin <proski@gnu.org>
31171
f0f8bbe2 31172 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31173 to `str'.
31174
cd0d5e30 31175 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31176 possibly unused.
31177
8c2cab51 311782009-05-25 Christian Franke <franke@computer.org>
31179
31180 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31181 register.
31182 (grub_atapi_identify): Add wait after drive select.
31183 (grub_ata_identify): Do more strict status register check before
31184 calling grub_atapi_identify (). Suppress error message if status
31185 register is 0x00 after command failure. Add status register
31186 check after PIO read to avoid bogus identify due to stuck DRQ.
31187 Thanks to Pavel Roskin for testing.
31188 (grub_device_initialize): Remove unsafe status register check.
31189 Thanks to 'phcoder' for problem report and patch.
31190 Prevent sign extension in debug message.
31191
230c0ad6 311922009-05-23 Colin D Bennett <colin@gibibit.com>
31193
31194 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31195 definition file, and functions defined in `normal/menu.c' have had
31196 their prototypes moved to `include/grub/menu.h' for consistency.
31197
31198 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31199 from normal.h.
31200 (grub_menu_get_entry): Likewise.
31201 (grub_menu_get_timeout): Likewise.
31202 (grub_menu_set_timeout): Likewise.
31203 (grub_menu_execute_entry): Likewise.
31204 (grub_menu_execute_with_fallback): Likewise.
31205 (grub_menu_entry_run): Likewise.
31206
31207 * include/grub/normal.h: Re-ordered and grouped function
31208 prototypes by file that the function is defined in.
31209 (grub_menu_execute_callback): Removed; moved to menu.h.
31210 (grub_menu_get_entry): Likewise.
31211 (grub_menu_get_timeout): Likewise.
31212 (grub_menu_set_timeout): Likewise.
31213 (grub_menu_execute_entry): Likewise.
31214 (grub_menu_execute_with_fallback): Likewise.
31215 (grub_menu_entry_run): Likewise.
31216 (grub_menu_addentry): Renamed from this ...
31217 (grub_normal_add_menu_entry): ... to this.
31218
31219 * normal/main.c (grub_menu_addentry): Renamed from this ...
31220 (grub_normal_add_menu_entry): ... to this.
31221
31222 * script/sh/execute.c (grub_script_execute_menuentry): Update
31223 reference to renamed grub_menu_addentry function.
31224
861f03a5 312252009-05-23 Felix Zielcke <fzielcke@z-51.de>
31226
31227 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31228
96b1619a 312292009-05-22 Pavel Roskin <proski@gnu.org>
31230
bf6a5fb2 31231 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31232 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31233 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31234 compiling for the i386 targets, but not for the utilities.
31235
96b1619a 31236 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31237 to grub_uint8_t.
31238 (grub_root_drive): Likewise.
31239 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31240 remove alignment.
31241 (grub_root_drive): Change size to byte.
31242 (grub_start_addr): Remove.
31243 (grub_end_addr): Likewise.
31244 (grub_apm_bios_info): Likewise.
31245
b729776b 312462009-05-21 Felix Zielcke <fzielcke@z-51.de>
31247
31248 * normal/i386: Remove.
31249 * normal/powerpc: Likewise.
31250 * normal/sparc64: Likewise.
31251 * normal/x86_64: Likewise.
31252
0a15ce80 312532009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31254
31255 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 31256 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 31257 * loader/i386/xnu_helper.S: Likewise
d6da58e6 31258
33db9015 312592009-05-18 Colin D Bennett <colin@gibibit.com>
31260
d6da58e6 31261 Display error messages when parsing a Lua statement fails.
31262 Previously, executing a syntactically invalid statement like
31263 ")foo" or "bar;" would silently fail.
33db9015 31264
31265 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 31266 (grub_lua_parse_line): Improved reporting of Lua parser and
31267 execution errors.
33db9015 31268
46422c89 312692009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31270
31271 Remove -Werror which causes build to fail on some systems
31272
31273 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31274 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31275 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 31276
22f53a96 312772009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31278
31279 trampoline for linux on 64-bit platform
31280
18f547ad 31281 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31282 loader/i386/efi/linux_trampoline.S
31283 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 31284 declaration
d6da58e6 31285 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31286 here
22f53a96 31287 * loader/i386/linux_trampoline.S: moved here
d6da58e6 31288 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31289 trampoline
22f53a96 31290 (jumpvector): removed
31291 (grub_linux_trampoline_start): new declaration
31292 (grub_linux_trampoline_end): likewise
31293 (grub_linux_boot): use trampoline when on 64-bit platform
31294 * loader/i386/linux.c: likewise
31295
cb5a0f40 312962009-05-16 Pavel Roskin <proski@gnu.org>
31297
31298 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31299 const to avoid a warning.
31300 (grub_lua_setenv): Likewise.
31301 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31302 lmsg to fix a warning.
31303
334f2c28 313042009-05-16 Felix Zielcke <fzielcke@z-51.de>
31305
31306 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 31307 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31308 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31309 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31310 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31311 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31312 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31313 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 31314
59e5d3ec 313152009-05-16 Felix Zielcke <fzielcke@z-51.de>
31316
31317 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31318
9d87a1ba 313192009-05-16 Bean <bean123ch@gmail.com>
31320
31321 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31322 (lua_mod_SOURCES): New variable.
31323 (lua_mod_CFLAGS): Likewise.
31324 (lua_mod_LDFLAGS): Likewise.
31325
31326 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31327 (setjmp_mod_SOURCES): New variable.
31328 (setjmp_mod_CFLAGS): Likewise.
31329 (setjmp_LDFLAGS): Likewise.
31330
31331 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31332 (setjmp_mod_SOURCES): New variable.
31333 (setjmp_mod_CFLAGS): Likewise.
31334 (setjmp_LDFLAGS): Likewise.
31335
31336 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31337 (setjmp_mod_SOURCES): New variable.
31338 (setjmp_mod_CFLAGS): Likewise.
31339 (setjmp_LDFLAGS): Likewise.
31340
31341 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31342 (setjmp_mod_SOURCES): New variable.
31343 (setjmp_mod_CFLAGS): Likewise.
31344 (setjmp_LDFLAGS): Likewise.
31345
31346 * normal/i386/setjmp.S: Moved from here ...
31347 * lib/i386/setjmp.S: ... Moved here
31348 * normal/x86_64/setjmp.S: Moved from here ...
31349 * lib/x86_64/setjmp.S: ... Moved here
31350 * normal/powerpc/setjmp.S: Moved from here ...
31351 * lib/powerpc/setjmp.S: ... Moved here
31352 * normal/sparc64/setjmp.S: Moved from here ...
31353 * lib/sparc64/setjmp.S: ... Moved here
31354
31355 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31356 returns_twice in mingw.
31357
31358 * script/lua/grub_lib.c: New file.
31359 * script/lua/grub_lib.h: Likewise.
31360 * script/lua/grub_lua.h: Likewise.
31361 * script/lua/grub_main.c: Likewise.
31362 * script/lua/lapi.c: Likewise.
31363 * script/lua/lapi.h: Likewise.
31364 * script/lua/lauxlib.c: Likewise.
31365 * script/lua/lauxlib.h: Likewise.
31366 * script/lua/lbaselib.c: Likewise.
31367 * script/lua/lcode.c: Likewise.
31368 * script/lua/lcode.h: Likewise.
31369 * script/lua/ldblib.c: Likewise.
31370 * script/lua/ldebug.c: Likewise.
31371 * script/lua/ldebug.h: Likewise.
31372 * script/lua/ldo.c: Likewise.
31373 * script/lua/ldo.h: Likewise.
31374 * script/lua/ldump.c: Likewise.
31375 * script/lua/lfunc.c: Likewise.
31376 * script/lua/lfunc.h: Likewise.
31377 * script/lua/lgc.c: Likewise.
31378 * script/lua/lgc.h: Likewise.
31379 * script/lua/linit.c: Likewise.
31380 * script/lua/liolib.c: Likewise.
31381 * script/lua/llex.c: Likewise.
31382 * script/lua/llex.h: Likewise.
31383 * script/lua/llimits.h: Likewise.
31384 * script/lua/lmathlib.c: Likewise.
31385 * script/lua/lmem.c: Likewise.
31386 * script/lua/lmem.h: Likewise.
31387 * script/lua/loadlib.c: Likewise.
31388 * script/lua/lobject.c: Likewise.
31389 * script/lua/lobject.h: Likewise.
31390 * script/lua/lopcodes.c: Likewise.
31391 * script/lua/lopcodes.h: Likewise.
31392 * script/lua/loslib.c: Likewise.
31393 * script/lua/lparser.c: Likewise.
31394 * script/lua/lparser.h: Likewise.
31395 * script/lua/lstate.c: Likewise.
31396 * script/lua/lstate.h: Likewise.
31397 * script/lua/lstring.c: Likewise.
31398 * script/lua/lstring.h: Likewise.
31399 * script/lua/lstrlib.c: Likewise.
31400 * script/lua/ltable.c: Likewise.
31401 * script/lua/ltable.h: Likewise.
31402 * script/lua/ltablib.c: Likewise.
31403 * script/lua/ltm.c: Likewise.
31404 * script/lua/ltm.h: Likewise.
31405 * script/lua/lua.h: Likewise.
31406 * script/lua/luaconf.h: Likewise.
31407 * script/lua/lualib.h: Likewise.
31408 * script/lua/lundump.c: Likewise.
31409 * script/lua/lundump.h: Likewise.
31410 * script/lua/lvm.c: Likewise.
31411 * script/lua/lvm.h: Likewise.
31412 * script/lua/lzio.c: Likewise.
31413 * script/lua/lzio.h: Likewise.
31414
5e898c9d 314152009-05-16 Bean <bean123ch@gmail.com>
31416
31417 * include/grub/kernel.h (grub_module_header_types): Add type
31418 OBJ_TYPE_CONFIG.
31419
31420 * kern/main.c (grub_load_config): New function.
31421 (grub_main): Call grub_load_config to read boot config.
31422
31423 * grub-mkimage (generate_image): New parameter config_path.
31424 (options): New option --config.
31425 (main): Parse --config option, and pass it to generate_image.
31426
cf353a47 314272009-05-14 Christian Franke <franke@computer.org>
31428
31429 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31430 This fixes build on Cygwin.
31431
3834887f 314322009-05-14 Pavel Roskin <proski@gnu.org>
31433
31434 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31435 jump. This saves two bytes, so the typical case of 2 swapped
31436 drives would fit 32 bytes.
31437
8090fc01 314382009-05-13 Pavel Roskin <proski@gnu.org>
31439
ac963883 31440 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31441 grub_uint32_t to avoid a warning.
31442
8090fc01 31443 * loader/i386/linux.c (allocate_pages): When assigning
31444 real_mode_mem, cast through grub_size_t to fix a warning. The
31445 code already makes sure that the value would fit a pointer.
31446 (grub_linux_setup_video): Cast render_target->data to
31447 grub_size_t to fix a warning.
31448
18f547ad 314492009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 31450
31451 * commands/i386/pc/drivemap.c: New file - implement drivemap
31452 command.
31453 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31454 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31455
6f6a8b28 314562009-05-13 Pavel Roskin <proski@gnu.org>
31457
31458 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31459 embedding_area_exists.
31460
15fbf4c4 314612009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31462
31463 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31464 it easier to understand / work with.
59978c8a 31465 Improve warning messages for cases where there's no embedding area,
31466 or when it is too small (or core.img too large).
15fbf4c4 31467
238e871f 314682009-05-13 Pavel Roskin <proski@gnu.org>
31469
0ab3a9a4 31470 * loader/i386/pc/multiboot2.c: Add necessary includes for
31471 grub_multiboot2_real_boot().
31472
a2c8c5f8 31473 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31474 PX record is always little-endian. We only need the lower 2
31475 bytes of the mode.
31476
faec96af 31477 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31478 facilitate code reuse.
31479 (grub_cpio_mount): Use "struct head", not a char buffer. This
31480 fixes a warning reported by gcc 4.4.
31481
238e871f 31482 * kernel/disk.c (grub_disk_read): Use void pointer for the
31483 buffer.
31484 (grub_disk_write): Use const void pointer for the buffer.
31485 Adjust all callers. Remove unnecessary casts.
31486
901d2f0c 314872009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31488
31489 * util/i386/pc/grub-install.in: Update copyright year.
31490
18f547ad 314912009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 31492
31493 gptsync
31494
31495 * commands/gptsync.c: new file
31496 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31497 (gptsync_mod_SOURCES): new variable
31498 (gptsync_mod_CFLAGS): likewise
31499 (gptsync_mod_LDFLAGS): likewise
18f547ad 31500 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 31501 new definition
31502 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31503 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31504 * conf/i386-ieee1275.rmk: likewise
31505 * conf/i386-pc.rmk: likewise
31506 * conf/powerpc-ieee1275.rmk: likewise
31507
b4ba690a 315082009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31509
31510 Fixed grub-emu
31511
31512 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31513 (grub_dl_ref): likewise
31514
317e1a44 315152009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31516
31517 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31518 split in two functions (one for msdos and one for gpt).
31519
041b8094 315202009-05-08 Pavel Roskin <proski@gnu.org>
31521
752473c2 31522 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31523 not modified.
31524
041b8094 31525 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31526 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31527 Initialize them with -1. Add sanity check for bad1. Eliminate
31528 nerr variable.
31529
172800ce 315302009-05-08 David S. Miller <davem@davemloft.net>
31531
31532 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31533
29aa5e81 315342009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31535
31536 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 31537 existence.
29aa5e81 31538
96613b62 315392009-05-05 Felix Zielcke <fzielcke@z-51.de>
31540
31541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 31542 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 31543
eef73c8a 315442009-05-05 David S. Miller <davem@davemloft.net>
31545
31546 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31547
119494b5 315482009-05-05 Pavel Roskin <proski@gnu.org>
31549
31550 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31551 of grub_dl_ref() and grub_dl_unref().
31552 * commands/parttool.c: Remove preprocessor conditionals around
31553 grub_dl_ref() and grub_dl_unref().
31554 * fs/affs.c: Likewise.
31555 * fs/afs.c: Likewise.
31556 * fs/cpio.c: Likewise.
31557 * fs/ext2.c: Likewise.
31558 * fs/fat.c: Likewise.
31559 * fs/hfs.c: Likewise.
31560 * fs/hfsplus.c: Likewise.
31561 * fs/iso9660.c: Likewise.
31562 * fs/jfs.c: Likewise.
31563 * fs/minix.c: Likewise.
31564 * fs/ntfs.c: Likewise.
31565 * fs/reiserfs.c: Likewise.
31566 * fs/sfs.c: Likewise.
31567 * fs/udf.c: Likewise.
31568 * fs/ufs.c: Likewise.
31569 * fs/xfs.c: Likewise.
31570 * include/grub/dl.h: Likewise.
31571 * loader/xnu.c: Likewise.
31572
de5fd76e 315732009-05-04 Pavel Roskin <proski@gnu.org>
31574
31575 * commands/acpi.c: Remove unused variable my_mod.
31576 * partmap/amiga.c: Likewise.
31577 * partmap/apple.c: Likewise.
31578 * partmap/gpt.c: Likewise.
31579 * partmap/pc.c: Likewise.
31580 * partmap/sun.c: Likewise.
31581 * term/gfxterm.c: Likewise.
31582 * term/i386/pc/vesafb.c: Likewise.
31583 * term/i386/pc/vga.c: Likewise.
31584
983598ad 315852009-05-04 David S. Miller <davem@davemloft.net>
31586
31587 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31588 pointer args to grub_ieee1275_get_property().
31589
8aadec43 31590 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31591
9554b15e 31592 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31593 devices, and do not traverse down under controller nodes.
31594
67e23c90 31595 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31596 (grub_ofdisk_open): Use it to un-escape "," characters.
31597 * kern/disk.c (find_part_sep): New.
31598 (grub_disk_open): Use it to find the first non-escaped ','
31599 character in the disk name.
31600 * util/ieee1275/devicemap.c (escape_of_path): New.
31601 (grub_util_emit_devicemap_entry): Use it.
31602 * util/sparc64/ieee1275/grub-install.in: Update script to
31603 strip partition specifiers properly by not triggering on
31604 '\' escaped ',' characters.
31605
74bfdd2f 316062009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31607
31608 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31609 to 0x300.
31610 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31611 resolutions.
31612 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31613 on documentation from Wikipedia).
31614
4241d2b1 316152009-05-04 Pavel Roskin <proski@gnu.org>
31616
31617 * disk/ata.c: Spelling fixes.
31618 * disk/raid.c: Likewise.
31619 * disk/usbms.c: Likewise.
31620 * disk/dmraid_nvidia.c: Likewise.
31621 * kern/ieee1275/openfw.c: Likewise.
31622 * kern/ieee1275/init.c: Likewise.
31623 * kern/ieee1275/cmain.c: Likewise.
31624 * boot/i386/pc/cdboot.S: Likewise.
31625 * video/readers/png.c: Likewise.
31626 * video/i386/pc/vbe.c: Likewise.
31627 * fs/udf.c: Likewise.
31628 * fs/hfs.c: Likewise.
31629 * fs/reiserfs.c: Likewise.
31630 * efiemu/runtime/efiemu.c: Likewise.
31631 * efiemu/main.c: Likewise.
31632 * efiemu/mm.c: Likewise.
31633 * include/grub/elf.h: Likewise.
31634 * include/grub/xnu.h: Likewise.
31635 * include/grub/usbdesc.h: Likewise.
31636 * include/grub/usb.h: Likewise.
31637 * include/grub/script_sh.h: Likewise.
31638 * include/grub/lib/LzmaEnc.h: Likewise.
31639 * include/grub/efiemu/efiemu.h: Likewise.
31640 * include/grub/command.h: Likewise.
31641 * normal/menu.c: Likewise.
31642 * normal/main.c: Likewise.
31643 * normal/datetime.c: Likewise.
31644 * bus/usb/uhci.c: Likewise.
31645 * mmap/i386/uppermem.c: Likewise.
31646 * mmap/mmap.c: Likewise.
31647 * commands/acpi.c: Likewise.
31648 * commands/test.c: Likewise.
31649 * partmap/apple.c: Likewise.
31650 * font/font.c: Likewise.
31651 * loader/sparc64/ieee1275/linux.c: Likewise.
31652 * loader/macho.c: Likewise.
31653 * loader/i386/bsd_trampoline.S: Likewise.
31654 * loader/i386/bsd.c: Likewise.
31655 * loader/xnu.c: Likewise.
31656 * term/i386/pc/vesafb.c: Likewise.
31657 * term/usb_keyboard.c: Likewise.
31658 * util/resolve.c: Likewise.
31659 * util/getroot.c: Likewise.
31660
0cfc0083 316612009-05-04 Felix Zielcke <fzielcke@z-51.de>
31662
31663 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31664
7c1d00cd 316652009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31666
31667 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31668 build error.
31669
b01f0548 316702009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31671
31672 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31673 parameter only available on BIOS.
31674
ecc3eb22 316752009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31676
31677 Removed wrong semicolon in declaration
31678
31679 * grub/misc.h (grub_dprintf): remove semicolon
31680
112972a9 316812009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31682
31683 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31684 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31685 is done by grub_cmd_linux() now).
31686 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31687 restore video to text mode.
31688 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31689 indicates lack of "vga=" parameter. "vga=0" is mapped to
31690 `GRUB_LINUX_VID_MODE_NORMAL'.
31691
afd5c115 316922009-05-04 Felix Zielcke <fzielcke@z-51.de>
31693
31694 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31695 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31696 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 31697 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 31698 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31699 `grub_script.tab.c'.
31700
31701 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31702 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31704 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31705 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31706
faa517ce 31707 * Makefile.in: Remove duplicated 2008 in Copyright line.
31708
ae0c0bdc 317092009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31710
473d1e45 31711 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 31712 unconditionally.
31713 * include/grub/util/misc.h (grub_util_warn): New declaration.
31714
31715 * util/i386/pc/grub-install.in: Understand --force and pass it down
31716 to grub-setup.
31717
31718 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31719 down to setup().
31720 (setup): Improve error messages and add warnings when requested to
31721 install in odd layouts. Refuse to install using blocklists unless
31722 --force was set.
31723
18f547ad 317242009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 31725
31726 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31727
6d260daa 317282009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31729
31730 Updated copyright year
31731
31732 * fs/hfsplus.c: updated copyright year
18f547ad 31733
69f853f8 317342009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31735
31736 HFS+ UUID
31737
18f547ad 31738 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 31739 in the space previously used by unused3
31740 (grub_hfsplus_uuid): new function
31741 (grub_hfsplus_fs): added uuid field
31742
4c402e73 317432009-05-03 Pavel Roskin <proski@gnu.org>
31744
31745 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31746 suppress warnings. It's no longer needed.
31747 * disk/host.c: Likewise.
31748 * disk/ata_pthru.c: Likewise.
31749 * disk/loopback.c: Likewise.
31750 * hook/datehook.c: Likewise.
31751 * parttool/pcpart.c: Likewise.
31752 * fs/i386/pc/pxe.c: Likewise.
31753 * fs/ntfscomp.c: Likewise.
31754 * efiemu/main.c: Likewise.
31755 * mmap/mmap.c: Likewise.
31756 * commands/crc.c: Likewise.
31757 * commands/hexdump.c: Likewise.
31758 * commands/hdparm.c: Likewise.
31759 * commands/acpi.c: Likewise.
31760 * commands/echo.c: Likewise.
31761 * commands/minicmd.c: Likewise.
31762 * commands/blocklist.c: Likewise.
31763 * commands/memrw.c: Likewise.
31764 * commands/loadenv.c: Likewise.
31765 * commands/usbtest.c: Likewise.
31766 * commands/lsmmap.c: Likewise.
31767 * commands/boot.c: Likewise.
31768 * commands/parttool.c: Likewise.
31769 * commands/configfile.c: Likewise.
31770 * commands/search.c: Likewise.
31771 * commands/ieee1275/suspend.c: Likewise.
31772 * commands/cat.c: Likewise.
31773 * commands/i386/pc/pxecmd.c: Likewise.
31774 * commands/i386/pc/play.c: Likewise.
31775 * commands/i386/pc/halt.c: Likewise.
31776 * commands/i386/pc/vbeinfo.c: Likewise.
31777 * commands/i386/pc/vbetest.c: Likewise.
31778 * commands/lspci.c: Likewise.
31779 * commands/date.c: Likewise.
31780 * commands/handler.c: Likewise.
31781 * commands/ls.c: Likewise.
31782 * commands/test.c: Likewise.
31783 * commands/cmp.c: Likewise.
31784 * commands/efi/loadbios.c: Likewise.
31785 * commands/efi/fixvideo.c: Likewise.
31786 * commands/halt.c: Likewise.
31787 * commands/help.c: Likewise.
31788 * commands/reboot.c: Likewise.
31789 * hello/hello.c: Likewise.
31790 * script/sh/main.c: Likewise.
31791 * loader/xnu.c: Likewise.
31792 * term/terminfo.c: Likewise.
31793 * term/i386/pc/serial.c: Likewise.
31794 * term/usb_keyboard.c: Likewise.
31795
515b5079 317962009-05-03 David S. Miller <davem@davemloft.net>
31797
31798 * normal/menu.c: Include grub/parser.h
31799
dfc31a22 318002009-05-03 Pavel Roskin <proski@gnu.org>
31801
2fee74f1 31802 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31803 not char*.
31804 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31805 Suggested by Javier Martín <lordhabbit@gmail.com>
31806
dfc31a22 31807 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31808 efiemu??.o doesn't exist.
31809 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31810 copying.
31811
18f547ad 318122009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 31813
31814 FreeBSD 64-bit support
31815
18f547ad 31816 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 31817 and loader/i386/bsd_trampoline.S
31818 (bsd_mod_ASFLAGS): new variable
31819 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31820 (FREEBSD_MODTYPE_KERNEL64): likewise
31821 (grub_bsd64_trampoline_start): likewise
31822 (grub_bsd64_trampoline_end): likewise
31823 (grub_bsd64_trampoline_selfjump): likewise
31824 (grub_bsd64_trampoline_gdt): likewise
31825 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31826 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31827 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31828 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 31829 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 31830 of "attrib" member
31831 * loader/i386/bsd_pagetable.c: new file
31832 * loader/i386/bsd_trampoline.S: likewise
31833 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31834 (ALIGN_VAR): likewise
31835 (entry_hi): new variable
31836 (kern_end_mdofs): likewise
31837 (is_64bit): likewise
31838 (grub_freebsd_add_meta): use ALIGN_VAR
31839 (grub_e820_mmap): new declaration
31840 (grub_freebsd_add_mmap): new function
31841 (grub_freebsd_add_meta_module): support 64 bit kernels
31842 (grub_freebsd_list_modules): use ALIGN_VAR
31843 (gdt_descriptor): new declaration
31844 (grub_freebsd_boot): support 64 bit kernels
31845 (grub_bsd_elf64_hook): new function
31846 (grub_bsd_load_elf): support elf64
31847
038c5720 318482009-05-03 Bean <bean123ch@gmail.com>
31849
31850 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31851 after we get the result of if statement.
31852
fc45fb58 318532009-05-03 Bean <bean123ch@gmail.com>
31854
31855 * Makefile.in (enable_efiemu): New variable.
31856
31857 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31858 set.
31859 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31860 path.
31861 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31862 path, add -mno-red-zone option.
31863 (efiemu64_s.o): Likewise.
31864 (efiemu64.o): Use macro $^ for source file.
31865
31866 * configure.ac (--enable-efiemu): New option.
31867
bbee0f2b 318682009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31869
31870 xnu support
31871
31872 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31873 (pkglib_MODULES): add xnu.mod
31874 (xnu_mod_SOURCES): new variable
31875 (xnu_mod_CFLAGS): likewise
31876 (xnu_mod_LDFLAGS): likewise
31877 (xnu_mod_ASFLAGS): likewise
31878 * conf/i386-pc.rmk: likewise
31879 * conf/x86_64-efi.rmk: likewise
7dd4a573 31880 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 31881 new declaration
31882 * include/grub/i386/macho.h: new file
31883 * include/grub/i386/xnu.h: likewise
31884 * include/grub/macho.h: likewise
31885 * include/grub/machoload.h: likewise
31886 * include/grub/x86_64/macho.h: likewise
31887 * include/grub/x86_64/xnu.h: likewise
31888 * include/grub/xnu.h: likewise
31889 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31890 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31891 * loader/i386/efi/xnu.c: new file
31892 * loader/i386/pc/xnu.c: likewise
31893 * loader/i386/xnu.c: likewise
31894 * loader/i386/xnu_helper.S: likewise
31895 * loader/macho.c: likewise
31896 * loader/xnu.c: likewise
31897 * loader/xnu_resume.c: likewise
31898 * util/grub-dumpdevtree: likewise
31899 * include/grub/i386/pit.h: include grub/err.h
31900 (grub_pit_wait): export
31901 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 31902
5caf964d 319032009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31904
31905 Efiemu
7dd4a573 31906
5caf964d 31907 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 31908 _linux_efi, linux_efi.
31909 new files in grub-emu
5caf964d 31910 new targets efiemu32.o and efiemu64.o
31911 * loader/linux_normal_efiemu.c: likewise
31912 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 31913 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 31914 files to copy
31915 * include/grub/autoefi.h: new file
7dd4a573 31916 * include/grub/i386/efiemu.h: likewise
5caf964d 31917 * include/grub/i386/pc/efiemu.h: likewise
31918 * include/grub/efi/api.h: add LL suffix when necessary
31919 new definitions relating to tables
31920 * include/grub/efiemu/efiemu.h: new file
31921 * include/grub/efiemu/runtime.h: likewise
31922 * efiemu/prepare.c: likewise
31923 * efiemu/loadcore_common.c: likewise
31924 * efiemu/loadcore64.c: likewise
31925 * efiemu/runtime/efiemu.sh: likewise
31926 * efiemu/runtime/efiemu.S: likewise
31927 * efiemu/runtime/efiemu.c: likewise
31928 * efiemu/runtime/config.h: likewise
31929 * efiemu/prepare32.c: likewise
31930 * efiemu/main.c: likewise
31931 * efiemu/modules/pnvram.c: likewise
31932 * efiemu/modules/i386: likewise
31933 * efiemu/modules/i386/pc: likewise
31934 * efiemu/modules/acpi.c: likewise
31935 * efiemu/i386/pc/cfgtables.c: likewise
31936 * efiemu/i386/loadcore64.c: likewise
31937 * efiemu/i386/loadcore32.c: likewise
31938 * efiemu/prepare64.c: likewise
31939 * efiemu/loadcore.c: likewise
31940 * efiemu/symbols.c: likewise
31941 * efiemu/mm.c: likewise
31942 * efiemu/loadcore32.c: likewise
7dd4a573 31943
319442009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 31945
31946 ACPI spoofing
31947
31948 * commands/acpi.c: new file
31949 * commands/i386/pc/acpi.c: likewise
31950 * commands/efi/acpi.c: likewise
31951 * include/grub/acpi.h: likewise
31952 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31953 (acpi_mod_SOURCES): new variable
31954 (acpi_mod_CFLAGS): likewise
31955 (acpi_mod_LDFLAGS): likewise
31956 * conf/i386-efi.rmk: likewise
31957 * conf/x86_64-efi.rmk: likewise
31958
7dd4a573 319592009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 31960
31961 Missing part from mmap patch
31962
31963 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31964 (grub_mmap_unregister)
31965 (grub_mmap_free_and_unregister): use grub_mmap_register
31966
7dd4a573 319672009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 31968
31969 Mmap services
31970
31971 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31972 * loader/i386/linux.c (find_mmap_size): likewise
31973 (allocate_pages): likewise
31974 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31975 (grub_fill_multiboot_mmap): likewise
31976 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31977 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31978 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31979 (OPENBSD_MMAP_RESERVED): likewise
31980 * include/grub/i386/pc/memory.h: include grub/memory.h
31981 (grub_lower_mem): removed
31982 (grub_upper_mem): likewise
31983 (GRUB_MACHINE_MEMORY_ACPI): new definition
31984 (GRUB_MACHINE_MEMORY_NVS): likewise
31985 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31986 (GRUB_MACHINE_MEMORY_HOLE): likewise
31987 (grub_machine_mmap_register): likewise
31988 (grub_machine_mmap_unregister): likewise
31989 (grub_machine_get_upper): likewise
31990 (grub_machine_get_lower): likewise
31991 (grub_machine_get_post64): likewise
31992 * include/grub/i386/efi/memory.h: new file
31993 * include/grub/x86_64/efi/memory.h: likewise
31994 * include/grub/efi/memory.h: likewise
31995 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31996 (mmap_mod_SOURCES): new variable
31997 (mmap_mod_LDFLAGS): likewise
31998 (mmap_mod_ASFLAGS): likewise
31999 * conf/i386-coreboot.rmk: likewise
32000 * conf/i386-ieee1275.rmk: likewise
32001 * conf/i386-efi.rmk: likewise
32002 * conf/x86_64-efi.rmk: likewise
32003 * include/grub/types.h (UINT_TO_PTR): new macro
32004 (PTR_TO_UINT32): likewise
32005 (PTR_TO_UINT64): likewise
32006 * include/grub/memory.h: new file
32007 * mmap/i386/pc/mmap.c: likewise
32008 * mmap/i386/pc/mmap_helper.S: likewise
32009 * mmap/i386/uppermem.c: likewise
32010 * mmap/mmap.c: likewise
32011 * mmap/efi/mmap.c: likewise
7dd4a573 32012 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 32013 grub_upper_mem
32014 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32015 (grub_upper_mem): likewise
32016 (grub_machine_init): don't use grub_upper_mem,
32017 make grub_lower_mem local
32018 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32019 grub_mmap_iterate and grub_mmap_get_upper
32020 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32021
d558e6b5 320222009-05-02 Bean <bean123ch@gmail.com>
32023
32024 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32025 script/sh/parser.y.
32026 (pkglib_MODULES): Add normal.mod and sh.mod.
32027 (normal_SOURCES): New variable.
32028 (normal_mod_CFLAGS): Likewise.
32029 (normal_mod_LDFLAGS): Likewise.
32030 (sh_mod_SOURCES): Likewise.
32031 (sh_mod_CFLAGS): Likewise.
32032 (sh_mod_LDFLAGS): Likewise.
32033
32034 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32035 script/sh/lexer.c_DEPENDENCIES.
32036 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32037 kern/rescue_reader.c and kern/rescue_parser.c.
32038 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32039 (grub_emu_SOURCES): Change source files.
32040 (pkglib_MODULES): Remove normal.mod.
32041 (normal_SOURCES): Removed.
32042 (normal_mod_CFLAGS): Likewise.
32043 (normal_mod_LDFLAGS): Likewise.
32044 * conf/i386-coreboot.rmk: Likewise.
32045 * conf/i386-efi.rmk: Likewise.
32046 * conf/i386-ieee1276.rmk: Likewise.
32047 * conf/powerpc-ieee1275.rmk: Likewise.
32048 * conf/sparc64-ieee1275.rmk: Likewise.
32049 * conf/x86_64-efi.rmk: Likewise.
32050
32051 * include/grub/command.h (grub_command_execute): New inline function.
32052
32053 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32054
32055 * include/grub/normal.h: Remove <grub/setjmp.h>.
32056 (grub_fs_module_list): Moved to normal/autofs.c.
32057 (grub_exit_env): Removed.
32058 (grub_command_execute): Likewise.
32059 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32060 parameter script.
32061 (read_command_list): New function declaration.
32062 (read_fs_list): Likewise.
32063
32064 * include/parser.h: Include <grub/reader.h>.
32065 (grub_parser_split_cmdline): Change type of getline parameter.
32066 (grub_parser): New structure.
32067 (grub_parser_class): New variable.
32068 (grub_parser_execute): New function declaration.
32069 (grub_register_rescue_parser): Likewise.
32070 (grub_parser_register): New inline function.
32071 (grub_parser_unregister): Likewise.
32072 (grub_parser_get_current): Likewise.
32073 (grub_parser_set_current): Likewise.
32074
32075 * include/grub/reader.h: New file.
32076 * kern/reader.c: Likewise.
32077 * kern/rescue_parser.c: Likewise.
32078 * kern/rescue_reader.c: Likewise.
32079 * normal/autofs.c: Likewise.
32080 * normal/dyncmd.c: Likewise.
32081
32082 * include/grub/rescue.h: Removed.
32083 * normal/command.h: Likewise.
32084
32085 * include/grub/script.h: Moved to ...
32086 * include/grub/script_sh.h: ... Moved here.
32087 * normal/execute.c: Moved to ...
32088 * script/sh/execute.c: ... Moved here.
32089 * normal/function.c: Moved to ...
32090 * script/sh/function.c: ... Moved here.
32091 * normal/lexer.c: Moved to ...
32092 * script/sh/lexer.c: ... Moved here.
32093 * normal/parser.y: Moved to ...
32094 * script/sh/parser.y: ... Moved here.
32095 * normal/script.c: Moved to ...
32096 * script/sh/script.c: ... Moved here.
32097
32098 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32099 <grub/reader.h>.
32100 (grub_exit_env): Removed.
32101 (fs_module_list): Moved to normal/autofs.c.
32102 (grub_file_getline): Don't handle comment here.
32103 (free_menu): Skip removed field entry->commands.
32104 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32105 script parameter.
32106 (read_config_file): Removed nested parameter, change getline function.
32107 (grub_enter_normal_mode): Removed.
32108 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32109 (read_command_list): Likewise.
32110 (autoload_fs_module): Moved to normal/autofs.c.
32111 (read_fs_list): Likewise.
32112 (reader_nested): New variable.
32113 (grub_normal_execute): Run parser.sh to switch to sh parser.
32114 (grub_cmd_rescue): Removed.
32115 (cmd_normal): Removed.
32116 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32117 rescue command.
32118 (grub_cmdline_run): New function.
32119 (grub_normal_reader_init): Likewise.
32120 (grub_normal_read_line): Likewise.
32121 (grub_env_write_pager): Likewise.
32122 (cmdline): New variable.
32123 (grub_normal_reader): Likewise.
32124 (GRUB_MOD_INIT): Register normal reader and set as current, register
32125 pager hook, register normal command with grub_register_command_prio,
32126 so that it won't show up in command.lst.
32127 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32128 grub_fs_autoload_hook.
32129
32130 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32131 (grub_menu_execute_entry): Replace grub_script_execute with
32132 grub_parser_execute, change parameter to grub_command_execute.
32133
32134 * normal/menu_text.c: Remove <grub/script.h>.
32135
32136 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32137 and <grub/parser.h>.
32138 (run): Change editor_getline to use new parser interface. Change
32139 parameter to grub_command_execute.
32140
32141 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32142 <grub/reader.h> and <grub/parser.h>.
32143 (grub_load_normal_mode): Execute normal command.
32144 (grub_main): Call grub_register_core_commands,
32145 grub_register_rescue_parser and grub_register_rescue_reader, use
32146 grub_reader_loop to enter input loop.
32147
7dd4a573 32148 * kern/parser.c (grub_parser_split_cmdline): Change type of
32149 getline parameter.
d558e6b5 32150 (grub_parser_class): New variable.
32151 (grub_parser_execute): New function.
32152
32153 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32154 * loader/multiboot2.c: Likewise.
32155 * loader/sparc64/ieee1275/linux.c: Likewise.
32156
32157 * util/grub-emu.c (read_command_list): New dummy function.
32158
18db813d 321592009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32160
32161 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32162 count to 16 for CCISS and IDA.
32163
6c67de15 321642009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32165
32166 * normal/menu_text.c (grub_wait_after_message): Print a newline
32167 after waiting for user input.
32168
32169 * loader/i386/linux.c: Include `<grub/normal.h>'.
32170 (grub_cmd_linux): Improve the error message about `ask' mode, by
32171 waiting for user input so it's not missed (we can do this, since
32172 user requested interaction).
32173
d9dc87b0 321742009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32175
32176 Added missing lst to grub-mkrescue
32177
32178 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32179 and ${input_dir}/parttool.lst
32180
ac8a2baa 321812009-04-30 David S. Miller <davem@davemloft.net>
32182
ad22a610 32183 * util/hostdisk.c (device_is_wholedisk): New function.
32184 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32185 zero only if device_is_wholedisk() returns true.
32186
6966215d 32187 * util/hostdisk.c (convert_system_partition_to_system_disk):
32188 Handle virtual disk devices named /dev/vdiskX as found on sparc
32189 and powerpc.
32190
ac8a2baa 32191 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32192 lettered partition specifier is found, convert to numbered.
32193
979b4fb4 321942009-04-29 David S. Miller <davem@davemloft.net>
32195
e2bf39b2 32196 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32197 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32198
3c64e104 32199 * normal/command.c: Add missing newline at end of file.
32200
979b4fb4 32201 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32202 warnings.
32203 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32204 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32205 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32206 ihandles have a 32-bit type but need to be stored in a "void *".
32207
136d9f82 322082009-04-28 Pavel Roskin <proski@gnu.org>
32209
9459c306 32210 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32211 not disk. Adjust all dependencies.
2e08a26a 32212 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 32213 grub_disk_close().
32214
136d9f82 32215 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32216 parent's partition, don't copy it by reference, as it gets freed
32217 on close.
32218
7dd4a573 322192009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 32220
32221 Preboot hooks support
32222
32223 * commands/boot.c (struct grub_preboot_t): new declaration
32224 (preboots_head): new variable
32225 (preboots_tail): likewise
32226 (grub_loader_register_preboot_hook): new function
32227 (grub_loader_unregister_preboot_hook): likewise
32228 (grub_loader_set): launch preboot hooks
32229 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32230 (grub_loader_register_preboot_hook): new declaration
32231 (grub_loader_unregister_preboot_hook): likewise
32232
5af922b5 322332009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32234
32235 Warning fix
32236
7dd4a573 32237 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 32238 calling grub_dprintf
32239
a5562c30 322402009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32241
32242 Bug and warning fixes
32243
7dd4a573 32244 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 32245 declaration
32246 * commands/test.c (test_parse): fixed bug with file tests and corrected
32247 declaration of find_file
32248
4006f85c 322492009-04-26 Pavel Roskin <proski@gnu.org>
32250
32251 * Makefile.in: Don't install empty manual pages if help2man is
32252 missing. Use help2man option for output, not shell redirection.
32253
5c77c3de 322542009-04-26 David S. Miller <davem@davemloft.net>
32255
32256 * util/grub-mkdevicemap.c (make_device_map): Add missing
32257 NESTED_FUNC_ATTR to process_device().
32258
033b10a8 322592009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32260
32261 Test command
32262
32263 * commands/test.c: rewritten to use bash-like test
32264
e4343593 322652009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32266
32267 Parttool autoloading and improvements
32268
7dd4a573 32269 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 32270 (parttool.lst): new target
32271 * genmk.rb: generate parttool-*
32272 (CLEANFILES): add #{parttool}
32273 (PARTTOOLFILES): new variable
32274 * genparttoollist.sh: new file
7dd4a573 32275 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 32276 (grub_pcpart_type): likewise
32277 * commands/parttool.c (helpmsg): new variable
32278 (grub_cmd_parttool): output help if not enough arguments are supplied
32279 autoload modules
32280 (GRUB_MOD_INIT(parttool)): use helpmsg
32281
0d312500 322822009-04-24 David S. Miller <davem@davemloft.net>
32283
7dd4a573 32284 Avoiding opening same device multiple times in device iterator.
0d312500 32285
32286 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 32287 and use it to build a list of partitions in iterate_disk() and
0d312500 32288 iterate_partition().
32289
ac20caff 32290 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32291 on disk->data.
32292
0dcf7495 32293 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32294 grub_devalias_iterate() result instead of unconditional 0.
32295 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32296 Also, capture hook return value, either directly or via
32297 grub_children_iterate(), and propagate to caller.
32298 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32299 grub_children_iterate): Return value is now 'int' instead of
32300 'grub_err_t'.
32301 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32302 like a proper iterator, stopping when hooks return non-zero.
32303 (grub_devalias_iterate): Likewise.
32304
c8c08833 323052009-04-23 David S. Miller <davem@davemloft.net>
32306
32307 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32308
f01005a8 323092009-04-22 David S. Miller <davem@davemloft.net>
32310
32311 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32312 is larger than address_cells, use that value for address_cells too.
32313
4e8269da 32314 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32315 IEEE1275_MAX_PATH_LEN): Define.
32316 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32317 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32318 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32319 'devtype'. Explicitly NULL terminate devalias expansion.
32320
a1447506 32321 * util/sparc64/ieee1275/misc.c: New file.
32322 * util/sparc64/ieee1275/grub-setup.c: New file.
32323 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32324 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32325 * util/sparc64/ieee1275/grub-install.in: New file.
32326 * util/ieee1275/ofpath.c: New file.
32327 * util/ieee1275/devicemap.c: New file.
32328 * util/devicemap.c: New file.
32329 * util/deviceiter.c: New file.
32330 * kern/sparc64/ieee1275/init.c: New file.
32331 * include/grub/util/ofpath.h: New file.
32332 * include/grub/util/deviceiter.h: New file.
32333 * util/grub-mkdevicemap.c: Include deviceiter.h.
32334 Implement using grub_util_emit_devicemap_entry and
32335 grub_util_iterate_devices.
32336 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32337 util/devicemap.c into grub-mkdevicemap
32338 * conf/i386-efi.rmk: Likewise.
32339 * conf/i386-ieee1275.rmk: Likewise.
32340 * conf/i386-pc.rmk: Likewise.
32341 * conf/powerpc-ieee1275.rmk: Likewise.
32342 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32343 images and installation utilities. Build kernel as image
32344 instead of as elf binary. Use common rules as much as possible.
32345
7dd4a573 323462009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 32347
32348 Correct GPT definition
32349
7dd4a573 32350 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 32351 of "attrib" member
32352
c6c5219f 323532009-04-19 Felix Zielcke <fzielcke@z-51.de>
32354
32355 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32356
0552ff9f 323572009-04-19 David S. Miller <davem@davemloft.net>
32358
32359 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32360 (grub_rescue_cmd_linux): Rename to...
32361 (grub_cmd_linux): and fix prototype.
32362 (grub_rescue_cmd_initrd): Rename to...
32363 (grub_cmd_initrd): and fix prototype.
32364 (cmd_linux, cmd_initrd): New.
32365 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32366 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32367
d1a282fc 323682009-04-17 Pavel Roskin <proski@gnu.org>
32369
07c5039f 32370 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32371 format.
32372 (grub_ohci_transfer): Likewise.
32373
b012002d 32374 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32375
1bc09c35 32376 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32377 return without a value. Fix inconsistent indentation.
32378
e0ff9126 32379 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32380 match struct grub_fs.
32381
d1a282fc 32382 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32383 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32384 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32385 * commands/lspci.c (grub_lspci_iter): Likewise.
32386
a96df3f2 323872009-04-16 Bean <bean123ch@gmail.com>
32388
32389 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32390 value.
32391
41bb0fe9 323922009-04-15 Pavel Roskin <proski@gnu.org>
32393
32394 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32395 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32396 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32397 definitions.
32398
596c6970 323992009-04-15 Felix Zielcke <fzielcke@z-51.de>
32400
32401 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 32402 that no multiple data or metadata areas are supported and `Unknown
596c6970 32403 metadata header'.
32404
7dd4a573 324052009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 32406
32407 Move loader out of the kernel
32408
32409 * kern/loader.c: moved to ...
32410 * commands/boot.c: ... moved here
32411 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32412 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32413 * include/grub/kernel.h (grub_machine_fini): export
32414 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32415 (grub_loader_set): likewise
32416 (grub_loader_unset): likewise
32417 (grub_loader_boot): likewise
32418 * conf/common.rmk: new module boot.mod
32419 (pkglib_MODULES): add boot.mod
32420 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32421 (grub_emu_SOURCES): likewise
32422 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32423 (grub_emu_SOURCES): likewise
32424 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32425 (grub_emu_SOURCES): likewise
32426 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32427 (grub_emu_SOURCES): likewise
32428 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32429 (grub_emu_SOURCES): likewise
7dd4a573 32430 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32431 (grub_emu_SOURCES): likewise
0d5d5653 32432 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 32433 (grub_emu_SOURCES): likewise
0d5d5653 32434
7dd4a573 324352009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 32436
32437 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 32438
5999d619 32439 * kern/misc.c (grub_itoa): Removed function
32440 (grub_ltoa): likewise
32441 (grub_vsprintf): use grub_lltoa
32442
7dd4a573 324432009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 32444
32445 Restore grub-emu
32446
32447 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32448 * conf/i386-coreboot.rmk: likewise
32449 * conf/i386-ieee1275.rmk: likewise
32450 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 32451
20318222 324522009-04-15 Felix Zielcke <fzielcke@z-51.de>
32453
32454 * INSTALL: Add that `./autogen.sh' needs to be run before
32455 `./configure.'.
32456
d05f0df3 324572009-04-14 Bean <bean123ch@gmail.com>
32458
32459 * Makefile.in (pkglib_DATA): Add handler.lst.
32460 (handler.lst): New rule.
32461
32462 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32463 * conf/i386-coreboot.rmk: Likewise.
32464 * conf/i386-ieee1275.rmk: Likewise.
32465 * conf/i386-efi.rmk: Likewise.
32466 * conf/x86_64-efi.rmk: Likewise.
32467 * conf/powerpc-ieee1275.rmk: Likewise.
32468 * conf/sparc64-ieee1275.rmk: Likewise.
32469
32470 * genhandlerlist.sh: New file.
32471
32472 * genmk.rb: Add rules to generate handler.lst.
32473
32474 * include/grub/normal.h (grub_file_getline): New function definition.
32475 (read_handler_list): Likewise.
32476 (free_handler_list): Likewise.
32477
32478 * include/grub/term.h (grub_term_register_input): Add name parameter
32479 for auto generation of handler.lst.
32480 (grub_term_register_output): Likewise.
32481
32482 * normal/handler.c: New file.
32483
32484 * normal/main.c (get_line): Renamed to grub_file_getline.
32485 (read_config_file): Use the newly renamed grub_file_getline.
32486 (read_command_list): Likewise.
32487 (read_fs_list): Likewise.
32488 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32489 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32490
32491 * term/efi/console.c (grub_console_init): Add name parameter for auto
32492 generation of handler.lst.
32493 * term/gfxterm.c: Likewise.
32494 * term/i386/pc/at_keyboard.c: Likewise.
32495 * term/i386/pc/console.c: Likewise.
32496 * term/i386/pc/serial.c: Likewise.
32497 * term/i386/pc/vesafb.c: Likewise.
32498 * term/i386/pc/vga.c: Likewise.
32499 * term/i386/pc/vga_text.c: Likewise.
32500 * term/ieee1275/ofconsole.c: Likewise.
32501 * term/usb_keyboard.c: Likewise.
32502
33c846be 325032009-04-14 Bean <bean123ch@gmail.com>
32504
32505 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32506 properly with null character.
32507
4484e01e 325082009-04-14 Felix Zielcke <fzielcke@z-51.de>
32509
32510 * configure: Remove.
32511 * config.h.in: Likewise.
f93d668e 32512 * stamp-h.in: Likewise.
4484e01e 32513 * DISTLIST: Likewise.
32514 * conf/common.mk: Likewise.
32515 * conf/i386-coreboot.mk: Likewise.
32516 * conf/i386-efi.mk: Likewise.
32517 * conf/i386-ieee1275.mk: Likewise.
32518 * conf/i386.mk: Likewise.
32519 * conf/i386-pc.mk: Likewise.
32520 * conf/powerpc-ieee1275.mk: Likewise.
32521 * conf/sparc64-ieee1275.mk: Likewise.
32522 * conf/x86_64-efi.mk: Likewise.
32523
32524 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32525 develop on GRUB.
32526
7dd4a573 325272009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 32528 David S. Miller <davem@davemloft.net>
32529
32530 * util/hostdisk.c (make_device_name): Fix buffer length
32531 calculations.
32532
e25b5a8c 325332009-04-14 Felix Zielcke <fzielcke@z-51.de>
32534
32535 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32536 <sys/param.h> and <sys/sysctl.h>.
32537 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32538 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32539 opening the device and reset them afterwards.
32540
1f1f580c 325412009-04-13 Pavel Roskin <proski@gnu.org>
32542
32543 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32544 Reported by John Stanley <jpsinthemix@verizon.net>
32545
7ebc2d6b 325462009-04-13 Robert Millan <rmh@aybabtu.com>
32547
32548 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 32549 that name for menuentries when appropriate.
7ebc2d6b 32550
d8ba3667 325512009-04-13 Felix Zielcke <fzielcke@z-51.de>
32552
32553 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32554
cba416eb 325552009-04-13 Robert Millan <rmh@aybabtu.com>
32556
32557 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32558 to Linux, simply abort telling the user it's no longer supported.
32559
a547a745 325602009-04-13 Felix Zielcke <fzielcke@z-51.de>
32561
32562 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 32563 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 32564 `freebsd_loadenv' only when devices.hints exist.
32565
232a769c 325662009-04-13 Pavel Roskin <proski@gnu.org>
32567
32568 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32569
c3012039 325702009-04-13 Felix Zielcke <fzielcke@z-51.de>
32571
32572 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32573 partition number.
32574 (grub_drive): Likewise.
32575
234022fe 325762009-04-13 David S. Miller <davem@davemloft.net>
32577
32578 * kern/sparc64/ieee1275/ieee1275.c: New file.
32579 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32580 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32581 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32582 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32583 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32584 grub_ieee1275_alloc_physmem): Declare new exported functions.
32585
d8e1836c 32586 * include/grub/sparc64/ieee1275/loader.h: New file.
32587 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32588 * include/grub/sparc64/kernel.h: Likewise.
32589 * loader/sparc64/ieee1275/linux.c: Likewise.
32590
96bd81ec 32591 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32592 (grub_fstest_SOURCES): Likewise.
32593
6a4737e5 32594 * util/hostdisk.c (make_device_name): Do not make any assumptions
32595 about the length of drive names.
32596
1d7a72fd 32597 * kern/dl.c (grub_dl_load_file): Close file immediately when
32598 we are done using it.
32599
56bc2471 326002009-04-12 David S. Miller <davem@davemloft.net>
32601
32602 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32603 values. Noticed by Pavel Roskin.
32604
df38d0bb 32605 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32606 target compiler.
7dd4a573 32607
e382e93a 32608 * genmk.rb: Add more flexible image type specification, also
32609 pass --strip-unneeded to objcopy.
32610 * conf/i386-pc.rmk: Use *_FORMAT.
32611 * conf/i386-pc.mk: Rebuilt.
32612
f5dbbca9 32613 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32614 (OFDISK_HASH_SZ): Define.
32615 (ofdisk_hash): New hash table.
32616 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32617 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32618 instead of device phandle which is not unique.
32619
91c88b12 32620 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32621 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32622 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32623 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32624 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32625 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32626 GRUB_KERNEL_MACHINE_DATA_END): Define.
32627 (grub_kernel_image_size, grub_total_module_size): Declare.
32628
5b5d4aa5 326292009-04-12 Pavel Roskin <proski@gnu.org>
32630
7dd4a573 32631 * configure.ac: Change the logic when we check for target tools.
32632 Do it when the target is specified and it's different from the
32633 specified value of the host.
5b5d4aa5 32634
c91e1793 326352009-04-11 Felix Zielcke <fzielcke@z-51.de>
32636
32637 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32638 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32639 GNU/kFreeBSD. Check if a device is a character device. Use
32640 DIOCGMEDIASIZE to get the size.
32641 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32642 support for GNU/kFreeBSD.
32643 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32644 is a character device instead of a block device. Add support for
32645 FreeBSD device names.
32646
32647 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32648 is a character device instead of a block device.
32649
32650 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32651 is a character device instead of a block device.
32652
b1ac8644 326532009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32654
32655 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32656 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32657 FreeBSD. Check if a device is a character device. Use
32658 DIOCGMEDIASIZE to get the size.
32659 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32660 support for FreeBSD.
32661 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32662 is a character device instead of a block device. Add support for
32663 FreeBSD device names.
32664
32665 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32666 a character device instead of a block device.
32667 (grub_util_check_char_device): New function.
32668
32669 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32670 a character device instead of a block device.
32671
32672 * include/grub/util/getroot.h (grub_util_check_char_device): New
32673 prototype.
32674
a3f7515a 326752009-04-11 David S. Miller <davem@davemloft.net>
32676
32677 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32678 static libgcc.
32679 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32680 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32681 function, if present.
32682 (__bswapdi2): Likewise.
32683
0d44993d 32684 * include/grub/sparc64/ieee1275/boot.h: New file.
32685 * boot/sparc64/ieee1275/boot.S: Likewise.
32686 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32687
ed3d2bc2 32688 * kern/misc.c (grub_ltoa): New function.
32689 (grub_vsprintf): Use it to format 'long' integers.
32690
d3bfb59c 326912009-04-10 David S. Miller <davem@davemloft.net>
32692
32693 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32694 slots are of type grub_ieee1275_cell_t.
32695 (grub_nand_read): Likewise.
32696 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32697 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32698 macros are used to compare values in arg/ret block of the call.
32699 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32700 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32701 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32702 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32703 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32704 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32705 grub_ieee1275_close, grub_ieee1275_set_property,
32706 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32707 grub_ieee1275_cell_t.
32708 * kern/ieee1275/openfw.c (grub_map): Likewise.
32709 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32710 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32711
450e2238 32712 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32713 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32714 (grub_devalias_iterate): Likewise.
32715
7dd4a573 327162009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 32717
32718 UFS improvements
32719
32720 * fs/ufs.c (INODE_NBLOCKS): new definition
32721 (struct grub_ufs_dirent): added fields for non-BSD dirents
32722 (grub_ufs_get_file_block): fixed double indirect handling
32723 (grub_ufs_lookup_symlink): use more robust way to determine whether
32724 symlink is inline
32725 (grub_ufs_find_file): support for non-BSD dirents
32726 (grub_ufs_dir): support for non-BSD dirents
32727
e7e6862a 327282009-04-10 Bean <bean123ch@gnail.com>
32729
32730 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32731 attribute, otherwise the size would be wrong for i386 platform.
32732
32733 * include/grub/pci.h (grub_pci_read_word): New inline function.
32734 (grub_pci_read_byte): Likewise.
32735 (grub_pci_write): Likewise.
32736 (grub_pci_write_word): Likewise.
32737 (grub_pci_write_byte): Likewise.
32738
32739 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32740
32741 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32742 (find_framebuf): Scan pci to locate the frame buffer address.
32743
32744 * commands/efi/fixvideo.c: New file.
32745
32746 * commands/efi/loadbios.c: Likewise.
32747
32748 * commands/memrw.c: Likewise.
32749
32750 * util/grub-dumpbios.in: Likewise.
32751
32752 * conf/common.rmk (grub-dumpbios): New utility.
32753 (pkglib_MODULES): New module memrw.mod.
32754 (memrw_mod_SOURCE): New macro.
32755 (memrw_mod_CFLAGS): Likewise.
32756 (memrw_mod_LDFLAGS): Likewise.
32757
7dd4a573 32758 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 32759 fixvideo.mod.
32760 (loadbios_mod_SOURCE): New macro.
32761 (loadbios_mod_CFLAGS): Likewise.
32762 (loadbios_mod_LDFLAGS): Likewise.
32763 (fixvideo_mod_SOURCE): Likewise.
32764 (fixvideo_mod_CFLAGS): Likewise.
32765 (fixvideo_mod_LDFLAGS): Likewise.
32766
7dd4a573 32767 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 32768 fixvideo.mod.
32769 (loadbios_mod_SOURCE): New macro.
32770 (loadbios_mod_CFLAGS): Likewise.
32771 (loadbios_mod_LDFLAGS): Likewise.
32772 (fixvideo_mod_SOURCE): Likewise.
32773 (fixvideo_mod_CFLAGS): Likewise.
32774 (fixvideo_mod_LDFLAGS): Likewise.
32775
af63ada2 327762009-04-08 Felix Zielcke <fzielcke@z-51.de>
32777
32778 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32779
c2cdde70 327802009-04-07 David S. Miller <davem@davemloft.net>
32781
32782 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32783 support for R_SPARC_OLO10 relocations. Fix compile warning for
32784 R_SPARC_WDISP30 case.
ea3f72cf 32785 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 32786
761319cf 327872009-04-06 Pavel Roskin <proski@gnu.org>
32788
1007d1f5 32789 * include/grub/misc.h (ARRAY_SIZE): New macro.
32790 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32791 New macro.
32792 * loader/i386/linux.c (allocate_pages): Use free_pages().
32793 (grub_linux_unload): Don't use free_pages().
32794 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32795 wrong index. Treat all other modes as text modes.
32796 (grub_cmd_linux): Initialize vid_mode unconditionally to
32797 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32798
761319cf 32799 * commands/help.c (print_command_help): Use cmd->prio, not
32800 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32801
ea761d40 328022009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 32803
ea761d40 32804 Parttool
32805
32806 * parttool/pcpart.c: new file
32807 * commands/parttool.c: likewise
32808 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32809 (parttool_mod_SOURCES): new variable
32810 (parttool_mod_CFLAGS): likewise
32811 (parttool_mod_LDFLAGS): likewise
32812 (pcpart_mod_SOURCES): likewise
32813 (pcpart_mod_CFLAGS): likewise
32814 (pcpart_mod_LDFLAGS): likewise
7dd4a573 32815 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 32816 and parttool/pcpart.c
32817 * conf/i386-efi.rmk: likewise
32818 * conf/i386-ieee1275.rmk: likewise
32819 * conf/i386-pc.rmk: likewise
32820 * conf/powerpc-ieee1275.rmk: likewise
32821 * conf/sparc64-ieee1275.rmk: likewise
32822 * conf/x86_64-ieee1275.rmk: likewise
32823
05aaebfb 328242009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32825
32826 Support for mtime and further expandability of dir command
32827
32828 * include/grub/lib/datetime.h: moved to ...
7dd4a573 32829 * include/grub/datetime.h: ... moved here and added
05aaebfb 32830 declaration of grub_unixtime2datetime. All users updated
7dd4a573 32831 * include/grub/fs.h: new syntax for dir and mtime functions in
32832 struct grub_fs
05aaebfb 32833 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32834 and GRUB_FSHELP_FLAGS_MASK
32835 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32836 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32837 (grub_ext2_mtime): new function
32838 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32839 (grub_hfsplus_mtime): new function
32840 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32841 (GRUB_UFS_ATTR_FILE): likewise
32842 (GRUB_UFS_ATTR_LNK): likewise
32843 (struct grub_ufs_sblock): new fields mtime
32844 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32845 all users updated
32846 (grub_ufs_dir): mtime support
32847 (grub_ufs_mtime): new function
32848 * fs/affs.c (grub_affs_dir): use new dir syntax
32849 * fs/afs.c (grub_afs_dir): likewise
32850 * fs/cpio.c (grub_cpio_dir): likewise
32851 * fs/fat.c (grub_fat_find_dir): likewise
32852 * fs/hfs.c (grub_hfs_dir): likewise
32853 * fs/iso9660.c (grub_iso9660_dir): likewise
32854 * fs/jfs.c (grub_jfs_dir): likewise
32855 * fs/minix.c (grub_minix_dir): likewise
32856 * fs/ntfs.c (grub_ntfs_dir): likewise
32857 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32858 * fs/sfs.c (grub_sfs_dir): likewise
32859 * fs/xfs.c (grub_xfs_dir): likewise
32860 * util/hostfs.c (grub_hostfs_dir): likewise
32861 * lib/datetime.c: moved to ...
32862 * normal/datetime.c: ... moved here
32863 (grub_unixtime2datetime): new function
32864 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 32865 * normal/completion.c (iterate_dir): use new dir syntax
32866 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 32867 last modification time of a volume
7dd4a573 32868 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 32869 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 32870 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 32871 (normal_mod_SOURCES): likewise
32872 (datetime_mod_SOURCES): Removed lib/datetime.c
32873 * conf/i386-efi.rmk: likewise
7dd4a573 32874 * conf/i386-ieee1275.rmk: likewise
05aaebfb 32875 * conf/i386-pc.rmk: likewise
32876 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 32877 * conf/sparc64-ieee1275.rmk: likewise
32878 * conf/x86_64-efi.rmk: likewise
05aaebfb 32879
8a7e1a14 328802009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32881
32882 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 32883
32884 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 32885 on grub_fat_find_dir
32886 (grub_fat_find_dir): use grub_fat_iterate_dir
32887 (grub_fat_label): likewise
32888
04186a9c 328892009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32890
7dd4a573 32891 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 32892 and command.h
32893 remove extraneous kernel_elf_HEADERS
32894
da4c0bb6 328952009-04-04 Bean <bean123ch@gnail.com>
32896
32897 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32898
32899 * util/misc.c: Likewise.
32900
54ad9555 329012009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32902
32903 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32904 instead of grub_printf.
32905
7a6bf9f2 329062009-04-03 Robert Millan <rmh@aybabtu.com>
32907
32908 * loader/i386/linux.c (grub_linux_setup_video): Fill
32909 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32910 values from `mode info' structure instead of hardcoded
32911 values.
32912
3fcc2083 329132009-04-01 Pavel Roskin <proski@gnu.org>
32914
32915 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32916 unused now.
32917 * genmk.rb: Likewise.
32918 * configure.ac: Likewise.
32919
5ec9740b 329202009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32921
32922 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32923 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32924
5270cec8 329252009-04-01 David S. Miller <davem@davemloft.net>
32926
32927 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 32928 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 32929 (grub_setjmp): Mark with 'returns_twice' attribute.
32930 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32931 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32932 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32933
9c3dd854 329342009-04-01 Robert Millan <rmh@aybabtu.com>
32935
32936 Reapply fix from 2008-07-28 which was accidentally reverted; also
32937 perform the same fix to a similar check in same function.
32938
32939 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32940 with the same number are found, just use issue a warning with
32941 grub_dprintf(), as this error has been reported to be non-fatal.
32942
0d818b7e 329432009-03-31 Pavel Roskin <proski@gnu.org>
32944
32945 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32946 for cross-compilation.
32947
95646d92 329482009-03-30 Robert Millan <rmh@aybabtu.com>
32949
32950 Fix i386-ieee1275 build.
32951
32952 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32953 Remove declaration.
32954
6a003ed1 329552009-03-30 Pavel Roskin <proski@gnu.org>
32956
32957 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32958 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32959 zero-terminated, rely only on the strlen value. Fix comparison
32960 of strings differing in length.
32961
92f33540 329622009-03-30 Robert Millan <rmh@aybabtu.com>
32963
32964 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32965 checking for abi version. Improve error messages on BIOS to notify
32966 user about `linux16' command.
32967
a8c48fd5 329682009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32969
f968172e 32970 Leak fixes
a8c48fd5 32971
f968172e 32972 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32973 in case of collision
32974 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 32975
9c323f09 329762009-03-29 Robert Millan <rmh@aybabtu.com>
32977
32978 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32979 set `vid_mode' accordingly.
32980 (grub_linux_boot): Process `vid_mode' and set video mode.
32981
ae68f423 329822009-03-29 Robert Millan <rmh@aybabtu.com>
32983
32984 * util/grub.d/10_linux.in (linux_entry): New function.
32985 Factorize generation of Linux boot entries.
32986
5709cfc4 329872009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32988
32989 Make the format of Environment Block plain text. The boot loader
32990 part is not tested well yet.
7dd4a573 32991
5709cfc4 32992 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32993 (buffer): Removed.
32994 (envblk): Likewise.
32995 (usage): Remove "info" and "clear". Add "unset". Update the
32996 description of "set", as this does not delete variables any
32997 longer.
32998 (create_envblk_file): Complete rewrite.
32999 (open_envblk_file): Likewise.
33000 (cmd_info): Removed.
33001 (cmd_list): Likewise.
33002 (cmd_set): Likewise.
33003 (cmd_clear): Likewise.
33004 (list_variables): New function.
33005 (write_envblk): Likewise.
33006 (set_variables): Likewise.
33007 (unset_variables): Likewise.
33008 (main): Complete rewrite.
33009
33010 * commands/loadenv.c (buffer): Removed.
33011 (envblk): Likewise.
33012 (open_envblk_file): New function.
33013 (read_envblk_file): Complete rewrite.
33014 (grub_cmd_load_env): Likewise.
33015 (grub_cmd_list_env): Likewise.
33016 (struct blocklist): New struct.
33017 (free_blocklists): New function.
33018 (check_blocklists): Likewise.
33019 (write_blocklists): Likewise.
33020 (grub_cmd_save_env): Complete rewrite.
33021
33022 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33023 a plain text signature.
33024 (GRUB_ENVBLK_MAXLEN): Removed.
33025 (struct grub_envblk): Complete rewrite.
33026 (grub_envblk_find): Removed.
33027 (grub_envblk_insert): Likewise.
33028 (grub_envblk_open): New prototype.
33029 (grub_envblk_set): Likewise.
33030 (grub_envblk_delete): Put const to VALUE.
33031 (grub_envblk_iterate): Put const to NAME and VALUE.
33032 (grub_envblk_close): New prototype.
33033 (grub_envblk_buffer): New inline function.
33034 (grub_envblk_size): Likewise.
33035
33036 * lib/envblk.c: Include grub/mm.h.
33037 (grub_env_find): Removed.
33038 (grub_envblk_open): New function.
33039 (grub_envblk_close): Likewise.
33040 (escaped_value_len): Likewise.
33041 (find_next_line): Likewise.
33042 (grub_envblk_insert): Removed.
33043 (grub_envblk_set): New function.
33044 (grub_envblk_delete): Complete rewrite.
33045 (grub_envblk_iterate): Likewise.
33046
a9368fd3 330472009-03-28 Robert Millan <rmh@aybabtu.com>
33048
33049 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33050 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33051 variables. Use 16-bit loader.
33052 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33053 loader.
33054 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33055 (grub_linux16_boot): ... this. Update all users.
33056 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33057 (grub_linux_boot): ... this. Update all users.
33058
33059 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33060 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33061 commands to `linux16' and `initrd16'.
33062 (GRUB_MOD_FINI(linux)): Rename to ...
33063 (GRUB_MOD_FINI(linux16)): ... this.
33064
e4dd5a7e 330652009-03-24 Pavel Roskin <proski@gnu.org>
33066
33067 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33068 not just for compilation.
33069
c04d6e05 330702009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33071
33072 Move multiboot helper out of kernel
33073
33074 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33075 `loader/i386/multiboot_helper.S'.
33076 * conf/i386-coreboot.rmk: Likewise
33077 * conf/i386-ieee1275.rmk: Likewise
33078
33079 * kern/i386/loader.S: Move multiboot helpers from here...
33080 * loader/i386/multiboot_helper.S: ...moved here
33081 * include/grub/i386/loader.h: Move declarations of multiboot
33082 helpers from here...
33083 * include/grub/i386/multiboot.h: ...moved here
33084 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33085
42a5b3fc 330862009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33087
33088 * kern/env.c (grub_env_context_open): Added an argument to specify
33089 whether a new context inherits exported variables from current
33090 one. This is useful when making a sandbox to interpret a config
33091 file.
33092 All callers updated.
33093
33094 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33095
b28bbc4e 330962009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33097
33098 * kern/env.c (grub_env_context_close): Fix memory leaks.
33099
f04f02e4 331002009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33101
33102 * normal/main.c (grub_normal_execute): Added an argument
33103 BATCH to specify if an interactive interface should be provided
33104 after reading a config file.
33105 All callers updated.
33106 (read_command_list): Prevent being executed twice.
33107 (read_fs_list): Likewise.
33108
42a5b3fc 33109 * include/grub/normal.h (grub_normal_execute): Updated the
33110 prototype.
f04f02e4 33111
41473ac2 331122009-03-22 Pavel Roskin <proski@gno.org>
33113
fbc00b0c 33114 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33115 _start.
33116 * kern/i386/pc/startup.S: Likewise.
33117 * kern/i386/efi/startup.S: Likewise.
33118 * kern/i386/ieee1275/startup.S: Likewise.
33119 * kern/i386/coreboot/startup.S: Likewise.
33120 * kern/x86_64/efi/startup.S: Likewise.
33121
41473ac2 33122 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33123 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33124 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33125
2274cc8f 331262009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33127
33128 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33129
33130 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33131 limit detection.
33132 Use vaddr of correct segment for entry_point.
33133
b1b797cb 331342009-03-21 Bean <bean123ch@gmail.com>
33135
33136 * commands/blocklist.c: Add include file <grub/command.h>, remove
33137 <grub/normal.h> and <grub/arg.h>.
33138 (grub_cmd_blocklist): Use the new command interface.
33139 (GRUB_MOD_INIT): Likewise.
33140 (GRUB_MOD_FINI): Likewise.
33141 * commands/boot.c: Likewise.
33142 * commands/cat.c: Likewise.
33143 * commands/cmp.c: Likewise.
33144 * commands/configfile.c: Likewise.
33145 * commands/crc.c: Likewise.
33146 * commands/echo.c: Likewise.
33147 * commands/halt.c: Likewise.
33148 * commands/handler.c: Likewise.
33149 * commands/hdparm.c: Likewise.
33150 * commands/help.c: Likewise.
33151 * commands/hexdump.c: Likewise.
33152 * commands/loadenv.c: Likewise.
33153 * commands/ls.c: Likewise.
33154 * commands/lsmmap.c: Likewise.
33155 * commands/lspci.c: Likewise.
33156 * commands/loadenv.c: Likewise.
33157 * commands/read.c: Likewise.
33158 * commands/reboot.c: Likewise.
33159 * commands/search.c: Likewise.
33160 * commands/sleep.c: Likewise.
33161 * commands/test.c: Likewise.
33162 * commands/usbtest.c: Likewise.
33163 * commands/videotest.c: Likewise.
33164 * commands/i386/cpuid.c: Likewise.
33165 * commands/i386/pc/halt.c: Likewise.
33166 * commands/i386/pc/play.c: Likewise.
33167 * commands/i386/pc/pxecmd.c: Likewise.
33168 * commands/i386/pc/vbeinfo.c: Likewise.
33169 * commands/i386/pc/vbetest.c: Likewise.
33170 * commands/ieee1275/suspend.c: Likewise.
33171 * disk/loopback.c: Likewise.
33172 * font/font_cmd.c: Likewise.
33173 * hello/hello.c: Likewise.
33174 * loader/efi/appleloader.c: Likewise.
33175 * loader/efi/chainloader.c: Likewise.
33176 * loader/i386/bsd.c: Likewise.
33177 * loader/i386/efi/linux.c: Likewise.
33178 * loader/i386/ieee1275/linux.c: Likewise.
33179 * loader/i386/linux.c: Likewise.
33180 * loader/i386/pc/chainloader.c: Likewise.
33181 * loader/i386/pc/linux.c: Likewise.
33182 * loader/powerpc/ieee1275/linux.c: Likewise.
33183 * loader/multiboot_loader.c: Likewise.
33184 * term/gfxterm.c: Likewise.
33185 * term/i386/pc/serial.c: Likewise.
33186 * term/terminfo.c: Likewise.
33187
33188 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33189 * term/i386/pc/vga.c: Likewise.
33190 * video/readers/jpeg.c: Likewise.
33191 * video/readers/png.c: Likewise.
33192 * video/readers/tga.c: Likewise.
33193
33194 * util/grub-fstest (cmd_loopback): Removed.
33195 (cmd_blocklist): Likewise.
33196 (cmd_ls): Likewise.
33197 (grub_register_command): Likewise.
33198 (grub_unregister_command): Likewise.
33199 (execute_command): Use grub_command_find to locate command and execute
33200 it.
33201
33202 * include/grub/efi/chainloader.h: Removed.
33203 * loader/efi/chainloader_normal.c: Likewise.
33204 * loader/i386/bsd_normal.c: Likewise.
33205 * loader/i386/pc/chainloader_normal.c: Likewise.
33206 * loader/i386/pc/multiboot_normal.c: Likewise.
33207 * loader/linux_normal.c: Likewise.
33208 * loader/multiboot_loader_normal.c: Likewise.
33209 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33210
33211 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33212 and grub_register_command_p1.
33213
33214 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33215 kern/command.c, lib/arg.c and commands/extcmd.c.
33216 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33217 (minicmd_mod_SOURCES): New variable.
33218 (minicmd_mod_CFLAGS): Likewise.
33219 (minicmd_mod_LDFLAGS): Likewise.
33220 (extcmd_mod_SOURCES): Likewise.
33221 (extcmd_mod_CFLAGS): Likewise.
33222 (extcmd_mod_LDFLAGS): Likewise.
33223 (boot_mod_SOURCES): Removed.
33224 (boot_mod_CFLAGS): Likewise.
33225 (boot_mod_LDFLAGS): Likewise.
33226
33227 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33228 kern/corecmd.c.
33229 (kernel_img_HEADERS): Add command.h.
33230 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33231 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33232 and lib/arg.c.
33233 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33234 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33235 remove the corresponding normal mode command.
33236 (normal_mod_SOURCES): Remove normal/arg.c.
33237 * conf/i386-coreboot.rmk: Likewise.
33238 * conf/i386-efi.rmk: Likewise.
33239 * conf/i386-ieee1275.rmk: Likewise.
33240 * conf/powerpc-ieee1275.rmk: Likewise.
33241 * conf/x86_64-efi.rmk: Likewise.
33242
33243 * include/grub/arg.h: Move from here ...
33244 * include/grub/lib/arg.h: ... to here.
33245
33246 * normal/arg.c: Move from here ...
33247 * lib/arg.c: ... to here.
33248
33249 * commands/extcmd.c: New file.
33250 * commands/minicmd.c: Likewise.
33251 * include/grub/command.h: Likewise.
33252 * include/grub/extcmd.h: Likewise.
33253 * kern/command.c: Likewise.
33254 * kern/corecmd.c: Likewise.
33255
33256 * kern/list.c (grub_list_iterate): Return int instead of void.
33257 (grub_list_insert): New function.
33258 (grub_prio_list_insert): Likewise.
33259
33260 * kern/rescue.c (grub_rescue_command): Removed.
33261 (grub_rescue_command_list): Likewise.
33262 (grub_rescue_register_command): Likewise.
33263 (grub_rescue_unregister_command): Likewise.
33264 (grub_rescue_cmd_boot): Move to minicmd.c
33265 (grub_rescue_cmd_help): Likewise.
33266 (grub_rescue_cmd_info): Likewise.
33267 (grub_rescue_cmd_boot): Likewise.
33268 (grub_rescue_cmd_testload): Likewise.
33269 (grub_rescue_cmd_dump): Likewise.
33270 (grub_rescue_cmd_rmmod): Likewise.
33271 (grub_rescue_cmd_lsmod): Likewise.
33272 (grub_rescue_cmd_exit): Likewise.
33273 (grub_rescue_print_devices): Moved to corecmd.c.
33274 (grub_rescue_print_files): Likewise.
33275 (grub_rescue_cmd_ls): Likewise.
33276 (grub_rescue_cmd_insmod): Likewise.
33277 (grub_rescue_cmd_set): Likewise.
33278 (grub_rescue_cmd_unset): Likewise.
7d074e3c 33279 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 33280 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 33281 commands, remove grub_rescue_register_command calls.
b1b797cb 33282
7d074e3c 33283 * normal/command.c (grub_register_command): Removed.
b1b797cb 33284 (grub_unregister_command): Likewise.
33285 (grub_command_find): Likewise.
33286 (grub_iterate_commands): Likewise.
33287 (rescue_command): Likewise.
33288 (export_command): Moved to corecmd.c.
33289 (set_command): Removed.
33290 (unset_command): Likewise.
33291 (insmod_command): Likewise.
33292 (rmmod_command): Likewise.
33293 (lsmod_command): Likewise.
33294 (grub_command_init): Likewise.
33295
33296 * normal/completion.c (iterate_command): Use cmd->prio to check for
33297 active command.
33298 (complete_arguments): Use grub_extcmd_t structure to find options.
33299 (grub_normal_do_completion): Change function grub_iterate_commands to
33300 grub_command_iterate.
33301
33302 * normal/execute.c (grub_script_execute_cmd): No need to parse
33303 argument here.
33304
33305 * normal/main.c (grub_dyncmd_dispatcher): New function.
33306 (read_command_list): Register unload commands as dyncmd.
33307 (grub_cmd_normal): Use new command interface, register rescue,
33308 unregister normal at entry, register normal, unregister rescue at exit.
33309
33310 * include/grub/list.h (grub_list_test_t): New type.
33311 (grub_list_iterate): Return int instead of void.
33312 (grub_list_insert): New function.
33313 (GRUB_AS_NAMED_LIST_P): New macro.
33314 (GRUB_AS_PRIO_LIST): Likewise.
33315 (GRUB_AS_PRIO_LIST_P): Likewise.
33316 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33317 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33318 (grub_prio_list): New structure.
33319 (grub_prio_list_insert): New function.
33320 (grub_prio_list_remove): New inline function.
33321
33322 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33323 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33324 (GRUB_COMMAND_FLAG_MENU): Likewise.
33325 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33326 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33327 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33328 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33329 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33330 (grub_command): Likewise.
33331 (grub_register_command): Likewise.
33332 (grub_command_find): Likewise.
33333 (grub_iterate_commands): Likewise.
33334 (grub_command_init): Likewise.
33335 (grub_arg_parse): Likewise.
33336 (grub_arg_show_help): Likewise.
33337
33338 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33339 (grub_rescue_unregister_command): Likewise.
33340
33341 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33342 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33343 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33344
33345 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33346 grub_rescue_cmd_initrd.
33347 * include/grub/i386/loader.h: Likewise.
33348 * include/grub/x86_64/loader.h: Likewise.
33349
33350 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33351
1f4147aa 333522009-03-21 Bean <bean123ch@gmail.com>
33353
33354 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33355 instead of stat in mingw environment.
33356
33357 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33358
33359 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33360
33361 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33362 AC_CONFIG_LINKS.
33363
2156d5ba 333642009-03-21 Bean <bean123ch@gmail.com>
33365
33366 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33367 out of range error.
33368
177b82ca 333692009-03-18 Michel Dänzer <michel@daenzer.net>
33370
33371 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33372 checking inode flags for EXT4_EXTENTS_FLAG.
33373
14aad807 333742009-03-18 Robert Millan <rmh@aybabtu.com>
33375
33376 * loader/i386/linux.c: Include `<grub/video.h>' and
33377 `<grub/i386/pc/vbe.h>'..
33378 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33379 (grub_linux32_boot): Attempt to configure video settings with
33380 grub_linux_setup_video().
33381 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33382 to avoid grub_console_fini() which would step out of graphical mode
33383 unconditionally.
33384
8cf83a27 333852009-03-14 Robert Millan <rmh@aybabtu.com>
33386
33387 Fix build on powerpc.
33388 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33389
40164e75 333902009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33391
33392 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33393 background image command.
33394
c58bc32a 333952009-03-12 Colin D Bennett <colin@gibibit.com>
33396
33397 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33398 (grub_gfxterm_putchar): Extract pairs of identical calls to
33399 draw_cursor out of conditional blocks.
33400
5415144a 334012009-03-11 Pavel Roskin <proski@gnu.org>
33402
33403 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33404 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33405
6394042e 334062009-03-11 Robert Millan <rmh@aybabtu.com>
33407
33408 * loader/i386/multiboot_elfxx.c
33409 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33410
b7b50e5f 334112009-03-11 Felix Zielcke <fzielcke@z-51.de>
33412
33413 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33414 `kern/handler.c'.
33415
1ca7fc96 334162009-03-11 Robert Millan <rmh@aybabtu.com>
33417
33418 * loader/i386/multiboot.c (code_size): New variable.
33419 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 33420 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 33421 4-byte alignment to MBI and others by increasing
7d074e3c 33422 `boot_loader_name_length' appropriately.
1ca7fc96 33423
33424 * loader/i386/multiboot_elfxx.c
33425 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33426
a83ea1d2 334272009-03-09 Felix Zielcke <fzielcke@z-51.de>
33428
33429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33430 `fs/ext2.c'.
33431
aa9f3bff 334322009-03-08 Robert Millan <rmh@aybabtu.com>
33433
33434 Make loader/i386/linux.c usable on i386-pc again.
33435
33436 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33437 memory to heap.
33438 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33439 `#error' stanza.
33440
d8b3b60e 334412009-03-07 Bean <bean123ch@gmail.com>
33442
33443 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33444 allocation.
33445
b362c9e9 334462009-03-06 Robert Millan <rmh@aybabtu.com>
33447
33448 Fix display issue on terminals with screen size other than 80x25
33449 (e.g. gfxterm with resolution higher than 640x480).
33450
33451 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 33452 position relative to the center of the terminal instead of relying
b362c9e9 33453 on a hardcoded offset.
33454
9304eef1 334552009-03-04 Robert Millan <rmh@aybabtu.com>
33456
33457 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33458 installed.
33459
33460 * Makefile.in (host_kernel): New variable.
33461 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33462 scripts instead of just the windows one.
33463 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33464
eabc95fb 334652009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 33466
33467 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33468 `kern/handler.c'.
33469 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33470 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33471 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33472 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33473 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33474 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33475
ceb1223c 334762009-03-04 Felix Zielcke <fzielcke@z-51.de>
33477
33478 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33479 or if there's no space for the disk label and print the partition number on a
33480 invalid magic.
33481
4910684a 334822009-03-04 Felix Zielcke <fzielcke@z-51.de>
33483
33484 * util/misc.c: Include <time.h>.
33485 (grub_millisleep): New function.
33486
7e9ca17a 334872009-03-04 Bean <bean123ch@gmail.com>
33488
33489 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33490 another option -mno-red-zone.
33491
33492 * commands/handler.c: Change module description.
33493
33494 * kern/handler.c: Add missing space at the end of description line.
33495
33496 * kern/list.c: Likewise.
33497
f501677c 334982009-03-03 Robert Millan <rmh@aybabtu.com>
33499
33500 Move more components to the relocation area, and fix mbi pointer
33501 handling to use the destination rather than the origin (thanks to
33502 Vladimir Serbinenko for spotting).
33503
33504 * loader/i386/multiboot.c (mbi_dest): New variable.
33505 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33506 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33507 relocation area.
33508
9902d047 335092009-03-01 Bean <bean123ch@gmail.com>
33510
50fb7002 33511 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 33512 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33513 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33514 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33515
33516 * loader/i386/efi/linux.c (acpi_guid): New variable.
33517 (acpi_guid): Likewise.
33518 (EBDA_SEG_ADDR): New constant.
33519 (LOW_MEM_ADDR): Likewise.
33520 (FAKE_EBDA_SEG): Likewise.
33521 (fake_bios_data): New function.
33522 (grub_linux_boot): Call fake_bios_data.
33523
71b9f361 335242009-03-01 Bean <bean123ch@gmail.com>
33525
33526 * commands/terminal.c: Removed.
33527
33528 * commands/handler.c: New file.
33529
33530 * include/grub/list.h: Likewise.
33531
33532 * include/grub/handler.h: Likewise.
33533
33534 * kern/list.c: Likewise.
33535
33536 * kern/handler.c: Likewise.
33537
33538 * kern/term.h: Include header file <grub/handler.h>.
33539 (grub_term_input): Move next field to the beginning.
33540 (grub_term_output): Likewise.
33541 (grub_term_input_class): New variable.
33542 (grub_term_output_class): Likewise.
33543 (grub_term_register_input): Changed to inline function.
33544 (grub_term_register_output): Likewise.
33545 (grub_term_unregister_input): Likewise.
33546 (grub_term_unregister_output): Likewise.
33547 (grub_term_set_current_input): Likewise.
33548 (grub_term_set_current_output): Likewise.
33549 (grub_term_get_current_input): Likewise.
33550 (grub_term_get_current_output): Likewise.
33551 (grub_term_iterate_input): Removed.
33552 (grub_term_iterate_output): Likewise.
33553
33554 * kern/term.c (grub_term_list_input): Removed.
33555 (grub_term_list_output): Likewise.
33556 (grub_term_input_class): New variable.
33557 (grub_term_output_class): Likewise.
50fb7002 33558 (grub_cur_term_input): Change variable as macro.
71b9f361 33559 (grub_cur_term_output): Likewise.
33560 (grub_term_register_input): Removed.
33561 (grub_term_register_output): Likewise.
33562 (grub_term_unregister_input): Likewise.
33563 (grub_term_unregister_output): Likewise.
33564 (grub_term_set_current_input): Likewise.
33565 (grub_term_set_current_output): Likewise.
33566 (grub_term_iterate_input): Likewise.
33567 (grub_term_iterate_output): Likewise.
33568 (grub_term_get_current_input): Likewise.
33569 (grub_term_get_current_output): Likewise.
33570
33571 * util/grub-editenv.c: Include header file <grub/handler.h>.
33572 (grub_term_get_current_input): Removed.
33573 (grub_term_get_current_output): Likewise.
33574 (grub_term_input_class): New variable.
50fb7002 33575 (grub_term_output_class): Likewise.
71b9f361 33576
33577 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33578 (grub_term_get_current_output): Likewise.
33579 (grub_term_input_class): New variable.
50fb7002 33580 (grub_term_output_class): Likewise.
71b9f361 33581
33582 * util/grub-probe.c (grub_term_get_current_input): Removed.
33583 (grub_term_get_current_output): Likewise.
33584 (grub_term_input_class): New variable.
50fb7002 33585 (grub_term_output_class): Likewise.
71b9f361 33586
33587 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33588 (grub_term_get_current_output): Likewise.
33589 (grub_term_input_class): New variable.
50fb7002 33590 (grub_term_output_class): Likewise.
71b9f361 33591
33592 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33593 (terminal_mod_SOURCES): Likewise.
33594 (terminal_mod_CFLAGS): Likewise.
33595 (terminal_mod_LDFLAGS): Likewise.
33596
33597 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33598 handler.c.
33599 (kernel_img_SOURCES): Add list.c and handler.c.
33600 (kernel_img_HEADERS): Add list.h and handler.h.
33601
33602 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33603 handler.c.
33604 (kernel_mod_SOURCES): Add list.c and handler.c.
33605 (kernel_mod_HEADERS): Add list.h and handler.h.
33606
33607 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33608 handler.c.
33609 (kernel_elf_SOURCES): Add list.c and handler.c.
33610 (kernel_elf_HEADERS): Add list.h and handler.h.
33611
33612 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33613 handler.c.
33614 (kernel_elf_SOURCES): Add list.c and handler.c.
33615 (kernel_elf_HEADERS): Add list.h and handler.h.
33616
33617 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33618 handler.c.
33619 (kernel_mod_SOURCES): Add list.c and handler.c.
33620 (kernel_mod_HEADERS): Add list.h and handler.h.
33621
33622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33623 handler.c.
33624 (kernel_elf_SOURCES): Add list.c and handler.c.
33625 (kernel_elf_HEADERS): Add list.h and handler.h.
33626
8a31787f 336272009-02-27 Robert Millan <rmh@aybabtu.com>
33628
33629 Factorize elf32 / elf64 code in Multiboot loader. This will
33630 prevent it from getting out of sync again.
33631
33632 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33633 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33634 grub_multiboot_load_elf64): Move from here ...
33635 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33636 grub_multiboot_load_elf): ... to here (new file).
33637
51cd3dfc 336382009-02-27 Robert Millan <rmh@aybabtu.com>
33639
33640 * util/grub.d/10_linux.in: Rename "single-user mode" to
33641 "recovery mode".
33642
6e8c9c3a 336432009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33644
33645 Don't leak in SCSI code.
33646 * disk/scsi.c (grub_scsi_close): free `scsi'.
33647
4b6bf4f9 336482009-02-27 Robert Millan <rmh@aybabtu.com>
33649
33650 * loader/i386/pc/multiboot.c: Move from here ...
33651 * loader/i386/multiboot.c: ... to here. Update all users.
33652
b9413424 336532009-02-27 Robert Millan <rmh@aybabtu.com>
33654
33655 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33656 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33657
50fb7002 336582009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 33659
33660 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33661 b-tree.
33662
8cc50345 336632009-02-27 Robert Millan <rmh@aybabtu.com>
33664
33665 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33666 `0x' qualifier as 0 when base is specified as parameter).
33667
6e09b8b7 336682009-02-24 Bean <bean123ch@gmail.com>
33669
33670 * configure.ac: Check for -mcmodel=large in x86_64 target.
33671
33672 * include/grub/efi/api.h (efi_call_10): New macro.
33673 (efi_wrap_10): New function.
33674
33675 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33676 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33677 (GRUB_PE32_REL_BASED_LOW): Likewise.
33678 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33679 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33680 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33681 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33682 (GRUB_PE32_REL_BASED_REL): Likewise.
33683 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33684 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33685 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33686
33687 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33688 issue.
33689
33690 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33691 (efi_wrap_10): New function.
33692
33693 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33694
33695 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33696 MB/MBP model (NV chipset).
33697 (devdata_devs): Add devpath_5 to the list.
33698
33699 * load/i386/efi/linux.c (video_base): Remove variable.
33700 (RGB_MASK): New macro.
33701 (RGB_MAGIC): Likewise.
33702 (LINE_MIN): Likewise.
33703 (LINE_MAX): Likewise.
33704 (FBTEST_STEP): Likewise.
33705 (FBTEST_COUNT): Likewise.
33706 (fb_list): New variable.
33707 (grub_find_video_card): Remove function.
33708 (find_framebuf): New function.
33709 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33710 line length.
33711
33712 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33713 problem for x86_64.
33714
74b21bee 337152009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33716
33717 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33718
33719 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33720 coding tool name.
33721
a455f472 337222009-02-22 Robert Millan <rmh@aybabtu.com>
33723
33724 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33725 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33726 in our relocation, instead of using it directly from heap. Also
33727 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33728
6374daf3 337292009-02-21 Robert Millan <rmh@aybabtu.com>
33730
33731 Implement USB keyboard support (based on patch by Marco Gerards)
33732
33733 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33734 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33735 (usb_keyboard_mod_LDFLAGS): New variables.
33736
33737 * term/usb_keyboard.c: New file.
33738
8fa4ea70 337392009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33740
33741 Corrected wrong declaration
33742
33743 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33744
353976ac 337452009-02-14 Christian Franke <franke@computer.org>
33746
33747 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33748 (grub_lspci_iter): Print class code and programming interface byte.
33749
6aa1169b 337502009-02-14 Christian Franke <franke@computer.org>
33751
33752 * gendistlist.sh: Ignore `.svn' directories.
33753
265372ca 337542009-02-14 Felix Zielcke <fzielcke@z-51.de>
33755
33756 * fs/fat.c: Add 2009 to Copyright line.
33757
9ff516f3 337582009-02-14 Christian Franke <franke@computer.org>
33759
33760 * commands/hdparm.c: New file. Provides `hdparm' command
33761 which sends ATA commands via grub_disk_ata_pass_through ().
33762
33763 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33764
33765 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33766 and <grub/cpu/io.h> to include/grub/ata.h.
33767 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33768 (GRUB_CDROM_SECTOR_SIZE): Remove.
33769 (GRUB_ATA_*): Move to include/grub/ata.h.
33770 (GRUB_ATAPI_*): Likewise.
33771 (enum grub_ata_commands): Likewise.
33772 (enum grub_ata_timeout_milliseconds): Likewise.
33773 (struct grub_ata_device): Likewise.
33774 (grub_ata_regset): Likewise.
33775 (grub_ata_regget): Likewise.
33776 (grub_ata_regset2): Likewise.
33777 (grub_ata_regget2): Likewise.
33778 (grub_ata_check_ready): Likewise.
33779 (grub_ata_wait_not_busy): Remove static, exported in
33780 include/grub/ata.h.
33781 (grub_ata_wait_drq): Likewise.
33782 (grub_ata_pio_read): Likewise.
33783
33784 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33785 function for hdparm.mod.
33786
33787 * include/grub/ata.h: New file, contains declarations from
33788 disk/ata.c.
33789 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33790
33791 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33792 (grub_disk_ata_pass_through): New exported variable.
33793
33794 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33795
772e23da 337962009-02-13 Colin D Bennett <colin@gibibit.com>
33797
33798 Support multiple fallback entries, and provide an API to support
33799 executing default+fallback menu entries. Renamed the `terminal' menu
33800 viewer to `text'.
33801
33802 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33803 variable declaration.
33804 (grub_menu_execute_callback): New structure declaration.
33805 (grub_menu_execute_callback_t): New typedef.
33806 (grub_menu_execute_with_fallback): New function declaration.
33807 (grub_menu_get_entry): Likewise.
33808 (grub_menu_get_timeout): Likewise.
33809 (grub_menu_set_timeout): Likewise.
33810
33811 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33812
33813 * normal/menu.c (grub_wait_after_message): Moved to
33814 `normal/menu_text.c'.
33815 (draw_border): Likewise.
33816 (print_message): Likewise.
33817 (print_entry): Likewise.
33818 (print_entries): Likewise.
33819 (grub_menu_init_page): Likewise.
33820 (get_entry_number): Likewise.
33821 (print_timeout): Likewise.
33822 (run_menu): Likewise.
33823 (grub_menu_execute_entry): Likewise.
33824 (show_text_menu): Likewise.
33825 (get_and_remove_first_entry_number): New function.
33826 (grub_menu_execute_with_fallback): Likewise.
33827 (get_entry): Renamed to ...
33828 (grub_menu_get_entry): .. this and made it global.
33829 (get_timeout): Renamed to ...
33830 (grub_menu_get_timeout): ... this and made it global.
33831 (set_timeout): Renamed to ...
33832 (grub_menu_set_timeout): ... this and made it global.
33833 (grub_normal_terminal_menu_viewer): Renamed to ...
33834 (grub_normal_text_menu_viewer): ... this.
33835
33836 * normal/menu_text.c: New file. Extracted text-menu-specific code
33837 from normal/menu.c.
33838
33839 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33840 (normal_mod_SOURCES): Likewise.
33841
33842 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33843 (normal_mod_SOURCES): Likewise.
33844
33845 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33846 (normal_mod_SOURCES): Likewise.
33847
33848 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33849 (normal_mod_SOURCES): Likewise.
33850
33851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33852 (normal_mod_SOURCES): Likewise.
33853
33854 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33855 (normal_mod_SOURCES): Likewise.
33856
33857 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33858 (normal_mod_SOURCES): Likewise.
33859
16ac430e 338602009-02-11 Robert Millan <rmh@aybabtu.com>
33861
33862 * util/grub.d/00_header.in: Update old reference to `font' command.
33863
06ff20fc 338642009-02-10 Felix Zielcke <fzielcke@z-51.de>
33865
33866 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33867
33868 Based on patch from Javier Martín.
33869
96da9407 338702009-02-09 Felix Zielcke <fzielcke@z-51.de>
33871
33872 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 33873 to avoid false positives with FAT.
96da9407 33874 (grub_fstest_SOURCES): Likewise.
33875 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33876 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33877 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33878 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33879 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33880 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33881
6dca6fe4 338822009-02-09 Felix Zielcke <fzielcke@z-51.de>
33883
06ff20fc 33884 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 33885 bpb.version_specific.fat12_or_fat16.fstype and
33886 bpb.version_specific.fat32.fstype.
33887
2550c62f 338882009-02-08 Robert Millan <rmh@aybabtu.com>
33889
be110b30 33890 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 33891
56978920 338922009-02-08 Robert Millan <rmh@aybabtu.com>
33893
33894 * Makefile.in (host_os, host_cpu): New variables.
33895 (target_os): Remove. Update all users.
33896
d64399b5 338972009-02-08 Marco Gerards <marco@gnu.org>
33898
33899 * Makefile.in (enable_grub_emu_usb): New variable.
33900 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33901 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33902 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33903 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33904 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33905 `usbtest.mod' and `usbms.mod'.
33906 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33907 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33908 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33909 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33910 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33911 variables.
33912
33913 * disk/usbms.c: New file.
33914
33915 * include/grub/usb.h: Likewise.
33916
33917 * include/grub/usbtrans.h: Likewise.
33918
33919 * include/grub/usbdesc.h: Likewise.
33920
33921 * bus/usb/usbtrans.c: Likewise.
33922
33923 * bus/usb/ohci.c: Likewise.
33924
33925 * bus/usb/uhci.c: Likewise.
33926
33927 * bus/usb/usbhub.c: Likewise.
33928
33929 * bus/usb/usb.c: Likewise.
33930
33931 * commands/usbtest.c: Likewise.
33932
33933 * util/usb.c: Likewise.
50fb7002 33934
d64399b5 33935 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33936
33937 * configure.ac: Test for libusb presence.
50fb7002 33938
d64399b5 33939 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33940
2b40d6bb 339412009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33942
33943 * kern/mm.c: Add more comments.
33944
73a4ce81 339452009-02-08 Robert Millan <rmh@aybabtu.com>
33946
33947 Patch from Javier Martín.
33948 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33949 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33950
f821ce59 339512009-02-08 Robert Millan <rmh@aybabtu.com>
33952
33953 * fs/cpio.c: Split tar functionality to ...
33954 * fs/tar.c: ... here (new file). Update all users.
33955
aebfc4b0 339562009-02-07 Robert Millan <rmh@aybabtu.com>
33957
33958 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33959 backward-incompatible features.
33960
33961 Based on patch from Javier Martín, with some adjustments.
33962
50fb7002 339632009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 33964
33965 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33966
0bb5115e 339672009-02-07 Robert Millan <rmh@aybabtu.com>
33968
33969 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33970 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33971 after the RAID stuff.
33972
38a0f8e7 339732009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33974
50fb7002 33975 Fixes problem when running vbetest command as reported by
38a0f8e7 33976 Vladimir Serbinenko <phcoder@gmail.com>.
33977
33978 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33979
3143cc1c 339802009-02-04 Felix Zielcke <fzielcke@z-51.de>
33981
33982 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33983 /dev/md/NpN style mdraid devices.
33984
9cba6fce 339852009-02-03 Felix Zielcke <fzielcke@z-51.de>
33986
33987 * util/unifont2pff.rb: Remove.
33988
e507a2c1 339892009-02-03 Felix Zielcke <fzielcke@z-51.de>
33990
33991 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33992 `#'.
33993
d2c2b4cd 339942009-02-03 Felix Zielcke <fzielcke@z-51.de>
33995
33996 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33997 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33998 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33999 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34000 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34001 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34002 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34003
b4315fb0 340042009-02-02 Christian Franke <franke@computer.org>
34005
34006 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34007
de3aa260 340082009-02-01 Felix Zielcke <fzielcke@z-51.de>
34009
7c3ff286 34010 * INSTALL: Note that we now require at least autoconf 2.59 and
34011 that LZO is optional.
de3aa260 34012
825a182b 340132009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34014
34015 Base on patch on bug #24154 created by Tomas Tintera
34016 <trosos@seznam.cz>.
34017
34018 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34019
a69ef770 340202009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34021
7c3ff286 34022 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 34023 <bero@arklinux.org>.
34024
34025 * normal/parser.y (script_init): Add missing semicolon.
34026
6fa42fa6 340272009-01-31 Colin D Bennett <colin@gibibit.com>
34028
7c3ff286 34029 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 34030 (free_menu_entry_classes): Added.
34031 (grub_normal_menu_addentry): Added class property handling.
34032 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34033 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34034
34035 * normal/menu_viewer.c: New file.
34036
34037 * normal/menu.c (run_menu_entry): Renamed to ...
34038 (grub_menu_execute_entry): ... this and made it as global.
34039 (grub_menu_run): Renamed to ...
34040 (show_text_menu): ... this and made it local.
34041 (show_text_menu): Adapt to new function names.
34042 (grub_normal_terminal_menu_viewer): New global variable.
34043
34044 * include/grub/menu.h: New file.
34045
34046 * include/grub/menu_viewer.h: New file.
34047
34048 * include/grub/normal.h: Added include to grub/menu.h.
34049 (grub_menu_entry): Moved to include/grub/menu.h.
34050 (grub_menu_entry_t): Likewise.
34051 (grub_menu): Likewise.
34052 (grub_menu_t): Likewise.
34053 (grub_normal_terminal_menu_viewer): Added.
34054 (grub_menu_execute_entry): Likewise.
34055 (grub_menu_run): Removed.
34056
34057 * DISTLIST: Added include/grub/menu.h.
34058 Added include/grub/menu_viewer.h.
34059 Added normal/menu_viewer.c.
34060
340612009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34062
34063 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34064 arglist for menutitle arguments.
34065
34066 * normal/main.c (grub_normal_menu_addentry): Likewise.
34067
34068 * normal/parser.y (menuentry): Likewise.
34069
34070 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34071
34072 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34073 (grub_script_create_cmdmenu): Likewise.
34074
34075 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34076
34077 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34078 changes.
34079
34080 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34081
34082 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34083
34084 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34085
34086 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34087
34088 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34089
34090 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34091
56192c23 340922009-01-30 Christian Franke <franke@computer.org>
34093
34094 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34095 in option help text.
34096
d72521b3 340972009-01-27 Pavel Roskin <proski@gnu.org>
34098
34099 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34100
994b5e84 341012009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34102
34103 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34104
34105 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34106
34107 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34108 unregister function.
34109
6a7eab2c 341102009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34111
34112 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34113
34114 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34115
34116 * util/grub-mkfont.c (usage): Fix typo.
34117
34118 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34119
1806b56e 341202009-01-26 Daniel Mierswa <impulze@impulze.org>
34121
3fb18f09 34122 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34123
336e1fb9 34124 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34125
1806b56e 34126 * kern/misc.c (grub_strcasecmp): New function.
34127 (grub_strcasecmp): Use grub_size_t instead of int for length.
34128 Fix return value.
34129 * include/grub/misc.h: Update function prototypes.
34130
580b2a0f 341312009-01-26 Robert Millan <rmh@aybabtu.com>
34132
34133 * configure.ac: Fix cross-compilation check.
ef257b36 34134
d31c24f1 341352009-01-22 Christian Franke <franke@computer.org>
34136
34137 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34138 (precision) digit string. Allow `.format2' without `format1' (width).
34139 Limit input chars for `%s' output to `format2' if specified. This is
34140 compatible with standard printf ().
34141
3138b44c 341422009-01-22 Christian Franke <franke@computer.org>
34143
34144 * disk/ata.c (grub_ata_wait_status): Replace by ...
34145 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34146 other status bits may be invalid while BSY is asserted.
34147 (grub_ata_check_ready): New function.
34148 (grub_ata_cmd): Removed.
34149 (grub_ata_wait_drq): New function.
34150 (grub_ata_strncpy): Remove inline.
34151 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34152 and error check now done by grub_ata_wait_drq ().
34153 (grub_ata_pio_write): Likewise.
34154 (grub_atapi_identify): Set DEV before check for !BSY. Use
34155 grub_ata_wait_drq () to wait for data.
34156 (grub_ata_device_initialize): Add status register check to
34157 detect missing SATA slave devices. Add debug messages.
34158 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34159 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34160 transfer loop by grub_ata_pio_write ().
34161 (grub_ata_identify): Set DEV before check for !BSY. Use
34162 grub_ata_wait_drq () to wait for data.
ef257b36 34163 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 34164 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34165 read/write in one loop. Fix invalid command on write. Fix incomplete
34166 command on (size % batch) == 0. Add missing error check after write of
34167 last block. Add debug messages.
34168 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34169
59a64ef6 341702009-01-19 Christian Franke <franke@computer.org>
34171
34172 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34173 (GRUB_ATAPI_IREASON_*): Likewise.
34174 (grub_ata_pio_write): Fix timeout error return.
34175 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34176 (grub_atapi_wait_drq): New function.
34177 (grub_atapi_packet): New parameter `size'.
34178 Use grub_atapi_wait_drq () and direct write instead of
34179 grub_ata_pio_write ().
34180 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34181 reads the number of bytes requested by the device for each DRQ
34182 assertion.
34183 (grub_atapi_write): Remove old implementation, return not
34184 implemented instead.
34185
1cfe20b3 341862009-01-19 Christian Franke <franke@computer.org>
34187
34188 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34189 of 512 to calculate data size.
34190 (grub_scsi_read12): Likewise.
34191 (grub_scsi_write10): Likewise.
34192 (grub_scsi_write12): Likewise.
34193 (grub_scsi_read): Adjust size according to blocksize.
34194 Add checks for invalid blocksize and unaligned transfer.
34195
bee5fe5d 341962009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34197
34198 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34199
ef257b36 34200 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 34201 width glyphs.
34202
3e643f8c 342032009-01-19 Robert Millan <rmh@aybabtu.com>
34204
34205 * config.guess: Update to latest version from config git.
34206 * config.sub: Likewise.
34207
4fa80998 342082009-01-17 Felix Zielcke <fzielcke@z-51.de>
34209
34210 * Makefile.in: Change font compilation to use new grub-mkfont instead
34211 of java version.
34212
34213 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34214 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34215 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34216 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34217 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34218 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34219 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34220 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34221 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34222
7086085b 342232009-01-16 Christian Franke <franke@computer.org>
34224
34225 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34226 (enum grub_ata_timeout_milliseconds): New enum.
34227 (grub_ata_wait_status): Add parameter milliseconds.
34228 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34229 recovery from timed-out commands.
34230 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34231 return grub_errno instead of REG_ERROR.
34232 (grub_ata_pio_write): Add parameter milliseconds.
34233 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34234 Pass milliseconds to grub_ata_wait_status () and
34235 grub_ata_pio_read ().
34236 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34237 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34238 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34239 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34240 It is not suitable for device detection, because DEV bit is ignored,
34241 the command may run too long, and not all devices set the signature
34242 properly.
34243 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34244 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34245 Fix device selection, DEV bit must be set first to address the registers
34246 of the correct device.
34247 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34248 grub_ata_pio_read/write ().
34249 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34250 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34251
4a412913 342522009-01-13 Carles Pina i Estany <carles@pina.cat>
34253
34254 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34255
7795c55e 342562009-01-13 Bean <bean123ch@gmail.com>
d913988c 34257
34258 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34259
7795c55e 342602009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 34261
34262 * Makefile.in: (enable_grub_mkfont): New variable.
34263 (freetype_cflags): Likewise.
34264 (freetype_libs): Likewise.
34265
34266 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34267 (grub_mkfont_SOURCES): New variable.
34268 (grub_mkfont_CFLAGS): Likewise.
34269 (grub_mkfont_LDFLAGS): Likewise.
34270
34271 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34272 library if `--enable-grub-mkfont' is requested.
34273 (enable_grub_mkfont): New variable.
34274 (freetype_cflags): Likewise.
34275 (freetype_libs): Likewise.
34276
34277 * util/grub-mkfont.c: New file.
34278
093af1fe 342792009-01-12 Christian Franke <franke@computer.org>
34280
34281 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34282 mode check. Fix setting of compat_use[].
34283
f36cc108 342842009-01-10 Robert Millan <rmh@aybabtu.com>
34285
34286 Update a few copyright years which we forgot to do in 2008 (only for
34287 files whose changes made in 2008 were copyright-significant)
34288
34289 * Makefile.in: Add 2008 to Copyright line.
34290 * disk/ieee1275/ofdisk.c: Likewise.
34291 * disk/efi/efidisk.c: Likewise.
34292 * kern/dl.c: Likewise.
34293 * kern/sparc64/ieee1275/init.c: Likewise.
34294 * kern/mm.c: Likewise.
34295 * kern/efi/mm.c: Likewise.
34296 * boot/i386/pc/boot.S: Likewise.
34297 * genfslist.sh: Likewise.
34298 * fs/iso9660.c: Likewise.
34299 * fs/hfs.c: Likewise.
34300 * fs/jfs.c: Likewise.
34301 * fs/minix.c: Likewise.
34302 * fs/ufs.c: Likewise.
34303 * gensymlist.sh.in: Likewise.
34304 * genkernsyms.sh.in: Likewise.
34305 * include/grub/misc.h: Likewise.
34306 * include/grub/types.h: Likewise.
34307 * include/grub/symbol.h: Likewise.
34308 * include/grub/elf.h: Likewise.
34309 * include/grub/kernel.h: Likewise.
34310 * include/grub/disk.h: Likewise.
34311 * include/grub/dl.h: Likewise.
34312 * include/grub/i386/linux.h: Likewise.
34313 * include/grub/i386/pc/biosdisk.h: Likewise.
34314 * include/grub/efi/api.h: Likewise.
34315 * include/grub/efi/pe32.h: Likewise.
34316 * include/grub/util/misc.h: Likewise.
34317 * normal/execute.c: Likewise.
34318 * normal/arg.c: Likewise.
34319 * normal/completion.c: Likewise.
34320 * normal/lexer.c: Likewise.
34321 * normal/parser.y: Likewise.
34322 * normal/misc.c: Likewise.
34323 * commands/i386/pc/vbeinfo.c: Likewise.
34324 * commands/hexdump.c: Likewise.
34325 * commands/terminal.c: Likewise.
34326 * commands/ls.c: Likewise.
34327 * commands/help.c: Likewise.
34328 * partmap/pc.c: Likewise.
34329 * loader/efi/chainloader.c: Likewise.
34330 * loader/multiboot_loader.c: Likewise.
34331 * loader/i386/pc/multiboot2.c: Likewise.
34332 * term/efi/console.c: Likewise.
34333 * term/i386/pc/serial.c: Likewise.
34334 * util/lvm.c: Likewise.
34335 * util/console.c: Likewise.
34336 * util/i386/efi/grub-mkimage.c: Likewise.
34337 * util/raid.c: Likewise.
34338
7f02114b 343392009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34340
34341 * commands/videotest.c: Removed include to grub/machine/memory.h.
34342
34343 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34344 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34345 (video_mod_SOURCES): Removed.
34346 (video_mod_CFLAGS): Likewise.
34347 (video_mod_LDFLAGS): Likewise.
34348 (gfxterm_mod_SOURCES): Likewise.
34349 (gfxterm_mod_CFLAGS): Likewise.
34350 (gfxterm_mod_LDFLAGS): Likewise.
34351 (videotest_mod_SOURCES): Likewise.
34352 (videotest_mod_CFLAGS): Likewise.
34353 (videotest_mod_LDFLAGS): Likewise.
34354 (bitmap_mod_SOURCES): Likewise.
34355 (bitmap_mod_CFLAGS): Likewise.
34356 (bitmap_mod_LDFLAGS): Likewise.
34357 (tga_mod_SOURCES): Likewise.
34358 (tga_mod_CFLAGS): Likewise.
34359 (tga_mod_LDFLAGS): Likewise.
34360 (jpeg_mod_SOURCES): Likewise.
34361 (jpeg_mod_CFLAGS): Likewise.
34362 (jpeg_mod_LDFLAGS): Likewise.
34363 (png_mod_SOURCES): Likewise.
34364 (png_mod_CFLAGS): Likewise.
34365 (png_mod_LDFLAGS): Likewise.
34366
34367 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34368 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34369 (video_mod_SOURCES): Added.
34370 (video_mod_CFLAGS): Likewise.
34371 (video_mod_LDFLAGS): Likewise.
34372 (videotest_mod_SOURCES): Likewise.
34373 (videotest_mod_CFLAGS): Likewise.
34374 (videotest_mod_LDFLAGS): Likewise.
34375 (bitmap_mod_SOURCES): Likewise.
34376 (bitmap_mod_CFLAGS): Likewise.
34377 (bitmap_mod_LDFLAGS): Likewise.
34378 (tga_mod_SOURCES): Likewise.
34379 (tga_mod_CFLAGS): Likewise.
34380 (tga_mod_LDFLAGS): Likewise.
34381 (jpeg_mod_SOURCES): Likewise.
34382 (jpeg_mod_CFLAGS): Likewise.
34383 (jpeg_mod_LDFLAGS): Likewise.
34384 (png_mod_SOURCES): Likewise.
34385 (png_mod_CFLAGS): Likewise.
34386 (png_mod_LDFLAGS): Likewise.
34387 (gfxterm_mod_SOURCES): Likewise.
34388 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 34389 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 34390
34391 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34392 grub/machine/console.h.
34393
644fff97 343942009-01-04 Jerone Young <jerone@gmail.com>
34395
34396 Make on screen instructions clearer
34397
34398 Based on patch created by Jidanni <jidanni@jidanni.org>
34399
34400 * normal/menu.c: print clearer instructions on the screen
34401
1e901a75 344022009-01-02 Colin D Bennett <colin@gibibit.com>
34403
34404 New font engine.
34c44600 34405
1e901a75 34406 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34407 build system and fixed gfxterm.c to work with different sized fonts.
34408
34409 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 34410
1e901a75 34411 * configure: Re-generated.
34c44600 34412
1e901a75 34413 * DISTLIST: Removed font/manager.c.
34414 Added font/font.c.
34415 Added font/font_cmd.c.
34c44600 34416
1e901a75 34417 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34418 compilation.
34c44600 34419
1e901a75 34420 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 34421
34422 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 34423
34424 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 34425
1e901a75 34426 * normal/menu.c: Likewise.
34c44600 34427
1e901a75 34428 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34429 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 34430
1e901a75 34431 * include/grub/font.h: Replaced with new file.
34c44600 34432
1e901a75 34433 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34434 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34435 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34436 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34437 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 34438 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 34439 fg_red, fg_green, fg_blue, fg_alpha.
34440 (grub_video_adapter): Removed blit_glyph.
34c44600 34441 (grub_video_blit_glyph): Removed.
34442
1e901a75 34443 * font/manager.c: Removed file.
34c44600 34444
34445 * font/font.c: New file.
34446
1e901a75 34447 * font/font_cmd.c: Likewise.
34c44600 34448
1e901a75 34449 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 34450
1e901a75 34451 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34452 (grub_video_vbe_map_rgba): Likewise.
34453 (grub_video_vbe_unmap_color_int): Likewise.
34454 (grub_video_vbe_blit_glyph): Removed.
34455 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 34456
1e901a75 34457 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34458 (get_pixel): Likewise.
34c44600 34459 (set_pixel): Likewise.
34460
1e901a75 34461 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 34462
1e901a75 34463 * term/gfxterm.c: Adapted to new font engine.
34c44600 34464
1e901a75 34465 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 34466
1e901a75 34467 * term/i386/pc/vga.c: Likewise.
34c44600 34468
1e901a75 34469 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 34470
1e901a75 34471 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 34472
1e901a75 34473 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34474
1e901a75 34475 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34476
1e901a75 34477 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 34478
1e901a75 34479 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 34480
1e901a75 34481 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 34482
1e901a75 34483 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 34484
1e901a75 34485 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34486
34487 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 34488
1e901a75 34489 * util/grub-mkconfig_lib.in: Changed font extension.
34490
278922e8 344912008-12-28 Felix Zielcke <fzielcke@z-51.de>
34492
34493 * util/getroot.c (grub_util_get_grub_dev): Add support for
34494 /dev/md/dNNpNN style partitionable mdraid devices.
34495
3ced05cf 344962008-12-12 Alex Smith <alex@alex-smith.me.uk>
34497
34498 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34499 at a time limit of the PXE TFTP API correctly.
34500 (grub_pxefs_close): Likewise.
34501
7fd0ee30 345022008-11-29 Robert Millan <rmh@aybabtu.com>
34503
34c44600 34504 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 34505 grub_ata_device_initialize() calls.
34506
34c44600 345072008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 34508
34509 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34510 iteration failed.
34511 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34512
89313780 345132008-11-28 Robert Millan <rmh@aybabtu.com>
34514
34515 Fix build on powerpc-ieee1275. Based on patch created by
34516 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34517 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34518 `kern/ieee1275/mmap.c'.
34519 * include/grub/powerpc/ieee1275/memory.h: New file.
34520
15257703 34521 Provide grub-install on coreboot.
34522 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34523 (grub_install_SOURCES): New variable.
34524 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34525 usable on coreboot.
34526
9fc5388a 345272008-11-25 Felix Zielcke <fzielcke@z-51.de>
34528
34529 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34530 to `grub_term_input_t'.
34531 (grub_term_get_current_output): Change return type to
34532 `grub_term_output_t'.
34533
bc3a2f31 345342008-11-22 Robert Millan <rmh@aybabtu.com>
34535
34c44600 34536 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 34537 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34538 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34539 grub_vga_text_cls().
34540
80fc88f2 34541 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 34542 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 34543
cbf36fd3 34544 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34545 to 0x200000 (avoids trouble with some OFW implementations, and matches
34546 with the one in Yaboot).
34547 Reported by Manoel Abranches
34548
73e8e268 345492008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 34550
34551 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34552 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34553
73e8e268 34554 * util/grub-mkconfig_lib.in (grub_warn): New function.
34555 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34556 warnings, to obtain consistent formatting.
34557 * util/grub.d/00_header.in: Likewise.
34558 * util/update-grub_lib.in: Likewise.
34559
e94045a1 34560 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 34561 Move comment text to `#error' stanza.
e94045a1 34562
79d29fd7 34563 Harmonize ieee1275's grub_available_iterate() with the generic
34564 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34565 build problem on i386-ieee1275):
34566 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34567 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34568 parameter `type'. Update all users of this function.
34569 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34570 `kern/ieee1275/mmap.c'.
34571 * kern/ieee1275/init.c
34572 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34573 with ...
34574 (grub_machine_mmap_iterate): ... this.
34575 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34576 return type to `grub_err_t'. Update all implementations of this
34577 function prototype.
34578 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34579 Likewise.
34580
60d6b16e 34581 Add `lsmmap' command (lists firmware-provided memory map):
34582 * commands/lsmmap.c: New file.
34583 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34584 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34585 variables.
34586 * conf/powerpc-ieee1275.rmk: Likewise.
34587 * conf/i386-coreboot.rmk: Likewise.
34588 * conf/i386-ieee1275.rmk: Likewise.
34589
ebaaf49b 345902008-11-19 Robert Millan <rmh@aybabtu.com>
34591
34592 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 34593 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34594 constraints to initrd allocation (based on code from
34595 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34596 for Linux to find it.
ebaaf49b 34597
dfab719f 345982008-11-14 Robert Millan <rmh@aybabtu.com>
34599
34600 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34601 order to cope with duplicate slashes.
34602
10fc3eb9 346032008-11-14 Robert Millan <rmh@aybabtu.com>
34604
34605 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34606 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34607 don't want to mess with lower memory, because it is used in the Linux
34608 loader.
34609
34610 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 34611 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 34612 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34613 is in our heap (probably as a result of it being corrupted during
2f2a3442 34614 decompression). Add #error instance with comment to explain why this
34615 loader isn't currently usable on PC/BIOS.
10fc3eb9 34616
e2e07847 346172008-11-14 Robert Millan <rmh@aybabtu.com>
34618
34619 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 34620 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 34621
fe8e8d69 346222008-11-12 Robert Millan <rmh@aybabtu.com>
34623
34624 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34625
34626 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34627 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34628 from here ...
34629 * include/grub/i386/pc/memory.h: ... to here.
34630
976b07d0 346312008-11-12 Robert Millan <rmh@aybabtu.com>
34632
34633 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34634 split).
34635
34636 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34637 (grub_console_cur_color, grub_console_real_putchar)
34638 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34639 (grub_console_setcolorstate, grub_console_setcolor)
34640 (grub_console_getcolor): Move from here ...
34641 * include/grub/i386/vga_common.h: ... to here (new file).
34642
34643 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34644 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34645 `<grub/i386/io.h>'.
34646 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34647 `<grub/i386/vga_common.h>'.
34648
76679cd3 346492008-11-12 Robert Millan <rmh@aybabtu.com>
34650
34651 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34652 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34653 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34654 variables.
34655 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34656 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34657
34658 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34659 grub_console_init() with call to grub_vga_text_init().
34660 (grub_machine_fini): Replace call to
34661 grub_console_fini() with call to grub_vga_text_fini() and
34662 grub_at_keyboard_fini().
34663
34664 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34665 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34666 (grub_console_setcolorstate, grub_console_setcolor)
34667 (grub_console_getcolor): New function prototypes.
34668
34669 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34670 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34671 (grub_vga_text_setcursor): Static-ize.
34672 (grub_vga_text_term): New structure.
34673 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34674
34675 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34676 (grub_console_cur_color, grub_console_standard_color)
34677 (grub_console_normal_color, grub_console_highlight_color)
34678 (map_char, grub_console_putchar, grub_console_getcharwidth)
34679 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34680 (grub_console_getcolor): Move from here ...
34681 * term/i386/vga_common.c: ... to here (same function names).
34682
95b841d3 346832008-11-12 Robert Millan <rmh@aybabtu.com>
34684
34685 Use newly-added Multiboot support in coreboot.
34686
34687 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34688 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34689
34690 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34691 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34692 (codestart): Store the MBI in `startup_multiboot_info' when we're
34693 being loaded using Multiboot.
34694
34695 * kern/i386/coreboot/init.c (grub_machine_init): Move
34696 grub_at_keyboard_init() call to beginning of function (useful for
34697 debugging). Call grub_machine_mmap_init() before attempting to use
34698 grub_machine_mmap_iterate().
34699 (grub_lower_mem, grub_upper_mem): Move from here ...
34700 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34701 here (new file).
34702
34703 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34704 function prototype.
34705
761ca975 347062008-11-12 Robert Millan <rmh@aybabtu.com>
34707
34708 Fix a regression introduced by the at_keyboard.mod split. Because
34709 some terminals are default on some platforms and non-default on
34710 others, the first terminal being registered determines which is
34711 going to be default.
34712
34713 * kern/term.c (grub_term_register_input): If this is the first
34714 terminal being registered, set it as the current one.
34715 (grub_term_register_output): Likewise.
34716
34717 * term/efi/console.c (grub_console_init): Do not call
34718 grub_term_set_current_output() or grub_term_set_current_input().
34719 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34720 * term/i386/pc/console.c (grub_console_init): Likewise.
34721 (grub_console_fini): Do not call grub_term_set_current_input()
34722 (but leave grub_term_set_current_output() to restore text mode).
34723
6c529df7 347242008-11-10 Robert Millan <rmh@aybabtu.com>
34725
34726 * util/grub.d/00_header.in: Add backward compatibility check for
34727 versions of terminal.mod that don't understand `terminal_input' or
34728 `terminal_output'.
34729
132e4113 347302008-11-09 Robert Millan <rmh@aybabtu.com>
34731
34732 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34733 `terminal_input' / `terminal_output', not `terminal'.
34734
ac293d50 347352008-11-08 Robert Millan <rmh@aybabtu.com>
34736
34737 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 34738 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 34739
0025933a 347402008-11-08 Robert Millan <rmh@aybabtu.com>
34741
34742 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 34743 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 34744 members. Update all users.
34745 * util/console.c (grub_ncurses_term): Split in ...
34746 (grub_ncurses_term_input): ... this, and ...
34747 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 34748 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 34749
37c86336 347502008-11-08 Robert Millan <rmh@aybabtu.com>
34751
34752 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34753 (PKGDATA): Add $(pkgdata_SRCDIR).
34754 (pkglib_BUILDDIR): New variable.
34755 (pkgdata_SRCDIR): New variable.
34756 (build_env.mk): New target.
34757 (include_DATA): New variable.
34758 (install-local): Install $(include_DATA) files in $(includedir).
34759
b6c15a2d 347602008-11-07 Pavel Roskin <proski@gnu.org>
34761
d99d46f1 34762 * gendistlist.sh: Use C locale for sorting to ensure consistent
34763 output on all systems.
34764
b6c15a2d 34765 * util/grub.d/00_header.in: Remove incorrect space before
34766 "serial".
34767
c32ee8c9 347682008-11-07 Robert Millan <rmh@aybabtu.com>
34769
34770 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34771 per specification.
34772 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34773 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34774 (based on find_multi_boot1_header).
34775 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34776 using find_multi_boot2_header(), and abort if neither Multiboot or
34777 Multiboot headers were found.
34778
651c29b7 347792008-11-07 Robert Millan <rmh@aybabtu.com>
34780
34781 Modularize at_keyboard.mod:
34782
34783 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34784 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34785 (at_keyboard_mod_LDFLAGS): New variables.
34786
34787 Actual terminal split:
34788
34789 * include/grub/term.h (struct grub_term): Split in ...
34790 (struct grub_term_input): ... this, and ...
34791 (struct grub_term_output): ... this. Update all users.
34792 (grub_term_set_current): Split in ...
34793 (grub_term_set_current_input): ... this, and ...
34794 (grub_term_set_current_output): ... this.
34795 (grub_term_get_current): Split in ...
34796 (grub_term_get_current_input): ... this, and ...
34797 (grub_term_get_current_output): ... this.
34798 (grub_term_register): Split in ...
34799 (grub_term_register_input): ... this, and ...
34800 (grub_term_register_output): ... this.
34801 (grub_term_unregister): Split in ...
34802 (grub_term_unregister_input): ... this, and ...
34803 (grub_term_unregister_output): ... this.
34804 (grub_term_iterate): Split in ...
34805 (grub_term_iterate_input): ... this, and ...
34806 (grub_term_iterate_output): ... this.
34807
34808 * kern/term.c (grub_term_list): Split in ...
34809 (grub_term_list_input): ... this, and ...
34810 (grub_term_list_output): ... this. Update all users.
34811 (grub_cur_term): Split in ...
34812 (grub_cur_term_input): ... this, and ...
34813 (grub_cur_term_output): ... this. Update all users.
34814 (grub_term_set_current): Split in ...
34815 (grub_term_set_current_input): ... this, and ...
34816 (grub_term_set_current_output): ... this.
34817 (grub_term_get_current): Split in ...
34818 (grub_term_get_current_input): ... this, and ...
34819 (grub_term_get_current_output): ... this.
34820 (grub_term_register): Split in ...
34821 (grub_term_register_input): ... this, and ...
34822 (grub_term_register_output): ... this.
34823 (grub_term_unregister): Split in ...
34824 (grub_term_unregister_input): ... this, and ...
34825 (grub_term_unregister_output): ... this.
34826 (grub_term_iterate): Split in ...
34827 (grub_term_iterate_input): ... this, and ...
34828 (grub_term_iterate_output): ... this.
34829
34830 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34831 a check for input and one for output (and only attempt to get keys
34832 from user when input works).
34833
34834 * util/grub-probe.c (grub_term_get_current): Split in ...
34835 (grub_term_get_current_input): ... this, and ...
34836 (grub_term_get_current_output): ... this.
34837 * util/grub-fstest.c: Likewise.
34838 * util/i386/pc/grub-setup.c: Likewise.
34839 * util/grub-editenv.c: Likewise.
34840
34841 Portability adjustments:
34842
34843 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34844 `term/i386/pc/at_keyboard.c'.
34845 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34846 grub_keyboard_controller_init() (now handled by terminal .init).
34847 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34848 grub_at_keyboard_init().
34849 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34850 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34851 at_keyboard.mod via input terminal interface).
34852 * include/grub/i386/coreboot/console.h: Convert into a stub for
34853 `<grub/i386/pc/console.h>'.
34854
34855 Migrate full terminals to new API:
34856
34857 * term/efi/console.c (grub_console_term): Split into ...
34858 (grub_console_term_input): ... this, and ...
34859 (grub_console_term_output): ... this. Update all users.
34860 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34861 (grub_ofconsole_init): Split into ...
34862 (grub_ofconsole_init_input): ... this, and ...
34863 (grub_ofconsole_init_output): ... this.
34864 (grub_ofconsole_term): Split into ...
34865 (grub_ofconsole_term_input): ... this, and ...
34866 (grub_ofconsole_term_output): ... this. Update all users.
34867 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34868 (grub_serial_term_input): ... this, and ...
34869 (grub_serial_term_output): ... this. Update all users.
34870 * term/i386/pc/console.c (grub_console_term): Split into ...
34871 (grub_console_term_input): ... this, and ...
34872 (grub_console_term_output): ... this. Update all users.
34873 (grub_console_term_input): Only enable it on PC/BIOS platform.
34874 (grub_console_init): Remove grub_keyboard_controller_init() call.
34875
34876 Migrate input terminals to new API:
34877
34878 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34879 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34880 i386-specific anyway).
34881 (grub_console_checkkey): Rename to ...
34882 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34883 users.
34884 (grub_keyboard_controller_orig): New variable.
34885 (grub_console_getkey): Rename to ...
34886 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34887 users.
34888 (grub_keyboard_controller_init): Static-ize. Save original
34889 controller value so that it can be restored ...
34890 (grub_keyboard_controller_fini): ... here (new function).
34891 (grub_at_keyboard_term): New structure.
34892 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34893 functions.
34894
34895 Migrate output terminals to new API:
34896
34897 * term/i386/pc/vga.c (grub_vga_term): Change type to
34898 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34899 members. Update all users.
34900 * term/gfxterm.c (grub_video_term): Change type to
34901 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34902 members. Update all users.
34903 * include/grub/i386/pc/console.h (grub_console_checkkey)
34904 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34905 etc).
34906
34907 Migrate `terminal' command and userland tools to new API:
34908
34909 * commands/terminal.c (grub_cmd_terminal): Split into ...
34910 (grub_cmd_terminal_input): ... this, and ...
34911 (grub_cmd_terminal_output): ... this.
34912 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34913 `terminal_input' and `terminal_output'.
34914 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34915 `terminal_input' / `terminal_output' API.
34916 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34917 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34918 provided ${GRUB_TERMINAL}, convert it).
34919
96e5d876 349202008-11-04 Robert Millan <rmh@aybabtu.com>
34921
34922 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34923 for FreeBSD.
34924 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34925
556f3775 349262008-11-03 Bean <bean123ch@gmail.com>
34927
34928 * kern/elf.c (grub_elf32_load): Revert to previous code.
34929 (grub_elf64_load): Likewise.
34930
34931 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34932
926b9823 349332008-11-01 Robert Millan <rmh@aybabtu.com>
34934
34935 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34936 (TARGET_CPPFLAGS): Likewise.
34937 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34938
1432e958 349392008-11-01 Carles Pina i Estany <carles@pina.cat>
34940
34941 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34942
dba3f844 349432008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 34944
34945 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34946 addition of objects until the code is not going to be able to fail.
34947
dba3f844 349482008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 34949
34950 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34951 (add a missing NULL check, and correct them by moving the pointer
34952 operations after the actual check).
34953
7ab28c21 349542008-10-29 Robert Millan <rmh@aybabtu.com>
34955
34956 * util/i386/pc/grub-install.in: Handle empty string as output from
34957 make_system_path_relative_to_its_root().
34958
1b7748eb 349592008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34960
34961 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34962 circular metadata worst case scenario. If the metadata is circular
34963 then copy the wrap in place.
34964 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34965 project lib/format_text/layout.h
34966 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34967
c9618ab2 349682008-10-03 Felix Zielcke <fzielcke@z-51.de>
34969
7a36edca 34970 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 34971
bf981c62 349722008-10-03 Felix Zielcke <fzielcke@z-51.de>
34973
34974 * util/update-grub_lib.in: Mention filename in warning message.
34975
6d994591 349762008-09-29 Felix Zielcke <fzielcke@z-51.de>
34977
34978 * NEWS: Update for rename of update-grub to grub-mkconfig.
34979
18ade780 349802008-09-29 Felix Zielcke <fzielcke@z-51.de>
34981
34982 * util/update-grub_lib.in: Copy to ...
34983 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 34984 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 34985 * util/update-grub.in: Rename to ...
34986 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34987 option. Add `--output' option to allow users to specify the generated
34988 configuration file. Default to stdout.
34989 (update_grub_dir): Rename to ...
34990 (grub_mkconfig_dir): ... this.
34991 (grub_cfg): Default to an empty string.
34992 * conf/common.rmk (update-grub): Rename to ...
34993 (grub-mkconfig): ... this.
34994 (update-grub_lib): Copy to ...
34995 (grub-mkconfig_lib): ... this.
34996 (update-grub_SCRIPTS): Copy to ...
34997 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34998 (update-grub_DATA): Rename to ...
34999 (grub-mkconfig_DATA): ... this.
35000
556ce6ac 350012008-09-28 Robert Millan <rmh@aybabtu.com>
35002
35003 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35004 to `modified'. Add the real `created' field.
35005 (grub_iso9660_uuid): Use `modified' rather than `created' for
35006 constructing the UUID.
35007
350082008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 35009
35010 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35011 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35012
92274e85 350132008-09-28 Bean <bean123ch@gmail.com>
35014
35015 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35016 Thanks to Christian Franke for finding this bug.
35017
add6f17a 350182008-09-25 Robert Millan <rmh@aybabtu.com>
35019
35020 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35021 instances of grub_util_get_disk_name() (see previous commit).
35022
d2a367b8 350232008-09-25 Robert Millan <rmh@aybabtu.com>
35024
35025 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35026 `util/i386/get_disk_name.c'.
35027 * conf/i386-efi.rmk: Likewise.
35028 * conf/x86_64-efi.rmk: Likewise.
35029 * conf/i386-coreboot.rmk: Likewise.
35030 * conf/i386-ieee1275.rmk: Likewise.
35031 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35032 `util/ieee1275/get_disk_name.c'.
35033 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35034 * util/ieee1275/get_disk_name.c: Remove file.
35035 * util/i386/get_disk_name.c: Remove file.
35036 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35037 "hd%d" for device.map entries, rather than using
35038 grub_util_get_disk_name().
35039
81a06771 350402008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 35041
35042 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35043 warning.
35044 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35045
5a004279 350462008-09-24 Carles Pina i Estany <carles@pina.cat>
35047
35048 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35049 Changed to 0x5100.
35050 (GRUB_TERM_PPAGE): Changed to 0x4900.
35051
397093d3 350522008-09-24 Robert Millan <rmh@aybabtu.com>
35053
35054 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35055 macros (they were i386-pc specific).
35056 * include/grub/sparc64/ieee1275/console.h: Likewise.
35057 * include/grub/efi/console.h: Likewise.
35058
a91b6c7c 350592008-09-22 Bean <bean123ch@gmail.com>
35060
35061 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35062 resident and in attribute list.
35063
35064 * include/grub/ntfs.h (BMP_LEN): Removed.
35065
c40fd116 350662008-09-22 Bean <bean123ch@gmail.com>
35067
81a06771 35068 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 35069 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35070
35071 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35072 error occurs, as grub_disk_open will call grub_disk_close, which will
35073 call p->close (scsi).
35074
81a06771 350752008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 35076
35077 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35078 (AC_PREREQ): Bumped to 2.59.
35079 (AC_TRY_COMPILE): Replace obsolete macro with ...
35080 (AC_COMPILE_IFELSE): ... this.
35081 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35082 (AC_LINK_IFELSE): ... this.
35083
5dc43410 350842008-09-21 Felix Zielcke <fzielcke@z-51.de>
35085
35086 * autogen.sh: Add a call to `gendistlist.sh'.
35087
9035dce4 350882008-09-19 Christian Franke <franke@computer.org>
35089
35090 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35091 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35092 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35093 Export __enable_execute_stack() to modules.
35094 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35095 New function.
35096
7fd75377 350972008-09-09 Felix Zielcke <fzielcke@z-51.de>
35098
040030b3 35099 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35100 Sort the list.
35101
351022008-09-09 Felix Zielcke <fzielcke@z-51.de>
35103
35104 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 35105 #include <grub/util/hostdisk.h>.
35106
89d5ffcf 351072008-09-08 Robert Millan <rmh@aybabtu.com>
35108
35109 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35110 segments when their filesz is zero (grub_file_read() interprets
81a06771 35111 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 35112 Use `lowest_segment' rather than 0 for calculating the current
35113 segment load address.
35114
40da438f 351152008-09-08 Robert Millan <rmh@aybabtu.com>
35116
35117 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35118 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35119 clobbered useful information.
35120
ddbf5556 351212008-09-08 Robert Millan <rmh@aybabtu.com>
35122
35123 * include/grub/util/biosdisk.h: Move to ...
35124 * include/grub/util/hostdisk.h: ... here. Update all users.
35125 * util/biosdisk.c: Move to ...
35126 * util/hostdisk.c: ... here. Update all users.
35127
783d0f48 351282008-09-07 Robert Millan <rmh@aybabtu.com>
35129
35130 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35131 variables.
35132 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35133 and length can be stored directly in the `mbi->mmap_addr' and
35134 `mbi->mmap_length' struct fields.
35135
548e2ea5 351362008-09-07 Robert Millan <rmh@aybabtu.com>
35137
35138 * conf/i386.rmk: New file. Provides declaration for building
35139 `cpuid.mod'.
35140 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35141 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35142 variables.
35143 Include `conf/i386.mk'.
35144 * conf/i386-efi.rmk: Likewise.
35145 * conf/x86_64-efi.rmk: Likewise.
35146 * conf/i386-coreboot.rmk: Likewise.
35147 * conf/i386-ieee1275.rmk: Likewise.
35148
0ea85a37 351492008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35150
35151 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35152 Adds optimization support for BGR based modes.
35153
35154 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35155 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35156 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35157 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35158 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35159 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35160 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35161 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35162 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35163 (grub_video_i386_vbeblit_index_index): Likewise.
35164 (grub_video_i386_vbeblit_replace_directN): Added.
35165 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35166 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35167 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35168 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35169 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35170 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 35171 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 35172 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35173 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35174 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35175 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35176 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35177 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35178
35179 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35180 (grub_video_i386_vbefill_R8G8B8): Likewise.
35181 (grub_video_i386_vbefill_index): Likewise.
35182 (grub_video_i386_vbefill_direct32): Added.
35183 (grub_video_i386_vbefill_direct24): Likewise.
35184 (grub_video_i386_vbefill_direct16): Likewise.
35185 (grub_video_i386_vbefill_direct8): Likewise.
35186
81a06771 35187 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 35188 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35189 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35190 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35191 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35192 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 35193
0ea85a37 35194 * video/video.c (grub_video_get_blit_format): Updated to use new
35195 blit formats. Added handling for 16 bit color modes.
81a06771 35196
35197 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 35198 fillers.
35199 (common_blitter): Updated to use new blitters.
35200
35201 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35202 Removed.
35203 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35204 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35205 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35206 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35207 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35208 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35209 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35210 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35211 (grub_video_i386_vbeblit_index_index): Likewise.
35212 (grub_video_i386_vbeblit_replace_directN): Added.
35213 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35214 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35215 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35216 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35217 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35218 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35219 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35220 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35221 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35222 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35223 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35224 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35225 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 35226
0ea85a37 35227 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35228 (grub_video_i386_vbefill_R8G8B8): Likewise.
35229 (grub_video_i386_vbefill_index): Likewise.
35230 (grub_video_i386_vbefill_direct32): Added.
35231 (grub_video_i386_vbefill_direct24): Likewise.
35232 (grub_video_i386_vbefill_direct16): Likewise.
35233 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 35234
0ea85a37 35235 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35236 types.
81a06771 35237
0ea85a37 35238 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35239 types.
81a06771 35240
0ea85a37 35241 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35242 blitter types.
81a06771 35243
0ea85a37 35244 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35245 types.
35246
e8a83df6 352472008-09-06 Felix Zielcke <fzielcke@z-51.de>
35248
35249 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35250 RAID level 1.
35251
6bcd8ee5 352522008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 35253
6bcd8ee5 35254 * fs/iso9660.c (grub_iso9660_date): New structure.
35255 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35256 (grub_iso9660_uuid): New function.
c375ae58 35257
59261157 352582008-09-05 Bean <bean123ch@gmail.com>
35259
35260 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35261
35262 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35263 insensitive bit for names in Win32 and Win32 & DOS namespace.
35264
35265 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35266
35267 * include/grub/types.h (LONG_MAX): Likewise.
35268
58b6645a 352692008-09-04 Felix Zielcke <fzielcke@z-51.de>
35270
4ee55921 35271 * util/getroot.c: Include <config.h>.
35272 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35273 add support for /dev/md/N devices and handle LVM double dash escaping.
35274
352752008-09-04 Felix Zielcke <fzielcke@z-51.de>
35276
35277 * config.guess: Update to latest version from config git.
35278 * config.sub: Likewise.
58b6645a 35279
9124f65d 352802008-09-03 Robert Millan <rmh@aybabtu.com>
35281
35282 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35283 `disk->total_sectors'.
35284
81a06771 352852008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 35286
35287 * include/grub/normal.h: Fixed incorrect comment for
35288 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35289
81a06771 352902008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 35291
35292 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35293 values with defines.
35294
35295 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35296 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35297 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35298 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35299 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35300 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35301 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35302 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35303 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35304 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35305 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35306 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35307 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35308 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35309 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35310 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35311 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35312 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35313 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35314
93d5cbf8 353152008-08-31 Robert Millan <rmh@aybabtu.com>
35316
35317 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35318 declaration.
35319 (grub_multiboot): Fix a few warnings.
35320
21751d50 353212008-08-31 Robert Millan <rmh@aybabtu.com>
35322
35323 * loader/i386/pc/multiboot.c: Update comment not to say that
35324 boot_device support is unimplemented.
35325
e27a75c5 353262008-08-31 Robert Millan <rmh@aybabtu.com>
35327
35328 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35329 or memory map support are unimplemented.
35330
81a06771 353312008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 35332
35333 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35334
81a06771 353352008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 35336
35337 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35338 total video memory in 'vbeinfo' output; show color format details for
35339 each video mode.
35340
7c5d8d95 353412008-08-30 Pavel Roskin <proski@gnu.org>
35342
35343 * util/genmoddep.c: Remove for real this time.
35344 * DISTLIST: Remove util/genmoddep.c.
35345
4cebd25a 353462008-08-30 Robert Millan <rmh@aybabtu.com>
35347
35348 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35349 as required by Multiboot spec (it was already 4-byte aligned, but
35350 only by chance).
35351
b497a269 353522008-08-29 Pavel Roskin <proski@gnu.org>
35353
e3925185 35354 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35355 * kern/powerpc/ieee1275/startup.S: ... this.
35356 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35357 * DISTLIST: Likewise.
35358
b497a269 35359 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35360 grub/cpu/kernel.h. Add start label for consistency with other
35361 platforms. Add grub_prefix immediately after start. Add jump
35362 to the code after grub_prefix.
35363 * include/grub/powerpc/kernel.h: Provide valid values for
35364 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35365
6e5a42fe 353662008-08-29 Bean <bean123ch@gmail.com>
35367
35368 * configure.ac: Change host_os to cygwin for mingw.
35369 (asprintf): New check for function.
35370
35371 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35372 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35373
35374 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 35375 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 35376 sync, sleep and grub_util_get_disk_size for mingw.
35377
35378 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35379 to get size in mingw.
35380 (open_device): Use flag O_BINARY if it's defined.
35381 (find_root_device): Add dummy code for mingw.
35382
35383 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35384 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35385 (get_scsi_disk_name): Return 0 for mingw.
35386
35387 * util/hostfs.c: #include <grub/util/misc.h>.
35388 (grub_hostfs_open): Use "rb" flag to open file, use
35389 grub_util_get_disk_size to get disk size for mingw.
35390
35391 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35392 (asprintf): New function if HAVE_ASPRINTF is not set.
35393 (sync): New function for mingw.
35394 (sleep): Likewise.
35395 (grub_util_get_disk_size): Likewise.
35396
ab3f2673 353972008-08-28 Pavel Roskin <proski@gnu.org>
35398
35399 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35400 kern/time.c.
35401
1c282483 354022008-08-28 Robert Millan <rmh@aybabtu.com>
35403
35404 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35405
678e849c 354062008-08-28 Robert Millan <rmh@aybabtu.com>
35407
35408 Change find_grub_drive() syntax so it doesn't prevent it from
35409 detecting NULL names as errors.
35410
35411 * util/biosdisk.c (find_grub_drive): Move free slot search code
35412 from here ...
35413 (find_free_slot): ... to here.
35414 (read_device_map): Use find_free_slot() to search for free slots.
35415
965c75ca 354162008-08-27 Marco Gerards <marco@gnu.org>
35417
35418 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35419 (scsi_mod_SOURCES): New variable.
35420 (scsi_mod_CFLAGS): Likewise
35421 (scsi_mod_LDFLAGS): Likewise.
35422
35423 * disk/scsi.c: New file.
35424
35425 * include/grub/scsi.h: Likewise.
35426
35427 * include/grub/scsicmd.h: Likewise.
35428
35429 * disk/ata.c: Include <grub/scsi.h>.
35430 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35431 instead.
35432 (grub_ata_iterate): Skip ATAPI devices.
35433 (grub_ata_open): Only handle ATAPI devices.
35434 (struct grub_atapi_read): Removed.
35435 (grub_atapi_readsector): Likewise.
35436 (grub_ata_read): No longer handle ATAPI devices.
35437 (grub_ata_write): Likewise.
35438 (grub_atapi_iterate): New function.
35439 (grub_atapi_read): Likewise.
35440 (grub_atapi_write): Likewise.
35441 (grub_atapi_open): Likewise.
35442 (grub_atapi_close): Likewise.
35443 (grub_atapi_dev): New variable.
35444 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35445 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35446
35447 * include/grub/disk.h (enum grub_disk_dev_id): Add
35448 `GRUB_DISK_DEVICE_SCSI_ID'.
35449
c07ae501 354502008-08-26 Robert Millan <rmh@aybabtu.com>
35451
35452 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35453 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35454 descriptive.
35455
5ed20adc 354562008-08-23 Bean <bean123ch@gmail.com>
35457
35458 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35459 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35460 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35461 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35462 dm_nv.mod.
35463 (raid5rec_mod_SOURCES): New macro.
35464 (raid5rec_mod_CFLAGS): Likewise.
35465 (raid5rec_mod_LDFLAGS): Likewise.
35466 (raid6rec_mod_SOURCES): Likewise.
35467 (raid6rec_mod_CFLAGS): Likewise.
35468 (raid6rec_mod_LDFLAGS): Likewise.
35469 (mdraid_mod_SOURCES): Likewise.
35470 (mdraid_mod_CFLAGS): Likewise.
35471 (mdraid_mod_LDFLAGS): Likewise.
35472 (dm_nv_mod_SOURCES): Likewise.
35473 (dm_nv_mod_CFLAGS): Likewise.
35474 (dm_nv_mod_LDFLAGS): Likewise.
35475
35476 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35477 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35478 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35479
35480 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35481 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35482
35483 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35484
35485 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35486
35487 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35488
35489 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35490
35491 * disk/raid5_recover.c: New file.
35492
35493 * disk/raid6_recover.c: Likewise.
35494
35495 * disk/mdraid_linux.c: Likewise.
35496
35497 * disk/dmraid_nvidia.c: Likewise.
35498
35499 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35500 ULONG_MAX.
35501
35502 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35503 calculate the size of raid device.
35504 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35505 different layout of raid5.
35506 (grub_raid_scan_device): Remove code specific to mdraid.
35507 (grub_raid_list): New variable.
35508 (free_array): New function.
35509 (grub_raid_register): Likewise.
35510 (grub_raid_unregister): Likewise.
35511 (grub_raid_rescan): Likewise.
35512 (GRUB_MOD_INIT): Don't iterate device here.
35513 (GRUB_MOD_FINI): Use free_array to release resource.
35514
35515 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35516 (grub_raid5_recover_func_t): New function variable type.
35517 (grub_raid6_recover_func_t): Likewise.
35518 (grub_raid5_recover_func): New variable.
35519 (grub_raid6_recover_func): Likewise.
35520 (grub_raid_register): New function.
35521 (grub_raid_unregister): Likewise.
35522 (grub_raid_rescan): Likewise.
35523 (grub_raid_block_xor): Likewise.
35524
35525 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35526 (CMD_CRC): New macro.
35527 (part): Removed.
35528 (read_file): Handle device as well as file.
35529 (cmd_crc): New function.
35530 (fstest): Handle multiple disks.
35531 (options): Remove part, raw and long, add root and diskcount.
35532 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 35533 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 35534 add handling for the new options, support multiple disks.
35535
35536 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35537
29c18915 355382008-08-23 Bean <bean123ch@gmail.com>
35539
35540 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35541
35542 * genfslist.sh: Ignore kernel.mod.
35543
35544 * genpartmaplist.sh: Likewise.
35545
8415f261 355462008-08-23 Robert Millan <rmh@aybabtu.com>
35547
35548 * util/getroot.c (find_root_device): Skip anything that starts with
35549 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35550
d5a7dc5b 355512008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 35552
d5a7dc5b 35553 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35554 * util/grub.d/00_header.in: Allow the administrator to change default
35555 gfxmode via ${GRUB_GFXMODE}.
35556
380cfbb4 355572008-08-21 Felix Zielcke <fzielcke@z-51.de>
35558
35559 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35560
c9baafe7 355612008-08-21 Robert Millan <rmh@aybabtu.com>
35562
35563 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35564 loader.
35565 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35566 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35567
e290bef2 355682008-08-20 Carles Pina i Estany <carles@pina.cat>
35569
35570 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35571 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35572
f9dbfc96 355732008-08-19 Robert Millan <rmh@aybabtu.com>
35574
35575 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35576 (struct grub_virtual_screen): Remove `cursor_color'.
35577 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35578 initialization.
35579 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35580
dd6bd6ab 355812008-08-18 Robert Millan <rmh@aybabtu.com>
35582
35583 Unify (identical) linux_normal.c files.
35584 * loader/i386/efi/linux_normal.c: Move from here ...
35585 * loader/linux_normal.c: ... to here. Update all users.
35586 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35587 * loader/i386/ieee1275/linux_normal.c: Likewise.
35588
7f42f83e 355892008-08-18 Robert Millan <rmh@aybabtu.com>
35590
35591 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35592 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35593 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35594 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35595 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35596 New macros.
35597 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35598 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35599 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35600 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35601 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35602 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35603 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35604 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35605 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35606 portably using grub_getxy().
35607 Replace `-EFI' with `-bzImage' in boot message.
35608
38487ddb 356092008-08-17 Robert Millan <rmh@aybabtu.com>
35610
35611 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35612
deceb3ec 356132008-08-17 Robert Millan <rmh@aybabtu.com>
35614
35615 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35616
35617 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35618 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35619 (grub_machine_mmap_iterate): New function declaration.
35620 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35621 structure.
35622 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35623 macros.
35624
35625 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35626 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35627 Move e820 parsing from here ...
35628 * kern/i386/pc/mmap.c: New file.
35629 (grub_machine_mmap_iterate): ... to here.
35630
35631 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35632 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35633 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35634 (grub_available_iterate): Redeclare to return `void', and redeclare
35635 its hook to use grub_uint64_t as addr and size parameters, and rename
35636 to ...
35637 (grub_machine_mmap_iterate): ... this. Update all users.
35638
35639 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35640 to make it more readable. Rename to ...
35641 (grub_machine_mmap_iterate): ... this.
35642
35643 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35644 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35645 (grub_multiboot): Allocate an extra region after the payload, and fill
35646 it with a Multiboot memory map. Adjust a.out loader to calculate size
35647 with the extra space.
35648 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35649 with the extra space.
35650
f8aa0f43 356512008-08-17 Carles Pina i Estany <carles@pina.cat>
35652
9807deb9 35653 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 35654
605f5bb6 356552008-08-17 Felix Zielcke <fzielcke@z-51.de>
35656
35657 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35658 mdate-sh to the list `find' searches for.
35659 * DISTLIST: Regenerated.
35660
210db6c6 356612008-08-16 Felix Zielcke <fzielcke@z-51.de>
35662
35663 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35664 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 35665 genmoddep.awk, gensymlist.sh.in.
35666 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 35667 * DISTLIST: Regenerated.
48cdbfd4 35668 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 35669
1082b929 356702008-08-16 Robert Millan <rmh@aybabtu.com>
35671
35672 * disk/raid.c (grub_raid_init): Handle/report errors set by
35673 grub_device_iterate().
35674 * disk/lvm.c (grub_lvm_init): Likewise.
35675
42ce5170 356762008-08-15 Bean <bean123ch@gmail.com>
35677
35678 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35679 and datehook.mod.
35680 (datetime_mod_SOURCES): New macro.
35681 (datetime_mod_CFLAGS): Likewise.
35682 (datetime_mod_LDFLAGS): Likewise.
35683 (date_mod_SOURCES): Likewise.
35684 (date_mod_CFLAGS): Likewise.
35685 (date_mod_LDFLAGS): Likewise.
35686 (datehook_mod_SOURCES): Likewise.
35687 (datehook_mod_CFLAGS): Likewise.
35688 (datehook_mod_LDFLAGS): Likewise.
35689
35690 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35691 and datehook.mod.
35692 (datetime_mod_SOURCES): New macro.
35693 (datetime_mod_CFLAGS): Likewise.
35694 (datetime_mod_LDFLAGS): Likewise.
35695 (date_mod_SOURCES): Likewise.
35696 (date_mod_CFLAGS): Likewise.
35697 (date_mod_LDFLAGS): Likewise.
35698 (datehook_mod_SOURCES): Likewise.
35699 (datehook_mod_CFLAGS): Likewise.
35700 (datehook_mod_LDFLAGS): Likewise.
35701
35702 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35703 and datehook.mod.
35704 (datetime_mod_SOURCES): New macro.
35705 (datetime_mod_CFLAGS): Likewise.
35706 (datetime_mod_LDFLAGS): Likewise.
35707 (date_mod_SOURCES): Likewise.
35708 (date_mod_CFLAGS): Likewise.
35709 (date_mod_LDFLAGS): Likewise.
35710 (datehook_mod_SOURCES): Likewise.
35711 (datehook_mod_CFLAGS): Likewise.
35712 (datehook_mod_LDFLAGS): Likewise.
35713
35714 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35715 and datehook.mod.
35716 (datetime_mod_SOURCES): New macro.
35717 (datetime_mod_CFLAGS): Likewise.
35718 (datetime_mod_LDFLAGS): Likewise.
35719 (date_mod_SOURCES): Likewise.
35720 (date_mod_CFLAGS): Likewise.
35721 (date_mod_LDFLAGS): Likewise.
35722 (datehook_mod_SOURCES): Likewise.
35723 (datehook_mod_CFLAGS): Likewise.
35724 (datehook_mod_LDFLAGS): Likewise.
35725
35726 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35727 and datehook.mod.
35728 (datetime_mod_SOURCES): New macro.
35729 (datetime_mod_CFLAGS): Likewise.
35730 (datetime_mod_LDFLAGS): Likewise.
35731 (date_mod_SOURCES): Likewise.
35732 (date_mod_CFLAGS): Likewise.
35733 (date_mod_LDFLAGS): Likewise.
35734 (datehook_mod_SOURCES): Likewise.
35735 (datehook_mod_CFLAGS): Likewise.
35736 (datehook_mod_LDFLAGS): Likewise.
35737
35738 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35739
35740 * commands/date.c: New file.
35741
35742 * hook/datehook.c: Likewise.
35743
35744 * include/grub/lib/datetime.h: Likewise.
35745
35746 * include/grub/i386/cmos.h: Likewise.
35747
35748 * lib/datetime.c: Likewise.
35749
35750 * lib/i386/datetime.c: Likewise.
35751
35752 * lib/efi/datetime.c: Likewise.
35753
0e9242da 357542008-08-14 Robert Millan <rmh@aybabtu.com>
35755
35756 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35757 (grub_mkelfimage_SOURCES): New variable.
35758 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35759
35760 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35761 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35762 * conf/powerpc-ieee1275.rmk: Likewise.
35763 * conf/i386-ieee1275.rmk: Likewise.
35764
35765 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35766 * kern/i386/coreboot/init.c: Likewise.
35767
35768 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35769 with `<grub/cpu/kernel.h>'.
35770 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35771 to ...
35772 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35773 * kern/i386/coreboot/startup.S: Likewise.
35774
35775 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35776 (GRUB_MOD_GAP): Remove.
35777 * include/grub/powerpc/kernel.h: New file.
35778 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35779 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35780 * include/grub/i386/kernel.h: New file.
35781 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35782 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35783 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35784
35785 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35786 `grub-mkelfimage'.
35787 Use --directory when invoking grub_mkimage.
35788
35789 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35790 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35791 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35792 and GRUB_KERNEL_CPU_PREFIX.
35793
b86408f8 357942008-08-14 Felix Zielcke <fzielcke@z-51.de>
35795
d5e619ca 35796 * include/grub/err.h (grub_err_printf): New function prototype.
35797 * util/misc.c (grub_err_printf): New function.
35798 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35799 grub_printf.
35800 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 35801
7161f0e0 358022008-08-13 Robert Millan <rmh@aybabtu.com>
35803
35804 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35805
a1967522 358062008-08-13 Robert Millan <rmh@aybabtu.com>
35807
35808 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35809 boot entry.
35810
371458b5 358112008-08-12 Robert Millan <rmh@aybabtu.com>
35812
35813 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35814 of the relocation code from here ...
35815 (grub_multiboot): ... to here.
35816 (forward_relocator, backward_relocator): Move from here ...
35817 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35818 (grub_multiboot_backward_relocator): ... to here.
35819 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35820 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35821 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35822 (grub_multiboot_forward_relocator_end)
35823 (grub_multiboot_backward_relocator)
35824 (grub_multiboot_backward_relocator_end): New variables.
35825
05f9452b 358262008-08-12 Bean <bean123ch@gmail.com>
35827
35828 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35829
20024ab0 358302008-08-11 Robert Millan <rmh@aybabtu.com>
35831
35832 * kern/i386/linuxbios/startup.S: Move from here ...
35833 * kern/i386/coreboot/startup.S: ... to here.
35834
35835 * kern/i386/linuxbios/init.c: Move from here ...
35836 * kern/i386/coreboot/init.c: ... to here.
35837
35838 * kern/i386/linuxbios/table.c: Move from here ...
35839 * kern/i386/coreboot/mmap.c: ... to here.
35840
35841 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35842
e352e9cd 358432008-08-11 Robert Millan <rmh@aybabtu.com>
35844
35845 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35846 errors. Leave it to the upper layer to handle them.
35847
2d05bc6a 358482008-08-09 Christian Franke <franke@computer.org>
35849
35850 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35851 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35852 Install `grub.d/10_windows' only on Cygwin.
35853 * configure.ac: Add subst of `target_os'.
35854 Check `target_os' also before setting TARGET_OBJ2ELF.
35855 Add `--enable-grub-pe2elf'.
35856
042bd419 358572008-08-08 Robert Millan <rmh@aybabtu.com>
35858
35859 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35860 (grub_last_time): Change type to grub_uint64_t.
35861 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35862 (grub_disk_close): Likewise.
35863
35864 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35865 (run_menu): Migrate code from to using grub_get_time_ms().
35866
35867 * util/misc.c (grub_get_time_ms): New function.
35868
7f280db5 358692008-08-08 Marco Gerards <marco@gnu.org>
35870
35871 * disk/ata.c (grub_ata_regget): Change return type to
35872 `grub_uint8_t'.
35873 (grub_ata_regget2): Likewise.
35874 (grub_ata_wait_status): New function.
35875 (grub_ata_wait_busy): Removed function, updated all users to use
35876 `grub_ata_wait_status'.
35877 (grub_ata_wait_drq): Likewise.
35878 (grub_ata_cmd): New function.
35879 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35880 error handling.
35881 (grub_ata_pio_write): Add error handling.
35882 (grub_atapi_identify): Likewise.
35883 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35884 handling.
35885 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35886 handling. Actually use the detected registers. Reorder the
35887 detection logic such that it is easier to read.
35888 (grub_ata_pciinit): Do not assign the same ID to each controller.
35889 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35890 handling.
35891 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35892
35893 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35894
1fbc5e66 358952008-08-08 Marco Gerards <marco@gnu.org>
35896
35897 * NEWS: Update.
35898
819ce6c0 358992008-08-07 Bean <bean123ch@gmail.com>
35900
35901 * include/grub/x86_64/pci.h: New file.
35902
5c41d44d 359032008-08-07 Christian Franke <franke@computer.org>
35904
35905 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35906 (TIMER2_GATE): Likewise.
35907 (grub_pit_wait): Add enable/disable of the timer2 gate
35908 bit of port 0x61. This fixes a possible infinite loop.
35909
5ebc275d 359102008-08-07 Bean <bean123ch@gmail.com>
35911
35912 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35913 kern/i386/tsc.c and kern/i386/pit.c.
35914
35915 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35916 x86_64 platform.
35917
35918 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35919 <grub/i386/tsc.h>.
35920
35921 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35922
e383b3d0 359232008-08-07 Bean <bean123ch@gmail.com>
35924
35925 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35926
35927 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35928
35929 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35930 multiple inclusion. Add #include <grub/types.h>.
35931
1cbb58ac 359322008-08-06 Christian Franke <franke@computer.org>
35933
35934 * conf/common.rmk: Build and install `10_windows'.
35935 * util/grub.d/10_windows.in: New script.
35936
337f5a1e 359372008-08-06 Pavel Roskin <proski@gnu.org>
35938
35939 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35940
057bc4ac 359412008-08-06 Robert Millan <rmh@aybabtu.com>
35942
35943 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35944 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35945
2b99f123 359462008-08-06 Bean <bean123ch@gmail.com>
35947
35948 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35949 (grub_pxefs_fs_int): Remove dummy definition.
35950 (grub_pxefs_open): Use data->block_size to store the current block
35951 size setting.
35952 (grub_pxefs_read): Use block size stored in data->block_size. As the
35953 value of grub_pxe_blksize can be changed after the file is opened.
35954
9f0234cb 359552008-08-06 Bean <bean123ch@gmail.com>
35956
35957 * fs/i386/pc/pxe.c (curr_file): new variable.
35958 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35959 require the dummy internal file system anymore.
35960 (grub_pxefs_read): Removed.
35961 (grub_pxefs_close): Likewise.
35962 (grub_pxefs_fs_int): Likewise.
35963 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35964 connection when we switch file.
35965 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35966
a55d42e0 359672008-08-06 Robert Millan <rmh@aybabtu.com>
35968
35969 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35970 `halt.mod'.
35971 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35972 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35973
35974 * kern/i386/halt.c: New file.
35975 * kern/i386/reboot.c: Likewise.
35976 * include/grub/i386/reboot.h: Likewise.
35977 * include/grub/i386/halt.h: Likewise.
35978
35979 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35980 Include `<grub/cpu/halt.h>'.
35981 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35982 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35983
35984 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35985 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35986 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35987 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35988 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35989 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35990 from here ...
35991 * include/grub/i386/at_keyboard.h: ... to here.
35992
24371d26 359932008-08-05 Robert Millan <rmh@aybabtu.com>
35994
35995 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35996 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35997 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35998 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35999 `kern/generic/millisleep.c'.
36000
36001 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36002 instead of grub_get_rtc().
36003 (grub_tsc_init): Initialize `tsc_boot_time'.
36004
36005 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36006 (grub_machine_init): Use grub_tsc_init() rather than
36007 installing an RTC-based handler via grub_install_get_time_ms().
36008
36009 * kern/i386/pit.c: New file.
36010 * include/grub/i386/pit.h: Likewise.
36011
9e7007b3 360122008-08-05 Bean <bean123ch@gmail.com>
36013
36014 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36015
36016 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36017 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36018 (pxe_mod_SOURCES): New macro.
36019 (pxe_mod_CFLAGS): Likewise.
36020 (pxe_mod_LDFLAGS): Likewise.
36021 (pxecmd_mod_SOURCES): Likewise.
36022 (pxecmd_mod_CFLAGS): Likewise.
36023 (pxecmd_mod_LDFLAGS): Likewise.
36024
36025 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36026 (grub_pxe_call): Likewise.
36027
36028 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36029
36030 * commands/i386/pc/pxecmd.c: New file.
36031
9f0234cb 36032 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 36033
36034 * include/grub/i386/pc/pxe.h: Likewise.
36035
6977d49f 360362008-08-05 Bean <bean123ch@gmail.com>
36037
36038 * util/console.c (grub_console_cur_color): New variable.
36039 (grub_console_standard_color): Likewise.
36040 (grub_console_normal_color): Likewise.
36041 (grub_console_highlight_color): Likewise.
36042 (color_map): Likewise.
36043 (use_color): Likewise.
36044 (NUM_COLORS): New macro.
36045 (grub_ncurses_setcolorstate): Handle color properly.
36046 (grub_ncurses_setcolor): Don't change color here, just remember the
36047 settings, color will be set in grub_ncurses_setcolorstate.
36048 (grub_ncurses_getcolor): New function.
36049 (grub_ncurses_init): Initialize color pairs.
36050 (grub_ncurses_term): New member grub_ncurses_getcolor.
36051
9c2ff3ee 360522008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 36053
9c2ff3ee 36054 High resolution timer support. Implemented for x86 CPUs using TSC.
36055 Extracted generic grub_millisleep() so it's linked in only as needed.
36056 This requires a Pentium compatible CPU; if the RDTSC instruction is
36057 not supported, then it falls back on the generic grub_get_time_ms()
36058 implementation that uses the machine's RTC.
36059
36060 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36061 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36062 `kern/generic/millisleep.c'.
36063
36064 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36065 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36066
36067 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36068 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36069
36070 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36071
36072 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36073 `kern/generic/millisleep.c'.
36074
36075 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36076
36077 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36078
36079 * kern/generic/rtc_get_time_ms.c: New file.
36080
36081 * kern/generic/millisleep.c: New file.
337f5a1e 36082
9c2ff3ee 36083 * kern/misc.c: Don't include
36084 <kern/time.h> anymore.
36085 (grub_millisleep_generic): Removed.
36086
36087 * commands/sleep.c (grub_interruptible_millisleep): Uses
36088 grub_get_time_ms() instead of grub_get_rtc().
36089
36090 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36091 function.
36092 (grub_cpu_is_cpuid_supported): New inline function.
36093 (grub_cpu_is_tsc_supported): New inline function.
36094 (grub_tsc_init): New function prototype.
36095 (grub_tsc_get_time_ms): New function prototype.
36096
36097 * kern/i386/tsc.c (grub_get_time_ms): New file.
36098
36099 * include/grub/time.h: Include <grub/types.h.
36100 (grub_millisleep_generic): Removed.
36101 (grub_get_time_ms): New prototype.
36102 (grub_install_get_time_ms): New prototype.
36103 (grub_rtc_get_time_ms): New prototype.
36104
36105 * kern/time.c (grub_get_time_ms): New function.
36106 (grub_install_get_time_ms): New function.
36107
36108 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36109 <grub/time.h> anymore.
36110 (grub_millisleep): Removed.
36111 (grub_machine_init): Call grub_tsc_init.
36112
36113 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36114 get_time_ms() implementation.
36115
36116 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36117 (ieee1275_get_time_ms): New function.
36118 (grub_machine_init): Install get_time_ms() implementation.
36119
36120 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36121 (grub_machine_init): Call grub_tsc_init().
36122 (grub_millisleep): Removed.
bf06a93f 36123
9c2ff3ee 36124 * kern/ieee1275/init.c (grub_millisleep): Removed.
36125 (grub_machine_init): Install ieee1275_get_time_ms()
36126 implementation.
36127 (ieee1275_get_time_ms): New function.
36128 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36129 real work.
36130
9ec92aaf 361312008-08-05 Marco Gerards <marco@gnu.org>
36132
36133 * disk/ata.c: Include <grub/pci.h>.
36134 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36135 (grub_ata_initialize): Rewritten.
36136 (grub_ata_device_initialize): New function.
36137
8d23f507 361382008-08-04 Pavel Roskin <proski@gnu.org>
36139
36140 * kern/main.c: Include grub/mm.h.
36141
5e15ee3d 361422008-08-04 Robert Millan <rmh@aybabtu.com>
36143
36144 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36145 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36146 corruption problem).
36147
a9053f8f 361482008-08-04 Robert Millan <rmh@aybabtu.com>
36149
36150 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36151 warnings introduced in my last commit.
36152
dd19c7d7 361532008-08-03 Robert Millan <rmh@aybabtu.com>
36154
36155 Make PCI available on all i386 architectures.
36156
36157 * include/grub/i386/pc/pci.h: Move from here ...
36158 * include/grub/i386/pci.h: ... to here.
36159
36160 * include/grub/i386/pc/pci.h: Remove.
36161 * include/grub/i386/efi/pci.h: Remove.
36162 * include/grub/x86_64/efi/pci.h: Remove.
36163
36164 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36165 `<grub/cpu/pci.h>'.
36166
36167 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36168 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36169 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36170
36171 * conf/i386-ieee1275.rmk: Likewise.
36172
e14a6184 361732008-08-03 Robert Millan <rmh@aybabtu.com>
36174
36175 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36176 (grub_console_setcursor): Make it possible to set cursor off.
36177
52768e37 361782008-08-03 Robert Millan <rmh@aybabtu.com>
36179
36180 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36181 of modules instead of assuming which platform provides what.
36182 * util/update-grub.in: Likewise.
36183
2d52f57f 361842008-08-03 Robert Millan <rmh@aybabtu.com>
36185
36186 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36187 instead of `grub_install_dos_part' to determine whether a drive needs
36188 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 36189 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 36190
2a5cd121 361912008-08-02 Robert Millan <rmh@aybabtu.com>
36192
36193 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36194
93808428 361952008-08-02 Robert Millan <rmh@aybabtu.com>
36196
36197 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36198 of informational grub_dprintf() calls.
36199
3bd0a12a 362002008-08-02 Robert Millan <rmh@aybabtu.com>
36201
36202 * disk/memdisk.c (memdisk_size): Don't initialize.
36203 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36204
36205 * include/grub/i386/pc/kernel.h
36206 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36207 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36208 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36209 (grub_arch_memdisk_size): Remove.
36210
36211 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36212 field (was only used to transfer a constant). Add `type' field to
36213 support multiple module types.
36214 (grub_module_iterate): New function.
36215
36216 * kern/device.c (grub_device_open): Do not hide error messages
36217 when grub_disk_open() fails. Use grub_print_error() instead.
36218
36219 * kern/i386/pc/init.c (grub_arch_modules_addr)
36220 (grub_arch_memdisk_size): Remove functions.
36221 (grub_arch_modules_addr): Return the module address in high memory
36222 (now that it isn't copied anymore).
36223
36224 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36225 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36226 decompression routine (grub_total_module_size already includes that
36227 now). Don't copy modules back to low memory.
36228
36229 * kern/main.c: Include `<grub/mm.h>'.
36230 (grub_load_modules): Split out (and use) ...
36231 (grub_module_iterate): ... this function, which iterates through
36232 module objects and runs a hook.
36233 Comment out grub_mm_init_region() call, as it would cause non-ELF
36234 modules to be overwritten.
36235
36236 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36237 the memdisk image in its own region, make it part of the module list.
36238 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36239 (main): Parse --memdisk|-m option, and pass user-provided path as
36240 parameter to generate_image().
36241 (add_segments): Pass `memdisk_path' down to load_modules().
36242 (load_modules): Embed memdisk image in module section when requested.
36243 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36244 `header.type' instead of `header.offset'.
36245
36246 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36247 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36248 (memdisk_mod_LDFLAGS): New variables.
36249 * conf/i386-coreboot.rmk: Likewise.
36250 * conf/i386-ieee1275.rmk: Likewise.
36251
a927cc73 362522008-08-02 Robert Millan <rmh@aybabtu.com>
36253
36254 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36255 (backward_relocator): New variables. Used to allocate and relocate
36256 the payload, respectively.
36257 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 36258 address, install the appropriate relocator code in each bound of
a927cc73 36259 the payload, and set the entry point such that
36260 grub_multiboot_real_boot() will jump to one of them.
36261
36262 * kern/i386/loader.S (grub_multiboot_payload_size)
36263 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36264 (grub_multiboot_payload_entry_offset): New variables.
36265 (grub_multiboot_real_boot): Set cpu context to what the relocator
36266 expects, and jump to the relocator instead of the payload.
36267
36268 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36269 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36270 (grub_multiboot_payload_entry_offset): Export.
36271
b15d8a0c 362722008-08-01 Bean <bean123ch@gmail.com>
36273
36274 * normal/menu_entry.c (editor_getline): Don't return the original
36275 string as result, as it will be released by lexer once it has done
36276 using it.
36277
cdfb3d22 362782008-08-01 Robert Millan <rmh@aybabtu.com>
36279
36280 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36281 within menuentries, not before them.
36282 util/grub.d/10_hurd.in: Likewise.
36283
9175e93d 362842008-08-01 Bean <bean123ch@gmail.com>
36285
36286 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36287 (bufio_mod_SOURCES): New macro.
36288 (bufio_mod_CFLAGS): Likewise.
36289 (bufio_mod_LDFLAGS): Likewise.
36290
36291 * include/grub/bufio.h: New file.
36292
36293 * io/bufio.c: Likewise.
36294
36295 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36296 (grub_video_reader_png): Use grub_buffile_open to open file.
36297
36298 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36299 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36300
36301 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36302 (grub_video_reader_tga): Use grub_buffile_open to open file.
36303
36304 * font/manager.c: Include <grub/bufio.h>.
36305 (add_font): Use grub_buffile_open to open file.
36306
3d8383e7 363072008-07-31 Robert Millan <rmh@aybabtu.com>
36308
36309 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36310 ELF segments, use a macro for arbitrarily accessing any of them instead
36311 of preparing a pointer that allows access to one at a time.
36312 (grub_multiboot_load_elf64): Likewise.
36313
16e641b6 363142008-07-31 Bean <bean123ch@gmail.com>
36315
36316 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36317 GRUB_KERNEL_MACHINE_DATA_END.
36318
59198b72 363192008-07-30 Robert Millan <rmh@aybabtu.com>
36320
36321 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36322 Increase from 0x50 to 0x60.
36323 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36324 use UUIDs to identify the root drive for them. If that's not
36325 possible, abort.
36326 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36327 check, for cross-disk installs.
36328
ae88bca3 363292008-07-30 Robert Millan <rmh@aybabtu.com>
36330
36331 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36332 is non-empty, use it to set the `prefix' environment variable instead
36333 of the usual approach.
36334 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36335 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36336 environment variable instead of dummy make_install_device().
36337
36338 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36339 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 36340 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 36341
36342 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36343 New variable reference.
36344 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36345 New macro. Defines offset of `grub_prefix' within startup.S (relative
36346 to `start').
36347 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36348 section within startup.S (relative to `start').
36349 * include/grub/i386/coreboot/kernel.h: Likewise.
36350
36351 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36352 Overwrite grub_prefix with its contents, at the beginning of the
36353 first segment.
36354 (main): Understand -p|--prefix.
36355
14f41dd1 363562008-07-30 Robert Millan <rmh@aybabtu.com>
36357
36358 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36359
4ca049a3 363602008-07-30 Robert Millan <rmh@aybabtu.com>
36361
36362 * term/i386/pc/vga_text.c (grub_console_cls): Use
36363 grub_console_gotoxy() to go back to beginning of the screen.
36364 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36365
2921d337 363662008-07-29 Christian Franke <franke@computer.org>
36367
36368 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36369 Add conversion of emulated mount points on Cygwin.
36370
b609876d 363712008-07-29 Christian Franke <franke@computer.org>
36372
36373 * util/update-grub.in: Add a check for admin
36374 group on Cygwin.
36375 Remove old `grub.cfg.new' before creation.
36376 Add `-f' to `mv' to handle the different filesystem
36377 semantics of Windows.
36378
e93e4679 363792008-07-29 Bean <bean123ch@gmail.com>
36380
36381 * normal/main.c (get_line): Fix buffer overflow bug.
36382
41694fd0 363832008-07-28 Robert Millan <rmh@aybabtu.com>
36384
36385 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36386 (struct grub_apple_header): New struct. Describes the layout of
36387 the partmap header.
36388 (apple_partition_map_iterate): Check the header magic as well as the
36389 partition magic (which was already being checked).
36390
cfd0b4e6 363912008-07-28 Pavel Roskin <proski@gnu.org>
36392
36393 * genmk.rb: Add a warning to the beginning of the output that
36394 it's a generated file and should not be edited.
36395
93cce016 363962008-07-28 Robert Millan <rmh@aybabtu.com>
36397
36398 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36399 with the same number are found, just use issue a warning with
36400 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 36401
cd1df915 364022008-07-27 Robert Millan <rmh@aybabtu.com>
36403
36404 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36405 information.
36406
b70a8427 364072008-07-27 Bean <bean123ch@gmail.com>
36408
36409 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36410 (grub_fat_find_dir): Ignore case when comparing filename.
36411
8f5e379f 364122008-07-27 Bean <bean123ch@gmail.com>
36413
36414 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36415 smallino, as it's more descriptive, and i8count can be confused with
36416 the other field count.
36417 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36418 inode type.
36419
a85cd5a0 364202008-07-27 Bean <bean123ch@gmail.com>
36421
36422 * commands/crc.c: New file.
36423
36424 * lib/crc.c: Likewise.
36425
36426 * include/grub/lib/crc.h: Likewise.
36427
36428 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36429
36430 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36431 (hexdump): Move this function to ...
36432
36433 * lib/hexdump.c: ... here.
36434
36435 * include/grub/hexdump.h: Renamed to ...
36436
36437 * include/grub/lib/hexdump.h: ... this.
36438
36439 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36440
36441 * util/grub-editenv.c: Likewise.
36442
36443 * include/envblk.h: Renamed to ...
36444
36445 * include/lib/envblk.h: ... this.
36446
36447 * util/envblk.c: Renamed to ...
36448
36449 * lib/envblk.c: ... this.
36450
36451 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36452 lib/hexdump.c.
36453 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36454 (pkglib_MODULES): Add crc.mod.
36455 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36456 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36457 (crc_mod_SOURCES): New macro.
36458 (crc_mod_CFLAGS): Likewise.
36459 (crc_mod_LDFLAGS): Likewise.
36460
36461 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36462
36463 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36464
36465 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36466
36467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36468
36469 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36470
c298def0 364712008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 36472
36473 * commands/help.c: Include <grub/term.h>.
36474 (TERM_WIDTH): Removed. Updated all users.
36475
cc349fb3 364762008-07-27 Pavel Roskin <proski@gnu.org>
36477
36478 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36479 spurious warnings about a comment within a comment.
36480
9051607e 364812008-07-25 Robert Millan <rmh@aybabtu.com>
36482
36483 * util/getroot.c (find_root_device): Skip devices that match
36484 /dev/dm-[0-9]. This lets the real device be found for any type of
36485 abstraction (LVM, EVMS, RAID..).
36486 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36487 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36488 device is found first, find_root_device() will now skip it.
36489
01453bfc 364902008-07-24 Pavel Roskin <proski@gnu.org>
36491
36492 * include/grub/types.h: Use __builtin_bswap32() and
36493 __builtin_bswap64() with gcc 4.3 and newer.
36494
6af9849f 364952008-07-24 Christian Franke <franke@computer.org>
36496
3a0fa256 36497 * util/i386/pc/grub-install.in: If `--debug' is specified,
36498 pass `--verbose' to grub-setup.
36499 Abort script if make_system_path_relative_to_its_root() fails.
36500
7810e747 365012008-07-24 Bean <bean123ch@gmail.com>
36502
36503 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36504 variable `target_platform' should be `platform'.
36505
42290e17 365062008-07-24 Bean <bean123ch@gmail.com>
36507
51cc5193 36508 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 36509 (grub_png_init_fixed_block): New function.
36510 (grub_png_decode_image_data): Handle fixed huffman code compression.
36511
2a8a80e4 365122008-07-24 Bean <bean123ch@gmail.com>
36513
36514 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36515 (grub_pe2elf_SOURCES): New macro.
36516 (CLEANFILES): Add grub-pe2elf.
36517
36518 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36519 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36520 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36521 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36522 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36523 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36524 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36525 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36526 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36527 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36528 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36529 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36530 (GRUB_PE32_DT_FUNCTION): Likewise.
36531 (GRUB_PE32_REL_I386_DIR32): Likewise.
36532 (GRUB_PE32_REL_I386_REL32): Likewise.
36533 (grub_pe32_symbol): New structure.
36534 (grub_pe32_reloc): Likewise.
36535
36536 * util/grub-pe2elf.c: New file.
36537
36538 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36539 start symbol in non pc platform.
36540
36541 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36542
36543 The following patches are from Christian Franke.
36544
36545 * include/grub/dl.h: Remove .previous, gas supports this only
36546 for ELF format.
36547
36548 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36549 Remove .type, gas supports this only for ELF format.
36550
36551 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36552 nullbytes in symbol table. This fixes an infinite loop if table is
36553 zero filled.
36554
36555 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36556 TARGET_IMG_LDFLAGS and EXEEXT.
36557
36558 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36559 TARGET_IMG_LDFLAGS_AC.
36560 (grub_CHECK_STACK_ARG_PROBE): New function.
36561
36562 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36563
36564 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36565
36566 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36567 to set TARGET_IMG_LD* accordingly.
36568 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36569 Add call to grub_CHECK_STACK_ARG_PROBE.
36570 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36571
36572 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36573
36574 * genmk.rb: Add EXEEXT to CLEANFILES.
36575
12ccdb75 365762008-07-23 Robert Millan <rmh@aybabtu.com>
36577
36578 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36579 define the codes for arrows and lines used for the menu).
36580 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36581 as well.
36582
36583 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36584 fonts, because the latter are too slow.
36585
18eeaf04 365862008-07-21 Bean <bean123ch@gmail.com>
36587
36588 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36589 a20. Run keyboard test last, as it will cause macbook to halt.
36590
b095e2ad 365912008-07-18 Pavel Roskin <proski@gnu.org>
36592
36593 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36594 load foreign architecture modules correctly anyway. Keep
36595 support for loading host architecture modules, whether we
36596 compile them or not.
36597
737feb35 365982008-07-17 Pavel Roskin <proski@gnu.org>
36599
3f4ce737 36600 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36601 change target_cpu. The compiler default can mismatch target_cpu
36602 in any case.
36603
4ad2d049 36604 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36605 * kern/efi/efi.c: Likewise.
36606
f6130a12 36607 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36608 target compiler is functional.
36609 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36610 are set up.
36611
58393a2d 36612 * configure.ac: Default to efi platform for x86_64-apple. Allow
36613 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36614 adjustments from the rest, only do them if target is not
36615 explicitly given. Merge other adjustments with the final sanity
36616 check. Remove an extraneous check for supported CPU. Be
36617 specific which CPU and which platform is not supported.
36618
737feb35 36619 * configure.ac: Default to pc platform for x86_64.
36620
546f966a 366212008-07-17 Robert Millan <rmh@aybabtu.com>
36622
36623 Partial LinuxBIOS -> Coreboot rename.
36624
36625 * conf/i386-linuxbios.rmk: Renamed to ...
36626 * conf/i386-coreboot.rmk: ... this.
36627 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36628 * configure.ac: Accept "coreboot" as input platform (but maintain
36629 compatibility with "linuxbios").
36630 * include/grub/i386/linuxbios: Renamed to ...
36631 * include/grub/i386/coreboot: ... this.
36632
20011694 366332008-07-17 Bean <bean123ch@gmail.com>
36634
36635 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 36636 (appleldr_mod_SOURCE): New variable.
20011694 36637 (appleldr_mod_CFLAGS): Likewise.
36638 (appleldr_mod_LDFLAGS): Likewise.
36639 (pci_mod_SOURCES): Likewise.
36640 (pci_mod_CFLAGS): Likewise.
36641 (pci_mod_LDFLAGS): Likewise.
36642 (lspci_mod_SOURCES): Likewise.
36643 (lspci_mod_CFLAGS): Likewise.
36644 (lspci_mod_LDFLAGS): Likewise.
36645
36646 * conf/x86_64-efi.rmk: New file.
36647
36648 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36649 macro.
36650 (grub_efidisk_write): Likewise.
36651
36652 * include/efi/api.h (efi_call_0): New macro.
36653 (efi_call_1): Likewise.
36654 (efi_call_2): Likewise.
36655 (efi_call_3): Likewise.
36656 (efi_call_4): Likewise.
36657 (efi_call_5): Likewise.
36658 (efi_call_6): Likewise.
36659
36660 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36661 grub_rescue_cmd_chainloader.
36662
36663 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36664 (grub_pe32_optional_header): Change some fields based on i386 or
36665 x86_64 platform.
36666 (GRUB_PE32_PE32_MAGIC): Likewise.
36667
36668 * include/grub/efi/uga_draw.h: New file.
36669
36670 * include/grub/elf.h (STN_ABS): New constant.
36671 (R_X86_64_NONE): Relocation constant for x86_64.
36672 (R_X86_64_64): Likewise.
36673 (R_X86_64_PC32): Likewise.
36674 (R_X86_64_GOT32): Likewise.
36675 (R_X86_64_PLT32): Likewise.
36676 (R_X86_64_COPY): Likewise.
36677 (R_X86_64_GLOB_DAT): Likewise.
36678 (R_X86_64_JUMP_SLOT): Likewise.
36679 (R_X86_64_RELATIVE): Likewise.
36680 (R_X86_64_GOTPCREL): Likewise.
36681 (R_X86_64_32): Likewise.
36682 (R_X86_64_32S): Likewise.
36683 (R_X86_64_16): Likewise.
36684 (R_X86_64_PC16): Likewise.
36685 (R_X86_64_8): Likewise.
36686 (R_X86_64_PC8): Likewise.
36687
36688 * include/grub/i386/efi/pci.h: New file.
36689
36690 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36691 Change it value based on platform.
36692 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36693 (GRUB_E820_RAM): Likewise.
36694 (GRUB_E820_RESERVED): Likewise.
36695 (GRUB_E820_ACPI): Likewise.
36696 (GRUB_E820_NVS): Likewise.
36697 (GRUB_E820_EXEC_CODE): Likewise.
36698 (GRUB_E820_MAX_ENTRY): Likewise.
36699 (grub_e820_mmap): New structure.
36700 (linux_kernel_header): Change the efi field according to different
36701 kernel version, also field from linux_kernel_header.
36702
36703 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36704
36705 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36706 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36707 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36708 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36709 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36710 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36711 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36712 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36713 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36714 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36715
36716 * include/grub/x86_64/efi/kernel.h: New file.
36717
36718 * include/grub/x86_64/efi/loader.h: Likewise.
36719
36720 * include/grub/x86_64/efi/machine.h: Likewise.
36721
36722 * include/grub/x86_64/efi/pci.h: Likewise.
36723
36724 * include/grub/x86_64/efi/time.h: Likewise.
36725
36726 * include/grub/x86_64/linux.h: Likewise.
36727
36728 * include/grub/x86_64/setjmp.h: Likewise.
36729
36730 * include/grub/x86_64/time.h: Likewise.
36731
36732 * include/grub/x86_64/types.h: Likewise.
36733
36734 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36735 GRUB_TARGET_SIZEOF_VOID_P.
36736
36737 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36738 (grub_efi_locate_handle): Likewise.
36739 (grub_efi_open_protocol): Likewise.
36740 (grub_efi_set_text_mode): Likewise.
36741 (grub_efi_stall): Likewise.
36742 (grub_exit): Likewise.
36743 (grub_reboot): Likewise.
36744 (grub_halt): Likewise.
36745 (grub_efi_exit_boot_services): Likewise.
36746 (grub_get_rtc): Likewise.
36747
36748 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36749 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36750 (grub_efi_allocate_pages): Wrap efi calls.
36751 (grub_efi_free_pages): Wrap efi calls.
36752 (grub_efi_get_memory_map): Wrap efi calls.
36753
36754 * kern/x86_64/dl.c: New file.
36755
36756 * kern/x86_64/efi/callwrap.S: Likewise.
36757
36758 * kern/x86_64/efi/startup.S: Likewise.
36759
36760 * loader/efi/appleloader.c: Likewise.
36761
36762 * loader/efi/chainloader.c (cmdline): New variable.
36763 (grub_chainloader_unload): Wrap efi calls.
36764 (grub_chainloader_boot): Likewise.
36765 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36766 command line.
36767
36768 * loader/efi/chainloader_normal.c (chainloader_command):
36769 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36770 command line.
36771
36772 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36773 method.
36774 (grub_e820_add_region): New function.
36775 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36776 booting.
36777 (grub_find_video_card): New function.
36778 (grub_linux_setup_video): New function.
36779 (grub_rescue_cmd_linux): Probe for video information.
36780
36781 * normal/x86_64/setjmp.S: New file.
36782
36783 * term/efi/console.c (map_char): New function.
36784 (grub_console_putchar): Map unicode char.
36785 (grub_console_checkkey): Wrap efi calls.
36786 (grub_console_getkey): Likewise.
36787 (grub_console_getwh): Likewise.
36788 (grub_console_gotoxy): Likewise.
36789 (grub_console_cls): Likewise.
36790 (grub_console_setcolorstate): Likewise.
36791 (grub_console_setcursor): Likewise.
36792
36793 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36794
59652a20 367952008-07-16 Pavel Roskin <proski@gnu.org>
36796
ef294055 36797 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36798 format strings.
36799
59652a20 36800 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36801 pointer, not an integer. This fixes a warning and prevents
36802 precision loss on 64-bit systems.
36803 (relocate_addresses): Remove unneeded cast.
36804
afc3b5d7 368052008-07-15 Pavel Roskin <proski@gnu.org>
36806
506b2b3e 36807 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36808
62ead89c 36809 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36810
c4cd51d7 36811 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36812 Fix comparison between signed and unsigned.
36813
0d3d8f28 36814 * include/grub/i386/ieee1275/console.h: Declare
36815 grub_console_init() and grub_console_fini().
36816
8804b286 36817 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36818 It's empty and unused.
36819
ee01cf35 36820 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36821 beginning to avoid warnings with some compilers.
36822
afc3b5d7 36823 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36824 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36825
e4e8eaa5 368262008-07-14 Pavel Roskin <proski@gnu.org>
36827
407aceb4 36828 * kern/env.c (grub_register_variable_hook): Don't copy empty
36829 string, it leaks memory. Pass "" to grub_env_set(), it should
36830 handle constant strings.
36831
e4e8eaa5 36832 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36833 * commands/cmp.c (grub_cmd_cmp): Likewise.
36834 * kern/dl.c (grub_dl_flush_cache): Likewise.
36835 (grub_dl_load_core): Likewise.
36836 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36837 (grub_elf64_load_phdrs): Likewise.
36838
d4e2dad3 368392008-07-13 Pavel Roskin <proski@gnu.org>
36840
36841 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36842 between signed and unsigned.
36843 (LzmaEnc_Finish): Fix warning about an unused parameter.
36844
aa24b516 368452008-07-13 Bean <bean123ch@gmail.com>
36846
36847 * Makefile.in (enable_lzo): New rule.
36848
36849 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36850
36851 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36852
36853 * boot/i386/pc/lnxboot.S: #include <config.h>.
36854
36855 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 36856 its value according to the compression algorithm used, lzo or lzma.
aa24b516 36857
36858 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36859 compression algorithm according to configure macro.
36860
36861 * kern/i386/pc/startup.S (codestart): Likewise.
36862
36863 * kern/i386/pc/lzma_decode.S: New file.
36864
36865 * include/grub/lib/LzFind.h: Likewise.
36866
36867 * include/grub/lib/LzHash.h: Likewise.
36868
36869 * include/grub/lib/LzmaDec.h: Likewise.
36870
36871 * include/grub/lib/LzmaEnc.h: Likewise.
36872
36873 * include/grub/lib/LzmaTypes.h: Likewise.
36874
36875 * lib/LzFind.c: Likewise.
36876
36877 * lib/LzmaDec.c: Likewise.
36878
36879 * lib/LzmaEnc.c: Likewise.
36880
4ae821ac 368812008-07-13 Bean <bean123ch@gmail.com>
36882
36883 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36884 (grub_ext4_extent_header): New structure.
36885 (grub_ext4_extent): Likewise.
36886 (grub_ext4_extent_idx): Likewise.
36887 (grub_ext4_find_leaf): New function.
36888 (grub_ext2_read_block): Handle extents.
36889
9a745147 368902008-07-12 Robert Millan <rmh@aybabtu.com>
36891
36892 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36893
d49a4cf6 368942008-07-11 Robert Millan <rmh@aybabtu.com>
36895
36896 * util/grub.d/40_custom.in: New file. Example on how to add custom
36897 entries to /etc/grub.d.
36898 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36899 40_custom (implicitly, by merging all the grub.d rules).
36900
947414b4 369012008-07-11 Pavel Roskin <proski@gnu.org>
36902
0059cf6f 36903 * commands/read.c (grub_getline): Fix invalid memory access.
36904 Don't add newline to the variable value.
36905
947414b4 36906 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36907 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36908 (serial_hw_get_port): Check validity of the port number.
36909 (grub_cmd_serial): Check return value of serial_hw_get_port().
36910
62a02d00 369112008-07-07 Pavel Roskin <proski@gnu.org>
36912
36913 * boot/i386/pc/diskboot.S (notification_string): Replace
36914 "Loading kernel" with just "loading". This is shorter, less
36915 confusing and saves a few bytes for possible future changes.
36916
3e5581b0 369172008-07-05 Pavel Roskin <proski@gnu.org>
36918
ea387a48 36919 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36920 size for ATAPI devices, they are undefined. Output sector
36921 number in decimal form.
36922
3e5581b0 36923 * disk/ata.c: Use named constants for status bits.
36924
fdecb8fd 369252008-07-04 Pavel Roskin <proski@gnu.org>
36926
bcd35b90 36927 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36928 grub_addr_t before casting it to the void pointer to fix a
36929 warning. Non-addressable regions are discarded earlier.
36930 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36931 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36932 (check_signature): Don't shadow table_header.
36933 (grub_linuxbios_table_iterate): Cast numeric constants to
36934 grub_linuxbios_table_header_t.
36935 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36936 grub_stop().
36937
af58ab3d 36938 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36939 prevent warnings.
36940
1759aa57 36941 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36942 pointer, which can cause warnings. Support 64-bit addresses.
36943
fdecb8fd 36944 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36945 of sizeof(long). This fixes PowerPC image generation on x86_64.
36946
8516d2a8 369472008-07-04 Robert Millan <rmh@aybabtu.com>
36948
36949 This fixes a performance issue when pc & gpt partmap iterators
36950 didn't abort iteration even after our hook found what it was
fe987087 36951 looking for (often causing expensive probes of non-existent drives).
8516d2a8 36952
36953 Some callers relied on previous buggy behaviour, since they would
34c44600 36954 raise an error when their own hooks caused early abortion of its
8516d2a8 36955 iteration.
36956
36957 * kern/device.c (grub_device_open): Improve error message.
36958 * disk/lvm.c (grub_lvm_open): Likewise.
36959 * disk/raid.c (grub_raid_open): Likewise.
36960
36961 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36962 when hook requests it, independently of grub_errno.
36963 (pc_partition_map_probe): Do not fail when find_func() caused
36964 early abortion of pc_partition_map_iterate().
36965
36966 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36967 when hook requests it, independently of grub_errno.
36968 (gpt_partition_map_probe): Do not fail when find_func() caused
36969 early abortion of gpt_partition_map_iterate().
36970
36971 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36972 when hook requests it, independently of grub_errno. Do not fail when
36973 part_map_iterate_hook() caused early abortion of p->iterate().
36974
36975 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36976 when grub_partition_iterate() returned with non-zero.
36977
277d0de9 369782008-07-03 Pavel Roskin <proski@gnu.org>
36979
36980 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36981 like we do in grub_ata_pio_read().
36982 (grub_ata_readwrite): Always write individual sectors. Fix the
36983 sector count for the remainder.
36984 (grub_ata_write): Enable writing to ATA devices. Correctly
36985 report error for ATAPI devices.
36986
d4c9b428 369872008-07-02 Pavel Roskin <proski@gnu.org>
36988
e43fc690 36989 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36990 warning.
36991
f707af42 36992 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36993 for every read sector, we already increment it for the whole
36994 batch. This fixes reading more than 256 sectors at once.
36995
11e16b15 36996 * util/grub-editenv.c (cmd_info): Cast argument to long
36997 explicitly. ptrdiff_t reduces to int on i386.
36998
cbabfdd4 36999 * util/grub-editenv.c (main): Be specific which parameter is
37000 missing.
37001
b8fbce0a 37002 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37003 (memdisk): Make memdisk_orig_addr a pointer.
37004
c9c8e606 37005 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37006 for file offsets, use grub_off_t instead. Fix printf format
37007 warnings.
37008
ca62e598 37009 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37010 there. Real unexpected warnings should not drown in the noise
37011 about known problems.
37012
ce8d1766 37013 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37014 grub_disk_addr_t for memory addresses.
37015
00c7a56a 37016 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37017 explicitly to fix a warning.
37018
08d3ef09 37019 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37020
cb71ba20 37021 * Makefile.in (MODULE_LDFLAGS): New variable.
37022 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37023 the linker accepts --build-id=none.
37024 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37025 MODULE_LDFLAGS.
37026 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37027
d4c9b428 37028 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37029 those in Linux XFS code. Provide a way to access 64-bit parent
37030 inode.
37031 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37032 the end of struct grub_xfs_dir_header.
37033
d4156eee 370342008-07-02 Bean <bean123ch@gmail.com>
37035
37036 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37037 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37038 and GRUB_IEEE1275_FLAG_NO_ANSI.
37039
37040 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37041 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37042 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37043
37044 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37045 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37046
37047 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37048 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37049
37050 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37051 esc sequence on non ANSI terminal.
37052 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37053
37054 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37055 beginning of file.
37056
2270f77b 370572008-07-02 Bean <bean123ch@gmail.com>
37058
37059 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37060 (grub_editenv_SOURCES): New variable.
37061 (pkglib_MODULES): Add loadenv.mod.
37062 (loadenv_mod_SOURCES): New variable.
37063 (loadenv_mod_CFLAGS): Likewise.
37064 (loadenv_mod_LDFLAGS): Likewise.
37065
37066 * include/grub/envblk.h: New file.
37067
37068 * util/envblk.c: New file.
37069
37070 * util/grub-editenv.c: New file.
37071
37072 * commands/loadenv.c: New file.
37073
0e9e51ec 370742008-07-01 Pavel Roskin <proski@gnu.org>
37075
d89b7634 37076 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37077 not unsigned char. This fixes warnings and is consistent with
37078 other tags.
37079
bf1835b1 37080 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37081
8222a04b 37082 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37083
6a42d99d 37084 * term/tparm.c (analyze): Always set *popcount.
37085
10b159d1 37086 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37087 cast to fix a warning.
37088
b8789f6c 37089 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37090 cast to suppress a warning.
37091
29d7e38a 37092 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37093 grub_fshelp_read_file() expects.
37094
f341f669 37095 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37096 write uuid as a 32-bit value in CPU byte order, so declare and
37097 use it as such.
37098
0e9e51ec 37099 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37100 long if the format specifier expects it.
37101 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37102 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37103 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37104 long to fix a warning.
37105 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37106 grub_dprintf() arguments to fix warnings.
37107
3aefa857 371082008-06-30 Pavel Roskin <proski@gnu.org>
37109
56c7668b 37110 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37111 install_bsd_part immediately before core.img is embedded or
37112 modified on disk. This fixes core.img verification if core.img
37113 cannot be embedded.
37114
3aefa857 37115 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37116 core_path to calculate the blocklist.
37117 Patch from Javier Martín <lordhabbit@gmail.com>
37118
5444088d 371192008-06-29 Robert Millan <rmh@aybabtu.com>
37120
37121 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37122 block to disk block.
37123 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37124 Patch from Niels Böhm <bitbucket@arcor.de>
37125
674835c8 371262008-06-29 Robert Millan <rmh@aybabtu.com>
37127
37128 * util/update-grub_lib.in (font_path): Search for fonts in
37129 /boot/grub first, which is more likely to be readable (we aren't
37130 deciding where fonts live, just looking for them).
37131
f527dbc8 371322008-06-26 Pavel Roskin <proski@gnu.org>
37133
6c2d8df6 37134 * util/biosdisk.c (read_device_map): Don't leave dead map
37135 entries for devices failing stat() check.
37136
f527dbc8 37137 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37138 core_path_dev for the core.img path on the target device.
37139
aebe3d13 371402008-06-26 Robert Millan <rmh@aybabtu.com>
37141
37142 * disk/fs_uuid.c: New file.
37143 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37144 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37145 (fs_uuid_mod_LDFLAGS): New variables.
37146 * include/grub/disk.h (grub_disk_dev_id): Add
37147 `GRUB_DISK_DEVICE_UUID_ID'.
37148 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37149 implement iterate().
37150
37aaf354 371512008-06-26 Robert Millan <rmh@aybabtu.com>
37152
37153 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37154 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37155 Linux image includes no initrd.
37156
25ff262a 371572008-06-21 Javier Martín <lordhabbit@gmail.com>
37158
37159 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37160 call to resolve the core image location that effectively appended the
37161 name twice.
37162
76a2bd44 371632008-06-21 Robert Millan <rmh@aybabtu.com>
37164
37165 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37166 call from here ...
37167
37168 * util/grub.d/10_hurd.in: ... to here ...
37169 * util/grub.d/10_linux.in: ... and here.
37170
650e1c79 371712008-06-19 Robert Millan <rmh@aybabtu.com>
37172
fe987087 37173 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 37174 after it has been set by grub_machine_set_prefix().
37175
6ce63911 371762008-06-19 Robert Millan <rmh@aybabtu.com>
37177
37178 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37179 search result when not saving to variable, not the other way around.
37180 When saving to variable, abort iteration as soon as a match is found.
37181
73940cec 371822008-06-19 Robert Millan <rmh@aybabtu.com>
37183
37184 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37185 check for partition that provides /boot/grub. Its logic is flawed,
37186 as it prevents prepare_grub_to_access_device() from being called
37187 multiple times.
37188
3c62a39d 371892008-06-19 Robert Millan <rmh@aybabtu.com>
37190
37191 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37192 "insmod" command directly when abstraction modules are needed,
fe987087 37193 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 37194 since it had already been processed).
37195
47395a42 371962008-06-19 Pavel Roskin <proski@gnu.org>
37197
37198 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37199 changed. This is needed in case GRUB_LIBDIR changes.
37200 * conf/i386-ieee1275.rmk: Likewise.
37201 * conf/i386-linuxbios.rmk: Likewise.
37202 * conf/i386-pc.rmk: Likewise.
37203 * conf/powerpc-ieee1275.rmk: Likewise.
37204
a145ac2d 372052008-06-18 Pavel Roskin <proski@gnu.org>
37206
37207 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37208 kernel_elf_symlist.c to symlist.c for consistency with other
37209 architectures. Update all users.
37210 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37211
7847c51e 372122008-06-18 Robert Millan <rmh@aybabtu.com>
37213
37214 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37215 it in prefix.
37216
37217 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37218 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37219 a RAID device, run setup() for all members independently on whether
37220 LVM abstraction is being used.
37221 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37222 If grub-mkimage has set `*install_dos_part == -2', don't override this
37223 value.
37224 Perform *install_dos_part adjustments independently on whether
37225 we're embedding or not.
37226 Clarify error message when image is too big for embedding.
37227 Remove duplicate *install_dos_part stanza.
37228
b23e5644 372292008-06-17 Robert Millan <rmh@aybabtu.com>
37230
37231 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37232 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37233 variables.
37234 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37235 values in grub_ofconsole_normal_color and
37236 grub_ofconsole_highlight_color (they're not directly related to
37237 background and foreground).
37238 (grub_ofconsole_setcolorstate): Extract background and foreground
37239 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37240
0aac2f79 372412008-06-17 Robert Millan <rmh@aybabtu.com>
37242
37243 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37244 /boot/grub for the check in last commit, not /boot (they could be
37245 different partitions).
37246
3cca7ef3 372472008-06-16 Robert Millan <rmh@aybabtu.com>
37248
37249 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37250 asked to setup access for the same partition that provides /boot,
37251 don't bother using UUIDs since our root already has the value we
37252 want.
37253
347396d8 372542008-06-16 Robert Millan <rmh@aybabtu.com>
37255
37256 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37257 I2O devices.
37258 Patch from Sven Mueller <sven@debian.org>.
37259
991477f8 372602008-06-16 Robert Millan <rmh@aybabtu.com>
37261
37262 * util/update-grub.in: Check for $EUID instead of $UID.
37263 Reported by Vincent Zweije.
37264
d31a32a1 372652008-06-16 Bean <bean123ch@gmail.com>
37266
fe987087 37267 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 37268 (grub_ext2_read_block): Likewise.
37269 (grub_ext2_read_inode): Likewise.
37270 (grub_ext2_mount): Likewise.
37271 (grub_ext2_close): Likewise.
37272 (grub_ext3_get_journal): Removed.
37273
fe987087 37274 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 37275 (grub_reiserfs_read_symlink): Likewise.
37276 (grub_reiserfs_mount): Likewise.
37277 (grub_reiserfs_open): Likewise.
37278 (grub_reiserfs_read): Likewise.
37279 (grub_reiserfs_close): Likewise.
37280 (grub_reiserfs_get_journal): Removed.
37281
37282 * fs/fshelp.c (grub_fshelp_read): Removed.
37283 (grub_fshelp_map_block): Likewise.
37284
37285 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37286 (grub_fshelp_journal): Likewise.
37287 (grub_fshelp_read): Likewise.
37288 (grub_fshelp_map_block): Likewise.
37289
3540a760 372902008-06-16 Pavel Roskin <proski@gnu.org>
37291
37292 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37293 floating point anymore.
37294 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37295
95614c84 372962008-06-15 Pavel Roskin <proski@gnu.org>
37297
37298 * commands/ls.c (grub_ls_list_files): Use integer calculations
37299 for human readable format, avoid floating point use.
37300 * kern/misc.c (grub_ftoa): Remove.
37301 (grub_vsprintf): Remove floating point support.
37302
50465dd6 373032008-06-15 Robert Millan <rmh@aybabtu.com>
37304
fe6b695a 37305 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 37306 devices.
37307 Reported by Max Vozeler.
37308
a9207284 373092008-06-15 Robert Millan <rmh@aybabtu.com>
37310
37311 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37312 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37313 skipped later.
37314 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37315 the beginning of the prefix.
37316
37317 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37318 It is assumed that if we have a memdisk, grub-mkimage has set
37319 grub_prefix to include the "(memdisk)" drive in it.
37320
a7cbd45a 373212008-06-15 Robert Millan <rmh@aybabtu.com>
37322
37323 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37324 Initialize keyboard controller after registering the terminal, so that
37325 grub_printf() can be called from grub_keyboard_controller_init().
37326
21cf716a 373272008-06-15 Robert Millan <rmh@aybabtu.com>
37328
37329 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37330 extent-btree which is written as big endian on disk.
37331 Reported by Alain Greppin <al@chilibi.org>.
37332
23a64d8e 373332008-06-14 Robert Millan <rmh@aybabtu.com>
37334
37335 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37336 * util/i386/pc/grub-install.in (modules): Likewise.
37337
d687651c 373382008-06-13 Pavel Roskin <proski@gnu.org>
37339
37340 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37341
dfe9ddd4 373422008-06-13 Bean <bean123ch@gmail.com>
37343
37344 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37345
37346 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37347
37348 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37349 to indicate sparse block.
37350
16ae7781 373512008-06-12 Pavel Roskin <proski@gnu.org>
37352
e6d1a308 37353 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37354 number, grub_fshelp_read() does it for us.
37355
16ae7781 37356 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37357 linear disk read with journal translation.
37358 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37359 * include/grub/fshelp.h: Declare grub_fshelp_read().
37360
40fd3a2b 373612008-06-09 Pavel Roskin <proski@gnu.org>
37362
37363 * fs/minix.c (grub_minix_mount): Handle error reading
37364 superblock.
37365
f5679726 373662008-06-08 Robert Millan <rmh@aybabtu.com>
37367
37368 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37369 don't append the RAID prefix afterwards.
37370 Reported by Clint Adams.
37371
ce525529 373722008-06-08 Robert Millan <rmh@aybabtu.com>
37373
37374 Based on description from Pavel:
37375 * kern/disk.c (grub_disk_check_range): Rename to ...
37376 (grub_disk_adjust_range): ... this. Add a comment explaining the
37377 tasks performed by this function.
37378
ad4936a0 373792008-06-08 Robert Millan <rmh@aybabtu.com>
37380
37381 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37382 `num_serial' (for consistency with other variables).
37383 (struct grub_ntfs_data): Add `uuid' member.
37384 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37385 (grub_ntfs_uuid): New function.
37386 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37387
dc20b0f9 373882008-06-07 Pavel Roskin <proski@gnu.org>
37389
37390 * util/biosdisk.c (open_device): Revert last change to the
37391 function, it broke installation. The sector needs to be
37392 different dependent on which device is opened.
37393
c5e3cfba 373942008-06-06 Robert Millan <rmh@aybabtu.com>
37395
37396 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37397 rest of GRUB, and breakage doesn't happen if its value were modified.
37398
37399 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37400 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37401 a constant (same value).
37402 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37403 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37404
26a1f8c4 374052008-06-06 Robert Millan <rmh@aybabtu.com>
37406
37407 * util/biosdisk.c (open_device): Do not modify sector offset when
37408 accessing a partition. kern/disk.c already handles this for us.
37409
25d6b327 374102008-06-06 Robert Millan <rmh@aybabtu.com>
37411
37412 * util/grub-emu.c (grub_machine_init): Move code in this function from
37413 here ...
37414 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37415 segfault in case grub_printf() is called).
37416
37417 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37418 grub_probe. Update all users not to explicitly add it again.
37419 (grub_device): New variable; contains corresponding device for grubdir.
37420 (fs_module, partmap_module, devabstraction_module): Pass
37421 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37422 every time.
37423
9ece62fb 374242008-06-05 Robert Millan <rmh@aybabtu.com>
37425
37426 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37427 is found, print it (same layout as with labels).
37428
1ad36d37 374292008-06-04 Robert Millan <rmh@aybabtu.com>
37430
37431 * util/biosdisk.c (get_drive): Rename to ...
37432 (find_grub_drive): ... this. Update all users.
37433
37434 (get_os_disk): Rename to ...
37435 (convert_system_partition_to_system_disk): ... this. Update all users.
37436
37437 (find_drive): Rename to ...
37438 (find_system_device): ... this. Update all users.
37439
e6a30859 374402008-06-04 Robert Millan <rmh@aybabtu.com>
37441
37442 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37443 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37444 (make_device_map): Likewise.
37445
00c108a4 374462008-06-01 Robert Millan <rmh@aybabtu.com>
37447
37448 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37449 before dereferencing it.
37450
37451 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37452 union with fat12/fat16-specific ones. Add some new fields, including
37453 `num_serial' for both versions.
37454 (struct grub_fat_data): Add `uuid' member.
37455 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37456 names. Initialize `data->uuid' using `num_serial'.
37457 (grub_fat_uuid): New function.
37458 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37459
37460 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37461 (grub_reiserfs_uuid): New function.
37462 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37463 member.
37464
37465 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37466 (grub_xfs_uuid): New function.
37467 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37468
1385c5bb 374692008-06-01 Robert Millan <rmh@aybabtu.com>
37470
37471 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37472 code that is backward compatible with pre-uuid search command.
37473
c682dfd7 374742008-05-31 Robert Millan <rmh@aybabtu.com>
37475
37476 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37477 floppies after everything else, to ensure floppy drive isn't accessed
37478 unnecessarily (patch from Bean).
37479
b7db5d47 374802008-05-31 Robert Millan <rmh@aybabtu.com>
37481
37482 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37483 not print device names when we were asked to set a variable.
37484
6e037aa9 374852008-05-31 Robert Millan <rmh@aybabtu.com>
37486
37487 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37488 using "cursor-on" and "cursor-off" commands (understood at least by
37489 the Open Firmware flavour on OLPC).
37490
41305bc8 374912008-05-31 Michael Gorven <michael@gorven.za.net>
37492
37493 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37494 on and off sequences.
37495
69ba137e 374962008-05-31 Robert Millan <rmh@aybabtu.com>
37497
37498 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37499 * util/update-grub.in: Likewise.
37500
520ae21b 375012008-05-30 Pavel Roskin <proski@gnu.org>
37502
37503 * util/biosdisk.c (linux_find_partition): Simplify logic and
37504 make the code more universal. Keep special processing for
37505 devfs, but use a simple rule for all other devices. If the
37506 device ends with a number, append 'p' and the partition number.
37507 Otherwise, append only the partition number.
37508
5786569b 375092008-05-30 Robert Millan <rmh@aybabtu.com>
37510
37511 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37512 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37513 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37514 the `root' parameter to Linux.
37515
51500452 375162008-05-30 Robert Millan <rmh@aybabtu.com>
37517
37518 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37519 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37520 --fs_uuid with --fs-uuid.
37521 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37522 all filesystems support them).
37523
811d3878 375242008-05-30 Robert Millan <rmh@aybabtu.com>
37525
37526 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 37527 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 37528
cab63c95 375292008-05-30 Robert Millan <rmh@aybabtu.com>
37530
37531 * util/grub.d/00_header.in: Remove obsolete comment referencing
37532 convert_system_path_to_grub_path().
37533 * util/update-grub.in: Likewise.
37534 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37535 (convert_system_path_to_grub_path): Add a warning message explaining
37536 that this function is deprecated. Rely on is_path_readable_by_grub()
37537 for the readability checks.
37538 (font_path): Use is_path_readable_by_grub() for the readability
37539 check rather than convert_system_path_to_grub_path().
37540
972e2f7a 375412008-05-30 Robert Millan <rmh@aybabtu.com>
37542
37543 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37544 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37545 converting it first.
37546 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37547 grub.cfg for access to font file, and afterwards call it again to set
37548 the root device.
37549
62191274 375502008-05-30 Robert Millan <rmh@aybabtu.com>
37551
37552 * commands/search.c (options): Add --fs_uuid option.
37553 (search_fs_uuid): New function.
37554 (grub_cmd_search): Fix --set argument passing.
37555 Use search_fs_uuid() when requested via --fs_uuid.
37556 (grub_search_init): Update help message.
37557 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37558 and redeclare it as an array of 16-bit words.
37559 (grub_ext2_uuid): New function.
37560 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37561 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37562 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37563 (GRUB_DEVICE_BOOT_UUID): New variables.
37564 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37565 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37566 whenever possible.
37567 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37568 just assume `root' variable has the right value.
37569 * util/grub.d/10_linux.in: Likewise.
37570 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37571 via PRINT_FS_UUID.
37572 (main): Recognise `-t fs_uuid' argument.
37573
01b73ec8 375742008-05-30 Robert Millan <rmh@aybabtu.com>
37575
37576 * util/biosdisk.c (map): Redefine structure to hold information
37577 about GRUB drive name.
fe6b695a 37578 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 37579 drive names.
37580 (call_hook): Remove.
37581 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37582 member. Assume drive has partitions.
37583 (grub_util_biosdisk_open): Access device names via `.device' struct
37584 member.
37585 (open_device): Likewise.
37586 (find_drive): Likewise.
37587 (read_device_map): Adjust map[] usage to match the new struct
37588 definition. Don't check for duplicates (still possible, but not cheap
37589 anymore).
37590 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37591 (make_device_name): Remove assumption of BIOS-like drive names.
37592
22f16596 375932008-05-30 Pavel Roskin <proski@gnu.org>
37594
37595 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37596 compiling execute.c doesn't need grub_script.tab.h anymore.
37597 (normal/command.c_DEPENDENCIES): Likewise.
37598 (normal/function.c_DEPENDENCIES): Likewise.
37599 * conf/i386-ieee1275.rmk: Likewise.
37600 * conf/i386-linuxbios.rmk: Likewise.
37601 * conf/i386-pc.rmk: Likewise.
37602 * conf/powerpc-ieee1275.rmk: Likewise.
37603 * conf/sparc64-ieee1275.rmk: Likewise.
37604
528ad8f2 376052008-05-29 Pavel Roskin <proski@gnu.org>
37606
d1dff95d 37607 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37608 when scanning metadata for volume group name.
37609
528ad8f2 37610 * include/grub/script.h: Don't include grub_script.tab.h. It's
37611 a generated file, which may only be included from the files with
37612 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37613 use union YYSTYPE, as the later allows forward declaration.
37614 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37615
47248e08 376162008-05-29 Robert Millan <rmh@aybabtu.com>
37617
37618 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37619 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37620 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37621 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37622 scan codes.
37623
ee632529 376242008-05-29 Robert Millan <rmh@aybabtu.com>
37625
37626 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37627 control key combinations.
37628
eee96e08 376292008-05-29 Robert Millan <rmh@aybabtu.com>
37630
37631 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37632 * util/ieee1275/grub-install.in: ... to here.
37633 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37634 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37635 (grub_install_SOURCES): Likewise.
37636
da9a6a94 376372008-05-29 Robert Millan <rmh@aybabtu.com>
37638
37639 * fs/affs.c: Update copyright year.
37640 * fs/ext2.c: Likewise.
37641 * fs/fshelp.c: Likewise.
37642 * fs/hfsplus.c: Likewise.
37643 * fs/ntfs.c: Likewise.
37644 * fs/xfs.c: Likewise.
37645 * include/grub/fshelp.h: Likewise.
37646 * util/grub-mkdevicemap.c: Likewise.
37647
12e65f3a 376482008-05-28 Robert Millan <rmh@aybabtu.com>
37649
37650 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37651 might need to be fatfs to support some firmware implementations
37652 (e.g. OFW or EFI).
37653
23023641 376542008-05-28 Robert Millan <rmh@aybabtu.com>
37655
37656 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37657 devices.
37658 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37659 (make_device_map): Likewise.
37660
887d2619 376612008-05-20 Bean <bean123ch@gmail.com>
37662
37663 * fs/fshelp.c (grub_fshelp_map_block): New function.
37664 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37665 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37666
37667 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37668 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37669 (grub_fshelp_journal): New structure.
37670 (grub_fshelp_map_block): New function prototype.
37671 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37672 (grub_fshelp_map_block): Likewise.
37673
37674 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37675 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37676 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37677 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37678 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37679 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37680 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37681 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37682 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37683 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37684 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37685 (grub_ext2_sblock): New members for journal support.
37686 (grub_ext3_journal_header): New structure.
37687 (grub_ext3_journal_revoke_header): Likewise.
37688 (grub_ext3_journal_block_tag): Likewise.
37689 (grub_ext3_journal_sblock): Likewise.
37690 (grub_fshelp_node): New members logfile and journal.
37691 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37692 grub_fshelp_map_block to get real block number.
37693 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37694 number.
37695 (grub_ext2_read_inode): Likewise.
37696 (grub_ext3_get_journal): New function.
37697 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37698 (grub_ext2_close): Release memory used by journal.
37699
37700 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37701 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37702 (grub_reiserfs_transaction_header): Renamed to
37703 grub_reiserfs_description_block, replace field data with real_blocks.
37704 (grub_reiserfs_commit_block): New structure.
37705 (grub_reiserfs_data): New member journal.
37706 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37707 number.
37708 (grub_reiserfs_read_symlink): Likewise.
37709 (grub_reiserfs_iterate_dir): Likewise.
37710 (grub_reiserfs_open): Likewise.
37711 (grub_reiserfs_read): Likewise.
37712 (grub_reiserfs_get_journal): New function.
37713 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37714 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37715 using grub_reiserfs_get_journal.
37716 (grub_reiserfs_close): Release memory used by journal.
37717
37718 * fs/affs.c (grub_affs_read_block): Change block type to
37719 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37720
37721 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37722
37723 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37724
37725 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37726
37727 * fs/udf.c (grub_udf_read_block): Change block type to
37728 grub_disk_addr_t. Use type cast to avoid warning.
37729
37730 * fs/xfs.c (grub_xfs_read_block): Likewise.
37731
b7c6bed5 377322008-05-16 Christian Franke <franke@computer.org>
37733
37734 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37735 to ensure that break with ESC will always work.
37736 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37737 Remove ESC from keyboard queue.
37738
eedf167f 377392008-05-16 Christian Franke <franke@computer.org>
37740
37741 * util/biosdisk.c: [__CYGWIN__] Add includes.
37742 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37743 (get_os_disk): Move variable declarations to OS specific
37744 parts to avoid warning.
37745 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37746 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37747 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37748 Cygwin.
37749 * util/getroot.c: [__CYGWIN__] Add includes.
37750 (strip_extra_slashes): Fix "/" case.
37751 [__CYGWIN__] (get_win32_path): New function.
37752 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37753 [__CYGWIN__] (find_root_device): Disable.
37754 [__CYGWIN__] (get_bootsec_serial): New function.
37755 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37756 [__linux__] (grub_guess_root_device): Add early returns to simplify
37757 structure.
37758 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37759 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37760 check for Linux only.
37761
a079699e 377622008-05-15 Bean <bean123ch@gmail.com>
37763
37764 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37765 keyboard hang problem in apple's intel mac.
37766
1cf4059a 377672008-05-09 Robert Millan <rmh@aybabtu.com>
37768
37769 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37770 devices.
37771 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37772 (make_device_map): Likewise.
37773 Reported by Aurelien Jarno <aurel32@debian.org>
37774
ed759390 377752008-05-07 Ian Campbell <ijc@hellion.org.uk>
37776
37777 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37778 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37779 (make_device_map): Output entries for xvd type disks.
37780
b56c4eaa 377812008-05-07 Robert Millan <rmh@aybabtu.com>
37782
37783 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37784 devices.
37785 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37786 (make_device_map): Likewise.
37787 Reported by Roland Dreier <rdreier@cisco.com>
37788
7f8866ed 377892008-05-07 Robert Millan <rmh@aybabtu.com>
37790
37791 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37792 grub_strstr() call. Correct a few mistakes in failure path handling.
37793
b0346e0f 377942008-05-06 Robert Millan <rmh@aybabtu.com>
37795
37796 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37797 Do not print a trailing slash (therefore, the root directory is an
37798 empty string).
37799 (convert_system_path_to_grub_path): Do not remove trailing slash
37800 from make_system_path_relative_to_its_root() output.
37801
37802 * util/i386/pc/grub-install.in: Add trailing slash to output from
37803 make_system_path_relative_to_its_root().
37804
6cf12cbd 378052008-05-06 Robert Millan <rmh@aybabtu.com>
37806
37807 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37808 ensures that output lines aren't intermangled with those sent to
37809 stderr (via grub_util_info()).
37810 * util/grub-probe.c (grub_refresh): Likewise.
37811 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37812
0fbb3117 378132008-05-05 Christian Franke <franke@computer.org>
37814
37815 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37816 Add Cygwin device names.
37817 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37818 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37819 (check_device): Return error instead of success on empty name.
37820 (make_device_map): Move label inside linux specific code to
37821 prevent compiler warning.
37822
8124cdb7 378232008-04-30 Robert Millan <rmh@aybabtu.com>
37824
37825 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37826 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37827 first boot option.
37828 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37829
094c01d0 378302008-04-29 Robert Millan <rmh@aybabtu.com>
37831
37832 * docs/grub.cfg: New file (example GRUB configuration).
37833
f4b1fc02 378342008-04-26 Robert Millan <rmh@aybabtu.com>
37835
329ce2a5 37836 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37837 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37838 and `disk/ieee1275/nand.c'.
f4b1fc02 37839
25f16ec1 378402008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 37841
25f16ec1 37842 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37843 i386-linuxbios.
37844
37845 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37846 change the buffer size to 4096 for cdrom device.
37847
37848 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37849 and nand.mod.
37850 (_linux_mod_SOURCES): New variable.
37851 (_linux_mod_CFLAGS): Likewise.
37852 (_linux_mod_LDFLAGS): Likewise.
37853 (linux_mod_SOURCES): Likewise.
37854 (linux_mod_CFLAGS): Likewise.
37855 (linux_mod_LDFLAGS): Likewise.
37856 (nand_mod_SOURCES): Likewise.
37857 (nand_mod_CFLAGS): Likewise.
37858 (nand_mod_LDFLAGS): Likewise.
37859
37860 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37861 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37862 type property. (nand device in olpc don't have this property)
37863
37864 * include/grub/disk.h (grub_disk_dev_id): New macro
37865 GRUB_DISK_DEVICE_NAND_ID.
37866
37867 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37868 function prototype.
37869 (grub_rescue_cmd_initrd): Likewise.
37870
37871 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37872 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37873 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 37874
25f16ec1 37875 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37876 GRUB_MACHINE_IEEE1275 is defined.
37877
37878 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37879 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37880
37881 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37882 on nested function heap_init.
37883 (grub_upper_mem): New variable for i386-ieee1275.
37884 (grub_get_extended_memory): New function for i386-ieee1275.
37885 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37886
37887 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37888 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37889 property.
f19dbdb7 37890
25f16ec1 37891 * loader/i386/ieee1275/linux.c: New file.
37892
37893 * loader/i386/ieee1275/linux_normal.c: New file.
37894
37895 * disk/ieee1275/nand.c: New file.
37896
e89d61e9 378972008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37898
37899 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37900 value.
37901 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37902
602566f6 379032008-04-18 Robert Millan <rmh@aybabtu.com>
37904
37905 Restructures early code path on ieee1275 to unify grub_main() as
37906 the first C function that is executed in every platform.
37907
37908 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37909 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37910 cmain().
37911 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37912 * kern/ieee1275/cmain.c (cmain): Rename to ...
37913 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37914 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37915 at the beginning.
37916
57490c2b 379172008-04-18 Robert Millan <rmh@aybabtu.com>
37918
37919 * util/update-grub.in: Fix syntax error when setting
37920 `GRUB_PRELOAD_MODULES'.
37921 Reported by Stephane Chazelas <stephane@artesyncp.com>
37922
1977517d 379232008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37924
37925 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37926 section into account, newer toolchains generate unique build ids
37927 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 37928 we want build ids to be preserved
1977517d 37929 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37930 far from other sections don't cause the raw binary images grow
37931 size
37932
bfb1f1a2 379332008-04-15 Robert Millan <rmh@aybabtu.com>
37934
37935 * disk/lvm.c: Update copyright year.
37936 * kern/misc.c: Likewise.
37937
01979850 379382008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37939
37940 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 37941 there is no memory left for physical volume name.
01979850 37942
0a1150e2 379432008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37944
37945 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37946 volume name mapping to support bigger than 9 character names properly.
37947
82ead3fe 379482008-04-13 Robert Millan <rmh@aybabtu.com>
37949
37950 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37951 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37952
e54a72f5 379532008-04-13 Christian Franke <franke@computer.org>
37954
37955 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37956 to create a floppy emulation boot CD when non emulation mode
37957 does not work.
37958 Enable Joliet CD filesystem extension.
37959
9fe86034 379602008-04-13 Robert Millan <rmh@aybabtu.com>
37961
37962 * kern/misc.c (grub_strncat): Fix off-by-one error.
37963 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37964
37965 * kern/env.c (grub_env_context_close): Clear current context, not
37966 previous one.
37967 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37968
37969 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37970
7ceeee39 379712008-04-13 Robert Millan <rmh@aybabtu.com>
37972
37973 Improve robustness when handling LVM.
37974
37975 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 37976 (and leave `*p' unmodified).
7ceeee39 37977 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37978 through it.
37979 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37980 iterating through it.
37981 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37982 through it.
fe6b695a 37983 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 37984 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37985 Don't assume `vg->pvs != NULL' when iterating through it.
37986
58cd3d85 379872008-04-13 Robert Millan <rmh@aybabtu.com>
37988
37989 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37990 * genmk.rb (partmap): New variable.
37991 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37992 (#{partmap}): New target rule.
37993 * genpartmaplist.sh: New file.
37994 * Makefile.in (pkglib_DATA): Add partmap.lst.
37995 (partmap.lst): New target rule.
37996 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37997 modules (including all partition maps), instead of preloading them.
37998
78b51059 379992007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38000
38001 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38002 `linux-boot-prober' (if installed) to detect other operating
38003 systems which are installed on the computer and add them to
38004 the boot menu.
38005 * conf/common.rmk: Build and install 30_os-prober.
38006
a91627b4 380072008-04-12 Robert Millan <rmh@aybabtu.com>
38008
38009 * kern/powerpc/ieee1275/init.c: Move from here ...
38010 * kern/ieee1275/init.c: ... to here. Update all users.
38011
38012 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38013 * kern/ieee1275/cmain.c: ... to here. Update all users.
38014
38015 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38016 * kern/ieee1275/openfw.c: ... to here. Update all users.
38017
38018 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38019 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38020
322562ea 380212008-04-10 Pavel Roskin <proski@gnu.org>
38022
38023 * configure.ac: Always use "_cv_" in cache variables for
38024 compatibility with Autoconf 2.62.
38025
a02a73c5 380262008-04-07 Robert Millan <rmh@aybabtu.com>
38027
38028 Revert grub/machine/init.h addition by Pavel (since it breaks on
38029 i386-ieee1275 and others):
38030 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38031 * util/powerpc/ieee1275/misc.c: Likewise.
38032
25c024b1 380332008-04-07 Robert Millan <rmh@aybabtu.com>
38034
38035 * util/grub-probe.c (probe): Improve error message.
38036
3cbd2f98 380372008-04-07 Robert Millan <rmh@aybabtu.com>
38038
38039 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38040 (this prevents the presence of a bogus entry from ruining the whole
38041 thing).
38042
87a297bf 380432008-04-06 Pavel Roskin <proski@gnu.org>
38044
36747a62 38045 * util/biosdisk.c: Include grub/util/biosdisk.h.
38046 * util/grub-fstest.c (execute_command): Make static.
38047 * util/grub-mkdevicemap.c (check_device): Likewise.
38048 * util/i386/pc/misc.c: Include grub/machine/init.h.
38049 * util/powerpc/ieee1275/misc.c: Likewise.
38050 * util/lvm.c: Include grub/util/lvm.h.
38051 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38052 grub/cache.h.
38053 * util/raid.c: Include grub/util/raid.h.
38054 (grub_util_getdiskname): Make static.
38055
87a297bf 38056 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38057 grub_hostfs_fini(), as they are called from grub_init_all() and
38058 grub_fini_all() respectively. This fixes an infinite loop in
38059 grub-fstest due to double registration of hostfs.
38060 Reported by Christian Franke <Christian.Franke@t-online.de>
38061
f6ce7629 380622008-04-05 Pavel Roskin <proski@gnu.org>
38063
38064 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38065 all 8 functions. Otherwise, probe function 0 only.
38066
070e49e4 380672008-04-04 Pavel Roskin <proski@gnu.org>
38068
8b088a4c 38069 * commands/lspci.c (grub_lspci_iter): Print the bus number
38070 correctly.
38071
4f657021 38072 * commands/lspci.c (grub_pci_classes): Fix typos.
38073 (grub_lspci_iter): Don't print func twice. Print vendor ID
38074 before device ID, as it's normally done.
38075
070e49e4 38076 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38077 Fix signedness warnings.
38078 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38079 Likewise.
38080 * util/ieee1275/get_disk_name.c: Include config.h so that
38081 _GNU_SOURCE is defined and getline() is declared. Mark an
38082 unused argument as such. Fix a signedness warning.
38083
ba7328dc 380842008-04-02 Pavel Roskin <proski@gnu.org>
38085
26887f22 38086 * genkernsyms.sh.in: Use more robust assignments for CC and
38087 srcdir. Quote srcdir.
38088 * gensymlist.sh.in: Likewise. Assert at the compile time that
38089 the symbol table is not empty.
38090
ba7328dc 38091 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38092 * fs/cpio.c (grub_cpio_read): Likewise.
38093
0f582c6b 380942008-04-01 Pavel Roskin <proski@gnu.org>
38095
4b6e1995 38096 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38097 * disk/host.c (grub_host_open): Likewise.
38098 * disk/loopback.c (grub_loopback_open): Likewise.
38099 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38100 disk->id as in disk/host.c, not a multi-character constant.
38101
828a2768 38102 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38103 later is obsolete, potentially dangerous and sets a bad example.
38104 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38105 * util/misc.c (grub_util_get_image_size): Likewise.
38106
2bb4fb47 38107 * disk/loopback.c (options): Improve help for "--partitions".
38108
0f582c6b 38109 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38110 options to align them with the short options, e.g. "echo -e".
38111
a33224e0 381122008-03-31 Bean <bean123ch@gmail.com>
38113
38114 * video/reader/png.c (grub_png_data): New member is_16bit and
38115 image_data.
38116 (grub_png_decode_image_header): Detect 16 bit png image.
38117 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38118 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38119 (grub_video_reader_png): Release memory occupied by image_data.
38120
38121 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38122 4096 bytes.
38123 (grub_nfs_mount): Skip the test for sector per cluster.
38124
38125 * include/grub/ntfs.h (MAX_SPC): Removed.
38126
86cb4f54 381272008-03-31 Bean <bean123ch@gmail.com>
38128
38129 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38130 (grub_probe_SOURCES): Add fs/afs.c.
38131 (grub_fstest_SOURCES): Likewise.
38132 (afs_mod_SOURCES): New variable.
38133 (afs_mod_CFLAGS): Likewise.
38134 (afs_mod_LDFLAGS): Likewise.
38135
38136 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38137 (grub_emu_SOURCES): Likewise.
38138
38139 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38140
38141 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38142
38143 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38144
38145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38146
38147 * fs/afs.c: New file.
38148
17c74c21 381492008-03-30 Pavel Roskin <proski@gnu.org>
38150
4cb68e89 38151 * disk/host.c: Include grub/misc.h to fix a warning.
38152 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38153 warnings about implicit declarations.
38154
8790bb04 38155 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38156 variable.
38157 * include/grub/i386/loader.h: Change declaration of
38158 grub_linux_boot() to match what grub_loader_set() expects.
38159 * util/getroot.c (grub_guess_root_device): Return const char* to
38160 fix a warning.
38161 * util/grub-probe.c (probe): Fix a warning about uninitialized
38162 abstraction_name variable.
38163 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38164 second argument as unused to fix a warning.
38165
9a3f3296 38166 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38167 missing grub_error() call.
38168
0ecef90d 38169 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38170 2.60 and newer uses it to define datadir.
38171
0bf6d401 38172 * commands/sleep.c: Fix warning about implicit declaration.
38173 * disk/memdisk.c: Likewise.
38174 * loader/aout.c: Likewise.
38175 * loader/i386/bsd_normal.c: Likewise.
38176 * util/grub-probe.c: Likewise.
38177
7cdacf97 38178 * commands/i386/cpuid.c (has_longmode): Make static.
38179 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38180 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38181
17c74c21 38182 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38183 GDT. This is more robust, as %ds can change.
38184 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38185 calling real_to_prot().
38186 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38187
80a3e68b 381882008-03-28 Pavel Roskin <proski@gnu.org>
38189
38190 * kern/i386/pc/startup.S: Assert that uncompressed functions
38191 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38192 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38193 code, as they push parts of the code (error handlers) beyond
38194 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38195 code as correctness and size.
38196
77bcd272 381972008-03-28 Pavel Roskin <proski@gnu.org>
38198
38199 * kern/i386/pc/startup.S
38200 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38201 data block address to the real mode, keep offset minimal. This
38202 works around a bug in AWARD BIOS on old Athlon systems, which
38203 makes CD detection hang.
38204
c5dfd43b 382052008-03-26 Pavel Roskin <proski@gnu.org>
38206
38207 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38208 const.
38209 * include/grub/normal.h: Add grub_parse_color_name_pair()
38210 declaration.
38211
bf962df2 382122008-03-24 Bean <bean123ch@gmail.com>
38213
38214 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38215 (cd_count): Removed.
38216 (cd_drive): New variable.
38217 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38218 (grub_biosdisk_call_hook): Likewise.
38219 (grub_biosdisk_iterate): Change cdrom detection method.
38220 (grub_biosdisk_open): Replace cd_start with cd_drive.
38221 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38222 detect cdrom device.
38223
38224 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38225 Removed.
38226 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38227 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38228 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38229 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38230 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38231 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38232 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38233 (grub_biosdisk_cdrp): New structure.
38234 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38235
38236 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38237
38238 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38239 device.
38240
38241 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38242 New function.
38243
68e7fc7a 382442008-03-20 Robert Millan <rmh@aybabtu.com>
38245
38246 Remove 2 TiB limit in ata.mod.
38247 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38248 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38249 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38250 grub_uint64_t instead of grub_uint32_t.
38251
38ad2cf5 382522008-03-05 Bean <bean123ch@gmail.com>
38253
38254 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38255 (grub_multiboot): Set boot device.
38256
38257 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38258
2b89344e 382592008-03-02 Bean <bean123ch@gmail.com>
38260
38261 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38262 symlink_buffer.
38263
87a95d1f 382642008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38265
38266 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38267 texinfo.tex.
38268
38269 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38270 modified.
38271
38272 * docs/fdl.texi: New file.
f19dbdb7 38273
87a95d1f 38274 * docs/mdate-sh: New file. Copied from gnulib.
38275 * docs/texinfo.tex: Likewise.
38276
38277 * config.guess: Updated from gnulib.
38278 * install-sh: Likewise.
38279
7dc15d8e 382802008-02-28 Robert Millan <rmh@aybabtu.com>
38281
38282 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38283 (aout_mod_SOURCES): New variable.
38284 (aout_mod_CFLAGS): Likewise.
38285 (aout_mod_LDFLAGS): Likewise.
38286
38287 * conf/i386-ieee1275.rmk: Likewise.
38288
b00ab696 382892008-02-28 Robert Millan <rmh@aybabtu.com>
38290
38291 * util/update-grub.in: Reorganise terminal validity check. Accept
38292 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38293 Based on suggestion by Franklin PIAT.
38294
79ca2d78 382952008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38296
38297 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38298 function.
38299 * util/getroot.c (grub_util_check_block_device): New function that
38300 returns the given argument if it is a block device and returns NULL else.
38301 * util/grub-probe.c (argument_is_device): New variable.
38302 (probe): Promote device_name from a variable to an argument. Receive
38303 device_name from grub_util_check_block_device() if path is NULL and from
38304 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 38305 (options): Introduce new parameter '-d, --device'.
79ca2d78 38306 (main): Add description of the new parameter to the help screen.
38307 Rename path variable to argument. Set argument_is_device if the '-d'
38308 option is given. Pass argument to probe() depending on
38309 argument_is_device.
38310
0d16e571 383112008-02-24 Bean <bean123ch@gmail.com>
38312
38313 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38314 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38315 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38316 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38317 (GRUB_ISO9660_VOLDESC_END): Likewise.
38318 (grub_iso9660_primary_voldesc): New member escape.
38319 (grub_iso9660_data): New member joliet.
38320 (grub_iso9660_convert_string): New function.
38321 (grub_iso9660_mount): Detect joliet extension.
38322 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38323 (grub_iso9660_iso9660_label): Likewise.
38324
38325 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38326 (grub_setup_SOURCES): Add fs/udf.c.
38327 (grub_fstest_SOURCES): Likewise.
38328 (udf_mod_SOURCES): New variable.
38329 (udf_mod_CFLAGS): Likewise.
38330 (udf_mod_LDFLAGS): Likewise.
38331
38332 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38333 (grub_emu_SOURCES): Likewise.
38334
38335 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38336
38337 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38338
38339 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38340
38341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38342
38343 * fs/udf.c: New file.
38344
8a594a17 383452008-02-24 Robert Millan <rmh@aybabtu.com>
38346
38347 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38348 (normal/lexer.c_DEPENDENCIES): New variables.
38349 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38350 (normal/lexer.c_DEPENDENCIES): Likewise.
38351 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38352 (normal/lexer.c_DEPENDENCIES): Likewise.
38353 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38354 (normal/lexer.c_DEPENDENCIES): Likewise.
38355 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38356 (normal/lexer.c_DEPENDENCIES): Likewise.
38357 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38358 (normal/lexer.c_DEPENDENCIES): Likewise.
38359
2dc33c03 383602008-02-23 Robert Millan <rmh@aybabtu.com>
38361
38362 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38363 since they were intended to be in hex. This didn't break previously
38364 because of a bug in gpt_partition_map_iterate() (see below).
38365
38366 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38367 when checking the validity of GPT header.
38368 Remove `partno', since it always provides the same information as `i'.
38369
f6f4cfb0 383702008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38371
38372 * include/grub/efi/time.h: Fix a wrong comment.
38373
79ff665f 383742008-02-19 Pavel Roskin <proski@gnu.org>
38375
38376 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38377 message.
38378
d38e24c2 383792008-02-19 Bean <bean123ch@gmail.com>
38380
38381 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38382 (aout_mod_SOURCES): New variable.
38383 (aout_mod_CFLAGS): Likewise.
38384 (aout_mod_LDFLAGS): Likewise.
38385 (_bsd_mod_SOURCES): New variable.
38386 (_bsd_mod_CFLAGS): Likewise.
38387 (_bsd_mod_LDFLAGS): Likewise.
38388 (bsd_mod_SOURCES): New variable.
38389 (bsd_mod_CFLAGS): Likewise.
38390 (bsd_mod_LDFLAGS): Likewise.
38391
38392 * include/grub/aout.h: New file.
38393
38394 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38395
38396 * include/grub/i386/bsd.h: New file.
38397
38398 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38399 to make it public.
38400
38401 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38402 function is called, so that it's possible to change it inside the hook.
38403 (grub_elf64_load): Likewise.
38404 (grub_elf_file): Don't close the file if elf header is not found.
38405 (grub_elf_close): Close the file if grub_elf_file fails (The new
38406 grub_elf_file won't close it).
38407 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38408 (grub_elf64_size): Likewise.
38409
38410 * kern/i386/loader.S (grub_unix_real_boot): New function.
38411
38412 * loader/aout.c: New file.
38413
38414 * loader/i386/bsd.c: New file.
38415
38416 * loader/i386/bsd_normal.c: New file.
38417
38418 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38419
38420 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 38421 can test other formats.
d38e24c2 38422
b93bdb0f 384232008-02-19 Robert Millan <rmh@aybabtu.com>
38424
38425 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38426 (grub_gpt_partition_type_empty): Redefine with macro from
38427 `<grub/gpt_partition.h>'.
38428 (gpt_partition_map_iterate): Adjust partition type comparison.
38429
38430 Export `entry' as partmap-specific `part.data' struct.
38431 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38432
38433 * include/grub/gpt_partition.h (grub_gpt_header)
38434 (grub_gpt_partentry): ... to here (new file).
38435
38436 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38437
38438 (grub_gpt_partition_type_bios_boot): New const variable, defined
38439 with macro from `<grub/gpt_partition.h>'.
38440
38441 (setup): Replace `first_start' with `embed_region', which keeps
38442 track of the embed region (and is partmap-agnostic).
38443
38444 Replace find_first_partition_start() with find_usable_region(),
38445 which finds a usable region for embedding using partmap-specific
38446 knowledge (supports PC/MSDOS and GPT).
38447
38448 Fix all assumptions that the embed region start at sector 1, using
38449 `embed_region.start' from now on. Similarly, use `embed_region.end'
38450 rather than `first_start' to calculate available size.
38451
38452 In grub_util_info() message, replace "into after the MBR" with an
38453 indication of the specific sector our embed region starts at.
38454
66cb40f6 384552008-02-19 Robert Millan <rmh@aybabtu.com>
38456
38457 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38458 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38459 `commands/reboot.c'.
38460 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38461 (halt_mod_SOURCES): Likewise.
38462 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38463 (halt_mod_SOURCES): Likewise.
38464
b7202015 384652008-02-17 Christian Franke <franke@computer.org>
38466
38467 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38468
32b0fc49 384692008-02-17 Robert Millan <rmh@aybabtu.com>
38470
38471 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38472 set `first_start' to 0 for non-PC/MSDOS partition maps.
38473
aca63502 384742008-02-16 Robert Millan <rmh@aybabtu.com>
38475
38476 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38477 do not assume partition map is PC/MSDOS before performing checks that
38478 are specific to that layout.
38479
0de8be86 384802008-02-13 Robert Millan <rmh@aybabtu.com>
38481
38482 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38483 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38484 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38485
c3db8364 384862008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38487
38488 * configure.ac: Only a cosmetic change on the handling of
38489 -fno-stack-protector.
38490
f714229e 384912008-02-12 Alexandre Boeglin <alex@boeglin.org>
38492
c3db8364 38493 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38494 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38495 reboot.c.
f714229e 38496 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38497 (halt_mod_SOURCES): New variable.
38498 (halt_mod_CFLAGS): Likewise.
38499 (halt_mod_LDFLAGS): Likewise.
38500 (reboot_mod_SOURCES): Likewise.
38501 (reboot_mod_CFLAGS): Likewise.
38502 (reboot_mod_LDFLAGS): Likewise.
38503
c3db8364 38504 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38505 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38506 reboot.c.
f714229e 38507 (halt_mod_SOURCES): Likewise.
38508 (reboot_mod_SOURCES): Likewise.
38509
c3db8364 38510 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38511 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 38512 (reboot_mod_SOURCES): Likewise.
38513
38514 * commands/i386/pc/reboot.c: merge this file ...
38515
38516 * commands/ieee1275/reboot.c: ... and this file ...
38517
38518 * commands/reboot.c: ... to this file.
c3db8364 38519 Add some precompiler directive to include the correct header for
38520 each machine.
f714229e 38521
38522 * commands/ieee1275/halt.c: move this file ...
38523
38524 * commands/halt.c: ... to here.
c3db8364 38525 Add some precompiler directive to include the correct header for
38526 each machine.
f714229e 38527
38528 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38529 (grub_halt): Likewise.
38530
38531 * kern/efi/efi.c (grub_reboot): New function.
38532 (grub_halt): Likewise.
38533
c74493e0 385342008-02-12 Robert Millan <rmh@aybabtu.com>
38535
38536 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38537 /dev (like it is done for /dev/mapper). This doesn't provide support
38538 for EVMS, but at least it is now easy to identify the problem when it
38539 arises.
38540
d0db4b04 385412008-02-11 Robert Millan <rmh@aybabtu.com>
38542
38543 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38544 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38545 comparing it with -1, not 0.
38546
bf748642 385472008-02-10 Robert Millan <rmh@aybabtu.com>
38548
38549 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38550 `disk/lvm.c'.
38551 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38552 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38553
38554 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38555 `disk/lvm.c' to the end of the list.
38556 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38557 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38558
b5db202a 385592008-02-10 Robert Millan <rmh@aybabtu.com>
38560
38561 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38562 grub_print_error() instead. This will let user know why we're entering
38563 rescue mode.
38564 Based on suggestions from Sam Morris.
38565
83abee31 385662008-02-10 Alexandre Boeglin <alex@boeglin.org>
38567
38568 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38569 on remaining N args, instead of "--" arg N times.
38570
78d5a08b 385712008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38572
38573 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38574 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38575 pattern for unknown glyphs.
38576
68807e5f 385772008-02-09 Robert Millan <rmh@aybabtu.com>
38578
38579 * configure.ac: Probe for `help2man'.
38580 * Makefile.in (builddir): New variable.
38581 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38582 or otherwise add a few flags/options to it.
38583 (install-local): For every executable utility or script that is
38584 installed, invoke $(HELP2MAN) to install a manpage based on --help
38585 output.
38586
38587 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38588 that it doesn't prevent --help from working in build tree.
38589
38590 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38591 with `bug-grub@gnu.org'.
38592 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38593 * util/update-grub.in (usage): New function.
38594 Implement proper argument check, with support for --help and --version
38595 (as well as existing -y).
38596
385972008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 38598
38599 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38600 avoid overwriting previous output.
38601 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38602
c1962162 386032008-02-09 Robert Millan <rmh@aybabtu.com>
38604
38605 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38606 drawing the menu.
38607
3dac2e3f 386082008-02-09 Robert Millan <rmh@aybabtu.com>
38609
38610 * commands/sleep.c: New file.
38611 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38612 (sleep_mod_SOURCES): New variable.
38613 (sleep_mod_CFLAGS): Likewise.
38614 (sleep_mod_LDFLAGS): Likewise.
38615
7a634e08 386162008-02-09 Robert Millan <rmh@aybabtu.com>
38617
38618 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38619 situations in which we can deduce the RAID size and the superblock
38620 doesn't match it.
38621
b92f0c18 386222008-02-09 Robert Millan <rmh@aybabtu.com>
38623
38624 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38625 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38626 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38627
38628 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38629 and return a grub_diskmemberlist_t composed of physical array members.
38630 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38631
38632 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38633 prototype.
38634 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38635 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38636 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38637
38638 * util/grub-probe.c (probe): Move partmap probing code from here ...
38639 (probe_partmap): ... to here.
38640 (probe): Use probe_partmap() once for the disk we're probing, and
38641 additionally, when such disk contains a memberlist() struct member,
38642 once for each disk that is contained in the structure returned by
38643 memberlist().
38644
91a4bf68 386452008-02-09 Robert Millan <rmh@aybabtu.com>
38646
38647 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38648 environment variable to 'all' in order to obtain debug output from
38649 non-util/ code.
38650 * util/i386/pc/grub-setup.c (main): Likewise.
38651
a96f9caa 386522008-02-08 Robert Millan <rmh@aybabtu.com>
38653
38654 * disk/raid.c (grub_raid_scan_device): Check for
38655 `array->device[sb.this_disk.number]' rather than for
38656 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 38657 guaranteed to be accessible.
a96f9caa 38658
b37a9222 386592008-02-08 Robert Millan <rmh@aybabtu.com>
38660
38661 * disk/raid.c: Update copyright.
38662 * fs/cpio.c: Likewise.
38663 * include/grub/raid.h: Likewise.
38664 * loader/i386/pc/multiboot.c: Likewise.
38665 * util/hostfs.c: Likewise.
38666
5626aee1 386672008-02-08 Robert Millan <rmh@aybabtu.com>
38668
38669 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38670 to a grub_disk_t array.
38671 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38672 `device[x]'.
38673 (grub_raid_scan_device): Replace `device[x].name' accesses with
38674 `device[x]->name'. Simplify initialization of `array->device[x]'.
38675
554f0187 386762008-02-08 Robert Millan <rmh@aybabtu.com>
38677
38678 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38679 grub_dprintf() calls.
38680 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38681 error message.
38682
1ec8425d 386832008-02-07 Christian Franke <franke@computer.org>
38684
38685 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38686 instead of fseek and ftell to support large files.
38687 (grub_hostfs_read): Likewise.
38688
f2156fda 386892008-02-07 Robert Millan <rmh@aybabtu.com>
38690
38691 Patch from Jeroen Dekkers.
38692 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 38693 failure, since successfully reading all array members might not be
f2156fda 38694 required.
38695
9216e0e7 386962008-02-06 Robert Millan <rmh@aybabtu.com>
38697
38698 * util/grub-probe.c (probe): Simplify partmap probing (with the
38699 assumption that the first word up to the underscore equals to
38700 the module name).
38701
b0dfd29a 387022008-02-06 Christian Franke <franke@computer.org>
38703
38704 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38705 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38706 last block of a cpio or tar stream.
38707 Check for "TRAILER!!!" instead of any empty data
38708 block to detect last block of a cpio stream.
38709 (grub_cpio_dir): Fix constness of variable np.
38710 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38711 cpio or tar trailer is detected. This fixes a crash
38712 on open of a non existing file.
38713
c32865bf 387142008-02-05 Bean <bean123ch@gmail.com>
38715
38716 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38717 address of entry.
38718 (grub_multiboot_load_elf64): Likewise.
38719 (grub_multiboot): Initialize mbi structure.
38720
38721 * util/grub-fstest.c: Don't include unused header file script.h.
38722
fe6b695a 38723 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 38724 of file.
38725 (grub_fstest_SOURCES): Likewise.
38726
409480b7 387272008-02-05 Robert Millan <rmh@aybabtu.com>
38728
38729 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38730 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38731 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38732 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38733
38734 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38735 (translation_table): Replace hardcoded values with macros
38736 provided by `<grub/term.h>'.
38737
38738 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38739 (keyboard_map): Correct/add a few values, with macros provided
38740 by `<grub/term.h>'.
38741 (keyboard_map_shift): Zero values that don't differ from their
38742 `keyboard_map' equivalents.
38743 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38744 Discard the second scan code that is always sent by Caps lock.
38745 Only use `keyboard_map_shift' when it provides a non-zero value,
38746 otherwise fallback to `keyboard_map'.
38747
99fadbaa 387482008-02-04 Bean <bean123ch@gmail.com>
38749
38750 * Makefile.in (enable_grub_fstest): New variable.
38751
38752 * conf/common.rmk (grub_fstest_init.lst): New rule.
38753 (grub_fstest_init.h): Likewise.
38754 (grub_fstest_init.c): Likewise.
38755 (util/grub-fstest.c_DEPENDENCIES): New variable.
38756 (grub_fstest_SOURCES): Likewise.
38757
38758 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38759
38760 * util/grub-fstest.c: New file.
38761
bf567c50 387622008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38763
38764 Make grub-setup handle a separate root device.
f19dbdb7 38765
bf567c50 38766 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38767 so that the root device can be compared with the destination
38768 device.
38769 When embedding the core image, if the root and destination devices
38770 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38771 0xFF.
38772 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 38773
9be6b98b 387742008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38775
38776 Add support for having a grub directory in a different drive. This
38777 is still only the data handling part.
f19dbdb7 38778
9be6b98b 38779 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38780 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38781 (grub_root_drive): New variable.
38782
38783 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38784 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38785 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38786 as it was.
38787
38788 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38789
38790 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38791 macro.
38792 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38793
38794 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38795 is bogus, because PXE booting does not specify any drive
38796 correctly.
38797
38798 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38799 am not sure if this is really correct.
38800
38801 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38802 is always identical to the boot drive when booting from a CD.
38803
38804 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38805 longer.
38806 (root_drive): New variable.
38807 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38808 (setup_sectors): Push %dx right after popping it, because %dh will
38809 be modified later.
38810 (copy_buffer): Restore %dx.
38811
e0ca0677 388122008-02-03 Robert Millan <rmh@aybabtu.com>
38813
38814 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38815 use `cdboot.img' for cdrom images.
38816
3b3f6629 388172008-02-03 Robert Millan <rmh@aybabtu.com>
38818
38819 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38820 only setup gfxterm when `font' command has succeeded.
38821
d42b3672 388222008-02-03 Robert Millan <rmh@aybabtu.com>
38823
38824 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38825 (grub_rescue_cmd_multiboot_loader)
38826 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38827
fa370ea6 388282008-02-03 Pavel Roskin <proski@gnu.org>
38829
e0c5dacb 38830 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 38831 %edx and %esi from stack only after grub_gate_a20() is called.
38832 grub_gate_a20() clobbers %edx.
38833
f2a76e1d 388342008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38835
38836 * configure.ac (AC_INIT): Bumped to 1.96.
38837
38838 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38839 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38840 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38841 video/readers/png.c.
38842
90fd32d1 388432008-02-03 Bean <bean123ch@gmail.com>
9be665dd 38844
38845 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38846 (cdboot_img_SOURCES): New variable.
38847 (cdboot_img_ASFLAGS): New variable.
38848 (cdboot_img_LDFLAGS): New variable.
38849
38850 * boot/i386/pc/cdboot.S: New file.
38851
38852 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38853 (cd_count): Likewise.
38854 (grub_biosdisk_get_drive): Add support for cd device.
38855 (grub_biosdisk_call_hook): Likewise.
38856 (grub_biosdisk_iterate): Likewise.
38857 (grub_biosdisk_open): Likewise.
38858 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38859 (grub_biosdisk_rw): Support reading from cd device.
38860 (GRUB_MOD_INIT): Iterate cd devices.
38861
38862 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38863 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38864 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38865
38866 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38867
4020aa53 388682008-02-02 Robert Millan <rmh@aybabtu.com>
38869
38870 * commands/read.c: New file.
38871 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38872 (read_mod_SOURCES): New variable.
38873 (read_mod_CFLAGS): Likewise.
38874 (read_mod_LDFLAGS): Likewise.
38875
e03a1132 388762008-02-02 Robert Millan <rmh@aybabtu.com>
38877
38878 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38879 determining whether menu has to be displayed.
38880
58c69220 388812008-02-02 Marco Gerards <marco@gnu.org>
38882
38883 * bus/pci.c: New file.
38884
38885 * include/grub/pci.h: Likewise.
38886
38887 * include/grub/i386/pc/pci.h: Likewise.
38888
38889 * commands/lspci.c: Likewise.
38890
38891 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38892 `lspci.mod'.
38893 (pci_mod_SOURCES): New variable.
38894 (pci_mod_CFLAGS): Likewise.
38895 (pci_mod_LDFLAGS): Likewise.
38896 (lspci_mod_SOURCES): Likewise.
38897 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 38898 (lspci_mod_LDFLAGS): Likewise.
58c69220 38899
c004e1b4 389002008-02-02 Bean <bean123ch@gmail.com>
38901
38902 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38903 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38904
38905 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38906 (grub_xfs_btree_node): New structure.
38907 (grub_xfs_btree_root): New structure.
38908 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38909 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38910 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38911 (GRUB_XFS_EXTENT_SIZE): Likewise.
38912 (grub_xfs_read_block): Support btree format type.
38913 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38914 Use directory block as basic unit.
38915
38916 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38917
38918 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38919 __attribute__ ((__regparm__ (1))).
38920
f95562bf 389212008-02-01 Robert Millan <rmh@aybabtu.com>
38922
38923 Correct a mistake in previous commit.
38924
38925 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38926 top.
38927 (normal/command.c_DEPENDENCIES): New variable.
38928
7d31f41f 389292008-02-01 Robert Millan <rmh@aybabtu.com>
38930
38931 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38932 top.
38933 (normal/command.c_DEPENDENCIES): New variable.
38934 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38935 * conf/i386-ieee1275.rmk: Likewise.
38936 * conf/i386-linuxbios.rmk: Likewise.
38937 * conf/i386-pc.rmk: Likewise.
38938 * conf/sparc64-ieee1275.rmk: Likewise.
38939 * conf/powerpc-ieee1275.rmk: Likewise.
38940 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38941
38942 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38943
60b6be74 389442008-02-01 Robert Millan <rmh@aybabtu.com>
38945
38946 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38947 call at beginning of function.
38948
078522ab 389492008-01-31 Pavel Roskin <proski@gnu.org>
38950
38951 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 38952 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38953 (grub_mkrescue_SOURCES): Likewise.
078522ab 38954 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38955
ccaa8a5f 389562008-01-30 Robert Millan <rmh@aybabtu.com>
38957
38958 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38959 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38960 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38961 (grub_probe_SOURCES): ... to here.
38962
38963 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38964 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38965 * conf/i386-ieee1275.rmk: Likewise.
38966 * conf/i386-linuxbios.rmk: Likewise.
38967 * conf/powerpc-ieee1275.rmk: Likewise.
38968
ae5a9cd7 389692008-01-30 Tristan Gingold <gingold@free.fr>
38970
38971 * kern/rescue.c: Silently accept empty lines.
38972
70bc2ef2 389732008-01-29 Bean <bean123ch@gmail.com>
38974
38975 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38976 (real_code_2): Code cleanup and change comment style.
38977 (move_memory): Avoid using 32-bit address mode.
38978
6a4d50ea 389792008-01-29 Bean <bean123ch@gmail.com>
38980
38981 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38982 (png_mod_SOURCES): New variable.
38983 (png_mod_CFLAGS): Likewise.
38984 (png_mod_LDFLAGS): Likewise.
38985
38986 * video/readers/png.c: New file.
38987
11cc30ac 389882008-01-28 Robert Millan <rmh@aybabtu.com>
38989
38990 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38991 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38992 `ifndef GRUB_MOD_GAP' hack.
38993 * util/elf/grub-mkimage.c (add_segments): Likewise.
38994
3abc589f 389952008-01-27 Robert Millan <rmh@aybabtu.com>
38996
38997 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38998 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 38999 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 39000
e1907778 390012008-01-27 Robert Millan <rmh@aybabtu.com>
39002
39003 Get grub-emu to build again (including parallel builds).
39004
39005 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39006 Split into ...
39007 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39008 (normal/execute.c_DEPENDENCIES): ... this, ...
39009 (grub-emu_DEPENDENCIES): ... and this.
39010
39011 * conf/i386-efi.rmk: Likewise.
39012 * conf/i386-linuxbios.rmk: Likewise.
39013 * conf/i386-ieee1275.rmk: Likewise.
39014 * conf/powerpc-ieee1275.rmk: Likewise.
39015 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39016
2216b101 390172008-01-27 Robert Millan <rmh@aybabtu.com>
39018
39019 * NEWS: Add a few items.
39020
f75172d9 390212008-01-27 Robert Millan <rmh@aybabtu.com>
39022
39023 Fix parallel builds with grub-emu. Based on earlier commit for
39024 grub-probe and grub-setup.
39025
39026 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39027 (util/grub-emu.c_DEPENDENCIES): ... this.
39028 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39029 (util/grub-emu.c_DEPENDENCIES): ... this.
39030 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39031 (util/grub-emu.c_DEPENDENCIES): ... this.
39032 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39033 (util/grub-emu.c_DEPENDENCIES): ... this.
39034 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39035 (util/grub-emu.c_DEPENDENCIES): ... this.
39036
3f51de77 390372008-01-27 Pavel Roskin <proski@gnu.org>
39038
39039 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39040 to create a gap between _end and the modules added to the image
39041 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39042 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39043 * util/elf/grub-mkimage.c (add_segments): Likewise.
39044
2033f53e 390452008-01-26 Pavel Roskin <proski@gnu.org>
39046
39047 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39048 just return an error.
39049
22da1f6f 390502008-01-26 Bean <bean123ch@gmail.com>
39051
39052 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39053 (grub_reiserfs_get_item): Save offset of the next item.
39054 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39055
2a9525e6 390562008-01-25 Robert Millan <rmh@aybabtu.com>
39057
39058 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39059 make all filesystem sources appear together (possibly fixing omissions
39060 while at it).
39061 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39062 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39063 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39064 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39065
39066 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39067 add `kern/file.c'.
39068 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39069 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39070 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39071 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39072
39073 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39074 (probe): Add a sanity check to make sure of our ability to read
39075 requested files when probing for filesystem type.
39076
39077 * genmk.rb: Update copyright year (2007).
39078
39079 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39080 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39081 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39082 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39083 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39084 : Remove function prototypes.
39085
b95f71b5 390862008-01-25 Robert Millan <rmh@aybabtu.com>
39087
39088 Revert my previous commits (based on wrong assumption of how grub_errno
39089 works).
39090
fe6b695a 39091 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 39092 * kern/file.c (grub_file_open): Likewise.
39093
d08bbb49 390942008-01-24 Pavel Roskin <proski@gnu.org>
39095
39096 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39097 that hang if GRUB tries to setup colors.
39098 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39099 colors for firmwares that don't support it.
39100 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39101 Recognize Open Hack'Ware, set flags to work around its
39102 limitations.
39103
605e36ed 391042008-01-24 Robert Millan <rmh@aybabtu.com>
39105
39106 * kern/file.c (grub_file_open): Do not account previous failures of
39107 unrelated functions when grub_errno is checked for.
39108 Reported by Oleg Strikov.
39109
bac332a1 391102008-01-24 Bean <bean123ch@gmail.com>
39111
39112 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39113 (grub_ufs_sblock): New member volume name.
39114 (grub_ufs_find_file): Fix string copy bug.
39115 (grub_ufs_label): Implement this function properly.
39116
39117 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39118 (grub_hfs_iterate_records): Use the correct file number for extents
39119 and catalog file. Fix problem in next index calculation.
39120 (grub_hfs_find_node): Replace recursive function call with loop.
39121 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39122
15c80c09 391232008-01-23 Robert Millan <rmh@aybabtu.com>
39124
39125 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39126 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39127 (grub_multiboot2_real_boot): New function prototype.
39128
39129 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39130 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39131
39132 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39133 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39134
305338fd 391352008-01-23 Robert Millan <rmh@aybabtu.com>
39136
39137 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39138 #ifdef'ed out grub_printf().
39139
3ea52685 391402008-01-23 Robert Millan <rmh@aybabtu.com>
39141
39142 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39143 grub_dprintf calls, since they make "debug=all" mode unusable.
39144 (grub_console_checkkey): Likewise.
39145
5882ae4b 391462008-01-23 Robert Millan <rmh@aybabtu.com>
39147
39148 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39149 `term/i386/pc/at_keyboard.c'.
39150 (pkglib_MODULES): Add `serial.mod'.
39151 (serial_mod_SOURCES): New variable.
39152 (serial_mod_CFLAGS): Likewise.
39153 (serial_mod_LDFLAGS): Likewise.
39154
39155 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39156 `<grub/powerpc/ieee1275/console.h>'.
39157 (grub_keyboard_controller_init): New function prototype.
39158 (grub_console_checkkey): Likewise.
39159 (grub_console_getkey): Likewise.
39160
39161 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39162 keyboard on i386.
39163
39164 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39165 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39166
06ab5303 391672008-01-23 Robert Millan <rmh@aybabtu.com>
39168
39169 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39170 present, "(memdisk)/boot/grub" becomes the default prefix.
39171
39172 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39173 a memdisk tarball with all the modules. Add --overlay=DIR option that
39174 allows users to overlay additional files into the image.
39175
dbb475a4 391762008-01-23 Robert Millan <rmh@aybabtu.com>
39177
39178 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39179 and `machine/memory.h'.
39180 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39181 (_multiboot_mod_SOURCES): New variable.
39182 (_multiboot_mod_CFLAGS): Likewise.
39183 (_multiboot_mod_LDFLAGS): Likewise.
39184 (multiboot_mod_SOURCES): Likewise.
39185 (multiboot_mod_CFLAGS): Likewise.
39186 (multiboot_mod_LDFLAGS): Likewise.
39187
39188 * include/grub/i386/ieee1275/loader.h: New file.
39189
39190 * include/grub/i386/ieee1275/machine.h: Likewise.
39191
39192 * include/grub/i386/ieee1275/memory.h: Likewise.
39193
39194 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39195 variable declaration.
39196 (grub_os_area_size): Likewise.
39197
39198 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39199 (grub_lower_mem, grub_upper_mem): New variables.
39200 (grub_stop_floppy): New function (just to make
39201 grub_multiboot2_real_boot() happy).
39202
39203 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39204 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39205 (grub_stop): New function.
39206 Include `"../realmode.S"' and `"../loader.S"'.
39207
39208 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39209 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39210
39211 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39212 rely on grub_multiboot2_real_boot() for final boot.
39213
25638629 392142008-01-22 Robert Millan <rmh@aybabtu.com>
39215
39216 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39217 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39218 device that doesn't look like an SD card.
39219 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39220 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39221 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39222 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39223 found.
39224
9dad816d 392252008-01-22 Robert Millan <rmh@aybabtu.com>
39226
39227 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39228 avoid claiming over our own code.
39229
34842f2d 392302008-01-22 Bean <bean123ch@gmail.com>
39231
39232 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39233 (jpeg_mod_SOURCES): New variable.
39234 (jpeg_mod_CFLAGS): Likewise.
39235 (jpeg_mod_LDFLAGS): Likewise.
39236
39237 * video/readers/jpeg.c : New file.
39238
44023a28 392392008-01-22 Bean <bean123ch@gmail.com>
39240
39241 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39242 there are no more items.
39243
bc2d8ac6 392442008-01-21 Robert Millan <rmh@aybabtu.com>
39245
39246 * kern/mm.c (grub_mm_init_region): Improve debug message.
39247
261bd4bc 392482008-01-21 Robert Millan <rmh@aybabtu.com>
39249
39250 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39251 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39252 address.
39253 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39254 a C macro.
39255 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39256 Indicates start of upper memory.
39257 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39258 (generate_image): Abort when image size is big enough to corrupt
39259 upper memory.
39260
39261 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39262 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39263 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39264 instead of hardcoding 0xA0000.
39265 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39266 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39267 instead of hardcoding 0xA0000.
39268
f970b55e 392692008-01-21 Robert Millan <rmh@aybabtu.com>
39270
39271 * disk/memdisk.c (memdisk_size): New variable.
39272 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39273 `memdisk_size'.
39274 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39275 image to dynamic memory.
39276 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39277 `memdisk_size'. Free memdisk block.
39278
1a8b0526 392792008-01-21 Robert Millan <rmh@aybabtu.com>
39280
39281 Fix detection of very small filesystems (like tar).
39282
39283 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39284 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39285 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39286 a problem with this disk).
39287
6e9b4aab 392882008-01-21 Robert Millan <rmh@aybabtu.com>
39289
39290 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39291 on grub_biosdisk_rw_standard() error.
39292
0d8837b2 392932008-01-21 Robert Millan <rmh@aybabtu.com>
39294
39295 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39296 recent changes.
39297 * kern/elf.c: Likewise.
39298 * kern/ieee1275/ieee1275.c: Likewise.
39299 * kern/powerpc/ieee1275/openfw.c: Likewise.
39300 * term/ieee1275/ofconsole.c: Likewise.
39301
ffd36e34 393022008-01-21 Robert Millan <rmh@aybabtu.com>
39303
39304 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39305
3f0093d0 39306 * include/grub/kernel.h (grub_arch_memdisk_addr)
39307 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 39308
3f0093d0 39309 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39310 (grub_arch_memdisk_size): ... to here.
ffd36e34 39311
6c391b21 393122008-01-21 Robert Millan <rmh@aybabtu.com>
39313
39314 Mostly based on bugfix from Bean.
39315
39316 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39317 attribute with hook() parameter.
39318 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39319 declaration.
39320 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39321 attribute with hook() parameter.
39322 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39323 declaration.
39324
55a581dc 393252008-01-21 Robert Millan <rmh@aybabtu.com>
39326
39327 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39328 (pkglib_MODULES): Add `memdisk.mod'.
39329 (memdisk_mod_SOURCES): New variable.
39330 (memdisk_mod_CFLAGS): Likewise.
39331 (memdisk_mod_LDFLAGS): Likewise.
39332
39333 * disk/memdisk.c: New file.
39334
39335 * include/grub/disk.h (grub_disk_dev_id): Add
39336 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39337
39338 * include/grub/i386/pc/kernel.h
39339 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39340 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39341 (grub_kernel_image_size): New variable declaration.
39342 (grub_total_module_size): Likewise.
39343 (grub_memdisk_image_size): Likewise.
39344
39345 * include/grub/i386/pc/memory.h
39346 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39347
39348 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39349 (grub_arch_memdisk_addr): New variable declaration.
39350 (grub_arch_memdisk_size): Likewise.
39351
39352 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39353 (grub_arch_memdisk_size): Likewise.
39354
39355 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39356 (codestart): Replace hardcoded `0x100000' with
39357 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39358
39359 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39360 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39361 not NULL, append the contents of the file it refers to, at the end of
39362 the compressed kernel image. Initialize `grub_memdisk_image_size'
39363 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39364 (options): Add "memdisk"|'m' option.
39365 (main): Parse --memdisk|-m option, and pass user-provided path as
39366 parameter to generate_image().
39367
3d7f54c9 393682008-01-20 Robert Millan <rmh@aybabtu.com>
39369
39370 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39371 grub_dprintf() calls from here ...
39372 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39373
0bf74728 393742008-01-20 Robert Millan <rmh@aybabtu.com>
39375
39376 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39377
39378 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39379 declaration.
39380 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39381 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39382 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 39383 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 39384 property).
39385 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39386 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39387
33bf70a7 393882008-01-19 Robert Millan <rmh@aybabtu.com>
39389
fe6b695a 39390 Get rid of confusing function (superseded by
33bf70a7 39391 `grub_ieee1275_get_integer_property')
39392 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39393 prototype.
39394 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39395 function.
39396 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39397 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 39398 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 39399
e2da7d26 394002008-01-19 Robert Millan <rmh@aybabtu.com>
39401
39402 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39403 command after "shut-down", since implementations differ on which
39404 the command for halt is.
39405
59f1fd8d 394062008-01-19 Robert Millan <rmh@aybabtu.com>
39407
39408 * include/grub/i386/linuxbios/console.h: Add header protection.
39409 (grub_keyboard_controller_init): New function prototype.
39410 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39411 (KEYBOARD_COMMAND_READ): Likewise.
39412 (KEYBOARD_COMMAND_WRITE): Likewise.
39413 (KEYBOARD_SCANCODE_SET1): Likewise.
39414 (grub_keyboard_controller_write): New function.
39415 (grub_keyboard_controller_read): Likewise.
39416 (grub_keyboard_controller_init): Likewise.
39417
39418 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39419 (grub_console_init): On coreboot/LinuxBIOS, call
39420 grub_keyboard_controller_init().
39421
5f5a7c15 394222008-01-19 Robert Millan <rmh@aybabtu.com>
39423
39424 PowerPC changes provided by Pavel Roskin.
39425
39426 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39427 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39428 don't rely on cmain() doing it.
39429 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39430 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39431
1210e168 394322008-01-16 Robert Millan <rmh@aybabtu.com>
39433
39434 * include/grub/i386/linuxbios/memory.h
39435 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39436 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39437 receive `table_header' as argument. Instead, probe for it in the
39438 known memory ranges where it can be present.
39439 (grub_available_iterate): Do not pass a fixed `table_header' address
39440 to grub_linuxbios_table_iterate().
39441
3d04eab8 394422008-01-15 Robert Millan <rmh@aybabtu.com>
39443
39444 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39445 * conf/i386-ieee1275.rmk: New file.
39446 * include/grub/i386/ieee1275/console.h: Likewise.
39447 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39448 * include/grub/i386/ieee1275/kernel.h: Likewise.
39449 * include/grub/i386/ieee1275/time.h: Likewise.
39450 * kern/i386/ieee1275/init.c: Likewise.
39451 * kern/i386/ieee1275/startup.S: Likewise.
39452
d1bc1b73 394532008-01-15 Robert Millan <rmh@aybabtu.com>
39454
39455 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39456 when pointers are 32-bit (but still do set it to one when they are
39457 64-bit).
39458
66a65807 394592008-01-15 Robert Millan <rmh@aybabtu.com>
39460
39461 * include/grub/ieee1275/ieee1275.h
39462 (grub_ieee1275_get_integer_property): New function prototype.
39463
39464 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39465 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 39466 grub_ieee1275_get_property() to handle endianness.
66a65807 39467
39468 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39469 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 39470 where appropriate.
66a65807 39471 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39472 (grub_map): Likewise.
39473 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39474
a83ccafd 394752008-01-15 Bean <bean123ch@gmail.com>
39476
39477 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39478 (grub_script_execute_cmdline): Reset grub_errno.
39479
39480 * normal/main.c (read_config_file): Reset grub_errno.
39481
39482 * normal/parse.y (script_init): New.
39483 (script): Move function and menuentry here.
39484 (delimiter): New.
39485 (command): Add delimiter at the end of command.
39486 (commands): Adjust to match the new command.
39487 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 39488 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 39489 (if): Use the new commands.
39490
39491 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39492
df6ecfc6 394932008-01-15 Robert Millan <rmh@aybabtu.com>
39494
39495 * normal/menu.c (run_menu): Move timeout message from here ...
39496 (print_timeout): ... to here.
39497 (run_menu): Use print_timeout() once during initial draw to print
39498 the whole message, and again in every clock tick to update only
39499 the number of seconds.
39500
87ae25eb 395012008-01-15 Robert Millan <rmh@aybabtu.com>
39502
39503 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39504 actual size of `available' from grub_ieee1275_get_property(), and
39505 restrict parsing to that bound.
39506
47bf09a4 395072008-01-15 Christian Franke <franke@computer.org>
39508
39509 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39510 (argp_program_version): Remove variable.
39511 (argp_program_bug_address): Likewise.
39512 (options): Convert from struct argp_option to struct option.
39513 (struct arguments): Remove.
39514 (parse_opt): Remove.
39515 (usage): New function.
39516 (main): Replace struct args members by simple variables.
39517 Replace argp_parse() by getopt_long().
39518 Add switch to evaluate options.
39519 Add missing "(...)" around root_dev in prefix string.
39520
c86f1469 395212008-01-14 Robert Millan <rmh@aybabtu.com>
39522
39523 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39524 for grub_ieee1275_exit(), in order to improve portability.
39525
e622c559 395262008-01-14 Robert Millan <rmh@aybabtu.com>
39527
39528 * util/grub.d/10_linux.in (prefix): Define.
39529 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39530
44cb1ec8 395312008-01-13 Pavel Roskin <proski@gnu.org>
39532
39533 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39534 grub_errno if no errors have been detected.
39535
1eb8c802 395362008-01-12 Robert Millan <rmh@aybabtu.com>
39537
39538 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39539 (grub_util_get_dev_abstraction): New function prototype.
39540
39541 * util/getroot.c: Include `<grub/util/getroot.h>'
39542 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39543 (grub_util_get_dev_abstraction): ... here (new function).
39544
39545 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39546 `PRINT_ABSTRACTION'.
39547 (probe): Probe for abstraction type when requested.
39548 (main): Understand `--target=abstraction'.
39549
39550 * util/i386/efi/grub-install.in: Add abstraction module to core
39551 image when it is found to be necessary.
39552 * util/i386/pc/grub-install.in: Likewise.
39553 * util/powerpc/ieee1275/grub-install.in: Likewise.
39554
39555 * util/update-grub_lib.in (font_path): Return system path without
39556 converting to GRUB path.
39557 * util/update-grub.in: Convert system path returned by font_path()
39558 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39559 abstraction module is needed for loading fonts (if any). Export
39560 that as `GRUB_PRELOAD_MODULES'.
39561 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39562 insmod commands).
39563
52bd3de9 395642008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39565
39566 Remove some unused code from reiserfs.
f19dbdb7 39567
52bd3de9 39568 * fs/reiserfs.c (struct grub_reiserfs_key)
39569 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39570 (struct grub_reiserfs_node_body): Removed.
39571 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39572 Likewise.
39573 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39574 Likewise.
39575 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39576 Likewise.
39577 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39578 Likewise.
39579 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39580 Likewise.
39581 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39582 Likewise.
39583 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39584 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39585 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39586
2f80039d 395872008-01-10 Robert Millan <rmh@aybabtu.com>
39588
39589 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39590 Determines if a file is garbage left by packaging systems, etc.
39591 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39592 for processing /etc/grub.d scripts.
39593 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39594 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39595 as a condition for processing Linux images.
39596
87888032 395972008-01-10 Pavel Roskin <proski@gnu.org>
39598
39599 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39600 to compile reiserfs.c on PowerPC.
39601
7e54fced 396022008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 39603
39604 * kern/device.c (grub_device_iterate): Do not abort device iteration
39605 when one of the devices cannot be opened.
39606 * kern/disk.c (grub_disk_open): Do not account previous failures of
39607 unrelated functions when grub_errno is checked for.
39608
5aa541e6 396092008-01-08 Robert Millan <rmh@aybabtu.com>
39610
39611 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39612 `! grub_linux_is_bzimage', change order of address comparison to make
39613 it more intuitive, and improve "too big zImage" error message.
39614
7076340d 396152008-01-08 Robert Millan <rmh@aybabtu.com>
39616
39617 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39618 `$(update-grub_DATA)'.
39619 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39620 targets.
39621
9ca70333 396222008-01-07 Robert Millan <rmh@aybabtu.com>
39623
39624 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39625 which instruction is modified by grub-setup during installation
39626 (since it wasn't obvious by only looking at this file).
39627
38ccf575 396282008-01-07 Robert Millan <rmh@aybabtu.com>
39629
39630 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39631 listing actual TODO items.
39632
f5db4291 396332008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39634
868967cf 39635 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39636 correctly.
39637 (grub_reiserfs_get_key_offset): Likewise.
39638 (grub_reiserfs_set_key_offset): Likewise.
39639 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 39640 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 39641
39642 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39643 better to remove the bitfield version completely.
f19dbdb7 39644
868967cf 396452008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 39646
f5db4291 39647 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39648 allocated from the heap, due to the fshelp implementation.
39649 (grub_reiserfs_dir): Free NODE, due to the same reason.
39650
492e6d9d 396512008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39652
39653 Mostly from Vincent Pelletier:
f19dbdb7 39654
492e6d9d 39655 * fs/reiserfs.c: New file.
f19dbdb7 39656
492e6d9d 39657 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39658 (reiserfs_mod_SOURCES): New variable.
39659 (reiserfs_mod_CFLAGS): Likewise.
39660 (reiserfs_mod_LDFLAGS): Likewise.
39661
39662 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39663 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39664 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39665 normal/color.c.
39666
9ce3e7c1 396672008-01-06 Robert Millan <rmh@aybabtu.com>
39668
39669 * normal/color.c: Remove `<grub/env.h>'.
39670
f3b58148 396712008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39672
39673 * include/grub/normal.h: Include <grub/env.h>.
39674
7ac3bcfa 396752008-01-05 Robert Millan <rmh@aybabtu.com>
39676
39677 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39678 usage example with `(hd0,1)'.
fb358190 39679 Reported by Samuel Thibault.
7ac3bcfa 39680
c8ee99d7 396812008-01-05 Robert Millan <rmh@aybabtu.com>
39682
39683 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39684 (grub_linux_boot_zimage): Rename to ...
39685 (grub_linux_boot): ... this.
39686 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39687 (grub_linux_boot_zimage): Conditionalize zImage copy.
39688
39689 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39690 (grub_linux_boot_bzimage): Remove prototype.
39691 (grub_linux_boot_zimage): Rename to ...
39692 (grub_linux_boot): ... this.
39693
39694 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39695 (grub_linux_boot): Remove function.
39696
0ece25b1 396972008-01-05 Robert Millan <rmh@aybabtu.com>
39698
39699 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39700 (grub_env_write_color_highlight): Likewise.
39701 (grub_wait_after_message): Likewise.
39702
39703 * normal/color.c: New file.
39704
39705 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39706 (normal_mod_DEPENDENCIES): Likewise.
39707
39708 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39709 (normal_mod_DEPENDENCIES): Likewise.
39710
39711 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39712 (normal_mod_DEPENDENCIES): Likewise.
39713
39714 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39715 (normal_mod_DEPENDENCIES): Likewise.
39716
39717 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39718 for waiting after a message is printed.
39719 * normal/main.c (read_config_file): Likewise.
39720 (grub_normal_init): Register grub_env_write_color_normal() and
39721 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39722 `color_highlight' variables as global.
39723
39724 * normal/menu.c (grub_wait_after_message): New function.
39725 (grub_color_menu_normal): New variable. Replaces ...
39726 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39727 (grub_color_menu_highlight): New variable. Replaces ...
39728 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39729 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39730 `GRUB_TERM_COLOR_STANDARD'.
39731 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39732 `normal_code' and `highlight_code' to `old_color_normal' and
39733 `old_color_highlight', respectively.
39734 (grub_menu_init_page): Update colors when drawing the menu, based on
39735 `menu_color_normal' and `menu_color_highlight' variables.
39736 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39737 a message is printed.
39738
182dd4e5 397392008-01-05 Robert Millan <rmh@aybabtu.com>
39740
39741 * kern/env.c (grub_env_context_open): Propagate hooks for global
39742 variables to new context.
39743
39744 * kern/main.c (grub_set_root_dev): Export `root' variable.
39745
ddf8f6ad 397462008-01-05 Robert Millan <rmh@aybabtu.com>
39747
39748 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 39749 discs unconditionally, since udev and others have options to provide
ddf8f6ad 39750 them.
39751
d8b43d9b 397522008-01-05 Robert Millan <rmh@aybabtu.com>
39753
39754 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39755
2bff2de3 397562008-01-04 Christian Franke <franke@computer.org>
39757
39758 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39759 of eisa_mmap.
39760
97eab917 397612008-01-03 Pavel Roskin <proski@gnu.org>
39762
39763 * kern/i386/linuxbios/init.c: Put "void" to all function
39764 declarations with no arguments.
39765 * kern/powerpc/ieee1275/init.c: Likewise.
39766 * term/i386/pc/at_keyboard.c: Likewise.
39767 * term/i386/pc/vga_text.c: Likewise.
39768 * util/grub-mkdevicemap.c: Likewise.
39769
b9416d00 397702008-01-02 Robert Millan <rmh@aybabtu.com>
39771
39772 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39773 message when loaded image is out of bounds.
39774 (grub_multiboot_load_elf64): Likewise.
39775
92695df9 397762008-01-02 Pavel Roskin <proski@gnu.org>
39777
39778 * util/grub.d/10_linux.in: Try version without ".old" when
39779 looking for initrd. It's better to use initrd from the newer
39780 kernel of the same version than no initrd at all.
39781
d98d9cad 397822008-01-01 Robert Millan <rmh@aybabtu.com>
39783
39784 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39785
dbfdce36 397862008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39787
f19dbdb7 39788 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 39789 grub_video_get_active_render_target.
39790 (grub_video_adapter): Added unmap_color and get_active_render_target.
39791
f19dbdb7 39792 * video/video.c: Added grub_video_unmap_color and
dbfdce36 39793 grub_video_get_active_render_target.
39794 (grub_video_get_info): Changed method to accept NULL pointer as an
39795 argument to allow detection of active video adapter.
39796
39797 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39798 grub_video_vbe_unmap_color_int.
39799 Added grub_video_vbe_unmap_color and
39800 grub_video_vbe_get_active_render_target.
39801 (grub_video_vbe_adapter): Added unmap_color and
39802 get_active_render_target.
39803
f19dbdb7 39804 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 39805 with grub_video_vbe_unmap_color_int.
39806
39807 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39808 (DEFAULT_NORMAL_COLOR): Likewise.
39809 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39810 (DEFAULT_FG_COLOR): Removed.
39811 (DEFAULT_BG_COLOR): Likewise.
39812 (DEFAULT_CURSOR_COLOR): Changed value.
39813 (grub_virtual_screen): Added standard_color_setting,
39814 normal_color_setting, highlight_color_setting and term_color.
39815 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39816 (bitmap_width): Added.
39817 (bitmap_height): Likewise.
39818 (bitmap): Likewise.
39819 (set_term_color): Likewise.
39820 (grub_virtual_screen_setup): Changed to use new terminal coloring
39821 settings.
39822 (grub_gfxterm_init): Added init for bitmap.
39823 (grub_gfxterm_fini): Added destroy for bitmap.
39824 (redraw_screen_rect): Updated to use background bitmap and new
39825 terminal coloring.
39826 (scroll_up): Added optimization for case when there is no bitmap.
39827 (grub_gfxterm_cls): Fixed to use correct background color.
39828 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39829 coloring.
39830 (grub_virtual_screen_setcolor): Likewise.
39831 (grub_virtual_screen_getcolor): Added.
39832 (grub_gfxterm_background_image_cmd): Likewise.
39833 (grub_video_term): Added setcolor and getcolor.
39834 (MOD_INIT): Added registration of background_image command.
39835 (MOD_TERM): Added unregistration for background_image command.
39836
c3c20931 398372007-12-30 Pavel Roskin <proski@gnu.org>
39838
39839 * loader/multiboot_loader.c: Fix multiboot command
39840 unregistration. Fix all typos in the word "multiboot".
39841
df266716 398422007-12-29 Pavel Roskin <proski@gnu.org>
94239199 39843
39844 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39845 support for initrd names used in Fedora.
39846
fc6e896c 398472007-12-26 Bean <bean123ch@gmail.com>
39848
39849 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39850 (cpio_mod_SOURCES): New variable.
39851 (cpio_mod_CFLAGS): Likewise.
39852 (cpio_mod_LDFLAGS): Likewise.
39853
39854 * fs/cpio.c: New file.
39855
39856 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39857
39858 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39859
39860 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39861
39862 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39863
533110ad 398642007-12-25 Robert Millan <rmh@aybabtu.com>
39865
39866 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39867 (grub_getcolor): New function.
39868
39869 * kern/term.c (grub_getcolor): New function.
39870 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39871 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39872 (print_entry): Set normal and highlight colors to
39873 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39874 respectively, before printing and restore them to old
39875 values afterwards.
39876 (grub_menu_init_page): Likewise. Fill an additional colored space
39877 that would otherwise be left blank.
39878
39879 * term/efi/console.c (grub_console_getcolor): New function.
39880 (struct grub_console_term.getcolor): New variable.
39881 * term/i386/pc/console.c (grub_console_getcolor): New function.
39882 (struct grub_console_term.getcolor): New variable.
39883 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39884 (struct grub_console_term.getcolor): New variable.
39885
39886 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39887 (struct grub_console_term.setcolor): Remove variable.
39888 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39889 (struct grub_console_term.setcolor): Remove variable.
39890 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39891 (struct grub_console_term.setcolor): Remove variable.
39892 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39893 (struct grub_console_term.setcolor): Remove variable.
39894
4931827f 398952007-12-25 Robert Millan <rmh@aybabtu.com>
39896
39897 * configure.ac: Search for possible unifont.hex locations, and
39898 define UNIFONT_HEX if found.
39899
39900 * Makefile.in (UNIFONT_HEX): Define variable.
39901 (DATA): Rename to ...
39902 (PKGLIB): ... this. Update all users.
39903 (PKGDATA): New variable.
39904 (pkgdata_IMAGES): Rename to ...
39905 (pkglib_IMAGES): ... this. Update all users.
39906 (pkgdata_MODULES): Rename to ...
39907 (pkglib_MODULES): ... this. Update all users.
39908 (pkgdata_PROGRAMS): Rename to ...
39909 (pkglib_PROGRAMS): ... this. Update all users.
39910 (pkgdata_DATA): Rename to ...
39911 (pkglib_DATA): ... this. Update all users.
39912 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39913 (unicode.pff, ascii.pff): New rules.
39914 (all-local): Add `$(PKGDATA)' dependency.
39915 (install-local): Process `$(PKGDATA)'.
39916
39917 * util/update-grub_lib.in (font_path): Search for *.pff files in
39918 a few more locations, including `${pkgdata}'.
39919
57e57e31 399202007-12-23 Robert Millan <rmh@aybabtu.com>
39921
39922 Patch from Bean <bean123ch@gmail.com>:
39923 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39924 `size'.
39925
4bc72aa9 399262007-12-21 Bean <bean123ch@gmail.com>
39927
39928 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39929 (ntfscomp_mod_SOURCES): New variable.
39930 (ntfscomp_mod_CFLAGS): Likewise.
39931 (ntfscomp_mod_LDFLAGS): Likewise.
39932
39933 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39934 (grub_probe_SOURCES): Likewise.
39935 (grub_emu_SOURCES): Likewise.
39936
39937 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39938 (grub_emu_SOURCES): Likewise.
39939
39940 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39941 (grub_emu_SOURCES): Likewise.
39942
39943 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39944 (grub_emu_SOURCES): Likewise.
39945
39946 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39947 (read_run_list): Renamed to grub_ntfs_read_run_list.
39948 (decomp_nextvcn): Moved to ntfscomp.c.
39949 (decomp_getch): Likewise.
39950 (decomp_get16): Likewise.
39951 (decomp_block): Likewise.
39952 (read_block): Likewise.
39953 (read_data): Partially moved to ntfscomp.c.
39954 (fixup): Change unsigned to grub_uint16_t.
39955 (read_mft): Change unsigned long to grub_uint32_t.
39956 (read_attr): Likewise.
39957 (read_data): Likewise.
39958 (read_run_data): Likewise.
39959 (read_run_list): Likewise.
39960 (read_mft): Likewise.
39961
39962 * fs/ntfscomp.c: New file.
39963
39964 * include/grub/ntfs.h: New file.
39965
af680a87 399662007-12-16 Robert Millan <rmh@aybabtu.com>
39967
39968 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39969 IDE disk check, since Linux is known to support 20 IDE disks.
39970 Reported by Colin Watson.
39971
84be7599 399722007-12-15 Bean <bean123ch@gmail.com>
39973
39974 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39975 (lnxboot_img_SOURCES): New variable.
39976 (lnxboot_img_ASFLAGS): Likewise.
39977 (lnxboot_img_LDFLAGS): Likewise.
39978
39979 * boot/i386/pc/lnxboot.S: New file.
39980
6af9db01 399812007-11-24 Pavel Roskin <proski@gnu.org>
39982
39983 * configure.ac: Test if '--build-id=none' is supported by the
39984 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39985 objcopy to generate incorrect binary files (binutils
39986 2.17.50.0.18-1 as shipped by Fedora 8).
39987 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39988 linking, so that build ID doesn't break the test.
39989
7361cfe6 399902007-11-24 Pavel Roskin <proski@gnu.org>
39991
39992 * include/grub/i386/time.h: use "void" in the argument list
39993 of grub_cpu_idle().
39994 * include/grub/powerpc/time.h: Likewise.
39995 * include/grub/sparc64/time.h: Likewise.
39996
1593e10c 399972007-11-18 Christian Franke <franke@computer.org>
39998
39999 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40000 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40001 This fixes the problem that function keys did not work in grub-emu.
40002
3b8db1a8 400032007-11-18 Christian Franke <franke@computer.org>
40004
40005 * disk/host.c (grub_host_open): Remove attribute unused from
40006 name parameter. Add check for "host". This fixes the problem
40007 that grub-emu does not find partitions.
40008
2e29408d 400092007-11-18 Christian Franke <franke@computer.org>
40010
40011 * util/hostfs.c (is_dir): New function.
40012 (grub_hostfs_dir): Handle missing dirent.d_type case.
40013 (grub_hostfs_read): Add missing fseek().
40014 (grub_hostfs_label): Clear label pointer. This fixes a crash
40015 of grub-emu on "ls (host)".
40016
398cd047 400172007-11-18 Christian Franke <franke@computer.org>
40018
40019 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40020 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40021 to 64 bit boundary by default.
40022
c405c391 400232007-11-18 Bean <bean123ch@gmail.com>
40024
40025 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40026 (hexdump_mod_SOURCES): New variable.
40027 (hexdump_mod_CFLAGS): Likewise.
40028 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 40029
c405c391 40030 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40031
40032 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40033
40034 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40035
40036 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40037
40038 * include/grub/hexdump.h: New file.
40039
40040 * commands/hexdump.c: New file.
40041
5cced7fd 400422007-11-10 Robert Millan <rmh@aybabtu.com>
40043
40044 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40045 in grub_outb() calls.
40046 (beep_on): Likewise.
40047
8b714eb0 400482007-11-10 Christian Franke <franke@computer.org>
40049
40050 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40051 (grub_menu_run): Likewise.
40052
ce0f1839 400532007-11-10 Robert Millan <rmh@aybabtu.com>
40054
40055 * include/grub/i386/efi/machine.h: New file.
40056 * include/grub/i386/linuxbios/machine.h: Likewise.
40057 * include/grub/i386/pc/machine.h: Likewise.
40058 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40059 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40060
40061 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40062 (serial_hw_io_addr): New variable.
40063 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40064 instead of `(unsigned short *) 0x400'.
40065
270c237d 400662007-11-10 Bean <bean123ch@gmail.com>
40067
40068 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40069
a87783bf 400702007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40071
40072 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40073 (vga_mod_SOURCES): Added.
40074 (vga_mod_CFLAGS): Likewise.
40075 (vga_mod_LDFLAGS): Likewise.
40076
40077 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40078 grub_outb() calls.
40079 (set_map_mask): Likewise.
40080 (set_read_map): Likewise.
40081 (set_read_address): Likewise.
40082 (vga_font): Removed variable.
40083 (get_vga_glyph): Removed function.
40084 (invalidate_char): Likewise.
40085 (write_char): Changed to use grub_font_get_glyph() for font
40086 information.
40087 (grub_vga_putchar): Likewise.
40088 (grub_vga_getcharwidth): Likewise.
40089
6433b448 400902007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40091
40092 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40093 flags.
40094 (pxeboot_img_LDFLAGS): Likewise.
40095 (diskboot_img_LDFLAGS): Likewise.
40096 (kernel_img_LDFLAGS): Likewise.
40097
49178511 400982007-11-06 Robert Millan <rmh@aybabtu.com>
40099
40100 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40101 in grub_outb() calls.
40102 (serial_hw_init): Likewise.
40103
53b052de 401042007-11-05 Robert Millan <rmh@aybabtu.com>
40105
40106 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40107 spaces. Skip non-regular files.
40108
5ab33bba 401092007-11-05 Robert Millan <rmh@aybabtu.com>
40110
40111 * kern/disk.c (grub_disk_firmware_fini)
40112 (grub_disk_firmware_is_tainted): New variables.
40113
40114 * include/grub/disk.h (grub_disk_firmware_fini)
40115 (grub_disk_firmware_is_tainted): Likewise.
40116
40117 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40118 (grub_disk_biosdisk_fini): ... to here.
40119 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40120 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40121 is set. Register grub_disk_biosdisk_fini() in
40122 `grub_disk_firmware_fini'.
40123
40124 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40125 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40126 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40127 to finish existing firmware disk interface.
40128
40129 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40130 (ata_mod_SOURCES): New variable.
40131 (ata_mod_CFLAGS): Likewise.
40132 (ata_mod_LDFLAGS): Likewise.
40133
0149ab7c 401342007-11-05 Robert Millan <rmh@aybabtu.com>
40135
40136 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40137 (grub_ata_wait): Reimplement using grub_millisleep().
40138
40139 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40140 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40141
be7ac41e 401422007-11-03 Marco Gerards <marco@gnu.org>
40143
40144 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40145 (CRTC_ADDR_PORT): New macro.
40146 (CRTC_DATA_PORT): Likewise.
40147 (CRTC_CURSOR): Likewise.
40148 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40149 (CRTC_CURSOR_ADDR_LOW): Likewise.
40150 (update_cursor): New function.
40151 (grub_console_real_putchar): Call `update_cursor'.
40152 (grub_console_gotoxy): Likewise.
40153 (grub_console_cls): Set the default color when clearing the
40154 screen.
40155 (grub_console_setcursor): Implemented.
40156
bb06ab2e 401572007-11-03 Marco Gerards <marco@gnu.org>
40158
40159 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40160 become activate.
40161 (grub_ata_pio_write): Likewise.
40162
40163 (grub_atapi_identify): Wait after issuing an ATA command.
40164 (grub_atapi_packet): Likewise.
40165 (grub_ata_identify): Likewise.
40166 (grub_ata_readwrite): Likewise.
40167
cf8f780b 401682007-11-03 Marco Gerards <marco@gnu.org>
40169
40170 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40171 (grub_ata_pio_write): Likewise.
40172 (grub_ata_readwrite): Use `grub_error', instead of
40173 returning `grub_errno'.
40174
ed649e54 401752007-11-03 Marco Gerards <marco@gnu.org>
40176
40177 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40178 grub_ata_pio_write once for every single sector, instead of for
40179 multiple sectors.
40180
ca25d8f0 401812007-10-31 Robert Millan <rmh@aybabtu.com>
40182
40183 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40184
40185 * conf/i386-linuxbios.rmk: New file.
40186
40187 * kern/i386/pc/hardware.c: Likewise.
40188 * term/i386/pc/at_keyboard.c: Likewise.
40189 * term/i386/pc/vga_text.c: Likewise.
40190
40191 * include/grub/i386/linuxbios/boot.h: Likewise.
40192 * include/grub/i386/linuxbios/console.h: Likewise.
40193 * include/grub/i386/linuxbios/init.h: Likewise.
40194 * include/grub/i386/linuxbios/kernel.h: Likewise.
40195 * include/grub/i386/linuxbios/loader.h: Likewise.
40196 * include/grub/i386/linuxbios/memory.h: Likewise.
40197 * include/grub/i386/linuxbios/serial.h: Likewise.
40198 * include/grub/i386/linuxbios/time.h: Likewise.
40199
40200 * kern/i386/linuxbios/init.c: Likewise.
40201 * kern/i386/linuxbios/startup.S: Likewise.
40202 * kern/i386/linuxbios/table.c: Likewise.
40203
e911ecc1 402042007-10-31 Marco Gerards <marco@gnu.org>
40205
40206 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40207 (ata_mod_SOURCES): New variable.
40208 (ata_mod_CFLAGS): Likewise.
40209 (ata_mod_LDFLAGS): Likewise.
40210
40211 * disk/ata.c: New file.
40212
40213 * include/grub/disk.h (grub_disk_dev_id): Add
40214 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 40215
7f66d0e0 402162007-10-31 Robert Millan <rmh@aybabtu.com>
40217
40218 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40219 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40220
40221 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40222 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40223
40224 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40225 `<grub/types.h>'.
40226
40227 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40228
5cd7dd46 402292007-10-27 Robert Millan <rmh@aybabtu.com>
40230
3236ca65 40231 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 40232
2ebfc90f 402332007-10-22 Robert Millan <rmh@aybabtu.com>
40234
40235 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40236 `"../realmode.S"'.
40237 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40238
73fcb0f3 402392007-10-22 Robert Millan <rmh@aybabtu.com>
40240
40241 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40242 (pkgdata_MODULES): Add `biosdisk.mod'.
40243 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40244 variables.
40245
40246 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40247 (grub_biosdisk_init): Replace with ...
40248 (GRUB_MOD_INIT(biosdisk)): ... this.
40249 (grub_biosdisk_fini): Replace with ...
40250 (GRUB_MOD_FINI(biosdisk)): ... this.
40251
40252 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40253 (grub_machine_init): Remove call to grub_biosdisk_init().
40254 (grub_machine_fini): Remove call to grub_machine_fini().
40255
40256 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40257
3381d274 402582007-10-22 Robert Millan <rmh@aybabtu.com>
40259
40260 * include/grub/time.h: New file.
40261 * include/grub/i386/time.h: Likewise.
40262 * include/grub/powerpc/time.h: Likewise.
40263 * include/grub/sparc64/time.h: Likewise.
40264
40265 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40266 instances to ...
40267 (KERNEL_MACHINE_TIME_HEADER): ... this.
40268 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40269 instances to ...
40270 (KERNEL_MACHINE_TIME_HEADER): ... this.
40271 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40272 instances to ...
40273 (KERNEL_MACHINE_TIME_HEADER): ... this.
40274
40275 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40276 (grub_millisleep): New function.
40277 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40278 (grub_millisleep): New function.
40279 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40280 Remove `grub/machine/time.h' include.
40281 (grub_millisleep): New function.
40282 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40283 Remove `grub/machine/time.h' include.
40284 (grub_millisleep): New function.
40285
40286 * include/grub/misc.h (grub_div_roundup): New function.
40287
40288 * kern/misc.c: Include `<grub/time.h>'.
40289 (grub_millisleep_generic): New function.
40290
40291 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40292 Add `time.h'.
40293 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40294 Add `time.h'.
40295 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40296 `machine/time.h'. Add `time.h'.
40297 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40298
a39a0312 402992007-10-21 Robert Millan <rmh@aybabtu.com>
40300
40301 * include/grub/misc.h (grub_max): New function.
40302
2aad70e2 403032007-10-21 Robert Millan <rmh@aybabtu.com>
40304
40305 * util/misc.c (grub_util_info): Call fflush() before returning.
40306
54b71c4b 403072007-10-20 Robert Millan <rmh@aybabtu.com>
40308
40309 * genmk.rb (Image): Copy `extra_flags' from here ...
40310 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40311
40312 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40313 to `argc' and `args' arguments.
40314
a979f513 403152007-10-17 Robert Millan <rmh@aybabtu.com>
40316
40317 * kern/i386/loader.S: New file.
40318
40319 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40320 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40321 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40322 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40323 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40324 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40325 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40326 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40327 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40328 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40329 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40330 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40331 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40332 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40333
40334 * kern/i386/realmode.S: New file.
40335
40336 * kern/i386/pc/startup.S (protstack): Moved from here ...
40337 * kern/i386/realmode.S (protstack)... to here.
40338 * kern/i386/pc/startup.S (gdt): Moved from here ...
40339 * kern/i386/realmode.S (gdt)... to here.
40340 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40341 * kern/i386/realmode.S (prot_to_real)... to here.
40342
40343 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40344 `kern/i386/realmode.S'.
40345
825fc8fd 403462007-10-17 Robert Millan <rmh@aybabtu.com>
40347
40348 * include/grub/i386/loader.h: New file.
40349
40350 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40351 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40352 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40353 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40354 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40355 * include/grub/i386/loader.h (grub_linux_prot_size)
40356 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40357 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40358 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40359 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40360
40361 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40362
e179b2f4 403632007-10-15 Robert Millan <rmh@aybabtu.com>
40364
40365 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40366 filesystem when dev->disk is unset.
40367 Do probe for filesystem even when dev->disk->has_partitions is set.
40368 In case a filesystem is found, always report it.
40369 In case it isn't, if dev->disk->has_partitions is set, report that
40370 a partition table was found instead of reporting that no filesystem
40371 could be identified.
40372
5db82af6 403732007-10-12 Robert Millan <rmh@aybabtu.com>
40374
40375 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40376 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40377
68f6ac74 40378 * include/grub/types.h (grub_host_to_target16): New macro.
40379 (grub_host_to_target32): Likewise.
40380 (grub_host_to_target64): Likewise.
40381 (grub_target_to_host16): Likewise.
40382 (grub_target_to_host32): Likewise.
40383 (grub_target_to_host64): Likewise.
5db82af6 40384
40385 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40386 Renamed from to ...
40387 (GRUB_MOD_ALIGN): ...this. Update all users.
40388
68f6ac74 40389 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40390 grub_host_to_target32.
40391 Replace grub_be_to_cpu32 with grub_target_to_host32.
40392 (load_modules): Likewise.
40393 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40394 Replace grub_be_to_cpu32 with grub_target_to_host32.
40395 Replace grub_cpu_to_be16 with grub_host_to_target16.
40396 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 40397
3cf497cc 403982007-10-12 Robert Millan <rmh@aybabtu.com>
40399
40400 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40401 * util/elf/grub-mkimage.c: ... here.
40402
40403 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40404 `util/powerpc/ieee1275/grub-mkimage.c'.
40405
c8cc3692 404062007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 40407
c8cc3692 40408 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40409 and make it easier to figure out.
40410 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40411 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40412 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40413 leave us with less than HEAP_MIN_SIZE total heap.
40414 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 40415
5c58b791 404162007-10-03 Robert Millan <rmh@aybabtu.com>
40417
40418 * include/grub/i386/io.h: New file.
40419 * commands/i386/pc/play.c (inb): Removed.
40420 (outb): Removed.
40421 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40422 with grub_outb().
afcd2ef8 40423 * term/i386/pc/serial.c (inb): Removed.
40424 (outb): Removed.
40425 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40426 with grub_outb().
40427 * term/i386/pc/vga.c (inb): Removed.
40428 (outb): Removed.
40429 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40430 with grub_outb().
5c58b791 40431
1a477ed6 404322007-10-02 Robert Millan <rmh@aybabtu.com>
40433
40434 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40435 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40436 Reported by Marcin Kurek.
40437
6b5d80fa 404382007-09-07 Robert Millan <rmh@aybabtu.com>
40439
40440 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40441 SmartFirmware version updates (as released by Sven Luther), and avoid
40442 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40443 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40444 known broken.
40445
5618afbf 404462007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40447
40448 From Hitoshi Ozeki:
40449 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40450 when merging two regions.
40451
6139dcd9 404522007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40453
508e39ee 40454 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40455 * normal/completion.c (grub_normal_do_completion): Likewise.
40456 Reported by Hitoshi Ozeki.
40457
404582007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40459
6139dcd9 40460 Do not use devices at boot in chainloading.
f19dbdb7 40461
6139dcd9 40462 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40463 (boot_part_addr): Likewise.
40464 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40465 with BOOT_DRIVE and BOOT_PART_ADDR.
40466 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40467 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40468
38da6516 404692007-08-29 Robert Millan <rmh@aybabtu.com>
40470
40471 Patch from Simon Peter <dn.tlp@gmx.net>:
40472 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40473 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40474 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40475 util/i386/pc/grub-setup.c_DEPENDENCIES.
40476 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40477 util/grub-probe.c_DEPENDENCIES.
40478 * conf/powerpc-ieee1275.rmk: Likewise.
40479
29d0928c 404802007-08-28 Robert Millan <rmh@aybabtu.com>
40481
40482 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40483 to tell grub-mkdevicemap how to name devices.
40484 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40485 feature).
40486
40487 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40488 util/i386/get_disk_name.c.
40489 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40490 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40491 util/ieee1275/get_disk_name.c.
40492
40493 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40494
40495 * DISTLIST: Add util/i386/get_disk_name.c and
40496 util/ieee1275/get_disk_name.c.
40497
40498 * util/grub-mkdevicemap.c: Replace device naming logic with
40499 grub_util_get_disk_name() calls.
40500
5a0d3cca 405012007-08-20 Robert Millan <rmh@aybabtu.com>
40502
40503 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40504 (so that it works for both plural and singular quantities).
40505
8b72db2f 405062007-08-05 Robert Millan <rmh@aybabtu.com>
40507
40508 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40509 so that [xz] isn't taken into account when determining order.
40510
352466bf 405112007-08-02 Marco Gerards <marco@gnu.org>
40512
40513 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40514 `include/multiboot2.h', `include/grub/elfload.h',
40515 `include/multiboot.h', `include/grub/multiboot.h',
40516 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40517 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40518 `kern/elf.c', `loader/multiboot_loader.c',
40519 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40520 `loader/i386/pc/multiboot2.c',
40521 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40522 `util/i386/pc/grub-mkrescue.in'. Remove
40523 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40524 `include/grub/i386/pc/util/biosdisk.h' and
40525 `include/grub/powerpc/ieee1275/multiboot.h'.
40526
8f096014 405272007-08-02 Bean <bean123ch@gmail.com>
40528
40529 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40530 (ntfs_mod_SOURCES): New variable.
40531 (ntfs_mod_CFLAGS): Likewise.
40532 (ntfs_mod_LDFLAGS): Likewise.
40533
40534 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40535 (grub_probe_SOURCES): Likewise.
40536 (grub_emu_SOURCES): Likewise.
40537
40538 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40539 (grub_emu_SOURCES): Likewise.
40540
40541 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40542 (grub_emu_SOURCES): Likewise.
f19dbdb7 40543
8f096014 40544 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40545
40546 * fs/ntfs.c: New file.
40547
9959f7db 405482007-08-02 Bean <bean123ch@gmail.com>
40549
40550 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40551
40552 * file.h (grub_file): Likewise.
40553
40554 * fshelp.h (grub_fshelp_read_file): Likewise.
40555
40556 * util/i386/pc/grub-setup.c (setup): Likewise.
40557 (save_first_sector): Likewise.
40558 (save_blocklists): Likewise.
f19dbdb7 40559
9959f7db 40560 * fs/affs.c (grub_affs_read_file): Likewise.
40561
40562 * fs/ext2.c (grub_ext2_read_file): Likewise.
40563
40564 * fs/fat.c (grub_fat_read_data): Likewise.
40565
40566 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40567
40568 * fs/hfs.c (grub_hfs_read_file): Likewise.
40569
40570 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40571
40572 * fs/jfs.c (grub_jfs_read_file): Likewise.
40573
40574 * fs/minix.c (grub_minix_read_file): Likewise.
40575
40576 * fs/sfs.c (grub_sfs_read_file): Likewise.
40577
40578 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 40579
9959f7db 40580 * fs/xfs.c (grub_xfs_read_file): Likewise.
40581
40582 * command/blocklist.c (read_blocklist): Likewise.
40583 (print_blocklist): Likewise.
40584
0a203f83 405852007-08-02 Marco Gerards <marco@gnu.org>
40586
40587 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40588 `util/hostfs.c'.
40589
40590 * disk/host.c: New file.
40591
40592 * util/hostfs.c: Likewise.
40593
40594 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40595 return `GRUB_ERR_BAD_FS'.
40596 * fs/sfs.c (grub_sfs_mount): Likewise.
40597 * fs/xfs.c (grub_xfs_mount): Likewise.
40598
40599 * include/grub/disk.h (enum grub_disk_dev_id): Add
40600 `GRUB_DISK_DEVICE_HOST_ID'.
40601
40602 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40603
e5dfe777 406042007-07-24 Jerone Young <jerone@gmail.com>
40605
f19dbdb7 40606 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 40607 modules for compilation.
40608 * conf/powerpc-ieee1275.rmk: Likewise.
40609
40610 * include/multiboot.h: Move multiboot definitions to one file. Rename
40611 many definitions to not get grub specific.
40612 * include/multiboot2.h: Create header with multiboot 2 definitions.
40613 * include/grub/multiboot.h: Header for grub specific function
40614 prototypes and definitions.
40615 * include/grub/multiboot2.h: Likewise.
40616 * include/grub/multiboot_loader.h: Likewise.
40617 * include/grub/i386/pc/multiboot.h: Removed.
40618 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40619
40620 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40621 and 2 to allow for one multiboot and module commands.
40622 * loader/multiboot2.c: Add multiboot2 functionality.
40623 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40624 and definition names.
40625 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40626 2 functions.
40627 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40628 ieee1275 specific multiboot2 code.
40629
40630 * kern/i386/pc/startup.S: Change headers and definition names for
40631 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40632
daf0f0ba 406332007-07-22 Robert Millan <rmh@aybabtu.com>
40634
40635 * geninitheader.sh: Process file specified in first parameter rather
40636 than hardcoding grub_modules_init.lst.
fe6b695a 40637 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 40638 than hardcoding grub_modules_init.h.
40639
40640 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40641 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40642 grub_probe_init.[ch] and grub_setup_init.[ch].
40643
40644 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40645 grub_modules_init.h with grub_emu_init.h.
40646 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40647 grub_probe_init.[ch] files.
40648 * conf/i386-efi.rmk: Likewise.
40649 * conf/i386-pc.rmk: Likewise.
40650 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40651 grub_setup_init.[ch] files.
40652
40653 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40654 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40655 to initialize modules rather than a list of hardcoded functions.
40656 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40657 grub_init_all() to initialize modules rather than a list of hardcoded
40658 functions.
40659
54cdc1cc 406602007-07-22 Robert Millan <rmh@aybabtu.com>
40661
40662 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40663 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40664
ad0686cc 406652007-07-22 Robert Millan <rmh@aybabtu.com>
40666
40667 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40668 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40669 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40670 flag when running on SmartFirmware.
40671 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40672 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40673 was set.
40674
40675 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40676 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40677 rather than decreasing it.
40678
40679 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40680 there's not enough space to do it, fail in the same way as when it
40681 can't be done because there are no partitions.
40682
40683 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40684 when nvsetenv failed.
40685
969c02ec 406862007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40687
40688 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40689 because this rule is automatically generated.
40690 (grub-mkrescue): Removed for the same reason as above.
40691
5a79f472 406922007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40693
40694 Migrate to GNU General Public License Version 3.
f19dbdb7 40695
5a79f472 40696 * COPYING: Replaced with the plain text version of GPLv3.
40697
40698 * config.guess: Updated from gnulib.
40699 * config.sub: Likewise.
40700
40701 * geninit.sh: Output a GPLv3 copyright notice.
40702 * geninitheader.sh: Likewise.
40703 * genmodsrc.sh: Likewise.
40704 * gensymlist.sh.in: Likewise.
40705
40706 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40707 * boot/i386/pc/diskboot.S: Likewise.
40708 * boot/i386/pc/pxeboot.S: Likewise.
40709 * commands/blocklist.c: Likewise.
40710 * commands/boot.c: Likewise.
40711 * commands/cat.c: Likewise.
40712 * commands/cmp.c: Likewise.
40713 * commands/configfile.c: Likewise.
40714 * commands/echo.c: Likewise.
40715 * commands/help.c: Likewise.
40716 * commands/ls.c: Likewise.
40717 * commands/search.c: Likewise.
40718 * commands/terminal.c: Likewise.
40719 * commands/test.c: Likewise.
40720 * commands/videotest.c: Likewise.
40721 * commands/i386/cpuid.c: Likewise.
40722 * commands/i386/pc/halt.c: Likewise.
40723 * commands/i386/pc/play.c: Likewise.
40724 * commands/i386/pc/reboot.c: Likewise.
40725 * commands/i386/pc/vbeinfo.c: Likewise.
40726 * commands/i386/pc/vbetest.c: Likewise.
40727 * commands/ieee1275/halt.c: Likewise.
40728 * commands/ieee1275/reboot.c: Likewise.
40729 * commands/ieee1275/suspend.c: Likewise.
40730 * disk/loopback.c: Likewise.
40731 * disk/lvm.c: Likewise.
40732 * disk/raid.c: Likewise.
40733 * disk/efi/efidisk.c: Likewise.
40734 * disk/i386/pc/biosdisk.c: Likewise.
40735 * disk/ieee1275/ofdisk.c: Likewise.
40736 * font/manager.c: Likewise.
40737 * fs/affs.c: Likewise.
40738 * fs/ext2.c: Likewise.
40739 * fs/fat.c: Likewise.
40740 * fs/fshelp.c: Likewise.
40741 * fs/hfs.c: Likewise.
40742 * fs/hfsplus.c: Likewise.
40743 * fs/iso9660.c: Likewise.
40744 * fs/jfs.c: Likewise.
40745 * fs/minix.c: Likewise.
40746 * fs/sfs.c: Likewise.
40747 * fs/ufs.c: Likewise.
40748 * fs/xfs.c: Likewise.
40749 * hello/hello.c: Likewise.
40750 * include/grub/acorn_filecore.h: Likewise.
40751 * include/grub/arg.h: Likewise.
40752 * include/grub/bitmap.h: Likewise.
40753 * include/grub/boot.h: Likewise.
40754 * include/grub/cache.h: Likewise.
40755 * include/grub/device.h: Likewise.
40756 * include/grub/disk.h: Likewise.
40757 * include/grub/dl.h: Likewise.
40758 * include/grub/elfload.h: Likewise.
40759 * include/grub/env.h: Likewise.
40760 * include/grub/err.h: Likewise.
40761 * include/grub/file.h: Likewise.
40762 * include/grub/font.h: Likewise.
40763 * include/grub/fs.h: Likewise.
40764 * include/grub/fshelp.h: Likewise.
40765 * include/grub/gzio.h: Likewise.
40766 * include/grub/hfs.h: Likewise.
40767 * include/grub/kernel.h: Likewise.
40768 * include/grub/loader.h: Likewise.
40769 * include/grub/lvm.h: Likewise.
40770 * include/grub/misc.h: Likewise.
40771 * include/grub/mm.h: Likewise.
40772 * include/grub/net.h: Likewise.
40773 * include/grub/normal.h: Likewise.
40774 * include/grub/parser.h: Likewise.
40775 * include/grub/partition.h: Likewise.
40776 * include/grub/pc_partition.h: Likewise.
40777 * include/grub/raid.h: Likewise.
40778 * include/grub/rescue.h: Likewise.
40779 * include/grub/script.h: Likewise.
40780 * include/grub/setjmp.h: Likewise.
40781 * include/grub/symbol.h: Likewise.
40782 * include/grub/term.h: Likewise.
40783 * include/grub/terminfo.h: Likewise.
40784 * include/grub/tparm.h: Likewise.
40785 * include/grub/types.h: Likewise.
40786 * include/grub/video.h: Likewise.
40787 * include/grub/efi/api.h: Likewise.
40788 * include/grub/efi/chainloader.h: Likewise.
40789 * include/grub/efi/console.h: Likewise.
40790 * include/grub/efi/console_control.h: Likewise.
40791 * include/grub/efi/disk.h: Likewise.
40792 * include/grub/efi/efi.h: Likewise.
40793 * include/grub/efi/pe32.h: Likewise.
40794 * include/grub/efi/time.h: Likewise.
40795 * include/grub/i386/linux.h: Likewise.
40796 * include/grub/i386/setjmp.h: Likewise.
40797 * include/grub/i386/types.h: Likewise.
40798 * include/grub/i386/efi/kernel.h: Likewise.
40799 * include/grub/i386/efi/loader.h: Likewise.
40800 * include/grub/i386/efi/time.h: Likewise.
40801 * include/grub/i386/pc/biosdisk.h: Likewise.
40802 * include/grub/i386/pc/boot.h: Likewise.
40803 * include/grub/i386/pc/chainloader.h: Likewise.
40804 * include/grub/i386/pc/console.h: Likewise.
40805 * include/grub/i386/pc/init.h: Likewise.
40806 * include/grub/i386/pc/kernel.h: Likewise.
40807 * include/grub/i386/pc/loader.h: Likewise.
40808 * include/grub/i386/pc/memory.h: Likewise.
40809 * include/grub/i386/pc/multiboot.h: Likewise.
40810 * include/grub/i386/pc/serial.h: Likewise.
40811 * include/grub/i386/pc/time.h: Likewise.
40812 * include/grub/i386/pc/vbe.h: Likewise.
40813 * include/grub/i386/pc/vbeblit.h: Likewise.
40814 * include/grub/i386/pc/vbefill.h: Likewise.
40815 * include/grub/i386/pc/vbeutil.h: Likewise.
40816 * include/grub/i386/pc/vga.h: Likewise.
40817 * include/grub/ieee1275/ieee1275.h: Likewise.
40818 * include/grub/ieee1275/ofdisk.h: Likewise.
40819 * include/grub/powerpc/libgcc.h: Likewise.
40820 * include/grub/powerpc/setjmp.h: Likewise.
40821 * include/grub/powerpc/types.h: Likewise.
40822 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40823 * include/grub/powerpc/ieee1275/console.h: Likewise.
40824 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40825 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40826 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40827 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40828 * include/grub/powerpc/ieee1275/time.h: Likewise.
40829 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40830 * include/grub/sparc64/libgcc.h: Likewise.
40831 * include/grub/sparc64/setjmp.h: Likewise.
40832 * include/grub/sparc64/types.h: Likewise.
40833 * include/grub/sparc64/ieee1275/console.h: Likewise.
40834 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40835 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40836 * include/grub/sparc64/ieee1275/time.h: Likewise.
40837 * include/grub/util/biosdisk.h: Likewise.
40838 * include/grub/util/getroot.h: Likewise.
40839 * include/grub/util/lvm.h: Likewise.
40840 * include/grub/util/misc.h: Likewise.
40841 * include/grub/util/raid.h: Likewise.
40842 * include/grub/util/resolve.h: Likewise.
40843 * io/gzio.c: Likewise.
40844 * kern/device.c: Likewise.
40845 * kern/disk.c: Likewise.
40846 * kern/dl.c: Likewise.
40847 * kern/elf.c: Likewise.
40848 * kern/env.c: Likewise.
40849 * kern/err.c: Likewise.
40850 * kern/file.c: Likewise.
40851 * kern/fs.c: Likewise.
40852 * kern/loader.c: Likewise.
40853 * kern/main.c: Likewise.
40854 * kern/misc.c: Likewise.
40855 * kern/mm.c: Likewise.
40856 * kern/parser.c: Likewise.
40857 * kern/partition.c: Likewise.
40858 * kern/rescue.c: Likewise.
40859 * kern/term.c: Likewise.
40860 * kern/efi/efi.c: Likewise.
40861 * kern/efi/init.c: Likewise.
40862 * kern/efi/mm.c: Likewise.
40863 * kern/i386/dl.c: Likewise.
40864 * kern/i386/efi/init.c: Likewise.
40865 * kern/i386/efi/startup.S: Likewise.
40866 * kern/i386/pc/init.c: Likewise.
40867 * kern/i386/pc/lzo1x.S: Likewise.
40868 * kern/i386/pc/startup.S: Likewise.
40869 * kern/ieee1275/ieee1275.c: Likewise.
40870 * kern/powerpc/cache.S: Likewise.
40871 * kern/powerpc/dl.c: Likewise.
40872 * kern/powerpc/ieee1275/cmain.c: Likewise.
40873 * kern/powerpc/ieee1275/crt0.S: Likewise.
40874 * kern/powerpc/ieee1275/init.c: Likewise.
40875 * kern/powerpc/ieee1275/openfw.c: Likewise.
40876 * kern/sparc64/cache.S: Likewise.
40877 * kern/sparc64/dl.c: Likewise.
40878 * kern/sparc64/ieee1275/init.c: Likewise.
40879 * kern/sparc64/ieee1275/openfw.c: Likewise.
40880 * loader/efi/chainloader.c: Likewise.
40881 * loader/efi/chainloader_normal.c: Likewise.
40882 * loader/i386/efi/linux.c: Likewise.
40883 * loader/i386/efi/linux_normal.c: Likewise.
40884 * loader/i386/pc/chainloader.c: Likewise.
40885 * loader/i386/pc/chainloader_normal.c: Likewise.
40886 * loader/i386/pc/linux.c: Likewise.
40887 * loader/i386/pc/linux_normal.c: Likewise.
40888 * loader/i386/pc/multiboot.c: Likewise.
40889 * loader/i386/pc/multiboot_normal.c: Likewise.
40890 * loader/powerpc/ieee1275/linux.c: Likewise.
40891 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40892 * normal/arg.c: Likewise.
40893 * normal/cmdline.c: Likewise.
40894 * normal/command.c: Likewise.
40895 * normal/completion.c: Likewise.
40896 * normal/execute.c: Likewise.
40897 * normal/function.c: Likewise.
40898 * normal/lexer.c: Likewise.
40899 * normal/main.c: Likewise.
40900 * normal/menu.c: Likewise.
40901 * normal/menu_entry.c: Likewise.
40902 * normal/misc.c: Likewise.
40903 * normal/parser.y: Likewise.
40904 * normal/script.c: Likewise.
40905 * normal/i386/setjmp.S: Likewise.
40906 * normal/powerpc/setjmp.S: Likewise.
40907 * normal/sparc64/setjmp.S: Likewise.
40908 * partmap/acorn.c: Likewise.
40909 * partmap/amiga.c: Likewise.
40910 * partmap/apple.c: Likewise.
40911 * partmap/gpt.c: Likewise.
40912 * partmap/pc.c: Likewise.
40913 * partmap/sun.c: Likewise.
40914 * term/gfxterm.c: Likewise.
40915 * term/terminfo.c: Likewise.
40916 * term/efi/console.c: Likewise.
40917 * term/i386/pc/console.c: Likewise.
40918 * term/i386/pc/serial.c: Likewise.
40919 * term/i386/pc/vesafb.c: Likewise.
40920 * term/i386/pc/vga.c: Likewise.
40921 * term/ieee1275/ofconsole.c: Likewise.
40922 * util/biosdisk.c: Likewise.
40923 * util/console.c: Likewise.
40924 * util/genmoddep.c: Likewise.
40925 * util/getroot.c: Likewise.
40926 * util/grub-emu.c: Likewise.
40927 * util/grub-mkdevicemap.c: Likewise.
40928 * util/grub-probe.c: Likewise.
40929 * util/lvm.c: Likewise.
40930 * util/misc.c: Likewise.
40931 * util/raid.c: Likewise.
40932 * util/resolve.c: Likewise.
40933 * util/update-grub.in: Likewise.
40934 * util/update-grub_lib.in: Likewise.
40935 * util/grub.d/00_header.in: Likewise.
40936 * util/grub.d/10_hurd.in: Likewise.
40937 * util/grub.d/10_linux.in: Likewise.
40938 * util/i386/efi/grub-install.in: Likewise.
40939 * util/i386/efi/grub-mkimage.c: Likewise.
40940 * util/i386/pc/grub-install.in: Likewise.
40941 * util/i386/pc/grub-mkimage.c: Likewise.
40942 * util/i386/pc/grub-mkrescue.in: Likewise.
40943 * util/i386/pc/grub-setup.c: Likewise.
40944 * util/i386/pc/misc.c: Likewise.
40945 * util/powerpc/ieee1275/grub-install.in: Likewise.
40946 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40947 * util/powerpc/ieee1275/misc.c: Likewise.
40948 * video/bitmap.c: Likewise.
40949 * video/video.c: Likewise.
40950 * video/i386/pc/vbe.c: Likewise.
40951 * video/i386/pc/vbeblit.c: Likewise.
40952 * video/i386/pc/vbefill.c: Likewise.
40953 * video/i386/pc/vbeutil.c: Likewise.
40954 * video/readers/tga.c: Likewise.
40955
3572d015 409562007-07-02 Robert Millan <rmh@aybabtu.com>
40957
40958 * conf/i386-efi.rmk: Replace obsolete reference to
40959 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40960 with util/getroot.c.
40961 * conf/powerpc-ieee1275.rmk: Likewise.
40962 * conf/sparc64-ieee1275.rmk: Likewise.
40963
40964 * util/grub-emu.c (main): Fix unchecked pointer handling.
40965
2c2a681b 409662007-07-02 Robert Millan <rmh@aybabtu.com>
40967
40968 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40969 invocation to fail, in order to support partition-less media.
40970
40971 * util/i386/pc/grub-install.in: Likewise.
40972
40973 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40974 which fs or partmap modules are needed (akin to its sister scripts).
40975
40976 Also use grub-probe to get rid of unportable /proc/mounts check.
40977
40978 Print the same informational message that the other scripts do, before
fe6b695a 40979 exiting.
2c2a681b 40980
6193defe 409812007-06-23 Robert Millan <rmh@aybabtu.com>
40982
fe6b695a 40983 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 40984 a font file can be found and, if so, echo the GRUB path to it.
40985
40986 * util/update-grub.in: Handle multiple terminals depending on user
40987 input, platform availability and font file presence. Propagate
40988 variables of our findings to /etc/grub.d/ children.
40989
40990 * util/grub.d/00_header.in: Handle multiple terminals, based on
40991 environment setup by update-grub.
40992
eface1dc 409932007-06-23 Robert Millan <rmh@aybabtu.com>
40994
ba50d28f 40995 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 40996
bf697e28 409972007-06-21 Robert Millan <rmh@aybabtu.com>
40998
40999 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41000 indicate end of data section in kernel image.
41001 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41002 GRUB_KERNEL_MACHINE_DATA_END.
41003
41004 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41005 space for it.
41006 * kern/i386/efi/startup.S: Likewise.
41007
41008 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41009 during image generation. Implement --prefix option to override this
41010 patch.
41011 * util/i386/efi/grub-mkimage.c: Likewise.
41012
41013 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41014 code to make path relative to its root into a separate function.
41015
41016 * util/i386/pc/grub-install.in: Use newly provided
41017 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41018 pass the result to grub-install --prefix.
41019
baa574b4 410202007-06-13 Robert Millan <rmh@aybabtu.com>
41021
41022 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41023 DEFAULT_DEVICE_MAP.
41024 * util/grub-emu.c: Use above definitions from misc.h instead of
41025 defining them.
41026 * util/grub-mkdevicemap.c: Likewise.
41027 * util/i386/pc/grub-setup.c: Likewise.
41028 * util/grub-probe.c: Likewise.
41029 (probe): Abort with grub_util_error() when either
41030 grub_guess_root_device or grub_util_get_grub_dev fails.
41031
0215dcbf 410322007-06-12 Robert Millan <rmh@aybabtu.com>
41033
41034 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41035 "pager" assignment.
41036 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41037 "pcdata".
41038 * util/grub-probe.c (probe): Likewise for "drive_name".
41039
8af2ab7b 410402007-06-11 Robert Millan <rmh@aybabtu.com>
41041
41042 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41043 not just the cdrom one.
41044
59d31694 410452007-06-11 Robert Millan <rmh@aybabtu.com>
41046
41047 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41048 Add --pkglibdir=DIR option to override pkglibdir.
41049 Mention --image-type=TYPE in help output.
41050 Fix --grub-mkimage (it was a no-op).
fe6b695a 41051 Abort gracefully when no parameter is given.
59d31694 41052
7ee367e4 410532007-06-11 Robert Millan <rmh@aybabtu.com>
41054
41055 * util/i386/pc/grub-mkrescue.in: New file.
41056 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41057 * Makefile.in: Handle bin_SCRIPTS.
41058
29b0ed46 410592007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41060
41061 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41062 list of video modes.
41063
c0f90770 410642007-06-06 Robert Millan <rmh@aybabtu.com>
41065
41066 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41067 file doesn't exist, or if it is in a filesystem grub can't read.
41068
41069 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41070 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41071 header comment to fit in 80 columns when the variables are resolved.
41072
41073 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41074 could be identified by update-grub. Remove redundant check for
fe6b695a 41075 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 41076 handles that).
41077
fb36dc26 410782007-06-04 Robert Millan <rmh@aybabtu.com>
41079
41080 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41081
41082 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41083
41084 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41085
0c68c93e 410862007-06-04 Robert Millan <rmh@aybabtu.com>
41087
41088 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41089
41090 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41091 grub_apple_partition_map_fini.
41092
41093 * util/biosdisk.c
41094 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41095 to access >2 TiB disks).
41096
41097 Print disk->total_sectors with %llu instead of %lu, since this
41098 variable is always 64-bit (prevents wrong disk size from being displayed
41099 on either >2 TiB disk or big-endian CPU).
41100
41101 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41102 into a generic case that supports all (sane) partition maps.
41103
41104 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41105 breaks big-endian.
41106
41107 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41108 and grub_apple_partition_map_fini() after that.
41109
0f23eb74 411102007-06-01 Robert Millan <rmh@aybabtu.com>
41111
41112 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41113
41114 * util/grub.d/00_header.in: Only enable gfxterm when
41115 convert_system_path_to_grub_path() succeeds.
41116
42c71976 411172007-05-20 Robert Millan <rmh@aybabtu.com>
41118
41119 * util/update-grub_lib.in: New file.
41120 * DISTLIST: Add update-grub_lib.in.
41121 * conf/common.rmk: Generate update-grub_lib and install it in
41122 $(lib_DATA).
41123 * Makefile.in: Add install routine for $(lib_DATA).
41124
41125 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41126 function provided by update-grub_lib to support arbitrary paths of
41127 unifont.pff.
41128 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41129 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41130
5beb2291 411312007-05-19 Robert Millan <rmh@aybabtu.com>
41132
41133 * commands/i386/cpuid.c: New module.
41134 * DISTLIST: Add it.
41135 * conf/i386-efi.rmk: Enable cpuid.mod.
41136 * conf/i386-pc.rmk: Likewise.
41137
7262eca1 411382007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41139
41140 * kern/disk.c (grub_disk_read): Check return value of
41141 grub_realloc().
41142
260ba823 411432007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41144
41145 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41146 arrays.
41147 * disk/raid.c (grub_raid_open): Likewise.
41148
1ecb6cf2 411492007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41150
41151 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41152 stack instead of on the heap.
41153
41154 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41155 before doing a read on it.
41156
41157 * configure.ac: Only use -fno-stack-protector for the target
41158 environment.
f19dbdb7 41159
21c8cbb1 411602007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41161
41162 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41163 __attribute_ ((unused)) to mode_type argument.
41164
41165 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 41166
21c8cbb1 41167 * kern/misc.c (memcmp): Fix prototype.
41168
41169 * include/grub/partition.h [GRUB_UTIL]
41170 (grub_gpt_partition_map_init): Add prototype.
41171 (grub_gpt_partition_map_fini): Likewise.
41172
41173 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41174 at the right place.
41175
41176 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41177 (grub_fat_read_data): Likewise.
41178 (grub_fat_find_dir): Likewise.
41179
41180 * font/manager.c (find_glyph): Make table a const.
41181 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 41182
849d55d3 411832007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41184
41185 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41186 code, first search for device in /dev/mapper, then in /dev.
41187 (grub_util_get_grub_dev): New function.
41188 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41189 prototype.
41190 * util/grub-probe.c (probe): Remove check for RAID, call
41191 grub_util_get_grub_dev() instead of
41192 grub_util_biosdisk_get_grub_dev().
41193 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41194 grub_util_biosdisk_get_grub_dev().
41195 * util/i386/pc/grub-setup.c (main): Likewise.
41196
8fff7c2f 411972007-05-16 Robert Millan <rmh@aybabtu.com>
41198
41199 * DISTLIST: Update for the latest changes.
41200 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41201 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41202 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41203 grub/util/biosdisk.h.
41204 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41205 grub/util/biosdisk.h.
41206
48e12b52 412072007-05-16 Robert Millan <rmh@aybabtu.com>
41208
41209 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41210
46b9d128 412112007-05-16 Robert Millan <rmh@aybabtu.com>
41212
41213 * util/i386/efi/grub-install.in: New.
41214 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41215 newly added grub-install.
41216 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41217 include.
41218 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41219 grub/util/biosdisk.h.
41220 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41221 grub/util/biosdisk.h.
41222
2d1a40a9 412232007-05-16 Robert Millan <rmh@aybabtu.com>
41224
41225 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41226 * include/grub/util/biosdisk.h: ... here.
41227 * util/i386/pc/biosdisk.c: Moved to ...
41228 * util/biosdisk.c: ... here.
41229 * util/i386/pc/getroot.c: Moved to ...
41230 * util/getroot.c: ... here.
41231 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41232 * util/grub-mkdevicemap.c: ... here.
41233 * util/i386/pc/grub-probe.c: Moved to ...
41234 * util/grub-probe.c: ... here.
41235
9e26e3bc 412362007-05-15 Robert Millan <rmh@aybabtu.com>
41237
41238 * util/update-grub.in: Remove duplicated line in grub.cfg header
41239 message.
41240
57f96397 412412007-05-13 Robert Millan <rmh@aybabtu.com>
41242
41243 * util/update-grub.in: Fix a few assumptions about the devices holding
41244 /, /boot and /boot/grub being the same.
41245 * util/grub.d/00_header.in: Likewise.
41246 * util/grub.d/10_hurd.in: Likewise.
41247 * util/grub.d/10_linux.in: Likewise.
41248
41249 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41250 patterns. Use that to define the `.old' suffix as older than `'.
41251
41252 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41253
41254 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41255 the grub.cfg header message.
41256
2e610d62 412572007-05-11 Robert Millan <rmh@aybabtu.com>
41258
41259 * util/update-grub.in: Create device.map if it doesn't already exist,
41260 before attempting to run grub-probe.
41261 Check for grub-probe and grub-mkdevicemap with the same code
41262 grub-install is using.
41263 Remove test mode.
41264
3f6a10ef 412652007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41266
41267 * Makefile.in: Add the datarootdir autoconf variable.
41268
02e7b75e 412692007-05-09 Robert Millan <rmh@aybabtu.com>
41270
41271 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 41272 fail gracefully if dev->disk->partition == NULL.
02e7b75e 41273
75f396cc 412742007-05-07 Robert Millan <rmh@aybabtu.com>
41275
41276 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41277 determine partition map module.
41278 * util/i386/pc/grub-install.in: Use this feature to decide which
41279 partition module to load, instead of hardcoding pc and gpt.
41280
da65cb36 412812007-05-07 Robert Millan <rmh@aybabtu.com>
41282
41283 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41284 source directory differs from build directory.
41285
b57d6a91 412862007-05-05 Robert Millan <rmh@aybabtu.com>
41287
41288 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41289 initialisation.
41290
509d00f1 412912007-05-05 Robert Millan <rmh@aybabtu.com>
41292
41293 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41294
c48f23ef 412952007-05-05 Robert Millan <rmh@aybabtu.com>
41296
41297 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41298 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41299
20b97658 413002007-05-05 Robert Millan <rmh@aybabtu.com>
41301
41302 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41303 (grub_probe_SOURCES): Likewise.
41304 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41305 GPT and initialize dos_part and bsd_part accordingly.
41306 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41307 install_bsd_part.
41308 (main): Activate gpt module for use during partition identification,
41309 and deactivate it afterwards.
41310 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41311 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41312 partition identification, and deactivate it afterwards.
41313
99123174 413142007-05-05 Robert Millan <rmh@aybabtu.com>
41315
41316 * term/i386/pc/console.c (grub_console_fini): Call
41317 grub_term_set_current() before grub_term_unregister().
41318
ebd97f6e 413192007-05-04 Robert Millan <rmh@aybabtu.com>
41320
41321 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41322 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41323 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41324 and update-grub_DATA.
41325 * conf/common.rmk: Build and install update-grub components.
41326 * conf/common.mk: Regenerate.
41327 * util/update-grub.in: New. Core of update-grub.
41328 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41329 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41330 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41331 * util/grub.d/README: New. Document grub.d directory layout.
41332
b06a264d 413332007-05-01 Robert Millan <rmh@aybabtu.com>
41334
41335 * util/grub-emu.c: Move initialization functions
41336 grub_util_biosdisk_init() and grub_init_all() before
41337 grub_util_biosdisk_get_grub_dev(), which relies on them.
41338
41f0050e 413392007-04-19 Robert Millan <rmh@aybabtu.com>
41340
41341 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41342 it is used later.
41343
04582bb3 413442007-04-18 Jerone Young <jerone@gmail.com>
41345
f19dbdb7 41346 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 41347 stanza.
41348
08db4632 413492007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 41350
08db4632 41351 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41352 continue on and look for device node with real device name.
41353
801b76be 413542007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 41355
fe6b695a 41356 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 41357 ability.
41358 * Makefile.in: Add autoconf package transformation code.
41359 * util/i386/pc/grub-install.in: Likewise.
41360 * util/powerpc/ieee1275/grub-install.in: Likewise.
41361
6795c4e1 413622007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41363
41364 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41365 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41366 (EXT2_REVISION): Likewise.
41367 (EXT2_INODE_SIZE): Likewise.
41368 (struct grub_ext2_block_group): Added a missing member
41369 "used_dirs".
41370 (grub_ext2_read_inode): Divide by the inode size in a superblock
41371 instead of 128 to obtain INODES_PER_BLOCK.
41372 Use the macro EXT2_INODE_SIZE instead of directly using
41373 SBLOCK->INODE_SIZE.
41374
d70af616 413752007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41376
41377 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41378 superblock instead of the structure size to compute an
41379 offset. This fixes the problem that GRUB could not read a
41380 filesystem when inode size is different from 128-byte.
41381
3b801603 413822007-03-05 Marco Gerards <marco@gnu.org>
41383
41384 * normal/main.c (read_config_file): When "menu" is not set, create
41385 an initial context.
41386
4785bfe4 413872007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41388
41389 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41390 (HEAP_LIMIT): New macro.
41391 (grub_claim_heap): Claim memory up to `heaplimit'.
41392
a0cbb023 413932007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41394
41395 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41396 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41397 (_start): Likewise.
41398 (grub_arch_modules_addr): Return address after `_end'.
41399 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41400 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41401 (add_segments): Calculate `_end' from phdr size and location.
41402 (ALIGN_UP): Moved to ...
41403 * include/grub/misc.h: here.
41404 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41405 New macro.
41406 (GRUB_IEEE1275_MODULE_BASE): Removed.
41407
fd7d8eba 414082007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41409
41410 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41411 loop boundary.
41412
9b09e6fc 414132007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41414
41415 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41416 All users updated.
41417 (grub_elf64_load_hook_t): Likewise.
41418 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41419 debug output.
41420
3ce27299 414212007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41422
41423 * kern/mm.c: Update copyright.
41424 (grub_mm_debug): Correct syntax error.
41425 (grub_mm_dump_free): New function.
41426 (grub_debug_free): Call `grub_free'.
41427 * include/grub/mm.h: Update copyright.
41428 (grub_mm_dump_free): Add declaration.
41429
077d5fee 414302007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41431
41432 * include/grub/ieee1275/ieee1275.h: Update copyright.
41433 * kern/powerpc/ieee1275/init.c: Likewise.
41434 * kern/powerpc/ieee1275/openfw.c: Likewise.
41435
41436 * loader/powerpc/ieee1275/linux.c: Likewise.
41437 * include/grub/elfload.h: Likewise.
41438 * kern/elf.c: Likewise.
41439 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41440 callers.
41441 (grub_elf64_load): Likewise.
41442 (grub_elf32_load_segment): Move to a nested function.
41443 (grub_elf64_load_segment): Likewise.
41444
dc946850 414452007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41446
41447 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41448 prototype.
41449 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41450 (grub_heap_len): Likewise.
41451 (HEAP_SIZE): New macro.
41452 (grub_claim_heap): New function.
41453 (grub_machine_init): Don't claim heap directly. Call
41454 `grub_claim_heap'.
41455 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41456 (grub_available_iterate): New function.
41457
baa2a121 414582007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41459
41460 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41461 * configure.ac: Use it for testing the HOST and TARGET compilers.
41462
4fe9862e 414632006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41464
41465 * Makefile.in (enable_grub_emu): New variable.
41466 * configure.ac (--enable-grub-emu): New option.
41467 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41468 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41469 * conf/i386-pc.rmk: Likewise.
41470 * conf/powerpc-ieee1275.rmk: Likewise.
41471 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41472
a8aa5762 414732006-12-12 Marco Gerards <marco@gnu.org>
41474
41475 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41476
41477 * kern/env.c (grub_env_unset): Don't free the member `value' when
41478 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41479 pointer.
41480
41481 * normal/main.c (current_menu): Removed.
41482 (free_menu): Unset the `menu' environment variable.
41483 (grub_normal_menu_addentry): Make use of the environment variable
41484 `menu', instead of using the global `current_menu'. Allocate
41485 memory for the sourcecode of this entry.
41486 (read_config_file): New argument `nested', changed all callers.
41487 Only in the case of a new context, initialize a new menu. Set the
41488 `menu' environment variable.
41489 (grub_normal_execute): Don't set and unset the environment
41490 variable `menu' here anymore. Only free the menu when leaving the
41491 context.
41492
41493 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41494 leak.
41495
957b3a3e 414962006-12-11 Marco Gerards <marco@gnu.org>
41497
41498 * normal/menu_entry.c (run): Fix off by one bug so the last line
41499 is executed. Move the loader check to outside the loop.
41500
ef875714 415012006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41502
41503 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41504
4e739985 415052006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41506
41507 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41508 the number of sectors. Reported by Andrey Shuvikov
41509 <mr_hyro@yahoo.com>.
f19dbdb7 41510
790707f2 415112006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41512
41513 * kern/disk.c (grub_disk_read): When there is a read error, always
41514 try to read only the necessary data.
f19dbdb7 41515
790707f2 41516 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41517 disk/raid.c.
41518 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41519 prototype.
41520 [GRUB_UTIL] (grub_raid_fini): Likewise.
41521 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 41522 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 41523 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41524 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41525 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41526 and grub_raid_fini().
f19dbdb7 41527
03e58196 415282006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41529
41530 * include/grub/types.h (__unused): Rename to UNUSED.
41531 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41532 (grub_elf64_size): Likewise.
f19dbdb7 41533
ae4f23bf 415342006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41535
41536 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41537 grub_error_push and grub_error_pop in the error-handling path.
41538 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41539 length.
41540
2166cc83 415412006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41542
41543 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41544 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41546 (kernel_elf_SOURCES): Likewise.
41547 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41548 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41549 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41550 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41551 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41552 (elf_mod_SOURCES): New variable.
41553 (elf_mod_CFLAGS): Likewise.
41554 (elf_mod_LDFLAGS): Likewise.
41555 * include/grub/types.h (__unused): New macro.
41556 * include/grub/elfload.h: New file.
41557 * kern/elf.c: Likewise.
41558 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41559 (ELF32_LOADMASK): New macro.
41560 (ELF64_LOADMASK): Likewise.
41561 (vmlinux): Removed.
41562 (grub_linux_load32): New function.
41563 (grub_linux_load64): Likewise.
41564 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41565 Use grub_elf_t instead of grub_file_t.
41566
a09d5aa5 415672006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41568
41569 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41570 `catch_result' to struct set_color_args.
41571
d976fc51 415722006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41573
41574 * normal/menu.c: Include grub/script.h.
41575 * normal/menu_entry.c: Likewise.
41576 * include/grub/normal.h: Do not include grub/script.h.
41577
67507549 415782006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41579
41580 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41581
69203a99 415822006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41583
41584 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41585 disk.
41586 (grub_disk_close): Print debug messages when closing a disk.
41587 (grub_disk_read): Print debug messages when disk read fails.
41588 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41589 filesystem type.
41590 * kern/partition.c: Include misc.h.
41591 (grub_partition_iterate): Print debug messages when detecting
41592 partition type.
41593
e2b8278c 415942006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41595
41596 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41597 is negative.
41598 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41599
97b2f2ff 416002006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41601
41602 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41603 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41604
6555d655 416052006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41606
41607 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41608 instead of sizeof(lv). Patch by Michael Guntsche.
41609
4d42b77f 416102006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41611
41612 * disk/lvm.c: Rename VGS to VG_LIST.
41613 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41614 (grub_lvm_open): Likewise.
41615 Thanks to Michael Guntsche for finding this bug.
41616
5d74d927 416172006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41618
41619 * configure.ac (AC_INIT): Bumped to 1.95.
41620
a1bb27e4 416212006-10-14 Robert Millan <rmh@aybabtu.com>
41622
41623 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41624 with "/dev/.static/dev/md".
41625
e0994b8b 416262006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41627
41628 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41629 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41630 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41631 DRIVE_NAME are always freed.
41632
41633 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41634 DOS_PART, as a DOS partition is counted from one instead of zero
41635 now. Reported by Robert Millan.
41636
ddd5cee9 416372006-10-14 Robert Millan <rmh@aybabtu.com>
41638
41639 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41640 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41641 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41642 string returned by grub_guess_root_device.
41643 * util/i386/pc/grub-setup.c: Likewise.
41644 * util/i386/pc/grub-probefs.c: Likewise.
41645
41646 * util/i386/pc/grub-probefs.c: Rename to ...
41647 * util/i386/pc/grub-probe.c: ... this.
41648 * DISTLIST: Remove grub-probefs, add grub-probe.
41649 * conf/i386-efi.rmk: Likewise.
41650 * conf/i386-pc.rmk: Likewise.
41651 * util/i386/pc/grub-install.in: Likewise.
41652
41653 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41654 choose which information we want to print.
41655
2b002173 416562006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41657
41658 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41659 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41660 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41661 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41662 video/readers/tga.c and video/i386/pc/vbeutil.c.
41663
416642006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41665
41666 Added support for RAID and LVM.
f19dbdb7 41667
2b002173 41668 * disk/lvm.c: New file.
41669 * disk/raid.c: Likewise.
41670 * include/grub/lvm.h: Likewise.
f19dbdb7 41671 * include/grub/raid.h: Likewise.
2b002173 41672 * include/grub/util/lvm.h: Likewise.
41673 * include/grub/util/raid.h: Likewise.
41674 * util/lvm.c: Likewise.
41675 * util/raid.c: Likewise.
41676
41677 * include/grub/disk.h (grub_disk_dev_id): Add
41678 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41679 (grub_disk_get_size): New prototype.
41680 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41681 returns a partition.
41682 (grub_disk_get_size): New function.
f19dbdb7 41683
2b002173 41684 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41685 verbatim if grub_install_dos_part is -2.
41686
41687 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41688 and LVM devices.
41689
41690 * util/i386/pc/grub-setup.c (setup): New argument
41691 MUST_EMBED. Force embedding of GRUB when the argument is
41692 true. Close FILE before returning.
41693 (main): Add support for RAID and LVM.
f19dbdb7 41694
2b002173 41695 * conf/common.rmk: Add RAID and LVM modules.
41696 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41697 util/lvm.c.
41698 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41699
41700 * kern/misc.c (grub_strstr): New function.
41701 * include/grub/misc.h (grub_strstr): New prototype.
41702
050548d0 417032006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41704
41705 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41706
da849d2d 417072006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41708
41709 * kern/misc.c (grub_strtoull): Guess the base only if not
41710 specified.
41711
97b2f2ff 417122006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 41713
41714 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41715 PowerMac support.
41716
97b2f2ff 417172006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 41718
41719 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41720
41721 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41722 Remove `flags' argument. All callers changed.
41723 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41724 (IEEE1275_IHANDLE_INVALID): New variable.
41725 (IEEE1275_CELL_INVALID): New variable.
41726 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41727 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41728 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41729 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41730 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41731 codes from Open Firmware. All callers updated.
41732 (grub_ieee1275_next_property): Directly return Open Firmware return
41733 code.
41734 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41735 Standardize error checking from `grub_ieee1275_get_property'.
41736 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41737 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41738
97b2f2ff 417392006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 41740
41741 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41742 `instance_to_package_args' to `instance_to_path_args'.
41743
41744 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41745 `grub_ieee1275_chosen'.
41746
41747 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41748 `grub_ieee1275_interpret'.
41749
97b2f2ff 417502006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 41751
41752 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41753
97b2f2ff 417542006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 41755
41756 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41757 (__cmpdi): Likewise.
41758
41759 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41760 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41761 `grub_ssize_t'.
41762
02bb8acc 41763 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 41764
41765 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41766 to type `grub_ssize_t'.
41767 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41768
7f9a8531 417692006-09-22 Marco Gerards <marco@gnu.org>
41770
41771 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41772 newlines.
41773
b5ef1102 417742006-09-22 Marco Gerards <marco@gnu.org>
41775
41776 * commands/echo.c: New file.
41777
41778 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41779
41780 * conf/common.rmk (echo_mod_SOURCES): New variable.
41781 (echo_mod_CFLAGS): Likewise.
41782 (echo_mod_LDFLAGS): Likewise.
41783
2cff3677 417842006-09-22 Marco Gerards <marco@gnu.org>
41785
41786 * normal/main.c (get_line): Malloc memory instead of using
41787 preallocated memory. Removed the arguments `cmdline' and
41788 `max_len'. Updated all callers.
41789
6ba4688b 417902006-09-22 Marco Gerards <marco@gnu.org>
41791
41792 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41793 (normal_mod_DEPENDENCIES): Likewise.
41794
41795 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41796 (normal_mod_DEPENDENCIES): Likewise.
41797
41798 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41799
e02ac02c 418002006-09-22 Johan Rydberg <jrydberg@gnu.org>
41801
41802 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41803 programs.
41804 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41805 (normal_mod_DEPENDENCIES): Likewise.
41806 * conf/i386-pc.mk: Regenerate.
41807 * conf/i386-efi.mk: Likewise
41808 * conf/common.mk: Likewise.
41809 * conf/powerpc-ieee1275.mk: Likewise.
41810 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 41811
8d252e44 418122006-09-22 Robert Millan <rmh@aybabtu.com>
41813
41814 Sync with i386 version.
41815 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41816 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41817
209bf7ac 418182006-09-21 Robert Millan <rmh@aybabtu.com>
41819
41820 Import from GRUB Legacy (lib/device.c):
41821 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41822 (init_device_map) [__linux__]: Add support for I2O devices.
41823
6b146090 418242006-09-14 Marco Gerards <marco@gnu.org>
41825
41826 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41827 `-melf_i386'.
41828
e38600a8 418292006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 41830
41831 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41832 /boot/grub/*.lst.
78fa1790 41833
2952da5d 41834 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 41835
2952da5d 41836 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41837 before adding it to device.map.
41838
01b82a64 418392006-08-15 Johan Rydberg <jrydberg@gnu.org>
41840
fe6b695a 41841 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 41842 compiles a file; using the -MD option.
41843 * conf/common.mk: Regenerate.
41844 * conf/i386-pc.mk: Likewise.
41845 * conf/i386-efi.mk: Likewise.
41846 * conf/powerpc-ieee1275.mk: Likewise.
41847 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 41848
1064790d 418492006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41850
41851 Move the prototypes of grub_setjmp and grub_longjmp to
41852 cpu/setjmp.h, so that each architecture may specify different
41853 attributes.
f19dbdb7 41854
1064790d 41855 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41856 (grub_longjmp): Likewise.
41857 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41858 (grub_longjmp): Likewise.
41859 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41860 (grub_longjmp): Likewise.
41861
41862 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41863 [!GRUB_UTIL] (grub_longjmp): Removed.
41864
29dda3ed 418652006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41866
41867 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41868 "color!" method does not return any value.
41869
ad2a06ed 418702006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41871
41872 * include/grub/bitmap.h: New file.
41873
41874 * include/grub/i386/pc/vbeutil.h: Likewise.
41875
41876 * video/bitmap.c: Likewise.
41877
41878 * video/readers/tga.c: Likewise.
41879
41880 * video/i386/pc/vbeutil.c: Likewise.
41881
41882 * commands/videotest.c: Code cleanup and updated to reflect to new
41883 video API.
41884
41885 * term/gfxterm.c: Likewise.
41886
41887 * video/video.c: Likewise.
41888
41889 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41890 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41891 (bitmap_mod_SOURCES): New entry.
41892 (bitmap_mod_CFLAGS): Likewise.
41893 (bitmap_mod_LDFLAGS): Likewise.
41894 (tga_mod_SOURCES): Likewise.
41895 (tga_mod_CFLAGS): Likewise.
41896 (tga_mod_LDFLAGS): Likewise.
41897
41898 * include/grub/video.h (grub_video_blit_operators): New enum type.
41899 (grub_video_render_target): Changed as forward declaration and moved
41900 actual definition to be video driver specific.
41901 (grub_video_adapter.blit_bitmap): Added blitting operator.
41902 (grub_video_adapter.blit_render_target): Likewise.
41903 (grub_video_blit_bitmap): Likewise.
41904 (grub_video_blit_render_target): Likewise.
41905
41906 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41907 driver specific render target definition.
41908 (grub_video_vbe_map_rgba): Added driver internal helper.
41909 (grub_video_vbe_unmap_color): Updated to use
41910 grub_video_i386_vbeblit_info.
41911 (grub_video_vbe_get_video_ptr): Likewise.
41912
41913 * include/grub/i386/pc/vbeblit.h
41914 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41915 grub_video_i386_vbeblit_info.
41916 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41917 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41918 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41919 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41920 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41921 (grub_video_i386_vbeblit_index_index): Likewise.
41922 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41923 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41924 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41925 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41926 operator.
41927 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41928 operator.
41929
41930 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41931 include/grub/i386/pc/vbeblit.h.
41932
41933 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41934 Updated to use grub_video_i386_vbeblit_info.
41935 (grub_video_i386_vbefill_R8G8B8): Likewise.
41936 (grub_video_i386_vbefill_index): Likewise.
41937 (grub_video_i386_vbefill): Added generic filler.
41938
41939 * video/i386/pc/vbefill.c: Updated to reflect changes on
41940 include/grub/i386/pc/vbefill.h.
41941
41942 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41943 grub_video_i386_vbeblit_info.
41944 (grub_video_vbe_unmap_color): Likewise.
41945 (grub_video_vbe_blit_glyph): Likewise.
41946 (grub_video_vbe_scroll): Likewise.
41947 (grub_video_vbe_draw_pixel): Removed function.
41948 (grub_video_vbe_get_pixel): Likewise.
41949 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41950 updated code to use it.
41951 (common_blitter): Added common blitter for render target and bitmap.
41952 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41953 (grub_video_vbe_blit_render_target): Likewise.
41954
bc8c036d 419552006-07-30 Johan Rydberg <jrydberg@gnu.org>
41956
41957 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41958 is in text mode if there is no console control protocol instance
41959 available.
41960
684a8eff 419612006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41962
41963 * include/grub/video.h: Code cleanup.
41964
41965 * include/grub/i386/pc/vbe.h: Likewise.
41966
41967 * video/i386/pc/vbe.c: Likewise.
41968
41969 * video/i386/pc/vbeblit.c: Likewise.
41970
41971 * video/i386/pc/vbefill.c: Likewise.
41972
41973 * video/video.c: Likewise. Also added more comments.
41974
5915059b 419752006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41976
41977 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41978 (struct grub_biosdisk_dap): Likewise.
41979
41980 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41981 linkage settings for all functions.
41982
90ce5d56 419832006-07-12 Marco Gerards <marco@gnu.org>
41984
41985 * configure.ac (--enable-mm-debug): Fix typo.
41986
41987 * genkernsyms.sh.in: Use proper quoting for `CC'.
41988
43e7f879 419892006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41990
41991 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41992 (normal_mod_ASFLAGS): Remove "-m32".
41993
4889bdec 419942006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41995
41996 * util/misc.c: Include config.h.
41997 [!HAVE_MEMALIGN]: Do not include malloc.h.
41998 (grub_memalign): Use posix_memalign, if present. Then, use
41999 memalign, if present. Otherwise, emit an error.
42000
42001 * util/grub-emu.c: Do not include malloc.h.
42002
42003 * include/grub/util/misc.h: Include unistd.h. This is required for
42004 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42005 D. Eades III <hde@foobar-qux.org>.
42006
42007 * configure.ac (AC_GNU_SOURCE): Added.
42008 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42009 type.
42010
fd39d4da 420112006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42012
42013 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42014 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42015
b786f3b5 420162006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42017
42018 * include/grub/types.h (grub_host_addr_t): Rename to
42019 grub_target_addr_t.
42020 (grub_host_off_t): Rename to grub_target_off_t.
42021 (grub_host_size_t): Rename to grub_target_size_t.
42022 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42023 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42024
42025 * include/grub/kernel.h (struct grub_module_header): Change type
42026 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42027 (grub_module_info): Likewise.
f19dbdb7 42028
051988bb 420292006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42030
42031 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42032 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42033 Velazquez <jesus.velazquez@gmail.com>.
42034
deae281b 420352006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42036
42037 Count partitions from 1 instead of 0 in the string representation
42038 of partitions. Still use 0-based internally.
f19dbdb7 42039
deae281b 42040 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42041 (sun_partition_map_iterate): Use grub_partition_t instead of
42042 struct grub_partition *. Cast DESC->START_CYLINDER to
42043 grub_uint64_t after converting the endian.
42044 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42045 (sun_partition_map_get_name): Add 1 to P->INDEX.
42046
42047 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42048 PCDATA->DOS_PART.
42049 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42050
42051 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42052 zero instead of one.
42053 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42054 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42055
42056 * partmap/apple.c (apple_partition_map_iterate): Change the type
42057 of POS to unsigned.
42058 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42059 (apple_partition_map_get_name): Add 1 into P->INDEX.
42060
42061 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42062 of POS to unsigned.
42063 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42064 calculate the offset of a partition.
42065 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42066 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42067
42068 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42069 SECTOR to grub_disk_addr_t.
42070 (acorn_partition_map_iterate): Likewise.
42071 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42072 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42073 top.
42074 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42075
42076 * kern/i386/pc/init.c (make_install_device): Add 1 into
42077 GRUB_INSTALL_DOS_PART.
42078
42079 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42080 conditional.
42081
524a1e6a 420822006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42083
42084 Clean up the code to support 64-bit addressing in disks and
42085 files. This change is not enough for filesystems yet.
f19dbdb7 42086
524a1e6a 42087 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42088 type of "start" to grub_uint64_t.
42089 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42090 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42091 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42092 convert addresses.
42093
42094 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42095 to grub_disk_addr_t.
42096
42097 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42098 string.
42099
42100 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42101
42102 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42103 to char *.
42104
42105 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42106
42107 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42108
42109 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42110
42111 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42112 to grub_off_t, to detect an error from grub_file_seek.
42113 (grub_multiboot_load_elf32): Likewise.
42114
42115 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42116 maximum unsigned long value when an overflow is detected.
42117 (grub_strtoull): New function.
42118 (grub_divmod64): Likewise.
42119 (grub_lltoa): use grub_divmod64.
42120
42121 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42122 grub_disk_addr_t.
42123 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42124 the pointer to next character. Use grub_strtoull instead of
42125 grub_strtoul.
42126 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42127 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42128 respectively.
42129
fe6b695a 42130 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 42131 return value is signed.
42132 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42133 test if OFFSET is less than zero, as OFFSET is unsigned now.
42134
42135 * kern/disk.c (struct grub_disk_cache): Change the type of
42136 "sector" to grub_disk_addr_t.
42137 (grub_disk_cache_get_index): Change the type of SECTOR to
42138 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42139 unsigned after shifting.
42140 (grub_disk_cache_invalidate): Change the type of SECTOR to
42141 grub_disk_addr_t.
42142 (grub_disk_cache_unlock): Likewise.
42143 (grub_disk_cache_store): Likewise.
42144 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42145 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42146 grub_disk_addr_t and grub_uint64_t, respectively.
42147 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42148 body, as the value of OFFSET is tweaked by
42149 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42150 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42151 respectively.
42152 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42153 body, as the value of OFFSET is tweaked by
42154 grub_disk_check_range. Change the types of LEN and N to
42155 grub_size_t.
42156
42157 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42158 and "saved_offset" to grub_off_t.
42159 (test_header): Cast BUF to char *.
42160 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42161 to char *.
42162 (grub_gzio_read): Change the types of OFFSET and SIZE to
42163 grub_off_t and grub_size_t, respectively.
42164
42165 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42166 Removed.
42167 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42168 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42169 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42170 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42171 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42172
42173 * include/grub/types.h (grub_off_t): Unconditionally set to
42174 grub_uint64_t.
42175 (grub_disk_addr_t): Changed to grub_uint64_t.
42176
42177 * include/grub/partition.h (struct grub_partition): Change the
42178 types of "start", "len" and "offset" to grub_disk_addr_t,
42179 grub_uint64_t and grub_disk_addr_t, respectively.
42180 (grub_partition_get_start): Return grub_disk_addr_t.
42181 (grub_partition_get_len): Return grub_uint64_t.
42182
42183 * include/grub/misc.h (grub_strtoull): New prototype.
42184 (grub_divmod64): Likewise.
42185
42186 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42187 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42188 grub_off_t, respectively.
42189 All callers and references changed.
42190
42191 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42192 grub_size_t in "read".
42193 All callers and references changed.
42194
42195 * include/grub/file.h (struct grub_file): Change the types of
42196 "offset" and "size" to grub_off_t and grub_off_t,
42197 respectively. Change the type of SECTOR to grub_disk_addr_t in
42198 "read_hook".
42199 (grub_file_read): Change the type of LEN to grub_size_t.
42200 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42201 grub_off_t.
42202 (grub_file_size): Return grub_off_t.
42203 (grub_file_tell): Likewise.
42204 All callers and references changed.
42205
42206 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42207 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42208 "write".
42209 (struct grub_disk): Change the type of "total_sectors" to
42210 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 42211 "read_hook".
524a1e6a 42212 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42213 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42214 (grub_disk_write): Likewise.
42215 All callers and references changed.
42216
42217 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42218 char * for grub_strncmp to silence gcc.
42219 (grub_iso9660_mount): Likewise.
42220 (grub_iso9660_mount): Likewise.
42221 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42222 return statement.
42223 (grub_iso9660_iterate_dir): Likewise.
42224 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42225
42226 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42227 LEN to grub_disk_addr_t and grub_size_t, respectively.
42228
42229 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42230
42231 * fs/jfs.c (grub_jfs_read_file): Likewise.
42232
42233 * fs/minix.c (grub_jfs_read_file): Likewise.
42234
42235 * fs/sfs.c (grub_jfs_read_file): Likewise.
42236
42237 * fs/ufs.c (grub_jfs_read_file): Likewise.
42238
42239 * fs/xfs.c (grub_jfs_read_file): Likewise.
42240
42241 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42242 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42243 respectively.
42244
42245 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42246 BLKNR to -1 instead of returning GRUB_ERRNO.
42247 (grub_ext2_read_file): Change the types of SECTOR and
42248 LEN to grub_disk_addr_t and grub_size_t, respectively.
42249
42250 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42251 LEN to grub_disk_addr_t and grub_size_t, respectively.
42252
42253 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42254 grub_file_read.
42255
42256 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42257 string. Do not cast SECTOR explicitly.
42258
42259 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42260 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42261 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42262 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42263 over 2TB and LBA mode is not supported, raise an error.
42264 (get_safe_sectors): New function.
42265 (grub_biosdisk_read): Use get_safe_sectors.
42266 (grub_biosdisk_write): Likewise.
42267
42268 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42269 (grub_efidisk_write): Likewise.
42270
42271 * disk/loopback.c (delete_loopback): Cosmetic changes.
42272 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42273 correctly.
42274 (grub_loopback_open): Likewise.
42275 (grub_loopback_read): Likewise. Also, change the type of POS to
42276 grub_off_t, and fix the usage of grub_memset.
42277
42278 * commands/i386/pc/play.c: Include grub/machine/time.h.
42279
42280 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42281 print FILE->SIZE.
42282
42283 * commands/configfile.c: Include grub/env.h.
42284
42285 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42286 GRUB_ERRNO directly instead. Change the type of POS to
42287 grub_off_t. Follow the coding standard.
42288
42289 * commands/blocklist.c: Include grub/partition.h.
42290 (grub_cmd_blocklist): Return an error if the underlying device is
42291 not a disk. Take the starting sector of a partition into account,
42292 if a partition is used.
42293
42294 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42295 a length field.
42296 (lba_mode): Support 64-bit addresses.
42297 (chs_mode): Likewise.
42298 (copy_buffer): Adapted to the new offsets of a length field and a
42299 segment field.
42300 (blocklist_default_start): Allocate 64-bit space.
42301
42302 * boot/i386/pc/boot.S (force_lba): Removed.
42303 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 42304 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 42305 space.
42306 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42307 is useless.
42308 (lba_mode): Refactored to support a 64-bit address. More size
42309 optimization.
42310 (setup_sectors): Likewise.
42311
53af98ad 423122006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42313
42314 * DISTLIST: Added include/grub/i386/linux.h. Removed
42315 include/grub/i386/pc/linux.h
42316
42317 * configure.ac (AC_INIT): Bumped to 1.94.
42318
42319 * config.guess: Updated from gnulib.
42320 * config.sub: Likewise.
42321 * install-sh: Likewise.
42322 * mkinstalldirs: Likewise.
42323
b4c1940a 423242006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42325
42326 * conf/common.rmk (grub_modules_init.lst): Depended on
42327 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42328 MODSRCFILES.
42329
42330 * genmk.rb (PModule::rule): Reverted the previous change.
42331
cfca1cfd 423322006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42333
42334 * conf/common.rmk (grub_modules_init.lst): Depends on
42335 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42336 that the target does not exist before producing.
42337 (grub_modules_init.h): Remove the target before generating.
42338 (grub_emu_init.c): Likewise.
42339
42340 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42341
aa6d7826 423422006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42343
42344 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42345 for the target-specific tests. Make sure that we also have the
42346 up-to-date target variables for those tests.
42347
26c607b9 423482006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42349
42350 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42351 (PModule::rule): Likewise.
42352
0162321a 423532006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42354
42355 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42356 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42357 target-specific flags should be prefixed.
42358 (PModule::rule): Likewise.
42359
6c826348 423602006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42361
42362 * configure.ac (CMP): Check if cmp is available explicitly.
42363
b977bf01 423642006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42365
42366 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42367 (target_cpu): New variable.
42368 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 42369
b977bf01 42370 * util/i386/pc/grub-install.in (host_cpu): Removed.
42371 (target_cpu): New variable.
42372 (pkglibdir): Use target_cpu instead of host_cpu.
42373
42374 * util/genmoddep.c: Removed.
f19dbdb7 42375
b977bf01 42376 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42377 instead of GRUB_HOST_SIZEOF_VOID_P.
42378 * kern/dl.c: Likewise.
42379
42380 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42381 ...
42382 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42383 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42384 (GRUB_TARGET_SIZEOF_LONG): ... this.
42385 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42386 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42387 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42388 to ...
42389 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42390 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42391 (GRUB_TARGET_SIZEOF_LONG): ... this.
42392 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42393 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42394 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42395 to ...
42396 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42397 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42398 (GRUB_TARGET_SIZEOF_LONG): ... this.
42399 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42400 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42401
42402 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42403 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42404 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42405 instead of GRUB_HOST_SIZEOF_LONG.
42406 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42407 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42408 GRUB_CPU_WORDS_BIGENDIAN.
42409 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42410 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42411 grub_host_ssize_t.
42412
42413 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42414 (genmoddep_SOURCES): Likewise.
42415 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42416 (genmoddep_SOURCES): Likewise.
42417 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42418 (genmoddep_SOURCES): Likewise.
42419 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42420 Likewise.
42421 (genmoddep_SOURCES): Likewise.
42422
42423 * genmoddep.awk: New file.
42424
42425 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42426 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42427 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42428 (PModule::rule): Likewise.
42429 (Program::rule): Likewise.
42430 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42431 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42432 respectively.
42433
42434 * configure.ac: Rewritten intensively to use host and target
42435 instead of build and host, respectively.
42436
42437 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42438 (host_cpu): Removed.
42439 (target_cpu): New variable.
42440 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42441 (BUILD_CC): Removed.
42442 (BUILD_CFLAGS): Likewise.
42443 (BUILD_CPPFLAGS): Likewise.
42444 (TARGET_CC): New variable.
42445 (TARGET_CFLAGS): Likewise.
42446 (TARGET_CPPFLAGS): Likewise.
42447 (TARGET_LDFLAGS): Likewise.
42448 (AWK): Likewise.
42449 (include): Use target_cpu instead of host_cpu.
42450 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 42451
b977bf01 42452 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42453
f09771a1 424542006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42455
42456 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42457 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42458 field 'false' to 'exec_on_false'.
42459 (grub_script_create_cmdif): Renamed argument names to reflect above
42460 changes.
42461
42462 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42463
42464 * normal/script.c (grub_script_create_cmdif): Likewise.
42465
118f4fb3 424662006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42467
42468 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42469 top.
42470 (grub_hfsplus_btree_recptr): Likewise.
42471 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42472 FILEBLOCK both to pass a block number and store next block
42473 number.
42474 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42475 overflow file correctly. Specify errors appropriately, because
42476 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42477 grub_hfsplus_btree_recptr to get the pointer to a found key.
42478 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42479 is found.
42480
42481 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42482 linux.mod.
42483 (_linux_mod_SOURCES): New variable.
42484 (_linux_mod_CFLAGS): Likewise.
42485 (_linux_mod_LDFLAGS): Likewise.
42486 (linux_mod_SOURCES): Likewise.
42487 (linux_mod_CFLAGS): Likewise.
42488 (linux_mod_LDFLAGS): Likewise.
42489
42490 * DISTLIST: Added loader/i386/efi/linux.c,
42491 loader/i386/efi/linux_normal.c and
42492 include/grub/i386/efi/loader.h.
42493
42494 * loader/i386/efi/linux.c: New file.
42495 * loader/i386/efi/linux_normal.c: Likewise.
42496 * include/grub/i386/efi/loader.h: Likewise.
42497
89a7d726 424982006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42499
42500 * commands/blocklist.c: New file.
42501
42502 * DISTLIST: Added commands/blocklist.c.
42503
42504 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 42505 color for the background, and a darker color for the foreground.
89a7d726 42506 (grub_console_checkkey): Return READ_KEY.
42507 (grub_console_cls): Set the background to
42508 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42509
42510 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42511
42512 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42513 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42514
42515 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42516 prototype.
42517
42518 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42519 BG. The spec is wrong again.
42520
42521 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42522 prototype.
42523 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42524
42525 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42526 commands/blocklist.c.
42527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 42528
89a7d726 42529 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42530 (blocklist_mod_SOURCES): New variable.
42531 (blocklist_mod_CFLAGS): Likewise.
42532 (blocklist_mod_LDFLAGS): Likewise.
42533
75c8f258 425342006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42535
42536 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42537 duplication.
42538 (lba_mode): Use %eax more intensively to reduce the code size.
42539
da2eb181 425402006-05-20 Marco Gerards <marco@gnu.org>
42541
42542 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42543
42544 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42545 for `menuentry'.
42546 (script): Accept leading newlines.
42547 (newlines): New rule to describe 0 or more newlines.
42548 (commands): Accept `command' with trailing newline. Fixed the
42549 order in which arguments were passed to `grub_script_add_cmd'.
42550 Accept commands separated by newlines.
42551 (function): Changed to accept newlines.
42552 (menuentry) Rewritten.
42553
42554 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42555 front of the list, instead of to the end.
42556
577b4050 425572006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42558
42559 * util/i386/pc/grub-install.in (bindir): New variable.
42560 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42561 Shaver <lbgwjl@gmail.com>.
42562
0d6e1189 425632006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42564
42565 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42566 grub/machine/linux.h
42567 * loader/i386/pc/linux.c: Likewise.
42568
42569 * include/grub/i386/pc/linux.h: Moved to ...
42570 * include/grub/i386/linux.h: ... here.
42571
42572 * include/grub/i386/linux.h (struct linux_kernel_params): New
42573 struct.
f19dbdb7 42574
31b86e9f 425752006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42576
42577 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42578 checking.
42579 (grub_video_vbe_blit_glyph): Likewise.
42580 (grub_video_vbe_blit_bitmap): Likewise.
42581 (grub_video_vbe_blit_render_target): Likewise.
42582
83b984de 425832006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42584
42585 * configure.ac (--with-platform): Properly quote the square
42586 brackets.
42587
5f0413bd 425882006-05-08 Marco Gerards <marco@gnu.org>
42589
42590 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42591 this...
42592 (kernel_elf_HEADERS): ...to this. Updated all users.
42593 (grubof_symlist.c): Renamed from this...
42594 (kernel_elf_symlist.c): ...to this. Updated all users.
42595 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42596 (grubof_SOURCES): Renamed from this...
42597 (kernel_elf_SOURCES): ...to this.
42598 (grubof_HEADERS): Renamed from this...
42599 (kernel_elf_HEADERS): ...to this.
42600 (grubof_CFLAGS): Renamed from this...
42601 (kernel_elf_CFLAGS): ...to this.
42602 (grubof_ASFLAGS): Renamed from this...
42603 (kernel_elf_ASFLAGS): ...to this.
42604 (grubof_LDFLAGS): Renamed from this...
42605 (kernel_elf_LDFLAGS): ...to this.
42606
42607 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42608 this...
42609 (kernel_elf_HEADERS): ...to this. Updated all users.
42610 (grubof_symlist.c): Renamed from this...
42611 (kernel_elf_symlist.c): ...to this. Updated all users.
42612 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42613 (grubof_SOURCES): Renamed from this...
42614 (kernel_elf_SOURCES): ...to this.
42615 (grubof_HEADERS): Renamed from this...
42616 (kernel_elf_HEADERS): ...to this.
42617 (grubof_CFLAGS): Renamed from this...
42618 (kernel_elf_CFLAGS): ...to this.
42619 (grubof_ASFLAGS): Renamed from this...
42620 (kernel_elf_ASFLAGS): ...to this.
42621 (grubof_LDFLAGS): Renamed from this...
42622 (kernel_elf_LDFLAGS): ...to this.
42623
42624 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42625 `kernel.elf' instead of `grubof'.
42626
05568c2e 426272006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42628
42629 Add --with-platform to configure. Use pkglibdir instead of
42630 pkgdatadir. This is reported by Roger Leigh.
42631
42632 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42633 (host_vendor): Likewise.
42634 (host_os): Likewise.
42635 (pkgdatadir): Likewise.
42636 (platform): New variable.
42637 (pkglibdir): Likewise.
42638 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 42639
05568c2e 42640 * util/i386/pc/grub-install.in (datadir): Removed.
42641 (host_vendor): Likewise.
42642 (host_os): Likewise.
42643 (pkgdatadir): Likewise.
42644 (platform): New variable.
42645 (pkglibdir): Likewise.
42646 Use PKGLIBDIR instead of PKGDATADIR.
42647
42648 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42649 instead of GRUB_DATADIR.
42650 (main): Likewise.
42651 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42652 (main): Likewise.
42653 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42654 (main): Likewise.
42655
42656 * configure.ac (--with-platform): New option.
42657 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42658
42659 * Makefile.in: Include a makefile based on PLATFORM instead of
42660 HOST_VENDOR.
42661 (pkgdatadir): Not appended by the machine type.
42662 (pkglibdir): Appended by the machine type.
42663 (host_vendor): Removed.
42664 (platform): New variable.
42665 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42666 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42667 (uninstall): Likewise.
42668
4e93851c 426692006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42670
42671 Use the environment context in the menu. Remove the commands
42672 "default" and "timeout", and use variables instead.
f19dbdb7 42673
4e93851c 42674 * normal/menu.c: Include grub/env.h.
42675 (print_entry): Cast TITLE to silence gcc.
42676 (get_timeout): New function.
42677 (set_timeout): Likewise.
42678 (get_entry_number): Likewise.
42679 (run_menu): Use a default entry, a fallback entry and a timeout
42680 in the environment variables "default", "fallback" and
42681 "timeout". Also, tweak the default entry if it is not within the
42682 current menu entries.
42683 (grub_menu_run): Use a fallback entry in the environment variable
42684 "fallback".
42685
42686 * normal/main.c (read_config_file): Do not initialize
42687 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42688 NEWMENU->TIMEOUT.
42689 (grub_normal_execute): Use a data slot to store the menu.
42690
42691 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42692 fallback_entry and timeout.
42693 (struct grub_menu_list): Removed.
42694 (grub_menu_list_t): Likewise.
42695 (struct grub_context): Likewise.
42696 (grub_context_t): Likewise.
42697 (grub_context_get): Likewise.
42698 (grub_context_get_current_menu): Likewise.
42699 (grub_context_push_menu): Likewise.
42700 (grub_context_pop_menu): Likewise.
42701 (grub_default_init): Likewise.
42702 (grub_default_fini): Likewise.
42703 (grub_timeout_init): Likewise.
42704 (grub_timeout_fini): Likewise.
42705
42706 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42707 and timeout.mod.
42708 (normal_mod_SOURCES): Removed normal/context.c.
42709
42710 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42711 commands/default.c, commands/timeout.c and normal/context.c.
42712 (normal_mod_SOURCES): Removed normal/context.c.
42713
42714 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42715 commands/timeout.c and normal/context.c.
42716 (normal_mod_SOURCES): Removed normal/context.c.
42717
42718 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42719 commands/default.c, commands/timeout.c and normal/context.c.
42720 (normal_mod_SOURCES): Removed normal/context.c.
42721
42722 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42723 timeout.mod.
42724 (default_mod_SOURCES): Removed.
42725 (default_mod_CFLAGS): Likewise.
42726 (default_mod_LDFLAGS): Likewise.
42727 (timeout_mod_SOURCES): Removed.
42728 (timeout_mod_CFLAGS): Likewise.
42729 (timeout_mod_LDFLAGS): Likewise.
42730
42731 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42732 normal/context.c.
42733
42734 * commands/default.c: Removed.
42735 * commands/timeout.c: Likewise.
42736 * normal/context.c: Likewise.
42737
1eb9cc1d 427382006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42739
42740 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42741
385bd9c1 427422006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42743
42744 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42745 "next" to "prev" for readability.
42746 (struct grub_env_sorted_var): New struct.
42747 (grub_env_context): Renamed to ...
42748 (initial_context): ... this.
42749 (grub_env_var_context): Renamed to ...
42750 (current_context): ... this.
42751 (grub_env_find): Look only at CURRENT_CONTEXT.
42752 (grub_env_context_open): Rewritten to copy exported variables from
42753 previous context.
42754 (grub_env_context_close): Rewritten according to the new
42755 scheme. Also, add an assertion to prevent the initial context from
42756 removed.
42757 (grub_env_insert): Removed the code for the sorted list.
42758 (grub_env_remove): Likewise.
42759 (grub_env_export): Simply mark the variable with
42760 GRUB_ENV_VAR_GLOBAL.
42761 (grub_env_set): A cosmetic change for naming consistency.
42762 (grub_env_get): Likewise.
42763 (grub_env_unset): Likewise.
42764 (grub_env_iterate): Rewritten to sort variables within this
42765 function.
42766 (grub_register_variable_hook): Fixed for naming consistency. Call
42767 grub_env_find again, only if NAME is not found at the first time.
42768 (mangle_data_slot_name): New function.
42769 (grub_env_set_data_slot): Likewise.
42770 (grub_env_get_data_slot): Likewise.
42771 (grub_env_unset_data_slot): Likewise.
42772
42773 * include/grub/env.h (grub_env_var_type): New enum.
42774 (GRUB_ENV_VAR_LOCAL): New constant.
42775 (GRUB_ENV_VAR_GLOBAL): Likewise.
42776 (GRUB_ENV_VAR_DATA): Likewise.
42777 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42778 "type".
42779 (grub_env_set): Replace VAR with NAME for consistency.
42780 (grub_register_variable_hook): Likewise.
42781 (grub_env_export): Specify the name of the argument.
42782 (grub_env_set_data_slot): New prototype.
42783 (grub_env_get_data_slot): Likewise.
42784 (grub_env_unset_data_slot): Likewise.
42785
7f362539 427862006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42787
42788 Extend the loader so that GRUB can accept a loader which comes
42789 back to GRUB when a loaded image exits. Also, this change adds
42790 support for a chainloader on EFI.
f19dbdb7 42791
7f362539 42792 * term/efi/console.c: Include grub/misc.h.
42793 (grub_console_checkkey): Display a scan code on the top for
42794 debugging. This will be removed once the EFI port gets stable.
42795 Correct the scan code mapping.
42796
42797 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42798 allocate memory from larger regions, in order to reduce the number
42799 of allocated regions. Otherwise, the MacOSX loader panics.
42800 (filter_memory_map): Avoid less than 1MB for compatibility with
42801 other loaders.
42802 (add_memory_regions): Allocate from the tail of a region, if
42803 possible, to avoid allocating a region near to 1MB, for the MacOSX
42804 loader.
42805
42806 * kern/efi/init.c (grub_efi_set_prefix): Specify
42807 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42808
42809 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42810 argument IMAGE_HANDLE and specify it to get a loaded image.
42811 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42812 grub_efi_get_loaded_image.
fe6b695a 42813 (grub_efi_get_filename): Divide the length by the size of
7f362539 42814 grub_efi_char16_t.
42815 (grub_efi_get_device_path): New function.
42816 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42817 the length by the size of grub_efi_char16_t for a file path device
42818 path node.
42819
42820 * kern/loader.c (grub_loader_noreturn): New variable.
42821 (grub_loader_set): Accept a new argument NORETURN. Set
42822 GRUB_LOADER_NORETURN to NORETURN.
42823 All callers changed.
42824 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42825 grub_machine_fini.
42826
42827 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42828 prototype.
42829 (grub_efi_get_loaded_image): Take an argument to specify an image
42830 handle.
42831
42832 * include/grub/loader.h (grub_loader_set): Added one more argument
42833 NORETURN.
42834
42835 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42836 instead of grub_efi_open_protocol.
42837 (grub_efidisk_get_device_name): Likewise.
42838 (grub_efidisk_close): Print a newline.
42839 (grub_efidisk_get_device_handle): Fixed to use
42840 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42841 GRUB_EFI_DEVICE_PATH_TYPE.
42842
42843 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42844 * kern/efi/efi.c (device_path_guid): ... here.
42845
42846 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42847 chain.mod.
42848 (kernel_mod_HEADERS): Added efi/disk.h.
42849 (_chain_mod_SOURCES): New variable.
42850 (_chain_mod_CFLAGS): Likewise.
42851 (_chain_mod_LDFLAGS): Likewise.
42852 (chain_mod_SOURCES): Likewise.
42853 (chain_mod_CFLAGS): Likewise.
42854 (chain_mod_LDFLAGS): Likewise.
42855
42856 * DISTLIST: Added include/grub/efi/chainloader.h,
42857 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42858
42859 * include/grub/efi/chainloader.h: New file.
42860 * loader/efi/chainloader.c: Likewise.
42861 * loader/efi/chainloader_normal.c: Likewise.
42862
c0111d6e 428632006-04-30 Marco Gerards <marco@gnu.org>
42864
42865 * commands/configfile.c (grub_cmd_source): New function.
42866 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42867 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42868
df5341da 428692006-04-30 Marco Gerards <marco@gnu.org>
42870
42871 * normal/execute.c (grub_script_execute_cmd): Change the return
42872 type to `grub_err_t'. Correctly return the error.
42873 (grub_script_execute_cmdline): In case a command line is not a
42874 command or a function, try to interpret it as an assignment.
42875
f85934bd 428762006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42877
42878 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42879 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42880 skip a node whose name is obviously invalid as UTF-16,
42881 i.e. contains a NUL character. Stop the iteration when the last
42882 directory entry is found. Instead of using the return value of
42883 grub_hfsplus_btree_iterate_node, store the value in RET and use
42884 it, because the iterator can be stopped by the last directory
42885 entry.
42886
8f8a2cf8 428872006-04-30 Marco Gerards <marco@gnu.org>
42888
42889 * include/grub/env.h (grub_env_export): New prototype. Reported
42890 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42891
a27e84ce 428922006-04-30 Marco Gerards <marco@gnu.org>
42893
42894 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42895 size of the extents in a catalog file record.
42896
eaef0553 428972006-04-29 Marco Gerards <marco@gnu.org>
42898
42899 * commands/configfile.c (grub_cmd_configfile): Execute the
42900 configfile within its own context.
42901
42902 * include/grub/env.h (grub_env_context_open): New prototype.
42903 (grub_env_context_close): Likewise.
42904
42905 * kern/env.c (grub_env): Removed.
42906 (grub_env_sorted): Likewise.
42907 (grub_env_context): New variable.
42908 (grub_env_var_context): Likewise.
42909 (grub_env_find): Search both the active context and the global
42910 context.
42911 (grub_env_context_open): New function.
42912 (grub_env_context_close): Likewise.
42913 (grub_env_insert): Likewise.
42914 (grub_env_remove): Likewise.
42915 (grub_env_export): Likewise.
42916 (grub_env_set): Changed to use helper functions to avoid code
42917 duplication.
42918 (grub_env_iterate): Rewritten so both the current context and the
42919 global context are being used.
42920
42921 * normal/command.c (export_command): New function.
42922 (grub_command_init): Register the `export' function.
42923
7b455f4d 429242006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42925
42926 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42927 explicitly to suppress gcc's warnings.
42928 * fs/fat.c (grub_fat_find_dir): Likewise.
42929 (grub_fat_label): Likewise.
42930 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42931 (grub_xfs_mount): Likewise.
42932 (grub_xfs_label): Likewise.
42933 * fs/affs.c (grub_affs_mount): Likewise.
42934 (grub_affs_label): Likewise.
42935 (grub_affs_iterate_dir): Likewise.
42936 * fs/sfs.c (grub_sfs_mount): Likewise.
42937 (grub_sfs_iterate_dir): Likewise.
42938 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42939 * fs/hfs.c (grub_hfs_mount): Likewise.
42940 (grub_hfs_cmp_catkeys): Likewise.
42941 (grub_hfs_find_dir): Likewise.
42942 (grub_hfs_dir): Likewise.
42943 (grub_hfs_label): Likewise.
42944 * fs/jfs.c (grub_jfs_mount): Likewise.
42945 (grub_jfs_opendir): Likewise.
42946 (grub_jfs_getent): Likewise.
42947 (grub_jfs_lookup_symlink): Likewise.
42948 (grub_jfs_label): Likewise.
42949 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42950 (grub_hfsplus_iterate_dir): Likewise.
42951 (grub_hfsplus_btree_iterate_node): Made static.
42952
42953 * util/grub-emu.c (prefix): New variable.
42954 (grub_machine_set_prefix): New function.
42955 (main): Do not set the environment variable "prefix" here. Only
42956 set PREFIX, which is used later by grub_machine_set_prefix.
42957
42958 * include/grub/video.h: Do not include grub/symbol.h.
42959 (grub_video_register): Not exported. This symbol is not defined in
42960 the kernel.
42961 (grub_video_unregister): Likewise.
42962 (grub_video_iterate): Likewise.
42963 (grub_video_setup): Likewise.
42964 (grub_video_restore): Likewise.
42965 (grub_video_get_info): Likewise.
42966 (grub_video_get_blit_format): Likewise.
42967 (grub_video_set_palette): Likewise.
42968 (grub_video_get_palette): Likewise.
42969 (grub_video_set_viewport): Likewise.
42970 (grub_video_get_viewport): Likewise.
42971 (grub_video_map_color): Likewise.
42972 (grub_video_map_rgb): Likewise.
42973 (grub_video_map_rgba): Likewise.
42974 (grub_video_fill_rect): Likewise.
42975 (grub_video_blit_glyph): Likewise.
42976 (grub_video_blit_bitmap): Likewise.
42977 (grub_video_blit_render_target): Likewise.
42978 (grub_video_scroll): Likewise.
42979 (grub_video_swap_buffers): Likewise.
42980 (grub_video_create_render_target): Likewise.
42981 (grub_video_delete_render_target): Likewise.
42982 (grub_video_set_active_render_target): Likewise.
42983
42984 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42985 Undefined.
42986 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42987
42988 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42989 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42990 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42991 instead of $(srcdir)/genkernsyms.sh.
42992
42993 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42994 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42995 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42996 instead of $(srcdir)/genkernsyms.sh.
42997
42998 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42999 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43000 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43001 instead of $(srcdir)/genkernsyms.sh.
43002
43003 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43004 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43005 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43006 instead of $(srcdir)/genkernsyms.sh.
43007
43008 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43009 genkernsyms.sh.
43010
43011 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43012 genkernsyms.sh.
43013 (gensymlist.sh): New target.
43014 (genkernsyms.sh): Likewise.
43015
43016 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43017 genkernsyms.sh.in and gensymlist.sh.in.
43018
43019 * genkernsyms.sh: Removed.
43020 * gensymlist.sh: Likewise.
f19dbdb7 43021
7b455f4d 43022 * genkernsyms.sh.in: New file.
43023 * gensymlist.sh.in: Likewise.
43024
1885bb27 430252006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43026
43027 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43028 clobber "prefix", since we may have already set it manually.
43029
71538dff 430302006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43031
43032 * kern/misc.c (abort): New alias for grub_abort.
43033
2965c7cc 430342006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43035
43036 A new machine-specific function "grub_machine_set_prefix" is
43037 defined. This is called after loading modules, so that a prefix
43038 initialization can use modules. Also, this change adds an
43039 intensive debugging feature for the memory manager via the
43040 configure option "--enable-mm-debug".
f19dbdb7 43041
2965c7cc 43042 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43043 PART.LEN.
43044
43045 * kern/sparc64/ieee1275/init.c (abort): Removed.
43046 (grub_stop): Likewise.
43047 (grub_exit): New function.
43048 (grub_set_prefix): Renamed to ...
43049 (grub_machine_set_prefix): ... this.
43050 (grub_machine_init): Do not call grub_set_prefix.
43051
43052 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43053 (grub_machine_set_prefix): ... this.
43054 (grub_machine_init): Do not call grub_set_prefix.
43055
43056 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43057 (grub_machine_init): Do not set the prefix here.
43058
43059 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43060
43061 * kern/efi/init.c: Include grub/mm.h.
43062 (grub_efi_set_prefix): New function.
43063
43064 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43065 (grub_efi_get_filename): New function.
43066 (grub_print_device_path): Renamed to ...
43067 (grub_efi_print_device_path): ... this.
43068
43069 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43070 [MM_DEBUG] (grub_realloc): Likewise.
43071 [MM_DEBUG] (grub_free): Likewise.
43072 [MM_DEBUG] (grub_memalign): Likewise.
43073 [MM_DEBUG] (grub_mm_debug): New variable.
43074 [MM_DEBUG] (grub_debug_malloc): New function.
43075 [MM_DEBUG] (grub_debug_free): New function.
43076 [MM_DEBUG] (grub_debug_realloc): New function.
43077 [MM_DEBUG] (grub_debug_memalign): New function.
43078
43079 * kern/misc.c (grub_abort): Print a newline to distinguish
43080 the message.
43081
43082 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43083 grub_set_root_dev after loading modules. This is necessary when
43084 setting a prefix depends on modules.
43085
43086 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43087 (grub_efi_print_device_path): ... this.
43088 (grub_efi_get_filename): New prototype.
43089 (grub_efi_set_prefix): Likewise.
43090
43091 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43092 and grub/disk.h.
43093 (grub_efidisk_get_device_handle): New prototype.
43094 (grub_efidisk_get_device_name): Likewise.
43095
43096 * include/grub/mm.h: Include config.h.
43097 (MM_DEBUG): Removed.
43098 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43099 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43100 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43101 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43102 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43103 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43104 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43105 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43106 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43107
43108 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43109
43110 * disk/efi/efidisk.c: Include grub/partition.h.
43111 (iterate_child_devices): New function.
43112 (add_device): First, compare only last device path nodes, so that
43113 devices are sorted by the types.
43114 (grub_efidisk_get_device_handle): New function.
43115 (grub_efidisk_get_device_name): Likewise.
43116
43117 * configure.ac (--enable-mm-debug): New option to enable the
43118 memory manager debugging feature. This makes the binary much
43119 bigger, so is disabled by default.
43120
9cacaa17 431212006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43122
43123 Use grub_abort instead of grub_stop, and grub_exit must be
43124 define in each architecture now. Also, this change adds support
43125 for EFI disks.
f19dbdb7 43126
9cacaa17 43127 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43128 (grub_getkey): New function.
43129 (grub_term_get_current): Likewise.
43130
43131 * util/i386/pc/grub-setup.c: Include grub/term.h.
43132 (grub_getkey): New function.
43133 (grub_term_get_current): Likewise.
43134
43135 * util/misc.c (grub_stop): Renamed to ...
43136 (grub_exit): ... this.
43137
43138 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43139 (grub_exit): ... this.
43140 (grub_machine_init): Use grub_abort instead of abort.
43141 (grub_stop): Removed.
43142
43143 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43144 abort.
43145
43146 * kern/i386/pc/startup.S (grub_exit): New function.
43147 (cold_reboot): New label.
43148
43149 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43150 (grub_efi_init): Call grub_efidisk_init.
43151 (grub_efi_fini): Call grub_efidisk_fini.
43152
43153 * kern/efi/efi.c: Include grub/mm.h.
43154 (grub_efi_console_control_guid): Renamed to ...
43155 (console_control_guid): ... this.
43156 (grub_efi_loaded_image_guid): Renamed to ...
43157 (loaded_image_guid): ... this.
43158 (grub_efi_locate_handle): New function.
43159 (grub_efi_open_protocol): Likewise.
43160 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43161 GRUB_EFI_CONSOLE_CONTROL_GUID.
43162 (grub_efi_exit): Removed.
43163 (grub_stop): Likewise.
43164 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43165 (grub_exit): New function.
43166 (grub_print_device_path): Likewise.
43167
43168 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43169 (grub_enter_rescue_mode): Register "exit".
43170
43171 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43172 (grub_abort): New function.
43173
43174 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43175
43176 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43177
43178 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43179
43180 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43181 (grub_print_device_path): New prototype.
43182 (grub_efi_locate_handle): Likewise.
43183 (grub_efi_open_protocol): Likewise.
43184
43185 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43186 * disk/efi/efidisk.c: Likewise.
43187
43188 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43189
43190 * include/grub/efi/console_control.h
43191 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43192
43193 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43194 last 8 bytes as an array.
43195 (GRUB_EFI_DISK_IO_GUID): New macro.
43196 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43197 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43198 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43199 grub_uint8_t.
43200 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43201 (struct grub_efi_device_path): Rename the member "sub_type" to
43202 "subtype".
43203 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43204 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43205 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43206 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43207 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43208 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43209 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43210 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43211 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43212 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43213 (struct grub_efi_pci_device_path): New structure.
43214 (grub_efi_pci_device_path_t): New type.
43215 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43216 (struct grub_efi_pccard_device_path): New structure.
43217 (grub_efi_pccard_device_path_t): New type.
43218 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43219 (struct grub_efi_memory_mapped_device_path): New structure.
43220 (grub_efi_memory_mapped_device_path_t): New type.
43221 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43222 (struct grub_efi_vendor_device_path): New structure.
43223 (grub_efi_vendor_device_path_t): New type.
43224 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43225 (struct grub_efi_controller_device_path): New structure.
43226 (grub_efi_controller_device_path_t): New type.
43227 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43228 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43229 (struct grub_efi_acpi_device_path): New structure.
43230 (grub_efi_acpi_device_path_t): New type.
43231 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43232 (struct grub_efi_expanded_acpi_device_path): New structure.
43233 (grub_efi_expanded_acpi_device_path_t): New type.
43234 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43235 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43236 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43237 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43238 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43239 (struct grub_efi_atapi_device_path): New structure.
43240 (grub_efi_atapi_device_path_t): New type.
43241 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43242 (struct grub_efi_fibre_channel_device_path): New structure.
43243 (grub_efi_fibre_channel_device_path_t): New type.
43244 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43245 (struct grub_efi_1394_device_path): New structure.
43246 (grub_efi_1394_device_path_t): New type.
43247 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43248 (struct grub_efi_usb_device_path): New structure.
43249 (grub_efi_usb_device_path_t): New type.
43250 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43251 (struct grub_efi_usb_class_device_path): New structure.
43252 (grub_efi_usb_class_device_path_t): New type.
43253 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43254 (struct grub_efi_i2o_device_path): New structure.
43255 (grub_efi_i2o_device_path_t): New type.
43256 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43257 (struct grub_efi_mac_address_device_path): New structure.
43258 (grub_efi_mac_address_device_path_t): New type.
43259 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43260 (struct grub_efi_ipv4_device_path): New structure.
43261 (grub_efi_ipv4_device_path_t): New type.
43262 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43263 (struct grub_efi_ipv6_device_path): New structure.
43264 (grub_efi_ipv6_device_path_t): New type.
43265 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43266 (struct grub_efi_infiniband_device_path): New structure.
43267 (grub_efi_infiniband_device_path_t): New type.
43268 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43269 (struct grub_efi_uart_device_path): New structure.
43270 (grub_efi_uart_device_path_t): New type.
43271 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43272 (struct grub_efi_vendor_messaging_device_path): New structure.
43273 (grub_efi_vendor_messaging_device_path_t): New type.
43274 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43275 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43276 (struct grub_efi_hard_drive_device_path): New structure.
43277 (grub_efi_hard_drive_device_path_t): New type.
43278 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43279 (struct grub_efi_cdrom_device_path): New structure.
43280 (grub_efi_cdrom_device_path_t): New type.
43281 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43282 (struct grub_efi_vendor_media_device_path): New structure.
43283 (grub_efi_vendor_media_device_path_t): New type.
43284 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43285 (struct grub_efi_file_path_device_path): New structure.
43286 (grub_efi_file_path_device_path_t): New type.
43287 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43288 (struct grub_efi_protocol_device_path): New structure.
43289 (grub_efi_protocol_device_path_t): New type.
43290 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43291 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43292 (struct grub_efi_bios_device_path): New structure.
43293 (grub_efi_bios_device_path_t): New type.
43294 (struct grub_efi_disk_io): New structure.
43295 (grub_efi_disk_io_t): New type.
43296 (struct grub_efi_block_io_media): New structure.
43297 (grub_efi_block_io_media_t): New type.
43298 (struct grub_efi_block_io): New structure.
43299 (grub_efi_block_io_t): New type.
43300
43301 * include/grub/misc.h (grub_stop): Removed.
43302 (grub_exit): New prototype.
43303 (grub_abort): Likewise.
43304
43305 * include/grub/disk.h (enum grub_disk_dev_id): Added
43306 GRUB_DISK_DEVICE_EFIDISK_ID.
43307
43308 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43309 disk/efi/efidisk.c.
43310 (kernel_syms.lst): Remove the target if an error occurs.
43311
49986a9f 433122006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43313
43314 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43315 as it was simply too buggy.
43316
970d3b8a 433172006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43318
43319 * kern/misc.c (grub_lltoa): New function.
43320 (grub_vsprintf): Added support for the long long suffix,
43321 i.e. "ll".
43322
ff04ec24 433232006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43324
43325 * Makefile.in (LDFLAGS): Add variable.
43326 (LD): Remove variable.
43327 * configure.ac: Add -m32 to LDFLAGS.
43328 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43329 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43330 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43331 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43332 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43333 variables.
43334 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43335 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43336 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43337
37e5e1a4 433382006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43339
43340 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43341 length for unknown glyph.
43342
c352d8dd 433432006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43344
2eab1c0d 43345 Add support for pre-loaded modules into the EFI port.
f19dbdb7 43346
2eab1c0d 43347 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43348 completely. Accept one more argument DIR. The caller has changed.
43349
43350 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43351
43352 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43353 (grub_efi_loaded_image_guid): New variable.
43354 (grub_efi_get_loaded_image): New function.
43355 (grub_arch_modules_addr): Likewise.
43356
43357 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43358 prototype.
43359
43360 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43361 (struct grub_efi_loaded_image): New structure.
43362 (grub_efi_loaded_image_t): New type.
43363
433642006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43365
c352d8dd 43366 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43367 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43368 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43369
6d01d6b4 433702006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43371
43372 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43373
976a4ea0 433742006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43375
43376 * DISTLIST: Added include/grub/efi/console.h,
43377 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43378 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43379
43380 * include/grub/efi/console.h: New file.
43381 * include/grub/efi/time.h: Likewise.
43382 * include/grub/i386/efi/kernel.h: Likewise.
43383 * kern/efi/init.c: Likewise.
43384 * kern/efi/mm.c: Likewise.
43385 * term/efi/console.c: Likewise.
f19dbdb7 43386
976a4ea0 43387 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43388 (grub_stop): Removed.
43389 (grub_get_rtc): Likewise.
43390 (grub_machine_init): Simply call grub_efi_init.
43391 (grub_machine_fini): Call grub_efi_fini.
43392
43393 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43394 (grub_efi_output_string): Removed.
43395 (grub_efi_stall): New function.
43396 (grub_stop): Likewise.
43397 (grub_get_rtc): Likewise.
43398
43399 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43400 (grub_efi_stall): New prototype.
43401 (grub_efi_allocate_pages): Likewise.
43402 (grub_efi_free_pages): Likewise.
43403 (grub_efi_get_memory_map): Likewise.
43404 (grub_efi_mm_init): Likewise.
43405 (grub_efi_mm_fini): Likewise.
43406 (grub_efi_init): Likewise.
43407 (grub_efi_fini): Likewise.
43408
43409 * include/grub/i386/efi/time.h: Do not include
43410 grub/symbol.h. Include grub/efi/time.h.
43411 (GRUB_TICKS_PER_SECOND): Removed.
43412 (grub_get_rtc): Likewise.
43413
43414 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43415 Added padding. The EFI spec is buggy.
43416 (GRUB_EFI_BLACK): New macro.
43417 (GRUB_EFI_BLUE): Likewise.
43418 (GRUB_EFI_GREEN): Likewise.
43419 (GRUB_EFI_CYAN): Likewise.
43420 (GRUB_EFI_RED): Likewise.
43421 (GRUB_EFI_MAGENTA): Likewise.
43422 (GRUB_EFI_BROWN): Likewise.
43423 (GRUB_EFI_LIGHTGRAY): Likewise.
43424 (GRUB_EFI_BRIGHT): Likewise.
43425 (GRUB_EFI_DARKGRAY): Likewise.
43426 (GRUB_EFI_LIGHTBLUE): Likewise.
43427 (GRUB_EFI_LIGHTGREEN): Likewise.
43428 (GRUB_EFI_LIGHTCYAN): Likewise.
43429 (GRUB_EFI_LIGHTRED): Likewise.
43430 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43431 (GRUB_EFI_YELLOW): Likewise.
43432 (GRUB_EFI_WHITE): Likewise.
43433 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43434 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43435 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43436 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43437 (GRUB_EFI_BACKGROUND_RED): Likewise.
43438 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43439 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43440 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43441 (GRUB_EFI_TEXT_ATTR): Likewise.
43442
43443 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43444 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43445 (kernel_mod_HEADERS): Added efi/time.h.
43446
83709125 434472006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43448
43449 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43450 include/grub/efi/api.h, include/grub/efi/console_control.h,
43451 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43452 include/grub/i386/efi/time.h, kern/efi/efi.c,
43453 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43454 and util/i386/efi/grub-mkimage.c.
43455
43456 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43457
43458 * genmk.rb (PModule#rule): Do not export symbols if
43459 #{prefix}_EXPORTS is set to "no".
43460
43461 * conf/i386-efi.mk: New file.
43462 * conf/i386-efi.rmk: Likewise.
43463 * include/grub/efi/api.h: Likewise.
43464 * include/grub/efi/console_control.h: Likewise.
43465 * include/grub/efi/efi.h: Likewise.
43466 * include/grub/efi/pe32.h: Likewise.
43467 * include/grub/i386/efi/time.h: Likewise.
43468 * kern/efi/efi.c: Likewise.
43469 * kern/i386/efi/init.c: Likewise.
43470 * kern/i386/efi/startup.S: Likewise.
43471 * util/i386/efi/grub-mkimage.c: Likewise.
43472
434732006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 43474
43475 * include/grub/script.h: Include <grub/parser.h> and
43476 "grub_script.tab.h".
43477 (struct grub_lexer_param): New struct.
43478 (struct grub_parser_param): Likewise.
43479 (grub_script_create_arglist): Pass the state in an argument.
43480 (grub_script_add_arglist): Likewise.
43481 (grub_script_create_cmdline): Likewise.
43482 (grub_script_create_cmdblock): Likewise.
43483 (grub_script_create_cmdif): Likewise.
43484 (grub_script_create_cmdmenu): Likewise.
43485 (grub_script_add_cmd): Likewise.
43486 (grub_script_arg_add): Likewise.
43487 (grub_script_lexer_ref): Likewise.
43488 (grub_script_lexer_deref): Likewise.
43489 (grub_script_lexer_record_start): Likewise.
43490 (grub_script_lexer_record_stop): Likewise.
43491 (grub_script_mem_record): Likewise.
43492 (grub_script_mem_record_stop): Likewise.
43493 (grub_script_malloc): Likewise.
43494 (grub_script_yylex): Likewise.
43495 (grub_script_yyparse): Likewise.
43496 (grub_script_yyerror): Likewise.
43497 (grub_script_yylex): Likewise.
43498 (grub_script_lexer_init): Return the state.
43499
43500 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43501 (grub_script_lexer_done): Likewise.
43502 (grub_script_lexer_getline): Likewise.
43503 (grub_script_lexer_refs): Likewise.
43504 (script): Likewise.
43505 (newscript): Likewise.
43506 (record): Likewise.
43507 (recording): Likewise.
43508 (recordpos): Likewise.
43509 (recordlen): Likewise.
43510 (grub_script_lexer_init): Return the state instead of setting
43511 global variables.
43512 (grub_script_lexer_ref): Use the newly added argument for state
43513 instead of globals.
43514 (grub_script_lexer_deref): Likewise.
43515 (grub_script_lexer_record_start): Likewise.
43516 (grub_script_lexer_record_stop): Likewise.
43517 (recordchar): Likewise.
43518 (nextchar): Likewise.
43519 (grub_script_yylex2): Likewise.
43520 (grub_script_yylex): Likewise.
43521 (grub_script_yyerror): Likewise.
43522
43523 * normal/parser.y (func_mem): Removed variable.
43524 (menu_entry): Likewise.
43525 (err): Likewise.
43526 (%lex-param): New parser option.
43527 (%parse-param): Likewise.
43528 (script): Always return the AST.
43529 (argument): Pass the state around.
43530 (arguments): Likewise.
43531 (grubcmd): Likewise.
43532 (commands): Likewise.
43533 (function): Likewise.
43534 (menuentry): Likewise.
43535 (if_statement): Likewise.
43536 (if): Likewise.
43537
43538 * normal/script.c (grub_script_memused): Removed variable.
43539 (grub_script_parsed): Likewise.
43540 (grub_script_malloc): Added a state argument. Use that instead of
43541 global variables.
43542 (grub_script_mem_record): Likewise.
43543 (grub_script_mem_record_stop): Likewise.
43544 (grub_script_arg_add): Likewise.
43545 (grub_script_add_arglist): Likewise.
43546 (grub_script_create_cmdline): Likewise.
43547 (grub_script_create_cmdif): Likewise.
43548 (grub_script_create_cmdmenu): Likewise.
43549 (grub_script_add_cmd): Likewise.
43550 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 43551
e2a8c904 435522006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 43553
43554 * normal/command.c (grub_command_init): Remove the title command.
43555
43556 * normal/lexer.c (grub_script_yylex): Renamed from this...
43557 (grub_script_yylex2): ... to this.
43558 (grub_script_yylex): New function. Temporary
43559 introduced to filter some tokens.
43560 (grub_script_yyerror): Print a newline.
43561
43562 * normal/main.c (read_config_file): Output information about the
43563 lines that contain errors. Wait for a key after all lines have
43564 been processed. Don't return an empty menu.
43565
43566 * normal/parser.y (func_mem): Don't initialize.
43567 (menu_entry): Likewise.
43568 (err): New variable.
43569 (script): Don't return anything when an error was encountered.
43570 (ws, returns): Removed rules.
43571 (argument): Disabled concatenated variable support.
43572 (arguments): Remove explicit separators.
43573 (grubcmd): Likewise.
43574 (function): Likewise.
43575 (menuentry): Likewise.
43576 (if): Likewise.
43577 (commands): Likewise. Add error handling.
43578
43579 * normal/script.c (grub_script_create_cmdline): If
43580 `grub_script_parsed' is 0, assume the parser encountered an error.
43581
c9a86192 435822006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43583
43584 * configure.ac: Add support for EFI. Fix the typo
43585 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43586
70f3b243 435872006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43588
43589 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43590 foreign multibyte characters should be shown correctly.
43591
65f201ad 435922006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43593
43594 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43595 calculation.
43596 (read_config_file): Made it to close file before returning.
43597
b4b93674 435982006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43599
43600 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43601 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43602 video/i386/pc/vbefill.c.
43603
43604 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43605 video/i386/pc/vbefill.c.
43606
43607 * include/grub/video.h (grub_video_blit_format): New enum.
43608 (grub_video_mode_info): Added new member blit_format.
43609 (grub_video_get_blit_format): New function prototype.
43610
43611 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43612 function prototype.
43613 (grub_video_vbe_map_rgb): Likewise.
43614 (grub_video_vbe_unmap_color): Likewise.
43615
43616 * include/grub/i386/pc/vbeblit.h: New file.
43617
43618 * include/grub/i386/pc/vbefill.h: New file.
43619
43620 * video/video.c (grub_video_get_blit_format): New function.
43621 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43622 (grub_video_vbe_map_rgb): Likewise.
43623 (grub_video_vbe_unmap_color): Likewise.
43624
43625 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43626 optimized fills.
43627 (grub_video_vbe_blit_render_target): Changed to use more optimized
43628 blits.
43629 (grub_video_vbe_setup): Added detection for optimized settings.
43630 (grub_video_vbe_create_render_target): Likewise.
43631
43632 * video/i386/pc/vbeblit.c: New file.
43633
43634 * video/i386/pc/vbefill.c: New file.
43635
c2379b9c 436362006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43637
43638 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43639 here...
43640
43641 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43642 parsing to support both hex and dec ranges. If filename was missing
43643 show usage information.
43644
bd0d7896 436452006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43646
43647 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43648 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43649
43650 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43651 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43652 (video_mod_SOURCES): Added.
43653 (video_mod_CFLAGS): Likewise.
43654 (video_mod_LDFLAGS): Likewise.
43655 (gfxterm_mod_SOURCES): Likewise.
43656 (gfxterm_mod_CFLAGS): Likewise.
43657 (gfxterm_mod_LDFLAGS): Likewise.
43658 (videotest_mod_SOURCES): Likewise.
43659 (videotest_mod_CFLAGS): Likewise.
43660 (videotest_mod_LDFLAGS): Likewise.
43661 (vesafb_mod_SOURCES): Removed.
43662 (vesafb_mod_CFLAGS): Likewise.
43663 (vesafb_mod_LDFLAGS): Likewise.
43664 (vga_mod_SOURCES): Likewise.
43665 (vga_mod_CFLAGS): Likewise.
43666 (vga_mod_LDFLAGS): Likewise.
43667
43668 * commands/videotest.c: New file.
43669
43670 * font/manager.c (fill_with_default_glyph): Modified to use
43671 grub_font_glyph.
43672 (grub_font_get_glyph): Likewise.
43673 (fontmanager): Renamed from this...
43674 (font_manager): ... to this.
43675
43676 * include/grub/font.h (grub_font_glyph): Added new structure.
43677 (grub_font_get_glyph): Modified to use grub_font_glyph.
43678
43679 * include/grub/misc.h (grub_abs): Added as inline function.
43680
43681 * include/grub/video.h: New file.
43682
43683 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43684 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43685 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43686 (grub_vbe_get_controller_info): Renamed from this...
43687 (grub_vbe_bios_get_controller_info): ... to this.
43688 (grub_vbe_get_mode_info): Renamed from this...
43689 (grub_vbe_bios_get_mode_info): ... to this.
43690 (grub_vbe_set_mode): Renamed from this...
43691 (grub_vbe_bios_set_mode): ... to this.
43692 (grub_vbe_get_mode): Renamed from this...
43693 (grub_vbe_bios_get_mode): ... to this.
43694 (grub_vbe_set_memory_window): Renamed from this...
43695 (grub_vbe_bios_set_memory_window): ... to this.
43696 (grub_vbe_get_memory_window): Renamed from this...
43697 (grub_vbe_bios_get_memory_window): ... to this.
43698 (grub_vbe_set_scanline_length): Renamed from this...
43699 (grub_vbe_set_scanline_length): ... to this.
43700 (grub_vbe_get_scanline_length): Renamed from this...
43701 (grub_vbe_bios_get_scanline_length): ... to this.
43702 (grub_vbe_set_display_start): Renamed from this...
43703 (grub_vbe_bios_set_display_start): ... to this.
43704 (grub_vbe_get_display_start): Renamed from this...
43705 (grub_vbe_bios_get_display_start): ... to this.
43706 (grub_vbe_set_palette_data): Renamed from this...
43707 (grub_vbe_bios_set_palette_data): ... to this.
43708 (grub_vbe_set_pixel_rgb): Removed.
43709 (grub_vbe_set_pixel_index): Likewise.
43710
43711 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43712 from this...
43713 (grub_vbe_bios_get_controller_info): ... to this.
43714 (grub_vbe_get_mode_info): Renamed from this...
43715 (grub_vbe_bios_get_mode_info): ... to this.
43716 (grub_vbe_set_mode): Renamed from this...
43717 (grub_vbe_bios_set_mode): ... to this.
43718 (grub_vbe_get_mode): Renamed from this...
43719 (grub_vbe_bios_get_mode): ... to this.
43720 (grub_vbe_set_memory_window): Renamed from this...
43721 (grub_vbe_bios_set_memory_window): ... to this.
43722 (grub_vbe_get_memory_window): Renamed from this...
43723 (grub_vbe_bios_get_memory_window): ... to this.
43724 (grub_vbe_set_scanline_length): Renamed from this...
43725 (grub_vbe_set_scanline_length): ... to this.
43726 (grub_vbe_get_scanline_length): Renamed from this...
43727 (grub_vbe_bios_get_scanline_length): ... to this.
43728 (grub_vbe_set_display_start): Renamed from this...
43729 (grub_vbe_bios_set_display_start): ... to this.
43730 (grub_vbe_get_display_start): Renamed from this...
43731 (grub_vbe_bios_get_display_start): ... to this.
43732 (grub_vbe_set_palette_data): Renamed from this...
43733 (grub_vbe_bios_set_palette_data): ... to this.
43734 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43735 getting corrupted after calling it. Added more pushes and pops.
43736 (grub_vbe_bios_set_mode): Likewise.
43737 (grub_vbe_bios_get_mode): Likewise.
43738 (grub_vbe_bios_get_memory_window): Likewise.
43739 (grub_vbe_bios_set_scanline_length): Likewise.
43740 (grub_vbe_bios_get_scanline_length): Likewise.
43741 (grub_vbe_bios_get_display_start): Likewise.
43742 (grub_vbe_bios_set_palette_data): Likewise.
43743
43744 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43745 (cl_insert): Likewise.
43746 (cl_delete): Likewise.
43747
43748 * term/gfxterm.c: New file.
43749
43750 * term/i386/pc/vesafb.c: Removed file.
43751
43752 * video/video.c: New file.
43753
43754 * video/i386/pc/vbe.c (real2pm): Added new function.
43755 (grub_video_vbe_draw_pixel): Likewise.
43756 (grub_video_vbe_get_video_ptr): Likewise.
43757 (grub_video_vbe_get_pixel): Likewise
43758 (grub_video_vbe_init): Likewise.
43759 (grub_video_vbe_fini): Likewise.
43760 (grub_video_vbe_setup): Likewise.
43761 (grub_video_vbe_get_info): Likewise.
43762 (grub_video_vbe_set_palette): Likewise.
43763 (grub_video_vbe_get_palette): Likewise.
43764 (grub_video_vbe_set_viewport): Likewise.
43765 (grub_video_vbe_get_viewport): Likewise.
43766 (grub_video_vbe_map_color): Likewise.
43767 (grub_video_vbe_map_rgb): Likewise.
43768 (grub_video_vbe_map_rgba): Likewise.
43769 (grub_video_vbe_unmap_color): Likewise.
43770 (grub_video_vbe_fill_rect): Likewise.
43771 (grub_video_vbe_blit_glyph): Likewise.
43772 (grub_video_vbe_blit_bitmap): Likewise.
43773 (grub_video_vbe_blit_render_target): Likewise.
43774 (grub_video_vbe_scroll): Likewise.
43775 (grub_video_vbe_swap_buffers): Likewise.
43776 (grub_video_vbe_create_render_target): Likewise.
43777 (grub_video_vbe_delete_render_target): Likewise.
43778 (grub_video_vbe_set_active_render_target): Likewise.
43779 (grub_vbe_set_pixel_rgb): Remove function.
43780 (grub_vbe_set_pixel_index): Likewise.
43781 (index_color_mode): Remove static variable.
43782 (active_mode): Likewise.
43783 (framebuffer): Likewise.
43784 (bytes_per_scan_line): Likewise.
43785 (grub_video_vbe_adapter): Added new static variable.
43786 (framebuffer): Likewise.
43787 (render_target): Likewise.
43788 (initial_mode): Likewise.
43789 (mode_in_use): Likewise.
43790 (mode_list): Likewise.
43791
5f97350b 437922006-03-10 Marco Gerards <marco@gnu.org>
43793
43794 * configure.ac (AC_INIT): Bumped to 1.93.
43795
43796 * DISTLIST: Added `include/grub/hfs.h'.
43797
a3c5c6f8 437982006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43799
43800 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43801 18H, which might help the BIOS falling back to next boot media.
43802
6de53d26 438032006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43804
43805 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43806 Poe Chen <poe.poechen@gmail.com>.
43807
77c4a393 438082006-01-17 Marco Gerards <marco@gnu.org>
43809
43810 * include/grub/normal.h: Include <grub/script.h>.
43811 (grub_command_list): Removed struct.
43812 (grub_command_list_t): Removed type.
43813 (grub_menu_entry): Remove members `num' and `command_list'. Add
43814 members `commands' and `sourcecode'.
43815 * include/grub/script.h: Add inclusion guards.
43816 (grub_script_cmd_menuentry): New struct.
43817 (grub_script_execute_menuentry): New prototype.
43818 (grub_script_lexer_record_start): Likewise.
43819 (grub_script_lexer_record_stop): Likewise.
43820 * normal/execute.c (grub_script_execute_menuentry): New function.
43821 * normal/lexer.c (record, recording, recordpos, recordlen): New
43822 variables.
43823 (grub_script_lexer_record_start): New function.
43824 (grub_script_lexer_record_stop): Likewise.
43825 (recordchar): Likewise.
43826 (nextchar): Likewise.
43827 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43828 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43829 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43830 (current_menu): New variable.
43831 (free_menu): Mainly rewritten.
43832 (grub_normal_menu_addentry): New function.
43833 (read_config_file): Rewritten.
43834 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 43835 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 43836 the menu entry.
43837 (run): Mainly rewritten.
43838 * normal/parser.y (menu_entry): New variable.
43839 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43840 (menuentry): New rule.
43841 (command): Add `menuentry'.
43842 (if_statement): Allow additional returns before `fi'.
43843 * normal/script.c (grub_script_create_cmdmenu): New function.
43844
144f1f98 438452006-01-03 Marco Gerards <marco@gnu.org>
43846
43847 * INSTALL: GNU Bison is required.
43848 * configure.ac: Rewritten the test to detect Bison.
43849 * Makefile.in (YACC): New variable. Reported by Xun Sun
43850 <xun.sun.cn@gmail.com>.
43851
af4b2d89 438522006-01-03 Marco Gerards <marco@gnu.org>
43853
43854 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43855 the HFS+ filesystem to filesystem blocks.
43856 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43857 GCC warning is silenced.
43858
15643b71 438592006-01-03 Marco Gerards <marco@gnu.org>
43860
43861 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43862 read from disk from big endian to host byte order.
43863
00905879 438642006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43865
43866 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43867 documentation.
43868 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43869 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43870 embedded HFS+ filesystem.
43871 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43872 (grub_hfs_sblock): Move from here...
43873 * include/grub/hfs.h: To here... New file.
43874 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43875 documentation.
43876 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43877 New macros.
43878 (grub_hfsplus_volheader): Change type of member `magic' to
43879 `grub_uint16_t'.
43880 (grub_hfsplus_data): Add new member `embedded_offset'.
43881 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43882 returned block.
43883 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43884 Calculate the offset.
43885
8899bc3e 438862005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43887
43888 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43889 Removed.
43890 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43891
ae8c0277 438922005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43893
43894 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43895 ENV->NAME is NULL after allocating ENV->VALUE.
43896
07084456 438972005-12-25 Marco Gerards <marco@gnu.org>
43898
43899 * kern/env.c (grub_env_set): Rewritten the error handling code.
43900
4750f5f1 439012005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43902
43903 * geninit.sh: Made more robust, and more portable.
43904
50214199 439052005-12-25 Marco Gerards <marco@gnu.org>
43906
43907 Add support for Apple HFS+ filesystems.
f19dbdb7 43908
50214199 43909 * fs/hfsplus.c: New file.
43910
43911 * DISTLIST: Added `fs/hfsplus.c'.
43912
43913 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43914 (hfsplus_mod_SOURCES): New variable.
43915 (hfsplus_mod_CFLAGS): Likewise.
43916 (hfsplus_mod_LDFLAGS): Likewise.
43917 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43918 (grub_setup_SOURCES): Likewise.
43919 (grub_mkdevicemap_SOURCES): Likewise.
43920 (grub_emu_SOURCES): Likewise.
43921 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43922
43923 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43924
43925 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43926
befaed6c 439272005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43928
43929 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43930 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43931 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43932 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43933 normal/lexer.c, normal/parser.y, normal/script.c, and
43934 partmap/gpt.c.
43935 Removed kern/sparc64/cache.c.
43936
43937 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43938 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43939 grub_emu_init.c.
43940
43941 * configure.ac (AC_INIT): Bumped to 1.92.
43942
6a124103 439432005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43944
43945 * kern/err.c (grub_error_push): Added new function to support error
43946 stacks.
43947 (grub_error_pop): Likewise.
43948 (grub_error_stack_items): New local variable to support error stacks.
43949 (grub_error_stack_pos): Likewise.
43950 (grub_error_stack_assert): Likewise.
43951 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43952 stack depth.
43953 (grub_print_error): Added support to print errors from error stack.
43954
43955 * include/grub/err.h (grub_error_push): Added function prototype.
43956 (grub_error_pop): Likewise.
43957
be973c1b 439582005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43959
43960 * configure.ac: Accept `powerpc64' as host_cpu.
43961 (amd64): Rename to `biarch32'.
43962
43963 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43964 non-cacheline-aligned addresses.
43965
43966 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43967 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43968 if `size' is non-zero.
43969
b04216ab 439702005-12-03 Marco Gerards <mgerards@xs4all.nl>
43971
43972 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43973 and `cd' to make sure the filename is not prefixed with a
43974 directory name.
43975 (pkgdata_MODULES): Add `gpt.mod'.
43976 (gpt_mod_SOURCES): New variable.
43977 (gpt_mod_CFLAGS): Likewise.
43978 (gpt_mod_LDFLAGS): Likewise.
43979
43980 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43981
43982 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43983 New macro.
43984
43985 * partmap/gpt.c: New file.
43986
43987 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43988 GPT partition map is detected.
43989
41730ed9 439902005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43991
43992 * commands/i386/pc/play.c: New file.
43993 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43994 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43995 macros.
f19dbdb7 43996
95dc3643 439972005-11-27 Marco Gerards <mgerards@xs4all.nl>
43998
43999 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44000 ((unused))' to silence gcc warning.
44001
1569ec51 440022005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44003
44004 * configure.ac: Correct `AC_PROG_YACC' test.
44005
9abde152 440062005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44007
44008 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44009 check before installing files.
44010
44b83271 440112005-11-22 Mike Small <smallm@panix.com>
44012
44013 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44014 number regex so multidigit numbers are recognized correctly.
44015
440162005-11-22 Mike Small <smallm@panix.com>
44017
44018 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44019 debugging message before attempting to claim memory.
44020 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44021 multiple addresses in case of failure.
44022
9c12956b 440232005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44024
44025 * term/tparm.c (get_space): Remove empty `if' statement.
44026
44027 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44028
44029 * kern/parser.c (check_varstate): Rename `state' to 's'.
44030
aeaf81d9 440312005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44032
44033 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44034 variable definitions to the beginning of each function. Sort stack
44035 variables by size.
44036 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44037 `buf' argument to `char *'.
44038
79bbb63f 440392005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44040
44041 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44042 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44043 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 44044 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44045 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44046 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44047 configfile.mod, search.mod, gzio.mod and test.mod.
44048 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44049 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44050 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44051 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44052 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44053 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44054 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44055 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44056 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44057 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44058 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44059 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44060 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44061 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44062 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44063 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44064 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44065 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44066 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44067 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44068 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44069 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44070 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44071
44072 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44073 `grep --include'.
44074 (pkgdata_MODULES): Add test.mod.
44075
233b1628 440762005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44077
44078 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44079 appending to variables with "+=".
44080 (PModule): Use full pathname to generate *.lst filenames.
44081
44082 * Makefile.in: Fixed list rules moved from genmk.rb.
44083 (.DELETE_ON_ERROR): New special target.
44084 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44085
44086 * conf/i386-pc.rmk: Include conf/common.mk.
44087 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44088 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 44089 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44090 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44091 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44092 configfile.mod, search.mod, gzio.mod and test.mod.
44093 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44094 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44095 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44096 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44097 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44098 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44099 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44100 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44101 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44102 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44103 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44104 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44105 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44106 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44107 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44108 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44109 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44110 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44111 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44112 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44113 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44114 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44115 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44116 here...
44117 * conf/common.rmk: ... to here. New file.
44118
44119 * conf/common.mk: New file.
44120
16f820c8 441212005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44122
44123 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44124 (grub_script.tab.c): ... here.
44125
44126 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44127 (grub_script.tab.c): ... here.
44128
44129 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44130 (grub_script.tab.c): ... here.
44131
44132 * normal/command.c (grub_command_find): Fixed a memory leak of
44133 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44134
63ba1554 441352005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44136
44137 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44138 "@" which marks the start of a comment on ARM.
44139 (VARIABLE): Likewise.
44140
7f67dc13 441412005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44142
79bbb63f 44143 Add support for Linux/ADFS partition tables.
7f67dc13 44144
44145 * partmap/acorn.c: New file.
44146
44147 * include/grub/acorn_filecore.h: Likewise.
44148
44149 * DISTLIST: Added `partmap/acorn.c' and
44150 `include/grub/acorn_filecore.h'.
f19dbdb7 44151
7f67dc13 44152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44153 `partmap/acorn.c'.
44154 (pkgdata_MODULES): Add `acorn.mod'.
44155 (acorn_mod_SOURCES): New variable.
44156 (acorn_mod_CFLAGS): Likewise.
44157
44158 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44159 `partmap/acorn.c'.
44160 (pkgdata_MODULES): Add `acorn.mod'.
44161 (acorn_mod_SOURCES): New variable.
44162 (acorn_mod_CFLAGS): Likewise.
44163
44164 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44165 (pkgdata_MODULES): Add `acorn.mod'.
44166 (acorn_mod_SOURCES): New variable.
44167 (acorn_mod_CFLAGS): Likewise.
44168 (acorn_mod_LDFLAGS): Likewise.
44169
44170 * include/types.h (grub_disk_addr_t): New typedef.
44171
6d099807 441722005-11-13 Marco Gerards <mgerards@xs4all.nl>
44173
44174 * geninit.sh: New file.
44175
44176 * geninitheader.sh: Likewise.
44177
44178 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44179 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44180 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44181 * commands/configfile.c (grub_configfile_init)
44182 (grub_configfile_fini): Likewise.
44183 * commands/default.c (grub_default_init, grub_default_fini):
44184 Likewise.
44185 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44186 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44187 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44188 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44189 Likewise.
44190 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44191 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44192 Likewise.
44193 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 44194 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 44195 Likewise.
44196 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44197 Likewise.
fe6b695a 44198 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 44199 Likewise.
44200 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44201 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44202 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44203 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44204 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44205 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44206 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44207 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44208 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44209 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44210 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44211 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44212 * partmap/amiga.c (grub_amiga_partition_map_init)
44213 (grub_amiga_partition_map_fini): Likewise.
44214 * partmap/apple.c (grub_apple_partition_map_init)
44215 (grub_apple_partition_map_fini): Likewise.
44216 * partmap/pc.c (grub_pc_partition_map_init)
44217 (grub_pc_partition_map_fini): Likewise.
44218 * partmap/sun.c (grub_sun_partition_map_init,
44219 grub_sun_partition_map_fini): Likewise.
44220 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44221 Likewise.
44222
44223 * util/grub-emu.c: Include <grub_modules_init.h>.
44224 (main): Don't initialize and de-initialize any modules directly,
44225 use `grub_init_all' and `grub_fini_all' instead.
44226
44227 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44228 `grub_vesafb_mod_init'.
44229 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44230 all users.
44231 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44232 `grub_vga_mod_init'. Updated all users.
44233 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 44234
6d099807 44235 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44236 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44237 rules.
44238
44239 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44240 Generate a function to initialize the module in utilities.
44241 Updated all callers.
44242 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44243 initialize the module in utilities. Updated all callers.
44244
9046bcf0 442452005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44246
44247 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44248 escape sequence and a literal ^L to clear the screen.
44249
44250 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44251 when returning from Open Firmware.
44252
d13ea639 442532005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44254
44255 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44256 (grub_ofconsole_height): Likewise.
44257 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44258 manually insert a '\n'.
44259 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44260 `grub_ofconsole_height'. Return early if these are already set.
44261
a8fcf206 442622005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44263
44264 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44265 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44266 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44267 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44268 and `normal/script.c'.
44269 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44270 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44271 (test_mod_SOURCES): New variable.
44272 (test_mod_CFLAGS): Likewise.
44273 (test_mod_LDFLAGS): Likewise.
44274 (pkgdata_MODULES): Add `test.mod'.
44275 (grub_script.tab.c): New rule.
44276 (grub_script.tab.h): Likewise.
44277
b6b32745 442782005-11-07 Marco Gerards <mgerards@xs4all.nl>
44279
44280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44281 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44282 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44283 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44284 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44285 (test_mod_SOURCES): New variable.
44286 (test_mod_CFLAGS): Likewise.
44287 (pkgdata_MODULES): Add `test.mod'.
44288 (grub_script.tab.c): New rule.
44289 (grub_script.tab.h): Likewise.
44290
daac212a 442912005-11-06 Marco Gerards <mgerards@xs4all.nl>
44292
44293 Add initial scripting support.
44294
44295 * commands/test.c: New file.
44296 * include/grub/script.h: Likewise.
44297 * normal/execute.c: Likewise.
44298 * normal/function.c: Likewise.
44299 * normal/lexer.c: Likewise.
44300 * normal/parser.y: Likewise.
44301 * normal/script.c: Likewise.
44302
44303 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 44304
daac212a 44305 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44306 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44307 `normal/function.c' and `normal/script.c'.
44308 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44309 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 44310 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44311 variables.
daac212a 44312 (pkgdata_MODULES): Add `test.mod'.
44313 (grub_script.tab.c): New rule.
44314 (grub_script.tab.h): Likewise.
44315
44316 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44317
44318 * include/grub/normal.h (grub_test_init): New prototype.
44319 (grub_test_fini): Likewise.
f19dbdb7 44320
daac212a 44321 * normal/command.c: Include <grub/script.h>.
44322 (grub_command_execute): Rewritten.
f19dbdb7 44323
daac212a 44324 * util/grub-emu.c (main): Call `grub_test_init' and
44325 `grub_test_fini'.
44326
77500b2b 443272005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44328
44329 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44330 to 0.
44331 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44332 there are no pending characters.
44333
e45deb9e 443342005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44335
44336 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44337 `grub_strndup' to drop device arguments. Replace unnecessary
44338 `grub_strndup' with `grub_strdup'.
44339
4ce32619 443402005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44341
44342 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44343 `debug' environment variable has been set.
44344
443452005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 44346
4ce32619 44347 * Makefile.in (install-local): Use $(DATA).
44348 (uninstall): Likewise.
44349 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44350 (sbin_UTILITIES): ... to here.
44351 (sbin_SCRIPTS): New variable.
44352 (grub_install_SOURCES): New variable.
44353 * util/powerpc/ieee1275/grub-install.in: New file.
44354 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44355 variable.
44356 (add_segments): Call `grub_util_get_path'.
44357
25fe6f03 443582005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44359
44360 From Timothy Baldwin:
44361 * commands/ls.c (grub_ls_list_files): Close FILE with
44362 grub_file_close.
44363 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44364
04ccf3ec 443652005-10-24 Marco Gerards <mgerards@xs4all.nl>
44366
44367 * include/grub/parser.h: New file.
44368
44369 * kern/parser.c: Likewise.
44370
44371 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44372 (grub_setup_SOURCES): Likewise.
44373 (grub_probefs_SOURCES): Likewise.
44374 (grub_emu_SOURCES): Likewise.
44375 (kernel_img_HEADERS): Add `parser.h'.
44376
44377 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44378 (grub_emu_SOURCES): Add `kern/parser.c'.
44379 (grubof_SOURCES): Likewise.
44380
44381 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44382 (grubof_SOURCES): Add `kern/parser.c'.
44383
44384 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44385
44386 * kern/misc.c (grub_split_cmdline): Removed function.
44387
44388 * kern/rescue.c: Include <grub/parser.h>.
44389 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44390 of `grub_split_cmdline'.
44391
44392 * normal/command.c: Include <grub/parser.h>.
44393 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44394 of `grub_split_cmdline'.
44395
44396 * normal/completion.c: Include <grub/parser.h>.
44397 (cmdline_state): New variable.
44398 (iterate_dir): End the filename with a quote depending on the
44399 command line state.
44400 (get_state): new function.
44401 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44402 split the arguments and determine the current argument. When the
44403 argument string is not quoted, escape all spaces.
44404
6d8f4b0e 444052005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44406
44407 * normal/sparc64/setjmp.S: New file.
44408
15cf03ed 444092005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44410
44411 * include/grub/sparc64/libgcc.h: New file.
44412 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44413 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44414 normal/sparc64/setjmp.c.
44415
03e8661a 444162005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44417
44418 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44419 * kern/sparc64/cache.S: New file.
44420 * kern/sparc64/cache.c: Removed.
44421 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44422 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44423 -mtune=ultrasparc.
44424 (COMMON_LDFLAGS): Add -melf64_sparc.
44425 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44426 (grubof_SOURCES): Use cache.S instead of cache.c.
44427 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44428 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44429 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44430 commented though.
44431 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44432 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44433 (linux_mod_CFLAGS): Commented out.
44434 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44435 out because module isn't built.
44436 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44437 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44438 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44439 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44440 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44441 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44442 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44443 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44444 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44445 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44446 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44447 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44448 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44449 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44450
34eeec8a 444512005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44452
44453 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44454 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44455 longer, because HFS should not be used on PC.
44456
708367a3 444572005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44458
44459 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44460 consistently within the loop.
44461
6fa1251a 444622005-10-15 Marco Gerards <mgerards@xs4all.nl>
44463
44464 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44465 directory can not be read.
44466
4801580b 444672005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44468
44469 * configure.ac (AC_INIT): Increase the version number to 1.91.
44470
44471 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44472 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44473 term/i386/pc/serial.c.
44474
219ad426 444752005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44476
44477 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44478 file size must be permitted.
44479
44480 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44481 between %ah and %al.
44482
688e5699 444832005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44484
44485 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44486 grub_uint64_t.
44487 Call the hook with a NUL-terminated filename.
44488 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44489 grub_cpu_to_be32.
44490
44491 * kern/term.c (cursor_state): New variable.
44492 (grub_term_set_current): Reset the cursor state on a new
44493 terminal.
44494 (grub_setcursor): Rewritten to use CURSOR_STATE.
44495 (grub_getcursor): New function.
44496
44497 * include/grub/term.h (grub_getcursor): New prototype.
44498
44499 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44500 integers on ARM. Reported by Timothy Baldwin
44501 <T.E.Baldwin99@members.leeds.ac.uk>.
44502
bb34586c 445032005-10-11 Marco Gerards <mgerards@xs4all.nl>
44504
44505 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44506 allocated.
44507 (grub_sfs_dir): Likewise.
44508
9a909877 445092005-10-09 Marco Gerards <mgerards@xs4all.nl>
44510
44511 Add support for the SFS filesystem.
44512
44513 * fs/sfs.c: New file.
44514
44515 * DISTLIST: Added `fs/sfs.c'.
44516
44517 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44518 (grub_probefs_SOURCES): Likewise.
44519 (grub_emu_SOURCES): Likewise.
44520 (pkgdata_MODULES): Add `sfs.mod'.
44521 (sfs_mod_SOURCES): New variable.
44522 (sfs_mod_CFLAGS): Likewise.
44523 (sfs_mod_LDFLAGS): Likewise.
44524
44525 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44526 (pkgdata_MODULES): Add `sfs.mod'.
44527 (sfs_mod_SOURCES): New variable.
44528 (sfs_mod_CFLAGS): Likewise.
44529
44530 * util/grub-emu.c (main): Call `grub_sfs_init' and
44531 `grub_sfs_fini'.
44532
44533 * include/grub/fs.h (grub_sfs_init): New prototype.
44534 (grub_sfs_fini): Likewise.
44535
57bdbde3 445362005-10-07 Marco Gerards <mgerards@xs4all.nl>
44537
44538 Add support for the AFFS filesystem.
44539
44540 * fs/affs.c: New file.
44541
44542 * DISTLIST: Added `fs/affs.c'.
44543
44544 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44545 (grub_probefs_SOURCES): Likewise.
44546 (grub_emu_SOURCES): Likewise.
44547 (pkgdata_MODULES): Add `affs.mod'.
44548 (affs_mod_SOURCES): New variable.
44549 (affs_mod_CFLAGS): Likewise.
44550 (affs_mod_LDFLAGS): Likewise.
44551
44552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44553 (pkgdata_MODULES): Add `affs.mod'.
44554 (affs_mod_SOURCES): New variable.
44555 (affs_mod_CFLAGS): Likewise.
44556
44557 * util/grub-emu.c (main): Call `grub_affs_init' and
44558 `grub_affs_fini'.
44559
44560 * include/grub/fs.h (grub_affs_init): New prototype.
44561 (grub_affs_fini): Likewise.
44562
047b67e0 445632005-10-01 Marco Gerards <mgerards@xs4all.nl>
44564
44565 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44566
59b8208a 445672005-10-01 Marco Gerards <mgerards@xs4all.nl>
44568
44569 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44570 `-m32' to CFLAGS.
44571
44572 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44573 linking.
f19dbdb7 44574
59b8208a 44575 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44576 (COMMON_LDFLAGS): New variable.
44577 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44578 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44579 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44580 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44581 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44582 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44583 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44584 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44585 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44586 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44587 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44588 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44589 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44590 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44591 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44592 variables.
44593 (normal_mod_ASFLAGS): Add `-m32'.
44594
44595 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44596 (grub_host_size_t, grub_host_ssize_t): New types.
44597 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 44598 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 44599 `GRUB_HOST_SIZEOF_VOID_P'.
44600
44601 * include/grub/kernel.h (struct grub_module_header): Type of
44602 member offset changed to `grub_host_off_t'. Type of member size
44603 changed to `grub_host_size_t'.
44604 (struct grub_module_info): Type of member offset changed to
44605 `grub_host_off_t'. Type of member size changed to
44606 `grub_host_size_t'.
44607
b4093103 446082005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44609
44610 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 44611
b4093103 44612 * kern/i386/pc/startup.S (multiboot_header): New label.
44613 (multiboot_entry): Likewise.
44614 (multiboot_trampoline): Likewise.
44615
44616 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44617 Increased to 0x4A0.
44618
44619 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44620 put parentheses after a question mark.
44621 [!GRUB_UTIL] (my_mod): New variable.
44622
44623 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44624
b2499b29 446252005-09-28 Marco Gerards <mgerards@xs4all.nl>
44626
44627 Adds support for the XFS filesystem. Btrees are not supported
44628 yet.
44629
44630 * fs/xfs.c: New file.
44631
44632 * DISTLIST: Added `fs/xfs.c'.
44633
44634 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44635 (grub_probefs_SOURCES): Likewise.
44636 (grub_emu_SOURCES): Likewise.
44637 (pkgdata_MODULES): Add `xfs.mod'.
44638 (xfs_mod_SOURCES): New variable.
44639 (xfs_mod_CFLAGS): Likewise.
44640
44641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44642 (pkgdata_MODULES): Add `xfs.mod'.
44643 (xfs_mod_SOURCES): New variable.
44644 (xfs_mod_CFLAGS): Likewise.
44645
44646 * util/grub-emu.c (main): Call `grub_xfs_init' and
44647 `grub_xfs_fini'.
44648
44649 * include/grub/fs.h (grub_xfs_init): New prototype.
44650 (grub_xfs_fini): Likewise.
44651
f19dbdb7 44652
83d37a62 446532005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44654
44655 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44656 color modes, allow greater than 16 colors to be configured as
44657 a default palette.
44658
47d2d65e 446592005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44660
44661 * normal/completion.c (complete_arguments): Add the qualifier
44662 const into OPTIONS.
44663
44664 From Omniflux <omniflux+lists@omniflux.com>:
44665 * include/grub/terminfo.h: New file.
44666 * include/grub/tparm.h: Likewise.
44667 * include/grub/i386/pc/serial.h: Likewise.
44668 * term/terminfo.c: Likewise.
44669 * term/tparm.c: Likewise.
44670 * term/i386/pc/serial.c: Likewise.
44671 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44672 serial.mod.
44673 (terminfo_mod_SOURCES): New variable.
44674 (terminfo_mod_CFLAGS): Likewise.
44675 (serial_mod_SOURCES): Likewise.
44676 (serial_mod_CFLAGS): Likewise.
44677
48b671ff 446782005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44679
44680 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44681 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44682 and kern/powerpc/ieee1275/cmain.c, respectively.
44683
44684 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44685 * kern/powerpc/ieee1275/crt0.S: ... here.
44686
44687 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44688 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 44689
48b671ff 44690 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44691 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44692 instead of boot/powerpc/ieee1275/crt0.S and
44693 boot/powerpc/ieee1275/cmain.c, respectively.
44694
44695 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44696 sectors. It was not used anyway.
44697
09fc77a7 446982005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44699
44700 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44701 `unused parameter' warning.
44702
003789c7 447032005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44704
44705 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44706 function.
44707 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44708 getcharwidth.
44709
67f44c86 447102005-08-28 Marco Gerards <metgerards@student.han.nl>
44711
44712 * include/grub/normal.h (enum grub_completion_type): Added
44713 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44714
44715 * normal/cmdline.c (print_completion): Handle
44716 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44717 * normal/menu_entry.c (store_completion): Likewise.
44718
44719 * normal/completion.c (complete_arguments): New function.
44720 (grub_normal_do_completion): Call `complete_arguments' when the
44721 current words start with a dash.
44722
0b5abe02 447232005-08-27 Marco Gerards <metgerards@student.han.nl>
44724
44725 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44726 `gzio.mod' instead of `io.mod').
44727
d9864ee1 447282005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44729
44730 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44731 (DISTDIRS): Added io and video.
44732 Rewrite the search routine to make an output consistently.
44733
44734 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44735 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44736 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44737 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44738 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44739 util/powerpc/ieee1275/misc.c.
f19dbdb7 44740
d9864ee1 44741 * include/grub/gzio.h: New file.
44742 * io/gzio.c: Likewise.
f19dbdb7 44743
d9864ee1 44744 * kern/file.c (grub_file_close): Call grub_device_close only if
44745 FILE->DEVICE is not NULL.
44746
44747 * include/grub/mm.h [!NULL] (NULL): New macro.
44748
44749 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44750
44751 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44752 (pkgdata_MODULES): Added gzio.mod.
44753 (gzio_mod_SOURCES): New variable.
44754 (gzio_mod_CFLAGS): Likewise.
44755
44756 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44757 (pkgdata_MODULES): Added gzio.mod.
44758 (gzio_mod_SOURCES): New variable.
44759 (gzio_mod_CFLAGS): Likewise.
44760
44761 * commands/cat.c: Include grub/gzio.h.
44762 (grub_cmd_cat): Use grub_gzfile_open instead of
44763 grub_file_open.
f19dbdb7 44764
d9864ee1 44765 * commands/cmp.c: Include grub/gzio.h.
44766 (grub_cmd_cmp): Use grub_gzfile_open instead of
44767 grub_file_open.
44768
44769 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44770 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44771 grub_file_open.
44772 (grub_rescue_cmd_module): Likewise.
44773
fa46f4b5 447742005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44775
44776 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44777 kern/sparc64/ieee1275/init.c because it contains _start.
44778 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44779
e9211b5d 447802005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44781
44782 * configure.ac: Add support for sparc64 host with ieee1275
44783 firmware.
44784 * configure: Generated from configure.ac.
44785 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44786 instead of int.
44787 (grub_ofdisk_read): Likewise.
44788 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44789 pointers as (void *) to remove a warning.
44790 (grub_ofdisk_close): Likewise.
44791 (grub_ofdisk_read): Likewise.
44792 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44793 returns, so make it return void to remove a warning.
44794 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44795 Corresponding prototype change.
44796 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44797 values, and cast the pointers as (void *) to remove a warning.
44798 (grub_mm_dump): Likewise.
44799 * conf/sparc64-ieee1275.mk: New file.
44800 * conf/sparc64-ieee1275.rmk: Likewise.
44801 * include/grub/sparc64/setjmp.h: Likewise.
44802 * include/grub/sparc64/types.h: Likewise.
44803 * include/grub/sparc64/ieee1275/console.h: Likewise.
44804 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44805 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44806 * include/grub/sparc64/ieee1275/time.h: Likewise.
44807 * kern/sparc64/cache.c: Likewise.
44808 * kern/sparc64/dl.c: Likewise.
44809 * kern/sparc64/ieee1275/init.c: Likewise.
44810 * kern/sparc64/ieee1275/openfw.c: Likewise.
44811
385c6a92 448122005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44813
44814 * util/console.c (grub_ncurses_putchar): If C is greater than
44815 0x7f, set C to a question mark.
44816 (grub_ncurses_getcharwidth): New function.
44817 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44818 getcharwidth.
44819
44820 * normal/menu.c (print_entry): Made aware of Unicode. First,
44821 convert TITLE to UCS-4, and predict the cursor position by
44822 grub_getcharwidth.
44823
44824 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44825 const to SRC.
44826 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44827
16ccb8b1 448282005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44829
44830 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44831 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44832 grub_strcat.
44833
44834 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44835 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44836 grub_strcpy and grub_strlen. Take it into account that a space
44837 character is inserted as a delimiter.
44838
6a85ce79 448392005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44840
44841 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 44842 invalid magic in the error.
6a85ce79 44843
44844 * commands/search.c: New file.
f19dbdb7 44845
6a85ce79 44846 * util/grub-emu.c (main): Call grub_search_init and
44847 grub_search_fini.
44848
44849 * kern/rescue.c (grub_rescue_print_disks): Removed.
44850 (grub_rescue_print_devices): New function.
44851 (grub_rescue_cmd_ls): Use grub_device_iterate with
44852 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44853 grub_rescue_print_disks.
44854
44855 * kern/partition.c (grub_partition_iterate): Return the result of
44856 PARTMAP->ITERATE instead of GRUB_ERRNO.
44857
44858 * kern/device.c: Include grub/partition.h.
44859 (grub_device_iterate): New function.
44860
44861 * include/grub/partition.h (grub_partition_iterate): Return int
44862 instead of grub_err_t.
44863
44864 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44865 prototype.
44866 [GRUB_UTIL] (grub_search_fini): Likewise.
44867
44868 * include/grub/device.h (grub_device_iterate): New prototype.
44869
44870 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44871 commands/search.c.
44872 (pkgdata_MODULES): Added search.mod.
44873 (search_mod_SOURCES): New variable.
44874 (search_mod_CFLAGS): Likewise.
44875
44876 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44877 (pkgdata_MODULES): Added search.mod.
44878 (search_mod_SOURCES): New variable.
44879 (search_mod_CFLAGS): Likewise.
44880
44881 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44882 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44883 All callers changed.
44884
44885 * DISTLIST: Added commands/search.c.
44886
ef095434 448872005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44888
44889 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44890 conversion.
44891 (grub_getcharwidth): New function.
44892
44893 * kern/misc.c (grub_utf8_to_ucs4): New function.
44894
44895 * include/grub/term.h (struct grub_term): Added a new member
44896 "getcharwidth".
44897 (grub_getcharwidth): New prototype.
44898
44899 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44900
44901 * term/i386/pc/console.c (map_char): New function. Segregated from
44902 grub_console_putchar.
44903 (grub_console_putchar): Use map_char.
44904 (grub_console_getcharwidth): New function.
44905 (grub_console_term): Specified grub_console_getcharwidth as
44906 getcharwidth.
44907
44908 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44909 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44910
44911 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44912 GRUB_ERRNO.
44913 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44914 on grub_strtoul completely.
44915 (write_char): Declare local variables in the beginning of the
44916 function.
44917 (grub_vesafb_getcharwidth): New function.
44918 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44919 getcharwidth.
44920
1f0a95e4 449212005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44922
44923 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44924 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44925 commands/i386/pc/vbetest.c.
44926
44927 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44928 call grub_vbe_get_controller_info again, because the returned
44929 information is volatile.
44930 (grub_vbe_set_video_mode): Mostly rewritten.
44931 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44932 grub_vbe_status_t correctly.
44933 (grub_vbe_get_video_mode_info): Likewise.
44934 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44935 several if statements.
44936
44937 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44938 * commands/i386/pc/vbeinfo.c: ... this.
44939
44940 * commands/i386/pc/vbe_test.c: Renamed to ...
44941 * commands/i386/pc/vbetest.c: ... this.
44942
44943 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44944 ...
44945 (grub_cmd_vbeinfo): ... this. Save video modes before
44946 iterating. Skip a video mode, if it is not available, not enough
44947 information is given or it is monochrome. Show the memory
44948 model. Leave the interpretation of MODEVAR to grub_strtoul
44949 completely.
44950 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44951 (GRUB_MOD_FINI): Likewise.
44952
44953 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44954 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44955 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44956 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44957 grub_strtoul completely.
44958 (real2pm): Removed.
44959 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44960 (GRUB_MOD_FINI): Likewise.
44961
44962 * normal/misc.c: Include grub/mm.h.
44963
44964 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44965 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44966 (vbe_list_modes_mod_SOURCES): Removed.
44967 (vbe_list_modes_mod_CFLAGS): Likewise.
44968 (vbe_test_mod_SOURCES): Likewise.
44969 (vbe_test_mod_CFLAGS): Likewise.
44970 (vbeinfo_mod_SOURCES): New variable.
44971 (vbeinfo_mod_CFLAGS): Likewise.
44972 (vbetest_mod_SOURCES): Likewise.
44973 (vbetest_mod_CFLAGS): Likewise.
44974
992ffbbe 449752005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44976
44977 * normal/misc.c: New file.
44978
44979 * DISTLIST: Added normal/misc.c.
f19dbdb7 44980
992ffbbe 44981 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44982 DISK to HOOK. Call HOOK with DISK.
44983 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44984 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44985 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44986
44987 * normal/menu_entry.c (struct screen): Added a new member
44988 "completion_shown".
44989 (completion_buffer): New global variable.
44990 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44991 (store_completion): New function.
44992 (complete): Likewise.
44993 (clear_completions): Likewise.
44994 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44995 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44996 a tab, call complete.
44997
44998 * normal/completion.c (disk_dev): Removed.
44999 (print_simple_completion): Likewise.
45000 (print_partition_completion): Likewise.
45001 (print_func): New global variable.
45002 (add_completion): Do not take the arguments WHAT or PRINT any
45003 longer. Added a new argument TYPE. Instead of printing directly,
45004 call PRINT_FUNC if not NULL.
45005 All callers changed.
45006 (complete_device): Use a local variable DEV instead of
45007 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45008 (grub_normal_do_completion): Take a new argument HOOK. Do not
45009 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45010 empty string, return NULL instead.
45011 All callers changed.
45012
45013 * normal/cmdline.c (print_completion): New function.
45014
45015 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45016 to HOOK.
45017 All callers changed.
45018
45019 * kern/disk.c (grub_print_partinfo): Removed.
45020
45021 * include/grub/partition.h (struct grub_partition_map): Add a new
45022 argument DISK into HOOK of ITERATE.
45023 (grub_partition_iterate): Add a new argument DISK to HOOK.
45024
45025 * include/grub/normal.h (enum grub_completion_type): New enum.
45026 (grub_completion_type_t): New type.
45027 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45028 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45029 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45030 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45031 (grub_normal_do_completion): Added a new argument HOOK.
45032 (grub_normal_print_device_info): New prototype.
45033
45034 * include/grub/disk.h (grub_print_partinfo): Removed.
45035
45036 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45037 (normal_mod_SOURCES): Likewise.
45038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45039 (normal_mod_SOURCES): Likewise.
45040
45041 * commands/ls.c (grub_ls_list_disks): Use
45042 grub_normal_print_device_info instead of grub_print_partinfo. Free
45043 PNAME.
45044 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45045 duplicating the code.
45046
0bd41162 450472005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45048
45049 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 45050 follow GCS more precisely.
45051 * commands/i386/pc/vbe_test.c: Likewise.
45052 * include/grub/i386/pc/vbe.h: Likewise.
45053 * term/i386/pc/vesafb.c: Likewise.
45054 * video/i386/pc/vbe.c: Likewise.
0bd41162 45055
6323696a 450562005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45057
45058 * DISTLIST: Added term/i386/pc/vesafb.c
45059 DISTLIST: Added video/i386/pc/vbe.c
45060 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45061 DISTLIST: Added commands/i386/pc/vbe_test.c.
45062 * commands/i386/pc/vbe_list_modes.c: New file.
45063 * commands/i386/pc/vbe_test.c: Likewise.
45064 * term/i386/pc/vesafb.c: Likewise.
45065 * video/i386/pc/vbe.c: Likewise.
45066 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45067 (grub_vbe_probe) Added prototype.
45068 (grub_vbe_set_video_mode) Likewise.
45069 (grub_vbe_get_video_mode) Likewise.
45070 (grub_vbe_get_video_mode_info) Likewise.
45071 (grub_vbe_set_pixel_rgb) Likewise.
45072 (grub_vbe_set_pixel_index) Likewise.
45073 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45074 (pkgdata_MODULES): Added vesafb.mod.
45075 (pkgdata_MODULES): Added vbe_list_modes.mod.
45076 (pkgdata_MODULES): Added vbe_test.mod.
45077 (vbe_mod_SOURCES): Added.
45078 (vbe_mod_CFLAGS): Likewise.
45079 (vesafb_mod_SOURCES): Likewise.
45080 (vesafb_mod_CFLAGS): Likewise.
45081 (vbe_list_modes_mod_SOURCES): Likewise.
45082 (vbe_list_modes_mod_CFLAGS): Likewise.
45083 (vbe_test_mod_SOURCES): Likewise.
45084 (vbe_test_mod_CFLAGS): Likewise.
45085
0a74e62f 450862005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45087
0a74e62f 45088 * normal/command.c (grub_command_execute): If INTERACTIVE is
45089 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45090 CMDLINE. Disable the pager if INTERACTIVE is true.
45091 All callers are changed.
45092
45093 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45094 before reading a config file.
45095 * normal/main.c (read_config_file): Even if a command is not
45096 found, register it if it is within an entry.
45097
45098 * util/grub-emu.c: Include sys/types.h and unistd.h.
45099 (options): Added --hold.
45100 (struct arguments): Added a new member "hold".
45101 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45102 missing.
45103 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45104 cleared by a debugger, if it is not zero.
45105
45106 * include/grub/normal.h (grub_command_execute): Add an argument
45107 INTERACTIVE.
45108
e51f85ae 451092005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45110
45111 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45112
e9c6f39b 451132005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45114
45115 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45116 program with another one, because the old one didn't detect a bug
45117 in gcc-3.4. Always use regparm 2, because the new test is still
45118 not enough for gcc-4.0. Someone must investigate a simple test
45119 case which detects a bug in gcc-4.0.
45120
8de3495c 451212005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45122
45123 * DISTLIST: Added normal/completion.c.
45124
45125 * normal/completion.c: New file.
f19dbdb7 45126
8de3495c 45127 * term/i386/pc/console.c (grub_console_getwh): New function.
45128 (grub_console_term): Assign grub_console_getwh to getwh.
45129
45130 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45131 function is defined in normal/completion.c as
45132 grub_normal_do_completion.
45133 (grub_cmdline_get): Use grub_normal_do_completion instead of
45134 grub_tab_complete.
45135
45136 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45137 returns non-zero, otherwise return 0.
45138 (grub_partition_iterate): First, probe the partition map. Then,
45139 call ITERATE only for this partition map.
45140
45141 * kern/misc.c (grub_strncmp): Rewritten.
45142
45143 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45144 returns non-zero. Otherwise return 0.
45145
45146 * include/grub/partition.h (grub_partition_map_iterate): Return
45147 int instead of void.
45148
45149 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45150
45151 * include/grub/misc.h (grub_strncmp): Change the type of N to
45152 grub_size_t.
45153
45154 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45155 of void.
45156
45157 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 45158 unsigned explicitly before comparing it with I.
8de3495c 45159
45160 * kern/main.c (grub_env_write_root): Add the attribute unused into
45161 VAR.
45162
45163 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45164 normal/completion.c.
45165 (normal_mod_SOURCES): Likewise.
45166 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45167 (normal_mod_SOURCES): Likewise.
45168
45169 * normal/command.c (grub_iterate_commands): If ITERATE returns
45170 non-zero, return one immediately.
45171
e85e144b 451722005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45173
45174 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45175 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45176 descriptions.
45177 (grub_vbe_get_controller_info): New function.
45178 (grub_vbe_get_mode_info): Likewise.
45179 (grub_vbe_set_mode): Likewise.
45180 (grub_vbe_get_mode): Likewise.
45181 (grub_vbe_set_memory_window): Likewise.
45182 (grub_vbe_get_memory_window): Likewise.
45183 (grub_vbe_set_scanline_length): Likewise.
45184 (grub_vbe_get_scanline_length): Likewise.
45185 (grub_vbe_set_display_start): Likewise.
45186 (grub_vbe_get_display_start): Likewise.
45187 (grub_vbe_set_palette_data): Likewise.
45188 * include/grub/i386/pc/vbe.h: New file.
45189
c46153d2 451902005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45191
45192 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45193 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45194 * DISTLIST: Likewise.
45195 * kern/ieee1275/of.c: Moved to ...
45196 * kern/ieee1275/ieee1275.c: ... here.
45197
0cb90c45 451982005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45199
45200 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45201 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45202 Pass 0 as `end' parameter to grub_strtoul().
45203
a19fb360 452042005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45205
45206 * include/grub/powerpc/ieee1275/console.h: Do not include
45207 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45208 ifdef.
45209 (grub_console_cur_color): Remove i386-specific prototype.
45210 (grub_console_real_putchar): Likewise.
45211 (grub_console_checkkey): Likewise.
45212 (grub_console_getkey): Likewise.
45213 (grub_console_getxy): Likewise.
45214 (grub_console_gotoxy): Likewise.
45215 (grub_console_cls): Likewise.
45216 (grub_console_setcursor): Likewise.
45217 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45218 Include <grub/machine/console.h>.
45219 * term/ieee1275/ofconsole.c: Likewise.
45220
4ac9bd04 452212005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45222
45223 * Makefile.in (LIBLZO): New variable.
45224
45225 * configure.ac: Check for LZO version 2.
45226
45227 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45228 lzo/lzo1x.h instead of lzo1x.h.
45229
45230 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45231 of -llzo.
45232
45233 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45234 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45235
45236 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45237 copying the data from PARTITION to P.
45238
f4917dfd 452392005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45240
45241 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45242 negative, unload the module.
45243
45244 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45245 map is "pc_partition_map" but not "pc".
45246 (usage): Fix the description. The options are --boot-image and
45247 --core-image but not --boot-file or --core-file.
45248 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45249 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45250 DEFAULT_DIRECTORY.
45251
45252 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45253 --core-file. Specify INSTALL_DEVICE as an argument.
45254
45255 * util/console.c: Include config.h.
45256 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45257 [HAVE_NCURSES_H]: Include ncurses.h.
45258 [HAVE_CURSES_H]: Include curses.h.
45259 [!A_NORMAL] (A_NORMAL): Defined as zero.
45260 [!A_STANDOUT] (A_STANDOUT): Likewise.
45261
45262 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45263 -lncurses.
45264 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45265
45266 * configure.ac: Check for curses libraries and headers.
45267
45268 * Makefile.in (LIBCURSES): New variable.
45269
45270 * genmk.rb (Script::rule): Set the executable bits.
45271
45272 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45273 name of the PC partition map is "pc_partition_map" but not "pc".
45274
0e143073 452752005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45276
45277 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45278 (modules): Likewise.
45279 (usage): Added descriptions for --modules and --grub-probefs.
45280 Handle --modules and --grub-probefs. Save the arguments in MODULES
45281 and GRUB_PROBEFS, respectively.
45282 Auto-detect a filesystem module against GRUBDIR. If the result is
45283 empty and modules are not specified explicitly, abort the
45284 installation. Add the result to MODULES.
45285
45286 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45287 disk/powerpc/ieee1275/ofdisk.c,
45288 include/grub/powerpc/ieee1275/init.h and
45289 term/powerpc/ieee1275/ofconsole.c.
45290 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45291 term/ieee1275/ofconsole.c.
45292
45293 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45294
45295 * COPYING: Upgraded to the latest version. Only the address of the
45296 FSF office has changed.
f19dbdb7 45297
efd6e6d5 452982005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45299
45300 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45301 kern/ieee1275.c with kern/ieee1275/of.c.
45302
45303 * kern/ieee1275.c: Moved to ...
45304 * kern/ieee1275/of.c: ... here.
45305
8ceafda2 453062005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45307
45308 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 45309 readability.
8ceafda2 45310
45311 * config.guess: Updated to the latest version from gnulib.
45312 * config.sub: Likewise.
45313 * install.sh: Likewise.
45314 * mkinstalldirs: Likewise.
45315
45316 * include/grub/console.h: Removed. This file is arch-specific. Do
45317 not put this in include/grub.
45318
45319 * include/grub/i386/pc/console.h: Resurrected.
45320
45321 * util/console.c: Include grub/machine/console.h instead of
45322 grub/console.h.
45323 * util/grub-emu.c: Likewise.
45324
267f6cd9 453252005-08-04 Marco Gerards <metgerards@student.han.nl>
45326
45327 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45328 hardcoded value.
f19dbdb7 45329
267f6cd9 45330 From Vincent Pelletier <subdino2004@yahoo.fr>
45331 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45332 Redefined to use grub_getwh.
45333 (grub_term): New member named getwh.
45334 (grub_getwh): New prototype.
45335 * kern/term.c (grub_getwh): New function.
45336 * term/i386/pc/console.c (grub_console_getwh): New function.
45337 (grub_console_term): New member `getwh'.
45338 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45339 (grub_vga_term): New member `getwh'.
0b5abe02 45340 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 45341 grub_ssize_t.
45342 (grub_ofconsole_getw): New function.
45343 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45344 (grub_ofconsole_term): New field named getwh and new initial
45345 value.
45346
3be7266d 453472005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45348
45349 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45350 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45351 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45352 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45353 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45354 of <grub/machine/ieee1275.h>.
45355 * commands/ieee1275/reboot.c: Likewise.
45356 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45357 * kern/ieee1275.c: ... to here. All users updated. Change all
45358 parameter structs to use new type `grub_ieee1275_cell_t'.
45359 * term/powerpc/ieee1275/ofconsole.c: Move ...
45360 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45361 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45362 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45363 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45364 to return int.
45365 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45366 Remove unused prototypes. All users updated.
45367 * include/grub/powerpc/ieee1275/console.h: Removed.
45368 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45369 `grub_ieee1275_cell_t'.
45370 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45371 Cast comparisons with -1 to the correct type.
45372 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45373 type to match `grub_ieee1275_entry_fn'.
45374
8b5f3938 453752005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45376
45377 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45378
45379 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45380 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45381 partmap/sun.c.
45382 (grub_probefs_SOURCES): New variable.
45383
45384 * util/i386/pc/grub-probefs.c: New file.
45385
45386 * util/i386/pc/grub-setup.c (main): Call
45387 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45388 grub_hfs_init and grub_jfs_init to initialize the system. Call
45389 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45390 grub_pc_partition_map_fini to finish the system.
45391
ea409713 453922005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45393
45394 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45395 function.
45396 (grub_multiboot_load_elf32): Likewise.
45397 (grub_multiboot_is_elf64): Likewise.
45398 (grub_multiboot_load_elf64): Likewise.
45399 (grub_multiboot_load_elf): Likewise.
45400 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45401 an ELF32 or ELF64 file.
45402 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45403
45404 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45405 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45406 NULL before calling FS->LABEL.
45407 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45408 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45409 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45410 before calling FS->LABEL.
45411
141a288b 454122005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45413
45414 * util/i386/pc/grub-install.in (datadir): New variable.
45415 (libdir): Removed.
45416 (pkgdatadir): New variable.
45417 (pkglibdir): Removed.
45418
0d5f8a54 454192005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45420
45421 * DISTLIST: Added util/i386/pc/grub-install.in.
45422
45423 * util/i386/pc/grub-install.in: New file.
45424
45425 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45426 (grub_install_SOURCES): Likewise.
45427
45428 * genmk.rb: Added support for scripts.
45429 (Script): New class.
45430 (scripts): New variable.
45431
45432 * Makefile.in (install-local): Install sbin_SCRIPTS by
45433 INSTALL_SCRIPT.
45434 (uninstall): Remove sbin_SCRIPTS.
45435
45436 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45437 device, try to get a GRUB device by
45438 grub_util_biosdisk_get_grub_dev.
45439 Free DEST_DEV.
45440
45441 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45442 description for --device-map.
45443
5f968e1e 454442005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45445
45446 Change the semantics of variable hooks. They now return strings
45447 instead of error values.
f19dbdb7 45448
5f968e1e 45449 * util/i386/pc/grub-setup.c: Include grub/env.h.
45450 (setup): Use grub_device_set_root instead of grub_env_set.
45451
45452 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45453 grub_env_get instead of grub_device_set_root and
45454 grub_device_get_root, respectively.
45455
45456 * kern/main.c (grub_env_write_root): New function.
45457 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45458 grub_env_set instead of grub_device_set_root.
45459
45460 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45461 many variables.
45462 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45463 rather than calling ENV->WRITE_HOOK afterwards.
45464 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45465 passing a pointer of a pointer.
45466 (grub_register_variable_hook): Change the types of "read_hook" and
45467 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45468 respectively.
45469 Allocate the default empty string on the heap, because this string
45470 may be freed later.
45471
45472 * kern/device.c: Include grub/env.h.
45473 (grub_device_set_root): Removed.
45474 (grub_device_get_root): Likewise.
45475 (grub_device_open): Use grub_env_get instead of
45476 grub_device_get_root.
45477
45478 * include/grub/env.h (grub_env_read_hook_t): New type.
45479 (grub_env_write_hook_t): Likewise.
45480 (grub_env_var): Change the types of "read_hook" and "write_hook"
45481 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45482 (grub_register_variable_hook): Likewise.
45483
45484 * include/grub/device.h (grub_device_set_root): Removed.
45485 (grub_device_set_root): Likewise.
45486
45487 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45488 make sure that DIRNAME terminates with '/', so that
45489 grub_fat_find_dir will fail if PATH is not a directory.
45490
45491 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45492 from DIRNAME.
45493 Use the qualifier auto for print_files and print_files_long.
45494 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45495 as a regular file.
45496 Put a newline only if there is no error.
45497 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45498 used.
45499
896f0afd 455002005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45501
45502 * kern/partition.c (grub_partition_probe): Initialize PART to
45503 NULL. Otherwise, when no partition map is registered, this returns
45504 a garbage.
45505
b28b81b2 455062005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45507
45508 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45509 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45510 valid.
45511
5f3607e0 455122005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45513
45514 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45515 information on each device, if it does not have partitions. Print
45516 "Device" instead of "Disk", because this function is not specific
45517 to disk devices.
45518
45519 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45520 static to ensure that it is put on the memory rather than a
45521 register.
45522
502c87e8 455232005-07-17 Yoshinori Okuji <okuji@enbug.org>
45524
45525 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45526 (grub_cat_init): Likewise.
45527 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45528 (options): Likewise.
45529 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45530 (grub_configfile_init): Likewise.
45531 * font/manager.c (GRUB_MOD_INIT): Likewise.
45532 * commands/help.c (GRUB_MOD_INIT): Likewise.
45533 (grub_help_init): Likewise.
45534 * normal/command.c (grub_command_init): Likewise.
45535 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45536 * disk/loopback.c (grub_loop_init): Likewise.
45537 (GRUB_MOD_INIT): Likewise.
45538 * commands/ls.c (grub_ls_init): Likewise.
45539 (GRUB_MOD_INIT): Likewise.
45540 (options): Likewise.
45541 * commands/boot.c (grub_boot_init): Likewise.
45542 (GRUB_MOD_INIT): Likewise.
45543 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45544 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45545 (GRUB_MOD_INIT): Likewise.
45546 * commands/cmp.c (grub_cmp_init): Likewise.
45547 (GRUB_MOD_INIT): Likewise.
45548
45549 * normal/arg.c: Use <> instead of "" to include header files.
45550 (SHORT_ARG_HELP): New macro.
45551 (SHORT_ARG_USAGE): Likewise.
45552 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45553 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45554 descriptions.
45555 (find_short): Check if C is 'h' or 'u' explicitly.
45556 (grub_arg_show_help): Use space characters instead of tabs. Treat
45557 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45558 are shown with --help and --usage only if they are not used for
45559 the command itself.
45560 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45561 'h' and 'u'.
45562
45563 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45564 const into "longarg". Change the type of "shortarg" to int.
45565
f806d18e 455662005-07-17 Yoshinori Okuji <okuji@enbug.org>
45567
45568 * boot/i386/pc/boot.S (boot_drive_check): New label.
45569
45570 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45571 macro.
45572
45573 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45574 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45575
e293232b 455762005-07-17 Yoshinori Okuji <okuji@enbug.org>
45577
45578 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45579 When turning off Gate A20, skip the check and return immediately,
45580 because this is not fatal usually.
45581
ebedfd00 455822005-07-17 Yoshinori Okuji <okuji@enbug.org>
45583
45584 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45585 be 0x7C00 instead of 0x8000.
45586
45587 * boot/i386/pc/pxeboot.S: Rewritten.
45588
45589 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45590 EXT_C.
45591 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45592 result.
45593
654fc59f 455942005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45595
45596 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45597 robustness. This routine now supports a BIOS call and System
45598 Control Port A to modify the gate A20.
45599
45600 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45601 Increased to 0x440.
45602
09f9923f 456032005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45604
45605 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45606 device path and resulting ihandle.
45607 (grub_ofdisk_close): dprintf the ihandle being closed.
45608 (grub_ofdisk_read): dprintf function parameters.
45609 * kern/mm.c (grub_mm_init_region): Likewise.
45610 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45611 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45612 size, and boot arguments.
45613 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45614 before loading into memory.
45615 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45616 before loading into memory.
45617
7ef504d8 456182005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45619
45620 * kern/mm.c: Added much documentation.
45621 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45622 8, set to 5 instead of 8.
45623
e0f050c2 456242005-07-10 Yoshinori Okuji <okuji@enbug.org>
45625
45626 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45627
45628 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45629 (grub_mkdevicemap_SOURCES): New variable.
45630
45631 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45632 lib/device.c of GRUB Legacy.
45633
7224189a 456342005-07-10 Yoshinori Okuji <okuji@enbug.org>
45635
45636 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45637 instead of PATH is NULL.
45638
68c864eb 456392005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45640
45641 * commands/cmp.c (BUFFER_SIZE): New macro.
45642 (grub_cmd_cmp): Close the right file at the right time. Compare
45643 only data just read. Don't report files of different size as
45644 identical. Dynamically allocate buffers. Move variable
45645 declarations at the beginning of function.
45646
e6f3e614 456472005-07-09 Yoshinori Okuji <okuji@enbug.org>
45648
45649 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45650 reverse.
45651
f8f1559a 456522004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45653
45654 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45655 when backspace is pressed at beginning of line.
45656
39c9d41d 456572005-07-03 Yoshinori Okuji <okuji@enbug.org>
45658
45659 * DISTLIST: Added genfslist.sh.
45660
45661 * normal/main.c (fs_module_list): New variable.
45662 (autoload_fs_module): New function.
45663 (read_fs_list): Likewise.
45664 (grub_normal_execute): Call read_fs_list.
45665
45666 * kern/fs.c (grub_fs_autoload_hook): New variable.
45667 (grub_fs_probe): Added support for auto-loading.
45668
45669 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45670 (grub_fs_module_list_t): New type.
45671
45672 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45673 (grub_fs_autoload_hook): New prototype.
45674
45675 * genfslist.sh: New file.
f19dbdb7 45676
39c9d41d 45677 * genmk.rb: Added a rule to generate a filesystem list.
45678
121c1d83 456792005-06-30 Marco Gerards <metgerards@student.han.nl>
45680
45681 * configure.ac: Fix the test for cross-compiling.
45682
45683 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45684 define GRUB_UTIL anymore.
45685
45686 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45687 so this function works on other systems than just big endian.
45688 (load_modules): Likewise.
45689 (add_segments): Likewise.
45690
e75d76e1 456912005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45692
45693 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45694 contains `l' modifier, get a long from va_arg().
45695
50b5a0a7 456962005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45697
45698 * kern/mm.c (grub_free): If the next free block which is being
45699 merged is the first free block, set the first block to the block
45700 being freed.
45701 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45702
89371b20 457032005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45704
45705 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45706 `grub_ieee1275_chosen'.
45707
168d6e58 457082005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45709
45710 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45711 (grub_ieee1275_chosen): New variable.
45712 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45713 `chosen'.
45714 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45715 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45716 Rename first argument to `phandle' for consistency.
45717 (grub_ieee1275_get_property_length): Likewise.
45718 (grub_ieee1275_next_property): Likewise. Change type of first argument
45719 to grub_ieee1275_phandle_t.
45720 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45721 Move export next to declaration.
45722 (grub_ieee1275_chosen): New variable.
45723 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45724 Correct cosmetic typo.
45725 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45726 `grub_ieee1275_chosen'.
45727 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45728 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45729 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45730 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45731 `grub_ieee1275_chosen'.
45732
ca5baa3f 457332005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45734
45735 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45736 /chosen/bootargs.
45737 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45738 /chosen/bootargs as "variable=value" pairs.
45739
708b345f 457402005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45741
45742 * include/grub/misc.h (grub_dprintf): New macro.
45743 (grub_real_dprintf): New prototype.
45744 (grub_strword): Likewise.
45745 (grub_iswordseparator): Likewise.
45746 * kern/misc.c (grub_real_dprintf): New function.
45747 (grub_strword): Likewise.
45748 (grub_iswordseparator): Likewise.
45749
f4c5e67c 457502005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45751
45752 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45753 (roundup): Remove macro.
45754 (grub_ieee1275_flags): Make static.
45755 (grub_ieee1275_realmode): Remove.
45756 (grub_ieee1275_test_flag): New function.
45757 (grub_ieee1275_set_flag): Likewise.
45758 (find_options): Rename to `grub_ieee1275_find_options'; update
45759 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45760 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45761 (cmain): New prototype.
45762 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45763 `grub_ieee1275_flags' directly.
45764 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45765 machine/biosdisk.h.
45766 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45767 Don't include grub/machine/init.h.
45768 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45769 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45770 Remove prototype.
45771 (grub_ieee1275_realmode): Likewise.
45772 (grub_ieee1275_flag): New enum.
45773 (grub_ieee1275_test_flag): New prototype.
45774 (grub_ieee1275_set_flag): New prototype.
45775 * include/grub/powerpc/ieee1275/init.h: Remove file.
45776 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45777 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45778 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45779 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45780 comment.
45781 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45782 `grub_ieee1275_test_flag'.
45783 (grub_ieee1275_encode_devname): Likewise.
45784
ed16607e 457852005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45786
45787 * include/grub/powerpc/ieee1275/ieee1275.h
45788 (grub_ieee1275_encode_devname): New prototype.
45789 (grub_ieee1275_get_filename): Likewise.
45790 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45791 function.
45792 (grub_set_prefix): Likewise.
45793 (grub_machine_init): Call grub_set_prefix.
45794 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45795 (grub_parse_type): New enum.
45796 (grub_ieee1275_get_devargs): New function.
45797 (grub_ieee1275_get_devname): Likewise.
45798 (grub_ieee1275_parse_args): Likewise.
45799 (grub_ieee1275_get_filename): Likewise.
45800 (grub_ieee1275_encode_devname): Likewise.
45801
be369920 458022005-03-30 Marco Gerards <metgerards@student.han.nl>
45803
45804 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45805 `grub_loader_unset'.
45806
a5ce3a4a 458072005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45808
45809 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45810 instead of grub_ieee1275_interpret.
45811 (grub_halt_init): New function.
45812 (grub_halt_fini): Likewise.
45813 (GRUB_MOD_INIT): Correct message grammar.
45814 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45815 instead of grub_ieee1275_interpret.
45816 (grub_reboot_init): New function.
45817 (grub_reboot_fini): Likewise.
45818 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45819 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45820 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45821 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45822 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45823 function.
45824 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45825 Add prototype.
45826 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45827 prototype.
45828 (grub_halt): Likewise.
45829 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45830 (cmain): Remove __attribute__((unused)).
45831 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45832 (grub_heap_len): Likewise.
45833 (grub_machine_fini): New function.
45834 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45835 (grub_halt): Likewise.
45836 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45837 function.
45838 * util/powerpc/ieee1275/misc.c: New file.
45839
0058f771 458402005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45841
45842 * DISTLIST: New file.
45843 * gendistlist.sh: Likewise.
f19dbdb7 45844
0058f771 45845 * Makefile.in (COMMON_DISTFILES): Removed.
45846 (BOOT_DISTFILES): Likewise.
45847 (CONF_DISTFILES): Likewise.
45848 (DISK_DISTFILES): Likewise.
45849 (FS_DISTFILES): Likewise.
45850 (INCLUDE_DISTFILES): Likewise.
45851 (KERN_DISTFILES): Likewise.
45852 (LOADER_DISTFILES): Likewise.
45853 (TERM_DISTFILES): Likewise.
45854 (UTIL_DISTFILES): Likewise.
45855 (DISTFILES): Likewise.
45856 (uninstall): Uninstall files in $(pkgdata_DATA).
45857 (DISTLIST): New target.
45858 (distdir): Use the contents of the file DISTLIST to get a list of
45859 distributed files.
45860
46b3b8a5 458612005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45862
45863 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45864 descriptor. This is ported from GRUB Legacy.
45865
45866 * gencmdlist.sh: Added an extra semicolon to make it work with
45867 old sed versions. Reported by Robert Bihlmeyer
45868 <robbe@orcus.priv.at>.
45869
5822ff87 458702005-03-08 Yoshinori Okuji <okuji@enbug.org>
45871
45872 Automatic loading of commands is supported.
f19dbdb7 45873
5822ff87 45874 * normal/main.c (read_command_list): New function.
45875 (grub_normal_execute): Call read_command_list.
45876
45877 * normal/command.c (grub_register_command): Return zero or CMD.
45878 Allocate CMD->NAME from the heap.
45879 Initialize CMD->MODULE_NAME to zero.
45880 Find the same name as well. If the same command is found and it is
45881 a dummy command, overwrite members. If it is not a dummy command,
45882 return zero.
45883 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45884 (grub_command_find): If a dummy command is found, load a module
45885 and retry to find a command only once.
45886
45887 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45888 make sure that each command is loaded.
45889
45890 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45891 macro.
45892 (struct grub_command): Remove const from the member `name'.
45893 Add a new member `module_name'.
45894 (grub_register_command): Return grub_command_t.
45895
45896 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45897 sure that each command is loaded.
45898
45899 * genmk.rb (PModule::rule): Specify a module name without the
45900 suffix ".mod" to gencmdlist.sh.
45901
7b1f4b57 459022005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45903
45904 * gencmdlist.sh: New file.
f19dbdb7 45905
7b1f4b57 45906 * genmk.rb (PModule::rule): Generate a rule for a command list.
45907 Clean command.lst.
45908 Generate command.lst from $(COMMANDFILES).
45909
45910 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45911 (DATA): Added $(pkgdata_DATA).
45912 (install-local): Install files in $(pkgdata_DATA).
45913
062aaf39 459142005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45915
45916 * term/i386/pc/vga.c (debug_command): Removed.
45917 (GRUB_MOD_INIT): Do not register the command "debug".
45918
45919 From Hollis Blanchard:
45920 * commands/configfile.c: New file.
45921 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45922 commands/configfile.c.
45923 (pkgdata_MODULES): Added configfile.mod.
45924 (configfile_mod_SOURCES): New variable.
45925 (configfile_mod_CFLAGS): Likewise.
45926 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45927 commands/configfile.c.
45928 (pkgdata_MODULES): Added configfile.mod.
45929 (configfile_mod_SOURCES): New variable.
45930 (configfile_mod_CFLAGS): Likewise.
45931 * util/grub-emu.c (main): Call grub_configfile_init and
45932 grub_configfile_fini.
45933 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45934 prototype.
45935 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 45936
cee01aa6 459372005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45938
45939 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45940 address.
45941
45942 * commands/help.c (grub_cmd_help): Do not print newlines after
45943 the last command in print_command_help.
45944
93f3a1d8 459452005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45946
45947 * commands/default.h: New file.
45948 * commands/timeout.h: Likewise.
45949 * normal/context.c: Likewise.
f19dbdb7 45950
93f3a1d8 45951 * util/misc.c: Do not include sys/times.h.
45952 Include sys/time.h and grub/machine/time.h.
45953 (grub_get_rtc): Rewritten with gettimeofday.
45954
45955 * util/grub-emu.c (main): Call grub_default_init and
45956 grub_timeout_init before grub_normal_init, and call
45957 grub_timeout_fini and grub_default_fini after grub_main.
45958
45959 * util/console.c (grub_ncurses_checkkey): Return the read
45960 character or -1.
45961
45962 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45963 timeouts.
45964
45965 * normal/main.c (read_config_file): Push MENU. If this fails,
45966 print an error and wait for a user input.
45967 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45968 If a menu is empty or an error occurs, pop MENU.
45969 (grub_normal_execute): Pop and free MENU after grub_menu_run
45970 returns.
45971
45972 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45973
45974 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45975 include time.h.
45976 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45977 without GRUB_UTIL.
45978 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45979 time.h.
45980 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45981 without GRUB_UTIL.
45982
45983 * include/grub/normal.h (struct grub_menu_list): New struct.
45984 (grub_menu_list_t): New type.
45985 (struct grub_context): New struct.
45986 (grub_context_t): New type.
45987 (grub_register_command): Got rid of EXPORT_FUNC.
45988 (grub_unregister_command): Likewise.
45989 (grub_context_get): New prototype.
45990 (grub_context_get_current_menu): Likewise.
45991 (grub_context_push_menu): Likewise.
45992 (grub_context_pop_menu): Likewise.
45993 [GRUB_UTIL] (grub_default_init): Likewise.
45994 [GRUB_UTIL] (grub_default_fini): Likewise.
45995 [GRUB_UTIL] (grub_timeout_init): Likewise.
45996 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45997
45998 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45999 commands/timeout.c and normal/context.c.
46000 (pkgdata_MODULES): Added default.mod and timeout.mod.
46001 (normal_mod_SOURCES): Added normal/context.c.
46002 (default_mod_SOURCES): New variable.
46003 (default_mod_CFLAGS): Likewise.
46004 (timeout_mod_SOURCES): Likewise.
46005 (timeout_mod_CFLAGS): Likewise.
46006 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46007 conf/i386-pc.rmk.
46008 (pkgdata_MODULES): Added default.mod and timeout.mod.
46009 (normal_mod_SOURCES): Added normal/context.c.
46010 (default_mod_SOURCES): New variable.
46011 (default_mod_CFLAGS): Likewise.
46012 (timeout_mod_SOURCES): Likewise.
46013 (timeout_mod_CFLAGS): Likewise.
46014
46015 * Makefile.in (all-local): Added $(MKFILES).
46016
4ed2e1dd 460172005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46018
46019 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46020 (grub_emu_SOURCES): Likewise.
46021 (pkgdata_MODULES): Add `sun.mod'.
46022 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46023 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46024 `partmap/sun.c'.
46025 (pkgdata_MODULES): Add `sun.mod'.
46026 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46027 * include/grub/partition.h (grub_sun_partition_map_init): New
46028 prototype.
46029 (grub_sun_partition_map_fini): Likewise.
46030 * partmap/sun.c: New file.
46031 * util/grub-emu.c (main): Initialize and de-initialize the sun
46032 partitionmap support.
46033
4d4e372e 460342005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46035
46036 This implements an Emacs-like menu entry editor.
f19dbdb7 46037
4d4e372e 46038 * normal/menu_entry.c: New file.
f19dbdb7 46039
4d4e372e 46040 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46041 characters to ASCII.
46042 (saved_char): New variable.
46043 (grub_ncurses_checkkey): Rewritten completely.
46044 (grub_ncurses_getkey): Likewise.
46045 (grub_ncurses_init): Call raw instead of cbreak.
46046
46047 * normal/menu.c (print_entry): Do not put a space.
46048 (init_page): Renamed to ...
46049 (grub_menu_init_page): ... this. All callers changed.
46050 (edit_menu_entry): Removed.
46051 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46052
46053 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46054
46055 * kern/misc.c (grub_vprintf): Call grub_refresh.
46056
46057 * normal/menu.c (DISP_LEFT): Renamed to ...
46058 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46059 * normal/menu.c (DISP_UP): Renamed to ...
46060 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46061 * normal/menu.c (DISP_RIGHT): Renamed to ...
46062 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46063 * normal/menu.c (DISP_DOWN): Renamed to ...
46064 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46065 * normal/menu.c (DISP_HLINE): Renamed to ...
46066 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46067 * normal/menu.c (DISP_VLINE): Renamed to ...
46068 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46069 * normal/menu.c (DISP_UL): Renamed to ...
46070 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46071 * normal/menu.c (DISP_UR): Renamed to ...
46072 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46073 * normal/menu.c (DISP_LL): Renamed to ...
46074 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46075 * normal/menu.c (DISP_LR): Renamed to ...
46076 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46077 * normal/menu.c (TERM_WIDTH): Renamed to ...
46078 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46079 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46080 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46081 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46082 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46083 * normal/menu.c (TERM_MARGIN): Renamed to ...
46084 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46085 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46086 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46087 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46088 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46089 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46090 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46091 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46092 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46093 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46094 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46095 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46096 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46097 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46098 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46099 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46100 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46101 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46102 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46103 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46104 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46105 All callers changed.
46106
46107 * include/grub/normal.h: New prototype.
46108
46109 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46110 normal/menu_entry.c.
46111 (normal_mod_SOURCES): Likewise.
46112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46113 (normal_mod_SOURCES): Likewise.
46114
e6b92c8a 461152005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46116
46117 * include/grub/normal.h (grub_halt_init): New prototype.
46118 (grub_halt_fini): Likewise.
46119 (grub_reboot_init): Likewise.
46120 (grub_reboot_fini): Likewise.
46121
46122 * util/grub-emu.c: Include signal.h.
46123 (main_env): New global variable.
46124 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46125 catch C-c.
46126 (grub_machine_fini): New function.
46127 (main): Call grub_halt_init and grub_reboot_init before
46128 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46129 Call setjmp with MAIN_ENV to go back afterwards.
46130 Call grub_machine_fini right before return.
46131
46132 * include/grub/util/misc.h: Include setjmp.h.
46133 (main_env): New prototype.
46134
46135 * include/grub/kernel.h (grub_machine_fini): New prototype.
46136 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46137 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46138
46139 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46140 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46141 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 46142
e6b92c8a 46143 * util/i386/pc/misc.c: New file.
f19dbdb7 46144
e6b92c8a 46145 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46146 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46147 commands/i386/pc/reboot.c.
46148
c642636f 461492005-02-14 Guillem Jover <guillem@hadrons.org>
46150
46151 * include/grub/dl.h (grub_dl_check_header): New prototype.
46152 (grub_arch_dl_check_header): Change return type to grub_err_t,
46153 remove size parameter and export function. Update all callers.
46154 * kern/dl.c (grub_dl_check_header): New function.
46155 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46156 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46157 are inside the core.
46158 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46159 independent ELF header checks.
46160 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46161 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46162 `grub_dl_check_header' instead of explicit checks. Check for the
46163 ELF type.
46164 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46165 `grub_dl_check_header' instead of explicit checks. Remove arch
46166 specific ELF header checks.
46167
e6b92c8a 46168 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46169 argument SIZE.
46170
5eabe94b 461712005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46172
46173 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46174 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46175
1b14a681 461762005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46177
46178 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 46179 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 46180 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 46181 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 46182 * partmap/amiga.c (amiga_partition_map_iterate): Return
46183 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46184 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46185
aca108aa 461862005-02-01 Guillem Jover <guillem@hadrons.org>
46187
46188 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46189 help info.
46190
c9f9c556 461912005-01-31 Marco Gerards <metgerards@student.han.nl>
46192
46193 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46194 Removed prototype.
46195 (grub_rescue_cmd_linux): New prototype.
46196 (grub_rescue_cmd_initrd): Likewise.
46197 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46198 `bi_rec'.
46199 (grub_linux_release_mem): Release the memory for the initrd.
46200 (grub_load_linux): Renamed from this...
46201 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46202 Changed `entry' not to be static. Loop over memory regions to
46203 find another one when the default fails.
46204 (grub_rescue_cmd_initrd): New function.
46205 (grub_linux_init): Remove function.
46206 (grub_linux_fini): Likewise.
46207 (GRUB_MOD_INIT): Register `initrd'.
46208 (GRUB_MOD_FINI): Unregister `initrd'.
46209 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46210 Function removed.
46211 (grub_linux_normal_fini): Likewise.
46212 (GRUB_MOD_INIT): Register `initrd'.
46213 (GRUB_MOD_FINI): Unregister `initrd'.
46214
990cf3aa 462152005-01-31 Marco Gerards <metgerards@student.han.nl>
46216
46217 * commands/help.c: New file.
46218 * normal/arg.c (show_help): Renamed to...
46219 (grub_arg_show_help): ... this.
46220 * commands/i386/pc/halt.c: New file.
46221 * commands/i386/pc/reboot.c: Likewise.
46222 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46223 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46224 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46225 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46226 variables.
46227 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46228 `commands/help.c'.
46229 (pkgdata_MODULES): Add `help.mod'.
46230 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46231 * grub/i386/pc/init.h (grub_reboot): New prototype.
46232 (grub_halt): Likewise.
46233 * include/grub/normal.h (grub_arg_show_help): New prototype.
46234 (grub_help_init): Likewise.
46235 (grub_help_fini): Likewise.
46236 * util/grub-emu.c (main): Initialize and deinitialize the help
46237 command.
46238
46239 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46240
46241 * normal/command.c (grub_command_init): Fixed the description of
46242 the `set' and `unset' commands.
46243
462442005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 46245
46246 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46247 function.
46248 * commands/ieee1275/halt.c: New file.
46249 * commands/ieee1275/reboot.c: Likewise.
46250 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46251 `__attribute__ ((unused))'. Some GCS related fixed.
46252 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46253 (grub_suspend_fini): Likewise.
46254 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46255 and `halt.mod'.
46256 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46257 (halt_mod_CFLAGS): New variables.
46258 * include/grub/powerpc/ieee1275/ieee1275.h
46259 (grub_ieee1275_interpret): New prototype.
46260
1ab09cc7 462612005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46262
46263 * include/grub/misc.h (memmove): New prototype.
46264 (memcpy): Likewise.
46265
8b8cbdb2 462662005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46267
46268 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46269 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46270
e3741a27 462712005-01-22 Marco Gerards <metgerards@student.han.nl>
46272
46273 * kern/misc.c (grub_strndup): Function rewritten.
46274
776bd780 462752005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46276
46277 * normal/menu.c (TERM_WIDTH): Macro redefined.
46278 (TERM_TOP_BORDER_Y): Likewise.
46279 (draw_border): Replaced while-loop by a for-loop. Make the number
46280 of lines consistent with the number of lines displayed in
46281 print_entries. Added a margin below the rectangle.
46282 (print_entry): Make the entry fit in the rectangle.
46283 (print_entries): Display the scroll arrows next to the right
46284 border.
46285
78026bce 462862005-01-21 Marco Gerards <metgerards@student.han.nl>
46287
46288 * fs/minix.c (grub_minix_find_file): Reserve more space for
46289 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46290 `grub_strncpy' to copy `path' into it.
46291
67bbaf0f 462922005-01-21 Marco Gerards <metgerards@student.han.nl>
46293
46294 Add the loopback device, a device via which files can be accessed
46295 as devices.
f19dbdb7 46296
67bbaf0f 46297 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46298 (pkgdata_MODULES): Add loopback.mod.
46299 (loopback_mod_SOURCES): New variable.
46300 (loopback_mod_CFLAGS): Likewise.
46301 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46302 `disk/loopback.c'.
46303 (pkgdata_MODULES): Add loopback.mod.
46304 (loopback_mod_SOURCES): New variable.
46305 (loopback_mod_CFLAGS): Likewise.
46306 * disk/loopback.c: new file.
46307 * include/grub/normal.h (grub_loop_init): New prototype.
46308 (grub_loop_fini): New prototype.
46309 * util/grub-emu.c (main): Initialize and de-initialize loopback
46310 support.
46311 * include/grub/disk.h (grub_disk_dev_id): Add
46312 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46313
6f1c18bd 463142005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46315
46316 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46317 function.
46318 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46319 (suspend_mod_SOURCES): New variable.
46320 (suspend_mod_CFLAGS): Likewise.
46321 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46322 New prototype.
46323 * commands/ieee1275/suspend.c: New file.
46324
b38551da 463252005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46326
46327 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 46328 ((unused))' to `__attribute__ ((used))'.
b38551da 46329 (GRUB_MOD_FINI): Likewise.
46330 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46331 * genmk.rb (PModule): Assign space to common symbols when linking
46332 modules.
46333
777aff39 463342005-01-20 Marco Gerards <metgerards@student.han.nl>
46335
46336 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46337 `unsigned' arguments to `grub_size_t'.
46338 (grub_malloc): Likewise.
46339 (grub_realloc): Likewise.
46340 (grub_memalign): Likewise.
46341 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46342 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46343 * util/misc.c (grub_malloc): Likewise.
46344 (grub_realloc): Likewise.
46345 * kern/mm.c (get_header_from_pointer): Change the casts to
46346 `unsigned' into a cast to `grub_size_t'.
46347
46348 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46349 point to `currnode' when `currnode' is changed.
46350
46351 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46352 Schottelius <nico-linux@schottelius.org>.
46353
d0ff18e1 463542005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46355
46356 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46357 (note_path): Remove variable.
46358 (GRUB_IEEE1275_NOTE_NAME): New macro.
46359 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46360 (grub_ieee1275_note_hdr): New structure.
46361 (grub_ieee1275_note_desc): Likewise.
46362 (grub_ieee1275_note): Likewise.
46363 (load_note): Remove `dir' argument. All callers updated. Remove
46364 `note_img' and `path'. Do not load a file from `note_path'.
46365 Initialize a struct grub_ieee1275_note and write that to `out'.
46366 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46367
4ca7004c 463682005-01-05 Marco Gerards <metgerards@student.han.nl>
46369
46370 * util/misc.c (grub_util_read_image): Revert last change. It
46371 called `grub_util_read_at', which seeks from the beginning of the
46372 file.
46373
0b412211 463742005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46375
46376 * TODO: Add note about endianness in grub-mkimage.
46377 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46378 section.
46379 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46380 (grub_mkimage_SOURCES): New target.
46381 * include/grub/kernel.h (grub_start_addr): Remove variable.
46382 (grub_end_addr): Likewise.
46383 (grub_total_module_size): Likewise.
46384 (grub_kernel_image_size): Likewise.
46385 (GRUB_MODULE_MAGIC): New constant.
46386 (grub_module_info): New structure.
46387 (grub_arch_modules_addr): New prototype.
46388 (grub_get_end_addr): Remove prototype.
46389 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46390 * include/grub/powerpc/ieee1275/kernel.h: New file.
46391 * include/grub/util/misc.h (grub_util_get_fp_size): New
46392 prototype.
46393 (grub_util_read_at): Likewise.
46394 (grub_util_write_image_at): Likewise.
46395 * kern/main.c (grub_get_end_addr): Remove function.
46396 (grub_load_modules): Call grub_arch_modules_addr instead of using
46397 grub_end_addr. Look for a grub_module_info struct in memory. Use
46398 the grub_module_info fields instead of calling grub_get_end_addr
46399 as loop conditions. Move grub_add_unused_region code here.
46400 (grub_add_unused_region): Remove function.
46401 * kern/i386/pc/init.c: Include grub/cache.h.
46402 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46403 one call to add_mem_region.
46404 (grub_arch_modules_addr): New function.
46405 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46406 (grub_total_module_size): Likewise.
46407 Include grub/machine/kernel.h.
46408 (grub_arch_modules_addr): New function.
46409 * util/grub-emu.c (grub_end_addr): Remove variable.
46410 (grub_total_module_size): Likewise.
46411 (grub_arch_modules_addr): New function.
46412 * util/misc.c: Include unistd.h.
46413 (grub_util_get_fp_size): New function.
46414 (grub_util_read_at): Likewise.
46415 (grub_util_write_image_at): Likewise.
46416 (grub_util_read_image): Call grub_util_read_at.
46417 (grub_util_write_image): Call grub_util_write_image_at.
46418 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46419 additional memory in kernel_img for a struct grub_module_info.
46420 Fill in that grub_module_info.
46421 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46422
458786f8 464232005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46424
46425 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46426 New function.
46427 * include/grub/powerpc/ieee1275/ieee1275.h
46428 (grub_ieee1275_milliseconds): New prototype.
46429 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46430 Change to 1000.
46431 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46432 grub_ieee1275_milliseconds.
46433
ac507d1b 464342005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46435
46436 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46437 variable.
46438 (find_options): New function.
46439 (cmain): Call find_options.
46440 * include/grub/powerpc/ieee1275/ieee1275.h
46441 (grub_ieee1275_realmode): New extern variable.
46442 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46443 grub_map if grub_ieee1275_realmode is false.
46444
6b8fd1c4 464452004-12-29 Marco Gerards <metgerards@student.han.nl>
46446
46447 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46448 lines are inserted and make it work like readline. Reported by
46449 Vincent Pelletier <subdino2004@yahoo.fr>.
46450
8514a1e0 464512004-12-28 Marco Gerards <metgerards@student.han.nl>
46452
46453 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46454
46455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46456 `kern/powerpc/cache.S'.
46457
924b6140 464582004-12-27 Marco Gerards <metgerards@student.han.nl>
46459
46460 * genmk.rb: Handle the `Program' class in the main loop. Written
46461 by Johan Rydberg <jrydberg@gnu.org>.
46462 (Program): New class.
46463 (programs): New variable.
46464 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46465 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46466 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46467 (help_arch): Function removed.
46468 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46469 `powerpc/libgcc.h' and `loader.h'.
46470 (pkgdata_PROGRAMS): New variable.
46471 (sbin_UTILITIES): Variable removed.
46472 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46473 (grubof_SOURCES): Variable re-defined so it only includes the
46474 core functionality.
46475 (grubof_CFLAGS): Remove `-DGRUBOF'.
46476 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46477 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46478 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46479 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46480 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46481 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46482 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46483 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46484 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46485 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46486 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46487 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46488 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46489 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46490 (pc_mod_CFLAGS): New variables.
46491 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46492 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46493 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46494 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46495 Moved from here...
46496 * include/grub/i386/pc/init.h (grub_os_area_addr)
46497 (rub_os_area_size): ... to here.
46498 * include/grub/powerpc/ieee1275/ieee1275.h
46499 (grub_ieee1275_entry_fn): Export symbol.
46500 * include/grub/powerpc/ieee1275/init.h: New file.
46501 * include/grub/powerpc/libgcc.h: Likewise.
46502 * include/grub/cache.h: Likewise.
46503 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46504 <hollis@penguinppc.org>.
46505 * kern/dl.c: Include <grub/cache.h>.
46506 (grub_dl_flush_cache): New function.
46507 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46508 for this module.
46509 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46510 (grub_console_init): Removed prototypes.
46511 (grub_machine_init): Don't initialize the modules anymore.
46512 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46513 static.
46514 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46515 Macro undef removed.
46516 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46517 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46518 relocation `R_PPC_REL32'. Return an error when the relocation is
46519 unknown.
46520 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46521 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46522 * util/misc.c (grub_arch_sync_caches): Likewise.
46523
e4b47e0c 465242004-12-19 Marco Gerards <metgerards@student.han.nl>
46525
46526 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46527 `symlist.c', add `grubof_symlist.c'.
46528 (symlist.c): Variable removed.
46529 (grubof_HEADERS): Variable added.
46530 (grubof_symlist.c): New target.
46531 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46532 `kernel_img_HEADERS'.
46533 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46534 * kern/powerpc/dl.c: New file.
46535 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46536 Function removed.
46537 (grub_arch_dl_relocate_symbols): Likewise.
46538 (grub_register_exported_symbols): Likewise.
46539
4ceb3636 465402004-12-13 Marco Gerards <metgerards@student.han.nl>
46541
46542 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46543 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46544 to fail instead. Reported by Vincent Pelletier
46545 <subdino2004@yahoo.fr>.
46546
46547 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46548 it is not allocated. Reported by Vincent Pelletier
46549 <subdino2004@yahoo.fr>.
46550
46551 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46552 output so the output looks better.
f19dbdb7 46553
3f1578fe 465542004-12-04 Marco Gerards <metgerards@student.han.nl>
46555
46556 Modulize the partition map support and add support for the amiga
46557 partition map.
f19dbdb7 46558
3f1578fe 46559 * commands/ls.c: Include <grub/partition.h> instead of
46560 <grub/machine/partition.h>.
46561 * kern/disk.c: Likewise.
46562 * kern/rescue.c: Likewise.
46563 * loader/i386/pc/chainloader.c: Likewise.
46564 * normal/cmdline.c: Likewise.
46565 * kern/powerpc/ieee1275/init.c: Likewise.
46566 (grub_machine_init): Call `grub_pc_partition_map_init',
46567 `grub_amiga_partition_map_init' and
46568 `grub_apple_partition_map_init'.
46569 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46570 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46571 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46572 `partition.h' and `pc_partition.h'.
46573 (grub_setup_SOURCES): Remove
46574 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46575 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46576 (grub_emu_SOURCES): Likewise.
46577 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46578 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46579 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46580 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46581 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46582 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46583 (grubof_SOURCES): Likewise.
46584 * disk/i386/pc/partition.c: File removed.
46585 * disk/powerpc/ieee1275/partition.c: Likewise.
46586 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46587 * include/grub/i386/pc/partition.h: Likewise.
46588 * kern/partition.c: New file.
46589 * partmap/amiga.c: Likewise.
46590 * partmap/apple.c: Likewise.
46591 * partmap/pc.c: Likewise.
46592 * include/grub/partition.h: Likewise..
46593 * include/grub/pc_partition.h: Likewise.
46594 * util/grub-emu.c: Include <grub/partition.h> instead of
46595 <grub/machine/partition.h>.
46596 (main): Call `grub_pc_partition_map_init',
46597 `grub_amiga_partition_map_init' and
46598 `grub_apple_partition_map_init' and deinitialize afterwards.
46599 * util/i386/pc/biosdisk.c: Include `#include
46600 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46601 `<grub/machine/partition.h>'.
46602 * util/i386/pc/grub-setup.c: Likewise.
46603 * util/i386/pc/biosdisk.c: Likewise.
46604 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46605 partition information in case of a PC partition.
46606 * util/i386/pc/grub-setup.c: Include `#include
46607 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46608 `<grub/machine/partition.h>'.
46609 (setup): Only access the PC specific partition information in case
46610 of a PC partition.
46611
0ef4ced9 466122004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 46613
0ef4ced9 46614 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46615 (grub_longjmp): Likewise.
46616 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46617 20.
46618 * normal/powerpc/setjmp.S: New file.
46619 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46620 `normal/powerpc/setjmp.S'.
46621 (grubof_CFLAGS): Add `-DGRUBOF'.
46622 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46623 [GRUB_UTIL && !GRUBOF].
f19dbdb7 46624
19950e29 466252004-11-16 Marco Gerards <metgerards@student.han.nl>
46626
46627 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46628 property named `name'. Correctly handle the error returned by
46629 `grub_ieee1275_finddevice' if a device can not be opened.
46630
a2fea427 466312004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46632
46633 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46634 `actual' for negativity.
46635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46636 kern/fshelp.c.
46637
41ea0ea3 466382004-11-01 Marco Gerards <metgerards@student.han.nl>
46639
46640 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46641 (PAGE_OFFSET): New macro.
46642 (CRTC_ADDR_PORT): Likewise.
46643 (CRTC_DATA_PORT): Likewise.
46644 (START_ADDR_HIGH_REGISTER): Likewise.
46645 (START_ADDR_LOW_REGISTER): Likewise.
46646 (GRAPHICS_ADDR_PORT): Likewise.
46647 (GRAPHICS_DATA_PORT): Likewise.
46648 (READ_MAP_REGISTER): Likewise.
46649 (INPUT_STATUS1_REGISTER): Likewise.
46650 (INPUT_STATUS1_VERTR_BIT): Likewise.
46651 (page): New variable.
46652 (wait_vretrace): New function.
46653 (set_read_map): Likewise.
46654 (set_start_address): Likewise.
46655 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46656 the right page.
46657 (check_vga_mem): Take the page into account.
46658 (write_char): Likewise.
46659 (write_cursor): Likewise.
46660 (scroll_up): Likewise. Copy the page to the page that is not
46661 shown and switch between both pages.
46662 (grub_vga_putchar): Fix off by one error.
46663 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46664 account.
46665
ad0bd20b 466662004-11-01 Marco Gerards <metgerards@student.han.nl>
46667
46668 Add support for iso9660 (including rockridge).
f19dbdb7 46669
ad0bd20b 46670 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46671 (iso9660_mod_SOURCES): New variable.
46672 (iso9660_mod_CFLAGS): Likewise.
46673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46674 * include/grub/fs.h (grub_iso9660_init): New prototype.
46675 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46676 * fs/iso9660.c: New file.
46677
46678 * include/grub/misc.h (grub_strncat): New prototype.
46679 * kern/misc.c (grub_strncat): New function.
f19dbdb7 46680
ad0bd20b 46681 * fs/hfs.c (grub_hfs_mount): Translate the error
46682 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46683 * fs/jfs.c (grub_jfs_mount): Likewise.
46684 * fs/ufs.c (grub_ufs_mount): Likewise.
46685
a5477a59 466862004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46687
46688 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46689 which initialized BAT registers.
46690 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46691 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46692 Move from here...
46693 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46694 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46695 ... to here.
46696 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46697 (grub_mapclaim): Likewise.
46698 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46699 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46700 hand.
46701
9304c1f8 467022004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46703
46704 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46705 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46706 -ffreestanding and -msoft-float.
46707
86f4ae25 467082004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46709
46710 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46711 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46712 set in grub_ieee1275_flags.
46713
38912228 467142004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46715
46716 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46717 prototype.
46718 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46719 grub_console_init first.
46720 Change the memory range used for grub_ieee1275_claim and
46721 grub_mm_init_region.
46722 Print an error message if the claim fails.
46723 Include <grub/misc.h>.
46724
d1923dc8 467252004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46726
46727 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46728 Call grub_children_iterate for device nodes of type `scsi',
46729 `ide', or `ata'.
46730 (grub_ofdisk_open): Remove manual device alias resolution.
46731 Fix memory leak when device cannot be opened.
f19dbdb7 46732 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 46733 (grub_children_iterate): New prototype.
46734 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46735 New function.
46736 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46737 Return -1 if args.size was -1.
46738
4512e4f3 467392004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46740
46741 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46742 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46743 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46744 Open Firmware's memory for it; claim memory from _start to _end.
46745 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46746 (_end): New extern.
46747 (_start): Zero BSS from __bss_start to _end.
46748 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46749 New extern.
46750 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46751
4d61feb0 467522004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46753
ad0bd20b 46754 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46755 -1 if args.base was -1.
4d61feb0 46756
026fa2f9 467572004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46758
46759 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46760 escape sequence instead of a literal ^L. Also call
46761 grub_ofconsole_gotoxy.
46762
9f2220ef 467632004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46764
46765 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46766 void * arguments to grub_addr_t. All callers updated. Also make
46767 the `result' argument optional.
46768 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46769 All callers updated.
46770
8a572cd7 467712004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46772
46773 * commands/ls.c (grub_ls_list_files): Use the string following the
46774 initial ')', if present, as the filesystem path.
46775 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46776
46777 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46778
18aa81f2 467792004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46780
46781 Make the source code of the menu interface more readable.
f19dbdb7 46782
18aa81f2 46783 * normal/menu.c: Include grub/mm.h.
46784 (TERM_WIDTH): New macro.
46785 (TERM_HEIGHT): Likewise.
46786 (TERM_INFO_HEIGHT): Likewise.
46787 (TERM_MARGIN): Likewise.
46788 (TERM_SCROLL_WIDTH): Likewise.
46789 (TERM_TOP_BORDER_Y): Likewise.
46790 (TERM_LEFT_BORDER_X): Likewise.
46791 (TERM_BORDER_WIDTH): Likewise.
46792 (TERM_MESSAGE_HEIGHT): Likewise.
46793 (TERM_BORDER_HEIGHT): Likewise.
46794 (TERM_NUM_ENTRIES): Likewise.
46795 (TERM_FIRST_ENTRY_Y): Likewise.
46796 (TERM_ENTRY_WIDTH): Likewise.
46797 (TERM_CURSOR_X): Likewise.
46798 (draw_border): Use macros instead of magic numbers.
46799 (print_entry): Likewise.
46800 (print_entries): Likewise.
46801 (run_menu): Likewise. Also, handle the key 'e'.
46802 (run_menu_entry): Ignore empty command lines.
46803 (print_message): Added a new argument EDIT. If EDIT is true,
46804 print a different message.
46805 (init_page): Likewise.
46806 (edit_menu_entry): New function. Not implemented yet.
46807
b47efe30 468082004-09-17 Marco Gerards <metgerards@student.han.nl>
46809
46810 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46811 can be loaded from normal mode.
f19dbdb7 46812
b47efe30 46813 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46814 `multiboot.mod'.
46815 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46816 (multiboot_mod_CFLAGS): New variables.
46817 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 46818 * loader/i386/pc/multiboot_normal.c: Likewise.
46819
b47efe30 46820 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46821 attribute `unused'.
f19dbdb7 46822
b47efe30 46823 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46824 `fdiro' to read the mode information from instead of `diro'.
46825
46826 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46827 looking up a symlink.
46828
46829 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46830 macro.
46831 * normal/command.c (grub_command_execute): Don't parse the
46832 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46833 flags of the command.
46834
46835 * normal/menu.c (grub_menu_run): Fix typo.
46836
da75ac71 468372004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46838
46839 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46840
46841 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46842 `y + 1' instead of `y - 1'.
46843
46844 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 46845
062b24c2 468462004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46847
46848 From Hollis Blanchard <hollis@penguinppc.org>:
46849 * kern/misc.c (memmove): New alias for grub_memmove.
46850 (memcmp): New alias for grub_memcmp.
46851 (memset): New alias for grub_memset.
f19dbdb7 46852 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 46853 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 46854 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 46855 (grub_ieee1275_get_property): Likewise.
f19dbdb7 46856
8ddad845 468572004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46858
46859 Added normal mode command `chainloader' as module chain.mod, which
46860 depends on normal.mod and _chain.mod.
f19dbdb7 46861
8ddad845 46862 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46863 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46864 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46865 Deleted prototype.
46866 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46867 but arguments parsing moved to ...
46868 (grub_chainloader_cmd): ... here. New function.
46869 * include/grub/i386/pc/chainloader.h: New file.
46870 * loader/i386/pc/chainloader_normal.c: Likewise.
46871
2c1f4ce3 468722004-09-11 Marco Gerards <metgerards@student.han.nl>
46873
46874 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46875 (grub_mkimage_LDFLAGS): Likewise.
46876 (grub_emu_SOURCES): Likewise.
46877 (kernel_img_HEADERS): Added fshelp.h.
46878 * fs/ext2.c: Include <grub/fshelp.h>.
46879 (FILETYPE_REG): New macro.
46880 (FILETYPE_INO_REG): Likewise.
46881 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46882 Changed all users.
46883 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46884 all users.
46885 (grub_fshelp_node): New struct.
46886 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46887 to a pointer.
46888 (grub_ext2_get_file_block): Removed function.
46889 (grub_ext2_read_block): New function.
46890 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46891 This function was written.
46892 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46893 (grub_ext2_find_file): Removed function.
46894 (grub_ext2_read_symlink): New function.
46895 (grub_ext2_iterate_dir): Likewise.
46896 (grub_ext2_open): Rewritten.
46897 (grub_ext2_dir): Rewritten.
46898 * include/grub/fshelp.h: New file.
46899 * fs/fshelp.c: Likewise.
46900
3c52136a 469012004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46902
46903 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46904 (print_message): Add a missing newline.
46905 (run_menu): Added timeout support.
46906 (run_menu_entry): New local function.
46907 (grub_menu_run): Added support for booting.
46908
46909 * kern/loader.c (grub_loader_is_loaded): New function.
46910
46911 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46912 (grub_get_rtc): Exported.
46913
46914 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46915 (grub_get_rtc): Exported.
46916
46917 * include/grub/normal.h (struct grub_command_list): Remove
46918 constant from the member `command'.
46919
46920 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46921
46922 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46923
46924 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46925
aa033560 469262004-08-28 Marco Gerards <metgerards@student.han.nl>
46927
46928 Add support for the JFS filesystem.
46929
46930 * fs/jfs.c: New file.
46931 * include/grub/fs.h (grub_jfs_init): New prototype.
46932 (grub_jfs_fini): New prototype.
46933 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46934 (grub_emu_SOURCES): Likewise.
46935 (pkgdata_MODULES): Add jfs.mod.
46936 (jfs_mod_SOURCES): New variable.
46937 (jfs_mod_CFLAGS): Likewise.
46938 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46939 (grubof_SOURCES): Likewise.
46940 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46941
46942 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46943 endian to the host endian.
46944 (grub_fat_utf16_to_utf8): Move function from there...
46945 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 46946 the endianness of the source string anymore.
aa033560 46947 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46948
94bc45af 469492004-08-24 Marco Gerards <metgerards@student.han.nl>
46950
46951 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46952 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46953 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46954 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 46955
94bc45af 46956 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46957 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46958 for `node_found' and `it_dir'.
46959 (grub_hfs_dir): Add prototype for `dir_hook'.
46960
46961 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46962 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46963 and `indir32' to silence a gcc warning.
46964
46965 * include/grub/fs.h (grub_hfs_init): New prototype.
46966 (grub_hfs_fini): Likewise.
f19dbdb7 46967
46968
97543f08 469692004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46970
46971 Each disk device has its own id now. This is useful to make use
46972 of multiple disk devices.
f19dbdb7 46973
97543f08 46974 * include/grub/disk.h (grub_disk_dev_id): New enum.
46975 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46976 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46977
46978 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46979 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46980
46981 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46982 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46983
46984 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46985 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46986
46987 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46988 "id" which is used by the cache manager.
46989
46990 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46991 of just "GRUB".
46992
64372eb4 469932004-08-18 Marco Gerards <metgerards@student.han.nl>
46994
46995 * fs/hfs.c: New file.
46996 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46997 (grub_emu_SOURCES): Likewise.
46998 (pkgdata_MODULES): Add hfs.mod.
46999 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47000 (grubof_SOURCES): Likewise.
47001 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47002
47003 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47004 * kern/misc.c (grub_strncasecmp): Add function.
47005
cc61b58f 470062004-08-14 Marco Gerards <metgerards@student.han.nl>
47007
47008 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47009 with parentheses.
47010
47011 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47012 (grub_ext2_dir): In case the directory entry type is unknown, read
47013 it from the inode.
47014
0ef123f6 470152004-08-02 Peter Bruin <pjbruin@dds.nl>
47016
47017 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47018 grub_load_linux instead of grub_rescue_cmd_linux as second
47019 argument of grub_rescue_register_command.
47020
47021 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47022
a447c5df 470232004-07-27 Marco Gerards <metgerards@student.han.nl>
47024
47025 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47026 function.
47027 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47028 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47029 `loader/powerpc/ieee1275/linux.c',
47030 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47031 * include/grub/powerpc/ieee1275/ieee1275.h
47032 (grub_ieee1275_release): New prototype.
47033 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47034 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47035 normal, boot, linux and linux_normal.
47036 * loader/powerpc/ieee1275/linux.c: New file.
47037 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47038
5a9e3546 470392004-07-12 Marco Gerards <metgerards@student.han.nl>
47040
47041 * normal/arg.c (grub_arg_parse): Correct error handling after
47042 reallocating the argumentlist (check if `argl' is not null instead
47043 of checking if `args' is not null).
47044 * kern/mm.c (grub_realloc): Return the same pointer when using the
47045 same region, instead of returning the header address.
47046
e15199cb 470472004-07-11 Marco Gerards <metgerards@student.han.nl>
47048
47049 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47050 one block instead of two when looking for the initial partition.
47051 (grub_partition_probe): Initialize the local variable `p' with 0.
47052 Use base 10 for the grub_strtoul call.
47053 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47054 need for one local variable.
47055 (grub_strtoul): Don't add the new value to `num', instead of that
47056 just assign it.
47057
020616c2 470582004-07-11 Marco Gerards <metgerards@student.han.nl>
47059
47060 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47061 (pxeboot_img_SOURCES): New variable.
47062 (pxeboot_img_ASFLAGS): Likewise.
47063 (pxeboot_img_LDFLAGS): Likewise.
47064 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47065 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47066 <lode_leroy@hotmail.com>.
47067
6c51eb64 470682004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47069
47070 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47071 there was no input.
47072
cfb12aff 470732004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47074
47075 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47076 the history buffer logic.
47077
6eabba74 470782004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47079
47080 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47081 (FILETYPE_INO_SYMLINK): New macros.
47082 (grub_ext2_find_file): Check if the node is a directory using the
47083 inode stat information instead of using the filetype in the
47084 dirent. Exclude the first character of an absolute symlink.
47085 (grub_ext2_dir): Mask out the filetype part of the mode member of
47086 the inode.
47087
66e19ef8 470882004-05-24 Marco Gerards <metgerards@student.han.nl>
47089
47090 Add support for UFS version 1 and 2. Add support for the minix
47091 filesystem version 1 and 2, both the variants with 14 and 30 long
47092 filenames.
f19dbdb7 47093
66e19ef8 47094 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47095 fs/minix.c.
47096 (grub_emu_SOURCES): Likewise.
47097 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47098 (ufs_mod_SOURCES): New variable.
47099 (ufs_mod_CFLAGS): Likewise.
47100 (minix_mod_SOURCES): Likewise.
47101 (minix_mod_CFLAGS): Likewise.
47102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47103 fs/minix.c.
47104 (grubof_SOURCES): Likewise.
47105 * fs/ufs.c: New file.
47106 * fs/minix.c: New file.
47107 * include/grub/fs.h (grub_ufs_init): New prototype.
47108 (grub_ufs_fini): Likewise.
47109 (grub_minix_init): Likewise.
47110 (grub_minix_fini): Likewise.
47111 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47112 minix fs.
47113
cc2e748a 471142004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47115
47116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47117 commands/ls.c, commands/terminal.c, commands/boot.c,
47118 commands/cmp.c and commands/cat.c.
47119 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47120
47121 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47122 "env.h"
47123
4b13b216 471242004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47125
47126 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47127 and grub_, respectively. Because the conversion is trivial and
47128 mechanical, I omit the details here. Please refer to the CVS
47129 if you need more information.
47130
6a142551 471312004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47132
47133 * include/pupa: Renamed to ...
47134 * include/grub: ... this.
47135 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47136 * util/i386/pc/grub-mkimage.c: ... this.
47137 * util/i386/pc/pupa-setup.c: Renamed to ...
47138 * util/i386/pc/grub-setup.c: ... this.
47139 * util/pupa-emu.c: Renamed to ...
47140 * util/grub-emu.c: ... this.
47141
e56cdf21 471422004-03-29 Marco Gerards <metgerards@student.han.nl>
47143
47144 Add support for the newworld apple macintosh (PPC). This has been
47145 tested on the powerbook 2000 only. It only adds support for
47146 generic ieee1275 functions, console and disk support. This should
47147 be easy to port to other architectures with support for Open
47148 Firmware.
f19dbdb7 47149
e56cdf21 47150 * configure.ac: Accept the powerpc as host_cpu. In the case of
47151 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47152 specific tests are only executed while building for the i386.
47153 Inverse test for crosscompile.
47154 * genmk.rb (Utility): Allow assembler files.
47155 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47156 * conf/powerpc-ieee1275.rmk: New file.
47157 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47158 * disk/powerpc/ieee1275/partition.c: Likewise.
47159 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47160 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47161 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47162 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47163 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47164 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47165 * include/pupa/powerpc/ieee1275/loader.h
47166 * include/pupa/powerpc/setjmp.h: Likewise.
47167 * include/pupa/powerpc/types.h: Likewise.
47168 * kern/powerpc/ieee1275/init.c: Likewise.
47169 * kern/powerpc/ieee1275/openfw.c: Likewise.
47170 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47171
47172 These files were written by Johan Rydberg
47173 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 47174
e56cdf21 47175 * boot/powerpc/ieee1275/cmain.c: New file.
47176 * boot/powerpc/ieee1275/crt0.S: Likewise.
47177 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47178 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47179
8c8cc205 471802004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47181
47182 * Makefile.in: Update copyright.
47183 * genmodsrc.sh: Likewise.
47184 * gensymlist.sh: Likewise.
47185 * term/i386/pc/vga.c: Indent correctly.
47186
47187 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47188 bugreporting address.
47189 * util/i386/pc/pupa-setup.c (usage): Likewise,
47190 (main): Call pupa_ext2_init and pupa_ext2_fini.
47191
f19dbdb7 47192 * fs/fat.c (log2): Renamed to ...
8c8cc205 47193 (fat_log2): ... this.
47194 All callers changed.
47195 * kern/misc.c (memcpy): Alias to pupa_memmove.
47196 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47197 lvalue cast.
47198 * util/console.c (pupa_ncurses_fini): Return 0.
47199
47200 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47201 Move fail label here.
47202 [__GNU__]: Don't warn when using stat.
47203 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47204 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47205 long int. Use strtol instead of strtoul.
f19dbdb7 47206
db1771cf 472072004-03-14 Marco Gerards <metgerards@student.han.nl>
47208
47209 * commands/boot.c: New file.
47210 * commands/cat.c: Likewise.
47211 * commands/cmp.c: Likewise.
47212 * commands/ls.c: Likewise.
47213 * commands/terminal.c: Likewise.
47214 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47215 (pupa_register_command): Changed interface to match the new
47216 argument parser.
47217 (pupa_command_execute): Changed (almost rewritten) so it uses
47218 pupa_split_command. Added support for setting variables using the
47219 syntax `foo=bar'.
47220 (rescue_command): Changed to work with the new argument parser.
47221 (terminal_command): Moved from here to commands/terminal.c.
47222 (set_command): New function.
47223 (unset_command): New function.
47224 (insmod_command): New function.
47225 (rmmod_command): New function.
47226 (lsmod_command): New function.
47227 (pupa_command_init): Don't initialize the command terminal
47228 anymore. Initialize the commands set, unset, insmod, rmmod and
47229 lsmod.
47230 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47231 (kernel_img_HEADERS): Add arg.h and env.h.
47232 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47233 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47234 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47235 normal/arg.c.
47236 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47237 terminal.mod.
47238 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47239 (boot_mod_SOURCES): New variable.
47240 (terminal_mod_SOURCES): Likewise.
47241 (ls_mod_SOURCES): Likewise.
47242 (cmp_mod_SOURCES): Likewise.
47243 (cat_mod_SOURCES): Likewise.
47244
47245 * normal/arg.c: New file.
47246 * kern/env.c: Likewise.
47247 * include/pupa/arg.h: Likewise.
47248 * include/pupa/env.h: Likewise.
47249 * font/manager.c (font_command): Changed to match argument parsing
47250 interface changes.
47251 (PUPA_MOD_INIT): Likewise.
47252 * hello/hello.c (pupa_cmd_hello): Likewise.
47253 (PUPA_MOD_INIT): Likewise.
47254 * include/pupa/disk.h: Include <pupa/device.h>.
47255 (pupa_print_partinfo): New prototype.
47256 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47257 (pupa_dl_get_prefix): Likewise.
47258 * include/pupa/misc.h: Include <pupa/err.h>.
47259 (pupa_isgraph): New prototype.
47260 (pupa_isdigit): Likewise.
47261 (pupa_split_cmdline): Likewise.
47262 * include/pupa/normal.h: Include <pupa/arg.h>.
47263 (pupa_command): Changed the prototype of the member `func' to
47264 match the argument parsing interface. Added member `options'.
47265 (pupa_register_command): Updated to match function.
47266 (pupa_arg_parse): New prototype.
47267 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47268 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47269 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47270 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47271 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47272 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47273 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47274 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47275 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47276 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47277 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47278 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47279 * kern/disk.c: Include <pupa/file.h>.
47280 (pupa_print_partinfo): New function.
47281 * kern/dl.c: Include <pupa/env.h>.
47282 (pupa_dl_dir): Variable removed.
47283 (pupa_dl_load): Use the environment variable `prefix' instead of
47284 the variable pupa_dl_dir.
47285 (pupa_dl_set_prefix): Function removed.
47286 (pupa_dl_get_prefix): Likewise.
47287 * kern/i386/pc/init.c: Include <pupa/env.h>.
47288 (pupa_machine_init): Use the environment variable `prefix' instead of
47289 using pupa_dl_set_prefix to set the prefix.
47290 * kern/main.c: Include <pupa/env.h>.
47291 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47292 using pupa_dl_get_prefix to get the prefix.
47293 * kern/misc.c: Include <pupa/env.h>.
47294 (pupa_isdigit): New function.
47295 (pupa_isgraph): Likewise.
47296 (pupa_ftoa): Likewise.
47297 (pupa_vsprintf): Added support for printing values of the type
47298 `double'. Make it possible to format variable output when using
47299 formatting like `%1.2%f'.
47300 (pupa_split_cmdline): New function.
47301 * kern/rescue.c: Include <pupa/env.h>.
47302 (next_word): Removed function.
47303 (pupa_rescue_cmd_prefix): Likewise.
47304 (pupa_rescue_cmd_set): New function.
47305 (pupa_rescue_cmd_unset): New function.
47306 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47307 split the command line instead of splitting it here. Added
47308 support for setting variables using the syntax `foo=bar'. Don't
47309 initialize the prefix command anymore. Initialized the set and
47310 unset commands.
47311 * normal/cmdline.c: Include <pupa/env.h>.
47312 (pupa_tab_complete): Added prototypes for print_simple_completion,
47313 print_partition_completion, add_completion, iterate_commands,
47314 iterate_dev, iterate_part and iterate_dir. Moved code to print
47315 partition information from here to kern/disk.c.
fe6b695a 47316 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 47317 * normal/main.c: Include <pupa/env.h>.
47318 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47319 instead of using pupa_dl_get_prefix to get the prefix.
47320 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47321 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47322 warning.
47323 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47324 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47325 ((unused))' to silence a gcc warning.
47326 (pupa_vga_setcolor): Likewise.
47327 (debug_command): Changed to match argument parsing
47328 interface changes.
47329 * util/pupa-emu.c: Include <pupa/env.h>.
47330 (options): Added 0's for unused fields to silence a gcc warning.
47331 (argp): Likewise.
47332 (main): Use the environment variable `prefix' instead of using
47333 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47334 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47335 and terminal.
47336
47337 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47338 * util/misc.c: Include <malloc.h>.
47339 (pupa_malloc): Rewritten so errors are correctly reported.
47340 (pupa_realloc): Likewise.
47341 (pupa_memalign): Likewise.
47342 (pupa_mm_init_region): Declare unused variables with
47343 `__attribute__ ((unused))' to silence a gcc warning.
47344 * normal/i386/setjmp.S: Remove tab at the end of the file to
47345 silence a gcc warning.
47346 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47347 variables with `__attribute__ ((unused))' to silence a gcc
47348 warning.
47349 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47350 local variable i unsigned to silence a gcc warning.
47351
47352 * kern/term.c: Include <pupa/misc.h>.
47353 (pupa_more_lines): New variable.
47354 (pupa_more): Likewise.
47355 (pupa_putcode): When the pager is active pause at the end of every
47356 screen.
47357 (pupa_set_more): New function.
47358 * include/pupa/term.h (pupa_set_more): New prototype.
47359
47360
3b1139cb 473612004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47362
47363 Now this project is GRUB 2 rather than PUPA. The location of
47364 the CVS repository was moved to GRUB's.
f19dbdb7 47365
3b1139cb 47366 * configure.ac: Use bug-grub as the reporting address.
47367 Use GRUB instead of PUPA.
47368 Change the version number to 1.90.
47369
8367695c 473702004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47371
47372 * genkernsyms.sh: Updated copyright information.
47373 * genmk.rb: Likewise.
47374 * genmodsrc.sh: Likewise.
47375 * gensymlist.sh: Likewise.
47376 * boot/i386/pc/boot.S: Likewise.
47377 * boot/i386/pc/diskboot.S: Likewise.
47378 * disk/i386/pc/biosdisk.c: Likewise.
47379 * disk/i386/pc/partition.c: Likewise.
47380 * font/manager.c: Likewise.
47381 * fs/ext2.c: Likewise.
47382 * fs/fat.c: Likewise.
47383 * include/pupa/boot.h: Likewise.
47384 * include/pupa/device.h: Likewise.
47385 * include/pupa/disk.h: Likewise.
47386 * include/pupa/dl.h: Likewise.
47387 * include/pupa/elf.h: Likewise.
47388 * include/pupa/err.h: Likewise.
47389 * include/pupa/file.h: Likewise.
47390 * include/pupa/font.h: Likewise.
47391 * include/pupa/fs.h: Likewise.
47392 * include/pupa/kernel.h: Likewise.
47393 * include/pupa/loader.h: Likewise.
47394 * include/pupa/misc.h: Likewise.
47395 * include/pupa/mm.h: Likewise.
47396 * include/pupa/net.h: Likewise.
47397 * include/pupa/normal.h: Likewise.
47398 * include/pupa/rescue.h: Likewise.
47399 * include/pupa/setjmp.h: Likewise.
47400 * include/pupa/symbol.h: Likewise.
47401 * include/pupa/term.h: Likewise.
47402 * include/pupa/types.h: Likewise.
47403 * include/pupa/i386/setjmp.h: Likewise.
47404 * include/pupa/i386/types.h: Likewise.
47405 * include/pupa/i386/pc/biosdisk.h: Likewise.
47406 * include/pupa/i386/pc/boot.h: Likewise.
47407 * include/pupa/i386/pc/console.h: Likewise.
47408 * include/pupa/i386/pc/init.h: Likewise.
47409 * include/pupa/i386/pc/kernel.h: Likewise.
47410 * include/pupa/i386/pc/linux.h: Likewise.
47411 * include/pupa/i386/pc/loader.h: Likewise.
47412 * include/pupa/i386/pc/memory.h: Likewise.
47413 * include/pupa/i386/pc/multiboot.h: Likewise.
47414 * include/pupa/i386/pc/partition.h: Likewise.
47415 * include/pupa/i386/pc/time.h: Likewise.
47416 * include/pupa/i386/pc/vga.h: Likewise.
47417 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47418 * include/pupa/util/getroot.h: Likewise.
47419 * include/pupa/util/misc.h: Likewise.
47420 * include/pupa/util/resolve.h: Likewise.
47421 * kern/device.c: Likewise.
47422 * kern/disk.c: Likewise.
47423 * kern/dl.c: Likewise.
47424 * kern/err.c: Likewise.
47425 * kern/file.c: Likewise.
47426 * kern/fs.c: Likewise.
47427 * kern/loader.c: Likewise.
47428 * kern/main.c: Likewise.
47429 * kern/misc.c: Likewise.
47430 * kern/mm.c: Likewise.
47431 * kern/rescue.c: Likewise.
47432 * kern/term.c: Likewise.
47433 * kern/i386/dl.c: Likewise.
47434 * kern/i386/pc/init.c: Likewise.
47435 * kern/i386/pc/lzo1x.S: Likewise.
47436 * kern/i386/pc/startup.S: Likewise.
47437 * loader/i386/pc/chainloader.c: Likewise.
47438 * loader/i386/pc/linux.c: Likewise.
47439 * loader/i386/pc/multiboot.c: Likewise.
47440 * normal/cmdline.c: Likewise.
47441 * normal/command.c: Likewise.
47442 * normal/main.c: Likewise.
47443 * normal/menu.c: Likewise.
47444 * normal/i386/setjmp.S: Likewise.
47445 * term/i386/pc/console.c: Likewise.
47446 * term/i386/pc/vga.c: Likewise.
47447 * util/console.c: Likewise.
47448 * util/genmoddep.c: Likewise.
47449 * util/misc.c: Likewise.
47450 * util/pupa-emu.c: Likewise.
47451 * util/resolve.c: Likewise.
47452 * util/unifont2pff.rb: Likewise.
47453 * util/i386/pc/biosdisk.c: Likewise.
47454 * util/i386/pc/getroot.c: Likewise.
47455 * util/i386/pc/pupa-mkimage.c: Likewise.
47456 * util/i386/pc/pupa-setup.c: Likewise.
47457
e6eced71 474582004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47459
47460 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47461 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47462 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47463 reading and reset it after reading.
47464 (pupa_ext2_close): Return PUPA_ERR_NONE.
47465
47466 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47467 Correct value.
47468 (struct linux_kernel_header): Add kernel_version and
47469 initrd_addr_max.
47470 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47471 pupa_file_read succeeds.
47472 (pupa_rescue_cmd_initrd): Implement.
47473
5aded270 474742003-12-03 Marco Gerards <metgerards@student.han.nl>
47475
47476 * fs/ext2.c (pupa_ext2_label): New function.
47477 (pupa_ext2_fs): Added label.
47478 * fs/fat.c (pupa_fat_label): New function.
47479 (pupa_fat_fs): Added label.
47480 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47481
47482 * kern/misc.c (pupa_strndup): New function.
47483 * include/pupa/misc.h (pupa_strndup): New prototype.
47484
47485 * include/pupa/normal.h: Include <pupa/err.h>.
47486 (pupa_set_history): New prototype.
47487 (pupa_iterate_commands): New prototype.
47488 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47489 <pupa/disk.h>, <pupa/file.h>.
47490 (hist_size): New variable.
47491 (hist_lines): Likewise.
47492 (hist_end): Likewise.
47493 (hist_used): Likewise.
47494 (pupa_set_history): New function.
47495 (pupa_history_get): Likewise.
47496 (pupa_history_add): Likewise.
47497 (pupa_history_replace): Likewise.
47498 (pupa_tab_complete): Likewise.
47499 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47500 completion shows partitionnames while completing partitions, this
47501 feature was suggested by Jeff Bailey.
47502 * normal/command.c (pupa_iterate_commands): New function.
47503 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47504 (pupa_normal_init): Initialize history buffer.
47505 (PUPA_MOD_INIT): Likewise.
47506 (pupa_normal_fini): Free the history buffer.
47507 (PUPA_MOD_FINI): Likewise.
47508
47509 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47510 key.
47511
47512 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47513 * configure.ac [i386]: Check for regparam bug.
47514 (NESTED_FUNC_ATTR) [! i386]: Defined.
47515
1f7315a3 475162003-11-17 Marco Gerards <metgerards@student.han.nl>
47517
47518 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47519 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47520 (pupa_emu_SOURCES): New variable.
47521 (pupa_emu_LDFLAGS): Likewise.
47522 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47523 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47524 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47525 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47526 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47527 (pupa_jmp_buf): New typedef.
47528 (pupa_setjmp) [PUPA_UTIL]: New macro.
47529 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47530 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47531 (pupa_refresh): New prototype.
47532 * include/pupa/util/getroot.h: New file.
47533 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47534 it.
47535 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47536 (pupa_rescue_cmd_cat): Likewise.
47537 (pupa_rescue_cmd_ls): Likewise.
47538 (pupa_rescue_cmd_testload): Likewise.
47539 (pupa_rescue_cmd_lsmod): Likewise.
47540 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47541 * normal/menu.c (run_menu): Likewise.
47542 * kern/term.c (pupa_cls): Likewise.
47543 (pupa_refresh): New function.
47544 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47545 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47546 * util/console.c: New file.
f19dbdb7 47547
1f7315a3 47548 * util/i386/pc/getroot.c: New file.
47549 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47550 (pupa_putchar): New function.
47551 (pupa_refresh): Likewise.
47552 (xgetcwd): Function moved to ...
47553 (strip_extra_slashes): Likewise.
47554 (get_prefix): Likewise.
f19dbdb7 47555 * util/i386/pc/getroot.c: ... here.
1f7315a3 47556 (find_root_device): Function moved and renamed to...
47557 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47558 Changed all callers.
47559 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47560 and renamed to...
47561 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47562 Changed all callers.
47563 * util/misc.c (pupa_memalign): New function.
47564 (pupa_mm_init_region): Likewise.
47565 (pupa_register_exported_symbols): Likewise.
47566 (pupa_putchar): Function removed.
47567 * util/pupa-emu.c: New file.
47568
9a5c1ade 475692003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47570
47571 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47572 (_multiboot_mod_SOURCES): New variable.
47573 (_multiboot_mod_CFLAGS): Likewise.
47574 * loader/i386/pc/multiboot.c: New file.
47575 * include/pupa/i386/pc/multiboot.h: Likewise.
47576 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47577 (pupa_multiboot_real_boot): New function.
47578 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47579 (pupa_multiboot_real_boot): New prototype.
47580 (pupa_rescue_cmd_multiboot): Likewise
47581 (pupa_rescue_cmd_module): Likewise.
47582
47583 * kern/loader.c (pupa_loader_set): Continue when
47584 pupa_loader_unload_func() fails.
47585 (pupa_loader_unset): New function.
47586 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47587
47588 * kern/misc.c (pupa_stpcpy): New function.
47589 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47590
8e72a9c0 475912003-11-12 Marco Gerards <metgerards@student.han.nl>
47592
47593 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47594 for available extensions.
47595
47596 * include/pupa/i386/pc/time.h: New file.
47597 * kern/disk.c: Include <pupa/machine/time.h>.
47598 (PUPA_CACHE_TIMEOUT): New macro.
47599 (pupa_last_time): New variable.
47600 (pupa_disk_open): Flush the cache when there was a timeout.
47601 (pupa_disk_close): Reset the timer.
47602 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47603 pupa_currticks.
47604 * util/misc.c: Include <sys/times.h>
47605 (pupa_get_rtc): New function.
47606
c4adbd32 476072003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47608
47609 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47610 as blocks.
47611 (pupa_ext2_get_file_block): Use blocks member.
47612
47613 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47614 first block. Return -1 instead of pupa_errno on error.
47615
bfd30f06 476162003-10-27 Marco Gerards <metgerards@student.han.nl>
47617
47618 * README: In the pupa-mkimage example use _chain instead of chain
47619 and ext2 instead of fat.
47620 * TODO: Replace ext2fs with jfs as an example. Add an item for
47621 adding journal playback for ext2fs.
47622 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47623 (pkgdata_MODULES): Added ext2.mod.
47624 (ext2_mod_SOURCES): New variable.
47625 (ext2_mod_CFLAGS): Likewise.
47626 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47627 * include/pupa/misc.h (pupa_strncpy): New prototype.
47628 (pupa_strcat): Likewise.
47629 (pupa_strncmp): Likewise.
47630 * kern/misc.c (pupa_strcat): Enable function.
47631 (pupa_strncpy): New function.
47632 (pupa_strncmp): Likewise.
47633 * fs/ext2.c: New file.
f19dbdb7 47634
bfd30f06 47635 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47636 when the read failed before retrying.
47637 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47638 (_FILE_OFFSET_BITS): Likewise.
47639 * configure.ac: Added AC_SYS_LARGEFILE.
47640
98d15063 476412003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47642
47643 * genmk.rb (PModule#rule): Make sure to get only symbol names
47644 from the output of nm.
59cad637 47645 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 47646
18d9c7cd 476472003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47648
47649 I forgot to check in these changes for a long time. This adds
47650 incomplete support for VGA console, and this is still very
47651 buggy. Also, a lot of consideration is required for I18N,
47652 UNICODE, and VGA font issues. Therefore, assume that this is
47653 such that "better than nothing".
f19dbdb7 47654
18d9c7cd 47655 * font/manager.c: New file.
47656 * include/pupa/font.h: Likewise.
47657 * include/pupa/i386/pc/vga.h: Likewise.
47658 * term/i386/pc/vga.c: Likewise.
47659 * util/unifont2pff.rb: Likewise.
47660
47661 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47662 (pkgdata_MODULES): Added vga.mod and font.mod.
47663 (vga_mod_SOURCES): New variables.
47664 (vga_mod_CFLAGS): Likewise.
47665 (font_mod_SOURCES): Likewise.
47666 (font_mod_CFLAGS): Likewise.
47667
47668 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47669
47670 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 47671 (struct pupa_term): Added init and fini.
18d9c7cd 47672 Changed the argument of putchar to pupa_uint32_t.
47673
47674 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47675 (pupa_console_real_putchar): New prototype.
47676 (pupa_console_putchar): Removed.
47677 (pupa_console_checkkey): Exported.
47678 (pupa_console_getkey): Likewise.
47679
47680 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47681 characters.
47682
47683 * kern/term.c (pupa_term_set_current): Rewritten.
47684 (pupa_putchar): Likewise.
47685 (pupa_putcode): New function.
47686
47687 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47688 (pupa_console_real_putchar): ... this.
47689 (pupa_vga_set_mode): New function.
47690 (pupa_vga_get_font): Likewise.
47691
47692 * normal/command.c: Include pupa/term.h.
47693 (terminal_command): New function.
47694 (pupa_command_init): Register the command "terminal".
47695
47696 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47697 (DISP_UP): Likewise.
47698 (DISP_RIGHT): Likewise.
47699 (DISP_DOWN): Likewise.
47700 (DISP_HLINE): Likewise.
47701 (DISP_VLINE): Likewise.
47702 (DISP_UL): Likewise.
47703 (DISP_UR): Likewise.
47704 (DISP_LL): Likewise.
47705 (DISP_LR): Likewise.
47706
47707 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 47708
977329f5 477092003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47710
47711 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47712 FIX. Reverse the path_list.
47713
47714 * include/pupa/normal.h: Export pupa_register_command and
47715 pupa_unregister_command.
47716
47717 * hello/hello.c (pupa_cmd_hello): New module.
47718 * conf/i386-pc.rmk: Added hello.mod.
47719
1f5ab428 477202003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47721
47722 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 47723
1f5ab428 47724 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47725 (compress_kernel): New variable.
47726 (generate_image): Heavily modified to support compressing a
47727 large part of the core image.
47728
47729 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47730 leak.
47731 (pupa_util_load_image): New function.
47732
47733 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47734 (pupa_compressed_size): New variable.
47735 (codestart): Enable Gate A20 here.
47736 Decompress the compressed part of the core image.
47737 Rearrange the code to put functions and variables which are
47738 required for initialization in the non-compressed part.
47739 Include lzo1x.S.
47740
47741 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47742 here.
47743
47744 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47745
f19dbdb7 47746 * include/pupa/i386/pc/kernel.h
1f5ab428 47747 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47748 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47749 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47750 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47751 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47752
47753 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47754
47755 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47756 (Utility#rule): Likewise.
47757
47758 * configure.ac: Check if LZO is available.
47759
ce5bf700 477602003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47761
47762 * include/pupa/normal.h: New file.
47763 * include/pupa/setjmp.h: Likewise.
47764 * include/pupa/i386/setjmp.h: Likewise.
47765 * normal/cmdline.c: Likewise.
47766 * normal/command.c: Likewise.
47767 * normal/main.c: Likewise.
47768 * normal/menu.c: Likewise.
47769 * normal/i386/setjmp.S: Likewise.
f19dbdb7 47770
ce5bf700 47771 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47772 (pupa_rescue_cmd_initrd): Likewise.
47773
47774 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47775 Likewise.
47776
47777 * kern/i386/pc/startup.S (translation_table): New variable.
47778 (translate_keycode): New function.
47779 (pupa_console_getkey): Call translate_keycode.
47780
47781 * kern/rescue.c (attempt_normal_mode): New function.
47782 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47783 it failed, print a message.
47784
47785 * kern/mm.c (pupa_real_malloc): Print more information when a
47786 free magic is broken.
47787 (pupa_free): If the first free header is not free actually, set
47788 it to P.
47789
47790 * kern/main.c (pupa_load_normal_mode): Just load the module
47791 "normal".
47792 (pupa_main): Don't print the message
47793 "Entering into rescue mode..." here.
47794
47795 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47796 Declared.
47797 (pupa_rescue_cmd_initrd): Likewise.
47798 (pupa_rescue_cmd_initrd): Likewise.
47799
47800 * include/pupa/symbol.h (FUNCTION): Specify the type.
47801 (VARIABLE): Likewise.
47802
47803 * include/pupa/err.h (pupa_err_t): Added
47804 PUPA_ERR_UNKNOWN_COMMAND.
47805
47806 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47807 (pupa_dl_get_prefix): Likewise.
47808
47809 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47810 Added _chain.mod and _linux.mod instead of chain.mod and
47811 linux.mod.
47812 (chain_mod_SOURCES): Renamed to ...
47813 (_chain_mod_SOURCES): ... this.
47814 (chain_mod_CFLAGS): Renamed to ...
47815 (_chain_mod_CFLAGS): ... this.
47816 (linux_mod_SOURCES): Renamed to ...
47817 (_linux_mod_SOURCES): ... this.
47818 (linux_mod_CFLAGS): Renamed to ...
47819 (_linux_mod_CFLAGS): ... this.
47820 (normal_mod_SOURCES): New variable.
47821 (normal_mod_CFLAGS): Likewise.
47822 (normal_mod_ASFLAGS): Likewise.
47823
478242003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47825
47826 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47827 possible.
47828
fe6b695a 47829 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 47830 recursively.
47831 (pupa_dl_unref): Unrefer depending modules recursively.
47832 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47833 a module is unloaded before one depending on that module is
47834 unloaded.
47835 (pupa_dl_unload): Unload depending modules explicitly,
47836 if possible.
47837
c04da074 478382003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47839
47840 * include/pupa/i386/pc/linux.h: New file.
47841 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 47842
c04da074 47843 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47844 Removed.
47845 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47846 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47847 of PUPA_CHAINLOADER_BOOT_SECTOR.
47848
47849 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47850 (pupa_linux_prot_size): New variable.
47851 (pupa_linux_tmp_addr): Likewise.
47852 (pupa_linux_real_addr): Likewise.
47853 (pupa_linux_boot_zimage): New function.
47854 (pupa_linux_boot_bzimage): Likewise.
47855
47856 * kern/i386/pc/init.c (struct mem_region): New structure.
47857 (MAX_REGIONS): New macro.
47858 (mem_regions): New variable.
47859 (num_regions): Likewise.
47860 (pupa_os_area_addr): Likewise.
47861 (pupa_os_area_size): Likewise.
47862 (pupa_lower_mem): Likewise.
47863 (pupa_upper_mem): Likewise.
47864 (add_mem_region): New function.
47865 (compact_mem_regions): Likewise.
47866 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47867 the size of the conventional memory and that of so-called upper
47868 memory (before the first memory hole).
47869 Instead of adding each found region to free memory, use
47870 add_mem_region and add them after removing overlaps.
47871 Also, add only 1/4 of the upper memory to free memory. The rest
47872 is used for loading OS images. Maybe this is ad hoc, but this
47873 makes it much easier to relocate OS images when booting.
47874
47875 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47876 (pupa_enter_rescue_mode): Don't register initrd and module.
47877
47878 * kern/mm.c: Include pupa/dl.h.
47879
47880 * kern/main.c: Include pupa/file.h and pupa/device.h.
47881
47882 * kern/loader.c (pupa_loader_load_module_func): Removed.
47883 (pupa_loader_load_module): Likewise.
47884
47885 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47886 ``.o''.
47887
47888 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47889 (pupa_linux_tmp_addr): Likewise.
47890 (pupa_linux_real_addr): Likewise.
47891 (pupa_linux_boot_zimage): Likewise.
47892 (pupa_linux_boot_bzimage): Likewise.
47893
47894 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47895 (pupa_upper_mem): Likewise.
47896 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47897 module is too dangerous.
47898
47899 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47900 (pupa_os_area_size): Likewise.
47901 (pupa_loader_set): Remove the first argument. Loader doesn't
47902 manage modules or initrd any longer.
47903 (pupa_loader_load_module): Removed.
47904
47905 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47906 (linux_mod_SOURCES): New variable.
47907 (linux_mod_CFLAGS): Likewise.
47908
a13f9237 479092003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47910
47911 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47912 the length of a blocklist correctly.
47913
47914 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47915 Use ioctl only if the OS file is a block device.
47916 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47917 not very useful for normal files.
47918
47919 * kern/main.c (pupa_set_root_dev): New function.
47920 (pupa_load_normal_mode): Likewise.
47921 (pupa_main): Call those above.
47922
47923 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47924 pupa_uint16_t.
47925
47926 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47927
a5ffe966 479282003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47929
47930 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47931 (setup): Configure the installed partition information and the
47932 dl prefix.
47933
47934 * loader/i386/pc/chainloader.c (my_mod): New variable.
47935 (pupa_chainloader_unload): New function.
47936 (pupa_rescue_cmd_chainloader): Refer itself.
47937 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47938
47939 * kern/i386/pc/startup.S (install_partition): Removed.
47940 (version_string): Likewise.
47941 (config_file): Likewise.
47942 (pupa_install_dos_part): New variable.
47943 (pupa_install_bsd_part): Likewise.
47944 (pupa_prefix): Likewise.
47945 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47946
47947 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47948 and pupa/misc.h.
47949 (make_install_device): New function.
47950 (pupa_machine_init): Set the dl prefix.
47951
47952 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47953 (buf): Renamed to ...
47954 (linebuf): ... this.
47955 (pupa_rescue_cmd_prefix): New function.
47956 (pupa_rescue_cmd_insmod): Likewise.
47957 (pupa_rescue_cmd_rmmod): Likewise.
47958 (pupa_rescue_cmd_lsmod): Likewise.
47959 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47960 rmmod and lsmod.
47961
47962 * kern/mm.c (pupa_memalign): If failed even after invalidating
47963 disk caches, unload unneeded modules and retry.
47964
47965 * kern/misc.c (pupa_memmove): New function.
47966 (pupa_memcpy): Removed.
47967 (pupa_strcpy): New function.
47968 (pupa_itoa): Made static.
47969
47970 * kern/dl.c (pupa_dl_iterate): New function.
47971 (pupa_dl_ref): Likewise.
47972 (pupa_dl_unref): Likewise.
47973 (pupa_dl_unload): Return if succeeded or not.
47974 (pupa_dl_unload_unneeded): New function.
47975 (pupa_dl_unload_all): Likewise.
47976 (pupa_dl_init): Renamed to ...
47977 (pupa_dl_set_prefix): ... this.
47978 (pupa_dl_get_prefix): New function.
47979
47980 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47981 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47982 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47983 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47984 (pupa_install_dos_part): Declared.
47985 (pupa_install_bsd_part): Likewise.
47986 (pupa_prefix): Likewise.
47987 (pupa_boot_drive): Likewise.
47988
47989 * include/pupa/types.h: Fix a typo.
47990
47991 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47992 pupa_memmove.
47993 (pupa_memmove): Declared.
47994 (pupa_strcpy): Likewise.
47995
47996 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47997 pupa_mod_init takes one argument, its own module.
47998 (pupa_dl_unload_unneeded): Declared.
47999 (pupa_dl_unload_all): Likewise.
48000 (pupa_dl_ref): Likewise.
48001 (pupa_dl_unref): Likewise.
48002 (pupa_dl_iterate): Likewise.
48003 (pupa_dl_init): Renamed to ...
48004 (pupa_dl_set_prefix): ... this.
48005 (pupa_dl_get_prefix): Declared.
48006
48007 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 48008 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 48009 unloaded.
48010 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48011 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48012
48013 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48014 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48015
012d7999 480162003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48017
48018 * util/i386/pc/pupa-setup.c (setup): Define the internal
48019 function find_first_partition_start at the top level, because GCC
48020 3.0.x cannot compile internal functions in deeper scopes
48021 correctly.
48022 (find_root_device): Use lstat instead of stat.
48023 Don't follow symbolic links.
48024 Fix the path-constructing code.
48025
48026 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48027 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48028 by a BLKGETSIZE ioctl first, because block devices don't fill
48029 the member st_mode of the structure stat on Linux.
48030 [__linux__] (linux_find_partition): Use a temporary buffer
48031 REAL_DEV for the working space. Copy it to DEV before returning.
48032 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48033 buffer cache consistent.
48034 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48035 strncmp. The previous value was merely wrong.
48036 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48037
48038 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48039 FAT size is 12. The previous value was merely wrong.
48040
48041 * kern/main.c (pupa_main): Don't split the starting message from
48042 newlines.
48043
48044 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48045 LF, because BIOS goes crazy about character attributes in this
48046 case.
48047
1cc73a62 480482003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48049
48050 * include/i386/pc/util/biosdisk.h: New file.
48051 * util/i386/pc/biosdisk.c: Likewise.
48052 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 48053
1cc73a62 48054 * Makefile.in (INCLUDE_DISTFILES): Added
48055 include/pupa/i386/pc/util/biosdisk.h.
48056 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48057 directory util/i386/pc.
48058 (install-local): Added a rule for sbin_UTILITIES.
48059 (uninstall): Likewise.
48060
48061 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48062
48063 * util/misc.c (xrealloc): New function.
48064 (pupa_malloc): Likewise.
48065 (pupa_free): Likewise.
48066 (pupa_realloc): Likewise.
48067 (pupa_stop): Likewise.
48068 (pupa_putchar): Likewise.
48069
48070 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48071
48072 * include/pupa/util/misc.h (xrealloc): Declared.
48073
48074 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48075 macro.
48076 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48077 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48078
48079 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48080 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48081
48082 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48083 way should be implemented.
48084 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48085
48086 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48087 the size of NAME for safety.
48088 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48089 0x88.
48090
48091 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48092 (pupa_setup_SOURCES): Likewise.
48093
48094 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48095
08b70fe8 480962002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48097
48098 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48099 bunch of pushl's from pusha, because this destroys the return
48100 value.
48101
62ddcc8f 481022002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48103
48104 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48105 This means that any missing prototypes could be fatal. Also, you
48106 must take care when writing assembly code. See the comments at
48107 the beginning of startup.S, for more details.
f19dbdb7 48108
62ddcc8f 48109 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48110 compilation mechanism.
48111 (pupa_chainloader_real_boot): Likewise.
48112 (pupa_biosdisk_rw_int13_extensions): Likewise.
48113 (pupa_biosdisk_rw_standard): Likewise.
48114 (pupa_biosdisk_check_int13_extensions): Likewise.
48115 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48116 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48117 (pupa_get_memsize): Likewise.
48118 (pupa_get_mmap_entry): Likewise.
48119 (pupa_console_putchar): Likewise.
48120 (pupa_console_setcursor): Likewise.
48121 (pupa_getrtsecs): Use pushl instead of push.
48122
48123 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48124 memory instead of the stack for a mmap entry, because some
48125 BIOSes may ignore the maximum size and overflow.
48126
48127 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48128
48129 * genmk.rb (PModule#rule): Compile automatically generated
48130 sources with module-specific CFLAGS as well as other sources.
48131
9962ed99 481322002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48133
48134 * configure.ac: Check ld.
48135 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48136 respectively, before checking endianness and sizes.
48137
48138 * Makefile.in (LD): New variable.
f19dbdb7 48139
abdfc3c5 481402002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48141
48142 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48143
6a161fa9 481442002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48145
48146 * Changelog: New file.
48147