]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* util/grub-mkfont.c (process_cursive): Remove nested function.
[grub2.git] / ChangeLog
CommitLineData
6ab537e3
VS
12013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * util/grub-mkfont.c (process_cursive): Remove nested function.
4
e6c368d4
VS
52013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
6
7 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
8 (grub_boot_time): Likewise.
9
4f1cfd22
VS
102013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
11
12 * include/grub/symbol.h (FUNCTION): Use @function rather than
13 "function".
14 (VARIABLE): Likewise.
15
6d5a4cee
VS
162013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
19
f06c2172
VS
202013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
21
22 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
23 (parse_dhcp_vendor): Likewise.
24
7cb24eb5
VS
252013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
26
27 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
28
f30c692c
VS
292013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * grub-core/gettext/gettext.c (main_context), (secondary_context):
32 Define after defining type and not before.
33
8b66bb5d
VS
342013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
35
36 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
37 type.
38 (grub_gcm_decrypt): Likewise.
39 (algo_decrypt): Likewise.
40 (grub_zfs_decrypt_real): Transform error type.
41
5d17fd0f
VS
422013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
45
ac35a0f7
VS
462013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
47
48 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
49 (grub_usbms_cbi_reset): Likewise.
50 (grub_usbms_bo_reset): Likewise.
51 (grub_usbms_reset): Likewise.
52 (grub_usbms_attach): Likewise.
53 (grub_usbms_transfer_cbi): Likewise.
54
3ee08697
VS
552013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
56
57 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
58 "checksum = checksum;".
59
70bb6c85
VS
602013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
61
62 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
63 entry_type.
64
c7f34744
VS
652013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
66
67 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
68 BIOS disk check.
69
3f63b4d8
VS
702013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
71
72 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
73 type.
74 (grub_ehci_fini_hw): Likewise.
75 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
76
dac6ce73
VS
772013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
78
79 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
80 return grub_usb_err_t for cosistency. All users updated.
81
5701750c
VS
822013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
83
84 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
85 assigning to itself.
86
9e236169
GLD
872013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
882013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
89
90 Issue separate DNS queries for ipv4 and ipv6
91
92 Adding multiple questions on a single DNS query is not supportted by
93 most DNS servers. This patch issues two separate DNS queries
94 sequentially for ipv4 and then for ipv6.
95
96 Fixes: https://savannah.gnu.org/bugs/?39710
97
98 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
99 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
100 * (grub_net_dns_lookup): Now using separated dns packages.
101 * (grub_cmd_nslookup): Add error condition.
102 * (grub_cmd_list_dns): Print DNS option.
103 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
104 --prefer-ipv4, and --prefer-ipv6.
105 * include/grub/net.h (grub_dns_option_t): New enum.
106 * (grub_net_network_level_address): option added.
107
339eacce
VT
1082013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
109
110 * grub-core/video/fb/video_fb.c: Merge two blit functions
111 into one.
112
810f991b
VS
1132013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
114
115 * grub-core/term/terminfo.c: Add sequences for home and end.
116
386571a2
VS
1172013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
118
119 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
120 graphics console.
121
3fe63754
VS
1222013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
123
124 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
125 add mode 0x12.
126
76681e71
VS
1272013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
128
129 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
130 e-mail by Per Öberg.
131
46522fb7
VS
1322013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
133
134 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
135 name.
136
e7d09ac4
AB
1372013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
138
139 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
140 emu platforms.
141 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
142
67508925
VS
1432013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
144
145 * docs/grub.texi: Document usage of menuentry id.
146
0c62124e
VS
1472013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
148
149 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
150
9b5d4eed
PL
1512013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
152
153 * grub-core/commands/i386/nthibr.c: New command.
154
79054c1d
VS
1552013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
158
44d47bbe
VS
1592013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
160
161 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
162 coordinate.
163
323de05b
VS
1642013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
165
166 Support GRUB_DISABLE_SUBMENU config.
167
168 Inspired by patch from Prarit Bhargava.
169
5a01722e
VS
1702013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
171
172 * docs/grub.texi: Mention RSA support.
173
1106c3f0
VS
1742013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
175
176 * grub-core/commands/verify.c: Add RSA support.
177
a1dcc2cb
VS
1782013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
179
180 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
181 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
182 device is known to be ATAPI.
183
ee7fb780
MF
1842013-11-03 Mike Frysinger <vapier>
185
186 * configure.ac: Don't add target-prefix.
187
5ade4a42
VS
1882013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
189
190 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
191 variables.
192
6cd66043
VS
1932013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
194
195 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
196 if language is English.
197
090d7c81
VS
1982013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
199
200 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
201
dd614590
VS
2022013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
203
204 * configure.ac: Don't add -m32/-m64 on emu.
205
a8686589 2062013-11-02 neil
207
208 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
209 broken linux headers.
210
fb9f12a0
VS
2112013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
214
e25f8e1f
VS
2152013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
216
217 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
218 Reed-Solomon recovery if more than half of redundancy info is 0.
219
4685200f
VS
2202013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
221
222 * util/grub-mount.c: Handle symlinks to directories.
223
1397f0b5
VS
2242013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
225
226 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
227 find_file recursively for symlink.
228
8b3e6eb6
VS
2292013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
230
231 * tests/util/grub-shell.in: Copy themes.
232
a0c9d5c6
VS
2332013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
234
235 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
236
5cf9459c
VS
2372013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
238
239 * configure.ac: Use 0x8000 for address instead of 8000.
240
e7b66a28
VS
2412013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
242
243 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
244 signature.
245
203f53fb
VS
2462013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
247
248 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
249 variable.
250
02663ee9
VS
2512013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
252
253 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
254
f169f65e
VS
2552013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
258 file_progress_read_hook.
259 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
260
2855a0fc
VS
2612013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
262
263 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
264 and double.
265
bf0f3a8c
VS
2662013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
267
268 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
269
cb72aa18
VS
2702013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
271
272 Rewrite blocklist functions in order to get progress when
273 reading large extents and decrease amount of blocklist hook calls.
274
896f9135
VS
2752013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
278 of SI suffixes.
279
89295a06
VS
2802013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
281
282 Support --base-clock for serial command to handle weird cards with
283 non-standard base clock.
284
eb03ede0
VS
2852013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
286
287 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
288 strncpy.
289 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
290 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
291 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
292 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
293 + strcpy rather than strncpy.
294
8fbe5c7d
VS
2952013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
298 (check_pool_label): Likewise. Fixes overflow.
299 (nvlist_find_value): Fix comparison.
300
e54b8f53
VS
3012013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
302
303 * include/grub/misc.h (grub_strcat): Removed. All users changed to
304 more appropriate functions.
305
fa9b3dca
VS
3062013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
307
308 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
309 realloc.
310
9a021c55
VS
3112013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
312
313 * util/grub-mkrescue.in: Do not use UUID search on EFI.
314
80e8b13a
VS
3152013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
316
317 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
318 on core size.
319
b61599ac
VS
3202013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
321
322 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
323
a602dc54
VS
3242013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
325
326 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
327 (initialize_tables): reset tl and td to NULL after freeing.
328
93c12075
VS
3292013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
330
331 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
332
1ca4b75e
VS
3332013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
334
335 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
336 of supported tags.
337
329550c4
VS
3382013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
339
340 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
341
00bfa988
VS
3422013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
343
344 * grub-core/loader/multiboot.c: Add support for multiboot kernels
345 quirks.
346
81afc5cc
VS
3472013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
348
349 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
350 a page in protected space.
351
cb3c4a47
VS
3522013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
353
354 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
355 allocate space for zero-sized modules.
356
954f7bf5
VS
3572013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
358
359 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
360
526d3d25
FL
3612013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
362
363 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
364
74124c34
VS
3652013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
368 safeguards. Fixes a crash with i386/pc/console.c.
369
5177391e
VS
3702013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
371
372 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
373 and grub_hostfs_init.
374
64db14b0
VS
3752013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
376
377 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
378 windows method on other platforms without good stat as well.
379
effe2036
VS
3802013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
381
382 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
383
82591fa6 3842013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 385
82591fa6
VS
386 Make / in btrfs refer to real root, not the default volume.
387 Modify mkrelpath to work even if device is mounted with subvolid option.
388
3892013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
390
391 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
392 extra_dist.
393 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
394 extra_dist.
395
30fd7198
VS
3962013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
397
398 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
399 fails.
400
8d179dae
BC
4012013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
402
403 * docs/autoiso.cfg: New file.
404
3bc9c8cf
VS
4052013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
406
407 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
408 COND_GRUB_PE2ELF conditions.
409
8b46b0ea
VS
4102013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
413 "vnd", "rd" and "fd" disks.
414
442b86de
VS
4152013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
416
417 Move grub_disk_write out of kernel into disk.mod.
418
04dea7e6
VS
4192013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
420
421 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
422 handling.
423
4242013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
425
426 * grub-core/kern/misc.c (grub_abort): Make static
427
04dea7e6 4282013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
429
430 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
431 transform invalid unicode codepoints.
432
04dea7e6 4332013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
434
435 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
436 \0 checking.
437
03dcac7f
VS
4382013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
439
440 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
441
c81acb7f
VS
4422013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
443
444 Consolidate cpuid code.
445
c1bee646
VS
4462013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
447
448 Move cpuid code to cpuid.h and TSC code to tsc.c.
449
f37bf9c7
GS
4502013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
451
452 * util/grub.d/00_header.in: Don't use LANG if it's not set.
453
4021132b
GS
4542013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
455
456 * util/grub-mkconfig.in: Replace $0 with $self.
457 * util/grub-reboot.in: Likewise.
458 * util/grub-set-default.in: Likewise.
459
3ace8d75
BC
4602013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
461
462 * docs/osdetect.cfg: New file.
463
1e6ad6a6
BC
4642013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
465
466 * tests/util/grub-shell.in: Add new --debug option.
467
188929eb
BC
4682013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
469
470 * tests/test_unset.in: New test.
471
7994a09a
BC
4722013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
473
474 * tests/test_sha512sum.in: New test.
475
2a8a7585
VS
4762013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
479 * include/grub/misc.h: Remove strncat.
480 * grub-core/lib/posix_wrap/string.h: Likewise.
481
cf8d6bbd
VS
4822013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
483
484 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
485 Try to handle more than 0xFFFF packets.
486 Reported by: Bernhard Übelacker <bernhardu>.
487 He also spotted few overflows in first version of this patch.
488
6d1fc99a
VS
4892013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * tests/date_unit_test.c: New test.
492
10bafa1c
VS
4932013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
494
495 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
496 of first three years after start of validity of unixtime.
497
b1c6d037
VS
4982013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
499
500 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
501 division as the one making more sense.
502 (update_screen): Likewise.
503 (complete): Likewise.
504
5f4028d4
VS
5052013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
506
507 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
508
a2856736
VS
5092013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
510
511 Make char and string width grub_size_t rather than grub_ssize_t.
512
0a7e52b2
VS
5132013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
514
515 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
516 unsigned.
517 (grub_history_replace): Likewise.
518
42829573
VS
5192013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
520
521 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
522 appropriate.
523
3523b8d8
VS
5242013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
525
526 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
527 appropriate.
528
d43c6489
VS
5292013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
530
531 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
532 Use unsigned divisions rather than signed variants.
533
f690f8b0
VS
5342013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
535
536 * grub-core/video/readers/png.c (grub_png_convert_image): Use
537 unsigned arithmetics.
538 Add missing break.
539
74ff2c05
VS
5402013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
541
542 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
543
fb56391e
VS
5442013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
547 rather than signed one.
548 (recovery): Likewise.
549
40f29060
VS
5502013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
551
552 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
553
c64577a5
VS
5542013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
555
556 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
557 than signed.
558
c16535a8
JM
5592013-10-25 Jon McCune <jonmccune@google.com>
560
561 * docs/grub.texi: Cleanup security documentation around signatures.
562
6673d8e7
VS
5632013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
564
565 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
566
a105d375
VS
5672013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
568
569 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
570 than int.
571
af81ed88
VS
5722013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
573
574 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
575 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
576 functions when compiling for kernel.
577
ea899a57
VS
5782013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
579
580 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
581 unsigned long long when using %llu.
582
c6dc6fa1
VS
5832013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
584
585 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
586 terminal after updating progress.
587
ad2dc003
VS
5882013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
589
590 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
591 argument. We don't disable Gate A20 in this code.
592
b46684ae
VS
5932013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
594
595 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
596 Conceptually based on change in branch "vbe-on-coreboot".
597
f70d5c07
RM
5982013-10-24 Robert Millan <rmh@gnu.org>
599
600 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
601 numeric constants with their symbolic equivalent.
602 Taken from branch "vbe-on-coreboot".
603
bca274b4
VS
6042013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
605
606 * docs/grub.texi: Fix ordering and use pxref rather than xref.
607
238f0489
VS
6082013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
609
610 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
611 divmod64 for offset division.
612
863c590b
PFS
6132013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
614
615 Rename .bzrignore to .gitignore. Add "*.o" rule.
616
617 * .bzrignore: Renamed to...
618 * .gitignore: ...this.
619
84a0e969
PFS
6202013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
621
622 Add new progress module that displays the load progress of files.
623
624 * grub-core/lib/progress.c: New file.
625 * grub-core/Makefile.core.def (progress): New module.
626 * grub-core/kern/file.c (grub_file_open): File name added.
627 * (grub_file_read): Progress hook added.
628 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
629 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
630 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
631 * include/grub/file.h (struct grub_file): Add progress module members.
632 * include/grub/term.h (struct grub_term_output): Likewise.
633 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
634 Terminal velocity added.
635 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
636 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
637 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
638 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
639 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
640 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
641 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
642 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
643 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
644 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
645 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
646 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
647
0d711431
VS
6482013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
649
650 Verify signatures of signatures unless --skip-sig is specified.
651
f8401f76
VS
6522013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
653
654 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
655 \0 checking.
656
657 Saves 70 bytes on compressed image.
658
ac1feb61
VS
6592013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
660
661 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
662 check.
663
664 Saves 10 bytes on compressed image.
665
00f72e89
VS
6662013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * grub-core/kern/misc.c (grub_isprint): Move to ...
669 * include/grub/misc.h (grub_isprint): ... here. Make inline.
670
671 Saves 20 bytes on compressed image due to remving exporting.
672
067e6ae7
VS
6732013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
674
675 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
676
677 Saves 5 bytes on compressed image.
678
64a6c791
VS
6792013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
680
681 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
682 function get_utf8.
683
684 Saves 379 bytes on compressed image.
685
979d9f52
VS
6862013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
687
688 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
689
1437da54
VS
6902013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
691
692 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
693
694 Saves 40 bytes on compressed image.
695
d9ee2269
VS
6962013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
697
698 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
699 mask rather than 64-bit type.
700
701 Saves 20 bytes on compressed image.
702
63efa602
VS
7032013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
706 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
707
47601ffe
VS
708 Saves 273 bytes on compressed image.
709
2cc679ad
VS
7102013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
711
712 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
713 variable length arrays.
714
715 Saves 50 bytes on compressed image.
716
2e4659b8
VS
7172013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
718
719 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
720
2a40badf
VS
7212013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
722
723 * grub-core/fs/ufs.c: Remove variable length arrays.
724
1ba6b9b9
VS
7252013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
726
727 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
728
f3e39341
VS
7292013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
730
731 * grub-core/fs/zfs.c: Remove variable length arrays.
732 Reduces zfs.mod by 160 bytes (208 compressed).
733
71523935
VS
7342013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
735
736 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
737
28153eb8
VS
7382013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
739
740 * grub-core/net/arp.c: Remove variable length arrays.
741 * grub-core/net/bootp.c: Likewise.
742 * grub-core/net/dns.c: Likewise.
743 * grub-core/net/icmp6.c: Likewise.
744 * grub-core/net/net.c: Likewise.
745
88ce4cd7
VS
7462013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
747
748 * grub-core/fs/ntfs.c: Remove variable length arrays.
749 Increases ntfs.mod by 64 bytes (but decreases by 3 when
750 compressed).
751
66123940
VS
7522013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
753
754 * grub-core/fs/hfs.c: Remove variable length arrays.
755 Reduces hfs.mod by 8 bytes (52 compressed).
756
0927e5bd
VS
7572013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
758
759 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 760 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
761 compressed).
762
9c12ac97
VS
7632013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
764
765 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 766 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
767 compressed).
768
97ec2d71
VS
7692013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 772 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
773 compressed).
774
156e4ea0
VS
7752013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
776
777 * grub-core/fs/xfs.c: Remove variable length arrays.
778 Reduces xfs.mod by 40 bytes (43 compressed).
779
3b502c29
VS
7802013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
781
782 * grub-core/fs/fshelp.c: Remove variable length arrays.
783 Reduces fshelp.mod by 116 bytes (23 compressed).
784
c7037f1d
VS
7852013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
786
787 * grub-core/normal/completion.c: Remove variable length arrays.
788 * grub-core/normal/menu_entry.c: Likewise.
789
790 Reduces normal.mod by 496 bytes.
791
a07e6ad0
VS
7922013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
793
794 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
795 by 356 bytes (158 compressed).
796
2359bf88
VS
7972013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
800 by 364 bytes (169 compressed).
801
d28e1163
VS
8022013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
803
804 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
805 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
806 * include/grub/types.h (grub_unaligned_uint64_t): New type.
807
e89c2d48
VS
8082013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
809
810 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
811 bitmasks to small structures of size chosen to fit in registers.
812
7abdac8e
VS
8132013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
814
815 * conf/Makefile.common: Use -freg-struct-return on i386. This
816 decreases code size and improves performance.
817
518864c0
VS
8182013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
819
820 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
821
bbd2b539
VS
8222013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
825 "(null)" string.
826 Simplify expressions to save around 256 bytes in kernel.img.
827 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
828
99519c15
VS
8292013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
830
831 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
832 Use GRUB_UTIL_FD_O_* rather than O_*.
833
20285765
VS
8342013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
835
836 Add haiku-specific functions.
837
887c0bb6
VS
8382013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
839
840 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
841
cd78a56f
VS
8422013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
843
844 Move stat () and device mode checking into OS-dependent files as
845 long as performance doesn't suffer.
846
a4012f07
VS
8472013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
848
849 Split make_system_path_relative_to_its_root into separate file
850 relpath.c from getroot.c as it's common between unix and haiku
851 but otherwise haiku doesn't use any functions from unix getroot.c.
852
31de274d
VS
8532013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
854
855 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
856 New function.
857 (grub_util_is_special_file): Likewise.
858
40346de6
VS
8592013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
860
861 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
862 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
863
d3923ab9
VS
8642013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
865
866 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
867 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
868
663f6eb1
VS
8692013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
870
871 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
872 (load_image): Likewise.
873
44d1c20a
VS
8742013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
875
876 * util/grub-render-label.c: Move backend part to ...
877 * util/render-label.c: ... here.
878
d0a116ee
VS
8792013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
880
881 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
882 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
883
b47fcae6
VS
8842013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
885
886 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
887
0f7c00c1
VS
8882013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
889
890 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
891 CD-ROM in case when it's declared as having subpartitions.
892
29013cba
VS
8932013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
894
895 Don't add -lm on haiku.
896
897 * configure.ac: Define BUILD_LIBM to -lm on most platforms
898 and empty on haiku.
899 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
900 -lm.
901
e8559d24
VS
9022013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * configure.ac: Use -melf_*_haiku as target on haiku.
905
8104063c
VS
9062013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
907
908 * Makefile.util.def: Add util/setup.c to extra_dist.
909
fc3182c7
VS
9102013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
911
912 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
913 unknown types through.
914
f90a3cc0
VS
9152013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
916
917 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
918 (grub_util_check_char_device): Likewise.
919 * include/grub/emu/getroot.h: Likewise.
920
1e3e7419
VS
9212013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
924 memset rather than inline static function.
925
92c88fc8
VS
9262013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
929 not doing embedded decompressor.
930
3cd910a2
VS
9312013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
932
933 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
934 shadowing.
935 * grub-core/kern/disk.c: Likewise.
936 * grub-core/kern/misc.c: Likewise.
937 * include/grub/parser.h: Likewise.
938 * include/grub/script_sh.h: Likewise.
939 * include/grub/zfs/zfs.h: Likewise.
940
7b3aca00
VS
9412013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
942
943 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
944
97dfe7e4
VS
9452013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
946
947 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
948 defined before trying to use it.
949
bf919aa9
VS
9502013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
951
952 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
953 warning.
954
f4ccf29d
VS
9552013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
956
957 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
958 Use __unused__ rather than __used__ on gcc < 3.2.
959
0d3a6f85
VS
9602013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
961
962 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
963 gcc < 4.0.
964 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
965
757e3eb7
VS
9662013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
967
968 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
969
fb320faf
VS
9702013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
971
972 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
973 * include/grub/emu/misc.h: Likewise.
974
ea73acd2
VS
9752013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
978 cur_color.
979
71237a6f
VT
9802013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
981
982 * grub-core/tests/checksums.h: Regenerated due to progress bar
983 get_minimal_size changes.
984
3d46c22f
BC
9852013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
986
987 Added `tr' command support.
988
989 * grub-core/commands/tr.c: New file.
990 * grub-core/Makefile.core.def: Build rules for new module.
991
992 * tests/grub_cmd_tr.in: New test.
993 * Makefile.util.def: Build rules for new test.
994
47e0a61f
VT
9952013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
996
997 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
998
946fd073
VT
9992013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1000
1001 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
1002 * docs/gurb.texi: Likewise.
1003
9c13c576
VT
10042013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1005
1006 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
1007 Pixmap highlighted section with east and west slices was displayed
1008 incorrectly due to negative width of the central slice.
1009
ad543f12
VT
10102013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1011
1012 * docs/grub.texi: Graphical options information update.
1013 Removed outdated. Updated current. Inserted missed.
1014
6176a0cd
VS
10152013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1016
1017 * docs/grub.texi: Mention few new platform-specific commands.
1018
9688cae2
VS
10192013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1020
1021 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
1022 currently used so this doesn't really have any effect.
1023 Reported by: Douglas Ray <dougray>
1024
f7b69a3f
VS
10252013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
1028 compilation but prevents gcc from displaying messages in non-Latin
1029 alphabets.
1030 * conf/Makefile.common: Likewise.
1031
ceca6ddf
HY
10322013-10-16 Hiroyuki YAMAMORI
1033
1034 Handle Japanese special keys.
1035 Reported by: Hiroyuki YAMAMORI.
1036 Codes supplied by: Hiroyuki YAMAMORI.
1037
ac48d334
VT
10382013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1039
1040 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
1041
b2b71bff
VT
10422013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1043
1044 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
1045 * docs/grub.texi: Likewise.
1046
669fc449
VS
10472013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1048
1049 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
1050 value in case of incomplete read.
1051 (grub_util_fd_write): Likewise.
1052
59381678
VS
10532013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1054
1055 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
1056
bacfefbb
VS
10572013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 * util/grub-editenv.c (create_envblk_file): More from here ...
1060 * util/editenv.c (grub_util_create_envblk_file): ... to here.
1061
f7c49570
VS
10622013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
1065 canonicalize file name before doing the rest.
1066
7b83ca44
VS
10672013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1068
1069 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
1070 mingw32.
1071
df1e64c9
VS
10722013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 Define grub_util_is_directory/regular/special_file and
1075 use OS-dependent versions rather than to rely on stat().
1076
ec16e026
VS
10772013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1078
1079 * util/grub-mkimage.c: Move backend part to ...
1080 * util/mkimage.c: ... here.
1081
4b4eeb3c
VS
10822013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 Allow compilation with mingw64 albeit with warnings due to lack of
1085 %llx/%llu.
1086
1087 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
1088 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
1089 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
1090 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
1091 on mingw64.
1092 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
1093
f4e0adc0
VS
10942013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 Remove leftover references to some of the system headers.
1097
e0127364
VS
10982013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
1101 read.
1102
20d53541
VS
11032013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1104
1105 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
1106 of strerror.
1107
5a869940
VS
11082013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1109
1110 Split out blocklist retrieving from setup.c to
1111 grub-core/osdep/blocklist.c and add windows implementation since
1112 generic version doesn't work on NTFS on Windows due to aggressive
1113 unflushable cache.
1114
c06c7520
VS
11152013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
1118 files.
1119
8f53bb3f
VS
11202013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1121
1122 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
1123 Cut tailing newline. Remove arbitrary limitation. Always use
1124 grub_util_tchar_to_utf8.
1125
148f1007
VS
11262013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
1129 * tests/printf_unit_test.c (printf_test): Add %% tests.
1130 Reported by: Paulo Flabiano Smorigo.
1131
af3b06be
VS
11322013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1133
1134 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
1135 implement fsync.
1136
27f9d02e
VS
11372013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1138
1139 * configure.ac: Check for nvlist_lookup_string in nvpair since we
1140 use nvlist_lookup_string and don't use nvlist_print.
1141
f6a81f0a
VS
11422013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 Add wrappers around rename, unlink, mkdir, opendir, readdir and
1145 closedir to handle filename charset translation.
1146
d7750b32
VS
11472013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 * include/grub/emu/hostdisk.h: Move file operations to
1150 * include/grub/emu/hostfile.h: ... here.
1151
2859196e
VS
11522013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
1155 unicode path.
1156
c018c968
VS
11572013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1158
1159 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
1160
7e45abce
VS
11612013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1162
1163 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
1164 and remove export.h.
1165
23934da2
VS
11662013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 * grub-core/kern/emu/error.c: Removed.
1169 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
1170 explicitly as it's already in libgnu.a.
1171
c11ebcc8
VS
11722013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
1175 config-util.h include.
1176
70671037
VS
11772013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 Split emunet into platform-dependent and GRUB-binding parts. Keep
1180 platform-dependent part in kernel for easy access to OS functions.
1181
25ac643a
VS
11822013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
1185 open/read/write.
1186
69ca5876
VS
11872013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1188
1189 * grub-core/osdep/windows/emuconsole.c: New file.
1190
d9d68ef0
AB
11912013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1192
1193 * conf/Makefile.extra-dist: Add osdep/*/init.c
1194
58e211cc
VS
11952013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1196
1197 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
1198
588744d0
VS
11992013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1200
1201 * util/grub-probe.c (probe): Separate different drives in hint-str
1202 by spaces and not newlines.
1203 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
1204
44016e52
AB
12052013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1206
1207 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1208 Handle CD-ROMs.
1209
6de9ee86
VS
12102013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 Pass-through unknown E820 types. It required reorganisation of mmap
1213 module.
1214
f8f3f155
AB
12152013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1216
1217 * Makefile.util.def: Add osdep/init.c to grub-mount files.
1218
b73249d2
VS
12192013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
1222 fseeko.
1223
dac86b18 12242013-10-14 qwertial <qwertial>
1225
1226 * grub-core/gdb_grub.in: Fix overflow and wrong field.
1227
17614b84
JM
12282013-10-14 Jon McCune <jonmccune@google.com>
1229
1230 * docs/grub.texi: Document new signatures possibility.
1231
6de292cb
VS
12322013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
1235
84379b61
VS
12362013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1237
1238 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
1239 missing prototype.
1240 (grub_util_tchar_to_utf8): Likewise.
1241
21d85db1
VS
12422013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
1245 * grub-core/kern/emu/main.c: Add missing include.
1246 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
1247 Don't call grub_util_init_nls.
1248 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
1249 Likewise.
1250
66a1b3ee
VS
12512013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
1254 stat.
1255
e19bec17
VS
12562013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1257
1258 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
1259
ee8c1b29
VS
12602013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
1263
bb338aaf
VS
12642013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 Add a wrapper for fopen. On unix-like systems just pass-through. On
1267 windows use unicode version.
1268
ae5540d3
VS
12692013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 Move set_program_name and init_nls to host_init. On windows
1272 fix in this fuction console and argument charset as well.
1273
4cd3c4fe
AB
12742013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
1275
1276 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
1277 GRUB_ENABLE_CRYPTODISK.
1278
1279 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
1280 GRUB_ENABLE_CRYPTODISK.
1281 * util/grub-mkconfig_lib.in: Likewise.
1282
78170f3e
CCZ
12832013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
1284
1285 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
1286
3414b6c0
MC
12872013-10-12 Melki Christian <Christian.melki@saabgroup.com>
1288
1289 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
1290 error when enabling debug.
1291
6d0740e8
IB
12922013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
1293
1294 * configure.ac: Use -melf_*_obsd on openbsd.
1295
ff2d4dc4
VS
12962013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1297
1298 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
1299
eac6ae82
VS
13002013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1301
1302 * include/grub/misc.h: Use gnu_printf rather than printf as format
1303 template since our functions are independent of libc.
1304
ba9baabe
VS
13052013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1306
1307 * util/grub-setup.c (setup): Move copying of partition table as
1308 futher up as possible to avoid possible overwrite by floppy routines.
1309
13102013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
1311
1312 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
1313
145e2369
VT
13142013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1315
1316 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
1317 * docs/grub.texi: Likewise.
1318
3530bc9d
VS
13192013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
1322 it's mostly unused. Move vestiges to the callers.
1323
fb9f59c3
VS
13242013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1325
1326 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
1327 version of salt and hash. Use grub_snprintf rather than snprintf.
1328
9be1c255
VS
13292013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 * docs/grub.texi: Fix problem with braces.
1332
ed8c0887
VS
13332013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1334
1335 * conf/Makefile.extra-dist: Fix extra-dist list.
1336 * grub-core/Makefile.core.def: Likewise.
1337
f72ab14e
VS
13382013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 * docs/grub.texi: Document disk names used on Windows and AROS.
1341
2fe53a22
VS
13422013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
1345 with AROS devs.
1346 * grub-core/osdep/aros/hostdisk.c: Likewise.
1347
71c1d67a
VS
13482013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1349
1350 Avoid including hostfile.h when not necessarry as it pulls
1351 in OS-specific headers which may redefine generic names
1352 like "far".
1353
ad297ec7
VT
13542013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1355
1356 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
1357 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
1358 scrollbar_bottom_pad
1359 * docs/grub.texi: Likewise.
1360
6e9e5dc9
VT
13612013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1362
1363 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
1364
761c718b
VS
13652013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
1368
37149a2f
VS
13692013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
1372 Removed.
1373 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
1374 Made static.
1375
3837a151
VS
13762013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
1379 leftover.
1380
caca1c70
VS
13812013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 Move OS-specific driver configuration to grub_util_fd_open. This
1384 moves OS-dependent parts from kern/emu/hostdisk.c to
1385 grub-core/osdep/*/hostdisk.c.
1386
f7676b70
VS
13872013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * util/grub-mkimage.c (generate_image): Use size_t instead of
1390 grub_size_t.
1391 * util/grub-mkimagexx.c (locate_sections): Likewise.
1392 (load_image): Likewise.
1393
22f98db2
VS
13942013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1395
1396 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
1397 size_t.
1398 (grub_util_write_image): Likewise.
1399
b102ce69
VS
14002013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
1403 get random when no RNG is available.
1404 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
1405
acbbe5cb
VS
14062013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1407
1408 * include/grub/util/lvm.h: Removed.
1409
2112fb3f
VS
14102013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1411
1412 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
1413 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
1414
79f78fbf
VS
14152013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 * grub-core/osdep/windows/sleep.c: Add missing config.h.
1418
c2e6f705
VS
14192013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1420
1421 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
1422
aabe433a
VS
14232013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1424
1425 * grub-core/net/drivers/emu/emunet.c: Move to ..
1426 * grub-core/osdep/linux/emunet.c: ..here.
1427
9a2c903f
VS
14282013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1429
1430 * util/ieee1275/ofpath.c: Move to ...
1431 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
1432 * grub-core/osdep/basic/ofpath.c: ..here.
1433
4a445f58
VS
14342013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 Move password-querying (util-version) routines to grub-core/osdep.
1437
c1ca4244
VS
14382013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 Move sleep routines to grub-core/osdep.
1441
672fa55e
VS
14422013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1443
1444 Move OS-dependent files to grub-core/osdep and document it.
1445
a5b0365a
VS
14462013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1447
1448 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
1449 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
1450
29072e99
VS
14512013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1452
1453 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
1454
f8772ea7
VS
14552013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 * util/misc.c: Remove leftover inclusion of malloc.h.
1458
a1a315e7
VS
14592013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * include/grub/setjmp.h: Remove leftover GRUBOF.
1462
cef86fef
VS
14632013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 * util/raid.c: Fold into ...
1466 * util/getroot_linux.c: ... here. Make all functions static.
1467
c4cf25ee
VS
14682013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1469
1470 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
1471 macros to GRUB ones.
1472
53a5f5c2
VT
14732013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1474
1475 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
1476 occasional bug. If there are too many boot entries or too low
1477 scrollbar height then we need to use another formula to calculate
1478 the position and size of the scrollbar thumb.
1479
de300af2
VS
14802013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1481
c4cf25ee 1482 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 1483
c5827364
VT
14842013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1485
1486 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
1487 * docs/grub.texi: Likewise.
1488
dd2ed8b0
VT
14892013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1490
1491 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
1492 viewport.
1493
7286c384
VT
14942013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1495
ffdfc1f3
VT
1496 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
1497 minimal width calculations.
7286c384 1498
ea547e14
VS
14992013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 * docs/grub.texi: Update note on colors on emu console.
1502
b726be76
VS
15032013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1504
1505 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
1506 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
1507 it's FS and not GRUB limitation.
1508
a5f6ade6
VS
15092013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
1512
3b0f3aa2
VS
15132013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
1516
1db38304
ST
15172013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1518
1519 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
1520 kernels by version order.
1521
fb295fc0
VS
15222013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1523
1524 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
1525
47345010
VS
15262013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1527
1528 Add AROS hostdisk and getroot routines.
1529
bf25f879
VS
15302013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 Make cryptodisk and diskfilter probe data retrievable programmatically
1533 and not just printable.
1534
24ca4512
VS
15352013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 Split random retrieving code into separate files.
1538
c7c177f0
VS
15392013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
1542 R_ARM_V4BX.
1543
d71b45ae
VS
15442013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
1547 condition.
1548 * grub-core/tests/fake_input.c: Likewise.
1549 * grub-core/tests/cmdline_cat_test.c: Likewise.
1550
e44b9a83
VS
15512013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1552
1553 * grub-core/video/capture.c: Do not do finalization when .fini
1554 is called as there is explicit capture_end.
1555
4fa60739
VS
15562013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
1559 changing windows to avoid crash.
1560
17c8bc37
VS
15612013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
1564
9d4d7977
VS
15652013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * po/exclude.pot: Add several strings to exclude.
1568
0caa407c
VS
15692013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
1572
9ae393da
VS
15732013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 * autogen.sh: Add ./util/grub-gen-widthspec.c and
1576 ./util/grub-gen-asciih.c to exclude list.
1577
498d5033
VS
15782013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1579
1580 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
1581 and don't mark error strings for translation.
1582
7d93298f
VS
15832013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
1586 properly in case of missing block size.
1587
b2cae20c
VS
15882013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1589
1590 * grub-core/lib/arm/setjmp.S: Add missing license section.
1591
3896d6b4
VS
15922013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * po/swiss.sed: Add replacement for key names and for term computer.
1595
ebc1da55
VT
15962013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
1597
1598 * grub-core/gfxmenu/theme_loader.c: New global options for the
1599 theme background image handling. desktop-image-scale-method,
1600 desktop-image-h-align, desktop-image-v-align.
1601 * grub-core/gfxmenu/view.c: Likewise.
1602 * include/gfxmenu_view.h: Likewise.
1603 * include/bitmap_scale.h: Proportional scale functions introduced.
1604 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
1605 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
1606 cases of unexpected input variables for scale functions.
1607 * docs/grub.texi: Updated documentation for new options.
1608
c5739143
VS
16092013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
1612
be74aeb3
VT
16132013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1614
1615 * grub-core/tests/checksums.h: Corrected due to changes in
1616 bilinear interpolation function.
1617
d999ac72
VT
16182013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
1619
1620 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
1621 to eliminate artefacts in bilinear interpolation.
1622
2b131610
VS
16232013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * grub-core/video/readers/tga.c: Support paletted tga.
1626
de6e5ff8
VS
16272013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
1630 incorrect cbcr setting when in color mode.
1631
fa31ee9c
VS
16322013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1633
1634 * grub-core/video/readers/png.c: Support paletted images and clean up
1635 greyscale support.
1636
e84f8188
VS
16372013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
1638
1639 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
1640 usage of wrong table which resulted in mishandling of 4-byte
1641 sequences.
1642
16432013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
1644
1645 * grub-core/term/terminfo.c: Add Home and End key sequences.
1646
d72bff09
VS
16472013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 * grub-core/video/readers/png.c (grub_png_decode_image_header):
1650 Fix formula for computing total number of bytes.
1651
29648c5d
VS
16522013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
1655 image processing, fix big-endian and support grayscale.
1656
4a876492
VS
16572013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1658
1659 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
1660 Correctly will with maximum transparency when using index color.
1661
3ccf16df
VS
16622013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
1663
1664 * grub-core/video/readers/png.c: Support grayscale
1665
16662013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
1667
1668 * grub-core/video/readers/jpeg.c: Support grayscale.
1669
3ccf16df 16702013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
1671
1672 * grub-core/commands/loadenv.c: Support skipping signature check
1673 and variable names filtering.
1674
30b7f58f
VS
16752013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1676
1677 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
1678 * grub-core/kern/emu/hostfs.c: Likewise.
1679 * util/getroot_unix.c: Likewise.
1680
bab7b1eb
VS
16812013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1682
1683 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
1684 Migrate all explicit defines to this new one.
1685
43b1c99d
VS
16862013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1687
1688 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
1689 grub_util_fd_strerror when using grub_util_fd_*.
1690 (grub_util_fd_open_device): Likewise.
1691 (grub_util_biosdisk_read): Likewise.
1692 (grub_util_biosdisk_write): Likewise.
1693 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
1694 (grub_util_fd_strerror): Likewise.
1695 (grub_util_fd_sync): Likewise.
1696 (grub_util_fd_close): Likewise.
1697 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
1698 (grub_util_fd_close): Likewise.
1699 (grub_util_fd_strerror): Likewise.
1700 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
1701 function proto rather than macro.
1702 (grub_util_fd_sync): Likewise.
1703 (grub_util_fd_open): Likewise.
1704 (grub_util_fd_strerror): New proto.
1705
e8fd80bc
VS
17062013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
1709 platforms on which it doesn't work.
1710
bf645fda
VS
17112013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1712
1713 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
1714 stat immediately to where it's used.
1715
5177ba14
VS
17162013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1717
1718 * util/getroot.c (grub_util_check_block_device): Move to ...
1719 * util/getroot_unix.c (grub_util_check_block_device): ... here.
1720 * util/getroot.c (grub_util_check_char_device): Move to ...
1721 * util/getroot_unix.c (grub_util_check_char_device): ... here.
1722
9db826e1
VS
17232013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
1726 disk closing logic.
1727
49120085
AB
17282013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1729
1730 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
1731
b3328b68
AB
17322013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
1733
1734 * docs/grub.texi (File name syntax): Document ZFS filenames
1735 (/volume@snapshot/...).
1736
3fff48ab
VS
17372013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1738
1739 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
1740 Always return full path. Fixes a problem with mkrelpath.
1741
39cfdaa9
PFS
17422013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1743
1744 * util/grub-install.in: Add GPT PReP support.
1745 * util/grub-probe.c (probe): Support GPT partition type.
1746 (main): Support -t gpt_parttype.
1747
7c680e1f 17482013-09-23 Aleš Nesrsta <starous@volny.cz>
1749
1750 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
1751
890bdabe
MM
17522013-09-23 Massimo Maggi <me@massimo-maggi.eu>
1753
1754 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
1755
9c262ff9
TH
17562013-09-23 Tim Hardeck <thardeck>
1757
1758 * util/grub.d/10_hurd.in: Filter out character for the class.
1759 * util/grub.d/10_kfreebsd.in: Likewise.
1760 * util/grub.d/10_linux.in: Likewise.
1761 * util/grub.d/20_linux_xen.in: Likewise.
1762
d755342a
MC
17632013-09-23 Melki Christian <Christian.melki@saabgroup.com>
1764
1765 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
1766 "changed".
1767
68b77707
JT
17682013-09-23 Josh Triplett <josh@joshtriplett.org>
1769
1770 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
1771 boot partition.
1772
efa68bfa
VS
17732013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
1776 doesn't use posix_wrap. Keep literal -fno-builtin however.
1777
d9104204
VS
17782013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1779
1780 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
1781
c248781a 17822013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
17832013-09-23 neil
1784
5830df88 1785 * configure.ac: Do not enable -Wmissing-noreturn as its
1786 usefulness is limited and creates problems on some OS notably with
1787 code generated by bison.
1788
17892013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
17902013-09-23 neil
1791
1792 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 1793 supported by all gcc and when it is, it's already enabled by -Wall.
1794
621bed69
VS
17952013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
1798 desactivated use of EDID at all.
1799
71764dc8 18002013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
18012013-09-23 neil
1802
1803 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
1804 video if no text is available.
1805
affce7d4 18062013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
18072013-09-23 neil
1808
1809 * configure.ac: Substitute TARGET_RANLIB.
1810
18112013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
18122013-09-23 neil
affce7d4
VS
1813
1814 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
1815
1816 Based on patches from AROS.
1817
0e8daad0 18182013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 18192013-09-23 neil
0e8daad0
VS
1820
1821 * grub-core/Makefile.am: Override STRIP and RANLIB.
1822 * configure.ac: compute TARGET_RANLIB.
1823 * INSTALL: Document TARGET_RANLIB
1824
1825 Based on patches from AROS.
1826
3f7d9c82
VS
18272013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
1830 that floppies are unpartitioned.
1831
bca8873a
VS
18322013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
1835 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
1836
18372013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
1840 less nice but more portable.
1841 * grub-core/lib/posix_wrap/wchar.h: Likewise.
1842
a47a78be
VS
18432013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1844
1845 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
1846 for cheat_fd.
1847 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
1848 functions.
1849 (grub_cryptodisk_cheat_insert): Likewise.
1850 (grub_cryptodisk_close): Likewise.
1851
e85a5d5c
VS
18522013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
1855 Use windows path for DEFAULT_DIRECTORY.
1856
dad9fa6b
VS
18572013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
1860 difference was likely just gcc version, not anything mingw-related.
1861
7e518ca8
VS
18622013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 Use Winapi on both cygwin and mingw32 to share more code between both.
1865
d68d0157
AB
18662013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1867
1868 * util/grub-install.in: Add --grub-editenv option.
1869 * util/grub-install_header (grub_compress_file): Explicitly check for
1870 plain file to avoid cp error.
1871
775b284d
AB
18722013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
1873
1874 * docs/grub.texi (Device syntax): Document new LVM UUID based device
1875 names; fix LVM driver name (lvm, not lv).
1876 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
1877 names.
1878
3ff4063d
VS
18792013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1880
1881 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
1882 files rather than one file with loads of #if's.
1883 * util/getroot.c: Likewise.
1884
287faafe
VS
18852013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1886
1887 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
1888
d1983764
VS
18892013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1890
1891 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
1892 GNU/Hurd to the list of checked PRNG.
1893
15ce95c4
VS
18942013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1895
1896 * configure.ac: On FreeBSD use -melf_*_fbsd format.
1897
207862dd 18982013-09-21 Ales Nesrsta <starous@volny.cz>
1899
7c680e1f 1900 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 1901
63653cfd
VS
19022013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
1905 * grub-core/disk/lvm.c: Add LVM UUIDs.
1906 * util/getroot.c: Use LVM UUIDs whenever possible.
1907
f5d3e7ef
AB
19082013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
1909
1910 * docs/grub.texi (Networking commands): Add documentation for
1911 network related commands.
1912
53c6b7d6
VS
19132013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1914
1915 * util/getroot.c (grub_util_open_dm): Check major rather than the name
1916 to determine if device is handled by devmapper.
1917 (convert_system_partition_to_system_disk): Likewise.
1918 (get_dm_uuid): Don't check explicitly if device is mapped, it's
1919 already done in grub_util_open_dm.
1920
e70d6736
LL
19212013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
1922
1923 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
1924 Clean up stack manipulation (sync_caches_armv*)
1925
90379808
VS
19262013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1927
1928 * util/lvm.c: Remove since unused. Remove remaining references.
1929
386701a8
VS
19302013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 Handle the case of partitioned LVM properly.
1933
1934 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
1935 Stop on meeting LVM, mpath or DMRAID.
1936 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
1937 (read_device_map): Likewise.
1938 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
1939 device is full disk rather than erroring out on LVM and similar cases.
1940
53070787
VS
19412013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1942
1943 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
1944
1bc783bd
VS
19452013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
1948 4K before the end.
1949 Reported by: Leif Lindholm
1950
436ad5c3
PW
19512013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
19522013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1953
1954 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
1955 codes.
1956
607319c9
CW
19572013-09-18 Colin Watson <cjwatson@ubuntu.com>
1958
1959 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
1960 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
1961
d404d154
DR
19622013-09-18 Douglas Ray <dougray@cpan.org>
1963
1964 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
1965 as secure.
1966
28851ef6
AN
19672013-09-18 Aleš Nesrsta <starous@volny.cz>
1968
1969 * docs/grub.texi: Fix broken link.
1970
897c3bc6
MC
19712013-09-18 Melki Christian <Christian.melki@saabgroup.com>
1972
1973 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
1974 to break endless loop.
1975
f1630459
VS
19762013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 * util/grub-fstest.c: Fix several printf formats.
1979 * util/grub-mkimage.c: Likewise.
1980 * util/grub-mkimagexx.c: Likewise.
1981 * util/grub-script-check.c: Likewise.
1982
64463dfd
VS
19832013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
1986 error.
1987
48972495
VS
19882013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1989
1990 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
1991
5dd5e64b
VS
19922013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1993
1994 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
1995 removed in current versions cygwin_conv_*.
1996
1c1f31e5
VS
19972013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
1998
1999 * configure.ac: Disable efiemu runtime on cygwin.
2000
c546a259
VS
20012013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2002
2003 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
2004 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
2005
81690478
VS
20062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
2009 error message.
2010
6b87c10a
VS
20112013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
2014 windows variant.
2015 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
2016 data.
2017
8f0baaac
VS
20182013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
2021 when on x86 and not cygwin.
2022 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
2023 -Wl,-melf_x86_64.
2024
b224c266
VS
20252013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * configure.ac: Set CPP to build one when checkoing for freetype for
2028 build.
2029
506b336b
VS
20302013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
2033 [!GRUB_BUILD]: Remove has_argument.
2034
8c8c87b7
VS
20352013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
2038 Replace with a dummy.
2039
7dc5ca13
VS
20402013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * configure.ac: Don't change host_os from mingw to cygwin.
2043
c3302aa5
VS
20442013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2045
2046 * configure.ac: Change target_os from windows to cygwin.
2047
7b780018
VS
20482013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 Handle grub-pe2elf and grub-mkfont for cases when build != host.
2051
2052 * Makefile.am (build-grub-mkfont): Don't include gnulib.
2053 (build-grub-gen-asciih): Likewise.
2054 (build-grub-gen-widthspec): Likewise.
2055 * Makefile.util.def (grub-pe2elf): Remove.
2056 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
2057 * configure.ac: Separate tests for build.
2058 Move ./build-grub-pe2elf to grub-core.
2059 Fix typo.
2060 * grub-core/Makefile.am (build-grub-pe2elf): New target.
2061 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
2062 defined.
2063 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
2064 constants.
2065 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
2066 * util/grub-pe2elf.c: Simplify not to rely on getopt.
2067 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
2068
984cfd8a
VS
20692013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
2072 mingw32 as well based on grub_util_get_disk_size.
2073 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
2074 grub_util_get_fd_size.
2075 (sync): Removed.
2076 (fsync): Moved to ...
2077 * grub-core/kern/emu/misc.c (fsync): ... here.
2078
f82d79c9
VS
20792013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2080
2081 * include/grub/mm.h (grub_extend_alloc): Remove.
2082 * grub-core/loader/i386/pc/plan9.c: Use own version of
2083 grub_extend_alloc with appropriate types.
2084
fd7dd66d
VS
20852013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
2088
43ffba7c
VS
20892013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2090
2091 * util/getroot.c: Include sys/wait.h only when we need waitpid.
2092
3c7eac44
VS
20932013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2094
2095 Fix dependencies on cygwin.
2096
2097 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
2098 dependencies when used and defined.
2099 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
2100
bdb5ba47
VS
21012013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2102
2103 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
2104 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
2105
ed7fbf43
VS
21062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
2109 implementation available to cause compile-time rather than runtime
2110 error.
2111
fc46e9fc
VS
21122013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * util/grub-fstest.c: Don't check for symlinks on windows.
2115
7f68269a
VS
21162013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2117
2118 * INSTALL: Mention unavailability of man pages when cross-compiling.
2119
8ed358e0
VS
21202013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
2123 and gcry_log_bug.
2124 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
2125
fc97214f
VS
21262013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2127
2128 * INSTALL: Document cross-compilation.
2129 * acinclude.m4: Determine whether nm support -P and --defined-only.
2130 * configure.ac: Add TARGET_ to all variables pertaining to target
2131 that don't have it yet.
2132 * gentpl.py: Likewise.
2133 * grub-core/Makefile.am: Likewise.
2134 * grub-core/genmod.sh.in: Likewise.
2135 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
2136 as well.
2137
ca1fb563
IB
21382013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2139
2140 * configure.ac: Remove -Wempty-body. It's not essential and needs
2141 recent gcc.
2142
0031b229
IB
21432013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2144
2145 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
2146 * util/getroot.c: Likewise.
2147
54ea2f44
VS
21482013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2149
2150 * grub-core/disk/ahci.c: Add needed explicit cast.
2151 * grub-core/lib/backtrace.c: Likewise.
2152 * grub-core/net/ip.c: Likewise.
2153 * grub-core/net/tcp.c: Likewise.
2154 * grub-core/net/udp.c: Likewise.
2155
3c601f8c
VS
21562013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
2159
1d679dda
VS
21602013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 * util/import_gcry.py: Add final newline in visibility.h.
2163
00c28dd9
VS
21642013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2165
2166 * conf/Makefile.common: Fix typo.
2167
32af299a
VS
21682013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
2171
e733cf52
VS
21722013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2173
2174 * Makefile.am (widthspec.h): Fix typo.
2175 * util/grub-gen-widthspec.c: Likewise.
2176
c6b066f2
VS
21772013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 Move ascii.h and widthspec.h generation to a separate build-time-only
2180 tool.
2181
ad1fe3f9 21822013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
2183
2184 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2185 Always fill bootdisk info and improve check for NetBSD disklabel.
2186
92a52dd4
VS
21872013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2188
2189 * conf/Makefile.extra-dist: Add util/bin2h.c.
2190 Reported by: floppym.
2191
b2e9d276
VS
21922013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
2195
7b966834
VS
21962013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * configure.ac: Disable unifont and starfield if no freetype was found.
2199
d5c1eef1
VS
22002013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
2203 on NetBSD and OpenBSD.
2204
66345b50 22052013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
2206
2207 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
2208
66345b50 22092013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
2210
2211 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
2212 reduced. Inheritant options are processed during the theme loading.
2213
66345b50 22142013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
2215
2216 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
2217
369508b3
AS
22182013-08-14 Avik Sil <aviksil@in.ibm.com>
2219
2220 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
2221
22222013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
2223
2224 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
2225 using qemu.
2226
6f27a3f6
PFS
22272013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2228
2229 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
2230 remove-potcdate.sed.
2231
c6ed362a
AB
22322013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2233
2234 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
2235 unused attribute from pull argument.
2236
5e7d9464
AB
22372013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2238
2239 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
2240 memory leak.
2241
dea55e2a
AB
22422013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2243
2244 * util/getroot.c (pull_lvm_by_command): add --separator option
2245 to vgs call to disable padding of output to 10 characters.
2246
f0b94ded
VS
22472013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2248
2249 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
2250 here ...
2251 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
2252 here.
2253
b828fb5d
VS
22542013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2255
2256 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
2257 length.
2258
7c9d0c39
VS
22592013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 Fix handling of build-time grub-bin2h and grub-mkfont when doing
2262 full Canadian cross. Tested with build=x86_64, host=arm,
2263 target=ppc-ieee1275.
2264
816719c8
VS
22652013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2266
2267 * configure.ac: Error if no $BUILD_CC could be found.
2268 Reported by: DevHC.
2269
2af2353b
VS
22702013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2271
2272 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
2273 i386-multiboot.
2274
797abd0a
VS
22752013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2276
2277 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
2278 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
2279
36e87d25
CW
22802013-08-13 Colin Watson <cjwatson@ubuntu.com>
2281
2282 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
2283 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
2284 falling back to the partition device, otherwise a later call to this
2285 function may fail spuriously.
2286 Reported by Axel Beckert. Fixes Debian bug #708614.
2287
273349fe
GS
22882013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2289
2290 * autogen.sh: Replace find -not by the POSIX-compliant find !.
2291
418f86c6
GS
22922013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2293
2294 Prevent shadowing of stdlib's devname(3) on BSD.
2295
2296 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
2297 and devlast to diskname and disklast, respectively.
2298
c137aea0
CW
22992013-08-11 Colin Watson <cjwatson@ubuntu.com>
2300
2301 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
2302
272dc8df 23032013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
2304
2305 * docs/grub.texi: Introduce terminal window position options:
2306 terminal-left: terminal window's left position
2307 terminal-top: terminal window's top position
2308 terminal-width: terminal window's width
2309 terminal-height: terminal window's height
2310 terminal-border: terminal window's border width
2311 * grub-core/gfxmenu/theme-loader.c: Likewise.
2312 * include/grub/gfxmenu_view.h: Likewise.
2313 * po/exlude.pot: Likewise.
2314 * grub-core/gfxmenu/view.c: Likewise.
2315 Also updated minimal window size.
2316 Also terminal_sanity_check function has been introduced.
272dc8df
VT
2317 * grub-core/tests/checksums.h: Update (terminal window height
2318 is adjusted now for low resolution screen)
b4743461 2319
748a4533
VS
23202013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
2323 position).
2324
fca5f944
VS
23252013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2326
2327 * po/exclude.pot: Add few recent exceptions.
2328
4f47d809
VS
23292013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 * tests/grub_func_test.in: Add unicode.pf2.
2332
a62ae90c
VS
23332013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2334
2335 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
2336 standard rather than noral color, in line with other terminals.
2337
4ed41392
VS
23382013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2339
2340 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
2341 analysis.
2342
3719fbc5
VS
23432013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 * grub-core/loader/arm/linux.c: Change printf to dprintf.
2346
459b1d91
VS
23472013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2348
2349 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
2350 inappropriate printf.
2351
f4e1ab9d
AB
23522013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
2353
2354 * .bzrignore: Remove grub-core/lib/dtc-grub,
2355 grub-core/Makefile.libfdt.def
2356 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
2357
fa471bfa
VS
23582013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2359
2360 * include/grub/video.h (grub_video_register): Keep double-linked as
2361 well as single-linked invariants.
2362 Reported by: qwertial.
2363
d65be02b
VS
23642013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 * grub-core/commands/nativedisk.c (get_uuid): Handle
2367 GRUB_DISK_DEVICE_UBOOTDISK_ID.
2368
ba8bc620
VT
23692013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
2370
2371 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
2372 maximum of NW, N, NE heights instead of N's height and maximum of
2373 NW, W, SW widths instead of W's width. (So the box will be always
2374 correctly drawn)
2375
4f0ad029
GS
23762013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
2377
2378 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
2379 Fix misuse of variable count.
2380
43d53b72
LL
23812013-07-18 Leif Lindholm <leif.lindholm@arm.com>
23822013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
23832013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 2384
43d53b72
LL
2385 New ports to arm-uboot and arm-efi.
2386 Mostly by Leif Lindholm with some additions from
2387 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 2388
88f8d146
VS
23892013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
2392 and not before.
2393 Reported by: Leon Drugi.
2394
3f42504c
VS
23952013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
2398 Reported by: Paulo Flabiano Smorigo.
2399
d110499b
VT
24002013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2401
2402 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
2403
a8674ad3
VT
24042013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2405
2406 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
2407
286fe4b3
VS
24082013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2409
2410 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
2411
1bd57aa3
VS
24122013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2413
2414 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
2415
7a87d69f
AB
24162013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
2417
2418 * grub-core/net/bootp.c: Export net_* variables.
2419 * grub-core/net/net.c: Likewise.
2420
b2182299
VS
24212013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2422
2423 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
2424
795b3dc0
VS
24252013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2426
2427 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
2428
68714c43
VS
24292013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2430
2431 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
2432
af211bab
VS
24332013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
2436
0036f02d
MM
24372013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2438
2439 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
2440 <= 0.
2441
6d0ddff3
MM
24422013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2443
2444 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
2445 functions.
2446
038016f4
MM
24472013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2448
2449 * grub-core/fs/zfs/zfs_lz4.c: New file.
2450 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
2451
776bdce2
MM
24522013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2453
2454 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
2455
c71dbd40
MM
24562013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2457
2458 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
2459 (check_pool_label): Likewise.
2460 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
2461
24622013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
2463
2464 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
2465
8e67b50f
AB
24662013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2467
2468 * docs/grub.texi (Commands): Document postition parameters
2469 for menuentry command.
2470
f5ae3717
AB
24712013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2472
2473 * util/grub-mknetdir.in: Remove stray line from help output.
2474
9c28da2a
VS
24752013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2476
2477 Remove early sm712 init as there is no reason for it (the "watchdog"
2478 effect was due to wrong GPIO map).
2479
139072b8
VS
24802013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 * grub-core/commands/pcidump.c: Remove static variables.
2483
c6a61bda
VS
24842013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2485
2486 * grub-core/commands/sleep.c: Refresh screen before sleeping.
2487
51369614
VS
24882013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 * configure.ac: Move delimiter after the infos.
2491
efa8640a
VS
24922013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2493
2494 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
2495
6f80a7b2
VS
24962013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
2499 not filling whole 8x16 space.
2500
a2371e19
VS
25012013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
2504
64fce2d8
VS
25052013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * configure.ac: Indicate which liblzma is used if any.
2508
eb272d84
PW
25092013-06-21 Paul Wise <pabs3@bonedaddy.net>
25102013-06-21 Craig Sanders <savannah@taz.net.au>
2511
2512 * util/grub-reboot.in: Document submenu usage.
2513
a9e5abee
CW
25142013-06-25 Colin Watson <cjwatson@ubuntu.com>
2515
2516 * .bzrignore: Update with a number of new test-related files.
2517
e639c204
CW
25182013-06-25 Colin Watson <cjwatson@ubuntu.com>
2519
2520 * util/grub-script-check.c: Fail on scripts containing no
2521 commands, to guard against corrupted grub-mkconfig setups that
2522 produce no useful output.
2523 * tests/grub_script_no_commands.in: New test.
2524 * Makefile.util.def (grub_script_no_commands): Add.
2525 Reported by Hans Putter. Fixes Debian bug #713886.
2526
a4c89b17
AB
25272013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2528
2529 * grub-core/disk/diskfilter.c: Forgot to remove comment
2530 from previous commit.
2531
5b06b53c
AB
25322013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2533
2534 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
2535 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
2536
702da5c9
AB
25372013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2538
2539 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
2540
aa62a5b7
AB
25412013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2542
2543 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
2544 rescan diskfilter devices until nothing new is found.
2545
4aa237c8
VS
25462013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2547
2548 Fix casts when compiling coreboot-specific code for 64-bit EFI.
2549
93d8479b
VS
25502013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2551
2552 Don't try to detect cbfs on *-emu.
2553
837222cc
VS
25542013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * grub-core/term/gfxterm.c: USe right background color when scrolling.
2557
99c971af
VS
25582013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 Add support for processed coreboot payload chainloading.
2561
e6930a45
VS
25622013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 Enable coreboot information commands even when not loaded as
2565 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
2566
5027af38
VS
25672013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2568
2569 Support for cbfs. Also factor out the part which is common
2570 for all archives to a separate module. This splits tar from cpio
2571 as they are very different but keeps cpio, cpio_be, odc and newc
2572 together since they're very similar.
2573
a5b55c4b
DM
25742013-06-15 David Michael <fedora.dm0@gmail.com>
2575
2576 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
2577 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
2578
0301a8b3
VS
25792013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * tests/grub_script_eval.in: Really add the eval test.
2582
3d84cb17
VS
25832013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 Move flavour-specific parts out of common cpio.c file and
2586 rename remaining to cpio_common.c
2587
593e430c
AB
25882013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2589
2590 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
2591 off new function grub_script_execute_new_scope. Change callers to use
2592 either of them as appropriate.
2593 * grub-core/commands/eval.c: New command eval.
2594 * docs/grub.texi (Commands): Document it.
2595
63c29849
AB
25962013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2597
2598 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
2599 to fetch values when listing.
2600
cc284112
AB
26012013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
2602
2603 Fix make dist on non-pc.
2604
26052013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
2606
2607 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
2608 without a device name.
2609
69544d1e
VS
26102013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2611
2612 Remove enable_executable_check as it's not needed anymore.
2613 Reported by: dougray.
2614
96dbe648
VS
26152013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2616
2617 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
2618 ambigouos RAID before discovering RAIDs on top of it.
2619 Reported by: bodom.
2620
ccfc0bdb
VS
26212013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 Fix typo (failback vs fallback).
2624
f2587088
AB
26252013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
2626
2627 * util/grub.d/30_os-prober.in: Add support for probing EFI
2628 System Partition (as of os-prober 1.58).
2629
cec5cf0c
VS
26302013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2631
2632 * configure.ac: Add yet another path to unifont. For parabola.
2633
e40b4596
JT
26342013-05-30 Josh Triplett <josh@joshtriplett.org>
2635
2636 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
2637 handling to copy the killed characters to the kill buffer as
2638 UCS4 stored as grub_uint32_t rather than as 8-bit characters
2639 stored as char. Eliminates UCS4 truncation and corruption
2640 observed when killing characters with Ctrl-u and yanking them
2641 back with Ctrl-y.
2642
fc4c4fdd
VS
26432013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2644
2645 Detach optional parts of gfxterm and integrate in with coreboot init.
2646
6570b205
VS
26472013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2648
2649 Move blit and fill dispatcher to appropriate files to decrease export
2650 and relocation overhead.
2651
b8323067
VS
26522013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 * grub-core/font/font.c, include/grub/font.h: Inline simple font
2655 functions.
2656
3cc1878f
VS
26572013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2658
2659 * grub-core/Makefile.am: Fix compilation problem with some
2660 automake versions.
2661
4b80e43c
VS
26622013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2663
2664 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
2665
57e0c20c
VS
26662013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2667
2668 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
2669 automake versions.
2670
4fd42c53
VS
26712013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2672
2673 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
2674 SSDT.
2675
1e908b34
RS
26762013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
2677
2678 * grub-core/partmap/dfly.c: New partition map.
2679
1359e474
VS
26802013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2681
2682 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
2683 checking.
2684 Reported by: Francesco Lavra.
2685
17806392
AB
26862013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
2687
2688 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
2689 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
2690 false conditions.
2691 * conf/Makefile.common: define dist_grubconf_DATA
2692
cdce14fa
VS
26932013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2694
2695 Progressively skip menu elements on small terminals rather
2696 than crashing.
2697
c8d6cc3c
VS
26982013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2699
2700 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
2701 to avoid losing last column.
2702
a73b31ce
VS
27032013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 * po/exclude.pot: Add missing string "%C".
2706
1202c764
VS
27072013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
2710 after the test.
2711
50268344
VS
27122013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * util/grub-install.in: Gettextize "Not found" message.
2715
62b15edf
VS
27162013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2717
2718 Fix distfiles list.
2719 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2720
27212013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
2722
2723 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
2724 present.
2725 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
2726
709ad61b
VS
27272013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
2730
d128901a
VS
27312013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
2734 attribute since structure is not necessarily aligned.
2735
34b22f5c
AB
27362013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
2737
2738 * docs/grub.texi (Device syntax): Clarify description of network
2739 drives.
2740
0f7e980b
VS
27412013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
2744 for vasprintf presence.
2745
30b03dc2
VS
27462013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * util/grub-install.in: Handle efibootmgr presence check.
2749 Reported by: Leif Lindholm.
2750
0dc11c08
VS
27512013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
2754 new strings to translate.
2755
f8024c3f
VS
27562013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2757
2758 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
2759 yet another string (pun intended) to translate.
2760
b4c1da62
VS
27612013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2762
2763 * po/POTFILES-shell.in: Autogenerate it.
2764
0ef7478b
VS
27652013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
2768
8200fa15
VS
27692013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2770
2771 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
2772 misnomer.
2773
091945b2
AB
27742013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
2775
2776 * docs/grub.texi (Network): Add description of net_default_interface,
2777 net_default_ip and net_default_mac. Rewrite variables description
2778 to emphasize that they are per-interface.
2779
0e7b2e32
VS
27802013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2781
2782 New test: cmdline and cat.
2783
16f7c8f6
VS
27842013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 * grub-core/commands/cat.c: Show UTF-8 characters.
2787
3e912fda
VS
27882013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 * conf/Makefile.common: Poison float and double on non-emu.
2791
ee0220bc
VS
27922013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2793
2794 * configure.ac: Don't disable extended registers on emu.
2795
89e0240c
VS
27962013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2797
2798 * configure.ac: Don't use extended registers on x86_64.
2799 Reported by: Peter Jones.
2800
e56d9637
VS
28012013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 * grub-core/term/efi/console.c: Fix compile error.
2804
8098f655
VS
28052013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 Compressed HFS+ support.
2808
16940e07
VS
28092013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2810
2811 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
2812 pixel".
2813
c5dbc13d
VS
28142013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2815
2816 Menu color test.
2817
011f8ae8
VS
28182013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * grub-core/tests/setjmp_test.c: New test.
2821
2aa072d7
VS
28222013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2823
2824 New variables 'net_default_*' to determine MAC/IP of default interface.
2825
43fe02cb
VS
28262013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2827
2828 * tests/gettext_strings_test.in: A test to check for strings not
2829 marked for translation.
2830
bed06142
VS
28312013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2832
2833 * autogen.sh: Exclude unused libgcrypt files from translation.
2834
fb2666b5
VS
28352013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 Simplify few strings.
2838
d22840ec
VS
28392013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2840
2841 Mark few forgotten strings for translation.
2842
e34092fd
VS
28432013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2844
2845 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
2846 rather than printf.
2847
47cf82b4
VS
28482013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
2851 rather than printf.
2852 * grub-core/video/readers/tga.c: Likewise.
2853
1eed0e6e
VS
28542013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2855
2856 * tests/priority_queue_unit_test.cc: New test.
2857
c5b7697b
VS
28582013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
2861 than printf.
2862
5945c2f8
AB
28632013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
2864
2865 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
2866 variable for one time boot menu entry.
2867
fa292343
B
28682013-05-05 Bean <bean123ch@gmail.com>
2869
2870 * grub-core/commands/testspeed.c: New command testspeed.
2871
310d4214
VS
28722013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 Factor-out human-size printing.
2875
85002bf3
VS
28762013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 Agglomerate more mallocs to speed-up gfxterm.
2879
22b06e96
VS
28802013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 Speed-up gfxterm by slightly agglomerating mallocs.
2883
b7c036bc
VS
28842013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2885
2886 More video checks.
2887
92323d1f
VS
28882013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2889
2890 Speed-up gfxterm by saving intermediate results in index+alpha
2891 format.
2892
0fb356a3
VS
28932013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
2896 test.
2897
44dea3f9
VS
28982013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
2901 line of timeout as it may contain the rest of long line.
2902
14af86e4
VS
29032013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2904
2905 * grub-core/normal/main.c: Fix freed memory dereference.
2906
03f7c8c3
VS
29072013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 Fix several memory leaks.
2910
c686014c
VS
29112013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2912
2913 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
2914
0788a695
VS
29152013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
2918
daf01d61
VS
29192013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2920
2921 Fix test -a and -o precedence.
2922 Reported by: adrian15.
2923
82ae74d7
VS
29242013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
2927
8cec7bd4
AB
29282013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
2929
2930 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
2931 and add it as source to functional_test module.
2932
aa73d688
VS
29332013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2934
2935 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
2936
c104b6f9
VS
29372013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 New series of tests for gfxterm and gfxmenu.
2940
7391c4d5
VS
29412013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
2944 the theme path relative to $prefix/themes.
2945
cff50118
VS
29462013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2947
2948 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
2949 Fix order bug.
2950 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
2951
7c332bdc
VS
29522013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2953
2954 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
2955 descriptor.
2956
a4f9a5ff
VS
29572013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2958
2959 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
2960 grub_gfxmenu_timeout_notifications.
2961 (grub_gfxmenu_view_destroy): Likewise.
2962
b5a2114d
VS
29632013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
2964
2965 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
2966
a8905e8a
VS
29672013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2968
2969 Several fixes to ieee1275 and big-endian video.
2970
813c1622
VS
29712013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2972
2973 Add missing exports on mips.
2974
3f3e7326
VS
29752013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2976
2977 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
2978 if no unifont is found.
2979 Restore original keyboard.
2980
095accd1
VS
29812013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2982
2983 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
2984 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
2985
50361660
VS
29862013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2987
2988 First automated video test (running videotest and comparing results)
2989
cd0f6eec
VS
29902013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
2991
2992 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
2993 instead of 2 to have full RGB/CMY test pattern.
2994
3f9634e5
VS
29952013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
2996
2997 Add few more tests.
2998
583e5b64
VS
29992013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3000
3001 * include/grub/arc/arc.h: Account for missing "other" peripheral on
3002 ARCS. All users updated.
3003
aa7bcb99
VS
30042013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
3007
95ef1a54
VS
30082013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3009
3010 * grub-core/partmap/amiga.c: Fix size of checksummed block.
3011
46546fc5
VS
30122013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3013
3014 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
3015 Reported by: qwertial.
3016
3476e0ef
VT
30172013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
3018
3019 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
3020 with syntax "XXX deg"/"XXX °".
3021
96f33fed
VS
30222013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 Make PCI init in i386-qemu port more robust.
3025
30262013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
3027
3028 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
3029 cached view is reused.
3030 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
3031 open boot menus.
3032
c53b4e67
VS
30332013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 Unify more code in grub-install_header.
3036
f7457fb2
VS
30372013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3038
3039 Add few new tests.
3040
e2f27a8c
VS
30412013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 Enforce disabling of firmware disk drivers when native drivers kick in.
3044
ef9d8cd5
VS
30452013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 * grub-core/commands/nativedisk.c: Customize the list of modules on
3048 platform. Don't try to search for disks already using native drivers.
3049
f7bf6c31
VS
30502013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3051
3052 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
3053 platforms.
3054
bdc4add8
VS
30552013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3056
3057 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
3058 handling of variables containing backslash.
3059
e9e46c9a
VS
30602013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
3063 dereference.
3064 Reported by: qwertial.
3065
0e90dee8
VS
30662013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3067
3068 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
3069
e0aacf24
VS
30702013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
3073 dereference.
3074 Reported by: qwertial.
3075
3c0003c3
VS
30762013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3077
3078 * docs/grub.texi: Add a comment about usefullness of nativedisk.
3079
adb7d667
VS
30802013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
3083
7cd0df84
VS
30842013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3085
3086 New command `nativedisk'.
3087
02adbb93
VS
30882013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3089
3090 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
3091 * grub-core/loader/i386/bsd.c: Likewise.
3092
9fb0fd4f
VS
30932013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3094
3095 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
3096
bd69257a
VS
30972013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
3100 grub_get_unaligned16 rather than shifts.
3101
178c2764
VS
31022013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 * grub-core/kern/file.c: Use const char * rather than casting to
3105 non-const.
3106
eadfad24
VS
31072013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/commands/probe.c: Add missing grub_device_close.
3110
9f73ebd4
VS
31112013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 * INSTALL: Document linguas.sh.
3114
965fa829
VS
31152013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 Remove POTFILES.in and regenerate it in autogen.sh.
3118
d417ddc4
VS
31192013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 Move --directory/--override-directorry to grub-install_header and unify.
3122
f97ec546
VS
31232013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 * grub-core/term/morse.c: Macroify dih and dah.
3126
b2d7470c
PFS
31272013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3128
3129 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
3130
141e2a78
VS
31312013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3132
3133 * grub-core/term/ns8250.c: Systematically probe ports by writing
3134 to SR before using them.
3135
1dd70ebd
PFS
31362013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3137
3138 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
3139 disks.
3140 (check_sas): Get sas_adress info.
3141
c796a107
VS
31422013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
3145 ports.
3146
43168646
LD
31472013-04-27 Leon Drugi <eyak>
3148
3149 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
3150 BSS clearing.
3151
e7b8fd08
VS
31522013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 Core compression test.
3155
17f9fd29
VS
31562013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3157
3158 Implement grub_machine_get_bootlocation for ARC.
3159
dc2a6c8b
VS
31602013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 Improve AHCI detection and command issuing.
3163
f25a2ba6
VS
31642013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 Fix pseries test.
3167
a6393224
VS
31682013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3169
3170 Make 'make check' work on emu.
3171
db99fbe8
VS
31722013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3173
3174 Replace libcurses with our own vt100 handling for the ease of testing
3175 and decreasing prerequisites.
3176
b24ca7cd
VS
31772013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3178
3179 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
3180
63314aa4
VS
31812013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
3184 compile when not needed.
3185
c1b00fff
VS
31862013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3187
3188 * tests/pseries_test.in: New test.
3189
f93e89ef
VS
31902013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 Add test to check that different boot mediums work.
3193
c4b456d3
VS
31942013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3195
3196 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
3197 ofw limited ISO support.
3198
5fe67f39
VS
31992013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 * configure.ac: Fix loongson conditional.
3202
7f63a64f
VS
32032013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3204
3205 Enable mipsel-arc.
3206
b04b5990
VS
32072013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 Add serial on ARC platform.
3210
88d2f302
VS
32112013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
3214 commit.
3215
86eb23bc
VS
32162013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * tests/partmap_test.in: Add missing double semicolon.
3219
eec3bb75
VS
32202013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * util/grub-mkrescue.in: Fix loongson filename.
3223
e0810df3
VS
32242013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * util/grub-mkrescue.in: Move all files that don't have a location
3227 set in stone under /boot/grub. Use ISO hard links rather than copies
3228 to save some space.
3229
65a6b30b
VS
32302013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3231
3232 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
3233 bogus SLOF values.
3234
6aff0107
VS
32352013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3236
3237 Make check work on mips-arc.
3238
5e013e56
VS
32392013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * util/grub-mkrescue.in: Alias sashARCS as sash.
3242
d1989e2e
VS
32432013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3244
3245 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
3246 it's serial.
3247
1a25e72c
VS
32482013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3249
3250 * util/grub-install.in: Fix target fo qemu_mips.
3251 Fix extension on EFI.
3252
a59a9826
VS
32532013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3254
3255 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
3256 in front of chosen entry to mark it even if highlighting is lost.
3257
1a40f80c
VS
32582013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3259
3260 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
3261 gfxpayload=keep if cbfb is active.
3262
e343549c
VS
32632013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
3266
45fbd9a2
VS
32672013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 Add missing video ids to coreboot and ieee1275 video.
3270
ab1440bd
VS
32712013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * util/grub-mkrescue.in: Add mips-arc support.
3274
cdeb8324
VS
32752013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3276
3277 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
3278
8528c879
VS
32792013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3280
3281 Move mips-arc link address. Previous link address was chosen
3282 in belief that RAM on SGI platforms grows down while in fact it
3283 grows up from an unusual base.
3284
17fca573
VS
32852013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3286
3287 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
3288 Fix a type which prevented CD-ROM and floppy boot.
3289
d178788e
VS
32902013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 Support coreboot framebuffer.
3293
3294 * grub-core/video/i386/coreboot/cbfb.c: New file.
3295
fe4c3e7e
VS
32962013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3297
3298 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
3299 detecting too small regions.
3300
ec2dd179
VS
33012013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
3304
872dac83
VS
33052013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
3308 Remove dprintf.
3309 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3310
90ec4b7f
VS
33112013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3312
3313 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
3314 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3315 * grub-core/loader/powerpc/ieee1275/linux.c
3316 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3317
f32555dd
VS
33182013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3321 Look for /boot-rom as well as /rom/boot-rom.
3322
38649799
VS
33232013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
3326 handling when creating text_layer failed.
3327 * grub-core/video/video.c (grub_video_create_render_target):
3328 Set result to 0 on error.
3329 (grub_video_delete_render_target): Do not dereference NULL.
3330
aeace7f7
VS
33312013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
3334 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
3335 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
3336 (grub_linux_load64): Mask out 2 high bits.
3337
4eafa175
AB
33382013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
3339
3340 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
3341 more place.
3342
daaa64bd
VS
33432013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3344
3345 Add support for pseries and other bootinfo machines to grub-mkrescue.
3346
3347 Tested by: Paulo Flabiano Smorigo.
3348
d0d2daa6
VS
33492013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * util/grub-mkrescue.in: Add GPT for EFI boot.
3352
b193e100
VS
33532013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
3356 It improves performance in qemu.
3357
a0f8f3ac
VS
33582013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * build-aux/snippet: Add missing gnulib files.
3361
284df0e2
AB
33622013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3363
3364 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
3365
740201f3
AB
33662013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3367
3368 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
3369
a7e03923
PJ
33702013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
33712013-04-15 Peter Jones <pjones@redhat.com>
3372
3373 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
3374 sectors.
3375 Based on patch by Peter Jones.
3376
25fc51a8
VS
33772013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3378
3379 Fix DMRAID partition handling.
3380
88017d47
VS
33812013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 * tests/grub_cmd_date.in: Skip on sparc64.
3384
fa7d914e
VS
33852013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
3388 firmware error messages.
3389
cbe57a48
VS
33902013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3391
3392 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
3393 source and destination differ.
3394
21aecce0
VS
33952013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
3398 detection.
3399
25092d29
VS
34002013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
3403 match config-util.h to avoid warnings and increase compatibility.
3404
79451522 34052013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 34062013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
3407
3408 Add option to compress files on install/image creation.
3409
78b7d77b
VS
34102013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 * docs/grub-dev.texi: Rearrange menu to match the section order.
3413 Reported by: Bryan Hundven.
3414
cc2fa5ec
VS
34152013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3416
3417 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
3418
b49fe879
VS
34192013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3420
3421 Move GRUB out of system area when using xorriso 1.2.9 or later.
3422
5351da81
VS
34232013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 * tests/grub_cmd_date.in: Add missing exit 1.
3426
c9d586ea
VS
34272013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * tests/partmap_test.in: Skip on sparc64.
3430
3f729741
VS
34312013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3432
3433 Support grub-shell on sparc64.
3434
8ca86b3a
VS
34352013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 Support mkrescue on sparc64.
3438
aa1af9bb
VS
34392013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3440
3441 Allow IEEE1275 ports on path even if it wasn't detected automatically.
3442 Needed on OpenBIOS due to incomplete device tree.
3443
ac4fea79
VS
34442013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
3447 would be otherwise excluded.
3448
34492013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
3450
3451 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3452 Inline name defines used only once.
3453
fe22b071
VS
34542013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 Fix memory leaks in ofnet.
3457 Reported by: Francesco Lavra.
3458
9d21381b
VS
34592013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3460
3461 * docs/man/grub-glue-efi.h2m: Add missing file.
3462
07aec23c
VS
34632013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
3466
67ab8353
VS
34672013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 Better support Apple Intel Macs on CD.
3470
ba44ca6d
VS
34712013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3472
3473 Replace stpcpy with grub_stpcpy in tools.
3474
bbdd6305
VS
34752013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 Handle Japanese special keys.
3478 Reported by: Hiroyuki YAMAMORI.
3479 Codes supplied by: Hiroyuki YAMAMORI.
3480
8573d302
VS
34812013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * util/grub-mkimage.c: Document memdisk implying --prefix.
3484
d70dbab7
VS
34852013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
3488 much we can do about it anyway.
3489
51a4c3e3
AN
34902013-04-12 Aleš Nesrsta <starous@volny.cz>
3491
3492 Fix handling of split transfers.
3493
92c8f58d
VS
34942013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * grub-core/net/http.c: Fix bad free.
3497
b7d17a49
VS
34982013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
3501 than buffer size.
3502
a3d566d4
VS
35032013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 Disable partmap check on i386-ieee1275 due to openfirmware issues.
3506
a936af56
VS
35072013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3508
3509 * tests/util/grub-shell.in: Fix it on powerpc.
3510
51212234
VS
35112013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3512
3513 Turn off QEMU ACPI-way since new releases don't have shutdown port
3514 anymore.
3515
a21eec9e
VS
35162013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3517
3518 * docs/grub.texi: Update coreboot status info.
3519
e3734b84
VS
35202013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3521
3522 * tests/grub_cmd_date.in: New test for datetime.
3523
f9d40055
VS
35242013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3525
3526 * tests/partmap_test.in: Fix missing qemudisk setting.
3527
dbc56d8f
VS
35282013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 Support i386-ieee1275 grub-mkrescue and make check on it.
3531
a79b8a15
VS
35322013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
3535 feature for it.
3536
48f39bb4
VS
35372013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
3540 GRUB_CMDLINE_XEN_DEFAULT.
3541 Reported by: Marc Warne (GigaTux) <gigatux>
3542
053cfcdd
VS
35432013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 Import new gnulib.
3546
93cd84df
VS
35472013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 Use ACPI shutdown intests as traditional port was removed.
3550
f4b1fa4f
AB
35512013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
3552
3553 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
3554 distinction.
3555
49818a59
VS
35562013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3557
3558 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
3559 Fix few warining messages and leaks while on it.
3560
9277a306
AB
35612013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
3562
3563 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
3564 links under grub-core/lib/libgcrypt-grub/mpi.
3565
d5e2a158
VS
35662013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 Fix ia64-efi image generation on big-endian machines. Deduplicate
3569 some code while on it.
3570 Reported by: Leif Lindholm.
3571
18866643
AB
35722013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3573
3574 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
3575 as extra_dist.
3576
ca53deb8
AB
35772013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
3578
3579 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
3580
d4c4b8e1
BH
35812013-04-08 Bryan Hundven <bryanhundven@gmail.com>
3582
3583 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
3584 texinfo-5.1.
3585
47043f95
VS
35862013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * grub-core/normal/term.c: Few more fixes for menu entry editor
3589 rendering.
3590 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3591
a3216068
VS
35922013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 * grub-core/normal/term.c: Few more fixes for menu entry editor
3595 rendering.
3596 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3597
21026747
AB
35982013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3599
3600 * conf/Makefile.extra-dist (EXTRA_DIST): Add
3601 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
3602
59624ca8
AB
36032013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
3604
3605 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
3606 instead of hardcoding grub.mo.
3607
1f44478c
FN
36082013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
3609
3610 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
3611
eeada7b1
VS
36122013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3613
3614 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
3615 grub-core/disk/geli.c.
3616
132867de
VS
36172013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 * util/grub-mkfont.c: Prefer enum to #define.
3620
de73de17
VS
36212013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
3624
1865baa7
VS
36252013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3626
3627 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
3628
ce7d92a9
VS
36292013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
3632
52eab656
VS
36332013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
3636
98b23b95
VS
36372013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * include/grub/bsdlabel.h: Use enums.
3640
0467a5dd
VS
36412013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 Move GRUB_CHAR_BIT to types.h.
3644
16cc9f03
AB
36452013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3646
3647 * docs/grub.texi: Document more user commands.
3648
3152aecb
AB
36492013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
3650
3651 * docs/grub.texi: Document menuentry --id option.
3652
c506fc30
FL
36532013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
3654
3655 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
3656
aa428238
VS
36572013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3658
3659 Unify file copying setup across different install scripts. Add
3660 options for performing partial install.
3661
efe0cdda
PJ
36622013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
36632013-04-04 Peter Jones <pjones@redhat.com>
3664
3665 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
3666
f75835bd
VS
36672013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3668
3669 Use TSC as a possible time source on i386-ieee1275.
3670
2cd5ce6c
VS
36712013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
3674 Init err.
3675
c9625630
VS
36762013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 * util/grub-setup.c (setup): Handle some corner cases.
3679
be008941
VS
36802013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3681
3682 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
3683
1a78d573
VS
36842013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3685
3686 * grub-core/commands/verify.c: Save verified file to avoid it being
3687 tampered with after verification was done.
3688
db8ff59f
VS
36892013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3690
3691 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
3692 reported width by one to compensate for curesor algorithm problem.
3693
91bf46b1
VS
36942013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 Fix screen corruption in menu entry editor and simplify the code
3697 flow while on it.
3698
a7b1d693
AB
36992013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
3700
3701 * util/grub-mount.c (fuse_init): Return error if fuse_main
3702 failed.
3703
31df9ad8
FL
37042013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
3705
3706 * include/grub/elf.h: Add missing ARM relocation codes and fix
3707 existing ones.
3708
07f392eb
VT
37092013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3710
3711 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
3712
9efd73ec 37132013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
37142013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
3717 into account when calculating radius.
3718
37192013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
3720
3721 * grub-core/gfxmenu/view.c: Fix off-by-one error.
3722
4985ddaa
VT
37232013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
3724
3725 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
3726
8c3635ff
RS
37272013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3728
3729 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
3730 missing closing bracket.
3731
74a35e69
RS
37322013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
3733
3734 * INSTALL: Mention xorriso requirement.
3735
40f1c000
AB
37362013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
3737
3738 * grub-core/commands/verify.c: Fix hash algorithms values for
3739 the first three hashes - they start with 1, not with 0.
3740
e75fdee4
VS
37412013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
3744 Try terminating EFI services several times due to quirks in some
3745 implementations.
3746
33028f4c
CW
37472013-03-26 Colin Watson <cjwatson@ubuntu.com>
3748
3749 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
3750 skipping Event, Device, Processor, PowerRes, ThermalZone, and
3751 BankField extended opcodes.
3752 (get_sleep_type): Add minimal scope handling (just enough to
3753 handle setting the scope to the root path).
3754 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
3755 * include/grub/acpi.h: Add enumeration values for Event, Device,
3756 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
3757
33871a10
VT
37582013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
3759
3760 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
3761 memory leak.
3762
8990963a
VS
37632013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * grub-core/disk/ahci.c: Give more time for AHCI request.
3766
daae8f9e
VS
37672013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
3770 command.
3771
6a7fb94b
VS
37722013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 Replace the region at 0 from coreboot tables to available in BSD
3775 memory map.
3776
ff99babd
VS
37772013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
3780 non-BIOS platforms.
3781
30d6b1b2
VS
37822013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
3785 platforms.
3786
6ccd0b31
VS
37872013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
3790 handling of multi-device filesystems.
3791
23c9cc04
VS
37922013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
3795 platforms.
3796
ce50dbd7
VS
37972013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
3798
3799 Add new 'proc' filesystem framework and put luks_script into it.
3800
d975e8d5
VS
38012013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
3804 and qemu.
3805
e73ba5e8
VS
38062013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
3809
92750e4c
VS
38102013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 Add ability to generate newc additions on runtime.
3813
0ec45a68
VS
38142013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
3817 description.
3818
320abd43
VS
38192013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 * po/POTFILES.in: Regenerate.
3822
d7a6506e
VS
38232013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/commands/verify.c (hashes): Add several hashes
3826 from the spec.
3827
8fe05def
VS
38282013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 Slight improve in USB-related boot-time checkpoints.
3831
524e2766
VS
38322013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * grub-core/commands/boottime.c: Fix copyright header.
3835
cc19857a
VS
38362013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
3839 coreboot tables content. Support for cbmemc.
3840
ef8810e9
VS
38412013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 Fix a conflict between ports structures with 2 controllers of
3844 same kind.
3845
e9dabdfa
VS
38462013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
3847
3848 * include/grub/boottime.h: Add missing file.
3849
f6df57d2
VS
38502013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 Initialize USB ports in parallel to speed-up boot.
3853
d745dda7
VS
38542013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 Fix USB devices not being detected when requested
3857 due to delayed attach.
3858
e5a2dd7b
VS
38592013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3860
e744219b
VS
3861 Implement boot time analysis framework.
3862
38632013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3864
3865 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
3866 descriptor to just receive it as argument rather than endpoint
3867 address.
3868
5dd6f587
VS
38692013-03-19 Aleš Nesrsta <starous@volny.cz>
3870
3871 Better estimate the maximum USB transfer size.
3872
2f1071d5
VS
38732013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 Resend a packet if we got the wrong buffer in status.
3876
46ecfc49
VS
38772013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3878
3879 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
3880 multiplication rather than division.
3881
ea811130
VS
38822013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
3885 than divisions.
3886
d2789cf0
VS
38872013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3888
3889 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
3890 operations to have intended shifts and not divisions.
3891
a9c94590
VS
38922013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3893
3894 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
3895 intended shifts rather than division.
3896
84cfe81b
VS
38972013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3898
3899 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
3900 computation for some years before epoch. Avode confusing division
3901 while on it.
3902
21344ef6
VS
39032013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/video/i386/pc/vbe.c
3906 (grub_video_vbe_print_adapter_specific_info): Replace division by
3907 shifts.
3908
3f2b4d1a
VS
39092013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 Adjust types in gdb module to have intended unsigned shifts rather than
3912 signed divisions.
3913
3dac5878
VS
39142013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
3917 maximum size is 4G - 1 on hfs
3918
5341c0fb
VS
39192013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
3922
fc3ff2a2
VS
39232013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3924
3925 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
3926 function.
3927
81455e8e
AB
39282013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
3929
3930 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
3931 causing gcc error with gcc 4.7.1.
3932
efd4f117
NZ
39332013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
3934
3935 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
3936 dereference null pointer. While the code is technically correct, gcc
3937 may eliminate a null check if pointer is already dereferenced.
3938
e11645f4
NZ
39392013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
3940
3941 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
3942 OOM check.
3943 * grub-core/normal/term.c (read_terminal_list): Likewise.
3944
77468368
VS
39452013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
3946
3947 Lift up core size limits on some platforms. Fix potential memory
3948 corruption with big core on small memory systems. Document remaining
3949 limits.
3950
f6b58fe5
VS
39512013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
3952
3953 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
3954 gotoxy to 0,0.
3955
19ce697d
VS
39562013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3957
3958 Remove all trampoline support. Add -Wtrampolines when
3959 present. Remove symbols used for trampolines to make
3960 link fail if trampolines are present.
3961
73b5d90f
VS
39622013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3963
3964 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
3965 append out of its parent.
3966
cb758e96
VS
39672013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
3970 parent.
3971
3188131f
VS
39722013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3973
3974 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
3975 all vars to a macro. All users updated.
3976
e42b2514
VS
39772013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 * grub-core/disk/ieee1275/nand.c: Fix compilation on
3980 i386-ieee1275.
3981
83e1a1a1
VS
39822013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3983
3984 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
3985
1d5a880f
VS
39862013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
3989
6e4146c4
VS
39902013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 Move to more hookless approach in IEEE1275 devices handling.
3993
99fcda8a
VS
39942013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * grub-core/kern/term.c (grub_term_normal_color),
3997 (grub_term_highlight_color): Add back lost defaults.
3998
73bf57e2
VS
39992013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 Make elfload not use hooks. Opt for flags and iterators instead.
4002
7f8c105f
VS
40032013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4004
4005 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
4006 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
4007
396d4091
VS
40082013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4009
4010 * grub-core/script/execute.c (gettext_append): Remove nested functions.
4011
40122013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4013
4014 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
4015 hook pass-through parameter. All users updated and unnested.
4016
74a27421
VS
40172013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
4020 out of its parent.
4021
b46d4213
VS
40222013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * grub-core/fs/hfs.c: Remove nested functions.
4025
e114c3cc
VS
40262013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
4029 the context through.
4030 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
4031
f9b7d780
VS
40322013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4033
4034 * util/grub-editenv.c (list_variables): Move print_var out of its
4035 parent.
4036
ca9c2608
VS
40372013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4038
4039 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
4040 function.
4041
5d983f5f
VS
40422013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4043
4044 * grub-core/gentrigtables.c: Make tables const.
4045
3056d3e7
VS
40462013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 Remove nested functions from videoinfo iterators.
4049
e2303774
VS
40502013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
4053 for 64-bit platforms.
4054
f42e3a2f
VS
40552013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4056
4057 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
4058 a FOR_CHILDREN macro.
4059
be174e5e
VS
40602013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4061
4062 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
4063 platform from firmware path.
4064
0789b672
VS
40652013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 Enable linux16 on non-BIOS systems for i.a. memtest.
4068
4069 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
4070 correctly.
4071 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
4072
005a9c32
VS
40732013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4074
4075 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
4076 Fix end of table condition.
4077
ff2b3cd9
VS
40782013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4079
4080 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
4081 out of its parent.
4082
4fc40ff8
VS
40832013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * grub-core/fs/jfs.c: Remove nested functions.
4086
be42d97a
VS
40872013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * grub-core/fs/minix.c: Remove nested functions.
4090
99373ce4
VS
40912013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * grub-core/fs/iso9660.c: Remove nested functions.
4094
5aec2afe
VS
40952013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4096
4097 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
4098 of parent function.
4099
6c69e691
VS
41002013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4101
4102 * util/grub-fstest.c: Remove nested functions.
4103
43c91882
VS
41042013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * grub-core/loader/machoXX.c: Remove nested functions.
4107
4eb8b756
CW
41082013-02-27 Colin Watson <cjwatson@ubuntu.com>
4109
4110 Remove nested functions from disk and file read hooks.
4111
4112 * include/grub/disk.h (grub_disk_read_hook_t): New type.
4113 (struct grub_disk): Add read_hook_data member.
4114 * include/grub/file.h (struct grub_file): Likewise.
4115 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
4116 argument.
4117
4118 Update all callers.
4119
df6da5a5
AB
41202012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
4121
4122 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
4123 Fix off by one error in enumerating extended partitions.
4124
21aecde5
AB
41252013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
4126
4127 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
4128 memory leak if device name is not found.
4129
f1a19118
AB
41302013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4131
4132 * grub-core/normal/menu_entry.c (update_screen): remove
4133 unused variable `off' which caused scroll down arrow to be always shown.
4134
958bfd20
AB
41352013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4136
4137 * grub-core/normal/menu_entry.c (insert_string): fix off by one
4138 access to unallocated memory.
4139
b7b78edb
AB
41402013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4141
4142 * Makefile.util.def: Add partmap/msdos.c to common library.
4143 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
4144 * grub-core/disk/ldm.c: Check for existence of
4145 GRUB_PC_PARTITION_TYPE_LDM.
4146
28d468d6
VS
41472013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4148
4149 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
4150 sizes and display sector size.
4151
d55ffb02
VS
41522013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 Implement new command cmosdump.
4155
b5ea6ce0
VS
41562013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4157
4158 Support Openfirmware disks with non-512B sectors.
4159
4160 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
4161 size of the disk.
4162 * (grub_ofdisk_get_block_size): New function.
4163 * (grub_ofdisk_prepare): Use the correct block size.
4164 * (grub_ofdisk_read): Likewise.
4165 * (grub_ofdisk_write): Likewise.
4166 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
4167 New proto.
4168
cc0e476f
VS
41692013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4170
4171 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
4172
c5dbdc33
VS
41732013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
4174
4175 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
4176 on first error.
4177
3f078c0f
VS
41782013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
4181 freeing it.
4182
66a93674
VS
41832013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 Implement USBDebug (full USB stack variant).
4186
c9f0c134
VS
41872013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
4190 unless they have unexpected values.
4191
cfe1288b
VS
41922013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4193
4194 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
4195 grub_print_error.
4196
e42b9969
VS
41972013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4198
4199 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
4200 zero-out of port structure.
4201
cf94fd62
VS
42022013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
4205 of extended attributes.
4206
f81ef4b5
AB
42072013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
4208
4209 * util/grub-install.in: change misleading comment about
4210 device.map creation
4211
af18fdb4
VS
42122013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
4215 when menu highlight color isn't set.
4216
08bcec50
M
42172013-01-27 C. Masloch <pushbx@38.de>
4218
4219 Improve FreeDOS direct loading support compatibility.
4220
4221 * include/grub/i386/relocator.h (grub_relocator16_state):
4222 New member ebp.
4223 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
4224 variable.
4225 (grub_relocator16_boot): Handle %ebp.
4226 * grub-core/lib/i386/relocator16.S: Likewise.
4227 * grub-core/loader/i386/pc/freedos.c:
4228 Load BPB to pass kernel which partition to load from.
4229 Check that kernel file is not too large.
4230 Set register dl to BIOS unit number as well.
4231
7782b8a6
CW
42322013-01-22 Colin Watson <cjwatson@ubuntu.com>
4233
4234 * util/grub-reboot.in (usage): Document the need for
4235 GRUB_DEFAULT=saved.
4236 * util/grub-set-default.in (usage): Likewise.
4237 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
4238
e661c180
VS
42392013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4240
4241 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
4242 than defining WORDS_BIGENDIAN manually.
4243
1c22ca9a
VS
42442013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4245
4246 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
4247 invariants.
4248
d44892fe
CW
42492013-01-21 Colin Watson <cjwatson@ubuntu.com>
4250
4251 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
4252 nested.
4253 (blit_comb: add_device_width): Likewise.
4254
5fdbaed1
CW
42552013-01-21 Colin Watson <cjwatson@ubuntu.com>
4256
4257 Remove nested functions from USB iterators.
4258
4259 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
4260 (grub_usb_controller_iterate_hook_t): Likewise.
4261 (grub_usb_iterate): Add hook_data argument.
4262 (grub_usb_controller_iterate): Likewise.
4263 (struct grub_usb_controller_dev.iterate): Likewise.
4264
4265 Update all implementations and callers.
4266
4250985a
VS
42672013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4268
4269 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
4270 margin when not needed.
4271
7d8848f3
VS
42722013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4273
bc136973 4274 Make color variables global instead of it being per-terminal.
7d8848f3
VS
4275
42762013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4277
bc136973
VS
4278 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
4279 asterisk.
7d8848f3 4280
ed12a003
CW
42812013-01-21 Colin Watson <cjwatson@ubuntu.com>
4282
4283 Fix powerpc and sparc64 build failures caused by un-nesting memory
4284 map iterators.
4285
6a0db449
CW
42862013-01-21 Colin Watson <cjwatson@ubuntu.com>
4287
4288 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
4289 parameter declarations.
4290
ccd86b21
VS
42912013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
4294
822b726b
VS
42952013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4296
4297 Improve spkmomdem reliability by adding a separator between bytes.
4298
115c2cc1
CW
42992013-01-21 Colin Watson <cjwatson@ubuntu.com>
4300
4301 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
4302 an Acer registration utility with several sightings in the wild.
4303 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
4304
fc524edf
CW
43052013-01-21 Colin Watson <cjwatson@ubuntu.com>
4306
4307 Remove nested functions from filesystem directory iterators.
4308
4309 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
4310 (struct grub_fs.dir): Add hook_data argument.
4311
4312 Update all implementations and callers.
4313
53d3e4e3
CW
43142013-01-21 Colin Watson <cjwatson@ubuntu.com>
4315
4316 * docs/grub.texi (Multi-boot manual config): Fix typo for
4317 "recommended".
4318
c821711f
LL
43192013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4320
4321 * util/grub-mkimage.c (main): Postpone freeing arguments.output
4322 until after its use in generate_image.
4323
6a0debbd
CW
43242013-01-20 Colin Watson <cjwatson@ubuntu.com>
4325
4326 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
4327 initrd size to addr_min, since the initrd will be allocated after
4328 this address.
4329
f41e08db
AB
43302013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4331
4332 * conf/Makefile.common: Fix autogen rules to pass definition
4333 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
4334
77529e0f
LL
43352013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4336
4337 * include/grub/elf.h: Update ARM definitions based on binutils.
4338
b879aa7b
VS
43392013-01-20 Aleš Nesrsta <starous@volny.cz>
4340
4341 Split long USB transfers into short ones.
4342
8eb8284d
AB
43432013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4344
4345 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
4346 is interrupted by ESC.
4347
08dad2dc
VS
43482013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4349
4350 * util/grub-script-check.c (main): Uniform the error message.
4351
6c724b85
CW
43522013-01-20 Colin Watson <cjwatson@ubuntu.com>
4353
4354 Remove nested functions from ELF iterators.
4355
25239370
CW
43562013-01-20 Colin Watson <cjwatson@ubuntu.com>
4357
4358 Remove nested functions from device iterators.
4359
4360 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
4361 (grub_arc_iterate_devs): Add hook_data argument.
4362 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
4363 (struct grub_ata_dev.iterate): Add hook_data argument.
4364 * include/grub/device.h (grub_device_iterate_hook_t): New type.
4365 (grub_device_iterate): Add hook_data argument.
4366 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
4367 (struct grub_disk_dev.iterate): Add hook_data argument.
4368 (grub_disk_dev_iterate): Likewise.
4369 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
4370 Likewise.
4371 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
4372 Likewise.
4373 * include/grub/partition.h (grub_partition_iterate_hook_t): New
4374 type.
4375 (struct grub_partition_map.iterate): Add hook_data argument.
4376 (grub_partition_iterate): Likewise.
4377 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
4378 (struct grub_scsi_dev.iterate): Add hook_data argument.
4379
4380 Update all callers.
4381
6c0314d6
CW
43822013-01-20 Colin Watson <cjwatson@ubuntu.com>
4383
4384 Fix typos for "developer" and "development".
4385
600dc5f1
VS
43862013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 Add license header to spkmodem-recv.c.
4389
17334a6b
VS
43902013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 Rewrite spkmodem to use PIT for timing. Double the speed.
4393
7d462559
VS
43942013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 Add new command pcidump.
4397
b78d6c32
VS
43982013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 New terminal outputs using serial: morse and spkmodem.
4401
34f71cb8
VS
44022013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4403
4404 Improve bidi handling in entry editor.
4405
4542e71b
VS
44062013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
4409 argument to prevent name collision.
4410
09fd6d82
CW
44112013-01-15 Colin Watson <cjwatson@ubuntu.com>
4412
4413 Remove nested functions from script reading and parsing.
4414
4415 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
4416 getline_data argument, passed to getline.
4417 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
4418 getline_data argument, passed to grub_parser_split_cmdline.
4419 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
4420 lexerstate->getline_data to lexerstate->getline.
4421 (grub_script_lexer_init): Add getline_data argument, saved in
4422 lexerstate->getline_data.
4423 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
4424 argument, passed to grub_script_parse.
4425 * grub-core/script/script.c (grub_script_parse): Add getline_data
4426 argument, passed to grub_script_lexer_init.
4427 * include/grub/parser.h (grub_parser_split_cmdline): Update
4428 prototype. Update all callers to pass appropriate getline data.
4429 (struct grub_parser.parse_line): Likewise.
4430 (grub_rescue_parse_line): Likewise.
4431 * include/grub/reader.h (grub_reader_getline_t): Add void *
4432 argument.
4433 * include/grub/script_sh.h (struct grub_lexer_param): Add
4434 getline_data member.
4435 (grub_script_parse): Update prototype. Update all callers to pass
4436 appropriate getline data.
4437 (grub_script_lexer_init): Likewise.
4438 (grub_normal_parse_line): Likewise.
4439
4440 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
4441 data argument.
4442 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
4443 static instead of nested. Rename to ...
4444 (grub_parser_execute_getline): ... this.
4445 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
4446 data argument.
4447 * grub-core/normal/main.c (read_config_file: getline): Make static
4448 instead of nested. Rename to ...
4449 (read_config_file_getline): ... this.
4450 (grub_normal_read_line): Add unused data argument.
4451 * grub-core/script/execute.c (grub_script_execute_sourcecode:
4452 getline): Make static instead of nested. Rename to ...
4453 (grub_script_execute_sourcecode_getline): ... this.
4454 * util/grub-script-check.c (main: get_config_line): Make static
4455 instead of nested.
4456
d0d4b8a0
CW
44572013-01-15 Colin Watson <cjwatson@ubuntu.com>
4458
4459 Remove nested functions from memory map iterators.
4460
4461 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
4462 argument, passed to hook.
4463 * grub-core/kern/i386/coreboot/mmap.c
4464 (grub_linuxbios_table_iterate): Likewise.
4465 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
4466 instead of nested.
4467 (grub_machine_mmap_iterate): Add hook_data argument.
4468 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
4469 Add hook_data argument, passed to hook.
4470 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
4471 Likewise.
4472 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
4473 Likewise.
4474 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
4475 Likewise.
4476 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
4477 Likewise.
4478 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
4479 Likewise.
4480 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
4481 Likewise.
4482 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
4483 (grub_machine_mmap_iterate): Likewise.
4484 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
4485 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
4486 prototype.
4487 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
4488 Remove NESTED_FUNC_ATTR from here and from all users.
4489 (grub_mmap_iterate): Update prototype.
4490 (grub_efi_mmap_iterate): Update prototype. Update all callers to
4491 pass appropriate hook data.
4492 (grub_machine_mmap_iterate): Likewise.
4493
4494 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
4495 static instead of nested.
4496 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
4497 Rename to ...
4498 (lsmmap_hook): ... this.
4499 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
4500 Likewise.
4501 (grub_efiemu_mmap_fill: fill_hook): Likewise.
4502 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
4503 heap_init): Likewise.
4504 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
4505 Rename to ...
4506 (mmap_iterate_hook): ... this.
4507 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
4508 Likewise.
4509 * grub-core/lib/ieee1275/relocator.c
4510 (grub_relocator_firmware_get_max_events: count): Likewise.
4511 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
4512 to ...
4513 (grub_relocator_firmware_fill_events_iter): ... this.
4514 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
4515 hook): Likewise. Rename to ...
4516 (grub_relocator_alloc_chunk_align_iter): ... this.
4517 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
4518 Rename to ...
4519 (generate_e820_mmap_iter): ... this.
4520 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
4521 Rename to ...
4522 (count_hook): ... this.
4523 (grub_linux_boot: hook): Likewise. Rename to ...
4524 (grub_linux_boot_mmap_find): ... this.
4525 (grub_linux_boot: hook_fill): Likewise. Rename to ...
4526 (grub_linux_boot_mmap_fill): ... this.
4527 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
4528 hook): Likewise. Rename to ...
4529 (grub_fill_multiboot_mmap_iter): ... this.
4530 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
4531 hook): Likewise. Rename to ...
4532 (count_hook): ... this.
4533 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
4534 hook): Likewise. Rename to ...
4535 (grub_fill_multiboot_mmap_iter): ... this.
4536 * grub-core/loader/powerpc/ieee1275/linux.c
4537 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
4538 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
4539 Likewise. Rename to ...
4540 (alloc_phys_choose): ... this.
4541 (determine_phys_base: get_physbase): Likewise.
4542 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
4543 find_hook): Likewise.
4544 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
4545 (malloc_hook: count_hook): Likewise.
4546 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
4547 Likewise. Rename to ...
4548 (lower_hook): ... this.
4549 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4550 (upper_hook): ... this.
4551 (grub_mmap_get_post64: hook): Likewise. Rename to ...
4552 (post64_hook): ... this.
4553 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
4554 Likewise. Rename to ...
4555 (lower_hook): ... this.
4556 (grub_mmap_get_upper: hook): Likewise. Rename to ...
4557 (upper_hook): ... this.
4558 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
4559 (grub_mmap_iterate: fill_hook): Likewise.
4560 (fill_mask): Pass addr and mask within a single struct.
4561 (grub_cmd_badram: hook): Make static instead of nested. Rename
4562 to ...
4563 (badram_iter): ... this.
4564 (grub_cmd_cutmem: hook): Likewise. Rename to ...
4565 (cutmem_iter): ... this.
4566
22099030
VS
45672013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4568
4569 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
4570 delimit path in strings using quotes.
4571 * util/getroot.c (grub_guess_root_devices): Likewise.
4572 (grub_make_system_path_relative_to_its_root): Likewise.
4573 * util/grub-probe.c (probe): Likewise.
4574 * util/ieee1275/ofpath.c (find_obppath): Likewise.
4575 (xrealpath): Likewise.
4576
4a9950ec
VS
45772013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4578
4579 Fix compilation with older compilers.
4580
4581 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
4582 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
4583 declarations.
4584 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
4585 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
4586 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
4587 identifier with b.
4588 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
4589 * include/grub/crypto.h: Add type defines.
4590 * util/import_gcrypth.sed: Remove duplicate type defines.
4591
adcc6020
VS
45922013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
4593
4594 New command list_trusted.
4595
4596 * grub-core/commands/verify.c (grub_cmd_list): New function.
4597
a4528937
CW
45982013-01-13 Colin Watson <cjwatson@ubuntu.com>
4599
4600 * util/grub-mkimage.c (generate_image): Fix "size of public key"
4601 info message.
4602
ca3a7446
CW
46032013-01-13 Colin Watson <cjwatson@ubuntu.com>
4604
4605 Remove nested functions from PCI iterators.
4606
4607 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
4608 passed to hook. Update all callers to pass appropriate hook data.
4609 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
4610 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
4611 Remove NESTED_FUNC_ATTR from here and from all users.
4612 (grub_pci_iterate): Update prototype.
4613 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
4614 instead of nested. Rename to ...
4615 (grub_cs5536_find_iter): ... this.
4616 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
4617 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
4618 Likewise.
4619 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
4620 Likewise.
4621 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
4622 Likewise.
4623 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
4624 Likewise.
4625 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
4626 * grub-core/video/radeon_fuloong2e.c
4627 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
4628 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
4629 find_card): Likewise.
4630 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
4631 Likewise.
4632
f8e98fee
VS
46332013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * grub-core/commands/verify.c: Mark messages for translating.
4636
055b36b6
VS
46372013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4638
4639 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
4640 fatal.
4641
f7ff879b
VS
46422013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4643
4644 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
4645 fatal.
4646
46472013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
4648
4649 * autogen.sh: Do not try to delete nonexistant files.
4650 * util/import_gcrypth.sed: Add some missing header removals.
4651
01323d49
CW
46522013-01-12 Colin Watson <cjwatson@ubuntu.com>
4653
4654 Clean up dangling references to grub-setup.
4655 Fixes Ubuntu bug #1082045.
4656
4657 * docs/grub.texi (Images): Refer generally to grub-install rather
4658 than directly to grub-setup.
4659 (Installing GRUB using grub-install): Remove direct reference to
4660 grub-setup.
4661 (Device map) Likewise.
4662 (Invoking grub-install): Likewise.
4663 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
4664 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
4665 * util/grub-install.in (usage): Likewise.
4666
4667 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
4668 Apply to grub-bios-setup and grub-sparc64-setup rather than to
4669 grub-setup.
4670 * configure.ac: Remove grub_setup output variable.
4671
4672 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
4673 to grub-bios-setup.
4674 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
4675 grub-setup to grub-sparc64-setup.
4676
5e3b8dcb
VS
46772013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 Import gcrypt public-key cryptography and implement signature checking.
4680
535714bd
VS
46812013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 * grub-core/fs/ntfs.c: Ue more appropriate types.
4684 * grub-core/fs/ntfscomp.c: Likewise.
4685 * include/grub/ntfs.h: Likewise.
4686
3e4f3566
VS
46872013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4688
4689 Support Apple FAT binaries on non-Apple platforms.
4690
4691 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
4692 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
4693 Likewise.
4694 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
4695 Apple FAT binaries.
4696
4dedb13f
VS
46972013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
4698
4699 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
4700 sector devices.
4701
f8861eaf
CW
47022013-01-07 Colin Watson <cjwatson@ubuntu.com>
4703
4704 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
4705 explicitly zeroing elements.
4706 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
4707 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
4708 of elements in a structure already allocated using grub_zalloc.
4709 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
4710
86065b0a
CW
47112013-01-07 Colin Watson <cjwatson@ubuntu.com>
4712
4713 * docs/grub.texi (grub_cpu): New subsection.
4714 (grub_platform): Likewise.
4715
c6f1e92f
VS
47162013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
4719
f797ec85
VS
47202013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4721
4722 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
4723 divisions.
4724
033d0b4b
VS
47252013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4726
4727 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
4728 * grub-core/fs/ntfscomp.c: Likewise.
4729 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
4730 (grub_ntfs_comp): Likewise.
4731
21d1b9a0
VS
47322013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4733
4734 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
4735 Rename to ...
4736 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
4737 of groups_per_block. All users updated.
4738
10ca8645
VS
47392013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
4740
4741 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
4742 grub_error properly.
4743 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
4744 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
4745
a4c3ed4c
VS
47462013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
4749 always in /boot/zfs.
4750 Reported by: Yuta Satoh.
4751
0b716507
YS
47522013-01-03 Yuta Satoh <nigoro>
4753
4754 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
4755 ${grub_probe}
4756
00c05e22
VS
47572013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4758
4759 * configure.ac: Extend -Wno-trampolines to host.
4760
dadddb76
VS
47612013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
4762
4763 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
4764 entry->len = 0.
4765
54ce53ca
CW
47662013-01-03 Colin Watson <cjwatson@ubuntu.com>
4767
4768 * docs/grub.texi (Invoking grub-mkrelpath): New section.
4769 (Invoking grub-script-check): Likewise.
4770
8912efca
CW
47712013-01-03 Colin Watson <cjwatson@ubuntu.com>
4772
4773 * docs/grub.texi (Invoking grub-mount): New section.
4774 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
4775
c3fc8394
CW
47762013-01-02 Colin Watson <cjwatson@ubuntu.com>
4777
4778 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
4779 test failures, so that a failing unit test correctly causes 'make
4780 check' to fail.
4781
45d26abb
CW
47822013-01-02 Colin Watson <cjwatson@ubuntu.com>
4783
4784 Fix failing printf test.
4785
4786 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
4787 '$' in the correct order when collecting type information.
4788
971dd2c6
CW
47892013-01-02 Colin Watson <cjwatson@ubuntu.com>
4790
4791 * docs/grub.texi (configfile): Explain environment variable
4792 handling.
4793 (source): New section.
4794 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
4795
5c67ea6c
CW
47962012-12-31 Colin Watson <cjwatson@ubuntu.com>
4797
4798 Remove several trivially-unnecessary uses of nested functions.
4799
4800 * grub-core/commands/i386/pc/sendkey.c
4801 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
4802 instead of nested.
4803 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
4804 Rename to ...
4805 (legacy_file_getline): ... this.
4806 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
4807 Likewise.
4808 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
4809 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
4810 to ...
4811 (probe_dummy_iter): ... this.
4812 * grub-core/kern/i386/coreboot/mmap.c
4813 (grub_linuxbios_table_iterate: check_signature): Likewise.
4814 * grub-core/kern/parser.c (grub_parser_split_cmdline:
4815 check_varstate): Likewise. Mark inline.
4816 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
4817 an additional parameter.
4818 (find_long: fnd_long): Likewise. Pass two additional parameters.
4819 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
4820 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
4821 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
4822 Likewise. Rename to ...
4823 (grub_cmos_find_port_iter): ... this.
4824 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
4825 Rename to ...
4826 (find_rtc_iter): ... this.
4827
4828 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
4829 function directly into the function body, since it is only called
4830 once.
4831
33a68ac6
CW
48322012-12-30 Colin Watson <cjwatson@ubuntu.com>
4833
4834 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
4835 __attribute__ ((unused)).
4836 * grub-core/video/bochs.c (find_card): Likewise.
4837 * grub-core/video/cirrus.c (find_card): Likewise.
4838 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
4839 * grub-core/video/sis315pro.c (find_card): Likewise.
4840 * grub-core/video/sm712.c (find_card): Likewise.
4841
608b647a
CW
48422012-12-28 Colin Watson <cjwatson@ubuntu.com>
4843
4844 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
4845 Fixes Savannah bug #37821.
4846
fd49ceb3
CW
48472012-12-28 Colin Watson <cjwatson@ubuntu.com>
4848
4849 Apply program name transformations at build-time rather than at
4850 run-time. Fixes Debian bug #696465.
4851
4852 * acinclude.m4 (grub_TRANSFORM): New macro.
4853 * configure.ac: Create output variables with transformed names for
4854 most programs.
4855 * util/bash-completion.d/grub-completion.bash.in: Use
4856 pre-transformed variables for program names.
4857 * util/grub-install.in: Likewise.
4858 * util/grub-kbdcomp.in: Likewise.
4859 * util/grub-mkconfig.in: Likewise.
4860 * util/grub-mkconfig_lib.in: Likewise.
4861 * util/grub-mknetdir.in: Likewise.
4862 * util/grub-mkrescue.in: Likewise.
4863 * util/grub-mkstandalone.in: Likewise.
4864 * util/grub-reboot.in: Likewise.
4865 * util/grub-set-default.in: Likewise.
4866 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4867 * tests/util/grub-shell-tester.in: Remove unused assignment.
4868 * tests/util/grub-shell.in: Likewise.
4869 * util/grub.d/00_header.in: Likewise.
4870
7024b3c0
CW
48712012-12-28 Colin Watson <cjwatson@ubuntu.com>
4872
4873 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
4874
4875 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
4876 HAVE_RAW_DECL_GETS.
4877 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
4878
e3501b13
VS
48792012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
4880
4881 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
4882 Reported by: Eriks Latosheks <foresterlv>.
4883
b40c88a9
VS
48842012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4885
4886 * docs/grub.texi (Network): Update instructions on generating netboot
4887 image.
4888
ce96d01c
VS
48892012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
4892 around device name if necessarry.
4893
0f596201
PFS
48942012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4895
4896 * util/grub-install.in: Follow the symbolic link parameter added
4897 to the file command.
4898
600d5bdb
AB
48992012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
4900
4901 * util/grub-install.in: Remove stale TODO.
4902
64ebd2f4
PFS
49032012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4904
4905 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
4906 dynamic allocation for the bootpath buffer.
4907
74b2fe3e
DTB
49082012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
4909
4910 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
4911 window too small.
4912
969b804f
VS
49132012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
4916 argument rather than font name. All users updated.
4917 (grub_gfxterm_set_window): Likewise.
4918
b9f5ebd6
VT
49192012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4920
4921 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
4922 from working.
4923
258f43b7
VS
49242012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4925
4926 * util/getroot.c (convert_system_partition_to_system_disk): Support
4927 nbd disks.
4928
cc1ce5f9
VS
49292012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
4930
4931 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
4932 infinite loop on corrupted FS.
4933
e77a16ca
VS
49342012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
4935
4936 Fix big-endian mtime.
4937
4938 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
4939 together sec and usec.
4940 (grub_ufs_dir): Use correct byteswapping for UFS time.
4941
d9c48c7b
VS
49422012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
4943
4944 Support big-endian UFS1.
4945
4946 * Makefile.util.def (libgrubmods): Add ufs_be.c
4947 * grub-core/Makefile.core.def (ufs1_be): New module.
4948 * grub-core/fs/ufs_be.c: New file.
4949 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
4950 the file.
4951
2f9f40ba
LL
49522012-11-28 Leif Lindholm <leif.lindholm@arm.com>
4953
4954 * include/grub/types.h: Fix functionality unaffecting typo in
4955 GRUB_TARGET_WORDSIZE conditional macro.
4956
48ff0889
PFS
49572012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4958
4959 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
4960
03711240
GS
49612012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
4962
4963 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
4964 that /netbsd appears first (when it exists).
4965
a31b11bd
CJ
49662012-10-12 Christoph Junghans <ottxor@gentoo.org>
4967
4968 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
4969 Fixes Savannah bug #37558.
4970
e8a5d5d4
CW
49712012-10-12 Colin Watson <cjwatson@ubuntu.com>
4972
4973 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
4974 description of extract_entries_configfile.
4975
49762012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
4977
4978 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
4979 preferred_address.
4980 (grub_cmd_linux): Likewise.
4981 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
4982 preferred_lifetime. Update all users.
4983
288c757d
CW
49842012-09-26 Colin Watson <cjwatson@ubuntu.com>
4985
4986 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
4987 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
4988
0d35da3f
CW
49892012-09-26 Colin Watson <cjwatson@ubuntu.com>
4990
4991 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
4992 errors from grub-probe to /dev/null, not stdout.
4993
b78c3127
VS
49942012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
4997 sector 1.
4998
473959f0
CW
49992012-09-24 Colin Watson <cjwatson@ubuntu.com>
5000
5001 * util/grub-install.in: Make the error message if $source_dir
5002 doesn't exist more useful.
5003
794c8c33
CW
50042012-09-22 Colin Watson <cjwatson@ubuntu.com>
5005
5006 Fix grub-emu build on FreeBSD.
5007
5008 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
5009 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
5010 headers on Linux.
5011 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
5012 implementation is currently Linux-specific.
5013 * util/getroot.c (exec_pipe): Define only on Linux or when either
5014 libzfs or libnvpair is unavailable.
5015 (find_root_devices_from_poolname): Remove unused path variable.
5016
86d08fdb
CW
50172012-09-19 Colin Watson <cjwatson@ubuntu.com>
5018
5019 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
5020 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
5021 should fit before end == 63.
5022
735abf54
CW
50232012-09-19 Colin Watson <cjwatson@ubuntu.com>
5024
5025 * util/grub-setup.c (write_rootdev): Remove unused core_img
5026 parameter. Update all callers.
5027 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
5028 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
5029 GRUB_SETUP_BIOS.
5030
140acd3c
VS
50312012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 * util/grub-mkconfig_lib.in (grub_tab): New variable.
5034 (grub_add_tab): New function.
5035 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
5036 * util/grub.d/10_illumos.in: Likewise.
5037 * util/grub.d/10_kfreebsd.in: Likewise.
5038 * util/grub.d/10_linux.in: Likewise.
5039 * util/grub.d/10_netbsd.in: Likewise.
5040 * util/grub.d/10_windows.in: Likewise.
5041 * util/grub.d/10_xnu.in: Likewise.
5042 * util/grub.d/20_linux_xen.in: Likewise.
5043 * util/grub.d/30_os-prober.in: Likewise.
5044
7ddffdad
VS
50452012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5048 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
5049 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
5050 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
5051 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
5052 ieee1275-nocursor.
5053 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
5054 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
5055
4e092454
VS
50562012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
5059 le-conversion.
5060 Reported by: BURETTE, Bernard.
5061
735abf54 50622012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
5063
5064 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
5065 from comment.
5066
dfd39dbd
CW
50672012-09-14 Colin Watson <cjwatson@ubuntu.com>
5068
5069 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
5070 IEEE1275 machines. Fixes powerpc-emu compilation.
5071 * include/grub/terminfo.h: Likewise.
5072
3bfa763c
VS
50732012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
5076 a const pointer.
5077 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
5078 const pointer.
5079 (efiemu_set_variable): Make vendor_guid a const pointer.
5080
250e475b
VS
50812012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 Don't require grub-mkconfig_lib to generate manpages for programs.
5084
5085 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
5086 dependencies, don't add grub-mkconfig_lib.
5087 (program): Pass empty adddeps.
5088 (script): Pass grub-mkconfig_lib as adddeps.
5089
592fd0e4
VS
50902012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
5093 * util/getroot.c (grub_find_device): Likewise.
5094 (get_mdadm_uuid): Likewise.
5095 (grub_util_is_imsm): Likewise.
5096 (grub_util_pull_device): Likewise.
5097 * util/grub-probe.c (probe): Likewise.
5098
801a3027
BG
50992012-09-10 Benoit Gschwind <gschwind>
5100
5101 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
5102 (devs): Add devpath_8.
5103
c5052c81
PJ
51042012-09-08 Peter Jones <pjones@redhat.com>
5105
5106 * grub-core/Makefile.core.def (efifwsetup): New module.
5107 * grub-core/commands/efi/efifwsetup.c: New file.
5108 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
5109 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
5110 New define.
5111 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
5112
8e832f71
JS
51132012-09-05 Jiri Slaby <jslaby@suse.cz>
5114
5115 * configure.ac: Add SuSe path.
5116
f0f55752
CW
51172012-09-05 Colin Watson <cjwatson@ubuntu.com>
5118
5119 * NEWS: Fix typo.
5120
ecadc4c2
CW
51212012-09-05 Colin Watson <cjwatson@ubuntu.com>
5122
5123 * util/import_gcry.py: Sort cipher_files, to make build system
5124 generation more deterministic.
5125
64498f25
VS
51262012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5127
5128 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
5129 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
5130 (grub_set_datetime): Likewise.
5131
9cc836a2
VS
51322012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5133
5134 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
5135 warnings.
5136
bcfcea01
VS
51372012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5138
5139 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
5140
a4099485
VS
51412012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5142
5143 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
5144
265c162a
CW
51452012-09-04 Colin Watson <cjwatson@ubuntu.com>
5146
5147 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
5148 required for checkouts from bzr, but it may be useful for users or
5149 distributors wishing to update translations against a tarball
5150 distribution, and it can be helpful for the tarball to be a superset
5151 of what's in bzr.
5152
3d171e95
CW
51532012-09-04 Colin Watson <cjwatson@ubuntu.com>
5154
5155 * Makefile.am (EXTRA_DIST): Add
5156 grub-core/tests/boot/linux.init-mips.S,
5157 grub-core/tests/boot/linux.init-ppc.S, and
5158 grub-core/tests/boot/linux-ppc.cfg.
5159
f2c2503e
CW
51602012-09-04 Colin Watson <cjwatson@ubuntu.com>
5161
5162 * grub-core/mmap/mips/loongson: Remove empty directory.
5163
51642012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
5165
5166 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
5167 gone.
5168
ab2163d5
CW
51692012-09-04 Colin Watson <cjwatson@ubuntu.com>
5170
5171 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
5172 grub-sparc64-setup.
5173
ce938140
GS
51742012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5175
5176 * configure.ac: Strengthen the test for working -nostdinc -isystem.
5177
529f58a5
GS
51782012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5179
5180 * po/POTFILES.in: Regenerated.
5181
16cf79e9
GS
51822012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5183
5184 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
5185 (NetBSD): New subsection.
5186
39b27f1e 51872012-07-22 Ales Nesrsta <starous@volny.cz>
5188
5189 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
5190 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
5191
a885261b
VS
51922012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5193
5194 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
5195 * util/grub.d/10_hurd.in: Add missing quoting.
5196 * util/grub.d/10_illumos.in: Likewise.
5197 * util/grub.d/10_kfreebsd.in: Likewise.
5198 * util/grub.d/10_linux.in: Likewise.
5199 * util/grub.d/20_linux_xen.in: Likewise.
5200
7bd29c01
VS
52012012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5202
5203 New command `lsefi'.
5204
5205 * grub-core/Makefile.core.def (lsefi): New module.
5206 * grub-core/commands/efi/lsefi.c: New file.
5207 * include/grub/efi/api.h: Add more GUIDs.
5208
ac625d8f
VS
52092012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
5212 (grub_bsd_elf32_hook): Likewise.
5213 (grub_bsd_elf64_size_hook): Likewise.
5214 (grub_bsd_elf64_hook): Likewise.
5215 (grub_bsd_load_elf): Likewise.
5216
e73bb801
VS
52172012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5218
5219 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
5220 if hash function is unavailable.
5221 (dec_stream_header): Likewise.
5222
e81db8b5
VS
52232012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5224
5225 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
5226 filter state.
5227
d187a1c3
VS
52282012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5229
5230 Fix coreboot compilation.
5231
5232 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
5233 (grub_vga_text_init_real): ... this.
5234 (grub_vga_text_fini): Rename to ...
5235 (grub_vga_text_fini_real): ... this.
5236
91a05f64
VS
52372012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5238
5239 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
5240
6af96df7
VS
52412012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5242
5243 * grub-core/lib/legacy_parse.c: Support clear and testload.
5244
4d569e12
VS
52452012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
5248
073b57bb
VS
52492012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5250
5251 * grub-core/fs/ext2.c: Experimental support for 64-bit.
5252
a706f4cc
VS
52532012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5254
5255 * grub-core/net/tftp.c (ack): Fix endianness problem.
5256 (tftp_receive): Likewise.
5257 Reported by: Michael Davidsaver.
5258
e7850aa9
VS
52592012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5260
5261 * gentpl.py: Make mans depend on grub-mkconfig_lib.
5262
52632012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5264
5265 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
5266 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
5267 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
5268
35692881
VS
52692012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5270
5271 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
5272 efi_mmap_size.
5273 Reported by: Stuart Hayes.
5274
c35fc5bd
VS
52752012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5276
5277 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
5278
5279 * grub-core/Makefile.core.def (mda_text): New module.
5280 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
5281 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
5282 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
5283 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
5284 here.
5285 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
5286 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
5287 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
5288 here.
5289 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
5290 to ..
5291 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
5292 ... here
5293 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
5294 here.
5295 * grub-core/term/i386/vga_common.c: Removed.
5296 * include/grub/i386/vga_common.h: Likewise.
5297 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
5298 (grub_vga_cr_bw_read): Likewise.
5299 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
5300 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
5301 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
5302 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
5303 grub_vga_cr_read/grub_vga_cr_write.
5304 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
5305
5f91f701
VS
53062012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5307
5308 * configure.ac: Bump version to 2.00.
5309 * grub-core/normal/main.c (features): Add feature_200_final.
5310
0c4f85f6
VS
53112012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
53122012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
5313
5314 * NEWS: Fix unclarity and language mistakes.
5315
f923ad22
VS
53162012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5317
5318 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
5319 additional size to 3 pages.
5320 Reported by: Stuart Hayes.
5321
d22029ba
VS
53222012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5323
5324 * NEWS: Add 2.00 entry.
5325
58eee08f
VS
53262012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5327
5328 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
5329 put explicit "/" for empty path.
5330 (wildcard_expand): Improve dprintf.
5331
c59bdff7
VS
53322012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5333
5334 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
5335 it's equal to currnode. This can happen with "" symlink.
5336
5e6a440a
YB
53372012-06-27 Yves Blusseau <blusseau@zetam.org>
5338
5339 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
5340 echo shell command by printf command.
5341
73a68bcb
VS
53422012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5343
5344 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
5345 the value returned by firmware is the maximal position, not diumension.
5346 (grub_terminfo_output_state): Use a more sane fallback.
5347
392a603b
VS
53482012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
5351
42d0867f
VS
53522012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5353
5354 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
5355 frequency to 150 MHz.
5356
489509f4
VS
53572012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 Apple fixes.
5360
5361 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
5362 __APPLE_
5363 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
5364 definition.
5365 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
5366
9f3fc883
VS
53672012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5368
5369 Handle slash in HFS label.
5370
5371 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
5372 (grub_hfs_dir): Tanslate slash.
5373 (grub_hfs_label): Don't translate slash.
5374
54853fd7
VS
53752012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5376
5377 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
5378 network protocol listing since it introduces problematic dependency on
5379 net module.
5380
4dc02ddf
VS
53812012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5382
5383 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
5384
c50c867d
VS
53852012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5386
5387 Init video early on yeeloong to avoid being rebooted by watchdog.
5388
5389 * grub-core/Makefile.am (gensm712): New target.
5390 (sm712_start.S): Likewise.
5391 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
5392 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
5393 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
5394 description.
5395 * include/grub/vga.h: Move registry definitions to...
5396 * include/grub/vgaregs.h: ... here.
5397
5f92c8a1
VS
53982012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5399
5400 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
5401 signedness.
5402
e9e6f111
VS
54032012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5404
5405 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
5406 platforms with firmware disk drivers in the core.
5407
754ad9eb
VS
54082012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5409
5410 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
5411 informative verbose message.
5412 (read_lv): Handle 64-bit segment size.
5413
315654c2
VS
54142012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5415
5416 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
5417
fb022c79
VS
54182012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5419
5420 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
5421 character but still remove trainling spaces.
5422 (grub_fat_label): Ignore archive flag.
5423
8645f72c
VS
54242012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5425
5426 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
5427 cast between linux_kernel_header and linux_kernel_params.
5428
36498496
VS
54292012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5430
5431 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
5432 type for size.
5433 (grub_raid6_recover_func_t): Likewise.
5434 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
5435 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
5436
0b5ea6b8
VS
54372012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5438
5439 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
5440
650cfcfe
GS
54412012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
5442
5443 Fix overflow.
5444
5445 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
5446 [__NetBSD__]: Add explicit cast before bitshift.
5447
8a4d6a44
VS
54482012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5449
5450 * configure.ac: Bump to 2.00~rc1.
5451
2fb97ed3
VS
54522012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
5455 half of $a0.
5456
1fa097dc
VS
54572012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
54582012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
5459
5460 * docs/grub.texi: Fix search syntax.
5461 (Multi-boot manual config): Put msdos rather than GPT example.
5462 Grammar corrections.
5463
c890ba78
VS
54642012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5465
5466 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
5467
0f92dca7
VS
54682012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
5471
3988c4a0
VS
54722012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5473
5474 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
5475 message on double free. Put the value of magic in case of mismatch.
5476
9e86d4c5
VS
54772012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5478
5479 Speed-up video on yeeloong.
5480
5481 * grub-core/video/sm712.c (framebuffer): Remove render_target and
5482 add cached_ptr.
5483 (grub_video_sm712_video_fini): Unmap cached_ptr.
5484 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
5485 (grub_video_sm712_set_active_render_target): Removed.
5486 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5487 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
5488 sync caches.
5489
ed24c312
VS
54902012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 Avoid flushing the same line multiple times on loongson.
5493
5494 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
5495 Step in 32 bytes and not 1 byte.
5496 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
5497 Likewise.
5498
d1718e7d
VS
54992012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5500
5501 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
5502 subvolumes.
5503
982f1909
VS
55042012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5505
5506 Implement flow control for http.
5507
5508 * grub-core/net/http.c (parse_line): Handle response 206.
5509 (http_receive): Stall if too many packets are in the queue.
5510 (http_establish): Fix range header.
5511 (http_seek): Fix double free.
5512 (http_close): Likewise.
5513 (http_packets_pulled): New function.
5514 (grub_http_protocol): Set http_seek
5515 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
5516 (ack_real): Set window depending on i_stall.
5517 (grub_net_send_tcp_packet): Likewise.
5518 (grub_net_tcp_stall): New function.
5519 (grub_net_tcp_unstall): Likewise.
5520 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
5521 (grub_net_tcp_unstall): Likewise.
5522
bd407d6e
VS
55232012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5524
5525 * grub-core/net/tftp.c: Decrease stall to 50 packets.
5526
c7564b8e
VS
55272012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5528
5529 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
5530
a3706162
VS
55312012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 * tests/util/grub-shell.in: Fix a typo.
5534
b27069e0
VS
55352012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5536
5537 Implement flow control for tftp.
5538
5539 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
5540 packets but stop only if stop condition is satisfied.
5541 (grub_net_fs_read_real): Call packets_pulled after real read. Use
5542 `stall' instead of `eof' as stop condition.
5543 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
5544 (http_err): Likewise.
5545 * grub-core/net/tftp.c (ack): Replace the first argument with data
5546 instead of socket.
5547 (tftp_receive): Stall if too many packets are in wait queue.
5548 (tftp_packets_pulled): New function.
5549 (grub_tftp_protocol): Set packets_pulled.
5550 * include/grub/net.h (grub_net_packets): New field count.
5551 (grub_net_put_packet): Increment count.
5552 (grub_net_remove_packet): Likewise.
5553 (grub_net_app_protocol): New field `packets_pulled'.
5554 (grub_net): New field `stall'.
5555
6b9cfac6
VS
55562012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5557
5558 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
5559 sync part to handle them.
5560
f35abd81
VS
55612012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5562
5563 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
5564 * grub-core/net/drivers/ieee1275/ofnet.c
5565 (grub_ieee1275_net_config_real): Likewise.
5566
0e7ec820
VS
55672012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5568
5569 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
5570 the direct route for server/gateway.
5571
9d611a31
VS
55722012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5573
5574 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
5575 IP address to server name since we may not hame the DNS.
5576
418f45ab
VS
55772012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5578
5579 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
5580 freeing random buffer on failure.
5581 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
5582
44a0efc1
VS
55832012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5584
5585 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
5586
531e2241
VS
55872012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
5590 reserved bytes.
5591 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
5592 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
5593 Handle malloc error correctly.
5594
cde393c9
VS
55952012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5596
5597 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
5598 blocks.
5599
538478d0
VS
56002012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
5603 increment.
5604
9b55efe0
VS
56052012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
5608 none is explicitly specified.
5609
9eb832c3
VS
56102012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
5613 while reallocating.
5614
d6b7c7c9
VS
56152012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 Respect netmask from bootp/dhcp.
5618
5619 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
5620 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
5621 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
5622 into ...
5623 (grub_net_add_ipv4_local): ... this.
5624 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
5625 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
5626 (grub_net_add_ipv4_local): New proto.
5627
67caf9eb
VS
56282012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5629
5630 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
5631 determining EFI memory map size.
5632
43657558
VS
56332012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5634
5635 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
5636
eb6d0dd3
VS
56372012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5638
5639 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
5640 when looking for partition separator.
5641
31230544
VS
56422012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5643
5644 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
5645 Escape commas.
5646
918a2517
VS
56472012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 Restructure FAT driver to avoid hook in label reading as it hits a
5650 GCC bug.
5651
5652 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
5653 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
5654 (grub_fat_iterate_dir): Split into ...
5655 (grub_fat_iterate_init): ... this, ...
5656 (grub_fat_iterate_fini): ... this, ...
5657 (grub_fat_iterate_dir_next): ... and this. All users updated.
5658
9f1d654e
VS
56592012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5660
5661 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
5662 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
5663 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5664 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
5665 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
5666 New fields last_key and last_key_time.
5667 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
5668 extended key-esc into extended key-extended key.
5669
52f0f643
VS
56702012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5671
5672 Avoid unnecessary memcpy of whole video buffer.
5673
5674 * grub-core/video/fb/video_fb.c (dirty): New struct.
5675 (framebuffer): Add members current_dirty and previous_dirty.
5676 (dirty): New function.
5677 (grub_video_fb_fill_rect): Update dirty.
5678 (common_blitter): Likewise.
5679 (grub_video_fb_scroll): Likewise.
5680 (doublebuf_blit_update_screen): Copy only dirty part.
5681 (doublebuf_pageflipping_update_screen): Likewise.
5682 (grub_video_fb_doublebuf_blit_init): Init dirty.
5683 (doublebuf_pageflipping_init): Likewise.
5684 (grub_video_fb_setup): Likewise.
5685
e169a180
VS
56862012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5687
5688 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
5689 poll rate.
5690
48556879
VS
56912012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5692
5693 Fix wildcard regexp dot and other special characters handling.
5694 Reported by: Robert Mabee.
5695
5696 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
5697 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
5698 (split_path): Trigger expansion on '?'.
5699 (unescape): New function.
5700 (wildcard_expand): Unescape parts copied without globbing.
5701 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
5702 (grub_script_arglist_to_argv): Don't unescape expansions.
5703
0494408e
VS
57042012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5705
5706 * include/grub/net.h (grub_net_card): New member txbufsize.
5707 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
5708 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5709 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
5710 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
5711 txbufsize.
5712 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
5713 compatible property to check for macs. Set
5714 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
5715 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
5716 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
5717 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
5718 (send_card_buffer): Use txbuf.
5719 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
5720 nested function out of the parent while on it.
5721
cc35fe8f
VS
57222012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
5725 presence check.
5726 (grub_ieee1275_net_config_real): Fix config pointer.
5727
970a0a09
VS
57282012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
5731 filename parsing to non-block devices.
5732
3e19bf87
VS
57332012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
5734
5735 * grub-core/kern/device.c (grub_device_open): Remove dead code.
5736
c62d1a0c
VS
57372012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5738
5739 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
5740 All users updated.
5741
ef76bec3
VS
57422012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
5743
5744 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
5745 UUID search command even if hints probing failed.
5746
57472012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
5748
5749 * po/POTFILES.in: Regenerated.
5750
70aaf305
VS
57512012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 Speed-up video on fuloong.
5754
5755 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
5756 New function.
5757 (grub_pci_device_unmap_range): Handle non-cached address.
5758 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
5759 add direct_ptr.
5760 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
5761 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
5762 (grub_video_sis315pro_set_active_render_target): Removed.
5763 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
5764 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5765 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
5766 sync caches.
5767 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
5768 New proto.
5769
10400f0b
VS
57702012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * docs/grub.texi (Multi-boot manual config): New section.
5773
ba67e2c6
VS
57742012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 Avoid slow read-back from VRAM.
5777
5778 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
5779 Move from here ...
5780 * grub-core/video/fb/video_fb.c
5781 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
5782 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
5783 (front_target): Remove front_target. Add pages.
5784 (grub_video_fb_init): Skip setting front_pages.
5785 (grub_video_fb_fini): Likewise.
5786 (doublebuf_blit_update_screen): Use pages.
5787 (grub_video_fb_doublebuf_blit_init): Likewise.
5788 (doublebuf_pageflipping_init): Allocate offscreen buffer.
5789 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
5790 (grub_video_fb_setup): Prefer doublebuffing.
5791
377c98cb
VS
57922012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
5795 gzio.
5796
eac49cff
VS
57972012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5798
5799 Add loongson tests.
5800
5801 * tests/util/grub-shell.in: Handle loongson.
5802 * tests/partmap_test.in: Add loongson to the list of platform using ATA
5803 drivers.
5804 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
5805 Reboot instead of shutdown if REBOOT is defined.
5806
0321415e
VS
58072012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5808
5809 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
5810 sized ports since unlike on real hardware qemu supports only 32-bit
5811 regs.
5812
3f2bdd8f
VS
58132012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
5814
5815 * Makefile.util.def (grub-mkrescue): Enable on loongson.
5816 * util/grub-mkrescue.in: Handle loongson.
5817
29a049c9
VS
58182012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
5819
5820 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
5821 Set is_part appropriately.
5822 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
5823 names. Canonicalize partition without full disk.
5824
4abde346
VS
58252012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5826
5827 Revert usb-quiesce since it's wrong.
5828
5829 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
5830 (grub_ofdisk_init): Don't do quiesce.
5831
61f1d93b
VS
58322012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
5835 PowerMac workaround to Xserves as well.
5836 Information supplied by: Benjamin Herrenschmidt.
5837
a09eb541
VS
58382012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5839
5840 Don't assume that beginning address is also the entry point on ppc.
5841
5842 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
5843 (grub_linux_boot): Use linux_entry.
5844 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
5845 (grub_linux_load64): Likewise.
5846
505b3c9b
VS
58472012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5848
5849 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
5850
cbe0b4ef
VS
58512012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5852
5853 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
5854 needlessly lose the console.
5855
3006e981
VS
58562012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
5857
5858 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
5859 space.
5860
4e5a96b0
VS
58612012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5862
7da036bb
VS
5863 Remove non-functional EFI grub_get_rtc. Put a better fatal message
5864 than current grub_get_rtc() not implemented when booted with
5865 coreboot without TSC.
5866
5867 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
5868 Add machine/time.h to kernel headers on loongson.
5869 * grub-core/Makefile.core.def (kernel): Remove
5870 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
5871 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
5872 (grub_get_rtc): Likewise.
5873 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
5874 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
5875 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
5876 * grub-core/kern/i386/tsc.c (grub_tsc_init)
5877 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
5878 rather than installing known non-working time source.
5879 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
5880 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
5881 * include/grub/time.h: Don't include machine/time.h.
5882 * include/grub/efi/time.h: Removed.
5883 * include/grub/i386/efi/time.h: Likewise.
5884 * include/grub/i386/ieee1275/time.h: Likewise.
5885 * include/grub/powerpc/ieee1275/time.h: Likewise.
5886 * include/grub/sparc64/ieee1275/time.h: Likewise.
5887 * include/grub/x86_64/efi/time.h: Likewise.
5888
58892012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
5890
5891 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
5892
5893 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
5894 value.
5895 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
5896 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
5897 with dotless variants when any combining above is present.
5898
5561c22d
VS
58992012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5900
5901 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
5902 text and not binary.
5903
96f7e60e
VS
59042012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5905
5906 Stop polling as soon as we have the packet we were waiting for.
5907
5908 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
5909 All users updated.
5910 * grub-core/net/arp.c (have_pending): New var.
5911 (pending_req): Likewise.
5912 (grub_net_arp_send_request): Fill pending_req and use have_pending as
5913 stop indicator.
5914 (grub_net_arp_receive): Set have_pending.
5915 * grub-core/net/dns.c (recv_data): New field stop.
5916 (recv_hook): Set stop.
5917 (grub_net_dns_lookup): Init stop and use as stop condition.
5918 * grub-core/net/http.c (http_establish): Use headers_recv as stop
5919 condition.
5920 * grub-core/net/net.c (grub_net_poll_cards): New argument
5921 stop_condition. Stop when it goes true.
5922 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
5923 indicator.
5924 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
5925
3e747239
VS
59262012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5927
5928 Keep TX and RX buffers on EFI rather than always allocate new ones.
5929
5930 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
5931 card. All users updated.
5932 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
5933 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
5934 (get_card_packet): Likewise.
5935 (grub_efinet_findcards): Init new fields.
5936
f695e99a
VS
59372012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5938
5939 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
5940 compilation error on sparc64.
5941
9e5e66d1
VS
59422012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5943
5944 Use ITC on IA64 rather than broken routine based on daytime.
5945
5946 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
5947 ia64.
5948 (grub_get_rtc) [__ia64__]: Likewise.
5949 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
5950 (get_itc): New function.
5951 (grub_rtc_get_time_ms): Likewise.
5952 (grub_machine_init): Calibrate ITC.
5953 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
5954 Keep only on non-ia64. Don't export since it's broken and used only
5955 if TSC is unavailable.
5956
a1767404
VS
59572012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
5958
5959 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
5960 even if it's used.
5961 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
5962 Skip if parent is unused.
5963
34b2bced
VS
59642012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5965
5966 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
5967
5e619f40
VS
59682012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5969
5970 Fix wildcard escaping.
5971
5972 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
5973 * grub-core/script/execute.c (wildcard_escape): .. to here.
5974 Don't escape dot.
5975 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
5976 * grub-core/script/execute.c (wildcard_unescape): .. to here.
5977 Don't escape dot.
5978 * grub-core/script/execute.c (gettext_append): Always escape.
5979 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
5980 * grub-core/script/yylex.l: Don't cut away the escaping.
5981 * tests/grub_script_echo1.in: Add tests with wildcard.
5982
c8ca5855
VS
59832012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
5986 (ftdi_hw_configure): Likewise.
5987 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
5988 define.
5989 (real_config): Handle 1.5 stop bits.
5990 (pl2303_hw_configure): Likewise.
5991
7183452c
VS
59922012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5993
5994 * Makefile.am: Add ppc linux bootcheck.
5995 * grub-core/tests/boot/linux-ppc.cfg: New file.
5996 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
5997
f57c84cd
VS
59982012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
5999
6000 * tests/grub_script_expansion.in: Skip network protocols.
6001
ecfc6207
VS
60022012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6003
6004 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
6005
8d03d284
VS
60062012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6007
6008 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
6009 --rom-directory.
6010 Add -graft-points.
6011
61c42af0
VS
60122012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6013
6014 ESCC serial driver for conducting sautomated tests in qemu.
6015 Not tested on real hardware.
6016
6017 * include/grub/serial.h (grub_serial_port): New field escc_desc.
6018 * grub-core/term/ieee1275/escc.c: New file.
6019 * grub-core/Makefile.core.def (escc): New module.
6020
08fd1291
VS
60212012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
6024 invalid on error.
6025 (serial_hw_fetch): Don't read invalid handle.
6026 (serial_hw_put): Don't write into invalid handle.
6027
08dafeea
VS
60282012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6029
6030 Add a 1.5 stop bits value.
6031
6032 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
6033 * include/grub/serial.h (grub_serial_stop_bits_t): Add
6034 GRUB_SERIAL_STOP_BITS_1_5.
6035
9068fdcf
VS
60362012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6037
6038 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
6039 value rather than let it uninited.
6040
f4d5820f
VS
60412012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6042
6043 * grub-core/commands/wildcard.c (+check_file): New function.
6044 (wildcard_expand): Don't expand to non-existing files, expand with
6045 suffix and not attempt to expand if not needed.
6046
3d2de9a7
VS
60472012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6048
6049 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
6050 out of partitions containing other partitions.
6051
c5c81ff9
VS
60522012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6053
6054 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
6055 on some qemu versions with GRUB.
6056
6057 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
6058 define.
6059 (grub_openbsd_bootarg_pcibios): New struct.
6060 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
6061 Add PCIINFO.
6062
08a14e0b
VS
60632012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 * tests/util/grub-shell.in: Trim firmware output on EFI.
6066
cede3ca3
VS
60672012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6068
6069 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
6070 and coreboot since it's already in kernel.
6071
558d3a60
VS
60722012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6073
6074 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
6075 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6076 to here. New return value start. All users updated.
6077 Recursively scan linear mappings.
6078 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
6079 proto.
6080 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6081 Use grub_util_get_dm_node_linear_info.
6082 * util/getroot.c (convert_system_partition_to_system_disk): Use
6083 grub_util_info rather than grub_dprintf.
6084 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
6085
60fde14d
VS
60862012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6087
6088 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
6089
6090 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
6091 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
6092
24bd8838
VS
60932012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 * include/grub/types.h (grub_set_unaligned64): New function.
6096 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
6097 (setup): Likewise.
6098
7bc06a49
VS
60992012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6100
6101 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
6102 (grub_ofdisk_fini): Quiesce USB devices.
6103
49cea015
VS
61042012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6105
6106 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
6107 caches.
6108
8dcbe03b
VS
61092012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6110
6111 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
6112
5b258735
VS
61132012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * grub-core/disk/pata.c (grub_pata_pio_read)
6116 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
6117 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
6118
37ba07eb
VS
61192012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6120
6121 Extend automated tests to qemu-mips.
6122
6123 * Makefile.am: reorganise tests and enable qemu-mips.
6124 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
6125 * grub-core/tests/boot/linux.init-mips.S: New file.
6126 * tests/partmap_test.in: Handle ata0 disks.
6127 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
6128 non-pc i386.
6129
070038f8
VS
61302012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6131
6132 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
6133 ia64.
6134 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
6135 quotes while on it.
6136
004be2cd
VS
61372012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6138
6139 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
6140 (grub_halt): Likewise.
6141 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
6142
b1622487
VS
61432012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 * grub-core/term/serial.c (grub_serial_register)
6146 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
6147 the behaviour in line with x86 platforms.
6148
b7b4ab33
VS
61492012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6150
6151 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
6152 (grub_ata_strncpy): Likewise.
6153 (grub_ata_identify): Add missing byteswaps.
6154
5e3535ae
VS
61552012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6156
6157 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
6158 byte-swap.
6159 (screen_read_char): Likewise.
6160 (grub_vga_text_cls): Likewise.
6161
c21b17e6
VS
61622012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6163
6164 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
6165 filenames.
6166 (make_file_path): Likewise.
6167
bf293dec
VS
61682012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
6171 machines.
6172 Tested by: Paulo Flabiano Smorigo.
6173 Crucial information about API supplied by: Coleen <Last name unknown>.
6174 Reviewed by: Coleen <Last name unknown>.
6175
81f6ef0e
VS
61762012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6177
6178 * util/grub-mkimage.c: Disable -Wcast-align.
6179
7284143a
VS
61802012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6181
6182 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
6183 as they are fatal.
6184
b99f3e00
VS
61852012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
6188
944f752d
VS
61892012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6190
6191 * util/grub-probe.c (escape_of_path): Fix double free.
6192
6cce6f38
VS
61932012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6194
6195 * grub-core/commands/videoinfo.c (hook): Show pitch.
6196
1e1eb50e
VS
61972012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 * util/grub.d/20_linux_xen.in: Skip xen-syms.
6200
1c715b5a
VS
62012012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6202
6203 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
6204 (probe): Add ieee1275 to OFW devices.
6205
007ae52d
VS
62062012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6207
6208 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
6209
4557a36d
VS
62102012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 Handle IBM OFW path.
6213
6214 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
6215 available.
6216 (of_path_of_scsi): Handle vdevice.
6217
efbeefe9
VS
62182012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
6221 Allocate in multiples of 16 to avoid adding a few bytes free region the
6222 windows bugs upon.
6223
15a940bb
VS
62242012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6225
6226 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
6227 Allocate in multiples of 16 to avoid adding a few bytes free region the
6228 windows bugs upon.
6229 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
6230
6e5efd60
VS
62312012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6232
6233 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
6234 resolutions.
6235 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
6236 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
6237
0d3d137e
IS
62382012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
6239
6240 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
6241
45dbe300
VS
62422012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6243
6244 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
6245 resulted in \\ at the end of the line.
6246
6d8db947
VS
62472012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6248
6249 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
6250 (grub_parser_cmdline_state): Likewise.
6251 (grub_parser_split_cmdline): Likewise.
6252
de89d338
VS
62532012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6254
6255 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
6256 /dev/root and /dev/dm-*.
6257
00d41dee
VS
62582012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6259
6260 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
6261 fix partially stale display.
6262
f95d1f11
VS
62632012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6264
6265 * grub-core/normal/menu_entry.c (backward_char): Use right line for
6266 substraction.
6267
6297e197
VS
62682012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6269
6270 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
6271 Fix MBR remapping workaround.
6272 (grub_util_biosdisk_read) [__linux__]: Likewise.
6273
8a7ecad3
VS
62742012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
6275
6276 * util/grub-install.in: Check for ieee1275 and not ieee1276.
6277
2b34f944
VS
62782012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6279
6280 * configure.ac: Bump to beta6.
6281
684aef11
CW
62822012-05-31 Christer Weinigel <christer@weinigel.se>
6283
6284 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
6285
05b0bb91
VS
62862012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6287
6288 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
6289 (grub_cmd_linux): Likewise.
6290
bda36bfa
CW
62912012-05-31 Christer Weinigel <christer@weinigel.se>
6292
6293 Fix EHCI low-speed.
6294
6295 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
6296 (GRUB_EHCI_MULT_TWO): Likewise.
6297 (GRUB_EHCI_MULT_THREE): Likewise.
6298 (GRUB_EHCI_CMASK_MASK): New enum value.
6299 (GRUB_EHCI_SMASK_MASK): Likewise.
6300 (GRUB_EHCI_CMASK_OFF): Likewise.
6301 (GRUB_EHCI_SMASK_OFF): Likewise.
6302 (grub_ehci_pci_iter): Enable periodic schedule.
6303 (grub_ehci_parse_notrun): Likewise.
6304 (grub_ehci_restore_hw): Likewise.
6305 (grub_ehci_setup_qh): Set flags for low speed transfers.
6306 (grub_ehci_find_qh): Use periodic list for low speed.
6307 (grub_ehci_setup_transfer): Check periodic queue as well.
6308 (grub_ehci_check_transfer): Likewise.
6309 (grub_ehci_cancel_transfer): Cancel periodic transfer.
6310
e12bcb1c
PFS
63112012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6312
6313 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
6314 parameter is used.
6315
bcc75fb3
PJ
63162012-05-31 Peter Jones <pjones@redhat.com>
6317
6318 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
6319 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
6320 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
6321
f19cb95e
VS
63222012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6323
6324 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
6325 uninited variable. Allocate at least setup_sects.
6326
a4e5ca80
VS
63272012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 Fix handling of EFI with big memory maps.
6330
6331 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
6332 (real_mode_mem): Likewise.
6333 (real_mode_target): Likewise.
6334 (real_mode_pages): Likewise.
6335 (prot_mode_pages): Likewise.
6336 (linux_params): New var.
6337 (linux_cmdline): Likewise.
6338 (free_pages): Don't set real mode variables.
6339 (allocate_pages): Don't allocate real mode memory.
6340 (grub_e820_add_region): Remove the limit.
6341 (grub_linux_boot): Allocate and copy real mode memory.
6342 (grub_linux_unload): Free linux_cmdline.
6343 (grub_cmd_linux): Use temporary storage for parameters.
6344 (grub_cmd_initrd): Likewise.
6345 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
6346 (linux_kernel_params): Make it 1K big.
6347
ddb73558
VS
63482012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6349
6350 * Makefile.util.def: Remove -Wno-format.
6351 * grub-core/Makefile.core.def: Likewise.
6352
1c4afb60
VS
63532012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * tests/cmp_unit_test.c: Add missing failure message.
6356 * tests/example_unit_test.c: Likewise.
6357 * tests/printf_unit_test.c: Likewise.
6358
941e3a6d
VS
63592012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
6362 relaxation of protective MBR requirements.
6363
b105df76
VS
63642012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 * configure.ac: Add condition for COND_HOST_XNU.
6367 * Makefile.util.def (10_xnu): New script.
6368 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
6369
84e1569e
VS
63702012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6371
6372 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
6373 objconv bug.
6374
130c0f77
VS
63752012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6376
6377 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
6378 Binary on other platforms stays identical.
6379
6fd0b143
VS
63802012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
6383 Apple.
6384
0af1751d
VS
63852012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6386
6387 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
6388
176d5f7d
VS
63892012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6390
6391 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
6392 rather than defining size_t ourselves to avoid conflict.
6393
7de5e20a
VS
63942012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6395
6396 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
6397 initialisation to avoid __bzero reference.
6398
f7143efe
VS
63992012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
6402 version.
6403 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
6404 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
6405 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
6406 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
6407 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
6408
e6ad0555
VS
64092012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6410
6411 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
6412 * grub-core/kern/misc.c: Likewise.
6413 * grub-core/loader/i386/xnu.c: Likewise.
6414 * include/grub/i386/tsc.h: Likewise.
6415 * include/grub/symbol.h: Likewise.
6416
4a5a3c4a
VS
64172012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
6420 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
6421 on older compiler.
6422
037f6d90
VS
64232012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6424
6425 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
6426 Implement Apple flavour.
6427 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
6428
f7194551
VS
64292012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
6432 (memmove) [__APPLE__]: Likewise.
6433 (memcpy) [__APPLE__]: Likewise.
6434 (memset) [__APPLE__]: Likewise.
6435 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
6436 (memmove) [__APPLE__]: Likewise.
6437 (memcpy) [__APPLE__]: Likewise.
6438 (memset) [__APPLE__]: Likewise.
6439
85a730ca
VS
64402012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
6443 dependency discard.
6444
40e80b94
VS
64452012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6446
6447 * grub-core/normal/main.c (read_config_file): Provide config_file and
6448 config_directory.
6449 * util/grub.d/41_custom.in: Use config_directoy when available.
6450
9da59c32
VS
64512012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6452
6453 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
6454 (grub_bfs_dir): Likewise.
6455
2787ae53
PJ
64562012-05-27 Peter Jones <pjones@redhat.com>
6457
6458 The old code gives arguments to a printf function which can't work
6459 correctly, and the compiler complains.
6460
6461 * grub-core/tests/example_functional_test.c (example_test): Add
6462 missing text.
6463 * grub-core/tests/lib/test.c (add_failure): Rewrite.
6464 * include/grub/test.h (grub_test_assert_helper): New declaration.
6465 (grub_test_assert): Use grub_test_assert_helper.
6466
526ef13d
VS
64672012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
6470 (exfctest): ... this to avoid overlong filenames.
6471 All users updated.
6472
20dd511c
VS
64732012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 Handle "." and ".." on squashfs.
6476
6477 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
6478 Make inode numbers into stack.
6479 (grub_squash_read_symlink): Use stack.
6480 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
6481 (make_root_node): Fill stack.
6482 (grub_squash_open): Use stack.
6483
1d80c62a
VS
64842012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6485
6486 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
6487 freeing.
6488
d336f652
VS
64892012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6490
6491 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
6492 stderr on test calls.
6493
8b43f587
VS
64942012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6495
6496 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
6497
80a3dc3f
VS
64982012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6499
6500 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
6501
47e297d4
VS
65022012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6503
6504 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
6505 "..".
6506
df042ccb
VS
65072012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
6510 (grub_hfsplus_iterate_dir): Add "." and "..".
6511
fc977f48
VS
65122012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6513
6514 * grub-core/fs/cpio.c (canonicalize): Handle "..".
6515 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
6516
f3250e5f
VS
65172012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
6520 (find_path): Handle "." and "..".
6521
fd8ed4c5
VS
65222012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
6525 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
6526 (grub_affs_iterate_dir): Handle hardlinks.
6527
4ce776d2
MG
65282012-05-26 Matthew Garrett <mjg@redhat.com>
6529
6530 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
6531 (grub_efi_console_fini): Likewise.
6532 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
6533 (grub_video_gop_fill_mode_info): Rename to ...
6534 (grub_video_gop_fill_real_mode_info): ... this.
6535 (grub_video_gop_fill_mode_info): New function.
6536 (grub_video_gop_setup): Setup double framebuffer.
6537 (grub_video_gop_get_info_and_fini): Use original framebuffer.
6538 Free offscreen.
6539 (grub_video_gop_swap_buffers): Copy framebuffer.
6540 (grub_video_gop_fini): Free offscreen buffer.
6541 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
6542 New enum.
6543 (grub_efi_gop_blt_pixel): New struct.
6544
683031ba
VS
65452012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6546
6547 * gentpl.py: Remove error disabling for objconv.
6548
c2deb798
VS
65492012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
6550
6551 * configure.ac: Remove -Wunitialized as it's not available on older
6552 compilers.
6553
65542012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
6555
6556 Fix extent overflow comparator.
6557
6558 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
6559 (grub_hfsplus_read_block): Set type.
6560 (grub_hfsplus_cmp_extkey): Compare type.
6561
d6b1fd36
VS
65622012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
6563
6564 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
6565
0a9aa0f6
VS
65662012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6567
6568 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
6569 than 0.
6570
8360e159
VS
65712012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6572
6573 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
6574 (dejavu_bold_14.pf2): New target.
6575
501b9e4b
VS
65762012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 * configure.ac: Fix djvu font detection.
6579
7026b0e2
VS
65802012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6581
6582 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
6583 ext* instead of ext2.
6584
c2a51ade
VS
65852012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
6588 name with \0.
6589
8f803a5d
JU
65902012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
6591
6592 * docs/grub-dev.texi: Remove dot from .png.
6593
13c6353f
VS
65942012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
6597 protective entry in any slot.
6598 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
6599 if protective entry is found in any slot.
6600
6601 Protective entry in non-first slot make no sense but is a widespread
6602 brain damage.
6603
4cf6be1b
VS
66042012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
6607
937d1c44
VS
66082012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
6611 with old reiserfs.
6612 (grub_reiserfs_open): Don't free root.
6613
021d90ec
VS
66142012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
6615
6616 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
6617 after freeing for safety.
6618
967b2b64
VS
66192012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6620
6621 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
6622 Reported by: Jordan Uggla.
6623
34274d02
JU
66242012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
6625
967b2b64
VS
6626 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
6627 actual implementation. Specifically, clarify that the grub menu will
6628 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
6629 passed.
34274d02 6630
dcaaae9d
BH
66312012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
6632
6633 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
6634 of r0.
6635
7086ad52
VS
66362012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6637
6638 Remove unjustified hard dependency of normal.mod on gfxterm.
6639
6640 * include/grub/term.h (grub_term_output): New member fullscreen.
6641 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
6642 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
6643 (grub_gfxterm): Set .fullscreen.
6644 * grub-core/normal/menu.c (menu_init): Use fullscreen.
6645 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
6646
37ed2c9b
VS
66472012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
6650 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 6651 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 6652
a4469c88
VS
66532012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6654
6655 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
6656
4e461486
VS
66572012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6658
6659 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6660 a bad FS.
6661
aa78f5c4
VS
66622012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6663
6664 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
6665 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
6666
197626b5
VS
66672012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6668
6669 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
6670 (grub_jfs_mount): Fill caseins.
6671 (grub_jfs_find_file): Respect caseins.
6672
8ad3f28c
VS
66732012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
6676 through UTF-16.
6677
0c6c324e
VS
66782012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
6681 New argument origpath. All users updated.
6682
c6666ba6
VS
66832012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6684
6685 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
6686 (read_attr): Ensure that we read start of possibly compressed block.
6687
e28e5fe5
VS
66882012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
6691 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
6692 All users updated.
6693
5fc23ab2
VS
66942012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6695
6696 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
6697 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
6698 (dejavu.pf2): Replace with ...
6699 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
6700 this.
6701
79dbc21c
VS
67022012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 * util/grub.d/20_linux_xen.in: Add missing line.
6705
d2fcfb0c
VS
67062012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
6709 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
6710 (grub_utf16_to_utf8): Likewise.
6711
5560e9d6
VS
67122012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
6713
6714 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
6715 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
6716 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6717 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
6718 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6719 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
6720
67212012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
6722
6723 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
6724 a bad FS.
6725
5560e9d6 67262012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
6727
6728 * grub-core/fs/udf.c (read_string): Bail out on size=0.
6729 (grub_udf_read_symlink): Handle read_string failure.
6730
5eae3175
VS
67312012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
6734 comment.
6735
c1ad82db
VS
67362012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 Fix handling of UDF symlinks.
6739
6740 * grub-core/fs/udf.c (read_string): New argument outbuf.
6741 All users updated.
6742 (grub_ufs_read_symlink): Rename to ...
6743 (grub_udf_read_symlink): ... this. All users updated.
6744 Handle symlinks with more than one component.
6745
33eca6e0
VS
67462012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
6749 symlinks. Replace leading colon with a slash.
6750
57f4a70b
VS
67512012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
6754 filename.
6755
38c8ee20
VS
67562012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
6759 match in inner node.
6760
2e57f28f
VS
67612012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
6762
6763 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
6764 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
6765 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
6766 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
6767 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
6768 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
6769 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
6770 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
6771 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
6772
fe8c2f11
VS
67732012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6774
6775 Use grub-probe and not cmp to check that disk is empty.
6776
6777 * util/grub-install.in: Use grub-probe for zero-check.
6778 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
6779 (probe): Handle PRINT_ZERO_CHECK.
6780 (argp_parser): Handle -t zero_check.
6781
67822012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
6783
6784 Flush block cache on adding disk to device map.
6785
6786 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
6787 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
6788 adding.
6789 (read_device_map): Likewise.
6790 (open_device): Flush on opening.
6791
690434e8
VS
67922012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6793
6794 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
6795 (handle_symlink): Fix off-by-one error.
6796 Canonicalize the target.
6797 (grub_cpio_dir): Canonicalize the name.
6798 Fix memory leak.
6799 Set directory.
6800 (grub_cpio_open): Canonicalize the name.
6801
742d2be6
VS
68022012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6803
6804 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
6805 handling.
6806
3244fe96
VS
68072012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6808
6809 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
6810 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
6811
8aeb1837
VS
68122012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
6815 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 6816 All users updated.
8aeb1837 6817
9133fd05
VS
68182012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
6821 counterpart.
6822
6d521c5b
VS
68232012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6824
6825 Fix UFS1 big file support.
6826
6827 * grub-core/fs/ufs.c (INODE): Removed.
6828 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
6829 64-bit.
6830 (INODE_MODE): Simplify.
6831 (grub_ufs_inode): Use uint64_t for size and not int64_t.
6832 (grub_ufs_lookup_symlink): Don't use INODE.
6833
21b82e17
VS
68342012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 Fix minixfs with non-power-of-two blocks since it's supported by minix.
6837
6838 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
6839 (grub_minix_data): Replace log_block_size with block_size.
6840 (grub_minix_read_file): Use block_size but avoid 64-bit division.
6841 (grub_minix_mount): Fill block_size.
6842
68432012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
6844
6845 * configure.ac: Bump to beta5.
6846
f417ed04
VS
68472012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 Fix wrapped HFS+ handling.
6850
6851 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
6852 blocks_start. All users updated.
6853 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
6854 wrapping offset.
6855 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
6856
607d282b
VS
68572012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 Fix long symlinks on reiserfs.
6860
6861 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
6862 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
6863 (grub_reiserfs_iterate_dir): Save size for non-directories.
6864 (grub_reiserfs_open): Don't reread stat block as we already know the
6865 size.
6866 (grub_reiserfs_read): Split into...
6867 (grub_reiserfs_read_real): ... and ...
6868 (grub_reiserfs_read): ...this.
6869
ae16024d
VS
68702012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
6871
6872 Fix non-indexed JFS.
6873
6874 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
6875 (grub_jfs_data): New field namecomponentlen.
6876 (grub_jfs_mount): Fill namecomponentlen.
6877 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
6878
eea1e26e
VS
68792012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6880
6881 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
6882 * tests/grub_script_echo1.in: Add tests.
6883
df760f77
VS
68842012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6885
6886 * util/grub-install.in: Ignore empty devicetree directory.
6887
5efb817d
B
68882012-05-08 Bean <bean123ch@gmail.com>
6889
6890 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
6891 All users updated.
6892 (free_rsm): Free header as well.
6893 (free_old_fragments): Fix memory leak.
6894 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
6895 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
6896 (destroy_pq): Likewise.
6897 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
6898
668ea6d2
VS
68992012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
6902 resulting hash as a precaution.
6903
1739b1fe
VS
69042012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
6907 '_' in variable names.
6908 * grub-core/net/net.c (grub_net_network_level_interface_register):
6909 Likewise.
6910
6ae485aa
VS
69112012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6912
6913 Fix AFFS with non-512B blocks.
6914
6915 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
6916 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
6917 (grub_affs_data): Replace blocksize with log_blocksize.
6918 (grub_affs_read_block): Fix non-512B blocks.
6919 (grub_affs_read_symlink): Likewise.
6920 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
6921 (grub_affs_read): Fix non-512B blocks.
6922 (grub_affs_label): Likewise.
6923 (grub_affs_mtime): Likewise.
6924 (grub_affs_mount): Fix block detection routine.
6925
d20fab84
VS
69262012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 Add filesystem mtime to AFFS.
6929
6930 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
6931 (aftime2ctime): New function.
6932 (grub_affs_dir): Use aftime2ctime.
6933 (grub_affs_label): Fix return value.
6934 (grub_affs_mtime): New function.
6935 (grub_affs_fs): Add mtime.
6936
e87b10f5
VS
69372012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6938
6939 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
6940 UTF-8.
6941
7dceec9b
VS
69422012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6943
6944 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
6945 UTF-8.
6946
2f48221f
VS
69472012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
6950
dacd85cf
VS
69512012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
6954 flags.
6955 (FLAGS_CASE_SENSITIVE): New enum value.
6956 (cache_entry): New struct.
6957 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
6958 cache_size and cache.
6959 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
6960 Add log_blocksize and fshelp_flags.
6961 (grub_sfs_read_extent): Handle non-512 blocks.
6962 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
6963 (grub_sfs_read_file): Handle non-512 blocks.
6964 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
6965 fshelp_flags.
6966 (grub_sfs_read_symlink): Handle non-512 blocks.
6967 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
6968 (grub_sfs_dir): Free cache.
6969 (grub_sfs_close): Likewise.
6970
24e9a854
VS
69712012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6972
6973 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
6974 filesystems.
6975
62ace64d
VS
69762012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6977
6978 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
6979
83b2e89c
VS
69802012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6981
6982 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
6983
75ccaea3
VS
69842012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
6985
6986 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
6987 (grub_sfs_read_extent): Likewise.
6988 (grub_sfs_read_block): Likewise.
6989 (grub_sfs_mount): Likewise.
6990 (grub_sfs_iterate_dir): Likewise.
6991 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
6992 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
6993
1b8463f2
VS
69942012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6995
6996 Fix errors on compressed NTFS with 512B clusters.
6997
6998 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
6999 types.
7000 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
7001 not 0.
7002 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
7003 Relax check for inline extents.
7004 (ntfscomp): Return correct -1 on error and not 0.
7005
4f8e368f
VS
70062012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7007
7008 * util/grub-install.in: Fix handling of prefix containing spaces.
7009
6f5d5ee8
VS
70102012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
7013 (grub_squash_read_data): Fix offset byte-swapping.
7014
ce41ab7a
VS
70152012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7016
7017 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
7018 per common usage and preffered in several parts of code.
7019 (grub_memcmp): Likewise.
7020 (grub_strncmp): Likewise.
7021 * include/grub/misc.h (grub_strcasecmp): Likewise.
7022 (grub_strncasecmp): Likewise.
7023 * Makefile.util.def (cmp_test): New test.
7024 (grub_script_strcmp): Likewise.
7025 * tests/cmp_unit_test.c: New file.
7026 * tests/grub_script_strcmp.in: Likewise.
7027 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
7028
49717bf4
VS
70292012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7030
7031 * include/grub/pci.h: Move enums into no-asm part.
7032
0a308f64
VS
70332012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7034
7035 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
7036
1796965f
ST
70372012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
7038
7039 * util/getroot.c (find_hurd_root_device): Try to make error message
7040 and comments to translators clearer.
7041
4e9b2819
VS
70422012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7043
7044 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
7045
076aeb50
VS
70462012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
7049 btrfs.
7050
19424d94
VS
70512012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7052
7053 * docs/grub.cfg: Update.
7054
ebb73076
VS
70552012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 * docs/grub.texi (PXE): Remove not present variables.
7058
9a1b669c
VS
70592012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7060
7061 * grub-core/net/net.c (defserver_set_env): New function.
7062 (defserver_get_env): Likewise.
7063 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
7064
d38bf7d3
VS
70652012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7066
7067 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
7068 entries.
7069
70702012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
7071
7072 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
7073 * grub-core/kern/emu/hostdisk.c: Likewise.
7074
e5e4ca48
ST
70752012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7076
7077 Handle hurd userspace partitions.
7078
7079 * util/getroot.c (find_hurd_root_device): New function.
7080 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
7081
56bb5dd5
VS
70822012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7083
7084 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
7085 names.
7086 Reported by: Bastian Blank.
7087
9e8bc27a
VS
70882012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7089
7090 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
7091 crossing page boundary.
7092
aa01499d
VS
70932012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 Fix B-tree search in BFS, especially in presence of non-ASCII
7096 characters.
7097
7098 * grub-core/fs/bfs.c (bfs_strcmp): New function.
7099 (find_in_b_tree): Use standard bsearch + btree algorithm.
7100
57006035
VS
71012012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7102
7103 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
7104 and so on.
7105
9d34bb85
MG
71062012-05-03 Matthew Garrett <mjg@redhat.com>
71072012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7108
7109 Suspend broadcom cards in order to stop their DMA.
7110
7111 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
7112 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
7113 (pci): Don't build on x86 EFI.
7114 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
7115 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
7116 New function.
7117 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
7118 stop_broadcom if running on EFI.
7119 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
7120 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
7121 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
7122 (grub_pci_find_capability): New proto.
7123
01aab997
VS
71242012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7125
7126 * docs/grub.texi: Remove dot from the extension as it apparently
7127 doesn't work with some makeinfo versions.
7128
fbd8dca6
VS
71292012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7130
7131 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
7132 with GRUB expectance.
7133
dab797f4
VS
71342012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
7137
1516bfb4
VS
71382012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
7141 zero after directory block since last entry may be not 0-terminated if
7142 it ends on block boundary. Use continue instead of if spanning whole
7143 loop.
7144
a3a0eace
VS
71452012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7146
7147 Support 4K sectors UDF inline files.
7148
7149 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
7150 (grub_udf_extended_file_entry): Likewise.
7151 (grub_fshelp_node): Name the anonymous union. Put block at the end.
7152 All users updated.
7153 (get_fshelp_size): New function.
7154 (grub_udf_read_icb): Read whole block.
7155 (grub_udf_iterate_dir): Likewise.
7156 (grub_udf_dir): Likewise.
7157 (grub_udf_open): Likewise.
7158
c82f16c1
VS
71592012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7160
7161 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
7162
59fd2aac
VS
71632012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7164
7165 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
7166 inline symlinks in addition to workaround.
7167
3b4afb4d
VS
71682012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7169
7170 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
7171
f45c794a
VS
71722012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7173
7174 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
7175
f25cecbd
VS
71762012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
7179
bb9a34e8
VS
71802012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7181
7182 Fix reiserfs big seek times.
7183
7184 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
7185 exact. All users updated.
7186 (grub_reiserfs_read): Use nearest btree search for seeking.
7187 Fix return value on error.
7188
dc478aea
VS
71892012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7190
7191 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
7192 entries.
7193 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
7194 * docs/grub.texi: Update menuentry description.
7195
8db10f47
VS
71962012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7197
7198 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
7199 crash when embedding onto filesystem.
7200
bcb288ed
VS
72012012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7202
7203 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
7204 name.
7205
a626fdd7
VS
72062012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7207
7208 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
7209
b2f68477
VS
72102012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7211
7212 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
7213 commit.
7214
ba15b2af
B
72152012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
72162012-05-01 Bean <bean123ch@gmail.com>
7217
7218 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
7219
a188012e
VS
72202012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7221
7222 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
7223 Special behaviour for len = 0 to read whole file isn't used anywhere and
7224 can cause buffer ovewrflows in several places.
7225
f0a53ed2
VS
72262012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7227
7228 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
7229
5ed554f0
VS
72302012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 Handle RAIDZ on non-512B sectors.
7233
7234 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
7235 max_children_ashift.
7236 (fill_vdev_info_real): Fill max_children_ashift.
7237 (read_device): Use max_children_ashift.
7238
ddc58357
VS
72392012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7240
7241 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
7242
e3282399
VS
72432012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7244
7245 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
7246 disk names.
7247 * docs/grub.texi: Update device.map parts.
7248
ee618bd4
VS
72492012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 Don't scan into non-diskfilter devices having diskfilter names.
7252
7253 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
7254 (scan_disk): New argument accept_diskfilter. Fix recursion depth
7255 handling.
7256 (scan_disk_hook): New function.
7257
bdf88864
B
72582012-04-29 Bean <bean123ch@gmail.com>
7259
7260 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
7261 allocation.
7262
32745f51
MK
72632012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
7264
7265 * configure.ac: Detect starfield theme font path
7266 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
7267
bc95c8c0
VS
72682012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7269
7270 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
7271 geometry on serial consoles.
7272
147fbcab
VS
72732012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
7276 because of network consoles.
7277
0f42c889
VS
72782012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7279
7280 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
7281 handling.
7282
4a3594c9
VS
72832012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7284
7285 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
7286 falls on Q syndrom.
7287
5cb53879
VS
72882012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7289
7290 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
7291 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
7292
b282dfe5
VS
72932012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7294
7295 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
7296 Allocate at lest 8192 for temporary buffer as required for lzo.
7297
daa59f47
VS
72982012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7299
7300 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
7301 to cluster_bits, since it's already added in.
7302 (grub_fat_read_data): Likewise.
7303
986748ce
VS
73042012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
7307 as long as cluster size is multiple of 512 bytes.
7308
a20f6ad0
VS
73092012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 * util/grub-mkrescue.in: Fix locale directory.
7312
385f9abb
VS
73132012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/kern/emu/hostdisk.c (map): Make static.
7316
1c557d30
B
73172012-04-23 Bean <bean123ch@gmail.com>
7318
7319 * util/grub-fstest.c (fstest): Add missing break.
7320
524b5d3a
ST
73212012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7322
7323 Fix hurd build.
7324
7325 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
7326 not define nr variable.
fe4824e9 7327 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
7328 find_root_devices_from_poolname, find_root_devices_from_libzfs,
7329 grub_find_device): Do not define.
524b5d3a 7330
9a06490c
VS
73312012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7332
7333 Fix kfreebsd compile and behaviour.
7334
7335 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
7336 format-security.
7337 * util/getroot.c: Fix wait.h include.
7338 (grub_guess_root_devices): Error if grub_find_device fails.
7339 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
7340 (grub_util_get_dev_abstraction): Likewise.
7341 (grub_util_pull_device): Likewise.
7342 (grub_util_get_grub_dev): Likewise.
7343 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
7344
48143d96
VS
73452012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7346
7347 Fix and unify wholedisk detection.
7348
7349 * util/getroot.c (convert_system_partition_to_system_disk): New argument
7350 is_part. All users updated.
7351 (device_is_wholedisk): Removed.
7352 (grub_util_biosdisk_get_grub_dev): Use is_part.
7353
ebbd24f3
VS
73542012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
7357 mode.
7358
56f7aa1e
VS
73592012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7360
7361 * configure.ac: Bump to beta4.
7362
9c815e01
VS
73632012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
7366 --fs-uuid --set UUID syntax.
7367
59e2651a
VS
73682012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7369
7370 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
7371 disunification.
7372
54e03cfc
VS
73732012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
7376
81092a75
MK
73772012-04-18 Mads Kiilerich <mads@kiilerich.com>
7378
7379 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
7380
f8315e14
MG
73812012-04-18 Mike Gilbert <floppym@gentoo.org>
7382
7383 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
7384
1501ac21
B
73852012-04-18 Bean <bean123ch@gmail.com>
7386
7387 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
7388 place.
7389
cb7f944e
VS
73902012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7391
7392 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
7393 users updated.
7394 (grub_util_biosdisk_read): Handle Linux partitions not exactly
7395 corresponding to GRUB partitions.
7396 (grub_util_biosdisk_write): Likewise.
7397
b72d44a1
VS
73982012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 Scan mdraid before LVM.
7401
7402 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
7403 (grub_diskfilter_register_front): ... this.
7404 (grub_diskfilter_register_back): New function.
7405 All users of grub_diskfilter_register updated.
7406
33d918b8
VS
74072012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7408
7409 * util/grub-install.in: Fix an automatic target detection bug.
7410
c6ca973d
VS
74112012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7412
7413 * util/grub-install.in: New option --efi-directory.
7414
b41be562
VS
74152012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7416
7417 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
7418 boot services if we have no other choice.
7419
74202012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7421
7422 * util/grub-mknetdir.in: Rename --override-directory to --directory and
7423 document it.
7424 * tests/util/grub-shell.in: Update to --directory.
7425
e0595a73
VS
74262012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
7429
4ed80652
VS
74302012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
7433 (grub_minix_read_file): Likewise.
7434 (grub_minix_read_inode): Likewise.
7435 (grub_minix_find_file): Likewise.
7436 (grub_minix_dir): Likewise.
7437
56008077
VS
74382012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7439
7440 * util/grub-setup.c (setup): Fix partition handling and blocklist
7441 check.
7442
ee520775
VS
74432012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7444
7445 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
7446 redundant buggy overlap check.
7447
16fc9293
VS
74482012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7449
7450 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
7451 and grub-mknetdir.
7452
9bab65c4
VS
74532012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
7456 kh.loadflags on pre-2.00 kernels.
7457
3c491b47
VS
74582012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7459
7460 Terminate UNDI and PXE before launching the payload to avoid problems
7461 with DMA.
7462
7463 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
7464 (grub_loader_flags): ... this. All users updated.
7465 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
7466 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
7467 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
7468 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
7469 function.
7470 (grub_pxe_restore): Likewise.
7471 (fini_hnd): New var.
7472 (GRUB_MOD_INIT): Register shutdown hook.
7473 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
7474 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
7475 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
7476 (grub_loader_set): Rename second argument to flags.
7477
851ffada
VS
74782012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
7481 written bytes.
7482 (grub_get_num_of_utf8_bytes): New function.
7483 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
7484 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
7485 executing it.
7486 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
7487 (grub_ucs4_to_utf8): Change return type.
7488
491c57a8
VS
74892012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7490
7491 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
7492 warning.
851ffada
VS
7493 * grub-core/fs/bfs.c (hop_level): Likewise.
7494 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 7495
756773df
VS
74962012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7497
7498 * grub-core/lib/adler32.c: Recode due to license unclearness.
7499
fd556a96
VS
75002012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
7503 (test_header): Likewise.
7504
9f9d3f69
VS
75052012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 Fix --help formatting.
7508
7509 * util/grub-mkconfig_lib.in (print_option_help): New function.
7510 (grub_fmt): Likewise.
7511 * util/grub-install.in: Use print_option_help and grub_fmt.
7512 * util/grub-kbdcomp.in: Likewise.
7513 * util/grub-mkconfig.in: Likewise.
7514 * util/grub-mknetdir.in: Likewise.
7515 * util/grub-mkrescue.in: Likewise.
7516 * util/grub-mkstandalone.in: Likewise.
7517 * util/grub-reboot.in: Likewise.
7518 * util/grub-set-default.in: Likewise.
7519 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7520
561ec77e
VS
75212012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7522
7523 * linguas.sh: Remove autogenerated *.po.
7524
7ec2b021
VS
75252012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7526
7527 * po/README: Move language fetcing to ...
7528 * linguas.sh: ... here.
7529 * po/README: Point to linguas.sh.
7530
a88f3270
VS
75312012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 * po/README: Exclude ko.po due to disclaimer problems.
7534
d61357ce
VS
75352012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
7538 len = 0.
7539 (grub_gettext_translate_real): Handle 0th string.
7540 (grub_gettext_translate): Ensure that "" isn't translated.
7541
505e41dc
VS
75422012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7543
7544 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
7545 TRANSLATORS comment.
7546 (grub_diskfilter_print_partmap): Propagate changing of error into
7547 warning.
7548
e44092db
VS
75492012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
7552 to uint64_t to prevent overflow.
7553 (grub_diskfilter_lv): Increase start_extent and extent_count
7554 to uint64_t to prevent overflow.
7555
9b83956a
VS
75562012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7557
7558 * configure.ac: Increase version.
7559
da0d5b3f
VS
75602012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7561
7562 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
7563
7564 * po/Rules-translit: New file.
7565 * po/arabic.sed: Likewise.
7566 * po/cyrillic.sed: Likewise.
7567 * po/greek.sed: Likewise.
7568 * po/hebrew.sed: Likewise.
7569 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
7570 * po/Makefile.in.in: Add extra_dist4.
7571
ac66b453
VS
75722012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7573
7574 Handle big-endian minixfs (fixes minixfs tests on bigendian).
7575
7576 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
7577 modify names. Introduce MODE_BIGENDIAN.
7578 * grub-core/fs/minix_be.c: New file.
7579 * grub-core/fs/minix2_be.c: Likewise
7580 * grub-core/fs/minix3_be.c: Likewise.
7581 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
7582 minix3_be.
7583 * grub-core/Makefile.core.def (minix_be): New module.
7584 (minix2_be): Likewise.
7585 (minix3_be): Likewise.
7586
75872012-04-01 Felix <email@hamburg.de>
7588
7589 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
7590 (devs): Add MBP 2011.
7591
0a2d5a82
VS
75922012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7593
7594 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
7595
d1625889
VS
75962012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7597
7598 * grub-core/normal/cmdline.c (print_completion): New field
7599 prompt_len.
7600 (grub_cmdline_get): Handle width properly.
7601
6d36a236
VS
76022012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
7603
7604 * grub-core/commands/lsacpi.c (options): Add missing terminator.
7605
9576977e
VS
76062012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7607
7608 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 7609 after 29th of February.
9576977e 7610
d73ff15d
VS
76112012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7612
7613 Fix exfat endianness handling.
7614
7615 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
7616 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
7617 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
7618 Byte-swap utf16 when necessary.
7619 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
7620
bbb39a45
AB
76212012-03-31 Anton Blanchard <anton@samba.org>
76222012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7623
7624 Fix btrfs endianness handling.
7625
7626 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
7627 (lower_bound): Make root uint64_t. Use root in le.
7628 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
7629 (find_path): Fix template key init.
7630 (grub_btrfs_dir): Fix mtime byteswap.
7631 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
7632
354e0af7
VS
76332012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7634
7635 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
7636 recursion_depth. Break infinite resursions. All users updated.
7637
4e75f21c
VS
76382012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
7641 after free.
7642 Reported by: Peter Jones.
7643
25581802
AB
76442012-03-31 Anton Blanchard <anton@samba.org>
7645
7646 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
7647 8 bit values.
7648
08fbf92e
VS
76492012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7650
7651 * util/grub-install.in: Fix nvram call for PreP.
7652
5d1182a6
VS
76532012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7654
7655 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
7656 the error when some elements are missing into a warning.
7657
3f8cdd90
VS
76582012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7659
7660 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
7661
51006716
CW
76622012-03-28 Colin Watson <cjwatson@ubuntu.com>
7663
7664 * docs/grub.texi (Invoking grub-probe): New section.
7665 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
7666
e1bd676b
VS
76672012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7668
7669 Fix tab and wide character handling in editor and menu.
7670
7671 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
7672 agglomerate control characters with combining marks.
7673 (bidi_line_wrap): Allow break on tab.
7674 (grub_unicode_get_comb_start): New function.
7675 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
7676 and tab correctly.
7677 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
7678 with a space.
7679 * grub-core/normal/term.c (print_ucs4_terminal): New argument
7680 fixed_tab_size. All users updated.
7681 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
7682 (grub_term_getcharwidth): Handle \t.
7683 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
7684 and copy.
7685
22e6a774
VS
76862012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 Handle big-endian mdraid.
7689
7690 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
7691 * grub-core/Makefile.core.def (mdraid09_be): New module.
7692 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
7693 rather than grub_le_to_cpu* and grub_cpu_to_le*.
7694 * grub-core/disk/mdraid_linux_be.c: New file.
7695
3c0eae66
VS
76962012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
7699
b6cf74c9
VS
77002012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7701
7702 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
7703 missing quotes which caused confusion among translators.
7704
83c93b9c
VS
77052012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7706
7707 * util/grub-mkconfig_lib.in: Fix typo.
7708
ac6fd218
VS
77092012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
7712 spaces.
7713 * tests/grub_script_leading_whitespace.in: New file.
7714 * Makefile.util.def (grub_script_leading_whitespace): New test.
7715
ba287dd8
VS
77162012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7717
7718 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
7719 to work.
7720
d2d58d0a
VS
77212012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7722
7723 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
7724 starts with control character.
7725
0382d9bb
VS
77262012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7727
7728 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
7729 overflow.
7730 (grub_gdb_outbuf): Likewise.
7731
d83ff9f9
VS
77322012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7733
7734 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
7735 zero terminator. Fixes a crash.
7736
2282da4a
VS
77372012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7738
7739 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
7740 beyond 4 GiB.
7741 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
7742 images independently of preffered adderss field.
7743
0ae4f0bd
VS
77442012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7745
7746 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
7747 * grub-core/commands/regexp.c: Likewise.
7748 * grub-core/loader/i386/linux.c: Likewise.
7749 * grub-core/partmap/msdos.c: Likewise.
7750 * grub-core/script/execute.c: Likewise.
7751 * grub-core/term/gfxterm.c: Likewise.
7752
546fbe9b
VS
77532012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 Add variable parsing in $"..." and fix several mismatches with bash.
7756
7757 * Makefile.util.def (grub_script_gettext): New test.
7758 * grub-core/script/execute.c (parse_string): New function.
7759 (gettext_append): Likewise.
7760 (grub_script_arglist_to_argv): Use gettext_append.
7761 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
7762 * tests/grub_script_gettext.in: New file.
7763
9fdb2d7b
VS
77642012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7765
7766 Fix handling of leading spaces in scripts.
7767
7768 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
7769 spaces.
7770 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
7771 other than skipping \r. All users updated.
7772 * tests/grub_script_echo1.in: Add space-related tests.
7773 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
7774
1a1ac4f6
VS
77752012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
7778
b63d89b6
VS
77792012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7780
7781 * configure.ac: Bump up the version to beta2.
7782
17f38c0f
VS
77832012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7784
7785 Fix gettext reload bugs (e.g. inability to disable gettext
7786 once enabled).
7787
7788 * grub-core/gettext/gettext.c: Encapsulate all static variables in
7789 main_context and secondary_context. All functions updated.
7790 (grub_gettext_translate): Rename to ...
7791 (grub_gettext_translate_real): ... this. Return NULL on failed
7792 translate.
7793 (grub_gettext_translate): Handle secondary context.
7794 (grub_gettext_delete_list): Close file and zero-out the context.
7795 (grub_mofile_open): Don't call grub_gettext_delete_list.
7796 Don't close file.
7797 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
7798 if locale="" to avoid pointless error message.
7799 (grub_gettext_env_write_lang): Update lang even if load fails.
7800 Handle secondary context.
7801 (grub_gettext_reread_prefix): New function.
7802 (read_main): Likewise.
7803 (read_secondary): Likewise.
7804 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
7805 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
7806 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
7807 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
7808
8e56f870
VS
78092012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7810
7811 * configure.ac: Decrease warning level to avoid spurious warnings and
7812 to be able to compile with GCC 4.2.
7813 * Makefile.util.def: Remove -Wno-error=logical-op.
7814
82f6d455
WB
78152012-03-10 William Bittner <william.bittner@gmail.com>
7816
7817 * util/import_unicode.py: Add missing brackets around string for
7818 python 3 support.
7819
1ecd61a4
VS
78202012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7821
7822 Fix efi chainloader on network root.
7823
7824 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
7825 network devices.
7826 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
7827 New function.
7828
14361ee8
VS
78292012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
7832 unused show_text member.
7833 * docs/grub.texi: Document "text" property.
7834
922aabf3
VS
78352012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7836
7837 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
7838 in dprintf.
7839
ec316771
VS
78402012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7841
7842 Fix IMSM handling on Fedora.
7843
7844 * util/getroot.c (grub_util_is_imsm): New function.
7845 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
7846
0f021838
VS
78472012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7848
7849 * Makefile.am: Strip gold section.
7850 * conf/Makefile.common: Likewise.
7851 * gentpl.py: Likewise.
7852 * grub-core/Makefile.core.def: Likewise.
7853 * grub-core/genmod.sh.in: Likewise.
7854
1039c8eb
VS
78552012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7856
7857 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
7858 * util/grub.d/20_linux_xen.in: Likewise.
7859 Based on Debian patch.
7860
6dd412cd
VS
78612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7862
7863 * util/grub.d/10_linux.in: Fix syntax error resulting in
7864 Richard Laager's patch.
7865 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
7866
3fd8bae5
VS
78672012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7868
7869 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
7870 dependencies.
7871
7eea1671
RL
78722012-03-10 Richard Laager <rlaager@wiktel.com>
7873
7874 * util/grub.d/10_linux.in: Fix ZFS root passing.
7875
e8e0566b
VS
78762012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7877
7878 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
7879 * grub-core/commands/xnu_uuid.c: Likewise.
7880 * grub-core/loader/efi/appleloader.c: Likewise.
7881 * grub-core/script/execute.c: Likewise.
7882 * grub-core/script/main.c: Likewise.
7883 * util/grub-mkfont.c: Likewise.
7884
1acc5b1f
VS
78852012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7886
7887 * util/grub-mkfont.c (options): Use more appropriate "select" that
7888 "set" for face index.
7889
35d70620
VS
78902012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7891
7892 * util/grub-editenv.c (options): Gettextize command summaries.
7893
c9eb96b5
VS
78942012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7895
7896 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
7897 "out of memory" error messagge.
7898
1f493136
VS
78992012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
7902 of diskfilter for diskfilter on diskfilter support.
7903
6d790129
VS
79042012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7905
7906 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
7907
005f46c9
VS
79082012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 * util/grub-install.in: Check for themes/starfield/theme.txt and not
7911 themes/starfield.
7912
c8f778a0
VS
79132012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
7916
de1e64eb
VS
79172012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7918
7919 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
7920
c6d54211
VS
79212012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7922
7923 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
7924 of error message.
7925
dd390777
VS
79262012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
7927
7928 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
7929
5fd1c522
VS
79302012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
7931
7932 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
7933 message.
c6d54211 7934 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 7935
fae01f6c
VS
79362012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7937
7938 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
7939 Gettextize.
7940 * util/grub-mount.c (options): Likewise.
7941
292fdaff
VS
79422012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7943
7944 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
7945 gettextize.
7946 * grub-core/commands/search_wrap.c (options): Likewise.
7947
ecdbae77
VS
79482012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7949
7950 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
7951
52bfedfa
VS
79522012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7953
7954 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
7955 size calculation.
7956 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
7957 none is known.
7958
55b20e58
VS
79592012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7960
7961 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
7962 "temporary" since it's used in identifier and is limited in space.
7963
fda9d101
VS
79642012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7965
7966 * po/POTFILES.in: Regenerate. Include *.h since they contain
7967 translatable strings as well.
7968
6a0295e2
VS
79692012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
7970
7971 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
7972 byte-swap on big-endian.
7973 Reported by: Lennart Sorensen
7974
807fb77c
VS
79752012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7976
7977 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
7978 (allocate_pages): Improve dprintf.
7979 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
7980 code32_start. Fill code32_start and kernel_alignment in params.
7981 (grub_cmd_initrd): Use prot_init_space.
7982
61ac50ba
VS
79832012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7984
7985 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
7986
abdd26dd
VS
79872012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7988
7989 * util/grub-install.in: Add missing dot at the end of sentence.
7990
6e69da9c
VS
79912012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7992
7993 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
7994 * grub-core/commands/videotest.c: Likewise.
7995 * grub-core/loader/i386/linux.c: Likewise.
7996
4a929343
VS
79972012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
7998
7999 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
8000 sentence.
8001 Reported by: Milo Casagrande.
8002
bb51c6c6
VS
80032012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8004
8005 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
8006 * grub-core/commands/gptsync.c: Likewise.
8007 * grub-core/commands/hashsum.c: Likewise.
8008 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8009 * grub-core/commands/legacycfg.c: Likewise.
8010 * grub-core/io/gzio.c: Likewise.
8011 * grub-core/net/net.c: Likewise.
8012 * grub-core/term/gfxterm.c: Likewise.
8013 * grub-core/term/terminfo.c: Likewise.
8014 * grub-core/tests/test_blockarg.c: Likewise.
8015 * grub-core/video/video.c: Likewise.
8016 * util/grub-install.in: Likewise.
8017 * util/grub-mkfont.c: Likewise.
8018
b2b149cb
VS
80192012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8020
8021 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
8022
c7c080ad
VS
80232012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8024
8025 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 8026 Reported by: David Prévot.
c7c080ad 8027
f2e243c0
VS
80282012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8029
8030 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
8031 description.
8032
09963c76
VS
80332012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8034
8035 * util/grub-script-check.c (main): Fix a syntax error message which was
8036 unclear.
8037
a50514a8
VS
80382012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8039
8040 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
8041
4650daec
VS
80422012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8043
8044 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
8045 messages.
8046
80472012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
8048
8049 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
8050 without argument.
8051 * util/grub-mount.c (options): Likewise.
8052
bbc5a342
VS
80532012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8054
8055 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
8056
ef292a87
VS
80572012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8058
8059 * grub-core/net/http.c: Add TRANSLATORS comments.
8060 * grub-core/normal/cmdline.c: Likewise.
8061 * grub-core/normal/misc.c: Likewise.
8062 * grub-core/partmap/msdos.c: Likewise.
8063 * grub-core/parttool/msdospart.c: Likewise.
8064 * grub-core/script/execute.c: Likewise.
8065 * grub-core/script/main.c: Likewise.
8066 * grub-core/term/terminfo.c: Likewise.
8067 * grub-core/video/bitmap.c: Likewise.
8068 * util/grub-install.in: Likewise.
8069 * util/grub-mkimage.c: Likewise.
8070 * util/grub-mklayout.c: Likewise.
8071 * util/grub-setup.c: Likewise.
8072
0fc19bd0
VS
80732012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8074
8075 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
8076 with similar messages in grub-fstest.
8077
d95862ef
VS
80782012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8079
8080 * util/grub-install.in: Unify "option requires an argument" message
8081 with similar messages in other files.
8082 * util/grub-mkconfig.in: Likewise.
8083
b7308f90
VS
80842012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8085
8086 * util/grub-set-default.in: Replace printf with gettext_printf (the
8087 string in in question is already translated from grub-reboot)
8088
559dc587
VS
80892012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8090
8091 * configure.ac: Bump up the version to beta1.
8092
1a11761f
VS
80932012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8094
8095 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
8096 case when min_align = 0.
8097
24539abd
VS
80982012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8099
8100 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
8101 and fix a case when line_start overflows.
8102
32bd735b
VS
81032012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8104
8105 * util/grub-reboot.in (usage): Mention id posibility.
8106 * util/grub-set-default.in (usage): Likewise.
8107
1a2fd1e6
VS
81082012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
8111 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
8112 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8113 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8114 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8115 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8116 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8117
90eeab76
VS
81182012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8119
8120 * grub-core/commands/menuentry.c (options): Remove
8121 GRUB_ARG_OPTION_REPEATABLE.
8122 Reported by: Andreas Vogel
8123
5ad1be82
AV
81242012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
8125
8126 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
8127
cb055286
HE
81282012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
8129
8130 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
8131 error.
8132
93b1cd79
VS
81332012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8134
8135 Use sort -V by the idea of Georgi Georgiev.
8136
8137 * util/grub-mkconfig_lib.in (version_sort): New function.
8138 (version_test_numeric): Use version_sort.
8139
0cdc126c
VS
81402012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8141
8142 Use submenus in grub-mkconfig.
8143
8144 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
8145 * util/grub-mkconfig_lib.in (grub_quote): New function.
8146 (gettext_printf): Use gettext and not gettext_quoted to fix several
8147 messages.
8148 * util/grub.d/10_hurd.in: Use submenus.
8149 * util/grub.d/10_kfreebsd.in: Likewise.
8150 * util/grub.d/10_linux.in: Likewise.
8151 * util/grub.d/10_netbsd.in: Likewise.
8152 * util/grub.d/20_linux_xen.in: Likewise.
8153 * util/grub.d/30_os-prober.in: Likewise.
8154 * util/grub.d/10_illumos.in: Add missing quoting.
8155 * util/grub.d/10_windows.in: Likewise.
8156
d9bef9bc
VS
81572012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8158
8159 Fix menu title instability bug.
8160
8161 * grub-core/commands/menuentry.c (options): New option --id.
8162 (grub_normal_add_menu_entry): New argument id. All users updated.
8163 (grub_cmd_menuentry): Handle --id.
8164 (grub_menu_init): Accept unknown arguments.
8165 * grub-core/normal/main.c (features): Add feature_menuentry_id and
8166 feature_menuentry_options.
8167 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
8168 saved_entry.
8169 (get_entry_number): Match with id as well.
8170 * include/grub/menu.h (grub_menu_entry): New member id.
8171 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
8172 * util/grub.d/00_header.in: Define menuentry_id_option.
8173 * util/grub.d/10_hurd.in: Define id.
8174 * util/grub.d/10_illumos.in: Likewise.
8175 * util/grub.d/10_kfreebsd.in: Likewise.
8176 * util/grub.d/10_linux.in: Likewise.
8177 * util/grub.d/10_netbsd.in: Likewise.
8178 * util/grub.d/10_windows.in: Likewise.
8179 * util/grub.d/20_linux_xen.in: Likewise.
8180 * util/grub.d/30_os-prober.in: Likewise.
8181
81822012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
8183
8184 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
8185 "scope" with "body".
8186
7c8d0ce7
VS
81872012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
8190 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
8191 prot_size and prot_file_size.
8192
49de079b
VS
81932012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8194
8195 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
8196 All users updated. If easily=1 require raid-5/-6 to be full.
8197 (is_node_readable): Likewise.
8198 (scan_devices): Scan incomplete but readable LVs at the end.
8199 (grub_diskfilter_memberlist): Pull missing devices.
8200 (insert_array): Skip scanning until device is complete or scan is
8201 done otherwise.
8202 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
8203 check.
8204 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
8205 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
8206
aff05d45
MG
82072012-03-03 Matthew Garrett <mjg@redhat.com>
82082012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8209
8210 Avoid EFI boot services when loading Linux.
8211
8212 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
8213 avoid_efi_bootservices. All users updated.
8214 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
8215 argument avoid_efi_bootservices. All users updated.
8216 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
8217 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
8218 align, min_align, relocatable, prefered_address. All users updated.
8219 Allocate avoiding boot services if kernel is relocatable.
8220 (grub_cmd_linux): Check if kernel is relocatable.
8221 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
8222 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
8223 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
8224 avoid_efi_boot_services.
8225 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
8226 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
8227 (linux_kernel_params): Likewise.
8228
3935dde2
MG
82292012-03-03 Matthew Garrett <mjg@redhat.com>
82302012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 Use EDID on EFI.
8233
8234 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
8235 datasize_out.
8236 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
8237 modes. Set gop_handle.
8238 (grub_video_gop_get_edid): New function.
8239 (grub_gop_get_preferred_mode): Likewise.
8240 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
8241 (grub_video_efi_gop_adapter): Set .get_edid.
8242 * include/grub/efi/edid.h: New file.
8243 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
8244
32107ec0
VS
82452012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8246
8247 * util/grub-install.in: Load efivars unconditionally.
8248
e70a2c50
VS
82492012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8250
8251 * po/Rules-piglatin: Change suffix from .po-update-en to
8252 .po-update-en-piglatin.
8253
8f9cace1
VS
82542012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8255
8256 Add a pig farm.
8257
8258 * po/piglatin.sed: New file.
8259 * po/en@piglatin.header: Likewise.
8260 * po/Rules-piglatin: Likewise.
8261 * po/README: Add en@piglatin to autogenerated languages.
8262
8f95d002
VS
82632012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8264
8265 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
8266 "Command for ...".
8267 * grub-core/commands/hdparm.c (options): Use "Display" rather than
8268 "Check" since we don't check anything.
8269 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
8270 is 64-bit one.
8271 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
8272 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
8273 (grub_md_sha512_real): Likewise.
8274
805a8dcc
VS
82752012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8276
8277 * grub-core/commands/gptsync.c: Fix typographic quoting.
8278 * grub-core/commands/ieee1275/suspend.c: Likewise.
8279 * grub-core/commands/parttool.c: Likewise.
8280 * grub-core/commands/search_wrap.c: Likewise.
8281 * grub-core/commands/videoinfo.c: Likewise.
8282 * grub-core/gfxmenu/gui_label.c: Likewise.
8283 * grub-core/hello/hello.c: Likewise.
8284 * grub-core/kern/emu/main.c: Likewise.
8285 * grub-core/net/net.c: Likewise.
8286 * grub-core/normal/menu.c: Likewise.
8287 * grub-core/normal/menu_text.c: Likewise.
8288 * grub-core/normal/misc.c: Likewise.
8289 * util/grub-editenv.c: Likewise.
8290 * util/grub-install.in: Likewise.
8291 * util/grub-kbdcomp.in: Likewise.
8292 * util/grub-mkconfig.in: Likewise.
8293 * util/grub-mknetdir.in: Likewise.
8294 * util/grub-mkrescue.in: Likewise.
8295 * util/grub-mkstandalone.in: Likewise.
8296 * util/grub-reboot.in: Likewise.
8297 * util/grub-set-default.in: Likewise.
8298 * util/grub-setup.c: Likewise.
8299 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8300
40211ab8
VS
83012012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8302
8303 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
8304 * grub-core/commands/keystatus.c: Likewise.
8305 * grub-core/commands/loadenv.c: Likewise.
8306 * grub-core/commands/probe.c: Likewise.
8307 * grub-core/commands/regexp.c: Likewise.
8308 * grub-core/commands/true.c: Likewise.
8309 * grub-core/commands/videoinfo.c: Likewise.
8310 * grub-core/disk/cryptodisk.c: Likewise.
8311 * grub-core/disk/ldm.c: Likewise.
8312 * grub-core/disk/loopback.c: Likewise.
8313 * grub-core/disk/luks.c: Likewise.
8314 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8315 * grub-core/kern/disk.c: Likewise.
8316 * grub-core/kern/emu/hostdisk.c: Likewise.
8317
0c7d99c7
VS
83182012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8319
8320 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
8321 * util/grub-install.in: Add missing quote in the comment.
8322
e7d2559b
VS
83232012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8324
8325 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
8326 * grub-core/commands/lsmmap.c: Likewise.
8327 * grub-core/commands/minicmd.c: Likewise.
8328 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8329 * grub-core/commands/regexp.c: Likewise.
8330 * grub-core/gdb/gdb.c: Likewise.
8331 * grub-core/term/gfxterm.c: Likewise.
8332 * util/grub-mkconfig.in: Likewise.
8333 * util/grub-mkfont.c: Likewise.
8334 * util/grub-mklayout.c: Likewise.
8335 * util/grub-mknetdir.in: Likewise.
8336 * util/grub-mkrescue.in: Likewise.
8337 * util/grub.d/30_os-prober.in: Likewise.
8338
49ce9e50
VS
83392012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8340
8341 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
8342 with "Direct color" and "Packed" with "Packed pixel".
8343 (grub_cmd_videoinfo): Simplify legend.
8344
e4b791fa
VS
83452012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8346
8347 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8348 absolutely unclear error message.
8349
fd1265cb
VS
83502012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8351
8352 * util/grub-mkstandalone.in: Remove confusing leftover print.
8353
8822a8a0
VS
83542012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8355
8356 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
8357 comments.
8358 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
8359 (GRUB_MOD_INIT): Likewise.
8360 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
8361 VGA mode.
8362 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
8363 comments.
8364 * util/grub-install.in (usage): Likewise.
8365 Spell ID in whole letters.
8366 Add missing ending dot.
8367 Quote variables.
8368 * util/grub-reboot.in: Fix capitalisation.
8369 * util/grub-set-default.in: Likewise.
8370
937fd0cc
VS
83712012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8372
8373 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
8374 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
8375 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
8376 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
8377 Disable -Werror for -Wdeprecated-declarations.
8378 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
8379 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
8380 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
8381 (grub_util_get_grub_dev): Make luks handling dependent on
8382 HAVE_DEVICE_MAPPER and not __linux__.
8383 (get_win32_path): Fix format security.
8384 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
8385 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
8386 Don't try grub_find_zpool_from_dir.
8387 (grub_make_system_path_relative_to_its_root) [!__linux__]:
8388 #ifdef-out paresdir.
8389
1bab1ae3
VS
83902012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8391
8392 * util/grub-pe2elf.c (usage): Add missing noreturn.
8393 (write_section_data): Rename name to shname to avoid shadowing.
8394 (write_symbol_table): Rename name to symname to avoid shadowing.
8395 Fix write_reloc_section call.
8396
ef023e42
VS
83972012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8398
8399 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
8400 to ensure that it's after the last byte of .text.
8401
48afcb75
VS
84022012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8403
8404 * util/ieee1275/ofpath.c (my_isdigit): New function.
8405 (trailing_digits): Use my_isdigit.
8406 (strip_trailing_digits): Likewise.
8407
88d51eff
VS
84082012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8409
8410 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
8411 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
8412
17edc2ba
VS
84132012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8414
8415 * grub-core/kern/i386/pc/startup.S: Define __start.
8416
ad5518d7
VS
84172012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8418
8419 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
8420 strip already transforms he format.
8421
9e95e1bf
VS
84222012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
8425
9cc3ee5c
VS
84262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8427
8428 * util/grub-install.in: Add missing gettext init.
8429 * util/grub-kbdcomp.in: Likewise.
8430 * util/grub-mkconfig.in: Likewise.
8431 * util/grub-mknetdir.in: Likewise.
8432 * util/grub-mkrescue.in: Likewise.
8433 * util/grub-mkstandalone.in: Likewise.
8434 * util/grub-reboot.in: Likewise.
8435 * util/grub-set-default.in: Likewise.
8436 * util/grub.d/00_header.in: Likewise.
8437 * util/grub.d/10_hurd.in: Likewise.
8438 * util/grub.d/10_windows.in: Likewise.
8439 * util/grub.d/30_os-prober.in: Likewise.
8440 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8441
49e08a06
VS
84422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8443
8444 * po/Rules-swiss: Fix header comment.
8445
3809cb41
AV
84462012-02-29 Andreas Vogel <anvoit>
8447
8448 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
8449 resulted in leak of arguments.
8450
fa6ec573
VS
84512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8452
8453 * grub-core/boot/i386/pc/startup_raw.S: Use separate
8454 reed_solomon_size const definition instead of computing it since
8455 Apple assembler doesn't support the later.
8456
22899b9c
VS
84572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8458
8459 * gentpl.py (kernel): Rewrite Apple part.
8460
a132afc3
VS
84612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8462
8463 * include/grub/kernel.h (FOR_MODULES): Check module magic.
8464
9d742bd4
VS
84652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8466
8467 * util/grub-mkimagexx.c (locate_sections): Support non-standard
8468 ELF section gap.
8469 (load_image): Likewise.
8470
f04a9a21
VS
84712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8472
8473 * configure.ac: Fix a typo in previous commit.
8474
46cf439c
VS
84752012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 Don't add -Wl,-N on Apple platform.
8478
8479 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
8480 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
8481
c4c48c54
VS
84822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8483
8484 * grub-core/Makefile.core.def (lzma_decompress): Use
8485 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
8486
31a12124
VS
84872012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8488
8489 * grub-core/genmod.sh.in: Rewrite the Apple part.
8490
4f3aa1af
VS
84912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8492
8493 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
8494 comparison.
8495
7bd8b0c7
VS
84962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8497
8498 * acinclude.m4 (grub_CHECK_PIC): New test.
8499 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
8500
97304d7c
VS
85012012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8502
8503 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
8504 to avoid the warning.
8505
fb883812
VS
85062012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8507
8508 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
8509 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
8510 after. All users updated.
8511
a121c964
VS
85122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 Use the common size routine in hostfs so we can read disks as well.
8515
8516 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
8517 (grub_util_get_fd_size): ... this. Return size in bytes.
8518 All users updated.
8519 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
8520 grub_util_get_fd_size.
8521
c66d6410
VS
85222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8523
8524 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
8525 Add blocksize retrieval.
8526
dfc8aeb0
VS
85272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8528
8529 * configure.ac: Restore CFLAGS after efiemu check.
8530
403e25a5
VS
85312012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8532
8533 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
8534 Apple bug.
8535
382775d1
VS
85362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8537
8538 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
8539
6fd4e6e4
VS
85402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8541
8542 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
8543 (grub_cmd_halt): Likewise.
8544
bea359d6
VS
85452012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8546
8547 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
8548 for local arithmetics.
8549 Break %sp init into 2 instructions.
8550 Add 0 byte at the end.
8551
32eb6ee1
VS
85522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8553
8554 * grub-core/disk/diskfilter.c (read_segment): Initialise err
8555 before loops.
8556
e8377389
VS
85572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8558
8559 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
8560 for context.
8561
8cb17de7
VS
85622012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 * grub-core/disk/ldm.c (make_vg): Init part.name.
8565 (grub_ldm_detect): Silence spurious warning.
8566 (grub_util_is_ldm): Likewise.
8567
595717e6
VS
85682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8569
8570 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
8571 sane value to avoid a spurious warning.
8572
c4b7e588
VS
85732012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8574
8575 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
8576 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
8577
59824957
VS
85782012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8579
8580 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
8581 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
8582
70115b99
VS
85832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8584
8585 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
8586 hardcoding the relevant info.
8587
56733740
VS
85882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8589
8590 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
8591 missing const qualifiers.
8592 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
8593
43481481
VS
85942012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8595
8596 * util/getroot.c [__APPLE__]: Add missing includes.
8597 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
8598
3cb38f01
VS
85992012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 * util/grub-mkimage.c (generate_image): Silence spurious warning.
8602
d9dbf11e
VS
86032012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8604
8605 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
8606 avoid conflicts.
8607
0c42a45d
VS
86082012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8609
8610 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
8611
46c34eb0
VS
86122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8613
8614 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
8615 and grub_file_close call.
8616
99ce1597
VS
86172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8618
8619 Add LZSS Mach-O support (needed for new xnu kernelcache).
8620
8621 * grub-core/Makefile.core.def (xnu): Add file lzss.c
8622 * grub-core/loader/lzss.c: New file.
8623 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
8624 on Mach-O open failure.
8625 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
8626 Don't free cmdsXX in uncompressedXX is set.
8627 (grub_macho_file): Init new fields.
8628 New argument is_64bit. All users updated.
8629 Handle compressed. Error out if no suitable architecture is found.
8630 Don't close file.
8631 (grub_macho_open): New argument is_64bit. All users updated.
8632 * grub-core/loader/macho32.c: Add defines for new fields.
8633 * grub-core/loader/macho64.c: Likewise.
8634 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
8635 (grub_macho_parse): Handle compressed.
8636 Defer actual processing if compressed.
8637 (grub_macho_cmds_iterate): Decompress if compressed. New argument
8638 "filename". All users updated.
8639 (grub_macho_size): New argument "filename". All users updated.
8640 (grub_macho_get_entry_point): Likewise.
8641 (grub_macho_load): Handle compressed.
8642 * include/grub/macho.h (grub_macho_lzss_header): New struct.
8643 (GRUB_MACHO_LZSS_OFFSET): New define.
8644 (grub_decompress_lzss): New proto.
8645 * include/grub/machoload.h (grub_macho_file): New fields to handle
8646 compressed.
8647 (grub_macho_contains_macho64): Remove proto.
8648 (grub_macho_contains_macho32): Likewise.
8649 * util/grub.d/30_os-prober.in: Use kernel cache if available.
8650
ebd17d6f
VS
86512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8652
8653 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
8654
2702b4e4
VS
86552012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8656
8657 Fix make dist.
8658
8659 * Makefile.am (starfield_theme_files): New var.
8660 (starfield_DATA): Use starfield_theme_files.
8661 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
8662 Add bootcheck-related files.
8663 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
8664 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
8665 and font_char_metrics.txt.
8666 * grub-core/Makefile.core.def (kernel): Update extra_dist.
8667 (setjmp): Add lib/ia64/longjmp.S.
8668 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
8669 * po/POTFILES.in: Regenerate.
8670 * po/Rules-swiss: use DISTFILES.common.extra2 and not
8671 DISTFILES.common.extra1.
8672 * util/devicemap.c: Removed.
8673 * grub-core/lib/i386/relocator_backward.S: Likewise.
8674 * util/import_gcry.py: Remove unused files. Add extra_dist for
8675 ChangeLog.
8676
cf1adfdf
VS
86772012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
8678
8679 * grub-core/gettext/gettext.c (grub_mofile_open): Call
8680 grub_gettext_delete_list before changing grub_gettext_max to avoid
8681 running out of array bounds.
8682
86832012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
8684
8685 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
8686 grub_vga_text_init/grub_vga_text_fini.
8687
cf1adfdf 86882012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
8689
8690 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
8691
541d92e9
VS
86922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8693
8694 * configure.ac: Bump to 2.00~beta0.
8695
7931dddf
VS
86962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8697
8698 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
8699 missing initialisation.
8700
f1b16fa3
VS
87012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8702
8703 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
8704
83ddae23
VS
87052012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8706
8707 Support v2 xnu boot arguments.
8708
8709 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
8710 New argument fsbfreq_out.
8711 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
8712 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
8713 be used.
8714 * grub-core/loader/machoXX.c (grub_macho_load): New argument
8715 darwin_version.
8716 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
8717 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
8718 (grub_xnu_boot_params): Rename to ...
8719 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
8720 (grub_xnu_boot_params_v2): New struct.
8721
dc693fe6
VS
87222012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8723
8724 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
8725 zeroing of CRC field before computing CRC.
8726
5a6e39c2
VS
87272012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8728
8729 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
8730 Change order of allocations to decrease fragmentation.
8731
6c21f5d7
VS
87322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8733
8734 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
8735
cfe456dc
CW
87362012-02-27 Colin Watson <cjwatson@ubuntu.com>
8737
8738 Use write-combining MTRR to speed up video with buggy BIOSes.
8739
8740 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
8741 (cpuid): New define.
8742 (rdmsr): Likewise.
8743 (wrmsr): Likewise.
8744 (mtrr_base): Likewise.
8745 (mtrr_mask): Likewise.
8746 (grub_vbe_enable_mtrr_entry): New function.
8747 (grub_vbe_enable_mtrr): Likewise.
8748 (grub_vbe_disable_mtrr): Likewise.
8749 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
8750 control off to BIOS.
8751 (grub_video_vbe_init): Fill mtrr.
8752 (grub_video_vbe_fini): Disable mtrr.
8753 (grub_video_vbe_get_info_and_fini): Likewise.
8754 (grub_video_vbe_setup): Enable mtrr.
8755
e3c78337
CW
87562012-02-27 Colin Watson <cjwatson@ubuntu.com>
8757
8758 * include/grub/partition.h (grub_partition_map): Change prototype of
8759 embed to take a maximum value for nsectors.
8760 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
8761 * include/grub/fs.h (grub_fs): Likewise.
8762 * grub-core/partmap/msdos.c (embed_signatures): New array.
8763 (pc_partition_map_embed): Check for and avoid sectors matching any
8764 of the signatures in embed_signatures, up to max_nsectors.
8765 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
8766 returned sector map to max_nsectors.
8767 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
8768 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
8769 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
8770 * util/grub-setup.c (setup): Allow for the embedding area being
8771 split into multiple blocklists. Tell dest_partmap->embed the
8772 maximum number of sectors we care about.
8773
87742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8775
8776 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
8777 Specify blocklist_install and reserver_first_sector for all fs.
8778 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
8779 blocklists.
8780
984b973f
VS
87812012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8782
8783 * util/grub-install.in: Clarify strings.
8784 Fix source dir check.
8785
f122e0d6
RL
87862012-02-27 Richard Laager <rlaager@wiktel.com>
8787
8788 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
8789 "zfs" and "fuse.zfs" as synonyms.
8790
071114bb
VS
87912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 * configure.ac: Put platform and target_cpu substitutions back since
8794 they are used for directories.
8795
817e6abc
RL
87962012-02-27 Richard Laager <rlaager@wiktel.com>
87972012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8798
8799 * util/grub.d/10_linux.in: Add ZFS-related arguments.
8800 * util/grub.d/20_linux_xen.in: Likewise.
8801
897b7419
RL
88022012-02-27 Richard Laager <rlaager@wiktel.com>
8803
8804 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
8805 with full paths.
8806
a414bd15
RL
88072012-02-27 Richard Laager <rlaager@wiktel.com>
8808
8809 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
8810 unescape.
8811
30ac48c4
VS
88122012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8813
8814 Don't use insecure popen in getroot.
8815
8816 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
8817 (exec_pipe): ... here.
8818 (find_root_devices_from_poolname): Use exec_pipe.
8819
53f13848
VS
88202012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8821
8822 Remove platform and target_cpu replacement.
8823
8824 * configure.ac: Remove platform and target_cpu substitutions.
8825 * tests/util/grub-shell.in: Use modinfo.
8826 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
8827 explicitly.
8828
90cb2803
VS
88292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8830
8831 Autodetect platform in grub-install but allow override.
8832
8833 * util/grub-install.in: Autodetect platform. Support --target and
8834 --directory. Read platform from modinfo.sh.
8835
b9136427
VS
88362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8837
8838 Support btrfs multi-volume probe.
8839
8840 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
8841 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
8842 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
8843 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
8844 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
8845 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
8846 grub_find_root_devices_from_btrfs if on btrfs.
8847
c36e5cd1
VS
88482012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8849
8850 Remove any awareness of *.c util files about target.
8851
8852 * Makefile.util.def (grub-setup): Split to ...
8853 (grub-bios-setup): ... and this.
8854 (grub-sparc64-setup): ... and this.
8855 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
8856 * docs/man/grub-setup.h2m: Split into ...
8857 * docs/man/grub-sparc64-setup.h2m: ... this.
8858 * docs/man/grub-bios-setup.h2m: ... and this.
8859 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
8860 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
8861 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
8862 (grub_target_addr_t): Remove.
8863 (grub_target_size_t): Remove.
8864 (grub_target_ssize_t): Remove.
8865 * util/grub-install.in: Use new grub-*-setup.
8866 * util/grub-mkimagexx.c (Elf_Word): New define.
8867 (Elf_Half): Likewise.
8868 (Elf_Section): Likewise.
8869 (ELF_ST_TYPE): Likewise.
8870 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
8871 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
8872
584b2f8a
VS
88732012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 Replace grub_target_addr with more appropriate types.
8876
8877 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
8878 grub_target_addr with grub_addr.
8879 * grub-core/commands/iorw.c (grub_cmd_read): Replace
8880 grub_target_addr with grub_port.
8881 (grub_cmd_write): Likewise.
8882 * grub-core/commands/memrw.c (grub_cmd_read): Replace
8883 grub_target_addr with grub_addr.
8884 (grub_cmd_write): Likewise.
8885 * grub-core/video/efi_uga.c (find_line_len): Likewise.
8886
5a0dc6fb
VS
88872012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8888
8889 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
8890 const qualifier for vendor_guid.
8891
786aff6e
VS
88922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8893
8894 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
8895 const qualifier.
8896 (efiemu_memequal): Likewise.
8897 (find_variable): Likewise.
8898
49017b17
VS
88992012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 Fix missing console prototype on qemu-mips.
8902
8903 * include/grub/mips/qemu_mips/console.h: New file.
8904
c5988629
MG
89052012-02-27 Matthew Garrett <mjg@redhat.com>
89062012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8907
8908 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
8909 * include/grub/efi/efi.h: Likewise.
8910 * include/grub/efi/api.h: Add guid for EFI-specified variables.
8911 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
8912 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
8913 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
8914 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
8915 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
8916
e33f8d69
MG
89172012-02-27 Matthew Garrett <mjg@redhat.com>
8918
8919 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
8920
fb312cd9
VS
89212012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8922
8923 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
8924 error.
8925
7134247c
VS
89262012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8927
8928 * configure.ac: Remove inappropriate use of program_transform_name
8929 on grubdir and bootdir but allow explicit specification of those
8930 variables.
8931
6a313124
VS
89322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8933
8934 * util/grub-mknetdir.in (grub_prefix): Removed.
8935 (subdir): Use @bootdirname@ and @grubdirname@.
8936
2311c5ca
VS
89372012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8938
8939 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
8940
7d5d60f7
VS
89412012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8942
8943 * po/POTFILES.in: Regenerated.
8944
8151bc82
VS
89452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 Remove improper use of program_transform_name on pkglibrootdir.
8948
8949 * configure.ac (pkglibrootdir): Removed.
8950 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
8951 * util/grub-mkimage.c: Likewise.
8952
b4a6a533
VS
89532012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
8956 warning.
8957
668f304f
VS
89582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
8959
8960 * util/grub-install.in: Use file identifier if no UUID is available
8961 or user explicitly prompted for it.
8962
665f2341
NP
89632012-02-27 Navdeep Parhar <nparhar@gmail.com>
8964
8965 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
8966 (freebsd_get_zfs): New function.
8967 (grub_freebsd_boot): Pass zfs UUID.
8968 (grub_cmd_freebsd): Set zfs UUID.
8969
8151bc82 89702012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
8971
8972 * conf/Makefile.common (platformdir): Base on pkglibdir and not
8973 pkglibrootdir.
8974
e4c498a1
MG
89752012-02-27 Mike Gilbert <floppym@gentoo.org>
8976
8977 Add configure flag to control libzfs integration.
8978
8979 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
8980
1e9a9a3f
VS
89812012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8982
8983 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
8984 device.
8985 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
8986 small devices.
8987
036985b8
VS
89882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 Remove grub_{modname}_init and grub_{modname}_fini. They should never
8991 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
8992 be used on non-modules.
8993
8994 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
8995 Rename to grub_boot_init.
8996 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
8997 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
8998 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
8999 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
9000 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
9001 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
9002 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
9003 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
9004 includes.
9005 (grub_machine_init): Remove empty inits.
9006 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
9007 includes.
9008 (grub_machine_init): Remove empty inits.
9009 * grub-core/term/arc/console.c: Remove explicit proto.
9010 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
9011 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
9012 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9013 grub_at_keyboard_fini.
9014 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
9015 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
9016 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9017 grub_gfxterm_fini.
9018 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
9019 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
9020 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9021 grub_vgatext_fini.
9022 * grub-core/term/ieee1275/console.c: Remove explicit proto.
9023 * grub-core/term/serial.c (GRUB_MOD_INIT)
9024 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
9025 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9026 grub_serial_fini.
9027 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
9028 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
9029 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9030 grub_terminfo_fini.
9031 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
9032 (GRUB_MOD_FINI): Likewise.
9033 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
9034 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
9035 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9036 grub_video_radeon_fuloong2e_fini.
9037 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
9038 [LOONGSON]: Rename to grub_video_sis315pro_init.
9039 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9040 grub_video_sis315pro_fini.
9041 * grub-core/video/sm712.c (GRUB_MOD_INIT)
9042 [LOONGSON]: Rename to grub_video_sm712_init.
9043 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9044 grub_video_sm712_fini.
9045 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
9046 (grub_at_keyboard_fini): Likewise.
9047 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
9048 Don't declare grub_{modname}_init.
9049 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
9050 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
9051 New proto.
9052 (grub_keylayouts_fini) [!EMU]: Likewise.
9053 * include/grub/serial.h (grub_serial_init) [!EMU]:
9054 New proto.
9055 (grub_serial_fini) [!EMU]: Likewise.
9056 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
9057 New proto.
9058 (grub_terminfo_fini) [!EMU]: Likewise.
9059 * include/grub/video.h (grub_font_init) [!EMU]:
9060 New proto.
9061 (grub_font_fini) [!EMU]: Likewise.
9062 (grub_gfxterm_init) [!EMU]: Likewise.
9063 (grub_gfxterm_fini) [!EMU]: Likewise.
9064 (grub_video_sm712_init) [!EMU]: Likewise.
9065 (grub_video_sm712_fini) [!EMU]: Likewise.
9066 (grub_video_sis315pro_init) [!EMU]: Likewise.
9067 (grub_video_sis315pro_fini) [!EMU]: Likewise.
9068 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
9069 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
9070
d5534665
VS
90712012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9072
9073 Make nand a prefix for nand devices.
9074
9075 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
9076
10133b5f
VS
90772012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
9080 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
9081
8e307a62
VS
90822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9083
9084 * include/grub/env.h (grub_env_find): Remove prototype.
9085 * grub-core/kern/env.c (grub_env_find): Make static.
9086 (grub_env_set): Remove useless set.
9087
a4c65f34
VS
90882012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * grub-core/kern/i386/realmode.S: Remove useless align.
9091
d87893d5
VS
90922012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9093
9094 * include/grub/dl.h (grub_dl_load_file): Don't export.
9095
50159add
VS
90962012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9097
9098 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
9099 grub_dprintf.
9100
b2582b84
VS
91012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9102
9103 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
9104 grub_errors.
9105 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
9106 not reloading whole superblock but only the part which is really needed.
9107 Remove useless grub_errors.
9108 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
9109 grub_errors.
9110
e2a83395
VS
91112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 Don't export grub_get_rtc.
9114
9115 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
9116 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
9117
e7d2a906
VS
91182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
9121
6cf1363b
VS
91222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9123
9124 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 9125 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 9126
eece3349
VS
91272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 Remove prio_list.
9130
9131 * include/grub/list.h (grub_prio_list): Removed.
9132 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
9133 GRUB_COMMAND_PRIO_MASK.
9134 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
9135 GRUB_COMMAND_FLAG_ACTIVE.
9136 (grub_prio_list_insert): Removed.
9137 (grub_prio_list_remove): Likewise.
9138 (GRUB_AS_PRIO_LIST): Likewise.
9139 (GRUB_AS_PRIO_LIST_P): Likewise.
9140 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
9141 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
9142 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
9143 * grub-core/kern/command.c (grub_register_command_prio): Inline
9144 the prio_list code.
9145 (grub_unregister_command): Likewise.
9146
94f064b4
VS
91472012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 Fix interrupt mixup from previous commit.
9150
9151 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
9152 (grub_realidt): New var.
9153 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
9154 Load idt.
9155 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
9156 New declaration.
9157 (grub_relocator16_boot): Set grub_relocator16_idt.
9158 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
9159 (LOCAL(realidt)): ... this.
9160 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
9161 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
9162 (grub_realidt): New variable.
9163
27317084
VS
91642012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9165
9166 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
9167 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
9168 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
9169 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
9170 Gettextize.
9171 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
9172 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
9173 * po/POTFILES.in: Regenerate.
9174
47b40053
VS
91752012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
9178 errors.
9179
2b343101
VS
91802012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9181
9182 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
9183 \0.
9184 (add_length): Likewise.
9185
ff27c3dd
LK
91862012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
91872012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
9188
9189 GDB serial and backtrace support.
9190
9191 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
9192 (prot_to_real): Likewise.
9193 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
9194 * grub-core/Makefile.core.def (backtrace): New module.
9195 (gdb): Likewise.
9196 * grub-core/gdb/cstub.c: New file.
9197 * grub-core/gdb/gdb.c: Likewise.
9198 * grub-core/gdb/i386/idt.c: Likewise.
9199 * grub-core/gdb/i386/machdep.S: Likewise.
9200 * grub-core/gdb/i386/signal.c: Likewise.
9201 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 9202 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
9203 * include/grub/backtrace.h: Likewise.
9204 * include/grub/gdb.h: Likewise.
9205 * include/grub/i386/gdb.h: Likewise.
9206
92072012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
9208
9209 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
9210 New function.
9211 (add_length): Likewise.
9212 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
9213 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
9214 proto.
9215 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
9216 __argp_get_display_len.
9217
ff27c3dd 92182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
9219
9220 $"..." support in scripts.
9221
9222 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
9223 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
9224 * grub-core/script/yylex.l: Likewise.
9225 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
9226 value.
9227
ff27c3dd 92282012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
9229
9230 * gentpl.py: Remove obsolete pkglib_DATA handling.
9231
ff27c3dd 92322012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
9233
9234 Don't transform PACKAGE_TARNAME following a discussion on autoconf
9235 mailing list.
9236
9237 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
9238 * util/grub-kbdcomp.in: Likewise.
9239 * util/grub-mkconfig.in: Likewise.
9240 * util/grub-mkconfig_lib.in: Likewise.
9241 * util/grub-mknetdir.in: Likewise.
9242 * util/grub-mkrescue.in: Likewise.
9243 * util/grub-mkstandalone.in: Likewise.
9244 * util/grub-reboot.in: Likewise.
9245 * util/grub-set-default.in: Likewise.
9246 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9247
ff27c3dd 92482012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
9249
9250 Remove GRUB_PREFIX.
9251
9252 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
9253 * util/grub.d/00_header.in: Compute prefix in the only place it's still
9254 used for backward compatibility.
9255
ff27c3dd 92562012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
9257
9258 Add new all_video module.
9259
9260 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
9261 * grub-core/Makefile.core.def (all_video): New module.
9262 * grub-core/genmoddep.awk: Generate dependency of all_video from
9263 video.lst.
9264 * grub-core/lib/fake_module.c: New file.
9265 * grub-core/normal/main.c (features): Add feature_all_video_module.
9266 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
9267 don't do explicit search again.
47454da5 9268 insmod all_video in load_video if available.
22c7ce85 9269
ff27c3dd 92702012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
9271
9272 Another round of string clarification and adding TRANSLATORS comments.
9273
ff27c3dd 92742012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
9275
9276 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
9277
ff27c3dd 92782012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
9279
9280 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
9281 to grub_ssize_t.
9282 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
9283 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
9284
ff27c3dd 92852012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
9286
9287 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
9288 trailing newline implicitly. All users updated.
9289
ff27c3dd 92902012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
9291
9292 Implement serial on IEEE1275 and EFI.
9293
9294 * docs/grub.texi (Platform-specific limitations): Fix the columen video
9295 on emu. Mention arc and emu as the only platforms without serial
9296 support.
9297 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
9298 ieee1275 platforms.
9299 * grub-core/term/efi/serial.c: New file.
9300 * grub-core/term/ieee1275/serial.c: Likewise.
9301 * grub-core/term/serial.c (grub_serial_find): Disable direct port
9302 specification if no ns8250 driver is available.
9303 (grub_cmd_serial): Likewise.
9304 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
9305 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
9306 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
9307 (grub_efi_parity_type_t): New type.
9308 (grub_efi_stop_bits_t): Likewise.
9309 (grub_efi_serial_io_interface): New struct.
9310 * include/grub/serial.h (grub_serial_port): Make 'broken' field
9311 available for all interfaces.
9312 Add EFI and IEEE1275 fields.
9313 (grub_ofserial_init): New proto.
9314 (grub_efiserial_init): Likeiwse.
9315 * util/grub.d/00_header.in: Don't check for the presence of serial
9316 module.
9317
ff27c3dd 93182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
9319
9320 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
9321 name as if it was an alias.
9322
114076ef
VS
93232012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9324
9325 * grub-core/commands/lsacpi.c (options): Fix typo.
9326
6a656b0e
VS
93272012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9328
9329 Convert grub-emu to argp.
9330
9331 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
9332 emu.
9333 * util/argp_common.c: Rename to ...
9334 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
9335 Add missing includes.
9336 * grub-core/kern/emu/main.c: Convert to argp.
9337 * po/POTFILES.in: Regenerate.
9338 * util/grub-install.in (usage): Make first letter lowcase in messages
9339 for uniformity.
9340 * util/grub-setup.c (options): Likewise.
9341
1e3f8ae8
VS
93422012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9343
9344 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
9345 Put back accidently commented-out code.
9346
ed167a80
VS
93472012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9348
9349 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
9350 loop check using Brent algorithm.
9351 (grub_hfsplus_btree_search): Likewise.
9352
6753c0ec
VS
93532012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9354
9355 * util/grub-install.in: Fix usage of wrong device for PreP install.
9356
4e27343f
VS
93572012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9358
9359 * conf/Makefile.common (CFLAGS_GNULIB): Add
9360 -Wno-unsafe-loop-optimizations.
9361 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
9362 on tools.
9363 * grub-core/commands/legacycfg.c: Add pragma to skip
9364 -Wunsafe-loop-optimizations.
9365 (check_password_md5_real): Fix loop counter type.
9366 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
9367 reading.
9368 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
9369 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
9370 loop condition.
9371 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
9372 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
9373 * grub-core/net/net.c (grub_net_route_address): Add safety loop
9374 condition.
9375 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
9376 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
9377 avoid possible infinite loops.
9378 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
9379 and -Wunsafe-loop-optimizations.
9380 * grub-core/script/yylex.l: Likewise.
9381 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
9382 (print_glyphs): Avoid infinite loops.
9383 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
9384
697f18b0
GS
93852012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
9386
9387 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
9388 to avoid infinite loop.
9389 (disp_acpi_rsdt_table): Likewise.
9390
274416e8
VS
93912012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 * grub-core/font/font.c (grub_font_load): Add support for default
9394 path for fonts ($prefix/fonts).
9395 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
9396 for checking if string is a path.
9397 * grub-core/normal/main.c (features): Add feature_default_font_path.
9398 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
9399 * util/grub.d/00_header.in: Use default directory if possible.
9400 * util/grub-install.in: Install unicode.pf2.
9401
b3e08622
VS
94022012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9403
9404 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
9405 * po/Rules-swiss: New file.
9406 * po/swiss.sed: Likewise.
9407
fe42ce09
VS
94082012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9409
9410 * grub-core/fs/btrfs.c (find_device): Fix typos.
9411 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
9412 * util/grub-mkrelpath.c (argp_parser): Likewise.
9413 Reported by: Yuri Chornoivan.
9414
72f1d065
DO
94152012-02-23 Dalet Omega <daletomega@gmail.com>
9416
9417 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
9418 for usual informative messages.
9419
c5884973
DO
94202012-02-23 Dalet Omega <daletomega@gmail.com>
9421
9422 Starfield theme.
9423
9424 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
9425 * conf/Makefile.common: Define starfielddir.
9426 * configure.ac: Configure starfield.
9427 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
9428 * themes/starfield/README: Likewise.
9429 * themes/starfield/blob_w.png: Likewise.
9430 * themes/starfield/boot_menu_c.png: Likewise.
9431 * themes/starfield/boot_menu_e.png: Likewise.
9432 * themes/starfield/boot_menu_n.png: Likewise.
9433 * themes/starfield/boot_menu_ne.png: Likewise.
9434 * themes/starfield/boot_menu_nw.png: Likewise.
9435 * themes/starfield/boot_menu_s.png: Likewise.
9436 * themes/starfield/boot_menu_se.png: Likewise.
9437 * themes/starfield/boot_menu_sw.png: Likewise.
9438 * themes/starfield/boot_menu_w.png: Likewise.
9439 * themes/starfield/slider_c.png: Likewise.
9440 * themes/starfield/slider_n.png: Likewise.
9441 * themes/starfield/slider_s.png: Likewise.
9442 * themes/starfield/src/blob_nw.xcf: Likewise.
9443 * themes/starfield/src/bootmenu/: Likewise.
9444 * themes/starfield/src/bootmenu/center.xcf: Likewise.
9445 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
9446 * themes/starfield/src/bootmenu/side.xcf: Likewise.
9447 * themes/starfield/src/slider_c.xcf: Likewise.
9448 * themes/starfield/src/slider_n.xcf: Likewise.
9449 * themes/starfield/src/slider_s.xcf: Likewise.
9450 * themes/starfield/src/terminalbox/: Likewise.
9451 * themes/starfield/src/terminalbox/center.xcf: Likewise.
9452 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
9453 * themes/starfield/src/terminalbox/side.xcf: Likewise.
9454 * themes/starfield/starfield.png: Likewise.
9455 * themes/starfield/terminal_box_c.png: Likewise.
9456 * themes/starfield/terminal_box_e.png: Likewise.
9457 * themes/starfield/terminal_box_n.png: Likewise.
9458 * themes/starfield/terminal_box_ne.png: Likewise.
9459 * themes/starfield/terminal_box_nw.png: Likewise.
9460 * themes/starfield/terminal_box_s.png: Likewise.
9461 * themes/starfield/terminal_box_se.png: Likewise.
9462 * themes/starfield/terminal_box_sw.png: Likewise.
9463 * themes/starfield/terminal_box_w.png: Likewise.
9464 * themes/starfield/theme.txt: Likewise.
9465
17d73325
VS
94662012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9467
9468 * util/grub.d/00_header.in: Add missing export theme.
9469
dbebaf92
VS
94702012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9471
9472 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
9473 already included.
9474 Reported by: Eren D.
9475
3d68bffb
VS
94762012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9477
9478 * conf/Makefile.common (grubdatadir): Removed.
9479 (Makefile.am): Move eveything grubdata to pkgdata.
9480
4b59234d
VS
94812012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9482
9483 * grub-core/commands/acpihalt.c (get_sleep_type):
9484 Remove unused variable.
9485
463dcadc
VS
94862012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9487
9488 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
9489 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
9490 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
9491 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
9492 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
9493 i18n with gettext no-op.
9494 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
9495 GRUB_ACPI_OPCODE_STRING_CONST.
9496 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
9497 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
9498
e5b90c82
VS
94992012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 * po/POTFILES.in: Regenerate.
9502
2a704ca9
VS
95032012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9504
9505 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
9506 -Wno-error=missing-noreturn.
9507
84f9d341
VS
95082012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
9511 condition to avoid possibly infinite loops.
9512 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
9513 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
9514
d46683f9
VS
95152012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9516
9517 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
9518 condition to avoid possibly infinite loops.
9519
c44866b2
VS
95202012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9521
9522 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
9523 on show_error.
9524
96790539
VS
95252012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9526
9527 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
9528
1ba7e295
VS
95292012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9530
9531 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
9532
21ffe8f1
VS
95332012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9534
9535 * util/bin2h.c (usage): Add missing attribute noreturn.
9536
0ccb6b3c
VS
95372012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
9540 if the size isn't divisible by 512.
9541
b00d7fb6
VS
95422012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9543
9544 Make list_push and list_remove functions rather than inline functions
9545 to decrease size and avoid aliasing violations.
9546
9547 * include/grub/list.h (grub_list_push): Move to ...
9548 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
9549 * include/grub/list.h (grub_list_remove): Move to ...
9550 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
9551
9d369087
VS
95522012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
9555 and -Wunused-result.
9556
af0250d9
VS
95572012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9558
9559 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
9560 Reported by: Seth Goldberg
9561
aad32b14
VS
95622012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
9563
9564 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
9565
ac96441c
ST
95662012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9567
9568 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
9569 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
9570 command line.
9571 * docs/grub.texi (Simple configuration): Document
9572 GRUB_CMDLINE_GNUMACH.
9573
95742012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
9575
9576 * conf/Makefile.common (platform_SCRIPTS): New variable.
9577 (platform_PROGRAMS): Likewise.
9578 * gentpl.py: Mark *,module and *.image for install.
9579 * grub-core/gdb_grub.in: Add a notice of expected environment.
9580 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
9581 (gmodule.pl): Likewise.
9582
ac96441c 95832012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
9584
9585 Replace grub_checkkey with grub_getkey_noblock.
9586
9587 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
9588 (grub_getkey_noblock): ... this. All users updated.
9589
ac96441c 95902012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
9591
9592 * grub-core/kern/emu/console.c: Move to ...
9593 * grub-core/term/emu/console.c: ...here.
9594 (grub_ncurses_getkey): Fix return value if no key is detected.
9595
e51b5666
VS
95962012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9597
9598 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
9599 (grub_unit_test_fini): Likewise.
9600 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
9601
96022012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9603
9604 * include/grub/test.h (GRUB_UNIT_TEST)
9605
d9a62292
VS
96062012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9607
9608 * grub-core/script/execute.c (grub_script_break): Clarify logic.
9609 Better error handling.
9610 (grub_script_return): Likewise.
9611 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
9612
77c9182f
VS
96132012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
9616 rimplicit redifinition.
9617
edb13cf9
VS
96182012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9619
9620 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
9621 GRUB.
9622
a9e9dc7c
VS
96232012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9624
9625 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
9626 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
9627 prompt here.
9628
b4ba8e02
VS
96292012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9630
9631 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
9632 as GRUB_ERR_BUG. Don't malloc if no device is available.
9633
dded5540
VS
96342012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
9637 Mark calling with invalid term as GRUB_ERR_BUG.
9638
0cf69874
VS
96392012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9640
9641 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
9642 packets rather than raising an error.
9643
59bfe502
VS
96442012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9645
9646 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
9647 in if.
9648
db5fc596
VS
96492012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9650
9651 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
9652 diagnostic to dprintf.
9653 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9654
e4b7f404
VS
96552012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9656
9657 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
9658 device name.
9659
e7b02f9e
VS
96602012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
9663 (grub_ntfs_iterate_dir): Likewise.
9664
0331e102
VS
96652012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 Efiemu stylistic fixes and gettext.
9668
9669 * grub-core/efiemu/i386/loadcore32.c
9670 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
9671 * grub-core/efiemu/i386/loadcore64.c
9672 (grub_arch_efiemu_relocate_symbols64): Likewise.
9673 * grub-core/efiemu/i386/pc/cfgtables.c
9674 (grub_machine_efiemu_init_tables): Likewise.
9675 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
9676 (grub_efiemu_loadcore_initXX): Add a filename argument.
9677 All users updated.
9678 Improved error message.
9679 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
9680 Add a filename argument.
9681 All users updated.
9682 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
9683 Reclassify double relocation as GRUB_ERR_BUG.
9684
306fc074
VS
96852012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
9688 handling.
9689
794d8ef2
VS
96902012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
9691
9692 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
9693 on partition.
9694
96952012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
9696
9697 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
9698
794d8ef2 96992012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
9700
9701 Improve string. Gettextize.
9702
78dde88e
VS
97032012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
9706 utils.
9707 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
9708
4786a90f
VS
97092012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
9712 [GRUB_UTIL]: New function.
9713 (insert_array) [GRUB_UTIL]: Store partmaps.
9714 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
9715 partmaps.
9716 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
9717 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
9718 (probe_abstraction): Print diskfilter and not raid.
9719 Reported by: Lennart Sorensen
9720
0b6225bd
VS
97212012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
9724 * util/grub-mkimagexx.c (MASK3): New define.
9725 (add_value_to_slot_20b): Use MASK3.
9726 (add_value_to_slot_21): Likewise.
9727 (relocate_addresses): Fix format specification.
9728 (load_image): Explicitly init symtab_section.
9729
b055f8f6
VS
97302012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9731
9732 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
9733 (grub_util_biosdisk_get_grub_dev): Fix format specification.
9734
b77c2fb7
VS
97352012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9736
9737 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
9738 on powerpc.
9739 Reported by: Lennart Sorensen
9740
e3ec28ab
VS
97412012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
9742
9743 * gentpl.py: Add missing license header.
9744 * docs/grub.texi: Update copyright year.
9745
c8d9ead6
GS
97462012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
9747
9748 Source grub-mkconfig_lib from the build directory at build time.
9749 Suggested by: Vladimir Serbinenko.
9750
9751 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
9752 * util/grub-install.in: Define pkgdatadir if not already set, and source
9753 grub-mkconfig_lib from there.
9754 * util/grub-kbdcomp.in: Likewise.
9755 * util/grub-mkconfig.in: Likewise.
9756 * util/grub-mknetdir.in: Likewise.
9757 * util/grub-mkrescue.in: Likewise.
9758 * util/grub-mkstandalone.in: Likewise.
9759 * util/grub-reboot.in: Likewise.
9760 * util/grub-set-default.in: Likewise.
9761 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9762
ebcecdf1
VS
97632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9764
9765 Increase warning level.
9766
9767 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
9768 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
9769 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
9770 (TARGET_CFLAGS): Likewise.
9771 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
9772 * grub-core/Makefile.core.def (decompressor_xz): Add
9773 -Wno-unreachable-code.
9774 (normal): Add -Wno-redundant-decls.
9775 (xzio): Add -Wno-unreachable-code.
9776 (lzopio): Add -Wno-redundant-decls -Wno-error.
9777 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
9778 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
9779 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
9780 * grub-core/kern/dl.c: Add exception to -Wcast-align.
9781 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
9782 * grub-core/kern/i386/coreboot/init.c: Add exception to
9783 -Wsuggest-attribute=noreturn.
9784 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
9785 * grub-core/kern/ia64/dl_helper.c: Likewise.
9786 * grub-core/kern/mips/dl.c: Likewise.
9787 * grub-core/kern/sparc64/dl.c: Likewise.
9788 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
9789 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
9790 (memcmp): Likewise.
9791 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
9792 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
9793 * grub-core/loader/mips/linux.c: Likewise.
9794 * grub-core/loader/multiboot_elfxx.c: Likewise.
9795 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
9796 * grub-core/video/sm712.c: Add exception to -Wcast-align.
9797 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
9798 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
9799 fixme.
9800 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
9801 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
9802 Fix prototype.
9803
37bb97fe
VS
98042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9805
9806 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
9807 address.
9808
29a3550b
VS
98092012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
9812 Avoid improper use of strings.
9813 (grub_cmd_legacy_initrdnounzip): Likewise.
9814
dfdffd0d
VS
98152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 * include/grub/emu/misc.h (grub_util_warn): Add missing format
9818 attribute.
9819 (grub_util_info): Likewise.
9820 (grub_util_error): Likewise.
9821
102fae4a
VS
98222012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9823
9824 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
9825 * util/grub-fstest.c (fstest): Likewise.
9826
7e94d044
VS
98272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9828
9829 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
9830 (grub_md_sha512_real): Likewise.
9831 (grub_util_get_geli_uuid): Likewise.
9832 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
9833 (grub_util_biosdisk_open): Fix format specification.
9834 Respect format security.
9835 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
9836 (xrealloc): Likewise.
9837 (xasprintf): Likewise.
9838
5ebd9769
VS
98392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9840
9841 * util/import_gcry.py: Include grub/crypto.h in init.c.
9842
495fc8c1
VS
98432012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9844
9845 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
9846 (generate_image): Make prefix a const char *.
9847 Fix format specifications. Respect format security.
9848 Avoid void * arithmetics.
9849 Avoid shadowing.
9850 (argp_parser): Remove unused variable. Respect format security.
9851 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
9852 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
9853 (count_funcs): Remove unused variable.
9854 (relocate_addresses): Fix format specification.
9855 Disable x86-64 with elf32. Remove unused variables.
9856 (add_fixup_entry): Avoid shadowing.
9857 (make_reloc_section): Fix format specification.
9858 Use assert.
9859 (locate_sections): Fix format specifications.
9860 (load_image): Avoid shadowing.
9861
043c2ea3
VS
98622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
9865 Fix format specifications. Respect format security.
9866 Don't translate already translated grub_errmsg.
9867 (argp_parser): Remove unused variable
9868
3ec65a81
VS
98692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
9872
a4d9fe4a
VS
98732012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9874
9875 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
9876 (main): Likewise. Use xmalloc. Respect format security.
9877
15b81d49
VS
98782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9879
9880 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
9881 a const char *.
9882 (argp_parser): Remove unused variable.
9883
31731fc0
VS
98842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9885
9886 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
9887 (add_pixel): Make static.
9888 (add_font): Likewise.
9889 (write_string_section): Make name and str a const char *.
9890 (write_be16_section): Make name a const char *.
9891 (print_glyphs): Make static.
9892 (write_font_ascii_bitmap): Likewise.
9893 (write_font_width_spec): Likewise.
9894 (write_font_pf2): Likewise.
9895 (argp_parser): Remove unused variable.
9896 Respect format security.
9897 (main): Avoid shadowing. Respect format security.
9898
0809527b
VS
98992012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9900
9901 * util/grub-editenv.c (argp_parser): Make static.
9902 (create_envblk_file): Use xmalloc.
9903 (open_envblk_file): Likewise.
9904 Resepect format security.
9905 (set_variables): Respect format security.
9906
45b0c8b7
VS
99072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * util/getroot.c (grub_find_device): Respect format security.
9910 (get_mdadm_uuid): Remove unused variable.
9911 (grub_util_pull_device): Dont call gettext on already translated
9912 grub_errmsg.
9913 (find_system_device): Remove unused variable.
9914 (grub_util_get_grub_dev): Likewise.
9915 (grub_make_system_path_relative_to_its_root): Respect format security.
9916
1b024b4e
VS
99172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9918
9919 * util/grub-fstest.c (execute_command): Make first argument
9920 a const char *.
9921 (read_file): Avoid shadowing.
9922 Reuse underlying error message if device open fails.
9923 (cmd_cmp): Respect format security.
9924 (root): Make const char *.
9925 (fstest): Remove args argument and use global copy.
9926 Respect format security.
9927 (argp_parser): Make static.
9928 (main): Make default_root const char *.
9929
5d1d4e28
VS
99302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9931
9932 * util/grub-mount.c (root): Make const char *.
9933 (execute_command): Make first argument a const char *.
9934 (fuse_init): Respect format security.
9935 (argp_parser): Make static. Remove unused variable.
9936 (main): Make default_root a const char *.
9937 Respect format security.
9938
36eb7379
VS
99392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 * util/grub-probe.c (probe): Don't call gettext on already translated
9942 grub_errmsg.
9943 Remove unused variables.
9944 (argp_parser): Remove unused variable.
9945
76fb2ea9
VS
99462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 * util/grub-script-check.c (argp_parser): Remove unused variable.
9949 (main): Rename read to curread to avoid shadowing.
9950
56c98584
VS
99512012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9952
9953 * util/misc.c (grub_util_write_image_at): Fix format specification.
9954 (grub_util_write_image): Likewise.
9955 (grub_script_execute_argument_to_string): Removed (unused).
9956 (grub_script_execute_menuentry): Likewise.
9957 (grub_putchar): Likewise.
9958
164ebb48
VS
99592012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9960
9961 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
9962 (FUNCTION) [GRUB_UTIL]: Likewise.
9963 (VARIABLE) [GRUB_UTIL]: Likewise.
9964
44318d61
VS
99652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9966
9967 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
9968 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
9969
31a26002
VS
99702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
9973 buffer.
9974
99752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9976
9977 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
9978 (LzmaEnc_SaveState): Removed (unused).
9979 (LzmaEnc_RestoreState): Likewise.
9980 (LzmaEnc_InitPriceTables): Made static.
9981 (LzmaEnc_Construct): Likewise.
9982 (LzmaEnc_FreeLits): Likewise.
9983 (LzmaEnc_Destruct): Likewise.
9984 (LzmaEnc_Init): Likewise.
9985 (LzmaEnc_InitPrices): Likewise.
9986 (LzmaEnc_Finish): Likewise.
9987 (LzmaEnc_PrepareForLzma2): Removed (unused).
9988 (LzmaEnc_MemPrepare): Likewise.
9989 (LzmaEnc_GetNumAvailableBytes): Likewise.
9990 (LzmaEnc_GetCurBuf): Likewise.
9991 (LzmaEnc_CodeOneMemBlock): Likewise.
9992
6fa67967
VS
99932012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
9996 (grub_util_ldm_embed): Likewise.
9997
9a7428e6
VS
99982012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 * util/grub-editenv.c (print_var): Rename name to varname to
10001 avoid shadowing.
10002 (main): Rename index to curindex to avoid shadowing.
31a26002 10003 Make filename a const char *.
9a7428e6 10004
4f96abd1
VS
100052012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10006
10007 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
10008 to arg_getline to avoid shadowing.
10009
44d10dad
VS
100102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10011
10012 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
10013 disk_ to avoid shadowing.
10014
340ba63e
VS
100152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10016
10017 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
10018 curindex to avoid shadowing.
10019 Make static.
10020 (MatchFinder_GetNumAvailableBytes): Make static.
10021
22965bce
VS
100222012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10023
10024 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
10025 avoid shadowing.
10026
7b5784d4
VS
100272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
10030 argument from encrypt to do_encrypt to avoid shadowing.
10031
6f48ca01
VS
100322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10033
10034 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
10035 incorrect nesting of #if's.
10036
a4ea2dff
VS
100372012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10038
10039 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
10040 checks which are always false on some platforms.
10041 (grub_cmd_lsacpi): Likewise.
10042 * grub-core/kern/misc.c (grub_strtoul): Likewise.
10043 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
10044 Likewise.
10045
def9fc1b
VS
100462012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10047
10048 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
10049 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
10050
a67b2a04
VS
100512012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10052
10053 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
10054 re_dfa_t to avoid breaking alignment invariants.
10055 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
10056 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
10057
44c6828d
VS
100582012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10059
10060 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
10061 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
10062
bebe0dd0
VS
100632012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10064
10065 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
10066 Fix declaration.
10067
a9cdb3cf
VS
100682012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10069
10070 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
10071 conserve alignment invariants.
10072 (grub_ehci_ehcc_read16): Likewise.
10073 (grub_ehci_oper_read32): Likewise.
10074 (grub_ehci_oper_write32): Likewise.
10075 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10076 Conserve alignment invariants.
10077
ccc3b1b8
VS
100782012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10079
10080 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
10081 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
10082 declarations.
10083
987fbd95
VS
100842012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10085
10086 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
10087 Remove unused variable.
10088
0df363f3
VS
100892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10090
10091 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
10092 Remove set in if.
10093
b2c0c4a6
VS
100942012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10095
10096 * include/grub/net.h: Remove double declarations.
10097
690c531f
VS
100982012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10099
10100 Remove "payload" command in ia64 Linux loader since I couldn't
10101 find any evidence of it being used for anything.
10102 Replace "relocate" command with an environment variable
10103
10104 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
10105 fields.
10106 (ia64_boot_payload): Removed.
10107 (last_payload): Likewise.
10108 (RELOCATE_OFF): Likewise.
10109 (RELOCATE_ON): Likewise.
10110 (RELOCATE_FORCE): Likewise.
10111 (relocate): Likewise.
10112 (free_pages): Don't free payloads.
10113 (grub_load_elf64): Use common error messages.
10114 Use "linux_relocate" variable.
10115 Increase the space after boot_params.
10116 (grub_cmd_payload): Removed.
10117 (grub_cmd_relocate): Likewise.
10118 (grub_cmd_fpswa): Improve messages.
10119 (cmd_payload): Removed.
10120 (cmd_relocate): Likewise.
10121 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
10122 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
10123
01783768
VS
101242012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10125
10126 Convert UHCI to DMA framework.
10127
10128 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
10129 (grub_uhci_pci_iter): Fill new members
10130 (grub_alloc_td): Use P2V and V2P functions.
10131 (grub_free_queue): Likewise.
10132 (grub_alloc_qh): Likewise.
10133 (grub_uhci_setup_transfer): Likewise.
10134 (grub_uhci_check_transfer): Likewise.
10135
43206939
VS
101362012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10137
10138 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
10139 Remove assignment in if while on it.
10140
571e140e
VS
101412012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10142
10143 * util/grub-mkstandalone.in: Fix modules directory.
10144
a9d96eeb
VS
101452012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
10148 on i386-pc target.
10149 (argp_parser): Accept "auto" as compression specification.
10150
e4e37e8d
VS
101512012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10152
10153 Fix `help' with unloaded modules.
10154
10155 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
10156 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
10157 (grub_dyncmd_dispatcher): Small stylistic fix.
10158 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
10159 explicit help is requested.
10160
e1ea3ade
VS
101612012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10162
10163 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
10164 Explicitly init restart while on it.
10165
27556881
VS
101662012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10167
10168 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
10169 uninited variable.
10170
d65f6b36
VS
101712012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10172
10173 * util/grub-mknetdir.in: Use . rather than source for POSIX
10174 compatibility.
10175
0a1e473c
VS
101762012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
10179
ce6647c8
VS
101802012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10181
10182 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
10183 variable.
10184
66747894
VS
101852012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10186
10187 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
10188 without quotes.
10189
71645f6e
VS
101902012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10191
10192 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
10193
0e1c1f61
VS
101942012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
10197 iteration of partitions.
10198
9c4b5c13
VS
101992012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 Improve gettext support. Stylistic fixes and error handling fixes while
10202 on it.
10203
215c90cb
VS
102042012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
10205
10206 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
10207 part. Instead setup the correct stack in RM.
10208 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
10209 for stack.
10210 * include/grub/i386/relocator_private.h: New file.
10211
b5c1f9bf
VS
102122012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10213
10214 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
10215 argument.
10216 * util/grub-fstest.c (options): Add missing DEVICE part.
10217
b525fd83
VS
102182012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10219
10220 Clarify and unify messages.
10221
10222 * grub-core/commands/hashsum.c (options): Unify messages.
10223 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
10224 literal-only message as translatable.
10225 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
10226 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
10227 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
10228 commands.
10229 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
10230 key, not the key used to unlock. Clarify what it's used for.
10231 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
10232 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
10233 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
10234 * util/grub-editenv.c (options): Unify "verbose" message.
10235 * util/grub-fstest.c (read_file): Unify error message.
10236 (fstest): Add quotes around commands.
10237 (options): Unify "verbose" message.
10238 * util/grub-install.in: Add quotes around variable name.
10239 * util/grub-kbdcomp.in: Unify error message.
10240 * util/grub-mkfont.c (main): Likewise.
10241 * util/grub-mkrescue.in: Likewise.
10242 * util/grub-mklayout.c (options): Unify "verbose" message.
10243 * util/grub-mkstandalone.in: Unify help and verbose messages.
10244 * util/grub-mount.c (options): Unify "verbose" message.
10245 * util/grub-probe.c (options): Likewise.
10246 * util/grub-script-check.c (options): Likewise.
10247 * util/grub-setup.c (setup): Unify no-terminator message.
10248 (options): Use DEVICE and not DEV.
10249 Unify "verbose" message.
10250 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
10251
0ae70393
VS
102522012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 Improve and unify messages.
10255
10256 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
10257 name. All users updated.
10258 Print filename in error.
10259 (read_device_map): Print filename in error.
10260 * util/getroot.c (grub_guess_root_devices): Print filename in error.
10261 (grub_util_get_os_disk): Likewise.
10262 (grub_util_biosdisk_get_grub_dev): Likewise.
10263 (grub_util_check_block_device): Likewise.
10264 (grub_util_check_char_device): Likewise.
10265 (grub_make_system_path_relative_to_its_root): Likewise.
10266 * util/grub-editenv.c (create_envblk_file): Likewise.
10267 (open_envblk_file): Likewise.
10268 (write_envblk): Likewise.
10269 * util/grub-fstest.c (cmd_cp): Likewise.
10270 (cmd_cat): Likewise.
10271 (cmd_cmp): Likewise.
10272 * util/grub-menulst2cfg.c (main): Likewise.
10273 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
10274 (write_font_width_spec): Likewise.
10275 (write_font_pf2): Likewise.
10276 * util/grub-mkimage.c (generate_image): New argument outname.
10277 All users updated.
10278 Remove unreacheable message.
10279 (options): Unify messages.
10280 (help_filter): Likewise.
10281 * util/grub-mklayout.c (usage): Removed (unused).
10282 (main): Print filename in error.
10283 * util/grub-mkrescue.in: Fix wrong quoting.
10284 * util/grub-setup.c (setup): Print filename in error.
10285 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
10286 (check_sas): Likewise.
10287 * util/misc.c (grub_util_get_fp_size): Removed.
10288 (grub_util_get_image_size): Print filename in error.
10289 (grub_util_read_at): Removed.
10290 (grub_util_read_image): Print filename in error.
10291 (grub_util_load_image): Likewise.
10292 (grub_util_write_image_at): New argument filename. All users updated.
10293 Print filename in error.
10294 (grub_util_write_image): New argument filename. All users updated.
10295 Print filename in error.
10296 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
10297 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
10298
0a96117d
VS
102992012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10300
10301 * grub-core/Makefile.core.def (pxechain): New module.
10302 * grub-core/loader/i386/pc/pxechainloader.c: New file.
10303 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
10304 function.
10305 (grub_pc_net_config_real): Use grub_pxe_get_cached.
10306 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
10307
aca002f7
VS
103082012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10309
10310 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
10311 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
10312 * include/grub/err.h (grub_error_saved): New struct.
10313 (grub_errmsg): Make array size explicit.
10314 * include/grub/misc.h (grub_error_save): New function.
10315 (grub_error_load): Likewise.
10316 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
10317 (grub_error_push): Update `errno' member name.
10318 (grub_error_pop): Likewise
10319 * grub-core/net/tftp.c (tftp_data): New member save_err.
10320 (tftp_receive): Save error.
10321 (tftp_open): Restore error.
10322
a51dab13
VS
103232012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10324
10325 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
10326 to real mode down to execute A20-related code in protected mode as
10327 intended.
10328
eb6e6649
GS
103292012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
10330
10331 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
10332 NULL when the argument `level' has an unexpected value.
10333
92cd0f6e
VS
103342012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10335
10336 Move platform-dependent files from $prefix to $prefix/$platform.
10337
10338 * config.h.in (GRUB_TARGET_CPU): New definition.
10339 (GRUB_PLATFORM): Likewise.
10340 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
10341 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
10342 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10343 * grub-core/kern/dl.c (grub_dl_load): Likewise.
10344 * grub-core/normal/autofs.c (read_fs_list): Likewise.
10345 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
10346 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
10347 * grub-core/normal/term.c (read_terminal_list): Likewise.
10348 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
10349 $prefix/locale.
10350 (grub_gettext_init_ext): Likewise.
10351 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
10352 grub_platform.
10353 * util/grub-install.in: Update directories.
10354 * util/grub-mknetdir.in: Likewise.
10355 * util/grub-mkrescue.in: Likewise.
10356
db606889
VS
103572012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10358
10359 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
10360 grub_error framework. All users updated.
10361
c39992a4
VS
103622012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10363
10364 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
10365 lists (by always binsearching), improve caching (cache strings
10366 used for binsearch, not only results), improve
10367 maintainability (by using more structured binary search) and correct
10368 error handling.
10369
1e5ec32f
VS
103702012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10371
10372 * grub-core/script/execute.c (grub_script_return): Fix warning.
10373
ac576cde
VS
103742012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10375
10376 * grub-core/script/execute.c (grub_script_return): Fix potential
10377 NULL-dereference.
10378 Reported by: Jim Meyering.
10379
498453f6
VS
103802012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10381
10382 * po/POTFILES.in: Regenerate.
10383 * util/grub-install.in: Gettextize the strings missed in first pass.
10384
8be63f2e
VS
103852012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * Makefile.util.def (grub-mkdevicemap): Removed.
10388 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
10389 * include/grub/util/deviceiter.h: Removed.
10390 * util/deviceiter.c: Likewise.
10391 * util/getroot.c (grub_util_get_os_disk): New function.
10392 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
10393 replacement for EFI.
10394 * util/grub-mkdevicemap.c: Removed.
10395 * util/grub-probe.c (probe): Handle PRINT_DISK.
10396 (argp_parser): Handle -t disk.
10397
8e1e4e39
VS
103982012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10399
10400 * util/grub-mkfont.c: Migrate to argp.
10401 * util/grub-mklayout.c: Likewise.
10402 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10403 * util/grub-mkrelpath.c: Likewise.
10404 * util/grub-probe.c: Likewise.
10405 * util/grub-script-check.c: Likewise.
10406
4459819a
VS
104072012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10408
10409 * util/grub-reboot.in: Add missing datarootdir.
10410 Add missing newline.
10411 * util/grub-set-default.in: Add missing datarootdir.
10412 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
10413 * util/grub-mkrescue.in: Likewise.
10414
f65741c7
VS
104152012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10416
10417 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
10418
c1a33466
VS
104192012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10420
10421 * util/grub-kbdcomp.in: Add decent help and gettextize.
10422 * docs/man/grub-kbdcomp.h2m: New file.
10423
c76899a0
VS
104242012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10425
10426 Migrate grub-mkimage.c to argp.
10427
10428 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
10429 (grub-setup): Likewise.
10430 * util/grub-setup.c (print_version): Move to ...
10431 * util/argp_common.c (print_version): ... here.
10432 * util/grub-setup.c (argp_program_version_hook): Move to ...
10433 * util/argp_common.c (argp_program_version_hook): ... here.
10434 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
10435 safety.
10436 * util/grub-mkimage.c (main): Migrate to argp.
10437
57db0757
VS
104382012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10439
10440 * util/grub-mkrescue.in: Use same message as
10441 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
10442 for better translations.
10443
18534ad9
VS
104442012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10445
10446 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
10447 options with generic grub-mkrescue.in with the goal of future
10448 merge.
10449
c84ba308
VS
104502012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10451
10452 * grub-core/kern/mm.c: Add missing include of i18n.h
10453 * grub-core/lib/relocator.c: Likewise.
10454
347998c2
VS
104552012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
10458 error.
10459 (allocate_pages): Check return value.
10460 Replace fatal with error.
10461 (grub_linux_boot): Replace printf with dprintf.
10462 Check find_mmap_size return value.
10463 Replace fatal with error.
10464 Don't call grub_machine_fini.
10465 (grub_load_elf64): Replace printf with dprintf.
10466 (grub_cmd_linux): Likewise.
10467 (grub_cmd_initrd): Likewise.
10468 (grub_cmd_payload): Likewise.
10469
c779226e
VS
104702012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10471
10472 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
10473 message.
10474 * grub-core/video/radeon_fuloong2e.c
10475 (grub_video_radeon_fuloong2e_setup): Likewise.
10476 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
10477 * grub-core/video/video.c (grub_video_set_mode): Don't override
10478 standard out of memory message.
10479
dc87d45a
GS
104802012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10481
10482 NetBSD disk wedge support.
10483
10484 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
10485 [__NetBSD__]: Handle NetBSD disk wedges.
10486 * util/getroot.c (convert_system_partition_to_system_disk)
10487 [__NetBSD__]: Likewise.
10488
055f856f
MW
104892012-02-03 Mark Wooding <mdw@distorted.org.uk>
10490
10491 * util/grub-mkconfig.in: Use umask rather than chmod to create
10492 grub.cfg.new to avoid insecure grub.cfg.
10493
4a9f8346
VS
104942012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10495
10496 * grub-core/commands/ls.c: Gettextize.
10497 * grub-core/commands/setpci.c: Likewise.
10498 * grub-core/commands/videotest.c: Likewise.
10499 * grub-core/disk/geli.c: Likewise.
10500 * grub-core/kern/mm.c: Likewise.
10501 * grub-core/lib/relocator.c: Likewise.
10502 * grub-core/loader/efi/appleloader.c: Likewise.
10503 * grub-core/loader/i386/xnu.c: Likewise.
10504 * grub-core/loader/ia64/efi/linux.c: Likewise.
10505 * grub-core/loader/xnu.c: Likewise.
10506 * grub-core/net/dns.c: Likewise.
10507 * grub-core/net/net.c: Likewise.
10508 * grub-core/script/lexer.c: Likewise.
10509 * grub-core/script/parser.y: Likewise.
10510 * grub-core/script/yylex.l: Likewise.
10511 * util/getroot.c: Likewise.
10512 * util/grub-setup.c: Likewise.
10513
a646a366
VS
105142012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10515
10516 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
10517 number.
10518
54e2be26
VS
105192012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10520
10521 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
10522
f7c71e68
VS
105232012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10524
10525 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
10526 macro.
10527 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
10528 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
10529
a32d5c71
VS
105302012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10531
10532 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
10533 * util/grub-install.in: Gettextize.
10534 * util/grub-mkconfig.in: Likewise.
10535 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
10536 if not available.
10537 (grub_warn): Gettextize.
10538 * util/grub-mknetdir.in: Gettextize.
10539 * util/grub-mkrescue.in: Likewise.
10540 * util/grub-mkstandalone.in: Likewise.
10541 * util/grub-reboot.in: Likewise.
10542 * util/grub-set-default.in: Likewise.
10543 * util/grub.d/00_header.in: Likewise.
10544 * util/grub.d/10_hurd.in: Likewise.
10545 * util/grub.d/10_kfreebsd.in: Likewise.
10546 * util/grub.d/10_linux.in: Likewise.
10547 * util/grub.d/10_netbsd.in: Likewise.
10548 * util/grub.d/10_windows.in: Likewise.
10549 * util/grub.d/20_linux_xen.in: Likewise.
10550 * util/grub.d/30_os-prober.in: Likewise.
10551 * po/POTFILES-shell.in: Regenerate.
10552
69edd81a
RL
105532012-02-03 Richard Laager <rlaager@wiktel.com>
10554
10555 * util/grub-mkimage.c (main): Fix format-security warning.
10556 * util/grub-mkrelpath.c (main): Likewise.
10557 * util/grub-probe.c (main): Likewise.
10558
65f08dbf
RL
105592012-02-03 Richard Laager <rlaager@wiktel.com>
10560
10561 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
10562 failure.
10563 Put back lost PRINT_DRIVE.
10564
e9084abe
RL
105652012-02-03 Richard Laager <rlaager@wiktel.com>
10566
10567 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
10568 (grub_guess_root_devices): Replace strlen with sizeof.
10569 Avoid crash.
10570 (find_root_devices_from_poolname): Remove unused variable.
10571 Handle raidzN.
10572
cf5f7ee7
VS
105732012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10574
10575 Support install on multi-device filesystems.
10576
10577 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
10578 (grub_guess_root_devices): ...this. Return char **. All users updated.
10579 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
10580 Removed.
10581 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
10582 (find_root_devices_from_poolname): ... here.
10583 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
10584 Support zfs-fuse.
10585 (grub_guess_root_device): Rename to ...
10586 (grub_guess_root_devices): ... this. Return char **. All users updated.
10587 * util/grub-install.in: Handle multi-device filesystems.
10588 * util/grub-probe.c (probe). Make device_names a char **. Add delim
10589 argument. All users updated.
10590 Handle multi-device filesystems.
10591 Use 'delim' as separator.
10592 Remove device check to allow filesystems on file.
10593 (main): Support -0 argument. Handle multi-device.
10594 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
10595 Fix a cross-device check while on it.
10596 (arguments): Remove root_dev.
10597 (argp_parser): Remove -r.
10598 (main): Remove root_dev.
10599
2f53a9ed
VS
106002012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10601
10602 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
10603
17e1d934
VS
106042012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10605
10606 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
10607 symbol.
10608 Reported by: NODA, Kai <nodakai>.
10609
d3e3fab5
VS
106102012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10611
10612 Fix ehci on amd64.
10613
10614 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
10615 pointers.
10616 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
10617 (grub_ehci_setup_qh): Likewise.
10618 (grub_ehci_find_qh): Likewise.
10619 (grub_ehci_transaction): Likewise.
10620 (grub_ehci_setup_transfer): Likewise.
10621 (grub_ehci_check_transfer): Likewise.
10622 (grub_ehci_portstatus): Likewise.
10623 (grub_ehci_detect_dev): Likewise.
10624 (grub_ehci_transfer_controller_data): New field td_last_phys.
10625 (grub_ehci_setup_transfer): Fill td_last_phys.
10626 (grub_ehci_check_transfer): Use td_last_phys.
10627
3008675b
SG
106282012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
10629
10630 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
10631 if no submenu is present.
10632
fc9b5652
AN
106332012-02-01 Aleš Nesrsta <starous@volny.cz>
10634
10635 CBI support.
10636
10637 * include/grub/usb.h (grub_usbms_protocol_t): New values
10638 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
10639 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
10640 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
10641 (grub_usbms_dev): Add subclass, protocol and intrpt.
10642 Remove in_maxsz and out_maxsz.
10643 (grub_usbms_reset): Rename to ...
10644 (grub_usbms_bo_reset): .. this.
10645 (grub_usbms_cbi_cmd): New function.
10646 (grub_usbms_cbi_reset): Likewise.
10647 (grub_usbms_reset): Likewise.
10648 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
10649 (grub_usbms_transfer): Rename to ...
10650 (grub_usbms_transfer_bo): ... this.
10651 (grub_usbms_transfer_cbi): Likewise.
10652 (grub_usbms_transfer): Likewise.
10653
a2b81d53
AN
106542012-02-01 Aleš Nesrsta <starous@volny.cz>
106552012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
10656
10657 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
10658 the support for the CS5536 modification thereos and few bugfixes.
10659
10660 * grub-core/Makefile.core.def (ehci): New module.
10661 * grub-core/bus/usb/ehci.c: New file.
10662 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
10663 port and hubaddr. All users updated.
10664 Save port and hubaddr into dev structure.
10665 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
10666 define.
10667 * include/grub/pci.h (grub_dma_phys2virt): New function.
10668 (grub_dma_virt2phys): Likewise.
10669 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
10670
b1d51f02
VS
106712012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10672
10673 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
10674 check as some mkfs implementations omit it.
10675
fc694106
VS
106762012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10677
10678 * docs/grub.texi (Unicode): Mention identifier and space limitations.
10679
6c0920e3
VS
106802012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10681
10682 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
10683 Add new member volname2.
10684 (grub_jfs_label): Use volname2 if available.
10685
d1a46f9a
VS
106862012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
10689 over last_mounted as seen in image generated by mkfs.nilfs2.
10690 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
10691
dec8ed14
VS
106922012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
10695 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
10696 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
10697
7397c69b
VS
106982012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10699
10700 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
10701 over the sector.
10702
b3fe42ad
VS
107032012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10704
10705 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
10706 subvolume name (by removing a bogus and useless check).
10707
10476bb0
VS
107082012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10709
10710 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
10711 sizeof while on it.
10712
9c08ad87
VS
107132012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10714
10715 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
10716 (grub_scsi_read_capacity10): ... this.
10717 (grub_scsi_read_capacity16): New function.
10718 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
10719 0xffffffff.
10720 Fix off-by-one error.
10721 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
10722 64-bit unsigned.
10723 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
10724 (grub_scsi_read_capacity10): ... this.
10725 (grub_scsi_read_capacity_data): Rename to ...
10726 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
10727 (grub_scsi_read_capacity16): New struct.
10728 (grub_scsi_read_capacity16_data): Likewise.
10729 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
10730 grub_scsi_cmd_read_capacity10.
10731 New command grub_scsi_cmd_read_capacity16.
10732
bc8d0f45
VS
107332012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10734
10735 SCSI >2TiB support.
10736
10737 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
10738 (grub_scsi_write16): Likewise.
10739 (grub_scsi_read): Use read16 when necessary.
10740 (grub_scsi_write): Likewise.
10741 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
10742 (grub_scsi_write16): Likewise.
10743 (grub_scsi_cmd_t): Add READ16 and WRITE16.
10744
cc774926
VS
107452012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10746
10747 SCSI write support (for usbms mainly).
10748
10749 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
10750 a const pointer.
10751 (grub_scsi_write): Implement.
10752 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
10753
67639fd7
VS
107542012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
10755
10756 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
10757 variable.
10758
9079d3ed
VS
107592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10760
10761 * grub-core/lib/posix_wrap/string.h (memchr): New function.
10762
c6a6f204
VS
107632012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10764
10765 * po/POTFILES.in: Regenerate.
10766
ecbf8cd1
VS
107672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10768
10769 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
10770 with grub_printf to avoid unnecessary fatal failure.
10771
0b3b3b38
VS
107722012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10773
10774 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
10775 (INT_MAX): Likewise.
10776 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
10777 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
10778 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
10779 (strcpy): Likewise.
10780 (strstr): Likewise.
10781 (strchr): Likewise.
10782 (strncpy): Likewise.
10783 (strcat): Likewise.
10784 (strncat): Likewise.
10785 (strcoll): Likewise.
10786 * include/grub/types.h (GRUB_SHRT_MAX): New define.
10787 (GRUB_INT_MAX): Likewise.
10788
db7337a3
VS
107892012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10790
10791 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
10792 unexpected error.
10793 (optimize_utf8): Likewise.
10794 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
10795
f37c87e1
VS
107962012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10797
10798 * grub-core/boot/i386/pc/lnxboot.S: Use
10799 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
10800 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
10801 location.
10802 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
10803 definition.
10804 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
10805
63fe43f3
VS
108062012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10807
10808 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
10809 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
10810 now to avoid double free.
10811 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
10812 hostdisk.
10813 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
10814 * util/grub-probe.c (escape_of_path): Always return a new copy.
10815 (print_full_name): Escape path.
10816 (probe): Don't call grub_util_devname_to_ofpath on NULL.
10817 Fix hints on abstractions.
10818
ebe2c961
VS
108192012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10820
10821 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
10822 Don't add "root" line if no compatibility hont is available.
10823 Suggested by: Seth Goldberg.
10824
2b5336a2
VS
108252012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10826
10827 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
10828 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
10829 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
10830 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
10831
74310bd8
VS
108322012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10833
10834 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
10835
c30582ba
VS
108362012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10837
10838 * util/grub-pe2elf.c (ehdr): Make static.
10839 (shdr): Likewise.
10840 (num_sections): Likewise.
10841 (offset): Likewise.
10842
5f47782c
VS
108432012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10844
10845 Eliminate ofpath limits and possible overflows.
10846
10847 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
10848 (OF_PATH_MAX): Removed.
10849 (MAX_DISK_CAT): New const.
10850 (find_obppath): Use allocated rather than preallocated buffer.
10851 Return result. Argument of_path removed. All users updated.
10852 Add missing fdstat.
10853 (xrealpath): New function.
10854 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
10855 Allocate rather than use preallocated buffer. All users updated.
10856 (__of_path_common): Use allocated rather than preallocatecd buffer.
10857 Return result. Argument of_path removed. All users updated.
10858 (vendor_is_ATA): Read only needed part form the file.
10859 (check_sas): Allocate depending on contents rather than fixed.
10860 (main) [STANDALONE]: Handle NULL result.
10861
f990cbf9
VS
108622012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 * grub-core/normal/completion.c (iterate_dev): Close the disk.
10865
9c6e84b8
VS
108662012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10867
10868 Cryptodisk write support.
10869
10870 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
10871 (grub_cryptodisk_decrypt): Moved logic to ...
10872 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
10873 (grub_cryptodisk_write): Implement.
10874 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
10875 (grub_util_fd_write): ... this. Make global.
10876 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
10877
87cf9744
VS
108782012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10879
10880 * include/grub/list.h (grub_list_remove): Don't crash if element is
10881 removed twice.
10882
ca8c0baf
VS
108832012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10884
10885 Rename ofconsole to console.
10886
10887 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
10888 as sysnonym to console.
10889 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
10890 * grub-core/term/ieee1275/console.c: ... this. All users updated.
10891 Rename grub_ofconsole_ to grub_console_. All users updated
10892 (grub_console_term_output): Rename "ofconsole" to "console".
10893 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
10894 as "console".
10895
64c8b8f6
VS
108962012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10897
10898 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
10899 handling.
10900 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
10901 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
10902 GRUB_DISK_DEVICE_FILE_ID.
10903
f6c434d5
VS
109042012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10905
10906 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
10907 and improve performance.
10908
5858b42d
VS
109092012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10910
10911 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
10912 missing ieee1275/ prefix on whole disk.
10913
4ed3c26b
VS
109142012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10915
10916 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
10917 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
10918
df71143e
VS
109192012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10920
10921 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
10922
076e7c0f
VS
109232012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
10924
10925 Merge common RAID and LVM logic to an abstract diskfilter.
10926 Add LDM support using the same framework.
10927
10928 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
10929 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
10930 (libgrubmods): Remove grub-core/disk/raid.c and
10931 grub-core/partmap/gpt.c.
10932 * grub-core/Makefile.core.def (ldm): New module.
10933 (raid): Renamed to diskfilter. All users updated.
10934 * grub-core/disk/raid.c: Moved to ...
10935 * grub-core/disk/diskfilter.c: ... here.
10936 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
10937 (lv_num): New var.
10938 (find_array): Renamed to ...
10939 (find_lv): ... this. Support multi-LV. Skip nameless LVs
10940 (grub_is_array_readable): Renamed to ...
10941 (grub_is_lv_readable): ... this. Support multinode hierarchy.
10942 (insert_array): New argument id.
10943 (is_node_readable): New function.
10944 (scan_device): Rename to ...
10945 (scan_disk): .. this. Restrict to one disk.
10946 (scan_devices): New function.
10947 (grub_diskfilter_iterate): Support multi-LV.
10948 Skip invisible and nameless LVs.
10949 (grub_diskfilter_memberlist): Support multi-LV.
10950 (grub_diskfilter_read_node): New function.
10951 (grub_raid_read): Most of logic moved to ...
10952 (read_segment): ... here
10953 (read_lv): New function.
10954 (grub_diskfilter_get_vg_by_uuid): New function.
10955 (grub_diskfilter_make_raid): Likewise.
10956 * grub-core/disk/ldm.c: New file.
10957 * grub-core/disk/lvm.c (vg_list): Removed.
10958 (lv_count): Likewise.
10959 (scan_depth): Likewise.
10960 (is_lv_readable): Likewise.
10961 (grub_lvm_getvalue): Advance pointer past the number.
10962 (find_lv): Removed.
10963 (do_lvm_scan): Refactored into ...
10964 (grub_lvm_detect): ... this. Support raid.
10965 (grub_lvm_iterate): Removed.
10966 (grub_lvm_memberlist): Likewise.
10967 (grub_lvm_open): Likewise.
10968 (grub_lvm_close): Likewise.
10969 (read_lv): Likewise.
10970 (read_node): Likewise.
10971 (is_node_readable): Likewise.
10972 (is_lv_readable): Likewise.
10973 (grub_lvm_read): Likewise.
10974 (grub_lvm_write): Likewise.
10975 (grub_lvm_dev): Use diskfilter
10976 (GRUB_MOD_INIT): Likewise.
10977 (GRUB_MOD_FINI): Likewise.
10978 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
10979 new interface.
10980 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
10981 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
10982 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
10983 grub_diskfilter_read_node.
10984 Fix a bug with xor.
10985 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
10986 grub_diskfilter_read_node.
10987 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
10988 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
10989 (grub_disk_dev_iterate): Move from here...
10990 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
10991 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
10992 Make global.
10993 (grub_hostdisk_find_partition_start): Likewise.
10994 (grub_hostdisk_os_dev_to_grub_drive): New function.
10995 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
10996 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
10997 * util/getroot.c (make_device_name): ... here.
10998 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
10999 Move to ...
11000 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
11001 * grub-core/kern/emu/hostdisk.c
11002 (convert_system_partition_to_system_disk): Move to ...
11003 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
11004 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
11005 * util/getroot.c (device_is_wholedisk): ... here.
11006 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
11007 * util/getroot.c (find_system_device): ... here.
11008 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
11009 Move to ...
11010 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
11011 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
11012 Move to ...
11013 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
11014 Handle LDM.
11015 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11016 Move to ...
11017 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
11018 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
11019 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
11020 DISKFILTER.
11021 * include/grub/raid.h: Renamed to ...
11022 * include/grub/diskfilter.h: ... this.
11023 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
11024 (GRUB_RAID_LAYOUT_*): Make into array.
11025 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
11026 (grub_diskfilter_vg): New struct.
11027 (grub_diskfilter_pv_id): Likewise.
11028 (grub_raid_member): Removed.
11029 (grub_raid_array): Likewise.
11030 (grub_diskfilter_pv): New struct.
11031 (grub_diskfilter_lv): Likewise.
11032 (grub_diskfilter_segment): Likewise.
11033 (grub_diskfilter_node): Likewise.
11034 (grub_diskfilter_get_vg_by_uuid): New proto.
11035 (grub_raid_register): Inline.
11036 (grub_diskfilter_unregister): Likewise.
11037 (grub_diskfilter_make_raid): New proto.
11038 (grub_diskfilter_vg_register): Likewise.
11039 (grub_diskfilter_read_node): Likewise.
11040 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
11041 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
11042 (grub_util_is_ldm): Likewise.
11043 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
11044 (grub_hostdisk_find_partition_start): Likewise.
11045 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
11046 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
11047 New definition.
11048 (grub_gpt_partition_map_iterate): New proto.
11049 * include/grub/lvm.h (grub_lvm_vg): Removed.
11050 (grub_lvm_pv): Likewise.
11051 (grub_lvm_lv): Likewise.
11052 (grub_lvm_segment): Likewise.
11053 (grub_lvm_node): Likewise.
11054 * util/getroot.c [...]
11055 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
11056 (probe_abstraction): Likewise.
11057 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
11058 (main): Remove dead logic.
11059
8a7f9b9c
VS
110602012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
11061
11062 Simplify root device discover and don't fail when trying to open
11063 incorrect devices.
11064
11065 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
11066 function.
11067 (get_diskname_from_path): Likewise.
11068 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
11069 of iterating.
11070
30545b85
VS
110712012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11072
11073 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
11074
28ea58cf
VS
110752012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11076
11077 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
11078 pastthe end.
11079
692dabca
VS
110802012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11081
11082 * util/grub-install.in: Add missing \.
11083 Reported by: gentoofan
11084
f6e4ea70
VS
110852012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11086
11087 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
11088 (direct_read): Use correct compressed size.
11089 (grub_squash_read_data): Likewise.
11090
110912012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
11092
11093 * docs/grub.texi (Platform limitations): New section.
11094 (Platform-specific operations): Likewise.
11095 * docs/grub-dev.texi (Porting): Likewise.
11096
76261110
VS
110972012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11098
11099 IEEE1275 disk write support.
11100
11101 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
11102 const void *.
11103 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
11104 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
11105 and seek loginc to ...
11106 (grub_ofdisk_prepare): ... here.
11107 (grub_ofdisk_write): Implement.
11108
fc36d603
VS
111092012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11110
11111 ARC disk write support.
11112
11113 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
11114 (reopen): New argument writable. All users updated.
11115 Handle required access mode.
11116 (grub_arcdisk_write): Implement.
11117 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
11118 (grub_arc_firmware_vector): Make buffer to write a const buffer.
11119
e06c2e7a
VS
111202012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11121
11122 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
11123 (read_sblock): Don't attempt to read superblocks outside the disk size.
11124
ff447958
VS
111252012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11126
11127 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
11128 first superblock to find the second one when possible.
11129
9e88df39
VS
111302012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11131
11132 * util/grub-install.in: Fix an ARC bug.
11133 Print a warning if no platform-specific setup is available.
11134
bb26e4ff
VS
111352012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11136
11137 Use static allocation rather than scratch pointer in reed_solomon.
11138 It decreases its size significantly and avoids a variable in .text.
11139
11140 * grub-core/lib/reed_solomon.c (scratch): Removed.
11141 (chosenstat): New const or static array.
11142 (sigma): Likewise.
11143 (errpot): Likewise.
11144 (errpos): Likewise.
11145 (sy): Likewise.
11146 (mstat): Likewise.
11147 (errvals): Likewise.
11148 (eqstat): Likewise.
11149 (pol_evaluate): Replace x with log_x argument. All users updated.
11150 (syndroms): Removed.
11151 (gauss_solve): Use statically allocated arrays.
11152 (rs_recover): Likewise.
11153 Calculate syndroms directly.
11154 (decode_block): Use statically allocated arrays.
11155 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
11156 (main) [TEST]: Allow -DTEST -DSTANDALONE.
11157
2e13ede5
VS
111582012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11159
11160 Eliminate fixed limit on reed solomon decoder length.
11161
11162 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
11163 rather than hardcoding the address.
11164 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
11165 no_reed_solomon_length.
11166 Move gate_a20 to no-reed-solomon part.
11167 Don't force a particular size of no reed-solomon part.
11168 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11169 Removed.
11170 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
11171 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
11172
f8a9ab12
VS
111732012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11174
11175 * grub-core/commands/wildcard.c (match_files): Handle filenames
11176 without explicit device.
11177 (wildcard_expand): Don't add explicit device if not already present.
11178 * tests/grub_script_echo1.in: Add a new expansion test.
11179
87edb894
VS
111802012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11181
11182 Replace single-linked with double-linked lists. It results in more
11183 compact and more efficient code.
11184
11185 * grub-core/kern/list.c (grub_list_push): Moved from here ...
11186 * include/grub/list.h (grub_list_push): ... to here. Set prev.
11187 (grub_list_remove): Moved from here ...
11188 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
11189 (grub_prio_list_insert): Set prev.
11190 * include/grub/list.h (grub_list): Add prev. All users updated.
11191
48b391e9
VS
111922012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11193
11194 Handle newer autotools. Add some missing quotes while on it.
11195
11196 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
11197 (pkglib_DATA): Move grub-mkconfig_lib from here ...
11198 (pkgdata_DATA): ... here.
11199 * Makefile.util.def (update-grub_lib): Removed.
11200 * conf/Makefile.common (pkglib_DATA): Removed.
11201 (pkglib_SCRIPTS): Likewise.
11202 (pkgdata_DATA): New variable.
11203 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
11204 needed.
11205 Add missing quotes.
11206 Remove unused variable while on it.
11207 * tests/util/grub-shell.in: Likewise.
11208 * util/grub-install.in: Likewise.
11209 * util/grub-mkconfig.in: Likewise.
11210 * util/grub-mknetdir.in: Likewise.
11211 * util/grub-mkrescue.in: Likewise.
11212 * util/grub-mkstandalone.in: Likewise.
11213 * util/grub.d/00_header.in: Likewise.
11214 * util/grub.d/10_hurd.in: Likewise.
11215 * util/grub.d/10_illumos.in: Likewise.
11216 * util/grub.d/10_kfreebsd.in: Likewise.
11217 * util/grub.d/10_linux.in: Likewise.
11218 * util/grub.d/10_netbsd.in: Likewise.
11219 * util/grub.d/10_windows.in: Likewise.
11220 * util/grub.d/20_linux_xen.in: Likewise.
11221 * util/grub.d/30_os-prober.in: Likewise.
11222 * util/update-grub_lib.in: Removed.
11223
112242012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
11225
11226 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
11227 a workaround for intel problem.
11228
66832792
PRP
112292012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
112302012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
112312012-01-23 pfsmorigo
11232
11233 * util/grub-install.in: Support dd'in into PreP partition.
11234 * util/grub-probe.c (probe): Support discovering partition type.
11235 (main): Support -t msdos_parttype.
11236
7816a17e
VS
112372012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
11240 infinite recursion using counter.
11241 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
11242 init to skip it if the magic check fails.
11243 (dec_stream_header): Init s->crc32.
11244
8f9d3a8c
ZB
112452012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
112462012-01-22 Zachary Bedell <pendorbound@gmail.com>
112472012-01-22 Richard Laager <rlaager@wiktel.com>
11248
11249 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
11250 All users updated.
11251 (find_bestub): Determine correct size.
11252 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
11253 (scan_disk): Align the size down.
11254 Call check pool before find_bestub to have ashift.
11255
b055dd32
VS
112562012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
11259 dprintf in no-malloc zone.
11260
d779e9bd
ML
112612012-01-22 Mario Limonciello <mario_limonciello@dell.com>
11262
11263 * configure.ac: Add back in test for limits.h.
11264
b508af69
VS
112652012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11266
11267 Support 4K-sector NTFS.
11268
11269 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
11270 (grub_ntfs_data): Remove blocksize.
11271 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
11272 Remove data argument. All users updated.
11273
dad9c8b5
VS
112742012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11275
11276 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
11277 being in .text to avoid dprel references.
11278 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
11279 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
11280 (grub_arch_highmemsize): Likewise.
11281 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
11282 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
11283 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
11284
d43a777e
VS
112852012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11286
11287 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
11288
11289 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
11290 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
11291
34e4208f
VS
112922012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11293
11294 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
11295 GRUB_UTIL.
11296 (grub_set_datetime_cmos): Likewise.
11297
3ec0fc1c
VS
112982012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11299
11300 Make XZ compression parameters dependent on target and not host CPU.
11301
11302 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
11303 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
11304
22489834
VS
113052012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11306
11307 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
11308 set but not used variable.
11309
8502fbca
VS
113102012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11311
11312 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
11313 created when no uuid support is compiled into mkfs.reiser.
11314
76df2068
VS
113152012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11316
11317 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
11318 (utf8_to_macroman): Do the opposite.
11319 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
11320
64e3f8f6
VS
113212012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 * configure.ac: Refise build qemu_mips w/o unifont.
11324
9c271078
VS
113252012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11326
11327 Eliminate grub_min/grub_max prone to overflow usage.
11328
11329 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
11330 (poll_nonroot_hub): Likewise.
11331 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
11332 (grub_affs_label): Likewise.
11333 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
11334 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
11335 (grub_hfs_label): Likewise.
11336 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
11337 * grub-core/fs/zfs/zfs.c (MIN): Remove.
11338 (zap_leaf_array_equal): Use grub_size. Remove MIN.
11339 (zap_leaf_array_get): Likewise.
11340 (dnode_get_path): Likewise.
11341 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
11342 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
11343 * grub-core/script/execute.c (grub_script_break): Likewise.
11344 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
11345 grub_max.
11346 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
11347 * include/grub/misc.h (grub_min): Removed.
11348 (grub_max): Likewise.
11349
80662dbc
VS
113502012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11351
11352 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
11353 direct.inode = 0.
11354
e6da1467
VS
113552012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11356
11357 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
11358
b1ac4cb1
VS
113592012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11360
11361 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
11362
b4bf7c3b
VS
113632012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
11366 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
11367
8ee1101a
VS
113682012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11369
11370 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
11371 rather than a hack for grub_strncasemap.
11372
113732012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11374
11375 Support multiple initrds
11376 Note: part of this was accidently committed in r3739.
11377
11378 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
11379 initrd.
11380 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11381 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11382 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11383 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11384 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11385
4d1e2bc9
VS
113862012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11387
11388 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
11389 disks with unknown size.
11390 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
11391
75b49ebe
VS
113922012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11393
11394 Remove defines pertaining to arbitrary limits not affecting GRUB
11395 anymore.
11396
11397 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
11398 (EXT2_MAX_SYMLINKCNT): Likewise.
11399 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
11400 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
11401 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
11402 (GRUB_PXE_MAX_BLKSIZE): Likewise.
11403 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
11404 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
11405 (DN_MAX_OBJECT_SHIFT): Likewise.
11406 (DN_MAX_OFFSET_SHIFT): Likewise.
11407 (DN_MAX_OBJECT): Likewise.
11408 (DNODES_PER_LEVEL_SHIFT): Likewise.
11409 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
11410 (SPA_MAXBLOCKSIZE): Likewise.
11411 (SPA_BLOCKSIZES): Likewise.
11412 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
11413 (MZAP_MAX_BLKSZ): Likewise.
11414
74a1dce7
VS
114152012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11416
11417 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
11418 handle NULL appropriately.
11419 Remove MIN.
11420
30c7d3ce
VS
114212012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11422
11423 Fix efiemu.
11424
11425 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
11426 cpu/types.h.
11427 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
11428 * configure.ac: Fix efiemu check.
11429
3c76ea0c
VS
114302012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11431
11432 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
11433 grub_probe.
11434 Reported by: adamwill
11435
7e532280
SG
114362012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
11437
11438 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
11439
30492374
VS
114402012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11441
11442 Fix handling of wide characters in gfxterm.
11443
11444 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
11445 (clear_char): Likewise.
11446 (paint_char): Skip code == NULL chars.
11447 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
11448
e70cb72f
VS
114492012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11450
11451 * grub-core/normal/charset.c: Move comment to right place.
11452
5c827cf9
VS
114532012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11454
11455 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
11456 (GRUB_AFFS_FLAG_FFS): Put back where it was.
11457 (grub_affs_mount): Revert the correct version checking.
11458
53603892
VS
114592012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11460
11461 * docs/grub.texi (Unicode): Mention several other unsupported features.
11462
ff094b9b
VS
114632011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
11466 case statements as compile-time one.
11467 (direct_read): Prevent spurious warnings.
11468 (grub_squash_read_data): Likewise.
11469
c029da8a
VS
114702011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11471
11472 Various squash4 fixes and LZO and XZ support.
11473
11474 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
11475 Add xzembed source files.
11476 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
11477 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
11478 (grub_squash_inode): New subtype long_dir.
11479 (SQUASH_TYPE_LONG_DIR): New inode type.
11480 (COMPRESSION): New enum.
11481 (XZBUFSIZ): New const.
11482 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
11483 (read_chunk): Use data->decompress.
11484 (zlib_decompress): New function.
11485 (lzo_decompress): Likewise.
11486 (xz_decompress): Likewise.
11487 (squash_mount): Set new data fields.
11488 (grub_squash_iterate_dir): Handle long dir.
11489 (squash_unmount): Free xzdec and xzbuf.
11490 (grub_squash_open): Check ino type.
11491 (direct_read): Stylistic fixes. Use data->decompress.
11492 (grub_squash_read_data): Likewise.
11493 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
11494 (get_byte): Likewise.
11495 (grub_zlib_disk_read): Removed.
11496 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
11497 (GRUB_POSIX_BOOL_DEFINED): New define.
11498 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
11499 * grub-core/lib/xzembed/xz.h: Addmissing includes.
11500 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
11501 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
11502
7a45a539
VS
115032011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11504
11505 Don't override more informative errors.
11506
11507 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
11508 * grub-core/font/font.c (open_section): Likewise.
11509 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
11510 filename. Don't override errors.
11511 (grub_cmd_openbsd_ramdisk): Don't override errors.
11512 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
11513 (grub_cmd_initrd): Likewise.
11514 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11515 (grub_cmd_initrd): Likewise.
11516 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
11517 (grub_cmd_linux): Likewise.
11518 (grub_cmd_initrd): Likewise.
11519 (grub_cmd_payload): Likewise.
11520 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11521 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
11522 (grub_cmd_module): Likewise.
11523 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11524 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11525 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
11526 (grub_cmd_xnu_mkext): Likewise.
11527 (grub_cmd_xnu_ramdisk): Likewise.
11528 (grub_xnu_check_os_bundle_required): Likewise.
11529 (grub_xnu_load_kext_from_dir): Likewise.
11530 (grub_cmd_xnu_kextdir): Likewise.
11531 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
11532
b2d004db
VS
115332011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11534
11535 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
11536 as 1024 in block size field. Found on one of my test images.
11537 Small optimisation while on it.
11538
ec000eac
VS
115392011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11540
11541 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
11542 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
11543 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
11544 performance fixes while on it.
11545 (grub_sfs_close): Fix memory leak while on it.
11546 (grub_sfs_label): Convert Latin1 to UTF-8.
11547
f50e1165
VS
115482011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11549
11550 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
11551 space to avoid overflows.
11552 (grub_hfs_label): Convert from macroman to UTF-8.
11553
2ae254de
VS
115542011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11555
11556 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
11557
0108f491
VS
115582011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11559
11560 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
11561
f45f5f89
VS
115622011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11563
11564 * unicode: Import Unicode 6.0 data.
11565
4d8c4765
VS
115662011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11567
63fa8ef9
VS
11568 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
11569 outside of range.
11570
115712011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11572
11573 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
11574
11575 * include/grub/charset.h (grub_getend): New function.
11576 * grub-core/script/function.c (grub_script_function_find): Use
11577 grub_getend.
11578 * grub-core/normal/completion.c (add_completion): Likewise.
11579
f3cb4a4e
VS
115802011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
11583 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
11584 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
11585 (GRUB_UNICODE_TAG_END): Likewise.
11586 (GRUB_UNICODE_LAST_VALID): Likewise.
11587
5da8dbc5
VS
115882011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11589
11590 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
11591 len and make it smaller. All users updated.
11592 * util/import_unicode.py: Put length and not end character.
11593 Check length.
11594
8569f13d
VS
115952011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11596
11597 Make better Unicode-compliant and unify some UTF-8 code pathes.
11598
11599 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
11600 valid character.
11601 (grub_is_valid_utf8): Use grub_utf8_process.
11602 Check resulting code range.
11603 (grub_utf8_to_ucs4): Use grub_utf8_process.
11604 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
11605 valid character.
11606
cc4fddf5
VS
116072011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11608
11609 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
11610
bbc47747
VS
116112011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11612
11613 * docs/grub.texi (Filesystems): Mention AFS.
11614
f63d6bf4
VS
116152011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11616
11617 * docs/grub.texi (Filesystems): Clarify restrictions.
11618 (Regexp): Mention non-Unicode regexp behaviour.
11619 (Other): Mention non-Unicode matching behaviour.
11620
74bbf0db
VS
116212011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11622
f63d6bf4 11623 Make HFS implementation use MacRoman.
74bbf0db
VS
11624
11625 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
11626 (macroman): New const array.
11627 (macroman_to_utf8): New function.
11628 (utf8_to_macroman): Likewise.
11629 (grub_hfs_find_dir): Use utf8_to_macroman.
11630 (grub_hfs_dir): Use macroman_to_utf8.
11631 Set case_insensitive.
11632
4ea0316e
VS
116332011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11634
11635 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
11636
d3c13cbd
VS
116372011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11638
11639 Integrate hints into autogeneration scripts.
11640
11641 * docs/grub.texi (Filesystems): Add a hostdisk example.
11642 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
11643 (grub-probe): Add ofpath.
11644 * gentpl.py: Remove group nosparc64.
11645 * grub-core/commands/search.c (cache_entry): New struct.
11646 (cache): New var.
11647 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
11648 * grub-core/commands/search_wrap.c (options): Add platform-specific
11649 hint options.
11650 (grub_cmd_search): Handle platform-specific hints.
11651 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
11652 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
11653 (grub_util_biosdisk_data): Likewise.
11654 (grub_util_biosdisk_open): Set device_map.
11655 (read_device_map): Handle "" as indication of no map.
11656 Set device_map.
11657 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
11658 (grub_util_biosdisk_get_compatibility_hint): New function.
11659 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
11660 * include/grub/emu/hostdisk.h
11661 (grub_util_biosdisk_get_compatibility_hint): New proto.
11662 * util/grub-install.in: Don't call grub-mkdevicemap.
11663 Add platform-specific hint to load.cfg.
11664 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
11665 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
11666 hints. Set root preliminary to compatibility hint, not to OS name.
11667 * util/grub-probe.c (PRINT_*): Add hints.
11668 (print): Make static.
11669 (escape_of_path): New function.
11670 (guess_bios_drive): Likewise.
11671 (guess_efi_drive): Likewise.
11672 (guess_baremetal_drive): Likewise.
11673 (print_full_name): Likewise.
11674 (probe): Handle hints.
11675 (main): Likewise.
11676 * util/ieee1275/devicemap.c: Removed.
11677 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
11678 updated.
11679 (grub_util_devname_to_ofpath): Return NULL on failure.
11680
11681 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
11682 resource leak.
11683 * util/getroot.c (grub_util_pull_device): Fix memory leak.
11684
11685 * po/POTFILES.in: Regenerated.
11686
11687 Allow purely long options
11688
11689 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
11690 (SHORT_ARG_USAGE): Likewise.
11691 (grub_arg_show_help): Compare opt with help_options.
11692 (parse_option): Receive opt as argument. If makes big simplificatons.
11693 All users updated
11694
00ce2df3
VS
116952011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11696
11697 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
11698 Restructure to avoid warning.
11699
e77e325f
VS
117002011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11701
11702 * util/grub-install.in: Account for possible escaped comma in device
11703 name.
11704
165099ea
VS
117052011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11706
11707 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
11708 channel.
11709
ce4a999d
VS
117102011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
11713 allocation and zero-setting.
11714 (grub_ieee1275_get_devname): Check that alias is complete.
11715
379586ad
VS
117162011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11717
11718 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
11719 unaligned segments.
11720
9197b0ad
VS
117212011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
11722
11723 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
11724 prefix.
11725 (grub_ofdisk_open): Check and discard ieee1275 prefix.
11726 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11727 Add ieee1275 prefix.
11728
edddb7f9
VS
117292011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11730
11731 * docs/grub.texi (Filesystems): Update.
11732
a1a8b1b9
VS
117332011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11734
11735 Support odc, newc and bigendian cpio formats.
11736
11737 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
11738 * grub-core/Makefile.core.def (newc): New module.
11739 (odc): Likewise.
11740 (cpio_be): Likewise.
11741 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
11742 (MAGIC): Likewise.
11743 (MAGIC2): Likewise.
11744 (head) [MODE_ODC]: Adapt for the format.
11745 (head) [MODE_NEWC]: Likewise.
11746 (head) [!MODE_*]: Write fields of interest as arrays.
11747 (MAGIC_USTAR): Removed.
11748 (read_number) [MODE_NEWC]: Change to hex.
11749 (read_number) [!MODE_*]: Parse binary arrays.
11750 (grub_cpio_find_file): Factor out the code for better structure and
11751 always use read_number.
11752 (grub_cpio_mount): Use MAGIC and MAGIC2.
11753 (grub_cpio_dir): Exit on first hook non-0 return.
11754 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
11755 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
11756 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
11757 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
11758 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
11759 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
11760 * grub-core/fs/newc.c: New file.
11761 * grub-core/fs/odc.c: Likewise.
11762 * grub-core/fs/cpio_be.c: Likewise.
11763
58eba9ee
VS
117642011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11765
11766 Fix handling of tar numbers occupying the whole field.
11767
11768 * grub-core/fs/cpio.c (read_number): New function.
11769 (grub_cpio_find_file): Use read_number instead of strtoull.
11770
a54a0e12
VS
117712011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11772
11773 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
11774 occupying the whole field size.
11775
a6120aca
LA
117762011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
11777
11778 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
11779
a93964ce
VS
117802011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11781
11782 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
11783
3ea1ca46
SG
117842011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
11785
11786 * grub-core/Makefile.core.def (lzma_decompress): Add missing
11787 TARGET_IMG_LDFLAGS.
11788
b87f7ef2
VS
117892011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11790
11791 * util/getroot.c (ESCAPED_PATH_MAX): New define.
11792 (mountinfo_entry): Increase the field size to take escaping into
11793 account.
11794 (find_root_device_from_libzfs): Add one byte to size of strings for
11795 security.
11796
62092395
VS
117972011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11798
11799 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
11800 an assert.
11801 * util/grub-setup.c (setup): Likewise.
11802
1f0b1a77
VS
118032011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11804
11805 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
11806 _LzmaDecodeA.
11807
8eba9997
VS
118082011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11809
11810 * docs/grub.texi (Internationalisation): New section.
11811
dd0c91e9
VS
118122011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11813
11814 * docs/grub.texi (Loopback booting): New section.
11815
118162011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
11817
11818 * util/grub-mkstandalone.in: Fix minor typo errors.
11819
198e150a
VS
118202011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11821
11822 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
11823
11824 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
11825 net/icmp.c and net/icmp6.c.
11826 (http): New module.
11827 (priority_queue): Likewise.
11828 * grub-core/io/bufio.c: Rewritten.
11829 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
11830 TYPE_WITH_CONFIGFILE_OPTION.
11831 (legacy_commands): Add bootp and dhcp.
11832 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
11833 (grub_legacy_parse): Likewise.
11834 * grub-core/lib/priority_queue.c: New file.
11835 * grub-core/net/arp.c: Add missing license header.
11836 (arp_find_entry): Removed.
11837 (arp_find_entry): Likewise.
11838 (grub_net_arp_resolve): Rename to ...
11839 (grub_net_arp_send_request): ...this.
11840 (grub_net_arp_receive): New card argument.
11841 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
11842 Set router and DNS server.
11843 (grub_net_configure_by_dhcp_ack): Handle routing information.
11844 (grub_cmd_bootp): Set checksum.
11845 (grub_bootp_init): Remove net_dhcp.
11846 * grub-core/net/dns.c: New file.
11847 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
11848 completion.
11849 (get_card_packet): Handle allocation.
11850 (grub_efinet_findcards): Set mtu.
11851 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
11852 (get_card_packet): Handle allocation.
11853 (emucard): Set mtu.
11854 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
11855 (GRUB_MOD_INIT): Set mtu.
11856 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
11857 mtu.
11858 (get_card_packet): Handle allocation.
11859 (grub_ofnet_findcards): Set mtu.
11860 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
11861 assert.
11862 (grub_net_recv_ethernet_packet): Handle IPv6.
11863 * grub-core/net/http.c: New file.
11864 * grub-core/net/icmp.c: Likewise.
11865 * grub-core/net/icmp6.c: Likewise.
11866 * grub-core/net/ip.c (ip6addr): New type.
11867 (ip6hdr): Likewise.
11868 (reassemble): Likewise.
11869 (cmp): New function.
11870 (reassembles): New variable.
11871 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
11872 (id): New variable.
11873 (send_fragmented): New function.
11874 (grub_net_send_ip_packet): Rename to ...
11875 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
11876 Handle non-UDP.
11877 (grub_net_recv_ip_packets): Rename to ...
11878 (handle_dgram): ... this. Check checksum. Handle non-UDP.
11879 (free_rsm): New function.
11880 (free_old_fragments): Likewise.
11881 (grub_net_recv_ip4_packets): New function.
11882 (grub_net_send_ip6_packet): Likewise.
11883 (grub_net_send_ip_packet): Likewise.
11884 (grub_net_recv_ip6_packets): Likewise.
11885 (grub_net_recv_ip_packets): Likewise.
11886 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
11887 (LINK_LAYER_CACHE_SIZE): New const.
11888 (link_layer_find_entry): New function.
11889 (grub_net_link_layer_add_address): Likewise.
11890 (grub_net_link_layer_resolve_check): Likewise.
11891 (grub_net_link_layer_resolve): Likewise.
11892 (grub_net_ipv6_get_slaac): Likewise.
11893 (grub_net_ipv6_get_link_local): Likewise.
11894 (grub_cmd_ipv6_autoconf): Likewise.
11895 (parse_ip): Handle one number representation.
11896 (parse_ip6): New functoion.
11897 (match_net): Handle IPv6.
11898 (grub_net_resolve_address): Handle IPv6 and DNS.
11899 (grub_net_resolve_net_address): Handle IPv6.
11900 (route_cmp): New function.
11901 (grub_net_route_address): Find best route.
11902 (grub_net_addr_to_str): Handle IPv6.
11903 (grub_net_addr_cmp): New function.
11904 (grub_net_add_addr): Register local route.
11905 (print_net_address): Handle net address.
11906 (grub_net_poll_cards): Retransmit TCP.
11907 (grub_net_poll_cards_idle_real): Likewise.
11908 (have_ahead): New function.
11909 (grub_net_seek_real): Use underlying seek.
11910 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
11911 * grub-core/net/tcp.c: New file.
11912 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
11913 (cmp): New function.
11914 (ack): Likewise.
11915 (tftp_receive): Handle unordered input.
11916 (destroy_pq): New function.
11917 (tftp_close): Close pq.
11918 * grub-core/net/udp.c: Put missing license header.
11919 (grub_net_udp_socket): New function.
11920 (udp_socket_register): Likewise.
11921 (grub_net_udp_close): Likewise.
11922 (grub_net_recv_udp_packet): Check checksum.
11923 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
11924 * include/grub/misc.h (grub_memchr): New function.
11925 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
11926 (grub_net_card_driver): Return buf in recv.
11927 (grub_net_slaac_mac_list): New struct.
11928 (grub_network_level_protocol_id): Add ipv6.
11929 (grub_net_network_level_addr): Likewise.
11930 (grub_net_network_level_net_addr): Likewise.
11931 (grub_net_app_protocol): Add seek.
11932 (grub_net_socket): Removed.
11933 (grub_net_sockets): Likewise.
11934 (grub_net_socket_register): Likewise.
11935 (grub_net_socket_unregister): Likewise.
11936 (FOR_NET_SOCKETS): Likewise.
11937 (grub_net_add_addr): Add const.
11938 (GRUB_NET_BOOTP_*): New enum.
11939 (grub_net_addr_cmp): New proto.
11940 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
11941 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
11942 (grub_net_hwaddr_to_str): NEw proto.
11943 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
11944 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
11945 (grub_dns_init): New proto.
11946 (grub_dns_fini): Likewise.
11947 (grub_net_tcp_retransmit): Likewise.
11948 (grub_net_link_layer_add_address): Likewise.
11949 (grub_net_link_layer_resolve_check): Likewise.
11950 (grub_net_link_layer_resolve): Likewise.
11951 (grub_net_dns_lookup): Likewise.
11952 (grub_net_add_dns_server): Likewise.
11953 (grub_net_remove_dns_server): Likewise.
11954 (GRUB_NET_TRIES): New const.
11955 (GRUB_NET_INTERVAL): Likewise.
11956 * include/grub/net/arp.h: Mostly rewritten.
11957 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
11958 * include/grub/net/ip.h: Mostly rewritten.
11959 * include/grub/net/netbuff.h: Indent.
11960 * include/grub/net/tcp.h: New file.
11961 * include/grub/net/udp.h: Mostly rewritten.
11962 * include/grub/priority_queue.h: New file.
11963 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
11964 (grub_swap_bytes64_compile_time): Likewise.
11965 (grub_cpu_to_be16_compile_time): Likewise.
11966 (grub_cpu_to_be32_compile_time): Likewise.
11967 (grub_cpu_to_be64_compile_time): Likewise.
11968 (grub_be_to_cpu64_compile_time): Likewise.
11969
215c1800
VS
119702011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
11971
11972 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
11973 UINT_TO_PTR with cast.
11974
c17e546c
VS
119752011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11976
11977 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
11978 don't use them.
11979
ff6b18b6
VS
119802011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11981
11982 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
11983 already there.
11984
70ffcc93
VS
119852011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11986
11987 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
11988 confusing ipxe.
11989
e5f4d260
VS
119902011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
11991
11992 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
11993 Add missing const attribute.
11994 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
11995 Likewise.
11996 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
11997 Likewise.
11998
8e54b4b7
VS
119992011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12000
12001 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
12002 misaligned access.
12003 (serpent_setkey): Likewise.
12004 (serpent_encrypt_internal): Likewise.
12005 (serpent_decrypt_internal): Likewise.
12006 (serpent_encrypt): Don't put an alignment-increasing cast.
12007 (serpent_decrypt): Likewise.
12008 (serpent_test): Likewise.
12009
813c0a2b
VS
120102011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12011
12012 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
12013
f2b60fbd
VS
120142011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12015
12016 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
12017
12018 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
12019 grub_addr_t casts.
12020 (PTR_TO_UINT64): Likewise.
12021 (PTR_TO_UINT32): Likewise.
12022
5ef5c511
VS
120232011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12024
12025 * util/grub-mkimage.c (generate_image): Decrease the higher limit
12026 because of stack.
12027 * util/grub-setup.c (setup): Don't add redundancy past the higher load
12028 limit.
12029
c476e6df
VS
120302011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
12033 text_width > available width a bit more gracefully.
12034
384ad7cc
VS
120352011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
12038 current address calculation.
12039
96f8caf8
VS
120402011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12041
12042 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
12043 stack.
12044 (encode_block): Likewise.
12045
276b7a8b
VS
120462011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12047
12048 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
12049 certainety.
12050
e3fd394a
VS
120512011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12052
12053 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
12054 non-RS part to avoid RS messing with GDT.
12055 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
12056 Increase to suit in realmode routines.
12057
120582011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12059
12060 * grub-core/kern/i386/realmode.S: Increase alignment.
12061 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
12062
ee9c2e7a
VS
120632011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
12066 be deterministic.
12067 (syndroms): Compute 0 syndrom.
12068 (rs_recover): Use 0 syndrom.
12069
7a7f7cc9
VS
120702011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12071
12072 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
12073
a14b16d1
VS
120742011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
12077 brackets.
12078
9f59e9fc
VS
120792011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12080
ca1b552c
VS
12081 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
12082 account.
12083 (get_top_pad): Likewise.
12084 (get_right_pad): Likewise.
12085 (get_bottom_pad): Likewise.
12086
120872011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12088
12089 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 12090
e739d698
VS
120912011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12092
12093 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
12094 attribute as the structure isn't guaranteed to be properly aligned.
12095 (grub_efi_pci_device_path): Likewise.
12096 (grub_efi_pccard_device_path): Likewise.
12097 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
12098 specify the size of `memory_type'.
12099 (grub_efi_vendor_device_path): Likewise.
12100 (grub_efi_controller_device_path): Likewise.
12101 (grub_efi_acpi_device_path): Likewise.
12102 (grub_efi_expanded_acpi_device_path): Likewise.
12103 (grub_efi_atapi_device_path): Likewise.
12104 (grub_efi_scsi_device_path): Likewise.
12105 (grub_efi_fibre_channel_device_path): Likewise.
12106 (grub_efi_1394_device_path): Likewise.
12107 (grub_efi_usb_device_path): Likewise.
12108 (grub_efi_usb_class_device_path): Likewise.
12109 (grub_efi_i2o_device_path): Likewise.
12110 (grub_efi_mac_address_device_path): Likewise.
12111 (grub_efi_ipv4_device_path): Likewise.
12112 (grub_efi_ipv6_device_path): Likewise.
12113 (grub_efi_infiniband_device_path): Likewise.
12114 (grub_efi_uart_device_path): Likewise.
12115 (grub_efi_vendor_messaging_device_path): Likewise.
12116 (grub_efi_hard_drive_device_path): Likewise.
12117 (grub_efi_cdrom_device_path): Likewise.
12118 (grub_efi_vendor_media_device_path): Likewise.
12119 (grub_efi_file_path_device_path): Likewise.
12120 (grub_efi_protocol_device_path): Likewise.
12121 (grub_efi_piwg_device_path): Likewise.
12122 (grub_efi_bios_device_path): Likewise.
12123
cb8f88ea
VS
121242011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12125
12126 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
12127 (grub_ucs4_to_utf8_alloc): Likewise.
12128 (grub_ucs4_to_utf8): Likewise.
12129 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
12130 (grub_ucs4_to_utf8_alloc): Likewise.
12131
309e5352
VS
121322011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12133
12134 AFFS never uses unicode.
12135
12136 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
12137 (grub_latin1_to_utf8): New inline function.
12138 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
12139
e7987e1b
VS
121402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12141
12142 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
12143 overflow.
12144
efc2616e
VS
121452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12146
12147 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
12148 (grub_squash_dirent_header): Likewise.
12149 (read_chunk): Don't double swap.
12150 (grub_squash_iterate_dir): Fix swap sizes.
12151
3c349f5a
VS
121522011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12153
12154 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
12155
b453412d
VS
121562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12157
12158 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
12159 (grub_hfs_iterate_dir): Likewise.
12160
12e9d4d1
VS
121612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12162
12163 Fix video on platforms where unaligned access is forbidden.
12164 Make several optimisations while on it.
12165
12166 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
12167 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12168 (grub_video_fbblit_replace_32bit_1bit): Likewise.
12169 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12170 Disable.
12171 (grub_video_fbblit_replace_16bit_1bit):
12172 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12173 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12174 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
12175 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
12176 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12177 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12178 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
12179 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
12180 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
12181 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
12182 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
12183 (grub_video_fbblit_replace_index_RGB888): Likewise.
12184 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
12185 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
12186 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
12187 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
12188 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
12189 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12190 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12191 Disable.
12192 (grub_video_fbblit_blend_XXX565_1bit):
12193 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12194 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
12195 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
12196 void *.
12197 * grub-core/video/fb/video_fb.c (common_blitter)
12198 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
12199 (grub_video_fb_create_render_target_from_pointer)
12200 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12201 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
12202 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
12203 definition.
12204 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
12205
ace96609
VS
122062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12207
12208 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
12209 HH22 and HM10 relocations.
12210
fd261d73
VS
122112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12212
12213 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
12214
e59b7857
VS
122152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12216
12217 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
12218 allocation succeeded.
12219
9b4baaa4
VS
122202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12221
12222 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
12223 argument a u8 pointer. All users updated.
12224 Handle unaligned buffers.
12225
dc713193
VS
122262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12227
12228 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
12229 add_part to workaround compiler bug.
12230
30dd48c2
VS
122312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12232
12233 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
12234
0c6087a8
VS
122352011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12236
12237 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
12238 Reserve alignment invariants.
12239 (grub_multiboot_load): Likewise.
12240 (retrieve_video_parameters): Likewise.
12241 (grub_multiboot_make_mbi): Likewise.
12242
c2e77777
VS
122432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12244
12245 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
12246 incorrect pointer.
12247
b70b6d11
VS
122482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12249
12250 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
12251 (grub_pata_pio_write): Likewise.
12252
02a2bf83
VS
122532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12254
12255 Add noreturn attributes and remove unreachable code.
12256
12257 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
12258 code.
12259 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
12260 code. Mark as noreturn.
12261 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
12262 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
12263 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
12264 unreachable code.
12265 * grub-core/kern/main.c (grub_main): Mark as noreturn.
12266 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
12267 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
12268 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
12269 * include/grub/kernel.h (grub_main): Mark as noreturn.
12270 * include/grub/reader.h (grub_rescue_run): Likewise.
12271
2019d09e
VS
122722011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12273
12274 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
12275 redundant declaration.
12276
d1c501ee
VS
122772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12278
12279 * include/grub/net.h (grub_net_network_level_interfaces): Remove
12280 redundant declaration.
12281 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
12282
61664420
VS
122832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12284
12285 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
12286 to ensure alignment.
12287 (grub_hdparm_print_identify): Make argument uint16 * to ensure
12288 alignment. Ensure tmp alignment.
12289 (grub_cmd_hdparm): Ensure buf alignment.
12290 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
12291 to ensure alignment.
12292 (grub_ata_dumpinfo): Ensure text alignment.
12293 (grub_atapi_identify): Preserve alignment invariant.
12294 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
12295
0d51ee20
VS
122962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12297
12298 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
12299 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
12300 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
12301 * include/grub/misc.h (grub_reboot)
12302 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
12303 (grub_halt) [__mips__]: Likewise.
12304
753ef8c1
VS
123052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12306
12307 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
12308 Remove redundant declaration.
12309 (grub_mmap_get_post64): Likewise.
12310 (grub_mmap_get_upper): Likewise.
12311 (grub_mmap_get_lower): Likewise.
12312
85c85365
VS
123132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12314
12315 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
12316 uint32_t * to ensure alignment.
12317 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
12318
a23f2cc4
VS
123192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12320
93018f64
VS
12321 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
12322 uint16_t * to ensure alignment.
12323 (sun_pc_partition_map_iterate): Make `block' a union to ensure
12324 alignment.
12325
123262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12327
12328 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
12329 to ensure alignment.
12330 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
12331
58acccd6
VS
123322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12333
12334 * grub-core/fs/ntfs.c (u16at): Make into inline function.
12335 Handle unaligned pointers.
12336 (u32at): Likewise.
12337 (u64at): Likewise.
12338 (fixup): Use byte access instead of v16at.
12339 (find_attr): Fix imporper usage of v32at.
12340 (read_data): Likewise.
12341 (list_file): Handle byte-swapping and unaligned strings.
12342 (grub_ntfs_label): Likewise.
12343
9b05cad7
VS
123442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12345
12346 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
12347 as it's not necessarily aligned.
12348
b3950b84
VS
123492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12350
12351 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
12352 redundant declaration.
12353 (grub_serial_init): Likewise.
12354 (grub_terminfo_init): Likewise.
12355
fcd232b7
VS
123562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12357
12358 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
12359 function.
12360 (ZAP_HASH_IDX): Likewise.
12361 (ZAP_LEAF_HASH_SHIFT): Likewise.
12362 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
12363 (LEAF_HASH): Likewise.
12364 (ZAP_LEAF_NUMCHUNKS): Likewise.
12365 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
12366 alignment invariants. Return pointer. All users updated.
12367 (ZAP_LEAF_ENTRY): Make into inline function.
12368 (NBBY): Removed.
12369 (xor): LIkewise.
12370 (xor_out): Use grub_crypto_xor.
12371 (dnode_get_path): Use grub_get_unaligned.
12372 (nvlist_find_value): Likewise.
12373 (grub_zfs_nvlist_lookup_uint64): Likewise.
12374 (grub_zfs_nvlist_lookup_string): Likewise.
12375 (get_nvlist_size): Likewise.
12376 (grub_zfs_open): Likewise.
12377 (fill_fs_info): Likewise.
12378 (grub_zfs_dir): Likewise.
12379 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
12380 alignment invariants.
12381 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
12382 necessarily aligned.
12383
f138623a
VS
123842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12385
12386 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
12387
564840dc
VS
123882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12389
12390 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
12391 arithmetic to conserve alignment invariants.
12392
9b40df20
VS
123932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12394
12395 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
12396 redundant declaration.
12397 (grub_efiemu_mm_obtain_request): Likewise.
12398 (grub_efiemu_prepare): Likewise.
12399
d1c930f9
VS
124002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12401
12402 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
12403 to match types.
12404
4c5f3056
VS
124052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12406
12407 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
12408 case of aunaligned recptr.
12409 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
12410 alignment.
12411 (grub_hfsplus_btree_search): Handle unaligned index.
12412
728cba91
VS
124132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12414
12415 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
12416 to get freetag and skip.
12417
eb561f31
VS
124182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12419
12420 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
12421 array.
12422 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
12423 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
12424
20993fbb
VS
124252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12426
12427 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
12428 name for checksum and fix allocation algorithm.
12429
1f313b94
VS
124302011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12431
12432 * include/grub/types.h (grub_properly_aligned_t): New type.
12433 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
12434 (grub_get_unaligned16): Add explicit casts.
12435 (grub_get_unaligned32): Likewise.
12436 (grub_get_unaligned64): Likewise.
12437 (grub_set_unaligned16): New function.
12438 (grub_set_unaligned32): Likewise.
12439
47ae27ec
VS
124402011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12441
12442 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12443
78c2cd1c
VS
124442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12445
12446 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
12447 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
12448 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
12449
53072f9b
VS
124502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12451
12452 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
12453 conditionals.
12454
055dc239
VS
124552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12456
12457 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
12458 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
12459
496bd074
VS
124602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12461
12462 Unify and improve RAID and crypto xor.
12463
12464 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
12465 changed to grub_crypto_xor
12466 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
12467 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
12468 Use bigger types when possible.
12469
ef6e4335
VS
124702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12471
12472 * grub-core/disk/raid.c (scan_devices): Fix condition.
12473
5d048bf2
VS
124742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12475
12476 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
12477 Make name a const ptr.
12478
ee533335
VS
124792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12480
12481 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
12482 first argument a const pointer.
12483 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12484 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
12485 proto.
12486 (grub_children_iterate): Likewise.
12487 (grub_machine_mmap_iterate): Remove redundant declaration.
12488
cc8f3668
VS
124892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12490
12491 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
12492 (grub_cmd_acpi) [!x86]: Disable EBDA.
12493
c5fc563a
VS
124942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12495
12496 Enable UTF8 in gnulib regexp.
12497
12498 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
12499 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
12500 (isupper): Use grub_isupper.
12501 (isascii): New inline function.
12502 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
12503 * grub-core/lib/posix_wrap/wctype.h: Likewise.
12504 * grub-core/normal/charset.c (grub_utf8_process): New function.
12505 (grub_utf8_to_utf16): Use grub_utf8_process.
12506 (grub_encode_utf8_character): New function.
12507 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
12508 * include/grub/charset.h (grub_utf8_process): New declaration.
12509 (grub_encode_utf8_character): Likewise.
12510 * include/grub/misc.h (grub_islower): New inline function.
12511 (grub_isupper): Likewise.
12512 (grub_strchrsub): Moved down to fix the definitions.
12513
0af2346f
VS
125142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12515
12516 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
12517 specification.
12518
74dbd244
VS
125192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12520
12521 * include/grub/loader.h (grub_loader_register_preboot_hook):
12522 Use struct preboot * and not void * for handle. All users updated.
12523 (grub_loader_unregister_preboot_hook): Likewise.
12524
1bc8f60d
VS
125252011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12526
12527 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
12528 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
12529 UTF-16-BE. All users updated.
12530 (grub_hfsplus_cmp_catkey): Fix unicode handling.
12531 (grub_hfsplus_iterate_dir): Likewise.
12532 (grub_hfsplus_label): Likewise.
12533
48d6e456
VS
125342011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12535
12536 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
12537
bf3a3857
VS
125382011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
12539
12540 Add missing const qualifiers.
12541
12542 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
12543 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
12544 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
12545 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
12546 (grub_lvm_check_flag): Likewise.
12547 * grub-core/efiemu/i386/coredetect.c
12548 (grub_efiemu_get_default_core_name): Likewise
12549 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
12550 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
12551 * grub-core/fs/ntfs.c (fixup): Likewise.
12552 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
12553 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
12554 (fzap_lookup): Likewise.
12555 (zap_lookup): Likewise.
12556 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
12557 * grub-core/lib/legacy_parse.c (check_option): Likewise.
12558 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
12559 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
12560 (grub_freebsd_add_meta_module): Likewise.
12561 (grub_cmd_freebsd_module): Likewise.
12562 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
12563 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
12564 (grub_xnu_writetree_get_size): Likewise.
12565 (grub_xnu_writetree_toheap_real): Likewise.
12566 (grub_xnu_find_key): Likewise.
12567 (grub_xnu_create_key): Likewise.
12568 (grub_xnu_create_value): Likewise.
12569 (grub_xnu_register_memory): Likewise.
12570 (grub_xnu_check_os_bundle_required): Likewise.
12571 (grub_xnu_scan_dir_for_kexts): Likewise.
12572 (grub_xnu_load_kext_from_dir): Likewise.
12573 * grub-core/normal/color.c (color_list): Likewise.
12574 * grub-core/normal/completion.c (current_word): Likewise.
12575 * grub-core/normal/menu_entry.c (insert_string): Likewise.
12576 * grub-core/term/serial.c (grub_serial_find): Likewise.
12577 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
12578 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
12579 Likewise.
12580 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
12581 (grub_freebsd_add_meta_module): Likewise.
12582 * include/grub/lib/arg.h (grub_arg_option): Likewise.
12583 * include/grub/net.h (grub_net_card_driver): Likewise.
12584 (grub_net_card): Likewise.
12585 (grub_net_app_protocol): Likewise.
12586 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
12587 * include/grub/serial.h (grub_serial_find): Likewise.
12588 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
12589 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
12590 (grub_xnu_create_value): Likewise.
12591 (grub_xnu_find_key): Likewise.
12592 (grub_xnu_scan_dir_for_kexts): Likewise.
12593 (grub_xnu_load_kext_from_dir): Likewise.
12594
12595 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
12596 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
12597 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
12598 Moved from here ...
12599 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
12600
112b4837
CW
126012011-11-28 Colin Watson <cjwatson@ubuntu.com>
12602
12603 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
12604
49e891ac
VS
126052011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
12606
12607 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
12608 (read_device): Fix size calculation.
12609
fd258e5c
RM
126102011-11-25 Robert Millan <rmh@gnu.org>
12611
12612 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
12613 (find_root_device_from_libzfs): Add zpool output parser to be used
12614 as fallback when libzfs isn't available.
12615
78845dc2
SG
126162011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
12617
12618 * po/Makefile.in.in: Add missing escape-continuation.
12619
adac5211
VS
126202011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
12621
12622 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
12623
10b64f1c
VS
126242011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12625
12626 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
12627
bb416954
VS
126282011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12629
12630 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
12631
bdfe9eeb
VS
126322011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12633
12634 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
12635
581ffa8a
VS
126362011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
12637
12638 * grub-core/lib/adler32.c: Add missing license specification.
12639 * grub-core/lib/crc64.c: Likewise.
12640 * grub-core/loader/i386/pc/plan9.c: Likewise.
12641 * grub-core/partmap/plan.c: Likewise.
12642
2536cf64
LK
126432011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
12644
12645 Add facility to debug GRUB with gdb under qemu.
12646
12647 * grub-core/gdb_grub.in: New file.
12648 * grub-core/gmodule.pl.in: Likewise.
12649 * grub-core/Makefile.core.def (gmodule.pl): New script.
12650 (gdb_grub): Likewise.
12651
bc108a4a
VS
126522011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12653
12654 * util/grub-mount.c (argp_parser): Accept relative pathes.
12655 * util/grub-fstest.c (argp_parser): Likewise.
12656
111c1778
VS
126572011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12658
12659 Plan9 support.
12660
12661 * Makefile.util.def (libgrubmods): Add
12662 grub-core/partmap/plan.c.
12663 * docs/grub.texi: Notice Plan9 support.
12664 * grub-core/Makefile.core.def (plan9): New module.
12665 (part_plan): Likewise.
12666 * grub-core/loader/i386/pc/plan9.c: New file.
12667 * grub-core/partmap/plan.c: Likewise.
12668 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
12669 define.
12670 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
12671 * include/grub/mm.h (grub_extend_alloc): New inline function.
12672
c30be3b6
VS
126732011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 Make Reed-Solomon faster by using power of generator representation of
12676 GF(256)*.
12677
12678 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
12679 (gf_double_t): Likewise.
12680 (gf_invert): Removed.
12681 (gf_powx): New array.
12682 (gf_powx_inv): Likewise.
12683 (scratch): Move higher.
12684 (gf_reduce): Removed.
12685 (gf_mul): Use powx.
12686 (gf_invert): Likewise.
12687 (init_inverts): Replaced with ...
12688 (init_powx): ...this. All users updated.
12689 (pol_evaluate): Replace multiplications with additions.
12690 (rs_encode): Likewise.
12691 (gauss_eliminate): Call gf_invert.
12692 (grub_reed_solomon_add_redundancy): Call init_powx.
12693 (grub_reed_solomon_recover): Call init_powx unconditionally.
12694
fa5aeffc
VS
126952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12696
12697 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
12698
a346b81c
VS
126992011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12700
12701 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
12702 disk->partiton for safety.
12703
d89ee414
VS
127042011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12705
12706 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
12707 Fix a memory leak.
12708 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
12709
91ee7b6d
VS
127102011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12711
12712 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
12713
91e5a33d
VS
127142011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12715
12716 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
12717
9edd7be2
VS
127182011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12719
12720 Fix spaces handling in proc/self/mountinfo.
12721
12722 * util/getroot.c (unescape): New function.
12723 (grub_find_root_device_from_mountinfo): Use unescape.
12724
ba102053
VS
127252011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12726
12727 Support ZFS embedding.
12728
12729 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
12730 (grub_zfs_fs): Register grub_zfs_embed.
12731
aa94b870
VS
127322011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12733
12734 Fix MIPS compilation.
12735
12736 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
12737 * include/grub/offsets.h: Rename decompressor fields from
12738 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
12739 * util/grub-mkimage.c (image_targets): Use new names.
12740
5fbdac14
VS
127412011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12742
12743 Defer multiboot device parsing until we're in compressed part.
12744
12745 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
12746 bsd_part. setdevice has fallen into disuse.
12747 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
12748 (bsd_part): Likewise.
12749 (boot_dev): New variable.
12750 (multiboot_trampoline): Don't parse multiboot device.
12751 Pass multiboot device in %edx.
12752 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
12753 grub_boot_device.
12754 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
12755 Likewise.
12756 * grub-core/kern/i386/pc/startup.S: Save edx.
12757 (grub_boot_drive): Removed.
12758 (grub_install_dos_part): Likewise.
12759 (grub_install_bsd_part): Likewise.
12760 (grub_boot_device): New variable.
12761 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
12762 (grub_install_bsd_part): Likewise.
12763 (grub_boot_drive): Likewise.
12764 (grub_boot_device): New variable.
12765 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
12766 Removed.
12767 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12768 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
12769 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
12770 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
12771 * util/grub-install.in: Remove redundant condition.
12772
691cbb58
VS
127732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12774
12775 Fix bug introduced by previous commit.
12776
12777 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
12778
60240b8b
VS
127792011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12780
12781 Use decompressors framework on i386-pc. It increases core size
12782 by 46 bytes but improves compatibility and maintainability.
12783
12784 * grub-core/Makefile.core.def (lzma_decompress): New image.
12785 (kernel): Add i386_pc_ldflags.
12786 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
12787 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
12788 to real_to_prot, prot_to_real and device info.
12789 * include/grub/offsets.h: Renamed decompressor offsets.
12790 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
12791 (image_target_desc): Remove raw_size and rename decompressor fields.
12792 (compress_kernel): Handle lzma.
12793 (generate_image): Handle decompressors on i386-pc.
12794
e9d3421c
VS
127952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12796
12797 * configure.ac: Add -fno-asynchronous-unwind-tables.
12798
2b23074a
VS
127992011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12800
12801 Move assembly code to C by using intwrap. It increases core size
12802 by 88 bytes but improves compatibility and maintainability.
12803
12804 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
12805 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
12806 ... here. Translated to C.
12807 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
12808 * grub-core/term/i386/pc/console.c (grub_console_getkey):
12809 ... here. Translated to C.
12810 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
12811 * grub-core/term/i386/pc/console.c (grub_console_getxy):
12812 ... here. Translated to C.
12813 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
12814 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
12815 ... here. Translated to C.
12816 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
12817 * grub-core/term/i386/pc/console.c (grub_console_cls):
12818 ... here. Translated to C.
12819 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
12820 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
12821 ... here. Translated to C.
12822 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
12823 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
12824 Translated to C.
12825 * grub-core/term/i386/pc/console.c (int10_9): New function.
12826 (grub_console_putchar): Likewise.
12827 * include/grub/i386/pc/console.h: Removed the not anymore shared
12828 functions.
12829
678f4b67
VS
128302011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
12831
12832 Move grub_chainloader_real_boot out of the kernel.
12833
12834 * grub-core/Makefile.am: Remove machine/loader.h.
12835 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
12836 Removed.
12837 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
12838 variable.
12839 (grub_relocator16_keep_a20_enabled): Likewise.
12840 (grub_relocator16_boot): Fill new variables.
12841 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
12842 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
12843 relocator.
12844 (grub_chainloader_unload): Likewise.
12845 (grub_chainloader_cmd): Likewise.
12846 * include/grub/i386/pc/loader.h: Removed.
12847 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
12848 and esi. All initialisers updated.
12849
4626edf6
VS
128502011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
128512011-11-12 Colin Watson <cjwatson@ubuntu.com>
12852
12853 * Makefile.util.def (grub-mount): New util.
12854 * .bzrignore: Add grub-mount.
12855 * configure.ac: Check for fuse and enable grub-mount if available.
12856 * docs/man/grub-mount.h2m: New file.
12857 * util/grub-mount.c: Likewise.
12858
10f0117b
VS
128592011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12860
12861 * grub-core/commands/efi/fixvideo.c: Gettextize.
12862 * grub-core/commands/hashsum.c: Likewise.
12863 * grub-core/commands/i386/cmostest.c: Likewise.
12864 * grub-core/commands/i386/pc/drivemap.c: Likewise.
12865 * grub-core/commands/i386/pc/lsapm.c: Likewise.
12866 * grub-core/commands/i386/pc/sendkey.c: Likewise.
12867 * grub-core/commands/lsmmap.c: Likewise.
12868 * grub-core/commands/menuentry.c: Likewise.
12869 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
12870 * grub-core/commands/setpci.c: Likewise.
12871 * grub-core/loader/i386/bsd.c: Likewise.
12872 * grub-core/loader/i386/linux.c: Likewise.
12873 * util/getroot.c: Likewise.
12874 * util/grub-editenv.c: Likewise.
12875 * util/grub-fstest.c: Likewise.
12876 * util/grub-mkfont.c: Likewise.
12877 * util/grub-mkimage.c: Likewise.
12878 * util/grub-mkpasswd-pbkdf2.c: Likewise.
12879 * util/grub-pe2elf.c: Likewise.
12880 * util/grub-probe.c: Likewise.
12881 * util/grub-setup.c: Likewise.
12882 * util/ieee1275/ofpath.c: Likewise.
12883 * util/misc.c: Likewise.
12884 * util/raid.c: Likewise.
12885
566f779b
RM
128862011-11-11 Robert Millan <rmh@gnu.org>
12887
12888 * util/getroot.c (grub_util_get_geom_abstraction): Remove
12889 __attribute__((unused)) from `os_dev', which *is* being used.
12890
b50787de
VS
128912011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12892
12893 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
12894 forgotten define.
12895 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
12896 GRUB_IA64_DL_GOT_ALIGN.
12897 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
12898 GRUB_IA64_DL_TRAMP_ALIGN.
12899
119d11c8
VS
129002011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12901
12902 Replace grub_fatal with normal errors in i386 linux loader.
12903
12904 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
12905 (allocate_pages): Check find_efi_mmap_size return value.
12906 (grub_e820_add_region): Return error.
12907 (grub_linux_boot): Check mmap return value.
12908
6e0632e2
VS
129092011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12910
12911 * grub-core/commands/acpihalt.c: Gettextized.
12912 * grub-core/commands/cacheinfo.c: Likewise.
12913 * grub-core/commands/cmp.c: Likewise.
12914 * grub-core/commands/efi/loadbios.c: Likewise.
12915 * grub-core/commands/gptsync.c: Likewise.
12916 * grub-core/commands/ieee1275/suspend.c: Likewise.
12917 * grub-core/commands/legacycfg.c: Likewise.
12918 * grub-core/commands/memrw.c: Likewise.
12919 * grub-core/commands/minicmd.c: Likewise.
12920 * grub-core/commands/parttool.c: Likewise.
12921 * grub-core/commands/time.c: Likewise.
12922 * grub-core/commands/videoinfo.c: Likewise.
12923 * grub-core/disk/geli.c: Likewise.
12924 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
12925 * grub-core/disk/luks.c: Likewise.
12926 * grub-core/disk/lvm.c: Likewise.
12927 * grub-core/font/font_cmd.c: Likewise.
12928 * grub-core/fs/zfs/zfscrypt.c: Likewise.
12929 * grub-core/fs/zfs/zfsinfo.c: Likewise.
12930 * grub-core/gfxmenu/view.c: Likewise.
12931 * grub-core/kern/emu/hostdisk.c: Likewise.
12932 * grub-core/kern/emu/main.c: Likewise.
12933 * grub-core/kern/emu/misc.c: Likewise.
12934 * grub-core/kern/emu/mm.c: Likewise.
12935 * grub-core/kern/mips/arc/init.c: Likewise.
12936 * grub-core/kern/mips/loongson/init.c: Likewise.
12937 * grub-core/kern/partition.c: Likewise.
12938 * grub-core/lib/i386/halt.c: Likewise.
12939 * grub-core/lib/mips/arc/reboot.c: Likewise.
12940 * grub-core/lib/mips/loongson/reboot.c: Likewise.
12941 * grub-core/loader/i386/pc/chainloader.c: Likewise.
12942 * grub-core/loader/i386/xnu.c: Likewise.
12943 * grub-core/loader/multiboot.c: Likewise.
12944 * grub-core/net/bootp.c: Likewise.
12945 * grub-core/net/net.c: Likewise.
12946 * grub-core/normal/term.c: Likewise.
12947 * grub-core/partmap/bsdlabel.c: Likewise.
12948 * grub-core/parttool/msdospart.c: Likewise.
12949 * grub-core/term/gfxterm.c: Likewise.
12950 * grub-core/term/terminfo.c: Likewise.
12951 * grub-core/video/i386/pc/vbe.c: Likewise.
12952 * util/grub-menulst2cfg.c: Likewise.
12953 * util/grub-mkdevicemap.c: Likewise.
12954 * util/grub-mklayout.c: Likewise.
12955 * util/grub-mkrelpath.c: Likewise.
12956 * util/grub-script-check.c: Likewise.
12957 * util/ieee1275/grub-ofpathname.c: Likewise.
12958 * util/resolve.c: Likewise.
12959
073aa7a9
VS
129602011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 Support %1$d syntax.
12963
12964 * tests/printf_unit_test.c: New file.
12965 * Makefile.util.def (printf_test): New test.
12966 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
12967
c76b5417
VS
129682011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12969
12970 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
12971 fix.
12972
df067ad1
VS
129732011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12974
12975 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
12976 dprintf.
12977 * grub-core/font/font.c (grub_font_load): Likewise.
12978
5b289bc5
VS
129792011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12980
12981 * util/grub-macho2img.c: Add comment concerning gettext.
12982 * grub-core/lib/legacy_parse.c: Likewise.
12983
c1860f87
VS
129842011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12985
12986 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
12987 (grub_xvasprintf): Likewise.
12988
d35d0d37
VS
129892011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
12990
12991 Add const keyword to grub_env_get and gettextize week days.
12992
12993 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
12994 (grub_read_hook_datetime): Return const char *.
12995 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
12996 updated.
12997 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12998 Mark for gettext.
12999 (grub_get_weekday_name): Return const char *. Call gettext.
13000 * grub-core/script/argv.c (grub_script_argv_append): Receive const
13001 char * and len as the argument. All users updated.
13002 (grub_script_argv_split_append): Receive const char *.
13003 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
13004 * include/grub/env.h (grub_env_get): Likewise.
13005 (grub_env_read_hook_t): Return const char *.
13006 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
13007 (grub_script_argv_split_append): Likewise.
13008
9aed8a71
VS
130092011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13010
13011 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
13012
067fdf00
VS
130132011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13014
13015 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
13016 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
13017
a8bd9d39
VS
130182011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13019
13020 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
13021 Fix prototype.
13022
f7ce5baf
VS
130232011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13024
13025 Fix mips compilation.
13026
13027 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
13028 normal decoder.
13029 (hashes): Use in embed decoder as well (for sizes).
13030 (dec_stream_header): Fix embed decompressor logic.
13031 (dec_stream_footer): Likewise.
13032
9bb182f3
VS
130332011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13034
13035 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
13036 an error and not a fatal on unrecognised relocation types.
13037
63a9e6f6
VS
130382011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13039
13040 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13041 Issue error rather than printf on unknown arguments.
13042
4c458569
VS
130432011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13044
13045 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
13046 Make buf a const.
13047
e2d22baf
VS
130482011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13049
13050 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
13051 Fix module name.
13052
53dc8590
VS
130532011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13054
13055 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
13056 leftover debug printf.
13057
6c189294
VS
130582011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13059
13060 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
13061
f7688369
VS
130622011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13063
13064 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
13065 A stylistic fix.
13066
11a775a3
VS
130672011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13068
13069 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
13070
33f784e8
SL
130712011-11-10 Shea Levy <slevy@tieronedesign.com>
13072
13073 Allow all modules to perform serial IO
13074
13075 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
13076 * include/grub/serial.h (grub_serial_port_configure): New inline
13077 function.
13078 (grub_serial_port_fetch): Likewise.
13079 (grub_serial_port_put): Likewise.
13080 (grub_serial_port_fini): Likewise.
13081 (grub_serial_find): New proto.
13082
f6276525
VS
130832011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 Put symlink at the end of the node and fix a potential
13086 memory corruption.
13087
13088 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
13089 Make symlink into an array.
13090 (set_rockridge): Set have_symlink and alloc_dirents.
13091 (grub_iso9660_read_symlink): Use new layout.
13092 (grub_iso9660_iterate_dir): Fix memory corruption.
13093 Use new layout.
13094 (grub_iso9660_dir): Set have_symlink.
13095 (grub_iso9660_open): Likewise.
13096
c3591189
VS
130972011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13098
13099 Remove local keyword.
13100
13101 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
13102 (version_test_gt): Likewise.
13103 (version_find_latest): Likewise.
13104 (gettext_printf): Likewise.
13105 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
13106
cb544caa
VS
131072011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13108
13109 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
13110
45bd824d
VS
131112011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13112
13113 Fix ZFS memory and resource leaks.
13114
13115 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
13116 All users updated.
13117 Free type on exit.
13118 (fill_vdev_info): New parameter inserted. All users updated.
13119 (check_pool_label): Likewise.
13120 (scan_disk): Likewise.
13121 (scan_devices): Close non-inserted disks.
13122 (fzap_iterate): Free l.
13123 (unmount_device): Free children descripto memory.
13124
ad9a2f44
VS
131252011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13126
13127 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
13128 argument (access out of bounds).
13129
6b68db81
VS
131302011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13131
13132 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
13133 >= 6 drives.
13134
28840fda
VS
131352011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13136
13137 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
13138 Fix declaration.
13139
8a5a3a5b
VS
131402011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13141
13142 Fix several memory leaks.
13143
13144 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
13145 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
13146 (grub_cpio_dir): Likewise.
13147 * grub-core/fs/fat.c (grub_fat_label): Likewise.
13148 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
13149 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
13150 (grub_romfs_label): Likewise.
13151 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
13152 (squash_unmount): New function.
13153 (grub_squash_dir): Fix memory leak.
13154 (grub_squash_open): Likewise.
13155 (grub_squash_read): Likewise.
13156 (grub_squash_mtime): Likewise.
13157 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
13158 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
13159 * util/grub-fstest.c (fstest): Likewise.
13160
57b01250
VS
131612011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13162
13163 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
13164 avoid accessing beyond the array.
13165
19e81ba7
VS
131662011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
13169
52b656c0
VS
131702011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13171
13172 Several AFFS fixes.
13173
13174 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
13175 (GRUB_AFFS_FLAG_FFS): Removed.
13176 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
13177 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
13178 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
13179 (grub_fshelp_node): Make block 32-bit.
13180 Add block_cache and last_block_cache.
13181 (grub_affs_read_block): Fill and use block cache.
13182 (grub_affs_read_file): Removed.
13183 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
13184 boot block.
13185 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
13186 safety.
13187 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
13188 space.
13189 (grub_affs_close): Free block cache.
13190 (grub_affs_read): Use grub_fshelp_read_file directly.
13191
438a746a
VS
131922011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13193
13194 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
13195 with no error set.
13196
49a45021
VS
131972011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13198
13199 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
13200 used variable.
13201 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13202 Likewise.
13203
3ae17eb8
VS
132042011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13205
13206 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
13207
13208 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
13209 byteswap when needed.
13210
27610c38
VS
132112011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 Fix FreeBSD compilation.
13214
13215 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
13216 to avoid circular dependency.
13217 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
13218 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
13219 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
13220
4a19b601
VS
132212011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13222
13223 Fix ZFS crypto error types.
13224
13225 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
13226 (grub_gcm_decrypt): Likewise.
13227 (grub_zfs_load_key_real): Fix error code type. Handle possible error
13228 from PBKDF2.
13229
958ee221
VS
132302011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13231
13232 Illumos support.
13233
13234 * Makefile.util.def (10_illumos): New script.
13235 * configure.ac: Set COND_HOST_ILLUMOS.
13236 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
13237 Support Illumos calls.
13238 (find_partition_start) [__sun__]: Likewise.
13239 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
13240 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
13241 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
13242 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
13243 device.
13244 * util/grub-probe.c (probe) [__sun__]: Do character check.
13245 * util/grub.d/10_illumos.in: New file.
13246
cac14fb6
VS
132472011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 Support escaped commas in hostdisk.
13250
13251 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
13252 (find_grub_drive): Use unescape_cmp.
13253 (make_device_name): Escape commas.
13254
78e08dc3
VS
132552011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13256
13257 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
13258
9f421dd1
VS
132592011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13260
13261 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
13262 variable.
13263
ed64e9e2
VS
132642011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13265
13266 Support trampoline jumps on powerpc.
13267
13268 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
13269 __ia64__ path.
13270 (grub_dl_load_segments): Set mod->sz.
13271 (grub_dl_flush_cache): Flush whole space occupied by module, not just
13272 segments.
13273 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
13274 (jump): Likewise.
13275 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
13276 function.
13277 (trampoline): New struct.
13278 (trampoline_template): New const.
13279 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
13280 * include/grub/dl.h (grub_dl): Add sz element.
13281 [__powerpc__]: Follow __ia64__.
13282 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
13283 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
13284 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
13285 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
13286
3084ede4
VS
132872011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13288
13289 ZFS crypto support.
13290
13291 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
13292 * grub-core/Makefile.core.def (zfscrypt): New module.
13293 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
13294 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
13295 it. All users updated.
13296 (grub_zfs_decrypt): New var.
13297 (grub_zfs_load_key): Likewise.
13298 (zio_checksum_functions): Add SHA256+MAC.
13299 (zio_checksum_verify): Handle incomplete comparison due to MAC.
13300 (zio_read): Handle encrypted blocks.
13301 (zap_verify): Remove incorrect check.
13302 (fzap_iterate): Handle non-standard fzap.
13303 (zap_iterate): Likewise.
13304 (zap_iterate_u64): New function.
13305 (dnode_get_fullpath): Load keys.
13306 * grub-core/fs/zfs/zfscrypt.c: New file.
13307 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
13308 (grub_crypto_ecb_encrypt): Make input const.
13309 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
13310 (grub_crypto_ecb_encrypt): Make input const.
13311 (GRUB_CIPHER_AES): New macro.
13312 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
13313 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
13314 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
13315 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
13316 prefix. All users updated.
13317 (grub_zfs_add_key): New proto.
13318 (grub_zfs_decrypt): Likewise.
13319 (grub_zfs_load_key): Likewise.
13320 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
13321 * util/grub-fstest.c (options): Add -K option.
13322 (argp_parser): Likewise.
13323
b632b404
VS
133242011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13325
13326 Support zle compression on ZFS.
13327
13328 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
13329 (decomp_table): Add zle.
13330 * include/grub/zfs/zio.h (zio_compress): Add zle.
13331
c7ba4f69
VS
133322011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13333
13334 Support BtrFS embedding.
13335
13336 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
13337 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
13338 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
13339 * util/grub-setup.c (setup): Use fs embedding if available.
13340 Add additional sanity check.
13341
455377d9
VS
133422011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13343
13344 * util/grub-install.in: Fix condition for config_opt.
13345
c2fd16ca
VS
133462011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 Support third redundancy strip on raidz3.
13349
13350 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
13351 Return error on singularity. All users updated.
13352 (read_device): Don't stop on 3rd failure on raidz3.
13353
8622923b
VS
133542011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13355
13356 Support case-insensitive ZFS subvolumes.
13357
13358 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
13359 All users updated.
13360 (zap_hash): Likewise.
13361 (name_cmp): New function.
13362 (zap_leaf_array_equal): New parameter case_insensitive.
13363 All users updated.
13364 (zap_leaf_lookup): Likewise.
13365 (fzap_lookup): Likewise.
13366 (zap_lookup): Likewise.
13367 (dnode_get_path): New parameter case_insensitive. Retrieve case
13368 sensitiviness of a volume. All users updated.
13369 (dnode_get_fullpath): New parameter case_insensitive.
13370 All users updated.
13371 (grub_zfs_dir): Set info.case_insensitiveness.
13372
95f2e860
VS
133732011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13374
13375 Support second redundancy strip on raidz(2,3).
13376
13377 * grub-core/fs/zfs/zfs.c (powx): New array.
13378 (powx_inv): Likewise.
13379 (poly): New const.
13380 (xor_out): New function.
13381 (gf_mul): Likewise.
13382 (recovery): Likewise.
13383 (read_device): Use second redundancy strip.
13384
11ee4389
VS
133852011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13386
13387 Use a power of generator representation of GF(256) multiplication group
13388 to save space time and complexity.
13389
13390 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
13391 (raid6_table2): Likewise.
13392 (powx): New array.
13393 (powx_inv): Likewise.
13394 (poly): New const.
13395 (grub_raid_block_mul): Replace with ...
13396 (grub_raid_block_mulx): ...this.
13397 (grub_raid6_init_table): Rewritten.
13398 (grub_raid6_recover): Use power of generator representation.
13399
09e2763f
VS
134002011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13401
13402 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
13403 for the right device.
13404
8bec9a28
VS
134052011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13406
13407 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
13408 expected by grub-mkimage and it's more clear since there is no implicit
13409 padding.
13410
dbd3a32e
VS
134112011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13412
13413 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
13414 disk.
13415 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13416
182c872a
PMH
134172011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
13418
13419 * util/grub-mkrescue.in: Fix handling xorriso option.
13420
1e51cabd
VS
134212011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13422
13423 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
13424 NULL.
13425
9cc3581d 134262011-11-03 crocket <crockabiscuit@gmail.com>
13427
13428 * util/grub.d/10_linux.in: Add Slackware initrd naming.
13429
158dc1ea
VS
134302011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13431
13432 XZ CRC64 and SHA256 support.
13433
13434 * Makefile.util.def (libgrubmods): Add crc64.c.
13435 * grub-core/Makefile.core.def (crc64): New module.
13436 * grub-core/lib/crc64.c: New file.
13437 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
13438 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
13439 Fix the type.
13440 (MAX_HASH_SIZE): New define.
13441 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
13442 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
13443 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13444 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13445 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
13446 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
13447 Handle non-crc32 hashes.
13448 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
13449 (dec_stream_header): Handle non-crc32 hashes.
13450 (dec_stream_footer): Likewise.
13451 (dec_block_header): Likewise.
13452 (dec_main): Likewise.
13453 (xz_dec_init): Likewise.
13454 (xz_dec_reset): Likewise.
13455 (xz_dec_end): Likewise.
13456 * util/import_gcry.py: Add CRC64 line.
13457
9d9b3d2f
VS
134582011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
13461 as well.
13462
7d0ac931
VS
134632011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13464
13465 Make reiserfs label retrieval similar to other *_label functions.
13466
13467 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
13468 (REISERFS_MAX_LABEL_LENGTH): Removed.
13469 (REISERFS_LABEL_OFFSET): Likewise.
13470 (grub_reiserfs_label): Rewritten.
13471
134722011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13473
13474 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
13475 field.
13476
cf5ba824
VS
134772011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13478
13479 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
13480
17744004
VS
134812011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
13484 drive failure on both raidz and raidz2.
13485
aca5aefc
VS
134862011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 Fix RAIDZ(2) for >= 5 devices.
13489
13490 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
13491 asize argument. All users updated.
13492
ce8ca56e
VS
134932011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13494
13495 Fix RAIDZ(2).
13496
13497 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
13498 (fill_vdev_info_real): Set ashift.
13499 (read_device): Rewrite RAIDZ part based on reverse engineering.
13500
7c01e783
VS
135012011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13502
13503 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
13504 don't report potentially unavialiable fields in debug output.
13505 (find_path): Fix double-free and memory leak.
13506
ce109e84
VS
135072011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13508
13509 Read label on UFS1.
13510
13511 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
13512 (grub_ufs_fs): Always set .label.
13513
87661123
VS
135142011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13515
13516 Use shifts in UFS.
13517
13518 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
13519 (grub_ufs_data): New field log2_blksz.
13520 (grub_ufs_read_file): Use shifts.
13521 (grub_ufs_mount): Check block size and logarithm it.
13522
46bc1dc2
VS
135232011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13524
13525 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
13526 long symlinks.
13527
19ee2987
VS
135282011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13529
13530 Handle symlinks and long names on tar and cpio.
13531
13532 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
13533 (ATTR_FILE): Likewise.
13534 (ATTR_DIR): Likewise.
13535 (ATTR_LNK): Likewise.
13536 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
13537 (grub_cpio_find_file): Fill mode, handle linkname field as well as
13538 L and K entries.
13539 (grub_cpio_mount): Zero-fill data.
13540 (handle_symlink): New function.
46bc1dc2
VS
13541 (grub_cpio_dir): Handle symlinks.
13542 (grub_cpio_open): Likewise.
13543 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 13544
c83a08d8
VS
135452011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13546
13547 Fix iso9660 filename limitations and fix memory leaks.
13548
13549 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
13550 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
13551
45cdd3ea
VS
135522011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13553
13554 Fix JFS file name length limitations.
13555
13556 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
13557 (grub_jfs_diropen): Fix maximum filename length.
13558 (grub_jfs_getent): Fix filename length.
13559 (grub_jfs_lookup_symlink): Fix size checks.
13560
94ef05c2
VS
135612011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13562
13563 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
13564 string.
13565
785ab8c7
VS
135662011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13567
eb0b6b45
VS
13568 Leverage BFS implementation to read AFS.
13569
13570 * Makefile.util.def (libgrubmods): Add afs.c.
13571 * grub-core/Makefile.core.def (afs): New module
13572 * grub-core/fs/afs.c: New file.
13573 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
13574
135752011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13576
13577 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 13578
c4a1628f
VS
135792011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13580
13581 * grub-core/fs/bfs.c: Run indent.
13582
5825b379
VS
135832011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13584
13585 BFS implementation based on the specification.
13586
13587 * grub-core/fs/bfs.c: New file.
13588 * Makefile.util.def (libgrubmods): Add bfs.c.
13589 * grub-core/Makefile.core.def (bfs): New module.
13590
42b2a706
VS
135912011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13592
13593 * util/grub-fstest.c (cmd_cp): Clarify error message.
13594 (cmd_cmp): Likewise.
13595
61b99bfc
YB
135962011-10-30 Yves Blusseau <blusseau@zetam.org>
13597
13598 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
13599 and befs_be.
13600
faba3d16
VS
136012011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
13602
13603 Remove afs and befs because of copyright problem.
13604
13605 * grub-core/fs/afs.c: Removed.
13606 * grub-core/fs/afs_be.c: Removed.
13607 * grub-core/fs/befs.c: Removed.
13608 * grub-core/fs/befs_be.c: Removed.
13609 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
13610 * grub-core/Makefile.core.def (afs): Removed.
13611 (afs_be): Likewise.
13612 (befs): Likewise.
13613 (befs_be): Likewise.
13614
c39224b0
VS
136152011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13616
13617 Prefer rockridge over Joliet.
13618
13619 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
13620 to ...
13621 (set_rockridge): ... here.
13622 (grub_iso9660_mount): Check rockridge on the primary label when
13623 discovering. Ignore Joliet if Rockridge is present.
13624
e551115a
VS
136252011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13626
13627 Use shifts in nilfs2.
13628
13629 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
13630 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
13631 (grub_nilfs2_palloc_entries_per_group): Replace with ...
13632 (grub_nilfs2_log_palloc_entries_per_group): ... this.
13633 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
13634 (grub_nilfs2_entries_per_block): Replaced with ...
13635 (grub_nilfs2_log_entries_per_block_log): ... this.
13636 (grub_nilfs2_blocks_per_group): Replaced with ...
13637 (grub_nilfs2_blocks_per_group_log): ... this.
13638 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
13639 (grub_nilfs2_blocks_per_desc_block_log): ... this.
13640 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
13641 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
13642 (grub_nilfs2_palloc_entry_offset): Replaced ...
13643 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
13644 (grub_nilfs2_dat_translate): Use shifts.
13645 (grub_nilfs2_read_inode): Likewise.
13646 (GRUB_MOD_INIT): Ensure that logs are correct.
13647
564dd58c
VS
136482011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13649
13650 Use shifts in minix filesystem.
13651
13652 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
13653 (GRUB_MINIX_ZONE2SECT): Likewise.
13654 (grub_minix_data): Replace block_size with log_block_size.
13655 (grub_minix_read_file): Use shifts.
13656 (grub_minix_mount): Check block size and take a logarithm.
13657
ed9ba06d
VS
136582011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13659
13660 Use shifts in squash4.
13661
13662 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
13663 (squash_mount): Check block size and take logarithm.
13664 (direct_read): Use shifts.
13665
ad03fe76
VS
136662011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 Correct befs block counting logic.
13669
13670 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
13671 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
13672 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
13673 (grub_afs_read_inode): Use block_shift.
13674 (RANGE_SHIFT): New definition.
13675 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
13676 unexpected conditions, use shifts and appropriate types.
13677 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
13678
6563f63d
VS
136792011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
13680
13681 * grub-core/disk/raid.c (scan_devices): Check partition.
13682 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13683
5b1ae25f
VS
136842011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13685
13686 Support BFS (befs) UUID.
13687
13688 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
13689 (grub_afs_small_data_element_header): New struct.
13690 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
13691 (grub_afs_read_attribute) [MODE_BFS]: New function.
13692 (grub_afs_iterate_dir): Allocate for complete inode.
13693 (grub_afs_mount): Likewise.
13694 (grub_afs_uuid) [MODE_BFS]: New function.
13695 (grub_afs_fs) [MODE_BFS]: Add .uuid.
13696
f8d82408
VS
136972011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
13698
13699 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
13700 (zfs_unmount): Fix memory leak.
13701
5773fb64
VS
137022011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 Support NTFS reparse points.
13705
13706 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
13707 (symlink_descriptor): New struct.
13708 (grub_ntfs_read_symlink): New function.
13709 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
13710 (grub_ntfs_open): Likewise.
13711
91c3fdde
VS
137122011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13713
13714 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
13715
3be82e10
VS
137162011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13717
13718 fstest xnu_uuid subcommand.
13719
13720 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
13721 grub-core/commands/xnu_uuid.c.
13722 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
13723 (fstest): Handle xnu_uuid.
13724 (options): Document xnu_uuid.
13725 (argp_parser): Parse xnu_uuid.
13726
8e32442e
VS
137272011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13728
13729 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
13730 -l argument. Add newline at the end if printing.
13731 (GRUB_MOD_INIT): Document -l.
13732
52a05075
VS
137332011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13734
13735 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
13736
1869edb5
VS
137372011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13738
13739 ZFS multi-device and version 33 support.
13740
13741 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
13742 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
13743 (grub_zfs_data): Add multidev-ice-related fields.
13744 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
13745 (dva_get_offset): Make dva const.
13746 (zfs_fetch_nvlist): New function.
13747 (fill_vdev_info_real): Likewise.
13748 (fill_vdev_info): Likewise.
13749 (check_pool_label): Likewise.
13750 (scan_disk): Likewise.
13751 (scan_devices): Likewise.
13752 (read_device): Likewise.
13753 (read_dva): Likewise.
13754 (zio_read_gang): Use read_dva.
13755 (zio_read_data): Likewise.
13756 (zap_leaf_lookup): Add missing endian conversion.
13757 (zap_verify): Add missing endian conversion. All users updated.
13758 (fzap_lookup): Likewise.
13759 (fzap_iterate): Likewise.
13760 (dnode_get_path): Handle SA bonus.
13761 (nvlist_find_value): Make input const. All users updated.
13762 (unmount_device): New function.
13763 (zfs_unmount): Use unmount_device.
13764 (zfs_mount): Use scan_disk.
13765 (zfs_mtime): New function.
13766 (grub_zfs_open): Handle system attributes.
13767 (fill_fs_info): Likewise.
13768 (grub_zfs_dir): Likewise.
13769 (grub_zfs_fs): Add mtime.
13770 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
13771 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
13772 (SA_MTIME_OFFSET): Likewise.
13773 (SA_SYMLINK_OFFSET): Likewise.
13774 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
13775 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
13776 (fstest): Support zfsinfo.
13777 (argp_parser): Likewise.
13778
186b4028
VS
137792011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
13782 error.
13783
137842011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
13785
13786 ZFS fixes.
13787
13788 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
13789 sharing the same block. Iterate over correct number of indices.
13790 (dnode_get_path): Handle symlinks correctly.
13791
c0584900
VS
137922011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13793
13794 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
13795
67e2bd71
VS
137962011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13797
13798 Read label on HFS+.
13799
13800 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
13801 (grub_hfsplus_btree_search): Fix types.
13802 (grub_hfsplus_label): Implement.
13803
e9cc6b7b
VS
138042011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13805
13806 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
13807
19832ddb
VS
138082011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13809
13810 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
13811
66b40850
VS
138122011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13813
13814 Fix symlink handling on iso9660.
13815
13816 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
13817 All users updated.
13818 (grub_iso9660_susp_iterate): Accept zero-size iterate.
13819 (grub_iso9660_read_symlink): Moved most of code ...
13820 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
13821
db821363
VS
138222011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13823
13824 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
13825 Use union to avoid breaking strict-aliasing rules.
13826
e1211949
VS
138272011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13828
13829 Support multi-extent iso files.
13830
13831 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
13832 Add node.
13833 (grub_fshelp_node): Revamp. All users updated.
13834 (FLAG_*): New enum.
13835 (read_node): New function.
13836 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
13837 All users updated.
13838 (grub_iso9660_mount): Don't attempt to read sua when there is none.
13839 (get_node_size): New function.
13840 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
13841 entries.
13842 Fix memory leak on . and ..
13843 (grub_iso9660_read): Use read_node.
13844 (grub_iso9660_close): Free node.
13845
d4888031
VS
138462011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13847
13848 Fix tar 4G limit and handle paths containing dot.
13849
13850 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
13851 (canonicalize): New function.
13852 (grub_cpio_find_file): Use canonicalize. Store offs in
13853 grub_disk_addr_t.
13854 (grub_cpio_dir): Use grub_disk_addr_t.
13855 (grub_cpio_open): Likewise.
13856
9f12e664
VS
138572011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13858
13859 Fix handling of uncompressed blocks on squashfs and break 4G limit.
13860
13861 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
13862 unused flags.
13863 (grub_squash_inode): Add long_file and block_size.
13864 (grub_squash_cache_inode): New struct.
13865 (grub_squash_dirent): Make types into enum.
13866 (SQUASH_TYPE_LONG_REGULAR): New type.
13867 (grub_squash_frag_desc): Add field size.
13868 (SQUASH_BLOCK_FLAGS): New enum.
13869 (grub_squash_data): Use grub_squash_cache_inode.
13870 (grub_fshelp_node): Make ino_chunk 64-bit.
13871 (read_chunk): Minor argument change. All users updated.
13872 (squash_mount): Use correct le_to_cpu.
13873 (grub_squash_open): Handle LONG_REGULAR.
13874 (direct_read): New function.
13875 (grub_squash_read_data): Handle blocks correctly.
13876
9f326fba
VS
138772011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13878
13879 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
13880
f4d9b64b
VS
138812011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
13882
13883 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
13884
5bbd28b8
VS
138852011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13886
13887 Fix 2G limit on ZFS.
13888
13889 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
13890 types.
13891 (uberblock_verify): Likewise.
13892 (dmu_read): Likewise.
13893 (grub_zfs_read): Likewise. Remove invalid cast.
13894
68c72069
VS
138952011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13896
13897 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
13898 (grub_jfs_blkno): Fix incorrect shift.
13899 (grub_jfs_read_file): Use more appropriate types.
13900
6e536dc8
VS
139012011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13902
13903 Support triple indirect on minix2 and minix3.
13904
13905 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
13906 Declare triple_indir_zone.
13907 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
13908 indirect.
13909
e0864e7a
VS
139102011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
13911
13912 Minix FS fixes.
13913
13914 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
13915 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
13916 Rename ctime to mtime. All users updated.
13917 (grub_minix_get_file_block): Fix types and double indirect computations.
13918
89481cab
VS
139192011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13920
13921 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
13922 if no label is found.
13923 (grub_fat_iterate_dir): Fix file size type.
13924 (grub_fat_iterate_dir): Likewise.
13925
f646e143
VS
139262011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13927
13928 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
13929 save some space.
13930 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
13931 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13932
534d769e
VS
139332011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13934
13935 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
13936
e084ba18
VS
139372011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13938
13939 * util/import_gcry.py: Accept space between # and include.
13940
3471ecdf
VS
139412011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13942
13943 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
13944
124df5f6
VS
139452011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13946
13947 Fine grainely disable warnings on lexer. Remove Wno-error on it.
13948
13949 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
13950 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
13951 yylex_strncpy.
13952 * grub-core/script/yylex.l: Add fine-grained #pragma.
13953
4defb8d5
VS
139542011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13955
13956 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
13957 New inline function.
13958 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
13959 Likewise.
13960 (memset) [GRUB_UTIL]: Likewise.
13961 (memcmp) [GRUB_UTIL]: Likewise.
13962
4e94ae65
VS
139632011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13964
13965 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
13966 inline function rather than a define.
13967
18c575e5
VS
139682011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13969
13970 * util/grub-setup.c: Add missing include.
13971
f8bc22a8
VS
139722011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13973
13974 * util/ieee1275/grub-ofpathname.c: Add missing include.
13975
3ce69fc9
VS
139762011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13977
13978 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
13979 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
13980 Likewise.
13981
d1e293bb
VS
139822011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13983
13984 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
13985 grub_memcmp usage.
13986
7a5c54a4
VS
139872011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
13988
13989 * util/grub-install.in: Add datarootdir as per automake manual
13990 suggestion.
13991 * util/grub-mknetdir.in: Likewise.
13992
139932011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
13994
13995 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
13996 suggestion.
13997 * util/grub.d/10_kfreebsd.in: Likewise.
13998 * util/grub.d/10_linux.in: Likewise.
13999 * util/grub.d/10_netbsd.in: Likewise.
14000 * util/grub.d/10_windows.in: Likewise.
14001 * util/grub.d/20_linux_xen.in: Likewise.
14002
766f7d08
VS
140032011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
14004
14005 Remove redundant grub_kernel_image_size.
14006
14007 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
14008 _edata and _start.
14009 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
14010 the small code. It moves it only by few bytes but simplifies the code.
14011 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
14012 _start.
14013 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
14014 (grub_kernel_image_size): Removed.
14015 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
14016 (grub_kernel_image_size): Removed.
14017 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
14018 compiled with Apple toolchain.
14019 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
14020 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
14021 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
14022 (grub_total_module_size): Likewise.
14023 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
14024 Removed.
14025 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
14026 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
14027 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
14028 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
14029 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
14030 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
14031 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
14032 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
14033 Removed.
14034 (grub_total_module_size): Removed.
14035 * util/grub-mkimage.c (image_target_desc): Remove image_size.
14036 (image_targets): Likewise.
14037 Set .compressed_size to no field on sparc.
14038 (generate_image): Remove kernel_image_size handling.
14039
fcf1d672
SJ
140402011-10-19 Szymon Janc <szymon@janc.net.pl>
14041
14042 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
14043 NULL pointer dereference.
14044
de9c615e
VS
140452011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14046
14047 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
14048 done with a dedicated section.
14049
14050 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
14051 Ensure the correct position of boot_path.
14052 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
14053 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
14054 other fields.
14055 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
14056 * include/grub/boot.h: Removed. All references removed.
14057 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
14058 Removed.
14059 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
14060
e55599dc
VS
140612011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14062
14063 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
14064 name.
14065
36dd20ad
VS
140662011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14067
14068 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
14069
f8f72eb8
VS
140702011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14071
14072 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14073 Don't add the bogus brackets.
14074
a374751b
VS
140752011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14076
14077 ExFAT support.
14078
14079 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
14080 * grub-core/Makefile.core.def (exfat): New module.
14081 * grub-core/fs/exfat.c: New file.
14082 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
14083 (GRUB_FAT_ATTR_*): Make into an enum.
14084 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
14085 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
14086 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
14087 (GRUB_FAT_MAXFILE): Removed.
14088 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
14089 (grub_current_fat_bpb_t): New type.
14090 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
14091 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
14092 (grub_fat_dir_node_t): New type.
14093 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
14094 (fat_log2) [MODE_EXFAT]: Removed.
14095 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
14096 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
14097 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
14098 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
14099 (grub_fat_label) [MODE_EXFAT]: New function.
14100 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
14101 reserved_first_sector to 0.
14102
544c2487
VS
141032011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14104
14105 Move grub_reboot out of the kernel.
14106
14107 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
14108 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
14109 * grub-core/lib/efi/reboot.c: ... here.
14110 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
14111 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
14112 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
14113 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
14114 * grub-core/lib/i386/reboot_trampoline.S: ... here.
14115 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
14116 * grub-core/lib/ieee1275/reboot.c: ... here.
14117 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
14118 * grub-core/lib/mips/arc/reboot.c: ... here.
14119 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
14120 * grub-core/lib/mips/loongson/reboot.c: ...here.
14121 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
14122 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
14123 * include/grub/emu/misc.h (grub_reboot): New function declaration.
14124 * include/grub/i386/reboot.h: New file.
14125 * include/grub/mips/loongson/ec.h: Fix includes.
14126 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
14127 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
14128 * grub-core/lib/i386/reboot.c: New file.
14129
a97501d2
VS
141302011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
14131
14132 Make grub_prefix into module to fix the arbitrary limit and save
14133 some space.
14134
14135 * grub-core/kern/emu/main.c (grub_prefix): Removed.
14136 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
14137 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
14138 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
14139 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
14140 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
14141 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
14142 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
14143 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
14144 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
14145 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
14146 * include/grub/ia64/efi/kernel.h: Removed.
14147 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
14148 (grub_prefix): Removed.
14149 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
14150 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
14151 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
14152 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
14153 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
14154 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
14155 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
14156 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
14157 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
14158 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
14159 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14160 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14161 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14162 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14163 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
14164 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
14165 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
14166 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14167 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
14168 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
14169 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
14170 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
14171 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
14172 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
14173 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
14174 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
14175 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
14176 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
14177 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
14178 from module.
14179 * util/grub-mkimage.c (image_target_desc): Removed prefix and
14180 prefix_end.
14181 (image_targets): Likewise.
14182 (generate_image): Put prefix as a module.
14183
39705fad
VS
141842011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14185
14186 Replace grub_module_iterate with FOR_MODULES.
14187
14188 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
14189 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
14190 (grub_efi_modules_addr): ...this.
14191 * grub-core/kern/efi/init.c (grub_modbase): New variable.
14192 (grub_efi_init): Set grub_modbase.
14193 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
14194 (grub_modbase): New variable.
14195 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
14196 (grub_modbase): New variable.
14197 (grub_machine_init): Set grub_modbase.
14198 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
14199 (grub_modbase): New variable.
14200 (grub_machine_init): Set grub_modbase.
14201 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
14202 (grub_modbase): New variable.
14203 (grub_machine_init): Set grub_modbase.
14204 * grub-core/kern/main.c (grub_module_iterate): Remove.
14205 (grub_modules_get_end): Use grub_modbase.
14206 (grub_load_modules): Use FOR_MODULES.
14207 (grub_load_config): Likewise.
14208 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
14209 (grub_modbase): New variable.
14210 (grub_machine_init): Set grub_modbase.
14211 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
14212 (grub_modbase): New variable.
14213 (grub_machine_init): Set grub_modbase.
14214 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
14215 Removed.
14216 (grub_modbase): New variable.
14217 (grub_machine_init): Set grub_modbase.
14218 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
14219 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
14220 (grub_module_iterate): Likewise.
14221 (grub_modbase): New variable declaration.
14222 (FOR_MODULES): New macro.
14223
2afb7f6c
VS
142242011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14225
14226 * configure.ac: Check for __ctzdi2 and __ctzsi2.
14227 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
14228
366e34fa
VS
142292011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14230
14231 Fix few obvious type discrepancies.
14232
14233 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
14234 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
14235 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
14236 variable.
14237 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
14238 and connected types.
14239 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
14240 offset.
14241 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
14242 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
14243 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
14244 and connected types.
14245
177b960e
VS
142462011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14247
14248 Fix python 3.x incompatibilities.
14249
14250 * gentpl.py: Put brackets around print strings.
14251 * util/import_gcry.py: Open explicitly as utf-8.
14252 Use in instead of has_key.
14253
3b619ae1
VS
142542011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14255
14256 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
14257 (GRUB_XFS_INO_AGBITS): Make into inline function.
14258 (GRUB_XFS_INO_INOINAG): Likewise.
14259 (GRUB_XFS_INO_AG): Likewise.
14260 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
14261 (GRUB_XFS_EXTENT_OFFSET): Likewise.
14262 (GRUB_XFS_EXTENT_BLOCK): Likewise.
14263 (GRUB_XFS_EXTENT_SIZE): Likewise.
14264 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
14265 (GRUB_XFS_NEXT_DIRENT): Likewise.
14266 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
14267 (grub_xfs_read_file): Fix offset type.
14268
8bcebcb8
RM
142692011-10-15 Robert Millan <rmh@gnu.org>
14270
14271 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
14272
0017e5ef
RM
142732011-10-15 Robert Millan <rmh@gnu.org>
14274
14275 Fix build problem on FreeBSD and GNU/kFreeBSD.
14276
14277 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
14278
d8919552
VS
142792011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14280
14281 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
14282
14283 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
14284 types.
14285 (grub_hfsplus_btree_recoffset): Likewise.
14286 (grub_hfsplus_btree_recptr): Likewise.
14287 (grub_hfsplus_find_block): Likewise.
14288 (grub_hfsplus_btree_search): Likewise.
14289 (grub_hfsplus_read_block): Likewise.
14290 (grub_hfsplus_read_file): Likewise.
14291 (grub_hfsplus_mount): Likewise.
14292 (grub_hfsplus_btree_iterate_node): Likewise.
14293 (grub_hfsplus_btree_search): Likewise.
14294 (grub_hfsplus_iterate_dir): Likewise.
14295 (grub_hfsplus_read): A small code simplification.
14296
c81296b6
VS
142972011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14298
14299 * grub-core/kern/emu/hostdisk.c
14300 (convert_system_partition_to_system_disk): Don't assume that children
14301 of mapper nodes are mapper nodes.
14302
0eb8ffb1
VS
143032011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14304
14305 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
14306 * include/grub/misc.h (grub_isxdigit): New function.
14307 * grub-core/video/colors.c (my_isxdigit): Removed. All users
14308 switched to grub_isxdigit.
14309 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
14310 number starting with a letter.
14311
a98f4a08
RM
143122011-10-09 Robert Millan <rmh@gnu.org>
14313
14314 LVM support for FreeBSD and GNU/kFreeBSD.
14315
14316 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
14317 GNU/kFreeBSD.
14318 (LVM_DEV_MAPPER_STRING): Move from here ...
14319 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
14320 * util/getroot.c: Include `<grub/util/lvm.h>'.
14321 (grub_util_get_dev_abstraction): Enable
14322 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
14323 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
14324 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
14325 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
14326 support it.
14327 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
14328 GNU/kFreeBSD.
14329 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
14330 when LVM abstraction is required for ${GRUB_DEVICE}.
14331
050e8e90
SJ
143322011-10-06 Szymon Janc <szymon@janc.net.pl>
14333
14334 Add support for LZO compression in GRUB:
14335 - import of minilzo library,
14336 - LZO decompression for btrfs,
14337 - lzop files decompression.
14338
14339 * grub-core/io/lzopio.c: New file.
14340 * grub-core/lib/adler32.c: Likewise.
14341 * grub-core/lib/minilzo/lzoconf.h: Likewise.
14342 * grub-core/lib/minilzo/lzodefs.h: Likewise.
14343 * grub-core/lib/minilzo/minilzo.c: Likewise.
14344 * grub-core/lib/minilzo/minilzo.h: Likewise.
14345 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
14346 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
14347 grub-core/lib/minilzo/minilzo.c to common.
14348 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
14349 cflags in cppflags.
14350 * grub-core/Makefile.core.def (btrfs): Likewise.
14351 * grub-core/Makefile.core.def (lzopio): New module.
14352 (adler32): Likewise.
14353 * grub-core/fs/btrfs.c: Include minilzo.h.
14354 (GRUB_BTRFS_COMPRESSION_LZO): New define.
14355 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
14356 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
14357 (grub_btrfs_lzo_decompress): New function.
14358 (grub_btrfs_extent_read): Add support for LZO compression type.
14359 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
14360 (GRUB_USHRT_MAX): Likewise.
14361 (GRUB_UINT_MAX): Likewise.
14362 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
14363 (UINT_MAX): Likewise.
14364 (CHAR_BIT): Likewise.
14365 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
14366 grub-core/lib/posix_wrap/limits.h
14367 (UCHAR_MAX): Likewise.
14368 * include/grub/file.h (grub_file_filter_id): New compression filter
14369 GRUB_FILE_FILTER_LZOPIO.
14370 * include/grub/file.h (grub_file_filter_id): Set
14371 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
14372 * include/grub/types.h (grub_get_unaligned16): New function.
14373 (grub_get_unaligned32): Likewise.
14374 (grub_get_unaligned64): Likewise.
14375 * util/import_gcry.py (cryptolist): Add adler32.
14376
0eb8ffb1
VS
143772011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
14380 in perspective decreases the complexity of build system and fixes
14381 compilation right now.
14382
ce79cc99 143832011-10-01 Ales Nesrsta <starous@volny.cz>
14384
14385 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
14386 (fixed problem related to using UHCI with coreboot).
14387
8667a314
BC
143882011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
14389
14390 * gentpl.py: Use Autogen macros so that the output template file
14391 (Makefile.tpl) size is reduced.
14392
fc5efcc0
MK
143932011-09-29 Mads Kiilerich <mads@kiilerich.com>
14394
14395 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
14396 extra_dist.
14397
d1ab689d
ML
143982011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14399
14400 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
14401 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
14402
c05de032
ML
144032011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14404
14405 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
14406 _fullpath.
14407
cca7ccd8
ML
144082011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14409
14410 Remove extra declaration of sleep for mingw32.
14411
14412 * util/misc.c (sleep) [__MINGW32__]: Removed.
14413 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
14414
e0b0dc83
GS
144152011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
14416
14417 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
14418 type and packname.
14419 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
14420 Resurrected.
14421 (NETBSD_BTINFO_BOOTWEDGE): New definition.
14422 (grub_netbsd_btinfo_bootwedge): New struct.
14423 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14424 New function.
14425 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
14426
91a1a164
TH
144272011-09-28 Thomas Haller <thomas.haller@fen-net.de>
14428
14429 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
14430 loader.
14431
2ded951e
AB
144322011-09-28 Andreas Born <futur.andy@googlemail.com>
14433
14434 Fix incorrect identifiers in bash-completion.
14435
14436 * util/bash-completion.d/grub-completion.bash.in
14437 (_grub_mkpasswd-pbkdf2): Rename to ...
14438 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
14439 (_grub_script-check): Rename to ...
14440 (_grub_script_check): ... this. All users updated.
14441
69915030
VS
144422011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
14443
14444 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14445 Return 0 if disk isn't biosdisk.
14446
20fd15f9
GS
144472011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14448
14449 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
14450 on NetBSD.
14451 * Makefile.util.def (grub-fstest): Likewise.
14452
1a7d7db9
GS
144532011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14454
14455 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
14456 Get sector size from disk label.
14457
2221ab6c
CW
144582011-09-05 Colin Watson <cjwatson@ubuntu.com>
14459
14460 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
14461 */README* as well as README*.
14462 Reported by: Axel Beckert.
14463
ca51c4a0
VS
144642011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14465
14466 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
14467 case of less than 256 MiB of RAM.
14468
ab80f326
VS
144692011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14470
14471 * grub-core/commands/wildcard.c (make_regex): Handle @.
14472
4155e697
VS
144732011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14474
14475 * util/grub-install.in: Move cryptodisk logic to appropriate place.
14476
ab178c08
SJ
144772011-08-21 Szymon Janc <szymon@janc.net.pl>
14478
14479 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
14480 AC_LANG_CONFTEST macros.
14481
7dc3c686
SJ
144822011-08-20 Szymon Janc <szymon@janc.net.pl>
14483
14484 Add grub-fstest option to uncompress data for commands.
14485
14486 * util/grub-fstest.c (uncompress): New var.
14487 (options): New option -u.
14488
fe8d4a7b
SJ
144892011-08-20 Szymon Janc <szymon@janc.net.pl>
14490
14491 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
14492 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
14493
a5219af1
SJ
144942011-08-20 Szymon Janc <szymon@janc.net.pl>
14495
14496 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
14497 file type was not recognized correctly (not gzip or corrupted).
14498
f87abff5
VS
144992011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14500
14501 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
14502 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
14503
d94497ea
VS
145042011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14505
14506 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
14507 loongson.
14508 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14509 video_radeon_fuloong2e.
14510 * grub-core/video/radeon_fuloong2e.c: New file.
14511 * include/grub/video.h (grub_video_id_t): Add new ID
14512 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
14513
0d1fd011
VS
145142011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
14517 define.
14518 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
14519 that PRID matches the detected subplatform and reset the subplatform
14520 if it doesn't.
14521
84beb0ee
VS
145222011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14523
14524 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
14525
1227c133
VS
145262011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14527
14528 Fix PCI iterating on functions >= 4.
14529
14530 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
14531 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
14532 Removed.
14533 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
14534 (grub_pci_read): Fix bitmask.
14535 (grub_pci_read_word): Likewise.
14536 (grub_pci_read_byte): Likewise.
14537 (grub_pci_write): Likewise.
14538 (grub_pci_write_word): Likewise.
14539 (grub_pci_write_byte): Likewise.
14540
9594c689
VS
145412011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
14544 can still be specified in TARGET_CFLAGS)
14545
14a2562c
VS
145462011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14547
14548 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
14549
14550 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
14551 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
14552 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
14553 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
14554 (FULOONG): Rename to ...
14555 (FULOONG2F): ... this. All users updated.
14556 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
14557 (machtype_fuloong2f_str): ... this.
14558 (machtype_fuloong2e_str): New string.
14559 Check for machtype_fuloong2e_str.
14560 * grub-core/loader/mips/linux.c (loongson_machtypes)
14561 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
14562 * grub-core/term/serial.c (loongson_defserial)
14563 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
14564 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
14565 loongson_defserial.
14566 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
14567 Rename to ...
14568 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
14569 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
14570 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
14571 to IMAGE_FULOONG2F_FLASH. All users updated.
14572 (image_targets): Rename images.
14573 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
14574
b526cbb6
SJ
145752011-08-19 Szymon Janc <szymon@janc.net.pl>
14576
14577 Make enable of disk cache statistics code configurable.
14578
14579 * configure.ac: --enable-cache-stats added.
14580 * config.h.in (DISK_CACHE_STATS): New define.
14581 * grub-core/Makefile.core.def (cacheinfo): New command.
14582 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
14583 * grub-core/commands/cacheinfo.c: New file.
14584 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
14585 moved to cacheinfo.c.
14586 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
14587 debug code.
14588 * include/grub/disk.h: Likewise.
14589
fb739ccd
SJ
145902011-08-19 Szymon Janc <szymon@janc.net.pl>
14591
14592 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
14593 * grub-core/Makefile.am: Likewise.
14594
2bba8cfd
VS
145952011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14596
14597 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
14598 non-zero pull.
14599
43526629
VS
146002011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14601
14602 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
14603 All users updated.
14604 (grub_jfs_lookup_symlink): Use correct starting inode.
14605
5c144cc8
VS
146062011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14607
14608 * util/grub-setup.c (main): Add missing gcry initialisation.
14609
b1257f65
VS
146102011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
14611
14612 Don't accept text modes on EFI when booting Linux.
14613
14614 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
14615 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
14616
828bc390
ML
146172011-08-15 Mario Limonciello <mario_limonciello@dell.com>
146182011-08-15 Colin Watson <cjwatson@ubuntu.com>
14619
14620 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
14621 use of "/path/.." as in grub-install for EFI as well as handling
14622 symlinks correctly.
14623 Fixes Debian bug #637768.
14624
5f60ccac
CW
146252011-08-15 Colin Watson <cjwatson@ubuntu.com>
14626
14627 * util/grub-probe.c: Remove duplicate #include.
14628
6dc212f9
RM
146292011-08-10 Robert Millan <rmh@gnu.org>
14630
14631 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
14632
14633 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
14634 function.
14635 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
14636 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
14637
66816d85
RM
146382011-08-03 Robert Millan <rmh@gnu.org>
14639
14640 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
14641 la_array as packed.
14642 Reported by: Zachary Bedell
14643
20168fca
CW
146442011-07-26 Colin Watson <cjwatson@ubuntu.com>
14645
14646 * configure.ac: The Loongson port requires grub-mkfont due to its
14647 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
14648 be built.
14649
303b6246
CW
146502011-07-26 Colin Watson <cjwatson@ubuntu.com>
14651
14652 * util/grub-install.in: Don't source grub-mkconfig_lib until after
14653 processing arguments (otherwise help2man fails when GRUB has not yet
14654 been installed).
14655
6795300e
VS
146562011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14657
41aa28ea
VS
14658 New script grub-mkstandalone.
14659
14660 * Makefile.util.def (grub-mkstandalone): New script.
14661 * docs/man/grub-mkstandalone.h2m: New file.
14662 * util/grub-mkstandalone.in: Likewise.
14663
146642011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14665
14666 Support ATA disks with 4K sectors.
6795300e
VS
14667
14668 * include/grub/ata.h (grub_ata): New member log_sector_size.
14669 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
14670 (grub_ata_identify): Read sector size.
14671 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
14672
92227597
VS
146732011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14674
14675 * util/grub-install.in: Don't use uhci outside of x86.
14676
c77069f5
VS
146772011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
14678
14679 * util/grub-mkrescue.in: Add missing quotes.
14680
146812011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
14682
14683 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
14684 dereference.
14685
583168a2
VS
146862011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14687
14688 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
14689
6be1c01f
VS
146902011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14691
14692 * include/grub/video.h: add missing EXPORT_FUND on
14693 grub_video_edid_checksum and grub_video_edid_preferred_mode.
14694
a1167439
VS
146952011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14696
14697 * include/grub/mips/kernel.h: Fix define conflict.
14698
bf66054f
VS
146992011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
14702 all four ways.
14703
8fc4fa45
CW
147042011-07-21 Colin Watson <cjwatson@ubuntu.com>
14705
14706 Preferred resolution detection for VBE.
14707
14708 * grub-core/video/video.c (grub_video_edid_checksum): New function.
14709 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
14710 the Flat Panel extension, in line with the X.org VESA driver.
14711 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
14712 New function.
14713 (grub_vbe_bios_get_ddc_capabilities): Likewise.
14714 (grub_vbe_bios_read_edid): Likewise.
14715 (grub_vbe_get_preferred_mode): Likewise.
14716 (grub_video_vbe_setup): When the mode is "auto", try to get the
14717 preferred mode from VBE, and use the largest mode that is no larger
14718 than the preferred mode (some BIOSes expose a preferred mode that is
14719 not in their mode list!). If this fails, fall back to 640x480 as a
14720 safe conservative choice.
14721 (grub_video_vbe_get_edid): New function.
14722 (grub_video_vbe_adapter): Add get_edid.
14723 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
14724 (struct grub_video_adapter): Add get_edid.
14725 (grub_video_edid_checksum): Add prototype.
14726 (grub_video_edid_preferred_mode): Likewise.
14727 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
14728 structure.
14729
14730 * grub-core/commands/videoinfo.c (print_edid): New function.
14731 (grub_cmd_videoinfo): Print EDID if available.
14732
14733 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
14734 is more appropriate on a wider range of platforms than 640x480.
14735 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
14736 documentation.
14737
ca5572a9
VS
147382011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14739
14740 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
14741
e4bcf625
VS
147422011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14743
14744 * po/POTFILES.in: Regenerate.
14745
c4edd548
VS
147462011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14747
14748 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
14749 incorrect memory usage.
14750
16a2bab0
VS
147512011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
14752
14753 * util/grub-install.in: Source grub-mkconfig_lib.
14754
2e418de6
VS
147552011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14756
14757 Remove getroot.c from core on emu platform.
14758
14759 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
14760 kern/emu/raid.c.
14761 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
14762 useless.
14763 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
14764 * util/getroot.c (get_win32_path): ... here.
14765 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
14766 * util/getroot.c (fini_libzfs): ... here.
14767 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
14768 * util/getroot.c (grub_get_libzfs_handle): ... here.
14769 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
14770 Moved from here...
14771 * util/getroot.c (grub_find_zpool_from_dir): ... here.
14772 * grub-core/kern/emu/misc.c
14773 (grub_make_system_path_relative_to_its_root): Moved from here...
14774 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
14775 * grub-core/kern/emu/getroot.c: Moved from here ...
14776 * util/getroot.c: ... here. All users updated.
14777 * grub-core/kern/emu/raid.c: Moved from here ...
14778 * util/raid.c: ... here. All users updated.
14779
def9832a
VS
147802011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
14781
14782 * po/POTFILES.in: Regenerate.
14783
cd8fe79a
VS
147842011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14785
14786 Fix compilation on GNU/Linux.
14787
14788 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
14789 Disable geli.
14790 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
14791 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
14792 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
14793
a251b719
VS
147942011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
147952011-07-07 Michael Gorven <michael@gorven.za.net>
147962011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
14797
14798 LUKS and GELI support.
14799
14800 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
14801 grub-core/disk/luks.c, grub-core/disk/geli.c,
14802 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
14803 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
14804 grub-core/lib/arg.c.
14805 (libgrubmods.a): Remove gcrypts cflags and cppflags.
14806 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
14807 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
14808 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
14809 (grub-bin2h): Add libgcry.a.
14810 (grub-mkimage): Likewise.
14811 (grub-mkrelpath): Likewise.
14812 (grub-script-check): Likewise.
14813 (grub-editenv): Likewise.
14814 (grub-mkpasswd-pbkdf2): Likewise.
14815 (grub-pe2elf): Likewise.
14816 (grub-fstest): Likewise.
14817 (grub-mkfont): Likewise.
14818 (grub-mkdevicemap): Likewise.
14819 (grub-probe): Likewise.
14820 (grub-ofpath): Likewise.
14821 (grub-mklayout): Likewise.
14822 (example_unit_test): Likewise.
14823 (grub-menulst2cfg): Likewise.
14824 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
14825 * grub-core/Makefile.core.def (cryptodisk): New module.
14826 (luks): Likewise.
14827 (geli): Likewise.
14828 * grub-core/disk/AFSplitter.c: New file.
14829 * grub-core/disk/cryptodisk.c: Likewise.
14830 * grub-core/disk/geli.c: Likewise.
14831 * grub-core/disk/luks.c: Likewise.
14832 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
14833 grub_util_is_lvm.
14834 (grub_util_get_dm_abstraction): New function.
14835 (grub_util_follow_gpart_up): Likewise.
14836 (grub_util_get_geom_abstraction): Likewise.
14837 (grub_util_get_dev_abstraction): Use new functions.
14838 (grub_util_pull_device): Pull GELI and LUKS.
14839 (grub_util_get_grub_dev): Handle LUKS and GELI.
14840 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
14841 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
14842 (follow_geom_up): Removed.
14843 (grub_util_fd_seek): New function.
14844 (open_device): Use grub_util_fd_seek.
14845 (nread): Rename to ..
14846 (grub_util_fd_read): ... this. All users updated.
14847 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
14848 (grub_crypto_cbc_decrypt): Likewise.
14849 (grub_crypto_hmac_write): Likewise.
14850 (grub_crypto_hmac_buffer): Likewise.
14851 (grub_password_get): Extend to util.
14852 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
14853 New member modname.
14854 (gcry_md_spec) [GRUB_UTIL]: Likewise.
14855 * include/grub/cryptodisk.h: New file.
14856 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
14857 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
14858 LUKS and GELI.
14859 (grub_util_follow_gpart_up): New proto.
14860 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
14861 (grub_util_fd_read): Likewise.
14862 (grub_cryptodisk_cheat_mount): Likewise.
14863 (grub_util_cryptodisk_print_uuid): Likewise.
14864 (grub_util_get_fd_sectors): Likewise.
14865 * util/grub-fstest.c (mount_crypt): New var.
14866 (fstest): Mount crypto if requested.
14867 (options): New option -C.
14868 (argp_parser): Parse -C.
14869 (main): Init and fini gcry.
14870 * util/grub-install.in: Support cryptodisk install.
14871 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
14872 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
14873 cryptodisk.
14874 (prepare_grub_to_access_device): Likewise.
14875 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
14876 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
14877 (probe_cryptodisk_uuid): New function.
14878 (probe_abstraction): Likewise.
14879 (probe): Use new functions.
14880 * util/import_gcry.py: Create Makefile.utilgcry.def.
14881 Add modname member.
14882
9bfdcbbc
VS
148832011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
14884
14885 Lazy device scanning.
14886
14887 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
14888 (grub-setup): Remove util/raid.c.
14889 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
14890 * grub-core/disk/lvm.c (scan_depth): New variable.
14891 (grub_lvm_iterate): Rescan if necessary.
14892 (find_lv): New function based on grub_lvm_open.
14893 (grub_lvm_open): Use find_lv. Rescan on error.
14894 (is_node_readable): New function.
14895 (is_lv_readable): Likewise.
14896 (grub_lvm_scan_device): Skip already found disks.
14897 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
14898 Stop if searched device is found and readable.
14899 * grub-core/disk/raid.c (inscnt): New variable.
14900 (scan_depth): Likewise.
14901 (scan_devices): New function based on grub_raid_register. Abort if
14902 looked for device is found.
14903 (grub_raid_iterate): Rescan if needed.
14904 (find_array): NEw function based on -grub_raid_open.
14905 (grub_raid_open): Use find_array and rescan.
14906 (insert_array): Set became_readable_at.
14907 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
14908 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
14909 New function.
14910 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
14911 (grub_util_pull_device): New function.
14912 (grub_util_get_grub_dev): Call grub_util_pull_device.
14913 * util/raid.c: Moved to ..
14914 * grub-core/kern/emu/raid.c: ... here.
14915 (grub_util_raid_getmembers): New parameter "bootable".
14916 All users updated. Support 1.x.
14917 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
14918 All users updated.
14919 * include/grub/disk.h (grub_disk_pull_t): New enum.
14920 (grub_disk_dev): Change iterate prototype.
14921 All users updated.
14922 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
14923 New proto.
14924 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
14925 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
14926 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
14927 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
14928 All users updated.
14929 * include/grub/util/raid.h: Removed.
14930
1c358e59
VS
149312011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
14932
14933 * po/POTFILES.in: Regenerate.
14934
abee94ed
VS
149352011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
14936
14937 Unify sparc init with other ieee1275.
14938
14939 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
14940 instead of kern/sparc64/ieee1275/init.c.
14941 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
14942 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
14943 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
14944 grub/machine/kernel.h.
14945 (grub_ieee1275_original_stack) [__sparc__]: New variable.
14946 (grub_claim_heap) [__sparc__]: Use sparc version.
14947 (grub_machine_init): Moved args parsing to
14948 (grub_parse_cmdline): ...this.
14949 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
14950 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
14951 New definition.
14952 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
14953
14954 Move BOOTP to separate file.
14955
14956 * grub-core/Makefile.core.def (net): Add net/bootp.c.
14957 * grub-core/net/net.c: Move all BOOTP functions to
14958 * grub-core/net/bootp.c: ... here.
14959
14960 Use frame interface on PXE.
14961
14962 * grub-core/Makefile.core.def (pxecmd): Removed.
14963 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
14964 * grub-core/commands/i386/pc/pxecmd.c: Removed.
14965 * grub-core/i386/pc/pxe.c: Moved from here ...
14966 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
14967 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
14968 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
14969
14970 EFI network support.
14971
14972 * grub-core/Makefile.core.def (efinet): New module.
14973 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
14974 here...
14975 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
14976 All users updated.
14977 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
14978 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
14979 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
14980 * grub-core/net/drivers/efi/efinet.c: New file.
14981 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
14982 (grub_efi_net_config): New extern var.
14983
14984 Various cleanups and bugfixes.
14985
14986 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
14987 error.
14988 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
14989 disk declared as partition.
14990 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
14991 leak on failure.
14992 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
14993 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
14994 (grub_debug_zalloc): Likewise.
14995 (grub_debug_realloc): Likewise.
14996 (grub_debug_memalign): Likewise.
14997 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
14998 Check that target is IPv4.
14999 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
15000 local-mac-address as fallback.
15001 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
15002 memory leak.
15003 * grub-core/net/ip.c (ipchksum): Rename to ...
15004 (grub_net_ip_chksum): ... this. All users updated.
15005 (grub_net_recv_ip_packets): Special handling for DHCP.
15006 * util/grub-mkimage.c (generate_image): Zero-out aout header.
15007
15008 Unify prefix handling
15009
15010 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
15011 (grub_machine_get_bootlocation): ... this.
15012 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
15013 (grub_machine_get_bootlocation): ... this.
15014 (grub_prefix): New variable.
15015 (prefix): Removed.
15016 (root_dev): New variable.
15017 (dir): Likewise.
15018 (main): Use new variables.
15019 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
15020 Revamped into ...
15021 (grub_machine_get_bootlocation): ... this.
15022 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
15023 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
15024 (grub_machine_get_bootlocation): ... this.
15025 (grub_machine_set_prefix): Removed.
15026 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
15027 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
15028 Revamped into ...
15029 (grub_machine_get_bootlocation): ... this.
15030 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
15031 (grub_set_prefix_and_root): ... this. All users updated.
15032 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
15033 Revamped into ...
15034 (grub_machine_get_bootlocation): ... this.
15035 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
15036 (grub_machine_get_bootlocation): New proto.
15037 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
15038
15039 Less intrusive and more reliable seek on network implementation.
15040
15041 * grub-core/kern/file.c (grub_file_net_seek): Removed.
15042 (grub_file_seek): Don't call grub_file_net_seek.
15043 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
15044 (grub_net_fs_read_real): .. this.
15045 (grub_net_seek_real): Use net->offset.
15046 (grub_net_fs_read): Seek if necessary.
15047
15048 Unify IEEE1275 netwotk config with the other platforms.
15049
15050 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
15051 New variable.
15052 (grub_machine_get_bootlocation): Support network.
15053 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15054 Support type and device parsing.
15055 (grub_ieee1275_get_device_type): New function.
15056 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
15057 into ...
15058 (grub_ieee1275_net_config_real): ... this.
15059 (grub_ofnet_probecards): Removed.
15060 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
15061 * include/grub/ieee1275/ofnet.h: Removed.
15062 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
15063 extern var.
15064 (grub_ieee1275_get_device_type): New function.
15065
15066 Unify network device closing across platforms and make more robust.
15067
15068 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
15069 grub_grubnet_fini.
15070 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
15071 already.
15072 * grub-core/net/net.c (grub_net_network_level_interface_register):
15073 Update num_ifaces.
15074 (grub_net_card_unregister): Close all interfaces.
15075 (receive_packets): Don't poll if no iterfaces are registered.
15076 Open if necessary.
15077 (grub_net_fini_hw): New function.
15078 (grub_net_restore_hw): Likewise.
15079 (fini_hnd): New variable.
15080 (GRUB_MOD_INIT): Register preboot hook.
15081 (GRUB_MOD_FINI): Run and unregister preboot hook.
15082
15083 Poll network cards when idle.
15084
15085 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
15086 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
15087 * grub-core/net/net.c (receive_packets): Save last poll time.
15088 (grub_net_poll_cards_idle_real): New function.
15089 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
15090 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
15091 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
15092
15093 Rename ofnet interfaces.
15094
15095 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
15096 (grub_ofnet_findcards): Use ofnet_%s names.
15097
15098 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
15099
15100 Cleanup socket opening.
15101
15102 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
15103 (grub_net_fs_close): Likewise.
15104 (grub_net_fs_read_real): Use eof member.
15105 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
15106 (+grub_net_udp_close): New inline function.
15107
15108 * include/grub/net/tftp.h: Moved to the top of ...
15109 * grub-core/net/tftp.c: ... here.
15110 * include/grub/net/ip.h: Moved mostly to the top of ...
15111 * grub-core/net/ip.c: ... here.
15112 * include/grub/net/ethernet.h: Moved mostly to the top of ...
15113 * grub-core/net/ethernet.c: ... here.
15114
15115 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
15116
15117 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
15118 FS name.
15119
15120 * include/grub/net/ip.h (ipv4_ini): Removed.
15121 (ipv4_fini): Likewise.
15122
15123 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
15124 (grub_net_send_ip_packets): Likewise.
15125
cf1337aa
VS
151262011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15127
15128 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
15129 grub_read_cmos prototype.
15130
93c06ff9
VS
151312011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15132
15133 VGA text support in qemu-mips
15134
15135 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
15136 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
15137 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
15138 text.
15139 * grub-core/kern/i386/qemu/init.c: Renamed to ...
15140 * grub-core/kern/vga_init.c: ... this.
15141 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
15142 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
15143 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
15144 Adjust.
15145 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
15146 GRUB_MACHINE_PCI_IO_BASE.
15147
748ccabe
VS
151482011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15149
15150 MIPS qemu flash support.
15151
15152 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
15153 magic.
15154 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
15155 (grub_machine_init): Probe memory if its size isn't known.
15156 * util/grub-mkimage.c (image_targets): Add flash targets.
15157 (generate_image): Handle flash targets.
15158
d7345994
VS
151592011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15160
15161 MIPS qemu at_keyboard support.
15162
15163 * gentpl.py (videoinkernel): Add qemu-mips.
15164 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
15165 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
15166 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
15167 modules.
15168 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
15169 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
15170 * grub-core/term/serial.c (grub_serial_register)
15171 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
15172
a07a81b3
VS
151732011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15174
15175 CMOS support on sparc.
15176
15177 * gentpl.py (cmos): Add powerpc and sparc.
15178 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
15179 powerpc and sparc.
15180 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
15181 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
15182 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
15183 grub_set_datetime_cmos.
15184 * grub-core/lib/ieee1275/cmos.c: New file.
15185 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
15186 (find_rtc): Set no_ieee1275_rtc on error.
15187 (grub_get_datetime): Call grub_get_datetime_cmos on error.
15188 (grub_set_datetime): Call grub_set_datetime_cmos on error.
15189 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
15190 fail. Move value to argument. All users updated
15191 (grub_cmos_write): Likewise.
15192 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
15193 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
15194 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
15195 grub_get_datetime_cmos and grub_set_datetime_cmos.
15196
77546584
GS
151972011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15198
15199 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
15200 sourcing grub-mkconfig_lib.
15201 * util/update-grub_lib.in: Likewise.
15202 * util/grub.d/00_header.in: Likewise.
15203 * util/grub.d/10_hurd.in: Likewise.
15204 * util/grub.d/10_kfreebsd.in: Likewise.
15205 * util/grub.d/10_linux.in: Likewise.
15206 * util/grub.d/10_netbsd.in: Likewise.
15207 * util/grub.d/10_windows.in: Likewise.
15208 * util/grub.d/20_linux_xen.in: Likewise.
15209 * util/grub.d/30_os-prober.in: Likewise.
15210
54894791
CW
152112011-06-28 Colin Watson <cjwatson@ubuntu.com>
15212
15213 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
15214 default_bg_color rather than black.
15215 (grub_gfxterm_fullscreen): Likewise.
15216 (grub_gfxterm_background_color_cmd): Save new background color in
15217 default_bg_color.
15218
8d5d8444
VS
152192011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15220
15221 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
15222
5afeb5bd
VS
152232011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15224
15225 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
15226 mismerge.
15227
ba7df45e
VS
152282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15229
15230 Chainloading on coreboot support.
15231
15232 * grub-core/Makefile.core.def (chain): Add coreboot.
15233 * grub-core/loader/i386/coreboot/chainloader.c: New file.
15234
d0b526b2
VS
152352011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15236
15237 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
15238 if it happens.
15239
5ff1d945
VS
152402011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15241
15242 Implement time command.
15243
15244 * grub-core/Makefile.core.def (time): New module.
15245 * grub-core/commands/time.c: New file.
15246 * grub-core/script/parser.y: Remove "time" keyword.
15247 * grub-core/script/yylex.l: Likewise.
15248
5ebaad7e
VS
152492011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15250
15251 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
15252
bdea3798
VS
152532011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15254
15255 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
15256 when handling leftovers.
15257
b28c5655
VS
152582011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15259
15260 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
15261 so that help2man doesn't fail.
15262
b6f945dc
VS
152632011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15264
15265 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
15266 type in pointers on sparc64.
15267 (get_card_packet): Likewise.
15268
f9b75e8a
CW
152692011-06-27 Colin Watson <cjwatson@ubuntu.com>
15270
15271 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
15272 with `*'.
15273 (grub_cmd_videoinfo): Fetch current video mode.
15274
1e3d9b86
VS
152752011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15276
15277 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
15278 because of underlying system restrictions.
15279
efff4b1c
VS
152802011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15281
15282 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
15283 necessary.
15284
9fc9ce37
VS
152852011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15286
15287 Coreboot video support.
15288
15289 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
15290 (vbe): Likewise.
15291 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
15292 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
15293 here ...
15294 * grub-core/kern/i386/int.S: ... here.
15295 * grub-core/video/i386/pc/vbe.c: Updated includes.
15296 * grub-core/video/i386/pc/vga.c: Likewise.
15297 * include/grub/i386/coreboot/memory.h
15298 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
15299 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
15300 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
15301 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
15302 Disable interrupts.
15303 * include/grub/i386/pc/vga.h: Removed. All users updated.
15304
41bec7fe
VS
153052011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15306
15307 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
15308 definitions for dprintf.
15309 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
15310
ca80309d
VS
153112011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
15314 prototype.
15315 (get_card_packet): Likewise.
15316
9e322ce8
YB
153172011-06-26 Yves Blusseau <blusseau@zetam.org>
15318
15319 Display the path of the file when file is not found
15320
15321 * grub-core/fs/fat.c: Display the filename when file is not found.
15322 * grub-core/fs/fshelp.c: Likewise.
15323 * grub-core/fs/hfs.c: Likewise.
15324 * grub-core/fs/jfs.c: Likewise.
15325 * grub-core/fs/minix.c: Likewise.
15326 * grub-core/fs/ufs.c: Likewise.
15327 * grub-core/fs/btrfs.c: Likewise.
15328 * grub-core/commands/i386/pc/play.c: Likewise.
15329
cbf597af
SJ
153302011-06-26 Szymon Janc <szymon@janc.net.pl>
15331
15332 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
15333 pointer checks before calling grub_free().
15334 * grub-core/commands/wildcard.c (match_devices): Likewise.
15335 * grub-core/commands/wildcard.c (match_files): Likewise.
15336 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
15337 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
15338 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
15339 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
15340 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
15341 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
15342 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
15343 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15344 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
15345
6295b32f
P
153462011-06-25 Patrick <p55@mailinator.com>
15347
15348 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
15349
77c0840b
VS
153502011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
15351
15352 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
15353 (grub_pxe_send): Likewise.
15354 (GRUB_MOD_INIT): Fix types.
15355
40ea05de
SJ
153562011-06-24 Szymon Janc <szymon@janc.net.pl>
15357
15358 * grub-core/io/xzio.c: Fix code style issues
15359
90162423
MRA
153602011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
153612011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
15362
15363 Network infrastructure.
15364 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
15365
15366 * include/grub/net/arp.h: New file.
90162423
MRA
15367 * include/grub/net/device.h: Likewise.
15368 * include/grub/net/ethernet.h: Likewise.
15369 * include/grub/net/ip.h: Likewise.
15370 * include/grub/net/netbuff.h: Likewise.
15371 * include/grub/net/tftp.h: Likewise.
15372 * include/grub/net/udp.h: Likewise.
15373 * include/grub/ieee1275/ofnet.h: Likewise.
15374 * include/grub/emu/export.h: Likewise.
15375 * include/grub/net.h: Likewise.
15376 * grub-core/net/arp.c: Likewise.
15377 * grub-core/net/ethernet.c: Likewise.
15378 * grub-core/net/ip.c: Likewise.
15379 * grub-core/net/udp.c: Likewise.
15380 * grub-core/net/tftp.c: Likewise.
15381 * grub-core/net/netbuff.c: Likewise.
15382 * grub-core/net/net.c: Likewise.
15383 * grub-core/net/drivers/emu/emunet.c: Likewise.
15384 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
15385 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
15386 export.h.
15387 * grub-core/Makefile.core.def (net): New module.
15388 (tftp): Likewise.
15389 (ofnet): Likewise.
15390 (emunet): Likewise.
15391 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
15392 network protocols.
15393 * grub-core/kern/device.c (grub_net_open) : New variable.
15394 (grub_device_open): Handle network device.
15395 (grub_device_close): Likewise.
15396 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
15397 (grub_grubnet_fini): Likewise.
15398 (grub_file_seek): Seek in network device.
15399 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
15400 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
15401 network root.
15402 (grub_machine_fini): Call grub_grubnet_fini.
15403 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
15404 network.
15405 (grub_ieee1275_get_aliasdevname): New function.
15406 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15407 Add unofficial Solaris network info.
15408 (grub_multiboot_make_mbi): Likewise.
15409 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
15410 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
15411 * include/grub/device.h (grub_fs): Removed.
15412 * include/grub/err.h (grub_err_t): Add network-related values.
15413 * include/grub/i386/pc/pxe.h: Removed bootp parts.
15414 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
15415 (grub_ieee1275_get_aliasdevname): New proto.
15416 * include/grub/net.h: Rewritten.
423a1849 15417
031f22a0
VS
154182011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15419
15420 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
15421 names.
15422
4388ca72
VS
154232011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15424
15425 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
15426 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
15427 it truncates the output.
15428 Reported by: Ximin Luo.
15429
98e2f506
VS
154302011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15431
15432 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
15433
2a5e94d8
VS
154342011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15435
15436 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
15437 partmap before abstraction.
15438
535c1910
AK
154392011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
15440
15441 * util/grub-mkconfig_lib.in: Add missing quotes.
15442
bc09e1a2
VS
154432011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15444
15445 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
15446 old method if mountinfo would return /dev/root and /dev/root doesn't
15447 exist.
15448
290766fb
VS
154492011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15450
15451 ZFS zlib support
15452
15453 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
15454 (decomp_table): Add zlib entries.
15455 (zio_read): USe 8 bits for compression function rather than 3.
15456 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
15457
154582011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15459
15460 * grub-core/disk/ahci.c: Add missing license statements.
15461 * grub-core/fs/romfs.c: Likewise.
15462 * grub-core/lib/ia64/setjmp.S: Likewise.
15463 * grub-core/loader/i386/pc/freedos.c: Likewise.
15464 * grub-core/loader/ia64/efi/linux.c: Likewise.
15465 * grub-core/video/colors.c: Likewise.
15466 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
15467
5ab3f48a
VS
154682011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15469
15470 AHCI support.
15471
15472 * grub-core/Makefile.core.def (ata_pthru): Removed.
15473 (ahci): New module.
15474 (pata): Likewise.
15475 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
15476 on unload.
15477 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
15478 readwrite.
15479 (grub_hdparm_do_check_powermode_cmd): Likewise.
15480 (grub_hdparm_do_smart_cmd): Likewise.
15481 (grub_hdparm_set_val_cmd): Likewise.
15482 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
15483 * grub-core/disk/ahci.c: New file.
15484 * grub-core/disk/ata.c: Factor out the low-level part into ...
15485 * grub-core/disk/pata.c: ... here.
15486 * grub-core/disk/ata_pthru.c: Contents moved to ...
15487 * grub-core/disk/pata.c: ... here.
15488 * grub-core/disk/scsi.c (grub_scsi_names): New array.
15489 (grub_scsi_iterate): Use grub_scsi_names.
15490 (grub_scsi_open): Likewise.
15491 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
15492 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
15493 (grub_ata_regs_t): New struct.
15494 (grub_disk_ata_pass_through_parms): Likewise.
15495 (grub_ata_device): Renamed to ...
15496 (grub_ata): ... this.
15497 (grub_ata_dev): New struct.
15498 Removed all low-level inline functions.
15499 * include/grub/scsi.h: Add PATA and AHCI subsystems.
15500 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
15501 iterate hooks and open. All users updated.
15502 * util/grub-install.in: Handle AHCI disk module.
15503
c31dc5f5
SJ
155042011-06-23 Szymon Janc <szymon@janc.net.pl>
15505
15506 Add support for DRI and RSTn markers in JPEG files.
15507
15508 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
15509 (JPEG_MARKER_RST0): Likewise.
15510 (JPEG_MARKER_RST1): Likewise.
15511 (JPEG_MARKER_RST2): Likewise.
15512 (JPEG_MARKER_RST3): Likewise.
15513 (JPEG_MARKER_RST4): Likewise.
15514 (JPEG_MARKER_RST5): Likewise.
15515 (JPEG_MARKER_RST6): Likewise.
15516 (JPEG_MARKER_RST7): Likewise.
15517 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
15518 (grub_jpeg_decode_dri): New function.
15519 (grub_jpeg_decode_sos): Move image data related part into
15520 grub_jpeg_decode_data function.
15521 (grub_jpeg_decode_data): New function.
15522 (grub_jpeg_reset): New function.
15523 (grub_jpeg_decode_jpeg): Handle new markers.
15524
fe12fd5b
VS
155252011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15526
15527 * util/ieee1275/ofpath.c (check_sas): Close fd.
15528 (main): Free of_path.
15529 Reported by: David Volgyes <dvolgyes>.
15530
03147f46
VS
155312011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15532
15533 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
15534 Reported by: David Volgyes <dvolgyes>.
15535
cad3237f
VS
155362011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15537
15538 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
15539 file after stat.
15540 Reported by: David Volgyes <dvolgyes>.
15541
13548d26
VS
155422011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15543
15544 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
15545
15546 Reported by: David Volgyes <dvolgyes>.
15547
e061a1b5
VS
155482011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15549
15550 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
15551 Prevent memory leak.
15552
1abe47dc
VS
155532011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15554
15555 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
15556 (main): Close file.
e061a1b5 15557 Reported by: David Volgyes <dvolgyes>.
1abe47dc 15558
fbc62666
VS
155592011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15560
15561 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
15562 to continue if allocation is failed.
15563
15564 Reported by: David Volgyes <dvolgyes>.
15565
e98c83e9
DV
155662011-06-23 David Volgyes <dvolgyes>
15567
15568 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
15569 dereference.
15570
a199a8cd
VS
155712011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15572
15573 Fix spurious warning.
15574
15575 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
15576 (acorn_partition_map_find): Use .bin member.
15577
e2d1dba0
VS
155782011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15579
15580 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
15581 /dev/root as a valid device.
15582
8a5d6919
JM
155832011-06-23 Jim Meyering <meyering@redhat.com>
15584
e2d1dba0
VS
15585 Avoid NULL deref in grub_device_open.
15586
8a5d6919
JM
15587 * grub-core/kern/device.c (grub_device_open): Don't dereference
15588 a NULL pointer upon failed grub_env_get.
15589
f7db6f4a
VS
155902011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15591
15592 Support non-512B sectors and agglomerate reads.
15593
15594 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
15595 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
15596 (disk_io_guid): Removed.
15597 (make_devices): Locate solely by BlockIO.
15598 (grub_efidisk_open): Fill log_sector_size and total_sectors.
15599 (grub_efidisk_read): Use read_blocks.
15600 (grub_efidisk_write): Use write_blocks.
15601 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
15602 log_sector_size.
15603 (get_safe_sectors): Handle non-512B sectors.
15604 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
15605 sectors.
15606 (grub_biosdisk_write): Handle non-512B sectors.
15607 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
15608 (grub_scsi_read): Remove special non-512B block handling (now handled
15609 one level up).
15610 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
15611 and do sanity checks.
15612 (grub_disk_adjust_range): Handle non-512B sectors.
15613 (transform_sector): New function.
15614 (grub_disk_read_small): Likewise.
15615 (grub_disk_read): Rewritten.
15616 (grub_disk_write): Handle non-512B sectors.
15617 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
15618 log_sector_size.
15619 (open_device): Use log_sector_size.
15620 (grub_util_biosdisk_read): Likewise.
15621 (grub_util_biosdisk_write): Likewise.
15622 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
15623 non-512B sectors.
15624 (pc_partition_map_embed): Likewise.
15625 * include/grub/disk.h (grub_disk): New field log_sector_size.
15626 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
15627 (GRUB_DISK_CACHE_BITS): Increased to 6.
15628 * util/grub-fstest.c (fstest): New command testload.
15629 (argp_parser): Likewise.
15630
881ac815
RM
156312011-06-16 Robert Millan <rmh@gnu.org>
15632
15633 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
15634 `ata' driver on kernel of FreeBSD 9.
15635
15636 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
15637 (get_ataraid_disk_name): New functions.
15638 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
15639 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
15640 get_ataraid_disk_name() and get_ada_disk_name().
15641
1e9aef7d
CW
156422011-06-13 Colin Watson <cjwatson@ubuntu.com>
15643
15644 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
15645 input format.
15646
351c7c8a
CW
156472011-05-29 Colin Watson <cjwatson@ubuntu.com>
15648
15649 * docs/grub.texi (Obtaining and Building GRUB): Substitute
15650 `ftp.gnu.org' for `alpha.gnu.org'.
15651
6b4e6430
CW
156522011-05-27 Colin Watson <cjwatson@ubuntu.com>
15653
15654 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
15655 partitions under /dev/disk/by-id/.
15656
c64db050
CW
156572011-05-27 Colin Watson <cjwatson@ubuntu.com>
15658
15659 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
15660 after ten consecutive open failures. Scanning all the way up to
15661 10000 is excessive and can cause serious performance problems in
15662 some configurations.
15663 Fixes Ubuntu bug #787461.
15664
245f4aba
VS
156652011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15666
15667 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
15668 opening new one.
15669
f767c929
VS
156702011-05-21 Colin Watson <cjwatson@ubuntu.com>
156712011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
15672
15673 Don't stat devices unless we have to.
15674
15675 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
15676 dir == /dev/mapper.
15677 (grub_guess_root_device): Use already known os_dev if possible.
15678 * grub-core/kern/emu/hostdisk.c
15679 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
15680 if device is known to be a dm one.
15681
f35fa3a6
CW
156822011-05-20 Colin Watson <cjwatson@ubuntu.com>
15683
15684 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
15685 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
15686 Reported by: Pawel Tecza.
15687
9a79fcf2
VS
156882011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
15691 (lsefisystab): Likewise.
15692 (lssal): Likewise.
15693 (lsefimmap): Likewise.
15694 (hdparm): Enable on qemu-mips.
15695 (setjmp): Add ia64 nodist.
15696 (serial): Simplify tags.
15697
63e3eea9
CW
156982011-05-18 Colin Watson <cjwatson@ubuntu.com>
15699
15700 * Makefile.util.def (grub-ofpathname): Install manual page.
15701
09728256
CW
157022011-05-18 Colin Watson <cjwatson@ubuntu.com>
15703
15704 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
15705
8b63a142
CW
157062011-05-18 Colin Watson <cjwatson@ubuntu.com>
15707
15708 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
15709
e775d8ed
VS
157102011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15711
15712 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
15713 into dprintf.
15714
bf947d36
VS
157152011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15716
15717 Use full 64-bit division.
15718
15719 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
15720 (grub_divmod64): ... this.
15721 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
15722 version.
15723
b84f26c5
CW
157242011-05-18 Colin Watson <cjwatson@ubuntu.com>
15725
15726 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
15727 `source'.
15728
5626056f
CW
157292011-05-18 Colin Watson <cjwatson@ubuntu.com>
15730
15731 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
15732 to avoid accidents when debugging with 'sh -x'.
15733 * grub-core/gensyminfo.sh.in: Likewise.
15734 * tests/example_scripted_test.in: Likewise.
15735 * tests/grub_cmd_regexp.in: Likewise.
15736 * tests/grub_script_blanklines.in: Likewise.
15737 * tests/grub_script_dollar.in: Likewise.
15738 * tests/grub_script_expansion.in: Likewise.
15739 * tests/grub_script_final_semicolon.in: Likewise.
15740 * tests/partmap_test.in: Likewise.
15741 * tests/util/grub-shell-tester.in: Likewise.
15742 * tests/util/grub-shell.in: Likewise.
15743
e2965f4a
CW
157442011-05-18 Colin Watson <cjwatson@ubuntu.com>
15745
15746 Move gfxmenu color handling to video, so that gfxterm can use it
15747 too.
15748
15749 * grub-core/gfxmenu/named_colors.c: Move to ...
15750 * grub-core/video/colors.c: ... here. Rename
15751 grub_gui_get_named_color to grub_video_get_named_color.
15752 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
15753 * grub-core/video/colors.c (my_isxdigit): ... here.
15754 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
15755 Move to ...
15756 * grub-core/video/colors.c (parse_hex_color_component): ... here.
15757 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
15758 to ...
15759 * grub-core/video/colors.c (grub_video_parse_color): ... here.
15760
15761 * include/grub/gui.h (grub_gui_color_t): Move to ...
15762 * include/grub/video.h (grub_video_rgba_color_t): ... here.
15763 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
15764 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
15765 * include/grub/gui.h (grub_gui_map_color): Move to ...
15766 * include/grub/video.h (grub_video_map_rgba_color): ... here.
15767 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
15768 to ...
15769 * include/grub/video.h (grub_video_get_named_color): ... here.
15770 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
15771 * include/grub/video.h (grub_video_parse_color): ... here.
15772
15773 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
15774 video/colors.c.
15775 (gfxmenu): Remove gfxmenu/named_colors.c.
15776 (video) [videomodules]: Add video/colors.c.
15777
15778 Add a background_color command.
15779
15780 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
15781 function.
15782 (GRUB_MOD_INIT): Register background_color command.
15783 (GRUB_MOD_FINI): Unregister background_color command.
15784 (redraw_screen_rect): Allow blend/replace of text layer to be
15785 controlled independently from whether there is a background bitmap.
15786 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
15787 changing bitmap.
15788
1e4b4390
VS
157892011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15790
26618ff0
VS
15791 Patch BPB in ntldr and chainloader --bpb.
15792
1e4b4390
VS
15793 * grub-core/fs/fat.c: Include grub/fat.h.
15794 (grub_fat_bpb): Moved to ...
15795 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
15796 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
15797 grub/ntfs.h.
15798 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
15799 Moved from here...
15800 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
15801 here.
15802 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
15803 New function.
15804 (grub_chainloader_cmd): Patch BPB if --bpb is given.
15805 (GRUB_MOD_INIT): Show --bpb.
15806 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
15807 * grub-core/normal/main.c (features): New variable.
15808 (GRUB_MOD_INIT): Set feature_* variables.
15809 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
15810 proto.
15811 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
15812
cf02731e
VS
158132011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15814
15815 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
15816 for cleanness.
15817
e3a1073f
VS
158182011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15819
15820 FreeDOS direct loading support.
15821
15822 * docs/grub.texi (Supported OS): Add FreeDOS.
15823 * grub-core/Makefile.core.def (freedos): New module.
15824 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
15825 variable.
15826 (grub_relocator16_boot): Handle %ebx.
15827 * grub-core/lib/i386/relocator16.S: Likewise.
15828 * grub-core/loader/i386/pc/freedos.c: New file.
15829
05caa461
VS
158302011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15831
15832 Long Linux command line support.
15833
15834 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15835 (maximal_cmdline_size): New variable.
15836 (allocate_pages): Use maximal_cmdline_size.
15837 (grub_cmd_linux): Set and use maximal_cmdline_size.
15838 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
15839 (allocate_pages): Use maximal_cmdline_size.
15840 (grub_cmd_linux): Set and use maximal_cmdline_size.
15841 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
15842 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
15843 and cmdline_size.
15844
a2491e23
VS
158452011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
158462011-05-18 Colin Watson <cjwatson@ubuntu.com>
15847
15848 Improve devmapper support
15849
15850 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
15851 (grub_util_is_lvm): New function.
15852 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
15853 than lvm if not dmraid.
15854 Handle mapped md nodes.
15855 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
15856 (grub_util_device_is_mapped): ... this. Make always available. All users
15857 updated.
15858 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
15859 (convert_system_partition_to_system_disk): Handle lvm, mpath and
15860 dmraid nodes.
15861 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
15862
6ad6223e
VS
158632011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
15864
15865 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
15866
15867 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
15868 * grub-core/modinfo.sh.in: New file.
15869 * grub-core/Makefile.core.def (modinfo.sh): New script.
15870 * util/grub-mknetdir.in: Use modinfo.sh.
15871 * util/grub-mkrescue.in: Likewise.
15872
543a8f6e
VS
158732011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15874
15875 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
15876 Fix potential usage of Elf32 instead of Elf64 when compiling on
15877 32-bit architecture. Add endianness macros while on it.
15878
4959e111
VS
158792011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15880
15881 Use mipsel- rather than mips- in directories involving mipsel ports to
15882 allow both endiannesses coexist.
15883
15884 * configure.ac: proparate target_cpu=mipsel rather than resetting to
15885 mips. All conditions adjusted.
15886 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
15887 variable.
15888 * util/grub-install.in: Adjust conditions to take renaming into account.
15889 * util/grub-mkimage.c (image_targets): Likewise. New target
15890 mips-qemu_mips-elf for bigendian mips.
15891
35341bbc
VS
158922011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15893
15894 Avoid unnecessary copying on MIPS.
15895
15896 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
15897 early if src == dest.
15898 * util/grub-mkimage.c (generate_image): Arange for src == dest if
15899 compression is none.
15900
b772baed
VS
159012011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15902
15903 Reduce memory footprint on SGI by putting modules before the kernel
15904 as opposed to after.
15905
15906 * grub-core/Makefile.core.def (kernel): Increase linking address.
15907 (none_decompress): Likewise.
15908 (xz_decompress): Likewise.
15909 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
15910 address.
15911 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
15912 layout change.
15913 (grub_arch_modules_addr): New function.
15914 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
15915 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
15916 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
15917 here.
15918 * grub-core/kern/mips/startup.S (total_size): Rename to ...
15919 (grub_total_modules_size): ... this. Make global.
15920 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
15921 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
15922 New definition.
15923 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
15924 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
15925 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
15926 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
15927 * util/grub-mkimage.c (image_target_desc): New flag
15928 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
15929 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
15930 (generate_image): Handle images with modules before kernel.
15931
566a1917
VS
159322011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15933
15934 Prevent potential loss of memory map by overwrite on qemu-mips.
15935
15936 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
15937 Save ram size in $s4.
15938 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
15939 All users changed to grub_arch_memsize.
15940 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
15941 Loongson.
15942 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
15943 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
15944 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
15945 external variable.
15946
5d420cd9
CW
159472011-05-17 Colin Watson <cjwatson@ubuntu.com>
15948
15949 * .bzrignore: Remove grub-dumpbios.
15950
d064b830
CW
159512011-05-17 Colin Watson <cjwatson@ubuntu.com>
15952
15953 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
15954 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
15955 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
15956 existing options which append).
15957 * docs/grub.texi (Simple configuration): Document new options.
15958 Reported by: Ian Jackson. Fixes Debian bug #617538.
15959
3ca2b466
CW
159602011-05-17 Colin Watson <cjwatson@ubuntu.com>
15961
15962 * util/grub-fstest.c (cmd_cat): New function.
15963 (fstest): Handle CMD_CAT.
15964 (options): Add cat.
15965 (argp_parser): Handle cat.
15966
24c9143a
CW
159672011-05-17 Colin Watson <cjwatson@ubuntu.com>
15968
15969 * Makefile.util.def (grub-bin2h): Don't install.
15970 * docs/man/grub-bin2h.h2m: Remove.
15971
90f7ac19
VS
159722011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15973
15974 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
15975 place.
15976
8d4a5178
VS
159772011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
15978
15979 Reenable qemu-mips port.
15980
15981 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
15982 Fix small arc bug while on it.
15983 * gentpl.py: Handle qemu_mips.
15984 * grub-core/Makefile.am: Likewise.
15985 * grub-core/Makefile.core.def: Likewise.
15986 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
15987 inappropriate includes.
15988 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
15989 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
15990 * grub-core/kern/main.c (grub_modules_get_end)
15991 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
15992 * grub-core/kern/mips/qemu-mips: Moved to ..
15993 * grub-core/kern/mips/qemu_mips: ... this.
15994 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
15995 (grub_machine_init): Call terminfo_init and serial_init.
15996 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
15997 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
15998 New variable.
15999 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
16000 parameter passing.
16001 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
16002 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
16003 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
16004 * include/grub/mips/qemu_mips/cmos.h: New file.
16005 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
16006 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
16007 Removed.
16008 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
16009 Use correct mips-style address.
16010 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
16011 (GRUB_TICKS_PER_SECOND): Removed.
16012 (grub_get_rtc): Likewise.
16013 (grub_cpu_idle): Likewise.
16014 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
16015 New definition.
16016 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
16017 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
16018 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
16019 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
16020 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16021 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16022 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
16023 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
16024
400b9371
VS
160252011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16026
16027 SGI ARCS port.
16028
16029 * Makefile.util.def (libgrubmods.a): Add dvh.c.
16030 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
16031 platforms.
16032 * configure.ac: New target mips-arc.
16033 * gentpl.py: Likewise.
16034 * grub-core/Makefile.am: Likewise.
16035 * grub-core/Makefile.core.def: Likewise.
16036 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
16037 (none_decompress): Likewise.
16038 (lsdev): New module.
16039 (datetime): Use lib/arc/datetime.c on ARC.
16040 (part_dvh): New module.
16041 * grub-core/commands/arc/lsdev.c: New file.
16042 * grub-core/disk/arc/arcdisk.c: Likewise.
16043 * grub-core/kern/mips/arc/init.c: Likewise.
16044 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
16045 aligned addresses.
16046 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
16047 support.
16048 (grub_arch_dl_relocate_symbols): Likewise.
16049 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
16050 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
16051 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
16052 platforms.
16053 * grub-core/lib/arc/datetime.c: New file.
16054 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
16055 pci.h on non-loongson.
16056 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
16057 (grub_linux_boot): Set unused registers to 0.
16058 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
16059 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
16060 * grub-core/mmap/mips/uppermem.c: ...here.
16061 * grub-core/partmap/dvh.c: New file.
16062 * grub-core/term/arc/console.c: Likewise.
16063 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
16064 (grub_terminfo_set_current): Add terminal "arc".
16065 (grub_terminfo_readkey): Support ARC sequences.
16066 * include/grub/arc/arc.h: New file.
16067 * include/grub/arc/console.h: Likewise.
16068 * include/grub/disk.h (grub_disk_dev_id): Add
16069 GRUB_DISK_DEVICE_ARCDISK_ID.
16070 * include/grub/mips/arc/kernel.h: New file.
16071 * include/grub/mips/arc/memory.h: Likewise.
16072 * include/grub/mips/arc/time.h: Likewise.
16073 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
16074 * include/grub/mips/kernel.h (grub_halt): ... here.
16075 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
16076 here...
16077 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
16078 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
16079 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
16080 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
16081 proto.
16082 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
16083 from here ...
16084 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
16085 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
16086 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
16087 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
16088 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
16089 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
16090 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
16091 (grub_phys_addr_t): Moved from here ...
16092 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
16093 (grub_vtop): Moved from here ...
16094 * include/grub/mips/memory.h (grub_vtop): ... here.
16095 (grub_map_memory): Moved from here ...
16096 * include/grub/mips/memory.h (grub_map_memory): ... here.
16097 (grub_unmap_memory): Moved from here ...
16098 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
16099 (grub_machine_mmap_iterate): Moved from here ...
16100 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
16101 (grub_mmap_get_lower): Moved from here ...
16102 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
16103 (grub_mmap_get_upper): Moved from here ...
16104 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
16105 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16106 here ...
16107 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16108 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
16109 here ...
16110 * include/grub/mips/time.h (grub_get_rtc): ... here.
16111 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16112 here ...
16113 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16114 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
16115 here ...
16116 * include/grub/mips/time.h (grub_cpu_idle): ... here.
16117 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
16118 definition.
16119 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
16120 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
16121 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
16122 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
16123 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16124 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16125 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
16126 (GRUB_MACHINE_LINK_ADDR): Likewise.
16127 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
16128 to 6.
16129 * util/grub-install.in: Run dvhtool on ARC.
16130 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 16131 (generate_image): Handle ECOFF output for mips-arc.
400b9371 16132
c8ecc840
VS
161332011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16134
16135 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
16136 blocks.
16137
153a4b55
VS
161382011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16139
16140 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
16141 after enabling port.
16142
ff44d107
VS
161432011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16144
16145 Skip incorrect USB devices.
16146
16147 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
16148 configcnt == 0.
16149 * include/grub/usb.h (grub_usb_err_t): New enum value
16150 GRUB_USB_ERR_BADDEVICE.
16151
638dbe4f
VS
161522011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16153
16154 Fuloong video init support.
16155
16156 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
16157 well.
16158 (grub_vga_read_arx): New function.
16159 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
16160 definition.
16161 (framebuffer): New members io, mmioptr and mmiobase.
16162 (read_sis_cmd): New function.
16163 (write_sis_cmd): Likewise.
16164 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
16165 rather than 640x400.
16166 * grub-core/video/sis315_init.c: New file.
16167
c3fc520c
VS
161682011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16169
16170 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
16171 non-loongson.
16172 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
16173 to grub_dl_register_symbol.
16174
67b1e5c9
VS
161752011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16176
16177 Fix compilation errors.
16178
16179 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
16180 potentially unused.
16181 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
16182 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
16183 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
16184 to loongson machines.
16185
b756f75f
VS
161862011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16187
16188 Several FS mtime support.
16189
16190 * grub-core/fs/affs.c (grub_affs_time): New struct.
16191 (grub_affs_file): New field mtime.
16192 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
16193 type. Removed 'size'. New field 'di'. All users updated.
16194 (grub_affs_mount): Simplify checsum checking.
16195 (grub_affs_iterate_dir): New helper grub_affs_create_node.
16196 (grub_affs_dir): Handle mtime.
16197 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
16198 (grub_cpio_dir): Likewise.
16199 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
16200 (grub_hfs_filerec): New field mtime.
16201 (grub_hfs_dir): Handle mtime.
16202 (grub_hfs_mtime): New function.
16203 (grub_hfs_fs): Register grub_hfs_mtime.
16204 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
16205 (grub_iso9660_dir): New field mtime.
16206 (grub_fshelp_node): New field dirent.
16207 (iso9660_to_unixtime): New function.
16208 (iso9660_to_unixtime2): Likewise.
16209 (grub_iso9660_read_symlink): Use node->dirent.
16210 (grub_iso9660_iterate_dir): Likewise.
16211 (grub_iso9660_dir): Set mtime.
16212 (grub_iso9660_mtime): New function.
16213 (grub_iso9660_fs): Register grub_iso9660_mtime.
16214 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
16215 (grub_jfs_inode): New fields atime, ctime and mtime.
16216 (grub_jfs_dir): Set mtime.
16217 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
16218 * grub-core/fs/ntfs.c (list_file): Set mtime.
16219 (grub_ntfs_dir): Likewise.
16220 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
16221 (grub_reiserfs_iterate_dir): Set mtime.
16222 (grub_reiserfs_dir): Likewise.
16223 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
16224 (grub_fshelp_node): Likewise.
16225 (grub_sfs_iterate_dir): Set mtime.
16226 (grub_sfs_dir): Likewise.
16227 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
16228 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
16229 (grub_xfs_inode): New fields atime, mtime, ctime.
16230 (grub_xfs_dir): Set mtime.
16231 * include/grub/datetime.h (grub_datetime2unixtime): New function.
16232 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
16233 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
16234
16235 Support UDF symlinks.
16236
16237 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
16238 (grub_ufs_read_symlink): New function. All users updated.
16239
16240 Check amiga partmap checksum.
16241
16242 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
16243 (grub_amiga_partition): Likewise.
16244 (amiga_partition_map_checksum): New function.
16245 (amiga_partition_map_iterate): Check checksum.
16246
5470225d
VS
162472011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16248
16249 ROMFS support.
16250
16251 * Makefile.util.def (libgrubmods.a): Add romfs.
16252 * grub-core/Makefile.core.def (romfs): New module.
16253 * grub-core/fs/romfs.c: New file.
16254
d4680a35
VS
162552011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16256
16257 Squashfs v4 support.
16258
16259 * Makefile.util.def (libgrubmods.a): Add squash4.
16260 * grub-core/Makefile.core.def (squash4): New module.
16261 * grub-core/fs/squash4.c: New file.
16262 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
16263 disk_input_start, disk_input.
16264 (get_byte): Handle disk_input.
16265 (grub_zlib_disk_read): New function.
16266 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
16267
bcb18e74
FZ
162682011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
162692011-05-15 Feiran Zheng <famcool@gmail.com>
16270
16271 * Makefile.util.def (libgrubmods.a): Add minix3.
16272 * grub-core/Makefile.core.def (minix3): New module.
16273 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
16274 (GRUB_MINIX_BSIZE): Removed.
16275 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
16276 (grub_minix_ino_t): New type.
16277 (grub_minix_le_to_cpu_ino): New macro.
16278 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
16279 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
16280 (grub_minix_data): New field block_size.
16281 (grub_minix_read_file): Handle 64-bit correctly.
16282 * grub-core/fs/minix3.c: New file.
16283
32297d5f
TG
162842011-05-15 Tristan Gingold <gingold@free.fr>
162852011-05-15 Robert Millan <rmh.grub@aybabtu.com>
162862011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16287
16288 IA64 support.
16289
16290 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
16291 * configure.ac: Add ia64-efi target.
16292 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
16293 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
16294 * gentpl.py: Add ia64_efi platform.
16295 Rename x86_efi to efi and Add ia64-efi. All users updated.
16296 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
16297 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
16298 Remove kern/generic/rtc_get_time_ms.c on EFI.
16299 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
16300 kern/ia64/dl_helper.c on ia64-efi.
16301 Add kern/emu/cache.c on emu.
16302 (linux): Use on loader/ia64/efi/linux.c on ia64.
16303 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
16304 whether symbol is a function.
16305 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
16306 (grub_symbol): New field 'isfunc'.
16307 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
16308 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
16309 (grub_dl_load_segments): Place all sections into the same region.
16310 [__ia64__]: Create trampolines and got.
16311 [GRUB_MACHINE_EMU]: Call mprotect.
16312 (grub_dl_resolve_symbols): Resolve symbol type as well.
16313 [__ia64__]: Create function descriptors.
16314 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
16315 (grub_rtc_get_time_ms): ... this. Expressions simplified.
16316 (grub_get_rtc): New function.
16317 * grub-core/kern/emu/cache.c [__ia64__]: New file.
16318 * grub-core/kern/emu/cache.S: Renamed to ...
16319 * grub-core/kern/emu/cache_s.S: ... this.
16320 [__ia64__]: Add a nop.
16321 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
16322 [__ia64__]: New function.
16323 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
16324 * grub-core/kern/ia64/dl.c: New file.
16325 * grub-core/kern/ia64/dl_helper.c: Likewise.
16326 * grub-core/kern/ia64/efi/init.c: New file.
16327 * grub-core/kern/ia64/efi/startup.S: Likewise.
16328 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
16329 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
16330 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
16331 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
16332 * grub-core/loader/ia64/efi/linux.c: New file.
16333 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
16334 (GRUB_MOD_DEP): Likewise.
16335 (grub_dl) [__ia64__]: New fields got and tramp.
16336 (grub_dl): New field 'base'.
16337 (grub_dl_register_symbol): New argument isfunc. All users updated.
16338 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
16339 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
16340 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
16341 (grub_ia64_dl_get_tramp_got_size): New proto.
16342 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
16343 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
16344 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
16345 * include/grub/efi/api.h: Skip call wrappers on ia64.
16346 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
16347 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
16348 * include/grub/elf.h (ELF_ST_INFO): New definition.
16349 * include/grub/ia64/efi/kernel.h: New file.
16350 * include/grub/ia64/efi/memory.h: Likewise.
16351 * include/grub/ia64/efi/time.h: Likewise.
16352 * include/grub/ia64/kernel.h: Likewise.
16353 * include/grub/ia64/setjmp.h: Likewise (from glibc).
16354 * include/grub/ia64/time.h: New file.
16355 * include/grub/ia64/types.h: Likewise.
16356 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
16357 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
16358 New protos.
16359 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
16360 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16361 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
16362 * util/grub-mkimage.c (image_target_desc): New field pe_target.
16363 All users updated.
16364 (EFI64_HEADER_SIZE): New definition. All users updated.
16365 (image_targets): Add ia64-efi.
16366 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
16367 jumpers_addr. All users updated.
16368 Create function descriptors.
16369 (count_funcs): New function.
16370 (unaligned_uint32): New struct.
16371 (MASK20): New definition.
16372 (MASK19): Likewise.
16373 (MASKF21): Likewise.
16374 (add_value_to_slot_20b): New function.
16375 (add_value_to_slot_21_real): Likewise.
16376 (add_value_to_slot_21): Likewise.
16377 (ia64_kernel_trampoline): New struct.
16378 (nopm): New variable.
16379 (jump): Likewise.
16380 (make_trampoline): New function.
16381 (relocate_addresses): Handle ia64.
16382 (make_reloc_section): Likewise.
16383 (load_image): Likewise.
16384
983b414d
VS
163852011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16386
16387 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
16388 warning. Move variables before code while on it.
16389
5d063cdc
VS
163902011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16391
16392 Fuloong support.
16393
16394 * configure.ac: Rename yeeloong platform to loongson. All users updated.
16395 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
16396 * grub-core/boot/mips/loongson/fuloong.S: New file.
16397 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
16398 Explicitly init CS5536.
16399 [FULOONG]: Don't use serial until CS5536 is available.
16400 Set GPIO based on dumps.
16401 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
16402 [FULOONG]: Handle GPIO and memory controller differences.
16403 Parse machine type in $a2.
16404 * grub-core/boot/mips/startup_raw.S: Determine and save the
16405 architecture.
16406 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
16407 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
16408 init on architecture type.
16409 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16410 SIS315E. Don't init at_keyboard on fuloong.
16411 (grub_halt): Support Fuloong.
16412 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
16413 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
16414 (loongson_machtypes): New array.
16415 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
16416 type.
16417 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
16418 config. All users updated. Handle CS5536 serial.
16419 * grub-core/term/serial.c (grub_serial_register): Conditionalise
16420 default port on machine type. Register serial as inactive.
16421 * grub-core/video/sis315pro.c: New file.
16422 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
16423 definition.
16424 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
16425 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
16426 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
16427 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
16428 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
16429 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
16430 to ...
16431 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
16432 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
16433 definition.
16434 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
16435 (grub_arch_machine): New extern var.
16436 * include/grub/mips/loongson/serial.h
16437 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
16438 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
16439 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
16440 (GRUB_MACHINE_SERIAL_PORT0): ... this.
16441 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
16442 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
16443 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
16444 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
16445 * include/grub/term.h (grub_term_register_input_inactive): New inline
16446 function.
16447 (grub_term_register_output_inactive): Likewise.
16448 * include/grub/video.h (grub_video_driver_id): New value
16449 GRUB_VIDEO_DRIVER_SIS315PRO.
16450 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
16451 New field "names". All users updated.
16452 New field value IMAGE_FULOONG_FLASH.
16453 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
16454
6ada82d1
JU
164552011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
16456
16457 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
16458 and add some clarification.
16459
90c571a4
VS
164602011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16461
16462 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
16463 platforms if kernel is compressed.
16464
de04eecf
VS
164652011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16466
16467 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
16468 unused modules since currently referrence counter isn't reliable and
16469 there isn't much memory to recover there anyway.
16470
57688121
VS
164712011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16472
16473 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
16474 rather than resetting it to allow modules to reference themselves
16475 in init.
16476
3d2c7e35
VS
164772011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16478
16479 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
16480 counter on dependencies since grub_dl_unref already handles this.
16481
b25db218
VS
164822011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16483
16484 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
16485 on error if not already done.
16486
25a45338
VS
164872011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16488
16489 Fix few potential memory misusage.
16490
16491 * grub-core/font/font.c (load_font_index): Don't free char_index to
16492 avoid double free.
b25db218
VS
16493 (grub_font_load): Zero-fill font at alloc for safety.
16494 Close file on error.
16495 (free_font): Free bmp_idx.
25a45338 16496
0cac83df
VS
164972011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16498
16499 * docs/grub.texi (Installation): Fix several outdated claims.
16500
2217a143
VS
165012011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16502
16503 Handle module_license on windows.
16504
16505 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
16506 sections shifted.
16507 (insert_string): Make argument const char * instead of char *.
16508 (write_section_data): Handle long section names.
16509 Handle module_license.
16510
d4de6b01
VS
165112011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16512
16513 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
16514 handle class-free menuentries.
16515 (grub_normal_add_menu_entry): Add a check to be sure.
16516
4c2a3b43
VS
165172011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16518
16519 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
16520 PgUp and PgDown.
16521
85c6210f
VS
165222011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16523
16524 * configure.ac: Bump version to 1.99.
16525
36084912
VS
165262011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16527
16528 Give ATA device a bit more time on first try in order to allow disks
16529 to spin up.
16530
16531 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
16532 if dev->present is 1. Reset dev->present on failure.
16533 (grub_ata_device_initialize): Set dev->present to 1.
16534 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
16535 (grub_ata_device): New member 'present'.
16536
bda0e219
VS
165372011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16538
16539 * util/grub-mkimage.c (generate_image): Update hash.
16540
19e1c41b
VS
165412011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16542
16543 Flush caches on DMA memory.
16544
16545 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
16546 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
16547 (grub_dma_free): Likewise.
16548 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
16549
91bbcc0c
VS
165502011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16551
16552 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
16553 to avoid asm treating ld and sd as macros.
16554
60ddfad3
VS
165552011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16556
16557 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
16558 decompressor.
16559
a298aa04
VS
165602011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16561
16562 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
16563 grub_decompress_core since later would fail if grub_decompress_core
16564 is too far.
16565
9b44feca
VS
165662011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16567
16568 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
16569 R_MIPS_JALR since it's used by newer compiler.
16570
56dbe7b4
VS
165712011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
16572
16573 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
16574
52856af2
VS
165752011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16576
16577 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
16578 file_path to 0 for surety.
16579 (grub_chainloader_boot): Set exit_data to NULL.
16580 Unset the loader once done.
16581 (grub_cmd_chainloader): Fix confusing error message if file is empty.
16582
9c9bfc6d
VS
165832011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16584
16585 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
16586 unknown key into a dprintf.
16587
dd94a3df
VS
165882011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16589
16590 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
16591 on first non-existant partition.
16592
fa68d99c
VS
165932011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16594
16595 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
16596 openning fails.
16597 Reported by: Mark Korenberg.
16598
157effb7
VS
165992011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16600
16601 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
16602 overflow.
16603
ea75312f
VS
166042011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
16605
16606 * util/grub-mkimage.c (main): Explicitely flush and sync the output
16607 before closing to ensure that it will be readable by grub-setup.
16608
072b5d31
VS
166092011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16610
16611 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
16612 (devpath_1): Use MAKE_PIWG_PATH.
16613 (devpath_2): Likewise.
16614 (devpath_3): Likewise.
16615 (devpath_4): Likewise.
16616 (devpath_5): Likewise.
16617 (devpath_6): Likewise.
16618
16619 The appleldr.mod was checked that to be binary identical to previous
16620 version.
16621
7fae0051
Z
166222011-05-05 Zach <mikezackles>
16623
16624 Support 2010 Macbooks.
16625
16626 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
16627 (devs): Add devpath_6.
16628
7c515bee
VS
166292011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16630
16631 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
16632 /dev/random. /dev/urandom is good enough for our purposes (salting).
16633
ed660bd8
VS
166342011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16635
16636 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
16637
ee5614b7
VS
166382011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16639
16640 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
16641 hexadecimal.
16642
664889a6
VS
166432011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
16644
16645 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
16646 and not 0 on failure.
16647
bd405bbc
CW
166482011-05-03 Colin Watson <cjwatson@ubuntu.com>
16649
16650 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
16651 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
16652 disk; otherwise grub_fs_probe will not fall back to the next
16653 filesystem.
16654 (grub_pxefs_open): Likewise, for consistency.
16655 Reported and tested by: Ezekiel Grave.
16656
4ebff753
CW
166572011-05-03 Colin Watson <cjwatson@ubuntu.com>
16658
16659 * tests/partmap_test.in: Don't hardcode path to parted.
16660 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
16661
8f942553
CW
166622011-05-01 Colin Watson <cjwatson@ubuntu.com>
16663
16664 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
16665 of `ls' to find out which devices are available.
16666
3c62402d
VS
166672011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16668
16669 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
16670 than source address for efi mmap buffer.
16671
723f63f2
VS
166722011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16673
16674 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
16675 wrong action on non-detecting the magic.
16676
68797f92
VS
166772011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16678
16679 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
16680 already supplied by another part of the module (fixes compilation on
16681 FreeBSD).
16682
6be8715d
VS
166832011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
16684
16685 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
16686 match the one used by mdadm.
16687
e91dba5b
CW
166882011-04-21 Colin Watson <cjwatson@ubuntu.com>
16689
16690 * po/README: Add instructions for creating po/LINGUAS.
16691
c85140b3
CW
166922011-04-21 Colin Watson <cjwatson@ubuntu.com>
16693
16694 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
16695 #551428.
16696
16697 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
16698 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
16699 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
16700 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
16701 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
16702 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
16703 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
16704 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
16705 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
16706 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
16707 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
16708 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
16709 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
16710 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
16711 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
16712 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
16713 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
16714 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
16715 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
16716 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
16717 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
16718 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
16719
92051871
CW
167202011-04-21 Colin Watson <cjwatson@ubuntu.com>
16721
16722 * grub-core/kern/emu/getroot.c
16723 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
16724 test that was incorrectly reintroduced in r3214.
16725 Reported by: Ian Dall. Fixes Savannah bug #33133.
16726
b13f79a4
CW
167272011-04-21 Colin Watson <cjwatson@ubuntu.com>
16728
16729 Fix stack pointer handling in 16-bit relocator.
16730
16731 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
16732 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
16733 Fixes Ubuntu bug #683904.
16734
9b710a88
VS
167352011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16736
16737 * configure.ac: Bump version to 1.99~rc2.
16738
d97e7b59
VS
167392011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16740
16741 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
16742 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
16743 * grub-core/lib/x86_64/setjmp.S: Likewise.
16744 * grub-core/lib/mips/setjmp.S: Likewise.
16745 * grub-core/lib/powerpc/setjmp.S: Likewise.
16746 * grub-core/lib/sparc64/setjmp.S: Likewise.
16747
0624551c
VS
167482011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
16749
16750 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
16751 * grub-core/lib/efi/datetime.c: Likewise.
16752
e8f28d4c
VS
167532011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16754
16755 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
16756 New function.
16757 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
16758 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
16759 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
16760
bba79a15
VS
167612011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16762
16763 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
16764 bitmap.
16765 (grub_gfxterm_term_init): Likewise.
16766
abc474ef
VS
167672011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
16768
16769 Take into account the decorations the computing menu entry width.
16770
16771 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
16772 (grub_gfxmenu_create_box): Register get_border_width.
16773 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
16774 if available.
16775 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
16776 get_border_width.
16777
e74b3947
EP
167782011-04-18 Endres Puschner <code@e7p.de>
16779
16780 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
16781 Don't skip first class.
16782
34faa595
VS
167832011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16784
16785 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
16786 chunks.
16787 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
16788
93a777e3
VS
167892011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16790
16791 Complete 64-bit division support.
16792
16793 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
16794 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
16795 * include/grub/misc.h (grub_divmod64): Rename to ...
16796 (grub_divmod64_full): ... this.
16797 (grub_divmod64): New inline function.
16798
a5102d94
VS
167992011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16800
16801 * util/grub-mkimage.c (generate_image): Add forgotten comma.
16802
f3fb7b36
VS
168032011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
16804
16805 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
16806 performing the necessary test.
16807
9ac718b0
VS
168082011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16809
16810 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
16811 (kfreebsd.elf): Likewise.
16812 (pc-chainloader.elf): Likewise.
16813 (ntldr.elf): Likewise.
16814
50d2cc5a
VS
168152011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
16816
16817 Identify RAID by its UUID rather than (guessed) name.
16818
16819 * grub-core/disk/raid.c (ascii2hex): New function.
16820 (grub_raid_open): Accept mduuid/%s specification.
16821 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
16822 (get_mdadm_uuid): ... this.
16823 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
16824
e03f7bea
VS
168252011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
16826
16827 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
16828 to negative size.
16829
e74c3112
CW
168302011-04-13 Colin Watson <cjwatson@ubuntu.com>
16831
16832 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
16833 btrfs subvolume.
16834 * util/grub.d/20_linux_xen.in: Likewise.
16835
78fa584f
CW
168362011-04-13 Colin Watson <cjwatson@ubuntu.com>
16837
16838 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
16839 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
16840
16841 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16842 Build a list of relevant visible mounts using the mnt_id and
16843 parent_mnt_id fields, and then scan that list at the end.
16844
9d5f8162
CW
168452011-04-12 Colin Watson <cjwatson@ubuntu.com>
16846
16847 * docs/grub.texi (normal): New section.
16848 (normal_exit): New section.
16849 (Embedded configuration): Add reference to normal.
16850 (GRUB only offers a rescue shell): Likewise.
16851 * docs/grub-dev.texi (Error Handling): Fix typo.
16852
09a9d66f
CW
168532011-04-12 Colin Watson <cjwatson@ubuntu.com>
16854
16855 * NEWS: Drop obsolete entry about probe-only btrfs support.
16856
0c676933
CW
168572011-04-12 Colin Watson <cjwatson@ubuntu.com>
16858
16859 * util/import_gcry.py: Fix typo.
16860
ec9f5e0d
VS
168612011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16862
16863 * NEWS: Add btrfs support.
16864
fe6b2cba
VS
168652011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
168662011-04-11 Colin Watson <cjwatson@ubuntu.com>
16867
16868 BtrFS support. Written by me (Vladimir) with important bugfixes and
16869 even more important testing by Colin.
16870
16871 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
16872 * grub-core/Makefile.core.def (btrfs): Add crc.c.
16873 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
16874 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
16875 mem_input_off and mem_input. All users updated to accept in-RAM input.
16876 (gzio_seek): New function.
16877 (test_zlib_header): Likewise.
16878 (grub_gzio_read): Likewise.
16879 (grub_zlib_decompress): Likewise.
16880 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
16881 Accept partial and non-virtual mounts.
16882 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
16883 avoid receiving /dev/dm-X as device.
16884 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
16885 Handle bind and partial mounts.
16886 * grub-core/lib/crc.c: New file.
16887 * include/grub/deflate.h: Likewise.
16888 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
16889 proto.
16890 * include/grub/lib/crc.h: New file.
16891
e745cf0c
VS
168922011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16893
16894 Implement automatic module license checking according to new GNU
16895 guidelines.
16896
16897 * grub-core/kern/dl.c (grub_dl_check_license): New function.
16898 (grub_dl_load_core): Use grub_dl_check_license.
16899 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
16900 (GRUB_MOD_LICENSE): Likewise.
16901 (GRUB_MOD_DUAL_LICENSE): Likewise.
16902 All modules updated.
16903
2a9bc016
CW
169042011-04-11 Colin Watson <cjwatson@ubuntu.com>
16905
16906 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
16907 reserved_first_sector to 1. btrfs reserves plenty of space for boot
16908 loaders.
16909 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
16910
8a3bc88e
VS
169112011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16912
16913 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
16914
af869a4a
VS
169152011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16916
16917 * util/grub-fstest.c (read_file): Report GRUB error if file opening
16918 failed.
16919
9ee8d94f
VS
169202011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 * grub-core/kern/file.c (grub_file_open): Don't take into account the
16923 parenthesis in the middle of the filename.
16924
b01abe3e
VS
169252011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16926
16927 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
16928 rather than trying to put initrd way too high.
16929 Reported by: Ryan Lortie <desrt@desrt.ca>
16930
335bda1e
VS
169312011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16932
16933 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
16934 improperly removed string.
16935
5ca1a64d
VS
169362011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16937
16938 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
16939 is_disk.
16940 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
16941 (open_device) Likewise.
16942 (grub_util_biosdisk_close): Likewise.
d8ce9995 16943 Reported by: Mark Korenberg.
5ca1a64d 16944
cbac5b1e
AK
169452011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
16946
16947 * util/grub-mkconfig_lib.in: Add missing quotes.
16948
088cdb65
CW
169492011-04-10 Colin Watson <cjwatson@ubuntu.com>
16950
16951 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
16952 is NULL.
16953
8b8a81fa
VS
169542011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16955
16956 Dynamically count the number of lines for the lower banner.
16957
16958 * grub-core/normal/menu_entry.c (per_term_screen): New member
16959 num_entries.
16960 (print_down): Use num_entries.
16961 (update_screen): Likewise.
16962 (grub_menu_entry_run): Set num_entries.
16963 * grub-core/normal/menu_text.c (menu_viewer_data): New member
16964 num_entries.
16965 (grub_print_message_indented): Move real part to ...
16966 (grub_print_message_indented_real): ... here. Additional argument
16967 dry_run.
16968 (draw_border): Additional argument num_entries.
16969 (print_message): Additional argument dry_run.
16970 (print_entries): Receive menu viewer data.
16971 (grub_menu_init_page): New argment num_entries.
16972 (menu_text_set_chosen_entry): Use num_entries.
16973 (grub_menu_try_text): Likewise.
16974 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
16975 All users updated.
16976 (grub_ucs4_count_lines): New function.
16977 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
16978 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
16979 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
16980 (grub_term_border_height): Likewise.
16981 (grub_term_num_entries): Likewise.
16982
277f955b
VS
169832011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
16984
16985 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
16986 Remove now unused string.
16987
536ce85a
CW
169882011-04-09 Colin Watson <cjwatson@ubuntu.com>
16989
16990 * docs/grub-dev.texi (Finding your way around): Update for 1.99
16991 build system.
16992 (Getting started): GRUB is developed in Bazaar now, not Subversion.
16993
16994 (Comment): Fix typo.
16995 (Getting started): General copy-editing.
16996 (Typical Development Experience): Likewise.
16997 (Error Handling): Likewise.
16998 (Video API): Likewise.
16999
2cf09e32
CW
170002011-04-09 Colin Watson <cjwatson@ubuntu.com>
17001
17002 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
17003 throughout.
17004
1ec652f4
VS
170052011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17006
17007 * util/grub-mkimage.c (main): Handle special naming of yeeloong
17008 directory.
17009
2c583728
CW
170102011-04-08 Colin Watson <cjwatson@ubuntu.com>
17011
17012 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
17013 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
17014 "development".
17015
d7a565e9
VS
170162011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17017
17018 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
17019 grub_strcpy since the lines aren't necessarily 0-terminated.
17020
7c2e4909
VS
170212011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17022
17023 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
17024 root on legacy.
17025
34c09785
VS
170262011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17027
17028 * grub-core/commands/probe.c (options): Argument to set isn't optional.
17029 (GRUB_MOD_INIT): DEVICE isn't optional.
17030
6a6f8058
VS
170312011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17032
17033 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
17034 word on new line if it's too long anyway. Fixes a hang.
17035
2e335e90
VS
170362011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17037
17038 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
17039 const.
17040 * util/grub-setup.c (main): Reuse md device name if available.
17041 * util/raid.c (grub_util_raid_getmembers): Receive device name and
17042 not GRUB name as argument.
17043 Based on patch by: Florian Wagner <fwagner>.
17044
10a7a867
VS
170452011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17046
17047 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17048 Place mbi on low memory for better compatibility.
17049
7a3d6cd9
VS
170502011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17051
17052 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
17053
18dd6b47
VS
170542011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
170552011-04-08 Colin Watson <cjwatson@ubuntu.com>
17056
17057 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 17058 * conf/Makefile.common: Likewise.
18dd6b47 17059
3c0e3f14
VS
170602011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17061
f7148863
VS
17062 * grub-core/normal/menu.c: Add missing include.
17063
170642011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17065
17066 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 17067
6d1fa41f
MZ
170682011-04-08 Martin Zuther <mzuther@mzuther.de>
17069
17070 * util/grub-mkconfig.in: Ignore emacsen backup.
17071
478182a8
VS
170722011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17073
17074 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
17075 on open.
17076 (grub_util_biosdisk_close): Likewise.
17077
72a89a54
VS
170782011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17079
17080 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
17081 const attribute and use grub_isdigit.
17082
b5ebecfa
A
170832011-04-06 Andrey <dev_null@ukr.net>
17084
17085 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
17086 gcc warning.
17087
7755f66e
VS
170882011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17089
17090 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
17091 useful grub_dprintf's.
17092
461121ff
VS
170932011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17094
17095 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
17096
2a961775
VS
170972011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17098
17099 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
17100
adf594cc
VS
171012011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17102
17103 Output errors if theme loading failed.
17104
17105 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
17106 grub_gfxterm_fullscreen on error paths to ...
17107 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
17108 theme loading error.
17109
665900a3
VS
171102011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17111
17112 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
17113 space for older compilers.
17114 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17115
a562b479
VS
171162011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17117
17118 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
17119 and report them as not RAID members since they are useless for GRUB.
17120 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17121
850e9373
VS
171222011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17123
17124 Increase LVM implementation robustness in order not to crash on
17125 configurations like pvmove. Previously code assumed that in some places
17126 only lvs or only pvs are used whereas it seems that they are used
17127 interchangeably.
17128
17129 * grub-core/disk/lvm.c (read_node): New function.
17130 (read_lv): Use read_node.
17131 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
17132 Match volumes only at the end when all lvs are found. Take both
17133 pvs (first) and lvs (second) into account.
17134 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
17135 mirror_* into node_*. All users updated.
17136 (grub_lvm_stripe): Merge this ...
17137 (grub_lvm_mirror): ... and this ...
17138 (grub_lvm_node): ... into this. All users updated.
17139
6f332153
VS
171402011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17141
17142 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
17143 of function to allow further scanning for LVMs.
17144
829ea451
VS
171452011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17146
17147 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
17148 on failed seek as it breaks open fd reusage.
17149
09ceb9a5
VS
171502011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17151
17152 * util/grub-install.in: Add a recommendation to use --recheck before
17153 reporting bugs.
17154
67e11623
VS
171552011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17156
17157 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
17158 are obtained.
17159
caee5efd
VS
171602011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17161
17162 GRUB developper manual based on existing Internals section and
17163 contributions by the various authors with active copyright assignment.
17164
17165 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
17166 * docs/font_char_metrics.png: New file.
17167 * docs/font_char_metrics.txt: Likewise.
17168 * docs/grub-dev.texi: Likewise.
17169 * docs/grub.texi (Internals): Move from here ...
17170 * docs/grub-dev.texi: ... here.
17171
2cccc747
CW
171722011-04-01 Colin Watson <cjwatson@ubuntu.com>
17173
17174 Store the loopback device as data on loopback grub_disk structures,
17175 rather than the file it points to. This fixes use of freed memory
17176 if an existing loopback device is replaced.
17177
17178 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
17179 disk->data, not dev->file.
17180 (grub_loopback_read): Adjust file assignment to match.
17181 Fixes Ubuntu bug #742967.
17182
186ae367
CW
171832011-04-01 Colin Watson <cjwatson@ubuntu.com>
17184
17185 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
17186 when replacing an existing device.
17187
cfed2ad0
VS
171882011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
17189
17190 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
17191 memory corruptions.
17192
17193 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
17194 unsigned.
17195 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
17196 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
17197 (grub_jfs_read_inode): Likewise.
17198 (grub_jfs_opendir): Likewise. Remove now useless casts.
17199 (grub_jfs_getent): Likewise.
17200 Make ino a grub_uint32_t rather than int.
17201 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
17202 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
17203 division and module with bit operations.
17204 (grub_jfs_find_file): Make ino a grub_uint32_t.
17205 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
17206
05d2ed32
CW
172072011-04-01 Colin Watson <cjwatson@ubuntu.com>
17208
17209 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
17210 warning. (This was in fact always initialised before use, but GCC
17211 wasn't smart enough to prove that.)
17212 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
17213
91dc6073
VS
172142011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17215
17216 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
17217 stack alignment.
17218 (efi_wrap_1): Likewise.
17219 (efi_wrap_2): Likewise.
17220 (efi_wrap_3): Likewise.
17221 (efi_wrap_4): Likewise.
17222 (efi_wrap_5): Likewise.
17223 (efi_wrap_6): Likewise.
17224 (efi_wrap_10): Likewise.
17225 Based on information by: Red Hat/Peter Jones.
17226
a8afc1d1
CW
172272011-03-31 Colin Watson <cjwatson@ubuntu.com>
17228
17229 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
17230 set-but-not-used variable.
17231
a826cc7d
CW
172322011-03-31 Colin Watson <cjwatson@ubuntu.com>
17233
17234 * docs/grub.texi (Simple configuration): Be more explicit about
17235 GRUB_DEFAULT, and add an example.
17236 Reported by: Leslie Rhorer.
17237
875b67ba
CW
172382011-03-30 Colin Watson <cjwatson@ubuntu.com>
17239
17240 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
17241 shell".
17242
fd7cd914
AS
172432011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17244
17245 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
17246 * util/grub.d/20_linux_xen.in: Likewise.
17247
090b1b6a
VS
172482011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17249
17250 * util/grub.d/10_linux.in: Try alternative config filenames where
17251 we parse config file.
17252 * util/grub.d/20_linux_xen.in: Likewise.
17253
baad885c
AS
172542011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17255
17256 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
17257 * util/grub.d/20_linux_xen.in: Likewise.
17258
241e41f5
VS
172592011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17260
17261 * grub-core/disk/raid.c (insert_array): Add few potentially
17262 useful grub_util_info.
17263 (grub_raid_register): Likewise.
17264
56445fb2
VS
172652011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17266
17267 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
17268 Preserve partition number in mdadm code path.
17269
c871b1c6
VS
172702011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17271
17272 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
17273 few potentially useful grub_util_info.
17274
5e631b4f
CW
172752011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17276
17277 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
17278
2d5d0333
CW
172792011-03-30 Colin Watson <cjwatson@ubuntu.com>
17280
17281 * docs/grub.texi (default): Use @example rather than nested
17282 itemized lists to avoid breaking gendocs.
17283
3d7ed04e
CW
172842011-03-30 Colin Watson <cjwatson@ubuntu.com>
17285
17286 * docs/grub.texi (Future): Update.
17287
abf04200 172882011-03-30 Colin Watson <cjwatson@ubuntu.com>
17289
17290 * docs/grub.texi (Environment): New chapter.
17291 (Changes from GRUB Legacy): Link to "Environment block" section for
17292 details of limitations.
17293 (Simple configuration): Likewise. Link to documentation of gfxmode
17294 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
17295 respectively.
17296 (Shell-like scripting): Note that normal variables are stored in the
17297 environment.
17298 (gettext): Link to documentation of lang and locale_dir.
17299 (list_env): New section.
17300 (load_env): New section.
17301 (save_env): New section.
17302
17303 (Reporting bugs): Fix typo.
17304
e1ad0edd
VS
173052011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17306
17307 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
17308 the example.
17309
5d803174
VS
173102011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17311
17312 * grub-core/term/at_keyboard.c (set_scancodes)
17313 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
17314
2a2da1d0
CW
173152011-03-30 Colin Watson <cjwatson@ubuntu.com>
17316
17317 * docs/grub.texi (Menu-specific commands): Remove some semantics
17318 that were true in GRUB Legacy but not in GRUB 2.
17319 (submenu): New section.
17320 (false): New section.
17321 (read): New section.
17322 (true): New section.
17323
a7527639
CW
173242011-03-30 Colin Watson <cjwatson@ubuntu.com>
17325
17326 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
17327
173282011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
17329
17330 * docs/grub.texi (Simple configuration): Explain some of the
17331 current limitations of grub-mkconfig.
8a748df2 17332 Reported by: Leslie Rhorer.
e30af029 17333
fc858482
VS
173342011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17335
17336 Old macs search for boot.efi rather than for bootia32.efi.
17337
17338 * util/grub-install.in: Copy bootia32.efi to boot.efi.
17339 * util/grub-mkrescue.in: Likewise.
17340 Suggested by: Peter Jones.
17341
e1eb511d
VS
173422011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17343
17344 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
17345
70e75364
VS
173462011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17347
17348 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
17349 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
17350 (grub_lvm_mirror): New struct.
17351 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
17352 (grub_lvm_iterate): Iterate only visible volumes.
17353 (grub_lvm_read): Factor out to ..
17354 (read_lv): ... this. Support mirrors.
17355 (grub_lvm_read): New wrapper function.
17356 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
17357 stripped or mirrored.
17358
fc18f6a3
VS
173592011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17360
17361 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
17362
5c650f4c
CW
173632011-03-29 Colin Watson <cjwatson@ubuntu.com>
17364
17365 * docs/grub.texi (loopback): New section.
17366
61d7156b
CW
173672011-03-29 Colin Watson <cjwatson@ubuntu.com>
17368
17369 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
17370 removed -p option.
17371
994b8264
CW
173722011-03-29 Colin Watson <cjwatson@ubuntu.com>
17373
17374 * docs/grub.texi (BIOS installation): New section, partly based on
17375 previous text in other sections.
17376 (Installing GRUB using grub-install): Replace BIOS discussion with a
17377 cross-reference.
17378 (Images): Likewise.
17379
9e4d19e0
VS
173802011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17381
17382 * grub-core/kern/emu/hostdisk.c (find_partition_start)
17383 [HAVE_DIOCGDINFO]: Add safety checks.
17384
a307c0b2
VS
173852011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17386
17387 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
17388 per default compiled in kernel and prior to 8.0 isn't shipped at all.
17389
b4db4f39
CW
173902011-03-29 Colin Watson <cjwatson@ubuntu.com>
17391
17392 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
17393 real_sb->size is zero (e.g. RAID-0), get the disk size from
17394 real_sb->data_size instead.
17395 Fixes Ubuntu bug #743136.
17396
35e5f84c
VS
173972011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17398
17399 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
17400 printf clauses for printing size and start.
17401
d2e29d81
VS
174022011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17403
17404 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
17405 Reported and tested by: Timothy Nikkel.
17406
ed5587af
VS
174072011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17408
17409 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
17410 (dirty_region_add_real): ... this.
17411 (dirty_region_add): Don't discard margin refresh when performing
17412 scheduled repaint.
17413
a1dc717c
VS
174142011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17415
17416 * grub-core/lib/relocator.c (allocate_regstart)
17417 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
17418 terminals are capabple of malloc-free operation.
17419 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17420 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17421
9f3677d3
VS
174222011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
17423
17424 * util/grub-setup.c: Copy the partition table zone if floppy support
17425 is disabled, even if no partition table is found.
17426
17427 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
17428 during POST if an invalid partition table is contained in the PBR
17429 of the active partition when GRUB is installed to a partition.
17430
24148725
CW
174312011-03-28 Colin Watson <cjwatson@debian.org>
17432
17433 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
17434 comment.
17435
f329eda7
CW
174362011-03-28 Colin Watson <cjwatson@debian.org>
17437
17438 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
17439 to be specific about what kind of RAID device we're scanning for.
17440
c482ad98
SG
174412011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
17442
17443 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
17444 return freed string.
17445
5ee04984
VS
174462011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17447
17448 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
17449
f4727da9
VS
174502011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17451
17452 Use libgeom on FreeBSD to detect partitions.
17453
17454 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
17455 (grub-mkrelpath): Likewise.
17456 (grub-script-check): Likewise.
17457 (grub-editenv): Likewise.
17458 (grub-mkpasswd-pbkdf2): Likewise.
17459 (grub-fstest): Likewise.
17460 (grub-mkfont): Likewise.
17461 (grub-mkdevicemap): Likewise.
17462 (grub-probe): Likewise.
17463 (grub-setup): Likewise.
17464 (grub-ofpathname): Likewise.
17465 (grub-mklayout): Likewise.
17466 (example_unit_test): Likewise.
17467 (grub-menulst2cfg): Likewise.
17468 * grub-core/Makefile.core.def (grub-emu): Likewise.
17469 (grub-emu-lite): Likewise.
17470 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
17471 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
17472 define HAVE_DIOCGDINFO.
17473 (follow_geom_up) [FreeBSD]: New function.
17474 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
17475 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
17476 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
17477 unconditionally of HAVE_DIOCGDINFO.
17478
82fe6c75
VS
174792011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17480
17481 Fix FreeBSD compilation problem.
17482
17483 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
17484 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
17485
4c6c9431
CW
174862011-03-24 Colin Watson <cjwatson@ubuntu.com>
17487
17488 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
17489 Switch back to page zero before loading a kernel, since some kernel
17490 drivers expect that.
17491 Thanks to: Felix Kuehling.
17492
c7064d94
VS
174932011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17494
17495 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
17496 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
17497 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
17498
3f71cded
VS
174992011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17500
17501 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
17502 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
17503
ef6de21a
VS
175042011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17505
17506 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
17507 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
17508 malloc is disabled.
17509
8bc66a2c
VS
175102011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17511
17512 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
17513 for modules headers when counting the needed allocation size.
17514
5657722c
VS
175152011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17516
17517 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
17518 if no ASCII character is found to prevent crash.
17519
41a85f55
AK
175202011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
17521
17522 * grub-core/video/bitmap.c (match_extension): Ignore case.
17523
59e1e5f1
VS
175242011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17525
17526 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
17527
bd4d051a
VS
175282011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17529
17530 * grub-core/script/parser.y: Declare "time" as valid argument.
17531
bae7fcc1
PJ
175322011-03-23 Peter Jones <pjones@redhat.com>
17533
17534 Fix incorrect assert failure reporting.
17535
17536 * grub-core/tests/example_functional_test.c (example_test): Add
17537 a failure comment.
17538 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
17539 (failure_start): ...this. Check that malloc succeeded.
17540 Don't call xvasprintf. Return failure struct.
17541 (failure_append_vtext): New function.
17542 (failure_append_text): Likewise.
17543 (add_failure): Likewise.
17544 (grub_test_assert_helper): Likewise.
17545 * include/grub/test.h (grub_test_assert_helper): New declaration.
17546 (grub_test_assert): Macro rewritten.
17547
537dc9be
VS
175482011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17549
17550 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
17551
fa3e01bf
VS
175522011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17553
17554 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
17555
b1d28404
VS
175562011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17557
17558 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
17559 into GRUB-style one.
17560
2e3e2e09
VS
175612011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17562
17563 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
17564 error and not grub_errno.
17565 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
17566
ed57e557
VS
175672011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17568
17569 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
17570 GRUB_USB_SPEED_NONE in case of failure and not the error code.
17571
d1611f01
VS
175722011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17573
17574 * grub-core/efiemu/i386/pc/cfgtables.c
17575 (grub_machine_efiemu_init_tables): Make declaration a prototype.
17576 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
17577 (grub_xnu_unlock): Likewise.
17578 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
17579
7d4e39d6
VS
175802011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17581
17582 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
17583 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
17584 * grub-core/commands/hashsum.c (aliases): Likewise.
17585 * grub-core/commands/setpci.c (pci_registers): Likewise.
17586 * grub-core/disk/usbms.c (attach_hook): Likewise.
17587 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
17588 (zio_checksum_table): Likewise.
17589 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
17590 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
17591 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
17592 * grub-core/lib/relocator.c (leftovers): Likewise.
17593 (extra_blocks): Likewise.
17594 * grub-core/loader/i386/bsd.c (relocator): Likewise.
17595 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
17596 (modules_last): Likewise.
17597 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
17598 (devices): Likewise.
17599 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
17600 (modules_last): Likewise.
17601 * grub-core/normal/auth.c (users): Likewise.
17602 * grub-core/normal/context.c (initial_menu): Likewise.
17603 (current_menu): Likewise.
17604 * grub-core/normal/crypto.c (crypto_specs): Likewise.
17605 * grub-core/term/serial.c (grub_serial_ports): Likewise.
17606 (grub_serial_terminfo_input_template): Likewise.
17607 (grub_serial_terminfo_output_template): Likewise.
17608 (grub_serial_terminfo_input): Likewise.
17609 (grub_serial_terminfo_output): Likewise.
17610 (registered): Likewise.
17611 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
17612
40fc4659
VS
176132011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17614
17615 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
17616 grub_video_mode_type_t.
17617 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
17618 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
17619 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
17620
2da48d28
VS
176212011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17622
17623 * util/grub-install.in: Correct the x86-64 name as x86_64.
17624
9b43bf39
CW
176252011-03-11 Colin Watson <cjwatson@ubuntu.com>
17626
17627 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
17628 initial chunk read from the kernel always includes GRUB's multiboot
17629 header, which is now outside the first sector.
17630
be1a7ce0
CW
176312011-03-09 Colin Watson <cjwatson@ubuntu.com>
17632
17633 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
17634 cached mmap_size, so that this works correctly when called multiple
17635 times.
17636 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
17637
83a3c48d
CW
176382011-03-09 Colin Watson <cjwatson@ubuntu.com>
17639
17640 * docs/grub.texi (Simple configuration): Tidy up formatting.
17641
57d75699
SJ
176422011-03-07 Szymon Janc <szymon@janc.net.pl>
17643
17644 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
17645 Set-but-not-used variable removed.
17646
028501a0
VS
176472011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17648
17649 Workaround yet another IEEE1275 bug.
17650
17651 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
17652 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
17653 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
17654 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
17655 is set.
17656 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17657 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
17658
d998657d
VS
176592011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
17660
17661 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
17662 error.
17663
fee7cdd4
CW
176642011-02-11 Colin Watson <cjwatson@ubuntu.com>
17665
17666 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
17667 empty, since in that case we can only generate either nothing or a
17668 syntactically invalid configuration file.
17669 Reported by: Michal Suchanek. Fixes Debian bug #612898.
17670
97286eb5
CW
176712011-02-09 Colin Watson <cjwatson@ubuntu.com>
17672
17673 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
17674 (Making a GRUB bootable CD-ROM): Likewise.
17675 (Invoking grub-mkrescue): New section.
17676 Reported by: Yann Dirson. Fixes Debian bug #612585.
17677
22b28eb3
CW
176782011-02-09 Colin Watson <cjwatson@ubuntu.com>
17679
17680 * util/grub-install.in: Remove unnecessary brackets from tr
17681 arguments.
17682 * util/grub.d/10_hurd.in: Likewise.
17683 * util/grub.d/10_kfreebsd.in: Likewise.
17684 * util/grub.d/10_linux.in: Likewise.
17685 * util/grub.d/20_linux_xen.in: Likewise.
17686 Reported by: Jamie Heilman. Fixes Debian bug #612564.
17687
7e735e43
CW
176882011-02-08 Colin Watson <cjwatson@ubuntu.com>
17689
17690 * include/grub/file.h (not_easly_seekable): Rename to ...
17691 (not_easily_seekable): ... this. Update all users.
17692
800f1881
CW
176932011-01-28 Colin Watson <cjwatson@ubuntu.com>
17694
17695 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
17696 grub-mkrescue.
17697
3281d3d6
VS
176982011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
17699
17700 * util/grub-mkimage.c (generate_image): Refuse to create the images
17701 bigger than the actual flash (512K) in Loongson machines. 512K is also
17702 the biggest chip supported by them.
17703
3533413c
VS
177042011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17705
17706 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
17707
73ae4f4f
VS
177082011-01-22 Anthony DeRobertis <anthony@derobert.net>
17709
17710 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
17711 super_offset field.
17712
37f4f608
VS
177132011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17714
17715 * util/grub-install.in: Ignore install device on platforms
17716 where it doesn't make sense. Always use UUIDs except on pc, efi and
17717 sparc64.
17718 Reported by: Daniel Kahn Gillmor.
17719
03a4ccb5
VS
177202011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17721
17722 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
17723
ffc8f4d8
VS
177242011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17725
17726 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
17727 (iterate_real): Don't rely on partition being non-NULL.
17728
80f23be7
VS
177292011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17730
17731 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
17732 supported platforms. Put a compile time assert for this rather than
17733 generate a warning with 32-bit shift.
17734
5d4f4dd5
VS
177352011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17736
17737 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
17738 logical expression more readable.
17739
e489601a
VS
177402011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
17741
17742 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
17743 even if some elements have a name.
17744 Reported by: Alexander GQ Gerasiov.
17745
96e0a6ea
CW
177462011-01-22 Colin Watson <cjwatson@ubuntu.com>
17747
17748 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
17749 path unreadable if `grub-probe -t abstraction' fails, for example if
17750 memberlist fails on an LVM volume group.
17751 Reported by: Darius Jahandarie.
17752
81431e2b
CW
177532011-01-22 Colin Watson <cjwatson@ubuntu.com>
17754
17755 * docs/grub.texi (Simple configuration): Document
17756 GRUB_PRELOAD_MODULES.
17757
5e79d66a
CW
177582011-01-17 Colin Watson <cjwatson@ubuntu.com>
17759
17760 * .bzrignore: Remove nonexistent grub-pbkdf2.
17761
646ada34
VS
177622011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
17763
17764 * configure.ac: Bump version to 1.99~rc1.
17765
04360337
VS
177662011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17767
17768 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
17769 for safety.
17770
46c9db88
VS
177712011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17772
17773 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
17774 module.
17775
177762011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
17777
17778 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
17779
4fbf1852
VS
177802011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17781
17782 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
17783 diskdevid.
17784
f1632d4d
VS
177852011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17786
17787 Fix compilation on cygwin.
17788
17789 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
17790 -R .drectve on cygwin.
17791 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
17792 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
17793 (COND_CYGWIN): New condition.
17794 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
17795 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
17796 not @TARGET_OBJ2ELF@.
17797 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
17798 type to determine whether aux is to be used.
17799
0b5e127b
VS
178002011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17801
17802 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
17803 realpath'ed device string.
17804 Handle floppy (somewhat).
17805 Issue error in unknown case rather than garbage.
17806 Reported by: Axel Beckert.
17807
173b71e9
VS
178082011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17809
17810 * util/grub.d/00_header.in (load_video): Handle the case when no video
17811 drivers available.
17812 Thanks to: Axel Beckert.
17813
f8f479db
VS
178142011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17815
17816 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
17817 variable. Fixes problem on big endian platforms.
17818
8fc0a245
VS
178192011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17820
17821 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
17822 It doesn't work well there.
17823
b8494fbe
VS
178242011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17825
17826 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
17827 warning.
17828 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
17829 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
17830 counter.
17831
b44a558c
VS
178322011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17833
17834 Use alias->path rather than buggy "canon".
17835
17836 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
17837 (ofdisk_hash_add): New argument curcan. All users updated.
17838
51fa856c
CW
178392011-01-11 Colin Watson <cjwatson@ubuntu.com>
17840
17841 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
17842
9da068a5
VS
178432011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17844
17845 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
17846 loadmask before doing any calculations. Use correct type for offset.
17847 (grub_linux_load64): Likewise.
17848
86205c94
CW
178492011-01-11 Colin Watson <cjwatson@ubuntu.com>
17850
17851 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
17852 with NULL.
17853 (console_grub_equivalences_unshift): Likewise.
17854 Reported by: Daniel Dehennin.
17855
4531a206
VS
178562011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17857
17858 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
17859 (set_env_limn_ro): Likewise.
17860 (GRUB_MOD_INIT): Likewise.
17861 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
17862 ARRAY_SIZE while on it.
17863 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
17864 * grub-core/normal/context.c (grub_env_export): Move from here ...
17865 * grub-core/kern/env.c (grub_env_export): ... here.
17866 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
17867 prefix.
17868 * grub-core/kern/main.c (grub_main): Export root and prefix.
17869 * include/grub/env.h (grub_env_export): Export.
17870 Reported by: Seth Goldberg.
17871
45146057
VS
178722011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17873
17874 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17875 Take into account space used by ELF sections and multiboot palette.
17876 Reported by: Grégoire Sutre.
17877
f093110b
VS
178782011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
17879
17880 * BUGS: New file.
17881
3395fe52
VS
178822011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17883
17884 Pass more appropriate video id to Linux.
17885
17886 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
17887 grub_video_get_driver_id and variable gfxpayloadforcelfb to
17888 fill have_vga.
17889 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
17890 shift params->lfb_size.
17891 * include/grub/i386/linux.h: Make an enume out of have_vga values.
17892
c2fa6cbb
VS
178932011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17894
17895 * util/grub-menulst2cfg.c: Add missing include of misc.h.
17896
b3ff6ff0
VS
178972011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17898
17899 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
17900 separator and pass bootpath/devid even if only one of them is available.
17901 Reported by: Seth Goldberg.
17902
ae67942e
VS
179032011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17904
17905 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
17906 implementations bug on them.
17907
17908 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
17909 memory.
17910 (filter_memory_map): Likewise.
17911
d570097a
VS
179122011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17913
17914 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
17915 Reported by: nebuchadnezzar.
17916
a508e776
VS
179172011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17918
17919 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
17920 Reported by: nebuchadnezzar.
17921
dcb883b1
VS
179222011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17923
17924 Submenu default support.
17925
17926 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
17927 auto_boot. All users updated.
17928 Declared static.
17929 Handle chosen and default with submenus.
17930 (grub_menu_execute_with_fallback): Declared static.
17931 Don't notify failure if autobooted. Upper level does it.
17932 (menuentry_eq): New function.
17933 (get_entry_number): Use menuentry_eq.
17934 (show_menu): New parameter "autobooted". All users updated.
17935 (grub_show_menu): Likewise.
17936 * include/grub/normal.h (grub_show_menu): Likewise.
17937 * include/grub/menu.h (grub_menu_execute_entry): Removed.
17938 (grub_menu_execute_with_fallback): Likewise.
17939
6fef99b4
VS
179402011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17941
17942 * util/grub-mklayout.c (usage): Update help text.
17943
47a77af5
VS
179442011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17945
17946 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
17947
ce6bb3ee
VS
179482011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17949
17950 * util/grub-menulst2cfg.c (main): Trim the line.
17951
db87be2a
VS
179522011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17953
17954 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
17955 (grub_machine_init): Don't check amount of low memory as reportedly
17956 INT 12h can be broken and if low memory is too low we wouldn't have
17957 gotten into grub_machine_init anyway.
17958
c49849cc
VS
179592011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17960
17961 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
17962 (grub_machine_mmap_iterate): Take low memory into account
17963
b1969b30
VS
179642011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17965
17966 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
17967 badfs.
17968 Reported by: TiCPU.
17969
cf0eaf13
VS
179702011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17971
17972 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
17973 members errors.
17974
1f060f39
GS
179752011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
17976
17977 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
17978 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
17979
a21e5672
GS
179802011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
17981
17982 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
17983 openbsd and netbsd types being in part_bsd module.
17984
c88172fa
VS
179852011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17986
17987 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
17988 (_FILE_OFFSET_BITS): Likewise.
17989 Reported by: Seth Goldberg.
17990
53798c4b
GS
179912011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
17992
17993 * configure.ac: Check for libdevmapper header.
17994
e7121b69
VS
179952011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
17996
17997 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
17998 avoid aliasing.
17999 (fzap_lookup): Likewise.
18000 (dnode_get): Likewise.
18001 (make_mdn): Likewise.
18002 (zfs_mount): Likewise.
18003 (fzap_iterate): Use temporary pointer to avoid aliasing.
18004 (grub_zfs_read): Likewise.
18005 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
18006 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
18007 pointers to avoid aliasing.
18008 (grub_cmd_xnu_kernel64): Likewise.
18009 (grub_xnu_load_driver): Likewise.
18010
fc836af9
VS
180112011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18012
18013 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
18014 aliasing warning.
18015 (grub_cmd_terminal_output): Likewise.
18016 Reported and tested by: Grégoire Sutre.
18017
f9f37648
VS
180182011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18019
18020 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
18021 warning.
18022 Reported and tested by: Grégoire Sutre.
18023
ec1dfd63
VS
180242011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18025
18026 * configure.ac: Do CPU substitution even if it's specified explicitly.
18027 Reported and tested by: Alain Greppin.
18028
9462775a
VS
180292011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18030
18031 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
18032 Reported and tested by: Alain Greppin.
18033
0fd48e35
VS
180342011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18035
18036 Satisfy some bison versions need for inttypes.h.
18037
18038 * grub-core/lib/posix_wrap/inttypes.h: New file.
18039 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
18040 (int16_t): Likewise.
18041 (int32_t): Likewise.
18042 (int64_t): Likewise.
18043 Reported and tested by: Alain Greppin.
18044
43f1bc83
VS
180452011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18046
18047 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
18048 Silence spurious warning.
18049 Reported and tested by: Alain Greppin.
18050
64d1f041
SJ
180512011-01-07 Szymon Janc <szymon@janc.net.pl>
18052
18053 * docs/grub.texi (Support automatic decompression): Update with xz
18054 decompression support.
18055
25953e10
SJ
180562011-01-07 Szymon Janc <szymon@janc.net.pl>
18057
18058 Improve loaders' kernel command line handling.
18059
18060 * grub-core/lib/cmdline.c: New file.
18061 * include/grub/lib/cmdline.h: Likewise.
18062 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
18063 grub_create_loader_cmdline to create kernel command line.
18064 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18065 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
18066 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
18067 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
18068 (linux): Add lib/cmdline.c on common.
18069
e72d259f
VS
180702011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18071
18072 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
18073 inopos might be unaligned.
18074
c0cf26da
VS
180752011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18076
18077 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
18078 endian transformations.
18079 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18080 Based on report by: Doug Nazar.
18081
0ca09e6c
DN
180822011-01-07 Doug Nazar <nazard.michi@gmail.com>
18083
18084 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
18085 array->members[i].start_sector.
18086 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
18087
014b6806
VS
180882011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18089
18090 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
18091 Reported and tested by: Grégoire Sutre.
18092
415502c2
CW
180932011-01-06 Colin Watson <cjwatson@ubuntu.com>
18094
18095 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
18096 avoid causing test failures by clearing the screen.
18097
71b6a2b7
CW
180982011-01-06 Colin Watson <cjwatson@ubuntu.com>
18099
18100 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
18101 Fix prefix check to handle the case where dir ends with a slash
18102 (most significantly, "/" itself).
18103 Reported by: Michael Vogt.
18104
b3f8d28a
VS
181052011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18106
18107 Run terminfo_cls on initing terminfo output to clear the screen and
18108 move the cursor to (0,0).
18109
18110 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
18111 Call grub_terminfo_output_init.
18112 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
18113 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
18114 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
18115
4c3e4f37
VS
181162011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18117
18118 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
18119 only when needed.
18120
488f71f1
VS
181212011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18122
18123 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
18124 CTRL.
18125
18a38098
VS
181262011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18127
18128 The E820 type 5 is BADRAM, not EXEC_CODE.
18129
18130 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18131 (GRUB_E820_BADRAM): New define.
18132 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
18133 into reserved. Propagate BADRAM.
18134 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18135 (GRUB_E820_BADRAM): New define.
18136
9eae2084
VS
181372011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18138
18139 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
18140 Ignore the memory post-4G.
18141 (grub_relocator_firmware_alloc_region): Additional debug statement.
18142
ebc71d28
VS
181432011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18144
18145 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
18146 names.
18147 Reported by: David Pravec.
18148
446fa400
VS
181492011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18150
18151 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
18152 BIOSes.
18153
a0159f37
VS
181542011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18155
18156 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
18157 Prevent overflow.
18158 (grub_reed_solomon_recover): Likewise.
18159
e5146ca1
VS
181602011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18161
18162 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
18163
181642011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
18165
18166 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
18167 variable.
18168
5b1bdf12
CW
181692011-01-04 Colin Watson <cjwatson@ubuntu.com>
18170
18171 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
18172 descriptions of extract_legacy_entries_source and
18173 extract_legacy_entries_configfile.
18174 Reported by: Seung Soo, Ha.
18175
99d925aa
CW
181762011-01-03 Colin Watson <cjwatson@ubuntu.com>
18177
18178 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
18179 on devices that do not implement function 0.
18180
4af0504b
DV
181812011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
18182
18183 * grub-core/fs/hfsplus.c: Make parent unsigned.
18184 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
18185 overflows.
18186 (grub_hfsplus_cmp_extkey): Likewise
18187
469ee10a
VS
181882011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18189
18190 * util/grub-install.in: Correctly use bootloader_id and not
18191 GRUB_DISTRIBUTOR on efibootmgr line.
18192
323a8e9c
VS
181932011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18194
18195 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
18196
1b394975
IC
181972010-12-31 Ian Campbell <ijc@hellion.org.uk>
18198
18199 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
18200 Xen and reorder menu item wording to make it clearer that this entry
18201 will launch Xen. Print separate messages when loading Xen and
18202 Linux.
18203
275bff5f
VS
182042010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18205
18206 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
18207 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
18208 loop in case of incorrect amiga partmap.
18209
307806cb
VS
182102010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18211
18212 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
18213 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
18214 Reported by:EHeM.
18215
b12b923e
VS
182162010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18217
18218 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
18219 spurious warning.
18220 Reported by: crocket
18221
14b48a19
VS
182222010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18223
18224 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
18225 Preload EFIemu.
18226 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
18227
693db2df
VS
182282010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18229
18230 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
18231 is loaded
18232 (grub_cmd_xnu_kextdir): Likewise.
18233 (grub_cmd_xnu_splash): Likewise.
18234
c7638645
VS
182352010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18236
18237 Avoid using Reed-Solomon with 0 redundancy.
18238
18239 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
18240 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
18241 or 0 redundancy.
18242 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
18243 (grub_reed_solomon_recover): Likewise.
18244
25dd4780
VS
182452010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18246
18247 Don't use disk subsystem in freebsd_boot.
18248
18249 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
18250 (freebsd_biosdev): Likewise.
18251 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
18252 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
18253
0b2db943
VS
182542010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
18255
18256 Handling of files of unknown size is currently limited. They can't be
18257 used e.g. for initrd or modules. Moreover gzip handling of not
18258 easily seekable files is buggy. Disable unknown file size for now. May
18259 be inefficient but works.
18260
18261 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
18262 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
18263
5c408d0f
MP
182642010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
18265
18266 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
18267 floppy probe.
18268
190a011a
JD
182692010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
18270
18271 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
18272
022d01b8
SL
182732010-12-25 Shea Levy <shlevy>
18274
18275 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
18276
c4855fdc
VS
182772010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18278
18279 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
18280 Windows Server 2008.
18281 Reported by: Devin Giddings.
18282
0354b867
VS
182832010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18284
18285 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
18286 writing an error message because of async power management.
18287 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
18288 (grub_reboot): Likewise.
18289
ab66c69f
JU
182902010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
18291
18292 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
18293 keep unit tests from failing when they shouldn't.
18294
1426ef35
CW
182952010-12-21 Colin Watson <cjwatson@ubuntu.com>
18296
18297 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
18298 previous patch increased the size of the RS code by 20 bytes (at
18299 least with gcc-4.4), so increase this by 20 bytes to match.
18300 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
18301
20641b6b
CW
183022010-12-21 Colin Watson <cjwatson@ubuntu.com>
18303
18304 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
18305 scratch area. Make sure to initialise chosen in standalone mode as
18306 well as non-standalone.
18307 Reported by: Robert Hooker and Andy Whitcroft.
18308 Tested by: Andy Whitcroft.
18309
d060ad60
CW
183102010-12-21 Colin Watson <cjwatson@ubuntu.com>
18311
18312 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
18313 constructing a new unescaped string and passing it to grub_xputs in
18314 one go, rather than passing characters to grub_printf one at a time.
18315
b889cfad
CW
183162010-12-21 Colin Watson <cjwatson@ubuntu.com>
18317
18318 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
18319 initialising utf16.
18320
4e01b6c8
CW
183212010-12-21 Colin Watson <cjwatson@ubuntu.com>
18322
18323 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
18324 comment. Add an extra layer of quotation, requiring the output of
18325 this function to be used in a printf format string.
18326 (gettext_printf): New function.
18327 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
18328 Extract translatable strings from here-documents and use a temporary
18329 variable instead, so that xgettext can find them.
18330 * util/grub.d/10_kfreebsd.in: Likewise.
18331 * util/grub.d/10_linux.in: Likewise.
18332 * util/grub.d/20_linux_xen.in: Likewise.
18333
18334 * po/grub.d.sed: New file.
18335 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
18336 arguments. Set c-format flags on all strings extracted from
18337 util/grub.d/ (xgettext refuses to include these itself for strings
18338 it extracted from a shell file, but these really are c-format).
18339
5318fe98
VS
183402010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18341
18342 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
18343 Avoid next pointing to nowhere.
18344
6c85b743
VS
183452010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18346
18347 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
18348 rather than assuming than rootblock is exactly in the middle.
18349 (grub_affs_label): Likewise.
18350
a2a08a35
VS
183512010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18352
18353 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
18354 reserved_first_sector to 0.
18355 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
18356 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
18357 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
18358
7059d1ec
VS
183592010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18360
18361 Fix handling of UTF-16 UDF labels.
18362
18363 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
18364 (read_string): .. here.
18365 (grub_udf_label): Use read_string.
18366
30aff4cb
BC
183672010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
18368
18369 * grub-core/normal/menu_entry.c (run): Execute commands from menu
18370 editor under argument scope.
18371 Reported by: Jordan Uggla
18372
5cf86f4b
VS
183732010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18374
18375 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
18376
32570200
CW
183772010-12-18 Colin Watson <cjwatson@ubuntu.com>
18378
18379 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
18380 line, and other keys scroll an entire page (previous handling was
18381 for \r and \n to scroll a page and other keys to scroll two lines).
18382
e1dffcf2
VS
183832010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18384
18385 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18386 Set ptrdest to correct get_physical_target_address rather than
18387 incorrect get_virtual_current_address.
18388
b04298cf 183892010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
18390
18391 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
18392 correct cat to grub_uint8_t * rather than grub_uint32_t *.
18393
5367ecd3
CW
183942010-12-10 Colin Watson <cjwatson@ubuntu.com>
18395
18396 * .bzrignore: Ignore grub-core/rs_decoder.S.
18397
1fb430f8
CW
183982010-12-10 Colin Watson <cjwatson@ubuntu.com>
18399
18400 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
18401 .mo/.mo.gz opening sequence to ...
18402 (grub_mofile_open_lang): ... here.
18403 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
18404 * util/grub.d/00_header.in (grub_lang): Include country part of
18405 locale.
18406 Reported by: Mario Limonciello.
18407
a94a6671
RM
184082010-12-09 Robert Millan <rmh@gnu.org>
18409
18410 * NEWS: Document addition of ZFS support.
18411
24b7938b
CW
184122010-12-04 Colin Watson <cjwatson@ubuntu.com>
18413
18414 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
18415 rather than `/ 2', as the latter requires -Wa,--divide which would
18416 require bumping our minimum binutils version.
18417
bddc3ef6
BC
184182010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
18419
18420 * util/grub-script-check.c (main): Print script line number on
18421 error.
18422
bf78d5b2
RM
184232010-12-01 Robert Millan <rmh@gnu.org>
18424
18425 * grub-core/fs/zfs/zfs.c: New file.
18426 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
18427 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
18428 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
18429 * grub-core/fs/zfs/zfsinfo.c: Likewise.
18430
18431 * include/grub/zfs/dmu.h: Likewise.
18432 * include/grub/zfs/dmu_objset.h: Likewise.
18433 * include/grub/zfs/dnode.h: Likewise.
18434 * include/grub/zfs/dsl_dataset.h: Likewise.
18435 * include/grub/zfs/dsl_dir.h: Likewise.
18436 * include/grub/zfs/sa_impl.h: Likewise.
18437 * include/grub/zfs/spa.h: Likewise.
18438 * include/grub/zfs/uberblock_impl.h: Likewise.
18439 * include/grub/zfs/vdev_impl.h: Likewise.
18440 * include/grub/zfs/zap_impl.h: Likewise.
18441 * include/grub/zfs/zap_leaf.h: Likewise.
18442 * include/grub/zfs/zfs.h: Likewise.
18443 * include/grub/zfs/zfs_acl.h: Likewise.
18444 * include/grub/zfs/zfs_znode.h: Likewise.
18445 * include/grub/zfs/zil.h: Likewise.
18446 * include/grub/zfs/zio.h: Likewise.
18447 * include/grub/zfs/zio_checksum.h: Likewise.
18448
18449 * Makefile.util.def: Build ZFS into libgrubmods.
18450 * grub-core/Makefile.core.def: Build zfs.mod.
18451
3f0f3831
SJ
184522010-11-30 Szymon Janc <szymon@janc.net.pl>
18453
18454 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
18455 variable.
18456 * grub-core/commands/wildcard.c (match_files): Likewise.
18457
3a4253b2
RM
184582010-11-30 Robert Millan <rmh@gnu.org>
18459
18460 * grub-core/loader/i386/bsd.c
18461 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
18462 whether kernel is loaded using grub_loader_is_loaded(), rather
18463 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
18464 certain error conditions.
18465
8c317b27
RM
184662010-11-30 Robert Millan <rmh@gnu.org>
18467
c5c9cd3e
RM
18468 * grub-core/commands/echo.c: Include `<grub/term.h>'.
18469 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 18470
49d3ab46
VS
184712010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18472
18473 Avoid using tricks for initialising endian variables.
18474
18475 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
18476 Make const.
18477 (GRUB_MOD_INIT): Don't byte-swap.
18478 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18479 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
18480 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
18481 (grub_swap_bytes32_compile_time): Likewise.
18482 (grub_cpu_to_le32_compile_time): Likewise.
18483 (grub_cpu_to_le16_compile_time): Likewise.
18484
f420a804
VS
184852010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18486
18487 * util/grub-setup.c (setup): Stop recommending --force. People who
18488 understand the dangers of blocklists are able to find this option
18489 anyway and the ones who don't shouldn't use it anyway.
18490
4e7db17b
RM
184912010-11-26 Robert Millan <rmh@gnu.org>
18492
18493 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
18494 Update all users.
18495
9be57a0d
CW
184962010-11-26 Colin Watson <cjwatson@ubuntu.com>
18497
18498 Fix LVM-on-RAID probing.
18499
18500 * util/grub-probe.c (probe): Remember which disk was detected as
18501 RAID (perhaps an LVM physical volume). Use that disk's raidname
18502 rather than that of the top-level disk.
18503
2c7859b3 185042010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 18505
d7647bb6
BC
18506 Fix cmdline argument quotes for setparams command of menuentry
18507 definitions.
7e623b0d
BC
18508
18509 * grub-core/commands/menuentry.c (setparams_prefix): Use single
18510 quotes for arguments.
f866fe80 18511 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 18512 grub_strchrsub function instead.
f866fe80 18513
7955bea0 18514 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 18515
74f72a64
CW
185162010-11-24 Colin Watson <cjwatson@ubuntu.com>
18517
18518 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
18519 effort by skipping "." and ".." entries up-front.
18520 Suggested by: Michael Lazarev.
18521
5a407278
CW
185222010-11-24 Colin Watson <cjwatson@ubuntu.com>
18523
18524 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
18525 ldflags to ldadd, to fix link line ordering.
18526 (none_decompress): Likewise.
18527
3030d8ec
CW
185282010-11-24 Colin Watson <cjwatson@ubuntu.com>
18529
18530 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
18531 platforms.
18532 (grub-emu-lite): Remove kern/emu/cache.S.
18533
b7fbac12
CW
185342010-11-23 Colin Watson <cjwatson@ubuntu.com>
18535
18536 * util/deviceiter.c (compare_devices): If the by-id link for a
18537 device couldn't be resolved, fall back to sorting by the by-id link
18538 rather than segfaulting.
18539 Reported and tested by: Daniel Mierswa.
18540
5225f328
CW
185412010-11-23 Colin Watson <cjwatson@ubuntu.com>
18542
18543 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
18544 ldflags, to fix link line ordering.
18545
038b3ce8
CW
185462010-11-23 Colin Watson <cjwatson@ubuntu.com>
18547
18548 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
18549 linkers are picky about this.
18550
bf16e98e
CW
185512010-11-23 Colin Watson <cjwatson@ubuntu.com>
18552
18553 * grub-core/Makefile.am (command.lst): Adjust sed expression
18554 ordering so that extended and priority commands aren't treated as
18555 ordinary commands.
18556
7242bab6
CW
185572010-11-23 Colin Watson <cjwatson@ubuntu.com>
18558
18559 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18560 Remove byte-swapping function calls, which are not valid in
18561 structure initialisers.
18562 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
18563 non-const.
18564 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
18565 grub_gpt_partition_type_bios_boot.
18566
14e8b279
CW
185672010-11-22 Colin Watson <cjwatson@ubuntu.com>
18568
18569 Fix test program build on GNU/kFreeBSD.
18570
18571 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
18572 $(LIBNVPAIR)' library dependencies.
18573
e6f63338 185742010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
18575
18576 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
18577
cf8ffc38
CW
185782010-11-22 Colin Watson <cjwatson@ubuntu.com>
18579
18580 * util/grub-install.in: Remove excessive quoting that broke
18581 installations to RAID devices.
18582
7f8b0fd7
VS
185832010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18584
18585 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
18586 bootloader version instead of 0.
18587
dfd240b1
VS
185882010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18589
18590 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
18591 warning.
18592
7b61e609
VS
185932010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
18594
18595 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
18596 retrieve the metadat sector if size isn't known.
18597 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18598
9dfe92d0
RM
185992010-11-18 Robert Millan <rmh@gnu.org>
18600
18601 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
18602 with grub_memcmp().
18603
41cc919e
VS
186042010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
18605
18606 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
18607 arrow.
18608 Reported by: Jordan Uggla.
18609
1afcc914
VS
186102010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18611
18612 Make better UTF compliant.
18613
18614 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
18615 sequences as incorrect.
18616 (grub_is_valid_utf8): Likewise.
18617 (grub_utf8_to_ucs4): Likewise.
18618 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
18619 (grub_ucs4_to_utf8_alloc): Likewise.
18620 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
18621
f1808884
VS
186222010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
18623
18624 Make legacy_source behave like source.
18625
18626 * grub-core/commands/legacycfg.c (legacy_file): Don't call
18627 grub_show_menu.
18628 (grub_cmd_legacy_source): Call grub_show_menu if needed.
18629
24ec575b
CW
186302010-11-16 Colin Watson <cjwatson@debian.org>
18631
18632 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
18633 (-Wunused implies -Wunused-parameter, but not vice versa).
18634
72b7c7aa
CW
186352010-11-16 Colin Watson <cjwatson@ubuntu.com>
18636
18637 * configure.ac: Make error messages less confusing by testing for
18638 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
18639 accepted, but produces a diagnostic if something else is wrong).
18640
e98937aa
VS
186412010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18642
18643 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
18644 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
18645 (now unused).
18646 (grub_keyboard_controller_init)
18647 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
18648 read the initial state since controller isn't inited yet.
18649
f6bbabc3
VS
186502010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
18651
18652 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
18653 allocate_regbeg may need to create new chunk header.
18654
22e7dbb2
VS
186552010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18656
18657 Fix quoting in legacy parser.
18658
18659 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
18660 single quotes.
18661 (grub_legacy_parse): Likewise.
18662 Reported by: Jordan Uggla.
18663 Tested by: Jordan Uggla.
18664
03f80960
VS
186652010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18666
18667 Don't add -lgcc on i386 and x86_64.
18668
18669 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
18670 * conf/Makefile.common (LDADD_KERNEL): Likewise.
18671 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
18672
779dc15b
VS
186732010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18674
18675 * configure.ac: Add -Wno-trampolines when supported.
18676
d20a3b37
MV
186772010-11-14 Modestas Vainius <modax@debian.org>
18678
18679 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
18680 fakeraid.
18681
e5360933
GC
186822010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18683
18684 Add generic logical block size support for UDF.
18685
18686 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
18687 (GRUB_UDF_BLKSZ): Removed.
18688 (struct grub_udf_data): New field "lbshift" to hold the logical block
18689 size of the file system in log2 format. All users updated.
18690 (sblocklist): Change type to unsigned.
18691 (grub_udf_mount): Change type of "sblklist" to unsigned.
18692 Move AVDP search before VRS recognition, because the latter requires
18693 knowledge of the logical block size, which is detected during the
18694 former.
18695 Detect and validate logical block size during AVDP search, adding
18696 support for block sizes 512, 1024 and 4096.
18697 Make VRS recognition independent of block size.
18698
cb0229c5
GC
186992010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18700
18701 Properly handle deleted files on UDF.
18702
18703 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
18704 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
18705 set.
18706
406858a8
GC
187072010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
18708
18709 Support reading files larger than 2 GiB.
18710
18711 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
18712 "offset" to grub_off_t.
18713 (grub_udf_read_file): Likewise for parameter "pos".
18714
130da6a7
VS
187152010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18716
18717 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
18718 unavailable.
18719 (Simple configuration): Refer to Changes from GRUB Legacy about
18720 save_env availability.
18721
65e93f6b
VS
187222010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18723
18724 * util/grub-install.in: Ignore empty partition table detection
18725 instead of trying to include part_ module.
18726
1fd08bf1
VS
187272010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18728
18729 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
18730 LVM on RAID support.
18731
de1a024f
VS
187322010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
18733
18734 Properly define WORDS_BIGENDIAN in wrapped environments.
18735
18736 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
18737 definition.
18738 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
18739
18740 Reported by: Manoel Rebelo Abranches.
18741 Tested by: Manoel Rebelo Abranches.
18742
bc5dd0b9
VS
187432010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18744
18745 * util/grub-mkconfig.in: Fix quoting.
18746
58c184be
VS
187472010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18748
18749 Support big ext2 files.
18750
18751 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
18752 (grub_ext2_read_block): Support triple indirect blocks.
18753 (grub_ext2_read_file): Use 64-bit types and read size_high.
18754 (grub_ext2_open): Read size_high.
18755 Reported by: Ximin Luo.
18756 Tested by: Manoel Rebelo Abranches.
18757
5f0c02b3
VS
187582010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18759
18760 * util/grub-install.in: Handle filenames containing spaces.
18761 Reported by: Jordan Uggla.
18762 Tested by: Jordan Uggla.
18763
4417aae6
VS
187642010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18765
18766 * util/grub-mkconfig.in (grub_script_check): New variable.
18767 Use grub_script_check instead of grub-script-check.
18768 Reported by: Barry Jackson.
18769
7625a68e
VS
187702010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18771
18772 * docs/grub.texi (menu): Correct the order.
18773 Reported by: D. Hugh Redelmeier.
18774
10001ac5
VS
187752010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
18776
18777 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
18778 jump.
18779
9c4cf53b
MRA
187802010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
18781
10001ac5
VS
18782 * include/grub/elfload.h (grub_elf32_size): New parameter.
18783 All users updated.
9c4cf53b
MRA
18784 Return maximum segments alignment.
18785 (grub_elf64_size): Likewise.
18786 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
18787 Return maximum segments alignment.
18788 (grub_elf64_size): Likewise.
18789 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
18790 (grub_linux_claimmap_iterate): New function. Uses the
18791 "available" property in the "memory" node for memory allocation
18792 for kernel in the PowerPC loader.
9c4cf53b
MRA
18793 (grub_linux_load32): Correctly find linux entry point offset.
18794 (grub_linux_load64): Likewise.
18795
d2bf06bf
RM
187962010-11-07 Robert Millan <rmh@gnu.org>
18797
18798 On mips-yeeloong, build with -march=loongson2f when this flag is
18799 available (GCC >= 4.4).
18800 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
18801 `-march=mips3'.
18802 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
18803 or otherwise add -march=mips3.
18804
898c99a2
BC
188052010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
18806
87220a68
BC
18807 Suppress shell expansion on echo '*' and echo "*" like cases.
18808 Reported by: Jordan Uggla.
898c99a2
BC
18809
18810 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
18811 string arguments before shell expansion.
18812 * tests/grub_cmd_echo.in: New testcases.
18813
4f9b406a
RM
188142010-11-07 Robert Millan <rmh@gnu.org>
18815
18816 * conf/mips-qemu-mips.rmk: Remove stale file from previous
18817 transition.
18818
80c6d25e
VS
188192010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
18820
18821 * grub-core/kern/emu/hostdisk.c
18822 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
18823
4a1a0153
VS
188242010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18825
18826 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
18827 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
18828 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
18829
34706ddc
VS
188302010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18831
18832 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
18833
6972dea9
VS
188342010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18835
18836 * util/grub-install.in: Replace useless recomendation to pass
18837 --modules with a recomendation to report a bug.
18838
9c693bd6
VS
188392010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
18840
18841 Properly register serial terminfo.
18842 Reported by: Jordan Uggla
18843
18844 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
18845 const.
18846 (grub_serial_terminfo_output_template): Likewise.
18847 (grub_cmd_serial): Register "serial" with terminfo.
18848 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
18849 grub_serial_terminfo_output.
18850
6c9e4c0c
RM
188512010-11-05 Robert Millan <rmh@gnu.org>
18852
18853 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
18854 needed).
18855
b9b3839f
RM
188562010-11-05 Robert Millan <rmh@gnu.org>
18857
18858 On Yeeloong, pass machine type information to Linux.
18859
18860 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
18861 (LOONGSON_MACHTYPE): New macro, set to
18862 "machtype=lemote-yeeloong-2f-8.9inches".
18863 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
18864 additional argument to Linux.
18865
1a3aaff4
RM
188662010-11-04 Robert Millan <rmh@gnu.org>
18867
18868 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
18869 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
18870 (its SATA disks are detected as slaveless IDE master drives on
18871 kFreeBSD).
18872 Reported by Carsten Aulbert.
18873
a75f4f62
CW
188742010-11-02 Colin Watson <cjwatson@ubuntu.com>
18875
18876 * util/bin2h.c (main): Fix spelling error in generated output.
18877
33b4b0c6
GS
188782010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
18879
18880 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
18881
2b36fbf4
VS
188822010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18883
18884 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
18885 vga= option is supplied.
18886
74aaf558
VS
188872010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18888
18889 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
18890 * util/grub.d/10_kfreebsd.in: Likewise.
18891 * util/grub.d/10_linux.in: Likewise.
18892 * util/grub.d/20_linux_xen.in: Likewise.
18893
6428dec3
VS
188942010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18895
18896 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
18897 argument as an argument to no-argument option.
18898
f8729d98
VS
188992010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18900
18901 * util/grub.d/10_linux.in: Add missing load_video with explicit
18902 GRUB_GFXPAYLOAD_LINUX.
18903
89d68fa6
VS
189042010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18905
18906 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
18907
3a1197cd
VS
189082010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18909
18910 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
18911 elements with invlid index.
18912 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18913 * grub-core/disk/raid.c (insert_array): Automatically reallocate
18914 members.
18915 * include/grub/raid.h (grub_raid_member): New struct.
18916 (grub_raid_array): Transform devices and start_sector into usage of
18917 grub_raid_member. All users updated
18918 (allocated_devs): New member.
18919
71574288
VS
189202010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
18921
18922 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
18923 is modified
18924
8d40ec65
BC
189252010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
18926
18927 NetBSD build fix for getline function conflict from gnulib.
18928
18929 * Makefile.util.def (libgrubkern.a): New library for grub kernel
18930 components that depend on gnulib headers.
18931 (libgrubmods.a): Renamed from earlier libgrub.a.
18932 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
18933
95b9257e
VS
189342010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18935
18936 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
18937 install rather than creating a broken install.
18938
26c53dc6
VS
189392010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18940
18941 * util/grub-setup.c (argp): Remove misleading example of installing to
18942 a partition.
18943
4171b3c5
VS
189442010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18945
18946 * util/grub-setup.c (setup): Clarify the error message.
18947
18568d18
VS
189482010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
18949
18950 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
18951
4f6a2e21
VS
189522010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
18953
18954 * grub-core/kern/emu/misc.c
18955 (grub_make_system_path_relative_to_its_root)
18956 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
18957
189582010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
18959
18960 * grub-core/kern/emu/misc.c
18961 (grub_make_system_path_relative_to_its_root): Revert r2882.
18962
e138c458
VS
189632010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
18964
18965 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
18966 useless field head. All users updated.
18967 (free_subchunk): Correct handling of IN_REGION subchunk.
18968
0cbcdf0e
CW
189692010-10-22 Colin Watson <cjwatson@ubuntu.com>
18970
18971 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
18972 (Supported kernels): Likewise.
18973
b65ea155
GS
189742010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
18975
18976 Make mktemp invocations portable.
18977
18978 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
18979 exit if mktemp fails.
18980 * tests/grub_script_blockarg.in: Likewise.
18981 * tests/partmap_test.in: Likewise.
18982 * tests/util/grub-shell-tester.in: Likewise.
18983 * tests/util/grub-shell.in: Likewise.
18984 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
18985 * Makefile.am: Likewise, and chain shell commands with `&&'
18986 instead of ';'.
18987 * util/grub-mkrescue.in: Use the same explicit template as above, and
18988 exit if mktemp fails.
18989
05f43cdd
BC
189902010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
18991
18992 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
18993 Linux kernel, reported by Dennis Schridde.
18994
800e6a9b
SJ
189952010-10-17 Szymon Janc <szymon@janc.net.pl>
18996
18997 * grub-core/normal/auth.c (grub_auth_check_authentication):
18998 Set-but-not-used variable removed.
18999
d82df574
VS
190002010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19001
19002 * docs/grub.texi (GNU/Linux): Document APM unavailability with
19003 32-bit linux protocol.
19004
7bced458
VS
190052010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19006
19007 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
19008 cursor shape for sanity.
19009
5b027690
VS
190102010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19011
19012 * docs/grub.texi (Installation): Document buggy BIOS install.
19013
ba5f65cf
VS
190142010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19015
19016 * docs/grub.texi (Installation): Indent.
19017
fdf2ec9c
VS
190182010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19019
19020 * util/grub-setup.c (setup): New parameter allow_floppy.
19021 (arguments): New member allow_floppy.
19022 (argp_parser): Handle --allow-floppy.
19023 (main): Pass allow_floppy.
19024 * util/grub-install.in: New option --allow-floppy passed though to
19025 grub-setup.
19026
861dfd4c
VS
190272010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19028
19029 * util/grub-install.in: Handle partitionless disks.
19030
f77a8c24
VS
190312010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19032
19033 * util/grub-setup.c (setup): Don't clean blocklists before readability
19034 verfification.
19035
27d9ee32
VS
190362010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19037
19038 * docs/grub.texi (Installation): Document embedding zone. Remove
19039 obsolete grub-install example.
19040
6bdda8f8
SJ
190412010-10-16 Szymon Janc <szymon@janc.net.pl>
19042
19043 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
19044 Set-but-not-used variable ifdef'ed.
19045 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
19046 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
19047 variable removed.
19048 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
19049 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
19050 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19051 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
19052 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
19053 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
19054 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
19055 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
19056 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
19057 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
19058 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
19059 Likewise.
19060
e19b016b
VS
190612010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19062
19063 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
19064 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
19065 enum value.
19066
6c8d3002
VS
190672010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19068
19069 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
19070 synonym to _S5_. Needed for some DSDTs.
19071
c32b51c9
VS
190722010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19073
19074 Userspace ACPI parser debugging.
19075
19076 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
19077 headers and add relevant defines. Don't include standard headers.
19078 (main) [GRUB_DSDT_TEST]: New function.
19079 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
19080 Don't declare functions.
19081
fbfbeb39
VS
190822010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19083
19084 Remove dead grub_efi_mm_fini.
19085
19086 * grub-core/kern/efi/mm.c (allocated_page): Removed.
19087 (ALLOCATED_PAGES_SIZE): Likewise.
19088 (MAX_ALLOCATED_PAGES): Likewise.
19089 (allocated_pages): Likewise.
19090 (grub_efi_allocate_pages): Don't record allocated pages.
19091 (grub_efi_free_pages): Likewise.
19092 (grub_efi_mm_init): Likewise.
19093 (grub_efi_mm_fini): Removed.
19094
65f7ed7c
VS
190952010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19096
19097 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
19098 (grub_efi_mm_init): Take into account the memory map size increase.
19099
24977b44
VS
191002010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19101
19102 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
19103 (serial_hw_put): Wait based on real time rather than port reads. Don't
19104 roken ports.
19105 * include/grub/serial.h (grub_serial_port): New field broken.
19106
1eb01cd2
RM
191072010-10-16 Robert Millan <rmh@gnu.org>
19108
19109 * grub-core/kern/emu/misc.c
19110 (grub_make_system_path_relative_to_its_root): Fix premature return
19111 when processing non-root ZFS filesystems.
5f8b440b 19112 Reported by Sergio Talens-Oliag.
1eb01cd2 19113
2d5fed60
RM
191142010-10-15 Robert Millan <rmh@gnu.org>
19115
19116 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
19117 guarantee compressed ones are processed first.
19118
d0f4c1ea
VS
191192010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19120
19121 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
19122 grub_efiemu_autocore.
19123
d87c681f
VS
191242010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19125
19126 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
19127 rather than 0x1b.
19128 (grub_console_getkey): Use correct jae opcode rather than ja.
19129
219b3564
RM
191302010-10-12 Robert Millan <rmh@gnu.org>
19131
19132 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
19133 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
19134 variable. All references updated.
19135
19136 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
19137
20c6bb7e
VS
191382010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
19139
19140 Correctly distinguish mdraid flavours.
19141
19142 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
19143 (insert_array): New argument raid.
19144 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
19145 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
19146 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
19147
74baff84
VS
191482010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
19149
19150 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
19151 handling of special keys.
19152
3ef068df 191532010-10-02 Aleš Nesrsta <starous@volny.cz>
19154
c7980ad9
VS
19155 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
19156 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 19157
a9455194 191582010-10-02 Aleš Nesrsta <starous@volny.cz>
19159
c7980ad9
VS
19160 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
19161 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
19162 users updated.
a9455194 19163 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 19164 Use right endpoint when querying descriptor.
a9455194 19165
441cfe65
VS
191662010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19167
19168 Clear out 0x80 color bit on EFI.
19169 Tested by: decoder
19170 Reported by: decoder and meta tech.
19171
19172 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
19173 (grub_console_setcolorstate): Clear out 0x80 bit.
19174 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
19175 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
19176 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
19177
bf26bcc4
VS
191782010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19179
19180 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
19181 Set to "auto".
19182
6e3c515d
VS
191832010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19184
19185 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
19186 mo_file after freeing.
19187
e6d983ba
VS
191882010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19189
19190 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
19191
74ccb5b5
VS
191922010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19193
19194 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
19195 flags.
19196
17821956
VS
191972010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19198
19199 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
19200 usage.
19201
ee74fa48
VS
192022010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19203
19204 Put terminfo into core on ieee1275 and yeeloong (needed for console).
19205
19206 * gentpl.py: New groups terminfoinkernel and terminfomodule.
19207 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
19208 and terminfo.h when needed.
19209 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
19210 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
19211 (terminfo): Enable only on terminfokernel.
19212 (extcmd): Likewise.
19213 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
19214 * include/grub/lib/arg.h: Likewise.
19215 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
19216 incorrect usage of ->.
19217
aa438e68
VS
192182010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19219
19220 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
19221 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
19222
57994012
VS
192232010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19224
19225 Fix coreboot compilation.
19226
19227 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19228 Take VBE info into account even if only text is supported.
19229 (fill_vbe_info): Take into account the case when only VGA text
19230 is supported.
19231 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
19232 on coreboot, multiboot and qemu.
19233
2a406611
VS
192342010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19235
19236 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
19237 debug messages.
19238 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
19239
d33613fc
VS
192402010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19241
19242 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
19243 parameters.
19244
44a1b432
VS
192452010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19246
19247 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
19248 if they were BSD-style.
19249
edde54e6
VS
192502010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19251
19252 * grub-core/boot/i386/pc/lnxboot.S: Replace
19253 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
19254 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
19255
b65830fa
VS
192562010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19257
19258 Write embedding zone using Reed-Solomon.
19259
19260 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
19261 * grub-core/Makefile.am (rs_decoder.S): New target.
19262 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
19263 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
19264 (multiboot): Move to RS part.
19265 (post_reed_solomon): New label.
19266 (grub_boot_drive): Move to non-RS part since it's modified in memory
19267 on boot.
19268 Include rs_decoder.S.
19269 * grub-core/lib/reed_solomon.c: New file.
19270 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
19271 New definition.
19272 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
19273 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
19274 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
19275 * include/grub/partition.h (grub_partition_map): Change prototype of
19276 embed to allow returning additional sectors.
19277 * include/grub/reed_solomon.h: New file.
19278 * util/grub-setup.c (setup): Handle Reed-Solomon.
19279
0b4b227f
CW
192802010-09-28 Colin Watson <cjwatson@ubuntu.com>
19281
19282 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19283 i386 and x86-64 definedness tests.
19284
f772623b
YB
192852010-09-27 Yves Blusseau <blusseau@zetam.org>
19286
19287 Fix generation of kernel_syms.lst
19288
19289 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
19290 ASM_PREFIX
19291
8e57a6ca
RM
192922010-09-26 Robert Millan <rmh@gnu.org>
19293
19294 Support degraded ZFS arrays in "grub-probe -t device" resolution.
19295
19296 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
19297 the pool is an array of devices, iterate through it and return the
19298 first device that passes a stat() test (instead of blindly returning
19299 the first one).
19300
f9130836
RM
193012010-09-26 Robert Millan <rmh@gnu.org>
19302
19303 Build fixes for GNU/kFreeBSD.
19304
19305 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
19306 to programs that require ZFS conversion.
19307 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
19308 kernels that don't have FLOPPY_MAJOR.
19309
96510faf
BC
193102010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19311
19312 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
19313
449333eb
BC
193142010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19315
19316 Fix grub-emu build.
19317
19318 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
19319 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
19320 mdraid09 and mdraid1x.
19321
e1fd1939
CW
193222010-09-24 Colin Watson <cjwatson@ubuntu.com>
19323
19324 Re-enable grub-extras.
19325
19326 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
19327 avoid confusing Automake. Run autogen only twice, once for the top
19328 level and once for grub-core. Add Makefile.util.def and
19329 Makefile.core.def from extra modules to the appropriate autogen
19330 invocations. If Makefile.common exists in an extra module, include
19331 it in both Makefile.util.am and grub-core/Makefile.core.am;
19332 similarly, include any Makefile.util.common file in Makefile.util.am
19333 and any Makefile.core.common file in grub-core/Makefile.core.am.
19334 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
19335 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
19336 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
19337 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
19338
19339 * gentpl.py (gvar_add): Turn GVARS into a set.
19340 (global_variable_initializers): Sort global variables on output.
19341 (vars_init): New function.
19342 (first_time): Likewise.
19343 (library): Ensure that non-global variable initialisations are
19344 emitted before the first time we emit code for a library block.
19345 Append to variables rather than setting them. Only emit
19346 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
19347 each conditional path.
19348 (program): installdir() emits an Autogen macro, so must be passed to
19349 var_add rather than gvar_add.
19350 (data): Likewise.
19351 (script): Likewise.
19352 (rules): New function, centralising handling for different target
19353 types. Set up Guile association lists for first_time and vars_init,
19354 and send most output to a diversion so that variable initialisations
19355 can be emitted first.
19356 (module_rules): Use new rules function.
19357 (kernel_rules): Likewise.
19358 (image_rules): Likewise.
19359 (library_rules): Likewise.
19360 (program_rules): Likewise.
19361 (script_rules): Likewise.
19362 (data_rules): Likewise.
19363
19364 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
19365
19366 * .bzrignore: Add contrib and grub-core/contrib. Remove
19367 grub-core/Makefile.gcry.am.
19368
1d12cf29
YB
193692010-09-24 Yves Blusseau <blusseau@zetam.org>
19370
19371 * grub-core/lib/LzFind.c: Add missing include.
19372 * grub-core/lib/LzmaEnc.c: Likewise.
19373 * grub-core/script/lexer.c: Likewise.
19374 * grub-core/script/yylex.l: Likewise.
19375 * util/grub-macho2img.c: Likewise.
19376 * util/grub-menulst2cfg.c: Likewise.
19377 * util/grub-mklayout.c: Likewise.
19378 * util/grub-mkpasswd-pbkdf2.c
19379 * util/grub-mkrelpath.c: Likewise.
19380 * util/resolve.c: Likewise.
19381
dd363028
BC
193822010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
19383
19384 * Makefile.util.def (example_unit_test): Add
19385 grub-core/gnulib/libgnu.a.
19386
f5a109e2
GS
193872010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
19388
19389 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
19390
6d0fa83c
VS
193912010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
19392
19393 Support xz compression on yeeloong.
19394
19395 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
19396 * configure.ac: Check for LZMA.
19397 * grub-core/Makefile.core.def (xz_decompress): New target.
19398 (none_decompress): Likewise.
19399 * grub-core/boot/decompressor/minilib.c: New file.
19400 * grub-core/boot/decompressor/none.c: Likewise.
19401 * grub-core/boot/decompressor/xz.c: Likewise.
19402 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
19403 * grub-core/kern/mips/cache_flush.S: Likewise.
19404 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
19405 * grub-core/kern/mips/startup.S: Move first stage to ...
19406 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
19407 nomacro.
19408 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
19409 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
19410 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
19411 Allocate statically.
19412 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
19413 Allocate statically or use scratch. Don't check CRC32.
19414 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
19415 Allocate statically. Don't check CRC32.
19416 * include/grub/decompressor.h: New file.
19417 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
19418 Removed.
19419 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
19420 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
19421 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
19422 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
19423 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
19424 * util/grub-mkimage.c (grub_compression_t): New type.
19425 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
19426 (image_target_desc): New field default_compression.
19427 (image_targets): Adjust yeeloong targets.
19428 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
19429 (compress_kernel): New parameter comp.
19430 (generate_image): Likewise. Handle new compression case.
19431 (options): New option --compression
19432 (help): Likewise.
19433 (main): Handle new option.
19434
1b655af6
GS
194352010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
19436
19437 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
19438
8f03f0b5
CW
194392010-09-22 Colin Watson <cjwatson@ubuntu.com>
19440
19441 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19442 typo in __i386__ conditional.
19443
7835dfd3
VS
194442010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19445
19446 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
19447 include.
19448
e255597e
VS
194492010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19450
6d0fa83c 19451 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
19452
19453 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
19454 new tags as supported.
19455 (acpiv2_size): New function.
19456 (grub_multiboot_get_mbi_size): Take new tags into account.
19457 (grub_multiboot_make_mbi): Add new tags.
19458 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 19459
6cc14051 194602010-09-21 Aleš Nesrsta <starous@volny.cz>
19461
19462 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
19463 Added missing configuration of USB device.
19464
df7769d8
CW
194652010-09-21 Colin Watson <cjwatson@ubuntu.com>
19466
19467 * grub-core/normal/menu_entry.c (run): Make sure we always return
19468 a value.
19469
b031012d
CW
194702010-09-21 Colin Watson <cjwatson@ubuntu.com>
19471
19472 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
19473 NumberOfPages is UINT64 according to the UEFI specification, not
19474 UINTN. Fix printf format.
19475
174de8f3
CW
194762010-09-21 Colin Watson <cjwatson@ubuntu.com>
19477
19478 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
19479 `err' to grub_usb_err_t.
19480 Reported and tested by: KESHAV P.R.
19481
d7dbe923
CW
194822010-09-21 Colin Watson <cjwatson@ubuntu.com>
19483
19484 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
19485 tpart non-const, so that we can assign to it. (Since this is a
19486 typedef, the constness refers to the pointer rather than what it
19487 points to.)
19488
8d5e2af3
CW
194892010-09-21 Colin Watson <cjwatson@ubuntu.com>
19490
19491 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
19492 $(top_srcdir)/grub-core/gnulib as well as
19493 $(top_builddir)/grub-core/gnulib.
19494 Reported by: KESHAV P.R.
19495
5c527783
CW
194962010-09-21 Colin Watson <cjwatson@ubuntu.com>
19497
19498 * util/grub-install.in: Fix the bootloader ID option to be
19499 consistently --bootloader-id, not --bootloader_id.
19500 Reported by: KESHAV P.R.
19501
d309a16e
CW
195022010-09-21 Colin Watson <cjwatson@ubuntu.com>
19503
19504 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
19505 check hash checksum." consistently translatable.
19506
b830cd16
YB
195072010-09-21 Yves Blusseau <blusseau@zetam.org>
19508
19509 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
19510 $(top_builddir).
19511
c4fe27a8
CW
195122010-09-21 Colin Watson <cjwatson@ubuntu.com>
19513
19514 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
19515 (GRUB_MOD_INIT): Register sha1sum command.
19516 (GRUB_MOD_FINI): Unregister sha1sum command.
19517
a4c1d277
YB
195182010-09-21 Yves Blusseau <blusseau@zetam.org>
19519
19520 Keep boot and grub directory names in sync with utils scripts
19521
19522 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
19523 * config.h.in: Add previous macros.
19524 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
19525 * util/grub-install.in: Use $bootdir and $grubdir variables.
19526
4eff79d2
CW
195272010-09-21 Colin Watson <cjwatson@ubuntu.com>
19528
19529 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
19530 convert partition names to disk names if the new `convert' parameter
19531 is set.
19532 (grub_util_biosdisk_get_grub_dev): If opening the disk device
19533 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
19534 disk in its own right. This can happen with Xen disk images.
19535
934d7e44
YB
195362010-09-21 Yves Blusseau <blusseau@zetam.org>
19537
19538 * util/grub-editenv.c: Update strings to avoid warnings when generating
19539 grub.pot file.
19540 * util/grub-setup.c: Likewise.
934d7e44 19541
df3367cc
VS
195422010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19543
19544 * configure.ac: Change version to 1.99~beta0.
19545
77a94e98
VS
195462010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19547
19548 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
19549 Add BADRAM.
19550 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
19551 Likewise.
19552 * include/multiboot.h: Resynced with specification.
19553 * include/multiboot2.h: Likewise.
19554
269004c1
CW
195552010-09-21 Colin Watson <cjwatson@ubuntu.com>
19556
19557 Fix po directory handling.
19558
19559 * configure.ac: Create po/Makefile.in rather than po/Makefile.
19560 * grub-core/gnulib/Makefile.am: Import gettext module.
19561 * m4/gnulib-cache.m4: Likewise.
19562 * m4/gnulib-comp.m4: Likewise.
19563 * m4/gettext.m4: New file, from gnulib.
19564 * m4/glibc2.m4: Likewise.
19565 * m4/iconv.m4: Likewise.
19566 * m4/intdiv0.m4: Likewise.
19567 * m4/intl.m4: Likewise.
19568 * m4/intldir.m4: Likewise.
19569 * m4/intlmacosx.m4: Likewise.
19570 * m4/intmax.m4: Likewise.
19571 * m4/inttypes-pri.m4: Likewise.
19572 * m4/lcmessage.m4: Likewise.
19573 * m4/lib-ld.m4: Likewise.
19574 * m4/lib-link.m4: Likewise.
19575 * m4/lib-prefix.m4: Likewise.
19576 * m4/lock.m4: Likewise.
19577 * m4/nls.m4: Likewise.
19578 * m4/po.m4: Likewise.
19579 * m4/printf-posix.m4: Likewise.
19580 * m4/progtest.m4: Likewise.
19581 * m4/threadlib.m4: Likewise.
19582 * m4/uintmax_t.m4: Likewise.
19583 * m4/visibility.m4: Likewise.
19584 * po/Makefile.am: Remove.
19585 * po/Makefile.in.in: New file, from gettext.
19586 ($(DOMAIN).pot-update): Support POTFILES-shell.
19587 * po/Makevars: New file.
19588 * po/POTFILES-shell: Rename to ...
19589 * po/POTFILES-shell.in: ... this. Update.
19590 * po/POTFILES: Rename to ...
19591 * po/POTFILES.in: ... this. Update.
19592 * po/Rules-quot: New file, from gettext.
19593 * po/boldquot.sed: Likewise.
19594 * po/en@boldquot.header: Likewise.
19595 * po/en@quot.header: Likewise.
19596 * po/insert-header.sin: Likewise.
19597 * po/quot.sed: Likewise.
19598 * po/remove-potcdate.sin: Likewise.
19599
3e0fa5d0
VS
196002010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19601
19602 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
19603
ade9bd66
VS
196042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19605
19606 * util/grub.d/20_linux_xen.in: Use submenus.
19607
fc55cc4c
VS
196082010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19609
19610 Support submenus.
19611
19612 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
19613 parameter submenu. All users updated.
19614 * grub-core/normal/main.c (free_menu): Rename to ...
19615 (grub_normal_free_menu): ... this. Made global.
19616 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
19617 if requested.
19618 * grub-core/normal/menu_entry.c (screen): New field submenu.
19619 (make_screen): Set submenu.
19620 (run): Open new context if requested.
19621 * include/grub/menu.h (grub_menu_entry): New field submenu.
19622 * include/grub/normal.h (grub_normal_free_menu): New proto.
19623
600cedf7
VS
196242010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19625
19626 Menu entries extractor.
19627
19628 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
19629 variants.
19630 (GRUB_MOD_INIT): Register new variants.
19631 (GRUB_MOD_FINI): Unregister new variants.
19632 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
19633 into grub_cmd_legacy_source.
19634 (grub_cmd_legacy_source): Implement extractor variants.
19635 (GRUB_MOD_INIT): Register new variants.
19636 (GRUB_MOD_FINI): Unregister new variants.
19637 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
19638 as an extractor.
19639 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
19640 search as an extractor.
19641 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
19642 test as an extractor.
19643 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
19644 as an extractor.
19645 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
19646 (grub_env_new_context): New function.
19647 (grub_env_context_open): Likewise.
19648 (grub_env_extractor_open): Likewise.
19649 (grub_env_extractor_close): Likewise.
19650 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
19651 grub_extractor_level.
19652 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
19653 * include/grub/env.h (grub_env_extractor_open): New proto.
19654 (grub_env_extractor_close): Likewise.
19655 * include/grub/normal.h (grub_extractor_level): New external variable.
19656
7bda3a87
VS
196572010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19658
19659 Make cutmem accept a region specification.
19660 Suggested by: Samuel Thibault
19661
19662 * grub-core/mmap/mmap.c (parsemem): New function.
19663 (grub_cmd_cutmem): Handle new arguments.
19664
2ea57f88
VS
196652010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19666
19667 New command cutmem.
19668
19669 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
19670 (GRUB_MOD_INIT): Register new command.
19671 (GRUB_MOD_FINI): Unregister new command.
19672
74342e31
VS
196732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19674
19675 Support some annoying BSD and Minix subpartitions.
19676
19677 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
19678 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
19679 Properly handle concatenation.
19680 * grub-core/kern/device.c (grub_device_iterate): Likewise.
19681 * grub-core/normal/completion.c (iterate_partition): Likewise.
19682 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
19683 contain partition. All users updated.
19684 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
19685 struct.
19686 (grub_openbsdlabel_partition_map): Likewise.
19687 (bsdlabel_partition_map_iterate): Rename to ..
19688 (iterate_real): ... this. New arguments sector, freebsd and pmap.
19689 (bsdlabel_partition_map_iterate): New function.
19690 (netopenbsdlabel_partition_map_iterate): Likewise.
19691 (netbsdlabel_partition_map_iterate): Likewise.
19692 (openbsdlabel_partition_map_iterate): Likewise.
19693 (GRUB_MOD_INIT): Register new partmaps.
19694 (GRUB_MOD_FINI): Unregister new partmaps.
19695 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
19696 (grub_partition_msdos_iterate): ... this. All users updated.
19697 Don't support embedding other than in a minix partition.
19698 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
19699 proto.
19700 * include/grub/partition.h (grub_partition): New field msdostype.
19701 * util/grub-install.in: Handle openbsd and netbsd types being in
19702 part_bsd module.
19703
1e8d555b
VS
197042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19705
19706 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
19707
19708 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
19709 * grub-core/Makefile.core.def (mdraid): Renamed to ...
19710 (mdraid09): ... this.
19711 (mdraid1x): New module.
19712 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
19713 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
19714
899d8af4
VS
197152010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19716
19717 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
19718 vsprintf.
19719
40901acd
CW
197202010-09-20 Colin Watson <cjwatson@ubuntu.com>
19721
19722 * grub-core/commands/efi/lsefimmap.c: Correct header.
19723 * NEWS: Update.
19724
dfe3b247
CW
197252010-09-20 Colin Watson <cjwatson@ubuntu.com>
19726
19727 * util/grub-editenv.c (argp_parser): Don't pass translated strings
19728 as printf format strings; the translations might contain '%' which
19729 could cause a crash.
19730 (main): Likewise.
19731 * util/grub-fstest.c (argp_parser): Likewise.
19732 * util/grub-setup.c (argp_parser): Likewise.
19733 (main): Likewise.
19734
3286a4b4
VS
197352010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19736
19737 Use argp in grub-fstest.
19738
19739 * util/grub-fstest.c: Don't include getopt.h.
19740 Include argp.h.
19741 (root): New variable.
19742 (args_count): Likewise.
19743 (nparm): Likewise.
19744 (num_disks): Likewise.
19745 (images): Likewise.
19746 (cmd): Likewise.
19747 (debug_str): Likewise.
19748 (args): Likewise.
19749 (options): Transformed to argp.
19750 (usage): Removed.
19751 (main): Split argument parsing into ...
19752 (argp_parser): ... this. Changed to argp format.
19753 (argp): New variable.
19754 (main): Use argp_parse.
19755
3dccbe4b
TG
197562010-09-20 Tristan Gingold <gingold@free.fr>
197572010-09-20 Robert Millan <rmh.grub@aybabtu.com>
197582010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19759
19760 * grub-core/commands/efi/lsefimmap.c: New file.
19761 * grub-core/Makefile.core.def (lsefimmap): New module.
19762 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
19763
38c259a7
VS
197642010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19765
19766 Pause the execution (10s max) if any errors are displayed so the user
19767 has a chance to see them.
19768
19769 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
19770 (grub_print_error): Increment grub_err_printed_errors.
19771 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
19772 execution if any errors were displayed.
19773 (show_menu): Remove old code for pause.
19774 * grub-core/normal/menu_entry.c (run): Likewise.
19775 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
19776 users updated.
19777 (grub_normal_get_char_counter): Likewise.
19778 * include/grub/err.h (grub_err_printed_errors): New external variable.
19779 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
19780
f218b09c
VS
197812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19782
19783 Support multiboot VBE info.
19784
19785 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19786 Take VBE info into account.
19787 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
19788 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19789 Call fill_vbe_info when appropriate.
19790 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
19791 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
19792 as supported.
19793 (grub_multiboot_get_mbi_size): Take new tags into account.
19794 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
19795 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
19796 Call fill_vbe_tag when appropriate.
19797 (grub_multiboot_make_mbi): Properly align tags.
19798 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
19799 function.
19800 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
19801 proto.
19802 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
19803
a9cc5438
VS
198042010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19805
19806 Suport manual terminal geometry specification.
19807
19808 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
19809 Save state in grub_ofconsole_terminfo_output.
19810 (grub_ofconsole_term): Use grub_terminfo_getwh.
19811 (grub_ofconsole_getwh): Removed.
19812 * grub-core/term/serial.c (grub_serial_getwh): Removed.
19813 (grub_serial_term): Use grub_terminfo_getwh.
19814 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
19815 (options): New struct.
19816 (OPTION_*): New enum.
19817 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
19818 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
19819 width and height.
19820 (grub_terminfo_getwh): New proto.
19821 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
19822
1a8fed20
VS
198232010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19824
19825 Handle legacy "terminal" command.
19826
19827 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
19828 and FLAG_TERMINAL.
19829 (legacy_commands): Add terminal and title.
19830 (grub_legacy_parse): Handle terminal. Simplify title handling.
19831
41e9c57d
VS
198322010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19833
19834 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
19835 parameters overflow.
19836
61c874c5
CW
198372010-09-20 Colin Watson <cjwatson@ubuntu.com>
19838
19839 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
19840 widthspec.h.
19841
19842 * docs/grub.texi (Shell-like scripting): Document `!'.
19843 (Network): Simplify using new i386-pc-pxe format. Mention
19844 grub-mknetdir.
19845
19846 * NEWS: Update.
19847
943682b4
CW
198482010-09-20 Colin Watson <cjwatson@ubuntu.com>
19849
19850 * Makefile.am (SUBDIRS): Restore "."; it's important to force
19851 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
19852 when needed.
19853
6d3d698d
CW
198542010-09-20 Colin Watson <cjwatson@ubuntu.com>
19855
19856 * grub-core/commands/efi/lsefisystab.c: Correct header.
19857 * grub-core/commands/efi/lssal.c: Likewise.
19858 * grub-core/commands/testload.c: Likewise.
19859
c982589f
CW
198602010-09-20 Colin Watson <cjwatson@ubuntu.com>
19861
19862 * util/grub-mkrescue.in: Add explicit root argument to --set to
19863 prevent the UUID being interpreted as an argument to --set (matches
19864 previous change to prepare_grub_to_access_device).
19865
a63c31b6
CW
198662010-09-20 Colin Watson <cjwatson@ubuntu.com>
19867
19868 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
19869 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
19870 the verbosity of later #ifs.
19871 (find_partition_start): Define this function on FreeBSD too.
19872 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
19873 function.
19874 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
19875 on FreeBSD.
19876
6439b8ee
YB
198772010-09-20 Yves Blusseau <blusseau@zetam.org>
19878
19879 * util/grub-editenv.c: Use argp instead of getopt.
19880
c5930ec8
YB
198812010-09-20 Yves Blusseau <blusseau@zetam.org>
19882
19883 * util/grub-setup.c: Use argp instead of getopt.
19884
15c69261
YB
198852010-09-20 Yves Blusseau <blusseau@zetam.org>
19886
19887 Use gnulib-tool to create gnulib source files.
19888
19889 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
19890 grub-core/gnulib directories
19891 * .bzignore: Add **/.deps and autogenerated gnulib files
19892 * configure.ac: Assign auxiliary directory to build-aux, add invocation
19893 of gnulib macros, add grub-core/gnulib/Makefile
19894 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
19895 include m4 directory to aclocal.
19896 * Makefile.util.def: Remove direct compilation of gnulib source files
19897 and use the new grub-core/gnulib/libgnu.a.
19898 * build-aux/config.rpath: move config.rpath from top directory to
19899 build-aux
19900 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
19901 in gnulib headers
19902 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
19903 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
19904 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
19905 header.
19906 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
19907 string.
19908
e511c9f5
YB
199092010-09-20 Yves Blusseau <blusseau@zetam.org>
19910
19911 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
19912 grub-core/genmod.sh and grub-core/gensyminfo.sh
19913
c2dede05
BC
199142010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
19915
19916 Add a test for echo command options.
19917
19918 * tests/grub_cmd_echo.in: New test.
19919 * Makefile.util.def: Rules for new test.
19920
c55f5018
SJ
199212010-09-20 Szymon Janc <szymon@janc.net.pl>
19922
19923 Remove crc.mod and move crc command to hashsum.mod.
19924 Remove lib/crc.c - users updated to use gcrypt implementation.
19925
19926 * grub-core/commands/crc.c: Removed.
19927 * grub-core/Makefile.core.def (crc): Module removed.
19928 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
19929 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
19930 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
19931 * grub-core/lib/crc.c: Removed.
19932 * include/grub/lib/crc.h: Removed.
19933 * Makefile.util.def (crc): Remove lib/crc.c
19934 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
19935 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
19936 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
19937 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
19938 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
19939 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
19940
e0337366
VS
199412010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
19942
19943 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
19944
742f9232
VS
199452010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19946
19947 Split config.h for util and core.
19948
19949 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
19950 (ADDR32): Likewise.
19951 (DATA32): Likewise.
19952 (BSS_START_SYMBOL): Likewise.
19953 (END_SYMBOL): Likewise.
19954 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
19955 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
19956 * config.h.in: New file.
19957 * configure.ac: Use config-util.h as config define file.
19958 Rename MACHINE into GRUB_MACHINE. All users updated.
19959 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
19960 updated.
19961 (NESTED_FUNC_ATTR): Likewise.
19962 Substitue new variables.
19963 (COND_HAVE_ASM_USCORE): New conditional.
19964 * grub-core/Makefile.am (ASM_PREFIX): New variable.
19965 (kernel_syms.lst): Use ASM_PREFIX.
19966 * grub-core/kern/emu/console.c: Include config-util.h.
19967 * grub-core/kern/emu/misc.c: Likewise.
19968 * grub-core/kern/emu/mm.c: Likewise.
19969 * include/grub/emu/misc.h: Likewise.
19970 * include/grub/libgcc.h: Likewise.
19971
39feb0e8
VS
199722010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19973
19974 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
19975 constants usage.
19976 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
19977 Fix GRUB_TERM_KEY_* constants usage.
19978 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
19979
9af6dac3
VS
199802010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19981
19982 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
19983 print pointer.
19984 * grub-core/bus/usb/uhci.c: Remove empty define.
19985 (grub_uhci_check_transfer): Add missing cast.
19986 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
19987 print pointer.
19988 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
19989 PRIuGRUB_SIZE.
19990 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
19991
d6d94820
VS
199922010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
19993
19994 * grub-core/Makefile.core.def (legacycfg): Add
19995 lib/i386/pc/vesa_modes_table.c on emu.
19996
3572f2b6
BC
199972010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
19998
19999 Reduce number of temporary files generated by build system.
20000
20001 * grub-core/gencmdlist.sh: Removed.
20002 * grub-core/genfslist.sh: Removed.
20003 * grub-core/genhandlerlist.sh: Removed.
20004 * grub-core/genmodsrc.sh: Removed.
20005 * grub-core/genpartmaplist.sh: Removed.
20006 * grub-core/genparttoollist.sh: Removed.
20007 * grub-core/gentermiinallist.sh: Removed.
20008 * grub-core/genvideolist.sh: Removed.
20009
20010 * grub-core/genmod.sh.in: New file.
20011 * grub-core/gensyminfo.sh.in: New file.
20012
20013 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
20014 * conf/Makefile.extra-dist: Update with new files.
20015 * gentpl.py: Remove rules related to unnecessary temporary files.
20016 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
20017 and und-* files.
20018 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
20019 genmod.sh scripts.
20020 * grub-core/bus/usb/uhci.c: Remove empty #define.
20021 * grub-core/genmoddep.awk: Updated with new syminfo format.
20022 * util/bash-completion.d/Makefile.am: Add config.log to
20023 CLEANFILES.
20024
c836b030
YB
200252010-09-19 Yves Blusseau <blusseau@zetam.org>
20026
20027 * Makefile.util.def: Add forgotten $(LIBINTL) library.
20028
2f4e8053
BC
200292010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20030
20031 * util/grub-mkconfig.in: Check the config script for syntax errors
20032 before saving.
20033
75831c34
CW
200342010-09-19 Colin Watson <cjwatson@ubuntu.com>
200352010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20036
20037 * Makefile.util.def (grub-install): Use util/grub-install.in on all
20038 platforms.
20039 * util/grub-install.in: Add EFI and IEEE1275 support.
20040 * util/i386/efi/grub-install.in: Removed.
20041 * util/ieee1275/grub-install.in: Likewise.
20042
eaf41b25
VS
200432010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20044
20045 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
20046 (grub_cmd_cmosclean): Likewise.
20047 (GRUB_MOD_INIT): Register command cmosclean.
20048 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
20049 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
20050
1a9130dd
CPE
200512010-09-18 Carles Pina i Estany <carles@pina.cat>
200522010-09-18 Aleš Nesrsta <starous@volny.cz>
200532010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20054
20055 Add keyboard layouts support.
20056
20057 * Makefile.util.def (grub-mklayout): New file.
20058 (grub-kbdcomp): New script.
20059 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
20060 Add keyboard_layouts.h.
20061 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
20062 commands/boot.c on yeeloong.
20063 (keylayouts): New module.
20064 * grub-core/bus/usb/ohci.c
20065 * grub-core/bus/usb/uhci.c
20066 * grub-core/bus/usb/usbhub.c (rescan): New variable.
20067 (grub_usb_add_hub): Poll interrupt pipe for device handling.
20068 (attach_root_port): Likewise.
20069 (poll_nonroot_hub): Likewise.
20070 (grub_usb_poll_devices): Likewise.
20071 (detach_device): Close transfer.
20072 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
20073 function.
20074 (grub_usb_bulk_setup_readwrite): Likewise.
20075 (grub_usb_bulk_finish_readwrite): Likewise.
20076 * grub-core/commands/keylayouts.c: New file.
20077 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
20078 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
20079 aliases.
20080 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
20081 support scancode 2.
20082 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
20083 * include/grub/keyboard_layouts.h: New file.
20084 * util/grub-mklayout.c: New file.
20085 * util/grub-kbdcomp.in: Likewise.
20086
a1d84a5e
VS
200872010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20088
20089 Unify memory types.
20090
20091 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
20092 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
20093 types.
20094 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
20095 (grub_upper_mem): Likewise.
20096 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
20097 * include/grub/memory.h (grub_memory_type_t): New enum.
20098 All users updated.
20099
9696382e
VS
201002010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20101
20102 * grub-core/Makefile.core.def (lsapm): New module.
20103 * grub-core/commands/i386/pc/lsapm.c: New file.
20104 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
20105 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
20106 Likewise.
20107 * include/grub/i386/pc/apm.h: New file.
20108 * include/multiboot.h (multiboot_apm_info): New struct.
20109
201102010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20111
20112 GRUB-legacy configuration file support.
20113
20114 * Makefile.util.def (grub-menulst2cfg): New util.
20115 * docs/man/grub-menulst2cfg.h2m: New file.
20116 * grub-core/Makefile.core.def (legacycfg): New module.
20117 * grub-core/commands/legacycfg.c: New file.
20118 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
20119 (grub_normal_add_menu_entry): ... this.
20120 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
20121 (grub_normal_set_password): ...this.
20122 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
20123 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
20124 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
20125 * grub-core/lib/legacy_parse.c: New file.
20126 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
20127 * include/grub/i386/pc/vesa_modes_table.h: New file.
20128 * include/grub/legacy_parse.h: Likewise.
20129 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
20130 * util/grub-menulst2cfg.c: New file.
20131
bf8d1338
CW
201322010-09-17 Colin Watson <cjwatson@ubuntu.com>
20133
20134 * grub-core/kern/emu/hostdisk.c
20135 (convert_system_partition_to_system_disk): Initialise node.
20136
9c0bad2e
CW
201372010-09-17 Colin Watson <cjwatson@ubuntu.com>
20138
20139 * grub-core/kern/emu/hostdisk.c
20140 (convert_system_partition_to_system_disk): Fix devmapper memory pool
20141 leak.
20142 Reported and based on patch by: Modestas Vainius.
20143
a939d135
CW
201442010-09-17 Colin Watson <cjwatson@ubuntu.com>
20145
20146 Fix DM-RAID probing with recent versions of device-mapper udev
20147 rules.
20148
20149 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
20150 canonicalise device paths under /dev/mapper/.
20151 (convert_system_partition_to_system_disk): Compare the
20152 uncanonicalised path to /dev/mapper/ rather than the canonicalised
20153 path, since device nodes under /dev/mapper/ are often symlinks.
20154
0f7ee3c9
YB
201552010-09-17 Yves Blusseau <blusseau@zetam.org>
20156
20157 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
20158
10854d0d
YB
201592010-09-16 Yves Blusseau <blusseau@zetam.org>
20160
20161 * configure.ac: Avoid some annoying error messages if freetype-config
20162 program is not found.
20163
108538d8
CW
201642010-09-16 Colin Watson <cjwatson@ubuntu.com>
20165
20166 Support RAID on virtio devices, and others.
20167
20168 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
20169 Rename to ...
20170 [__MINGW32__] (grub_find_device): ... this.
20171 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
20172 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
20173 reasonable default if dir is NULL.
20174 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
20175 ...
20176 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
20177 (grub_guess_root_device): Update callers.
20178 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
20179
20180 * util/raid.c (grub_util_getdiskname): Remove.
20181 (grub_util_raid_getmembers): Use grub_find_device rather than
20182 grub_util_getdiskname.
20183
e5bfc130
CW
201842010-09-16 Colin Watson <cjwatson@ubuntu.com>
20185
20186 * docs/grub.texi (serial): Remove obsolete comment about GRUB
20187 needing to be compiled with serial support.
20188 (ls): Indicate that multiple files are accepted.
20189 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
20190 indicate that multiple files are accepted.
20191
be458ae2
CW
201922010-09-16 Colin Watson <cjwatson@ubuntu.com>
20193
20194 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
20195 libgrub_a_init.c, and util/bash-completion.d/grub.
20196
cb731b5e
VS
201972010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20198
20199 * util/grub-setup.c (setup): Fix incorrect container semantics.
20200
35139e8a
VS
202012010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20202
20203 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
20204 misusage.
20205 Reported by: J. Nick Terry
20206
e50fca4a
VS
202072010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20208
20209 Move embedding routines to partmap sources files.
20210
20211 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
20212 [GRUB_UTIL]: New variable.
20213 (gpt_partition_map_iterate): Set part.parent.
20214 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
20215 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
20216 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
20217 New function.
20218 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
20219 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
20220 (grub_partition_map) [GRUB_UTIL]: New field embed.
20221 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
20222 (setup): Use ->embed.
20223
f00478b7
VS
202242010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20225
20226 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
20227 function.
20228 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
20229 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
20230
2b94e3ff
YB
202312010-09-15 Yves Blusseau <blusseau@zetam.org>
20232
20233 Add function to get completions from usage.
20234
20235 * util/bash-completion.d/grub-completion.bash.in: Add function to get
20236 completions from usage. Use LC_ALL=C to get options properly.
20237
2e04a006
VS
202382010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20239
20240 * grub-core/gnulib/basename-lgpl.c: Imported.
20241 * grub-core/gnulib/basename.c: Likewise.
20242 * grub-core/gnulib/dirname-lgpl.c: Likewise.
20243 * grub-core/gnulib/dirname.c: Likewise.
20244 * grub-core/gnulib/dirname.h: Likewise.
20245 * grub-core/gnulib/stripslash.c: Likewise.
20246
5dcdf93a
VS
202472010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20248
20249 * grub-core/gnulib/error.c: Resynced.
20250 * grub-core/gnulib/getopt.c: Likewise.
20251 * grub-core/gnulib/getopt_int.h: Likewise.
20252 * grub-core/gnulib/regex.h: Likewise.
20253 * grub-core/gnulib/regex_internal.c: Likewise.
20254 * grub-core/gnulib/regex_internal.h: Likewise.
20255
014f47b7
SJ
202562010-09-15 Szymon Janc <szymon@janc.net.pl>
20257
20258 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
20259 CRC calculations and validity checks.
20260 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
20261 calculations.
20262
dd521a4a
SJ
202632010-09-15 Szymon Janc <szymon@janc.net.pl>
20264
20265 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
20266
79c4eeb9
VS
202672010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20268
20269 Fix incorrect echo options handling.
20270 Reported by: Yves Blusseau.
20271
20272 * include/grub/command.h (grub_command_flags_t): New flags
20273 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
20274 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
20275 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
20276
ed80f7d5
VS
202772010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20278
20279 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
20280 users updated.
20281 (GRUB_COMMAND_FLAG_MENU): Likewise.
20282 (GRUB_COMMAND_FLAG_BOTH): Likewise.
20283 (GRUB_COMMAND_FLAG_TITLE): Removed.
20284 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
20285 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
20286 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
20287 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
20288 (grub_command_flags_t): New enum. All users updated.
20289
5fe7620a
SG
202902010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
20291
20292 Fix solaris compilation.
20293
20294 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
20295 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
20296 (grub-emu-list): Likewise.
20297
545b752f
VS
202982010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20299
20300 Remove deprecated root command.
20301
20302 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
20303 updated.
20304
6c1a338c
VS
203052010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20306
20307 * util/i386/pc/grub-setup.c: Merge this ...
20308 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
20309 * util/grub-setup.c: ... into this.
20310 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
20311 New struct.
20312
203132010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20314
20315 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
20316 possible.
20317
d2ea4551
VS
203182010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20319
20320 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
20321 allocate p.
20322
3c3b5040
VS
203232010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20324
20325 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
20326 explicit root argument to set to prevent UUID to be interpreted as
20327 argument to set.
20328
b71c3fae
VS
203292010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20330
20331 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
20332
275433e6
VS
203332010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20334
20335 Don't export grub_gate_a20.
20336
20337 * grub-core/kern/i386/pc/init.c: Remove leftovers.
20338 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
20339 to ...
20340 (grub_gate_a20): ... this. All users updated.
20341 * include/grub/i386/pc/init.h: Removed. All users updated.
20342
a5dbb1f1
VS
203432010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20344
20345 Create euro.pf2 which supports most European languages.
20346
20347 * Makefile.am (grubdata_DATA): Add euro.pf2.
20348 (euro.pf2): New target.
20349 (CLEANFILES): Add euro.pf2.
20350
62a747cb
VS
203512010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20352
20353 * configure.ac: Disable emu-usb by default to prevent inadvertent
20354 device takeover.
20355
608e43b1
VS
203562010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20357
20358 Disable usbserial on grub-emu since our libusb code isn't good enough
20359 yet.
20360
20361 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
20362 (usbserial_pl2303): Likewise.
20363 (usbserial_ftdi): Likewise.
20364
94564f81
VS
203652010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20366
20367 * include/grub/disk.h (grub_disk): Remove has_partitions.
20368 All users updated.
20369 * disk/loopback.c (grub_loopback): Remove has_partitions.
20370 All users updated.
20371 (options): Remove partitions. All users updated.
20372 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
20373 * util/i386/pc/grub-setup.c (setup): copy partition table only when
20374 actual partition table is found.
20375
3352800b
VS
203762010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20377
20378 Remove readability checks (too many false negatives).
20379
20380 * util/grub-install.in: Remove readability checks.
20381 * util/grub-mkconfig.in: Likewise.
20382 * util/grub.d/10_hurd.in: Likewise.
20383 * util/grub.d/10_kfreebsd.in: Likewise.
20384 * util/grub.d/10_linux.in: Likewise.
20385 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
20386 way.
20387
2419f17a
VS
203882010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20389
20390 Enable acpi shutdown on all ACPI platforms.
20391
20392 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
20393 on coreboo, multiboot and EFI.
20394 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
20395 (grub_acpi_halt): Likewise.
20396 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
20397 (grub_cmd_halt): Don't call grub_acpi_halt directly.
20398 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
20399 * grub-core/lib/i386/halt.c (grub_halt)
20400 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
20401
0575c7c3
VS
204022010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20403
20404 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
20405 context.
20406
54ac3cd1
VS
204072010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20408
20409 * grub-core/video/efi_gop.c: Fix over-80-chars line.
20410 * grub-core/video/efi_uga.c: Likewise.
20411
b2a30ac5
VS
204122010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20413
20414 Filter devaliases and never open same device twice.
20415
20416 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
20417 (last_ihandle): Likewise.
20418 (ofdisk_hash_ent): New member shortest.
20419 (ofdisk_hash_add): Add canonical path too.
20420 (scan): New function.
20421 (grub_ofdisk_iterate): Iterate over hashed entries.
20422 (compute_dev_path): Don't add :0.
20423 (grub_ofdisk_open): Don't really open the disk.
20424 (grub_ofdisk_close): Avoid closing unrelated disk.
20425 (grub_ofdisk_read): Implement reopen logic.
20426 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
20427 New function.
20428 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
20429 New proto.
20430
fb53b340
VS
204312010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20432
20433 Fix sparc64.
20434
20435 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
20436 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
20437 right address. Add sparc64_ieee1275_ldflags.
20438 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
20439 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
20440 to grub_host_to_target_addr
20441 (load_image): Likewise.
20442
f452b040
VS
204432010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20444
20445 * grub-core/normal/completion.c (complete_file): Handle device
20446 containing slash.
20447 Fix based on patch by Doug Nazar.
20448
9b5b2541
VS
204492010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20450
20451 grub-mknetdir script.
20452
20453 * Makefile.util.def (grub-mknetdir): New module.
20454 * tests/util/grub-shell.in: Support boot=net
20455 * util/grub-mknetdir.in: New file.
20456
9d2be652
VS
204572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20458
20459 videoinfo on non-vbe.
20460
20461 * grub-core/Makefile.core.def (vbeinfo): Removed.
20462 (vbetest): Removed.
20463 (videoinfo): New module.
20464 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
20465 * grub-core/commands/i386/pc/vbetest.c: Removed.
20466 * grub-core/commands/videoinfo.c: New file.
20467 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
20468 specification.
20469 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
20470 as vbetest.
20471 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
20472 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
20473 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
20474 mode_number. New parameter mode. All users updated.
20475 (grub_video_gop_iterate): New function.
20476 (grub_video_efi_gop): New member iterate.
20477 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
20478 (grub_vbe_set_video_mode): Remove setting useless fields.
20479 (vbe2videoinfo): New function.
20480 (grub_video_vbe_iterate): Likewise.
20481 (grub_video_vbe_setup): Use vbe2videoinfo.
20482 (grub_video_vbe_print_adapter_specific_info): New function.
20483 (grub_video_vbe_adapter): New fields iterate and
20484 print_adapter_specific_info.
20485 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
20486 All users updated.
20487 (grub_video_mode_info): New field mode_number.
20488 (grub_video_adapter): New fields iterate and
20489 print_adapter_specific_info.
20490
179503f5
TG
204912010-09-13 Tristan Gingold <gingold@free.fr>
204922010-09-13 Robert Millan <rmh.grub@aybabtu.com>
204932010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20494
20495 * grub-core/commands/efi/lsefisystab.c: New file.
20496 * grub-core/commands/efi/lssal.c: Likewise.
20497 * grub-core/Makefile.core.def (lsacpi): New module.
20498 (lsefisystab): Likewise.
20499 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
20500 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
20501 (grub_efi_sal_system_table): New struct.
20502 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
20503 (grub_efi_sal_system_table_memory_descriptor): Likewise.
20504 (grub_efi_sal_system_table_platform_features): Likewise.
20505 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
20506 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
20507 (grub_efi_sal_system_table_ap_wakeup): Likewise.
20508 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
20509
cf9827de
VS
205102010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20511
20512 Support explicit user claim that a device is BIOS-visible.
20513
20514 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
20515 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
20516 * grub-core/kern/emu/hostdisk.c
20517 (convert_system_partition_to_system_disk): Support mdX.
20518 (find_system_device): New parameter add. All users updated.
20519 (grub_util_biosdisk_is_present): New function.
20520 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
20521 proto.
20522
53f0eb1f
VS
205232010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20524
20525 Search hints support.
20526
20527 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
20528 All users updated.
20529
b23ffd70
YB
205302010-09-13 Yves Blusseau <blusseau@zetam.org>
20531
20532 Bash completion script for util commands
20533
20534 * Makefile.am: Add util/bash-completion.d directory
20535 * configure.ac: Likewise.
20536 * util/bash-completion.d/Makefile.am: New file.
20537 * util/bash-completion.d/grub-completion.bash.in: Likewise.
20538
d547dc28
VS
205392010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20540
20541 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
20542 (print_backlog): set backlog_ucs4 and backlog_glyphs.
20543 Reported by: Yves Blusseau.
20544
2fc8ccb9
VS
205452010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20546
20547 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
20548 partition size and offset.
20549
d8a84076
VS
205502010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20551
20552 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
20553
84fb3b3d
VS
205542010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20555
20556 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
20557
768ec2e2
VS
205582010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20559
20560 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
20561 (grub_xvasprintf): Likewise.
20562
4870900f
VS
205632010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20564
20565 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
20566
faca6bec
VS
205672010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20568
20569 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
20570 args ending with NULL.
20571
205722010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
20573
20574 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
20575 pointer.
20576
3c70f225
SJ
205772010-09-11 Szymon Janc <szymon@janc.net.pl>
20578
20579 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
20580
4df7996d
VS
205812010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20582
20583 Shutdown using ACPI.
20584
20585 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
20586 * grub-core/commands/acpihalt.c: New file.
20587 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
20588 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
20589 (grub_acpi_halt): New proto.
20590 (GRUB_ACPI_SLP_EN): New const.
20591 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
20592 (GRUB_ACPI_OPCODE_*): New enum.
20593 (GRUB_ACPI_EXTOPCODE_*): Likewise.
20594
126b4c32
TG
205952010-09-11 Tristan Gingold <gingold@free.fr>
205962010-09-11 Robert Millan <rmh.grub@aybabtu.com>
205972010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20598
20599 * commands/lsacpi.c: New file.
20600 * grub-core/Makefile.core.def (lsacpi): New module.
20601 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
20602 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
20603 (grub_acpi_madt_entry_header): New struct.
20604 (grub_acpi_madt): Likewise.
20605 (grub_acpi_madt_entry_interrupt_override): Likewise.
20606 (grub_acpi_madt_entry_sapic): Likewise.
20607 (grub_acpi_madt_entry_lsapic): Likewise.
20608 (grub_acpi_madt_entry_platform_int_source): Likewise.
20609 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
20610 (PRIuGRUB_UINT32_T): Likewise.
20611 (PRIxGRUB_UINT64_T): Likewise.
20612
1aa4fe88
VS
206132010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20614
20615 Implement loading palette on ieee1275_fb.
20616
20617 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
20618 (have_setcolors): Likewise.
20619 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
20620 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
20621 (grub_video_ieee1275_set_palette): Implement.
20622
25761e13
VS
206232010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
206242010-09-11 Colin Watson <cjwatson@ubuntu.com>
20625
20626 * util/grub-install.in (grub_partition): New variable.
20627 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
20628 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
20629 Fixes a bug reported by Yves Blusseau.
20630
050abaea
VS
206312010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
20632
20633 Fix emu on mipsel.
20634
20635 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
20636 =grub_cpu_flush_cache on all mips and not only yeeloong.
20637 * configure.ac (COND_mips): New conditional.
20638 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
20639 platforms.
20640 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
20641 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
20642 [GRUB_LINKER_HAVE_INIT]: New function.
20643 (grub_emu_post_init): Likewise.
20644 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
20645 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
20646 * include/grub/cache.h (_mips): Include mips/cache.h.
20647 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
20648 LVM and RAID prototypes.
20649 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
20650 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
20651 function.
20652
5ed7d816
CW
206532010-09-10 Colin Watson <cjwatson@ubuntu.com>
20654
20655 * util/grub-install.in: Don't try to verify core.img until after
20656 running grub-mkimage to create it.
20657
90367e04
RM
206582010-09-10 Robert Millan <rmh@gnu.org>
20659
20660 * util/grub.d/10_hurd.in: Add misc readability checks.
20661 * util/grub.d/10_kfreebsd.in: Likewise.
20662 * util/grub.d/10_linux.in: Likewise.
20663
c452fa66
CW
206642010-09-10 Colin Watson <cjwatson@ubuntu.com>
20665
20666 * util/grub-install.in: ${imgext} won't be defined here until the
20667 install branch is merged. For the meantime, only verify core.img on
20668 i386-pc and sparc64-ieee1275 platforms.
20669
c38fe9f4
RM
206702010-09-10 Robert Millan <rmh@gnu.org>
20671
20672 Solaris support in grub_find_zpool_from_dir(). Thanks
20673 Seth Goldberg for referring to getextmntent() facility.
20674
20675 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
20676 `sys/mkdev.h'.
20677 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
20678 `<sys/mnttab.h>'.
20679 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
20680 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
20681 method for finding zpool name.
20682
905f7773
CW
206832010-09-10 Colin Watson <cjwatson@ubuntu.com>
20684
20685 grub-fstest needs the host and hostfs modules while other utilities
20686 actively require those modules to be absent, so grub-fstest needs
20687 its own initialisation and finalisation code.
20688
20689 * Makefile.am (grub_fstest.pp): New target.
20690 (grub_fstest_init.lst): Likewise.
20691 (grub_fstest_init.c): Likewise.
20692 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
20693
fb90b546
RM
206942010-09-10 Robert Millan <rmh@gnu.org>
20695
20696 * configure.ac: Check for `struct statfs.f_fstypename' and
20697 `struct statfs.f_mntfromname'.
20698
20699 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
20700 kFreeBSD-specific code.
20701
66d4bea5
RM
207022010-09-10 Robert Millan <rmh@gnu.org>
20703
20704 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
20705 on ZFS. Now non-main filesystems are supported as / too.
20706
b6a690ee
CW
207072010-09-09 Colin Watson <cjwatson@ubuntu.com>
20708
20709 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
20710 and grub-core/disk/host.c to ...
20711 (grub-fstest): ... here. Having the host disk implementation
20712 present confuses grub-probe and other utility programs.
20713
20714 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
20715 when writing to a file, not when writing to stdout.
20716
8901b00c 207172010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
20718
20719 * tests/partmap_test.in: New test for partitions.
20720 * Makefile.util.def: Rules for new test.
20721
7bf45fdd
RM
207222010-09-09 Robert Millan <rmh@gnu.org>
20723
20724 * util/grub-probe.c (probe): Fix a pair of unhandled error
20725 conditions.
20726
4dfbc574
RM
207272010-09-09 Robert Millan <rmh@gnu.org>
20728
20729 Basic Btrfs support (detection and UUID).
20730
20731 * grub-core/fs/btrfs.c: New file.
20732 * Makefile.util.def (library): Register btrfs.c.
20733 * grub-core/Makefile.core.def: Likewise.
20734
6b8e78ae
RM
207352010-09-08 Robert Millan <rmh@gnu.org>
20736
20737 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
20738 with (optional) parameters to specify device and relative path.
20739 * util/grub-install.in: Use is_path_readable_by_grub() to
20740 verify readability of a few critical files.
20741 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
20742 verify readability of grub.cfg.new.
20743
27f21a8b
VS
207442010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20745
20746 Split minix.mod into minix.mod and minix2.mod.
20747
20748 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
20749 * grub-core/Makefile.core.def (minix2): New module.
20750 * grub-core/fs/minix.c: Use definitions instead of runtime version
20751 checking.
20752 * grub-core/fs/minix2.c: New file.
20753
c0e53ea5
YB
207542010-09-08 Yves Blusseau <blusseau@zetam.org>
20755
20756 Add new --boot-directory option to replace --root-directory
20757
20758 * util/grub-install.in: Add new --boot-directory option
20759 * util/grub-reboot.in: Likewise.
20760 * util/grub-set-default.in: Likewise.
20761
b9fe6ea2
YB
207622010-09-08 Yves Blusseau <blusseau@zetam.org>
20763
20764 * util/grub-mkconfig.in: Use new variable.
20765
d87aedff
YB
207662010-09-08 Yves Blusseau <blusseau@zetam.org>
20767
20768 * configure.ac: Define some useful variables.
20769
e55e8495
VS
207702010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
20771
20772 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
20773 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
20774 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
20775 Use terminfo and don't use cursor-on/cursor-off unless it's known
20776 to work.
20777 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
20778 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
20779
6fa6d675
CW
207802010-09-08 Colin Watson <cjwatson@ubuntu.com>
20781
20782 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
20783 starts with "(,", fill the drive containing the loaded image in
20784 between those two characters, but expect that a full partition
20785 specification including partition map names will follow.
20786
92f2aef0
RM
207872010-09-08 Robert Millan <rmh@gnu.org>
20788
20789 * configure.ac: Remove `--enable-grub-fstest' option.
20790 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
20791
20792 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
20793 `grub-fstest' instead of `grub-probe' for readability verification.
20794 * util/grub-probe.c (probe): Remove readability verification kludge.
20795
99fd620d
RM
207962010-09-08 Robert Millan <rmh@gnu.org>
20797
20798 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
20799 initializing `GRUB_FS'.
20800
058e30ac 208012010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
20802
20803 Not command (!) support to GRUB script.
20804
20805 * tests/grub_script_not.in: New test.
20806 * Makefile.util.def: Rules for new test.
20807
20808 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
20809 ! command as a special case.
20810 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
20811
b61d05ed 208122010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20813
058e30ac 20814 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
20815 grub_free.
b61d05ed 20816
4d69c786 208172010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20818
20819 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
20820
aa3119c4 208212010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
20822
20823 * docs/grub.texi (Shell-like scripting): Documentation for break,
20824 continue, shift and return commands.
20825
db0f7e3d
VS
208262010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
20827
20828 Rename CD-ROM to cd on BIOS.
20829
20830 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
20831 "cd".
20832 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
20833
88b87c93
VS
208342010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20835
20836 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
20837 * util/grub-probe.c (main): Likewise.
20838 * util/i386/pc/grub-setup.c (main): Likewise.
20839 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
20840 Reported and debugged by: alexxy
20841
294f324d
VS
208422010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20843
20844 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
20845 diagnostic info.
20846
d7ee3441
JS
208472010-09-05 Jo Shields <directhex@apebox.org>
20848
20849 * util/grub.d/30_os-prober.in: Add missing classes.
20850
d7e06c1f
VS
208512010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20852
20853 * docs/grub.texi (Theme file format): Document new position format.
20854
fc157e53
VS
208552010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20856
20857 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
20858 a table. Use @code instead of @verbatim.
20859
506e9a1c
CB
208602010-09-05 Colin D Bennett <colin@gibibit.com>
20861
20862 Gfxmenu documentation.
20863
20864 * docs/grub.texi (Theme file format): New chapter.
20865
f0aff67c
SJ
208662010-09-05 Szymon Janc <szymon@janc.net.pl>
20867
20868 * grub-core/Makefile.core.def (xzio): New module.
20869 * grub-core/io/xzio.c: New file.
20870 * grub-core/lib/xzembed/xz.h: New file (from xembed).
20871 * grub-core/lib/xzembed/xz_config.h: Likewise.
20872 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
20873 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
20874 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
20875 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
20876 * grub-core/lib/xzembed/xz_private.h: Likewise.
20877 * grub-core/lib/xzembed/xz_stream.h: Likewise.
20878 * include/grub/file.h (grub_file_filter_id): New compression filter
20879 GRUB_FILE_FILTER_XZIO.
20880
82a85062
VS
208812010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20882
20883 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
20884 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
20885 size.
20886
3579415d
VS
208872010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20888
20889 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
20890 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
20891
5124ae6d
VS
208922010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20893
20894 Uncompressed checksum support.
20895
20896 * grub-core/commands/hashsum.c (options): Add option --uncompress.
20897 (check_list): New parameter uncompress.
20898 (grub_cmd_hashsum): Handle --uncompress.
20899
9aadb3d1
VS
209002010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20901
20902 Reintroduce testload.
20903
20904 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
20905 from here ...
20906 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
20907 (GRUB_MOD_INIT): New function.
20908 (GRUB_MOD_FINI): Likewise.
20909 * grub-core/Makefile.core.def (testload): New module.
20910
a17792c3
SJ
209112010-09-05 Szymon Janc <szymon@janc.net.pl>
20912
20913 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
20914 (uint8_t): New type.
20915 (uint16_t): Likewise.
20916 (uint32_t): Likewise.
20917 (uint64_t): Likewise.
20918
b81e40a3
SJ
209192010-09-05 Szymon Janc <szymon@janc.net.pl>
20920
20921 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
20922
fc2ef117
VS
209232010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
20924
20925 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
20926 Made static.
20927 (grub_gzfile_open): Removed. All users updated.
20928 (GRUB_MOD_INIT): New function.
20929 (GRUB_MOD_FINI): Likewise.
20930 * grub-core/kern/file.c (grub_file_filters_all): New variable.
20931 (grub_file_filters_enabled): Likewise.
20932 (grub_file_open): Handle filters.
20933 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
20934 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
20935 * include/grub/file.h (grub_file_filter_id_t): New type.
20936 (grub_file_filter_t): Likewise.
20937 (grub_file_filters_all): New extern variable.
20938 (grub_file_filters_enabled): Likewise.
20939 (grub_file_filter_register): New inline function.
20940 (grub_file_filter_unregister): Likewise.
20941 (grub_file_filter_disable): Likewise.
20942 (grub_file_filter_disable_compression): Likewise.
20943 * include/grub/gzio.h: Removed.
20944
35ee15e0
BC
209452010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20946
20947 Filename expansion support for wildcards in GRUB script.
20948
20949 * tests/grub_script_expansion.in: New test.
20950 * Makefile.util.def: Rule for new test.
20951
20952 * grub-core/commands/wildcard.c: New file, implements filename
20953 expansion support for GRUB script.
20954 * grub-core/Makefile.core.def: Rule update for regexp.mod.
20955 * grub-core/script/argv.c: Cosmetic changes.
20956 * grub-core/script/execute.c (grub_script_arglist_to_argv):
20957 Refactored to perform wildcard expansion on arguments.
20958 * include/grub/script_sh.h (grub_script_wildcard_translator): New
20959 struct.
20960
20961 * tests/util/grub-shell.in: Fix quoting for read input.
20962
5f0c4aca
BC
209632010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20964
20965 Support for updating environment variables with matched substrings
20966 of regexp.
20967
20968 * tests/grub_cmd_regexp.in: New test.
20969 * Makefile.util.def: Rule for new test.
20970
20971 * grub-core/commands/regexp.c: New option -s to update environment
20972 variables with regexp matches.
20973
3759a35f
SJ
209742010-09-04 Szymon Janc <szymon@janc.net.pl>
20975
20976 * include/grub/file.h (grub_file): New member not_easly_seekable.
20977 (grub_file_seekable): New inline function.
20978 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
20979 easily seekable.
20980 (grub_gzio_open): Set not_easly_seekable.
20981 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
20982 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
20983
ed8c6dec
BC
209842010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
20985
20986 Support for options to appear multiple times on cmdline.
20987
20988 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
20989 * grub-core/commands/extcmd.c: Support for repeatable option.
20990 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
20991 repeatable option support.
20992
20993 Refactor menuentry into a regular command.
20994
20995 * grub-core/commands/menuentry.c: New file, menuentry command
20996 implementation.
20997 * grub-core/Makefile.core.def: Rule update for normal.mod.
20998 * grub-core/normal/main.c: Moved menuentry creation to
20999 grub-core/commands/menuentry.c.
21000 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
21001 (grub_menu_execute_entry_real): Removed.
21002 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
21003 function.
21004 (grub_script_execute_menuentry): Removed.
21005 * grub-core/script/parser.y (menuentry): Removed.
21006 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
21007 * grub-core/script/yylex.l (menuentry): Removed.
21008 * include/grub/menu.h (grub_menu_init): New prototype.
21009 (grub_menu_fini): New prototype.
21010 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
21011 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
21012 (grub_script_execute_sourcecode): New prototype.
21013
dacd0cf0
BC
210142010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21015
21016 "return" command for GRUB script functions.
21017
21018 * tests/grub_script_return.in: New test.
21019 * Makefile.util.def: Rules for new test.
21020
21021 * grub-core/script/execute.c (grub_script_return): New function.
21022 * grub-core/script/main.c: Register/unregister return commaond.
21023 * include/grub/script_sh.h (grub_script_return): New prototype.
21024
52e72f9d
BC
210252010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21026
21027 "setparams" command to update positional parameters.
21028
21029 * tests/grub_script_setparams.in: New test.
21030 * Makefile.util.def: Rules for new test.
21031
21032 * grub-core/script/argv.c (grub_script_argv_make): New function.
21033 * grub-core/script/execute.c (replace_scope): New function.
21034 (grub_script_setparams): New function.
21035 * grub-core/script/lexer.c: Remove unused variables.
21036 * grub-core/script/main.c: Register/unregister setparams command.
21037 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
21038 (grub_script_setparams): New prototype.
21039
25b60c91
BC
210402010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21041
21042 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
21043 grub_free order.
21044
37e7bf68
BC
210452010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21046
21047 Support for passing block of commands as an argument to extcmds.
21048
21049 * Makefile.util.def: Rules for new test.
21050 * tests/grub_script_blockarg.in: New test.
21051 * grub-core/tests/test_blockarg.c: New file, block argument
21052 command used in the test.
21053
21054 * include/grub/extcmd.h (grub_extcmd_context): New struct.
21055 (grub_register_extcmd_prio): New function prototype.
21056 (grub_extcmd_dispatcher): New function prototype.
21057 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
21058 type.
21059 * include/grub/script_sh.h (struct grub_script): New members
21060 `children', `next_siblings' and `refcnt' for block arguments and
21061 reference counting.
21062 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
21063 (grub_script_arg): New member `script' for block argument.
21064 (grub_script_argv): New member `script' for block argument.
21065 (grub_parser_param): New member `scripts' for block argument.
21066 (grub_script_mem_free): New extern function prototype.
21067 (grub_script_ref): New function prototype.
21068 (grub_script_unref): New function prototype.
21069
21070 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
21071 extcmd form to support block arguments.
21072 * grub-core/script/argv.c: Block arguments support.
21073 * grub-core/script/execute.c: Likewise.
21074 * grub-core/script/lexer.c: Likewise.
21075 * grub-core/script/main.c: Likewise.
21076 * grub-core/script/script.c: Likewise.
21077 * grub-core/script/parser.y: Likewise. New `block' and `block0'
21078 non-terminals.
21079
21080 * grub-core/commands/acpi.c: Update extcmd implementations with
21081 grub_extcmd_context_t.
21082 * grub-core/commands/cat.c: Likewise.
21083 * grub-core/commands/echo.c: Likewise.
21084 * grub-core/commands/extcmd.c: Likewise.
21085 * grub-core/commands/hashsum.c: Likewise.
21086 * grub-core/commands/hdparm.c: Likewise.
21087 * grub-core/commands/help.c: Likewise.
21088 * grub-core/commands/hexdump.c: Likewise.
21089 * grub-core/commands/i386/cpuid.c: Likewise.
21090 * grub-core/commands/i386/pc/drivemap.c: Likewise.
21091 * grub-core/commands/i386/pc/halt.c: Likewise.
21092 * grub-core/commands/i386/pc/sendkey.c: Likewise.
21093 * grub-core/commands/iorw.c: Likewise.
21094 * grub-core/commands/keystatus.c: Likewise.
21095 * grub-core/commands/loadenv.c: Likewise.
21096 * grub-core/commands/ls.c: Likewise.
21097 * grub-core/commands/lspci.c: Likewise.
21098 * grub-core/commands/memrw.c: Likewise.
21099 * grub-core/commands/probe.c: Likewise.
21100 * grub-core/commands/search_wrap.c: Likewise.
21101 * grub-core/commands/setpci.c: Likewise.
21102 * grub-core/commands/sleep.c: Likewise.
21103 * grub-core/disk/loopback.c: Likewise.
21104 * grub-core/hello/hello.c: Likewise.
21105 * grub-core/loader/i386/bsd.c: Likewise.
21106 * grub-core/loader/xnu.c: Likewise.
21107 * grub-core/term/gfxterm.c: Likewise.
21108 * grub-core/term/serial.c: Likewise.
21109 * grub-core/tests/lib/functional_test.c: Likewise.
21110
888d1500
BC
211112010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21112
21113 Multi-line quoted strings support.
21114
21115 * grub-core/script/lexer.c (append_newline): Removed.
21116 (grub_script_lexer_yywrap): Refactored.
21117 (grub_script_lexer_init): Refactored.
21118 * grub-core/script/yylex.l (yywrap): New function.
21119 (grub_lexer_resplit): New function.
21120 (grub_lexer_unput): New function.
21121 * include/grub/script_sh.h (grub_lexer_param): New members, unput
21122 and resplit.
21123 * tests/grub_script_echo1.in: Added few more testcases.
21124
dda060dd
VS
211252010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21126
21127 * grub-core/kern/misc.c: Don't add abort alias in utils.
21128 Reported by: echoline.
21129
6556eba9
BC
211302010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
21131
21132 Add missing files into "make dist" tarball for other platforms.
21133
21134 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
21135 * conf/Makefile.common (dist_noinst_DATA): New variable.
21136 * conf/Makefile.extra-dist: Added missing make dist files.
21137 * grub-core/Makefile.core.def: Likewise.
21138
c8e7bf5f
VS
211392010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21140
21141 Compress grub_prefix.
21142
21143 * grub-core/boot/i386/pc/lnxboot.S: Use
21144 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
21145 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
21146 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
21147 GRUB_MACHINE_PREFIX_END. All users updated.
21148 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
21149 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
21150 + 0x40.
21151 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
21152 * util/grub-mkimage.c (image_target_desc): Change data_end to
21153 prefix_end. All users updated.
21154
a7c00cdb
VS
211552010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21156
21157 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
21158 value.
21159 (grub_openbsd_boot): Likewise.
21160 (grub_netbsd_boot): Likewise.
21161 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
21162 (grub_xnu_boot): Likewise.
21163
9f915872
VS
211642010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21165
21166 * configure.ac: Clean LIBS variable after tests.
21167
efa1bee7
CW
211682010-09-02 Colin Watson <cjwatson@ubuntu.com>
21169
21170 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
21171
61d720e5
VS
211722010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21173
21174 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
21175 echo if libdevmapper will be used.
21176
ef8e0ec8
IT
211772010-09-02 Ian Turner <Ian.Turner@deshaw.com>
21178
21179 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
21180 constant for the same file.
21181
03e261d8
VS
211822010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21183
21184 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
21185
c2a4eba6
CW
211862010-09-02 Colin Watson <cjwatson@ubuntu.com>
21187
21188 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
21189 grub-core/*.pp.
21190
9056cbf3
CW
211912010-09-02 Colin Watson <cjwatson@ubuntu.com>
21192
21193 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
21194 required by the boot protocol.
21195
21196 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
21197 ebp and edi members.
21198 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
21199 state.ebp and state.edi.
21200 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
21201 %ebp and %edi according to grub_relocator32_ebp and
21202 grub_relocator32_edi respectively.
21203 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
21204 and state.edi.
21205
529cc99a
VS
212062010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21207
21208 Add i386-pc-pxe image target.
21209
21210 * util/grub-mkimage.c (image_target_desc): New enum value
21211 IMAGE_I386_PC_PXE.
21212 (image_targets): New target i386-pc-pxe.
21213 (generate_image): Handle i386-pc-pxe image.
21214
9a093920
VS
212152010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21216
21217 Fix grub_pxe_scan.
21218
21219 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
21220 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
21221 All users updated.
21222 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
21223 (grub_pxe_pxenv): Correct type.
21224
f9cefc4e
CW
212252010-09-01 Colin Watson <cjwatson@ubuntu.com>
21226
21227 * NEWS: Document most of the important changes since 1.98.
21228
4066f57f
CW
212292010-09-01 Colin Watson <cjwatson@ubuntu.com>
21230
21231 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
21232 generated manual page) a little.
21233
da2891f9
CW
212342010-09-01 Colin Watson <cjwatson@ubuntu.com>
21235
21236 * docs/grub.texi: Add myself as an author.
21237
ad717fae
VS
212382010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21239
21240 * Makefile.util.def (libgrub.a): Add missing sunpc.
21241 Reported by: Seth Goldberg.
21242
eefe8abd
VS
212432010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21244
21245 Interrupt wrapping and code simplifications.
21246
9494ef9a
VS
21247 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
21248 x86_noieee1275 which are functionaly equivalent in this case.
21249 (grub-install): Make source on each platform explicit. Enable on
21250 all noemu.
21251 * gentpl.py (x86_efi_pc): Removed group.
21252 (x86_noefi): Likewise.
21253 (i386_noefi): Likewise.
21254 (x86_noieee1275): Likewise.
21255 (i386_noieee1275): Likewise.
21256 (i386_noefi_noieee1275): Likewise.
21257 (i386_pc_qemu_coreboot): Likewise.
21258 (i386_coreboot_multiboot): Likewise.
21259 (i386_pc_coreboot_multiboot_qemu): Likewise.
21260 (x86_noefi_mips): Likewise.
21261 (noieee1275): Likewise.
21262 (ieee1275_mips): Likewise.
21263 (noemu_noieee1275): Likewise.
21264 (cmos): New group.
21265 (usb): Likewise.
21266 (videoinkernel): Likewise.
21267 (videomodules): Likewise.
eefe8abd 21268 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
21269 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
21270 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
21271 include/grub/loader.h, include/grub/msdos_partition.h,
21272 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
21273 include/grub/machine/console.h, include/grub/machine/vga.h,
21274 include/grub/machine/vbe.h, include/grub/machine/init.h,
21275 include/grub/machine/kernel.h, include/grub/cpu/time.h,
21276 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 21277 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
21278 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
21279 * grub-core/Makefile.core.def (kernel): Explicit the source for
21280 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
21281 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
21282 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
21283 Use videoinkernel tag.
21284 (usb): Enable on all usb.
21285 (usbserial_common): Likewise.
21286 (usbserial_pl2303): Likewise.
21287 (usbserial_ftdi): Likewise.
21288 (uhci): Enable on all x86.
21289 (ohci): Enable on all pci.
21290 (cmostest): Enable on all CMOS.
21291 (acpi): Include commands/acpi.c on all platforms.
21292 (halt): Add relevant lib/*/halt.c.
21293 (hdparm): Enable on all pci.
21294 (lspci): Likewise.
21295 (usbtest): Enable on all usb.
21296 (ata): Enable on all pci.
21297 (ata_pthru): Likewise.
21298 (usbms): Enable on all usb.
21299 (usb_keyboard): Likewise.
21300 (font): Use tag videomodules.
21301 (bufio): Likewise.
21302 (datetime): Use tag cmos. Enable on all noemu.
21303 (mmap): Use tags common and x86.
21304 (gfxterm): Use tag videomodules.
21305 (bitmap): Likewise.
21306 (bitmap_scale): Likewise.
21307 (video_fb): Likewise.
21308 (video): Likewise.
21309 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
21310 adjust padding accordingly. All users updated.
21311 (grub_ohci_transaction): Fix bad format specification.
21312 (GRUB_MOD_INIT): Add asserts for struct size.
21313 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
21314 (grub_alloc_td): Likewise.
21315 (grub_free_queue): Likewise.
21316 (grub_uhci_transfer): Likewise.
21317 (grub_uhci_transaction): Fix bad format specification.
21318 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21319 (grub_usb_bulk_readwrite): Likewise.
21320 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
21321 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
21322 Made static.
21323 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
21324 Made static.
21325 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
21326 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
21327 Transformed into C.
21328 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
21329 Moved from here ...
21330 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
21331 ... here. Transformed into C. Made static.
21332 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
21333 Moved from here ...
21334 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
21335 ... here. Transformed into C. Made static.
21336 * grub-core/kern/i386/pc/startup.S
21337 (grub_biosdisk_check_int13_extensions): Moved from here ...
21338 * grub-core/disk/i386/pc/biosdisk.c
21339 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
21340 Made static.
21341 * grub-core/kern/i386/pc/startup.S
21342 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
21343 * grub-core/disk/i386/pc/biosdisk.c
21344 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
21345 Transformed into C. Made static.
21346 * grub-core/kern/i386/pc/startup.S
21347 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
21348 * grub-core/disk/i386/pc/biosdisk.c
21349 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
21350 Transformed into C. Made static.
21351 * grub-core/kern/i386/pc/startup.S
21352 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
21353 * grub-core/disk/i386/pc/biosdisk.c
21354 (grub_biosdisk_get_diskinfo_standard): ... here.
21355 Transformed into C. Made static.
21356 * grub-core/kern/i386/pc/startup.S
21357 (grub_biosdisk_get_num_floppies): Moved from here ...
21358 * grub-core/disk/i386/pc/biosdisk.c
21359 (grub_biosdisk_get_num_floppies): ... here.
21360 Transformed into C. Made static.
21361 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
21362 New function.
21363 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
21364 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
21365 Transformed into C. Made static.
21366 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
21367 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
21368 Transformed into C. Made static.
21369 * grub-core/kern/i386/ieee1275/init.c: Removed.
21370 * grub-core/kern/i386/misc.S: Likewise.
21371 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
21372 Splitted from here ...
21373 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
21374 Transformed into C. Made static. All users updated.
21375 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
21376 Transformed into C. Made static. All users updated.
21377 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
21378 Moved from here...
21379 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
21380 Transformed into C. Made static. All users updated.
21381 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
21382 Moved from here...
21383 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
21384 Transformed into C. Made static. All users updated.
21385 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
21386 Removed (replaced by C version).
21387 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
21388 Moved from here...
21389 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
21390 Transformed into C. Made static.
21391 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
21392 Moved from here...
21393 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
21394 ... here. Transformed into C.
21395 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
21396 Moved from here...
21397 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
21398 ... here. Transformed into C.
21399 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
21400 Moved from here...
21401 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
21402 ... here. Transformed into C. Made static.
21403 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
21404 Moved from here...
21405 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
21406 ... here. Transformed into C.
21ed554b
VS
21407 * grub-core/kern/i386/pc/startup.S
21408 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
21409 * grub-core/video/i386/pc/vbe.c
21410 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
21411 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
21412 Moved from here...
21413 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
21414 ... here. Transformed into C.
21415 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
21416 Moved from here...
21417 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
21418 ... here. Transformed into C.
21419 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
21420 Moved from here...
21421 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
21422 ... here. Transformed into C.
21423 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
21424 Moved from here...
21425 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
21426 ... here. Transformed into C.
21427 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
21428 Moved from here...
21429 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
21430 ... here. Transformed into C. Made static.
21431 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
21432 Moved from here...
21433 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
21434 ... here. Transformed into C. Made static.
21435 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
21436 Moved from here...
21437 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
21438 ... here. Transformed into C. Made static.
21439 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
21440 pxe_rm_entry as third argument.
21441 (grub_bios_interrupt): New function.
21442 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
21443 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
21444 of calling grub_stop.
21445 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
21446 * grub-core/lib/efi/halt.c (grub_halt): ...here.
21447 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
21448 * grub-core/lib/emu/halt.c (grub_halt): ... here.
21449 * grub-core/lib/i386/halt.c: Moved from here ...
21450 * grub-core/lib/i386/halt.c: ... here.
21451 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
21452 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
21453 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
21454 grub_stop_floppy.
21455 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
21456 * include/grub/i386/coreboot/init.h: Removed.
21457 * include/grub/i386/multiboot/init.h: Likewise.
21458 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
21459 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
21460 * include/grub/i386/pc/int.h: New file.
21461 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
21462 (grub_pxe_scan): Removed.
21463 (grub_pxe_call): Update prototype.
21464 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
21465 prototypes.
21466 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
21467 * include/grub/i386/qemu/init.h: Removed.
21468 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
21469 noreturn.
21470 (grub_halt): Likewise.
21471 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
21472 (grub_reboot): Likewise.
21473 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
21474 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
21475 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
21476
215dd471
RM
214772010-08-30 Robert Millan <rmh@gnu.org>
21478
21479 * NEWS: Document addition of ZFS support in `grub-install' and
21480 `grub-mkconfig'.
21481
ebd65b82
BC
214822010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
21483
21484 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
21485 dprintf output.
21486
11721d19
VS
214872010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21488
21489 Remove leftover embedding of font objects.
21490
21491 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21492 * util/grub-install.in (font): Removed.
21493 * util/grub-mkimage.c (generate_image): Remove font support. All users
21494 updated.
21495
37837d4e
VS
214962010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21497
21498 Remove leftover embedding of font objects.
21499
21500 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21501 * util/grub-install.in (font): Removed.
21502 * util/grub-mkimage.c (generate_image): Remove font support. All users
21503 updated.
21504
b4c1aae0
VS
215052010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21506
21507 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 21508 Reported by: Ian Turner
b4c1aae0 21509
8920a08d
VS
215102010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21511
21512 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
21513 timeout to avoid indefinite boot stalling.
21514
f21db033
VS
215152010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21516
21517 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
21518 (grub_env_write_color_highlight): Likewise.
21519
9a9de209
VS
215202010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21521
21522 * grub-core/normal/term.c (print_more): Return to normal and not
21523 to standard state after printing "---MORE---".
21524
3dca01d7
VS
215252010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21526
21527 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
21528 Mask out the bit 0x80 since it has other meaning that specifiing color.
21529
0b986c40
VS
215302010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21531
21532 New relocator. Allows for more kernel support and more straightforward
21533 loader writing.
21534
21535 * Makefile.am (BOOTTARGET): New variable.
21536 (QEMU32): Likewise.
21537 (linux.init.x86_64): New target.
21538 (linux.init.i386): Likewise.
21539 (multiboot.elf): Likewise.
21540 (kfreebsd.elf): Likewise.
21541 (kfreebsd.aout): Likewise.
21542 (pc-chainloader.elf): Likewise.
21543 (pc-chainloader.bin): Likewise.
21544 (ntldr.elf): Likewise.
21545 (ntldr.bin): Likewise.
21546 (multiboot2.elf): Likewise.
21547 (kfreebsd.init.x86_64): Likewise.
21548 (kfreebsd.init.i386): Likewise.
21549 (knetbsd.init.i386): Likewise.
21550 (kopenbsd.init.i386): Likewise.
21551 (knetbsd.init.x86_64): Likewise.
21552 (kopenbsd.init.x86_64): Likewise.
21553 (linux-initramfs.i386): Likewise.
21554 (linux-initramfs.x86_64): Likewise.
21555 (kfreebsd-mfsroot.i386.img): Likewise.
21556 (knetbsd.image.i386): Likewise.
21557 (kopenbsd.image.i386): Likewise.
21558 (kopenbsd.image.x86_64): Likewise.
21559 (knetbsd.miniroot-image.i386.img): Likewise.
21560 (kfreebsd-mfsroot.x86_64.img): Likewise.
21561 (knetbsd.image.x86_64): Likewise.
21562 (knetbsd.miniroot-image.x86_64.img): Likewise.
21563 (kfreebsd-mfsroot.i386.gz): Likewise.
21564 (bootcheck-kfreebsd-i386): Likewise.
21565 (kfreebsd-mfsroot.x86_64.gz): Likewise.
21566 (bootcheck-kfreebsd-x86_64): Likewise.
21567 (knetbsd.miniroot-image.i386.gz): Likewise.
21568 (bootcheck-knetbsd-i386): Likewise.
21569 (bootcheck-kopenbsd-i386): Likewise.
21570 (bootcheck-kopenbsd-x86_64): Likewise.
21571 (knetbsd.miniroot-image.x86_64.gz): Likewise.
21572 (bootcheck-knetbsd-x86_64): Likewise.
21573 (bootcheck-linux-i386): Likewise.
21574 (bootcheck-linux-x86_64): Likewise.
21575 (bootcheck-linux16-i386): Likewise.
21576 (bootcheck-linux16-x86_64): Likewise.
21577 (bootcheck-multiboot): Likewise.
21578 (bootcheck-multiboot2): Likewise.
21579 (bootcheck-kfreebsd-aout): Likewise.
21580 (bootcheck-pc-chainloader): Likewise.
21581 (bootcheck-ntldr): Likewise.
21582 (CLEANFILES): Add new targets.
21583 (BOOTCHECKS): New variable.
21584 (.PHONY): Add bootchecks.
21585 (SUCCESSFUL_BOOT_STRING): New variable.
21586 (BOOTCHECK_TIMEOUT): Likewise.
21587 (bootcheck): New target
21588 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
21589 * configure.ac: Correct efiemu excuse.
21590 * docs/grub.texi (Supported kernels): New chapter.
21591 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
21592 include/grub/mm_private.h. Simplify inclusion of
21593 include/grub/boot.h, include/grub/loader.h
21594 and include/grub/msdos_partition.h
21595 (KERNEL_HEADER_FILES) [i386_coreboot]:
21596 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
21597 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
21598 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
21599 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
21600 include/grub/machine/loader.h.
21601 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
21602 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
21603 extra_dist.
21604 (pci.mod): Enable on i386-multiboot.
21605 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
21606 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
21607 i386-qemu.
21608 (relocator.mod): Rewritten.
21609 (aout.mod): Enable on all x86.
21610 (bsd.mod): Likewise.
21611 (ntldr.mod): New module.
21612 (linux.mod): Use loader/i386/linux.c on all x86.
21613 (xnu.mod): Enable on all x86.
21614 (vga_text.mod): disable on EFI and QEMU.
21615 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
21616 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
21617 * grub-core/efiemu/loadcore.c: Likewise.
21618 * grub-core/efiemu/main.c: Likewise.
21619 (grub_efiemu_exit_boot_services): Removed.
21620 (grub_efiemu_finish_boot_services): Likewise.
21621 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
21622 function.
21623 * grub-core/efiemu/i386/nocfgtables.c: New file.
21624 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
21625 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
21626 (grub_efi_finish_boot_services): Moved from here ...
21627 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
21628 Fille finish memory map and related data.
21629 (finish_mmap_buf): New variable.
21630 (grub_efi_uintn_t finish_mmap_size): Likewise.
21631 (grub_efi_uintn_t finish_key): Likewise.
21632 (grub_efi_uintn_t finish_desc_size): Likewise.
21633 (grub_efi_uint32_t finish_desc_version): Likewise.
21634 (grub_efi_is_finished): Likewise.
21635 (grub_efi_get_memory_map): Use saved memory map if EFI is already
21636 finished.
21637 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
21638 (grub_elf64_phdr_iterate): Likewise.
21639 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
21640 (grub_os_area_size): Likewise.
21641 (grub_machine_init): Don't reserve os area.
21642 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
21643 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
21644 * grub-core/kern/i386/loader.S: Removed.
21645 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
21646 (grub_os_area_size): Likewise.
21647 (grub_machine_init): Don't reserve os area.
21648 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
21649 Don't call grub_dl_unload_all.
21650 Don't include loader.S.
21651 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
21652 Declare the memory after _end as available.
21653 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 21654 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 21655 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
21656 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
21657 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
21658 * include/grub/mm_private.h (grub_mm_header): ... here.
21659 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
21660 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
21661 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
21662 (grub_mm_region): ..here. Removed addr. Added pre_size.
21663 All users updated.
21664 * grub-core/kern/mm.c (base): Renamed to ...
21665 (grub_mm_base): ... this. Made global.
21666 (grub_real_malloc): Alloc from end of region.
21667 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
21668 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
21669 * grub-core/kern/powerpc/cache_flush.S: ... here.
21670 * grub-core/lib/efi/relocator.c: New file.
21671 * grub-core/lib/i386/relocator.c: Rewritten.
21672 * grub-core/lib/i386/relocator16.S: New file.
21673 * grub-core/lib/i386/relocator32.S: Likewise.
21674 * grub-core/lib/i386/relocator64.S: Likewise.
21675 * grub-core/lib/i386/relocator_asm.S: Rewritten.
21676 * grub-core/lib/i386/relocator_common.S: New file.
21677 * grub-core/lib/ieee1275/relocator.c: Likewise.
21678 * grub-core/lib/mips/relocator.c: Rewritten.
21679 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
21680 stylistic adjustments.
21681 * grub-core/lib/powerpc/relocator.c: New file.
21682 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
21683 * grub-core/lib/relocator.c: Rewritten.
21684 * grub-core/lib/x86_64/relocator_asm.S: New file.
21685 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
21686 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
21687 (bsd_tag): New struct.
21688 (tags): New variable.
21689 (tags_last): Likewise.
21690 (netbsd_module): New struct.
21691 (netbsd_mods): New variable.
21692 (netbsd_mods_last): Likewise.
21693 (openbsd_opts): New parameter "serial".
21694 (OPENBSD_SERIAL_ARG): New definition.
21695 (netbsd_opts): New parameter "serial".
21696 (NETBSD_SERIAL_ARG): New definition.
21697 (grub_freebsd_add_meta): Reorganised into ...
21698 (grub_bsd_add_meta): ...this. All users updated.
21699 (grub_freebsd_add_mmap): Reorganised into ...
21700 (generate_e820_mmap): ...this...
21701 (grub_bsd_add_mmap): ...and this. All users updated.
21702 (grub_freebsd_list_modules): Use tags.
21703 (grub_netbsd_add_meta_module): New function.
21704 (grub_netbsd_list_modules): Likewise.
21705 (grub_freebsd_boot): Use relocator and finish EFI.
21706 (grub_openbsd_boot): Likewise.
21707 (grub_netbsd_setup_video): New function.
21708 (grub_netbsd_add_modules): Likewise.
21709 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
21710 and finish EFI.
21711 (grub_bsd_unload): Unload tags.
21712 (grub_bsd_load_aout): Use relocator.
21713 (grub_bsd_elf32_size_hook): New function.
21714 (grub_bsd_elf32_hook): Use relocator.
21715 (grub_bsd_elf64_size_hook): New function.
21716 (grub_bsd_elf64_hook): Use relocator.
21717 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
21718 (grub_bsd_load): Zero-out openbsd_ramdisk.
21719 (grub_bsd_load): Use relocator.
21720 (grub_cmd_openbsd): Support serial.
21721 (grub_cmd_netbsd): Support modules.
21722 (grub_cmd_freebsd_module): Use relocator.
21723 (grub_netbsd_module_load): New function.
21724 (grub_cmd_netbsd_module): Likewise.
21725 (grub_cmd_openbsd_ramdisk): Likewise.
21726 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
21727 kopenbsd_ramdisk.
21728 (GRUB_MOD_FINI): Unregister new commands.
21729 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
21730 (grub_freebsd_load_elfmodule_obj): Use relocator.
21731 (grub_freebsd_load_elfmodule): Likewise.
21732 (grub_freebsd_load_elf_meta): Likewise.
21733 (grub_netbsd_load_elf_meta): New function.
21734 (grub_openbsd_find_ramdisk): Likewise.
21735 * grub-core/loader/i386/bsd_helper.S: Removed.
21736 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
21737 * grub-core/loader/i386/bsd_trampoline.S: Removed.
21738 * grub-core/loader/i386/efi/linux.c: Likewise.
21739 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
21740 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
21741 (DEFAULT_VIDEO_MODE): Likewise.
21742 (real_mode_target): New variable.
21743 (prot_mode_target): Likewise.
21744 (initrd_mem_target): Likewise.
21745 (relocator): Likewise.
21746 (efi_mmap_buf): Likewise.
21747 (efi_mmap_size): Likewise.
21748 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
21749 (free_pages): Use relocator.
21750 (allocate_pages): Account for efi_mmap and use relocator. Return error.
21751 (grub_linux_setup_video): Return error.
21752 (grub_linux_trampoline_start): Removed.
21753 (grub_linux_trampoline_end): Likewise.
21754 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
21755 andd video parameters depending on firmware.
21756 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
21757 [GRUB_MACHINE_EFI]: Pass EFI parameters.
21758 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
21759 (grub_cmd_initrd): Use relocator.
21760 * grub-core/loader/i386/linux_trampoline.S: Removed.
21761 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
21762 (elf_sec_entsize): Likewise.
21763 (elf_sec_shstrndx): Likewise.
21764 (elf_sections): Likewise.
21765 (grub_multiboot_load): Use relocator.
21766 (grub_multiboot_get_mbi_size): Account for sections.
21767 (grub_multiboot_make_mbi): Use relocator and support sections.
21768 (grub_multiboot_add_elfsyms): New function.
21769 (grub_multiboot_free_mbi): Free sections.
21770 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
21771 (grub_linux_real_target): Likewise.
21772 (grub_linux_real_chunk): Likewise.
21773 (grub_linux16_prot_size): Likewise.
21774 (grub_linux16_boot): Use relocator.
21775 (grub_linux_unload): Unload relocator.
21776 (grub_cmd_linux): Use relocator.
21777 (grub_cmd_initrd): Likewise.
21778 * grub-core/loader/i386/pc/ntldr.c: New file.
21779 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
21780 Don't try to guess CPU frequency.
21781 (grub_xnu_set_video): Stretch bitmap.
21782 (grub_xnu_boot): Use relocator.
21783 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
21784 (grub_linux_unload): Free relocator.
21785 (grub_linux_load32): Use relocator.
21786 (grub_linux_load64): Likewise.
21787 (grub_cmd_initrd): Likewise.
21788 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
21789 (grub_multiboot_unload): Unload relocator.
21790 (grub_cmd_multiboot): Use relocator.
21791 (grub_cmd_module): Likewise.
21792 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
21793 Use relocator and support sections.
21794 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
21795 (elf_sec_entsize): Likewise.
21796 (elf_sec_shstrndx): Likewise.
21797 (elf_sections): Likewise.
21798 (grub_multiboot_load): Use relocator.
21799 (grub_multiboot_get_mbi_size): Account for sections.
21800 (grub_multiboot_make_mbi): Use relocator and support sections.
21801 (grub_multiboot_add_elfsyms): New function.
21802 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
21803 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
21804 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
21805 Prototype changed. All users updated.
21806 (grub_xnu_align_heap): Simplified.
21807 (grub_xnu_writetree_toheap): Likewise.
21808 (grub_xnu_unload): Unload relocator.
21809 (grub_cmd_xnu_kernel): Use relocator.
21810 (grub_cmd_xnu_kernel64): Likewise.
21811 (grub_xnu_register_memory): Simplified.
21812 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
21813 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
21814 EFI is finished.
21815 (grub_console_checkkey): Likewise.
21816 (grub_console_getkey): Likewise.
21817 (grub_console_getwh): Likewise.
21818 (grub_console_getxy): Likewise.
21819 (grub_console_gotoxy): Likewise.
21820 (grub_console_cls): Likewise.
21821 (grub_console_setcolorstate): Likewise.
21822 (grub_console_setcursor): Likewise.
21823 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
21824 * grub-core/tests/boot/kbsd.init-i386.S: New file.
21825 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
21826 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
21827 * grub-core/tests/boot/kernel-8086.S: Likewise.
21828 * grub-core/tests/boot/kernel-i386.S: Likewise.
21829 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
21830 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
21831 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
21832 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
21833 * grub-core/tests/boot/knetbsd.cfg: Likewise.
21834 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
21835 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
21836 * grub-core/tests/boot/linux.cfg: Likewise.
21837 * grub-core/tests/boot/linux.init-i386.S: Likewise.
21838 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
21839 * grub-core/tests/boot/linux16.cfg: Likewise.
21840 * grub-core/tests/boot/multiboot.cfg: Likewise.
21841 * grub-core/tests/boot/multiboot2.cfg: Likewise.
21842 * grub-core/tests/boot/ntldr.cfg: Likewise.
21843 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
21844 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
21845 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
21846 New definition.
21847 * include/grub/dl.h (grub_dl_unload_all): Removed.
21848 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
21849 (grub_efi_finish_boot_services): Change prototype.
21850 (grub_efi_is_finished): New variable.
21851 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
21852 Changed prototype.
21853 (grub_efiemu_finish_boot_services): Removed.
21854 (grub_machine_efiemu_init_tables): New prototype.
21855 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
21856 (grub_elf64_phdr_iterate): Likewise.
21857 * include/grub/i386/bsd.h: Include relocator.h.
21858 (freebsd_tag_header): New struct.
21859 (grub_openbsd_bios_mmap): Removed.
21860 (grub_unix_real_boot): Removed.
21861 (grub_freebsd_load_elfmodule32): Changed prototype.
21862 (grub_freebsd_load_elfmodule_obj64): Likewise.
21863 (grub_freebsd_load_elf_meta32): Likewise.
21864 (grub_freebsd_load_elf_meta64): Likewise.
21865 (grub_freebsd_add_meta): Removed.
21866 (grub_netbsd_load_elf_meta32): New prototype.
21867 (grub_netbsd_load_elf_meta64): Likewise.
21868 (grub_bsd_add_meta): Likewise.
21869 (grub_openbsd_ramdisk_descriptor): New struct.
21870 (grub_openbsd_find_ramdisk32): New prototype.
21871 (grub_openbsd_find_ramdisk64): Likewise.
21872 * include/grub/i386/coreboot/loader.h: Removed.
21873 * include/grub/i386/efi/loader.h: Likewise.
21874 * include/grub/i386/ieee1275/loader.h: Likewise.
21875 * include/grub/i386/linux.h (linux_kernel_header): Change void *
21876 to grub_uint32_t.
21877 * include/grub/i386/loader.h: Removed.
21878 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
21879 value.
21880 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
21881 (grub_phys_addr_t): New type.
21882 (grub_vtop): New inline function.
21883 (grub_map_memory): Likewise.
21884 (grub_unmap_memory): Likewise.
21885 * include/grub/i386/multiboot/loader.h: Removed.
21886 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
21887 (NETBSD_BTINFO_CONSOLE): New definition.
21888 (NETBSD_BTINFO_SYMTAB): Likewise.
21889 (NETBSD_BTINFO_MODULES): Likewise.
21890 (NETBSD_BTINFO_FRAMEBUF): Likewise.
21891 (grub_netbsd_bootinfo): New struct.
21892 (grub_netbsd_btinfo_common): Use explicit bitsize.
21893 (grub_netbsd_btinfo_mmap_entry): Removed.
21894 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
21895 (grub_netbsd_btinfo_bootdisk): New struct.
21896 (grub_netbsd_btinfo_symtab): Likewise.
21897 (grub_netbsd_btinfo_serial): Likewise.
21898 (grub_netbsd_btinfo_modules): Likewise.
21899 (grub_netbsd_btinfo_framebuf): Likewise.
21900 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
21901 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
21902 Likewise.
21903 (grub_openbsd_bootargs): Use explicit bitsize.
21904 (grub_openbsd_bootarg_console): New struct.
21905 (GRUB_OPENBSD_COM_MAJOR): New definition.
21906 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
21907 * include/grub/i386/pc/efiemu.h: Removed.
21908 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
21909 * include/grub/i386/qemu/loader.h: Removed.
21910 * include/grub/i386/relocator.h: Rewritten.
21911 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
21912 * include/grub/mips/memory.h: New file.
21913 * include/grub/mips/multiboot.h: Rewritten.
21914 * include/grub/mips/relocator.h: Rewritten.
21915 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
21916 (grub_vtop): New function.
21917 (grub_map_memory): Likewise.
21918 (grub_unmap_memory): Likewise.
21919 * include/grub/misc.h (ALIGN_DOWN): New definition.
21920 * include/grub/mm.h (grub_mm_check_real): New proto.
21921 (GRUB_MM_CHECK): New definition.
21922 * include/grub/mm_private.h: New file.
21923 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
21924 (grub_multiboot_get_mbi_size): Removed.
21925 (grub_multiboot_make_mbi): Change prottype.
21926 (grub_multiboot_set_accepts_video): New proto.
21927 (grub_multiboot_add_elfsyms): Likewise.
21928 (grub_multiboot_payload_eip): New variable.
21929 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
21930 New prototype.
21931 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
21932 New definition.
21933 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
21934 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
21935 * include/grub/powerpc/ieee1275/loader.h: Removed.
21936 * include/grub/powerpc/memory.h: New file.
21937 * include/grub/powerpc/relocator.h: Likewise.
21938 * include/grub/relocator.h: Likewise.
21939 * include/grub/relocator_private.h: Likewise.
21940 * include/grub/sparc64/ieee1275/loader.h: Removed.
21941 * include/grub/x86_64/memory.h: New file.
21942 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
21943 (grub_xnu_heap_malloc): Likewise.
21944 (grub_xnu_heap_real_start): Removed.
21945 (grub_xnu_heap_start): Likewise.
21946 (grub_xnu_relocator): New variable.
21947 (grub_xnu_heap_target_start): Likewise.
21948 * tests/util/grub-shell.in: Support non-pc.
21949 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 21950
5303b85d
VS
219512010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21952
21953 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
21954 on malloc error.
21955 (grub_bidi_logical_to_visual): Check that malloc succeded.
21956 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
21957 puts.
21958 (grub_xputs_normal): Likewise.
21959
d768d159
VS
219602010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21961
21962 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
21963 extra_dist.
21964
219652010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21966
21967 * grub-core/efiemu/runtime/efiemu.sh: Removed.
21968
5bf84df4
VS
219692010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21970
21971 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
21972
3626810e
VS
219732010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21974
21975 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
21976 dprintf.
21977
a7363f53
BC
219782010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
21979
21980 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
21981
902f75f6
VS
219822010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21983
21984 * grub-core/normal/term.c (print_more): Fix a memory leak.
21985 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
21986 (grub_xputs_normal): Likewise.
21987
3c707967
VS
219882010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21989
21990 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
21991 the begining of the string
21992
2053cc07
VS
219932010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21994
21995 * grub-core/script/script.c (grub_script_parse): Free parsed on
21996 failure.
21997
46422ebf
VS
219982010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21999
22000 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
22001 on failure.
22002
9e0fa3f6
VS
220032010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22004
22005 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
22006 return.
22007
3393cf16
VS
220082010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22009
22010 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
22011 (scroll_up): Fix a memory leak.
22012
b17540cb
VS
220132010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22014
22015 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
22016 errors.
22017
67140446
VS
220182010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
22019
22020 Handle USB pendrives exposed as floppies.
22021
22022 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
22023 floppy.
22024 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22025 Check for partitions on all devices.
22026
e35e46fc
VS
220272010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22028
22029 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
22030 (readkey): Likewise.
22031
d24c6190
BC
220322010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
22033
22034 Multiple variable names support to "export" command.
22035
22036 * normal/context.c (grub_cmd_export): "export" command supports
22037 multiple variable names.
22038
04ddcc6a
ST
220392010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
22040
22041 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
22042 --target=drive output to Mach device name.
22043
0c8b61d8
BC
220442010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22045
22046 New Automake based build system for GRUB.
22047
22048 * ABOUT-NLS: New file.
22049 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
22050 in Makefile.util.def file.
22051 * Makefile.util.def: New file. Autogen build definitions file for
22052 GRUB host utils.
22053 * conf/Makefile.common: New file. Common variables for GRUB host
22054 utils and target modules.
22055 * conf/Makefile.extra-dist: New file. Extra files for make dist.
22056 * docs/Makefile.am: New file. Automake file for docs.
22057 * gentpl.py: New file. Python script to generate Autogen
22058 template.
22059 * grub-core/Makefile.am: New file. GRUB target modules' rules
22060 that doesn't fit in Makefile.core.def file.
22061 * grub-core/Makefile.core.def: New file. Autogen build
22062 definitions file for GRUB target modules.
22063 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
22064 specific setjmp.S file.
22065 * po/Makefile.am: New file.
22066
22067 * .bzrignore: New ignores.
22068 * INSTALL: New requirements, without Ruby.
22069 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
22070 * autogen.sh: Updated to invoke autogen as necessary.
22071 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
22072 and defines for Automake conditionals.
22073 * geninit.sh: Refactoring.
22074
22075 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
22076 necessary.
22077 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
22078 New prototype.
22079
22080 * include/grub/test.h: Fix functional test modules' naming.
22081 * grub-core/tests/example_functional_test.c: Fix test module name.
22082
22083 * util/misc.c: Hosted versions' of grub functions for libgrub.a
22084 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
22085 * util/grub-editenv.c: Likewise.
22086 * util/grub-fstest.c: Likewise.
22087 * util/grub-mkdevicemap.c: Likewise.
22088 * util/grub-mkfont.c: Likewise.
22089 * util/grub-mkimage.c: Likewise.
22090 * util/grub-mkpasswd-pbkdf2.c: Likewise.
22091 * util/grub-probe.c: Likewise.
22092 * util/grub-script-check.c: Likewise.
22093 * util/i386/pc/grub-setup.c: Likewise.
22094 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22095
22096 * tests/util/grub-shell.in: Fix override directory path.
22097 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
22098 * util/import_gcry.py: Create Makefile.gcry.def file instead.
22099
22100 * util/lvm.c: Update #includes.
22101 * util/raid.c: Likewise.
22102 * util/resolve.c: Likewise.
22103 * grub-core/bus/emu/pci.c: Likewise.
22104 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
22105 * grub-core/lib/posix_wrap/string.h: Likewise.
22106 * grub-core/kern/emu/main.c: Likewise.
22107
22108 * grub-core/gensymlist.sh: New file. Script for generating kernel
22109 symbols file.
22110 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
22111
22112 * grub-core/gentrigtables.c: Fix unused variable warnings.
22113
22114 * Makefile.in: Removed.
22115 * conf/any-emu.rmk: Removed.
22116 * conf/common.rmk: Removed.
22117 * conf/i386-coreboot.rmk: Removed.
22118 * conf/i386-efi.rmk: Removed.
22119 * conf/i386-ieee1275.rmk: Removed.
22120 * conf/i386-multiboot.rmk: Removed.
22121 * conf/i386-pc.rmk: Removed.
22122 * conf/i386-qemu.rmk: Removed.
22123 * conf/i386.rmk: Removed.
22124 * conf/mips-yeeloong.rmk: Removed.
22125 * conf/mips.rmk: Removed.
22126 * conf/powerpc-ieee1275.rmk: Removed.
22127 * conf/sparc64-ieee1275.rmk: Removed.
22128 * conf/tests.rmk: Removed.
22129 * conf/x86-efi.rmk: Removed.
22130 * conf/x86_64-efi.rmk: Removed.
22131 * gendistlist.sh: Removed.
22132 * geninitheader.sh: Removed.
22133 * genkernsyms.sh.in: Removed.
22134 * genmk.rb: Removed.
22135 * gensymlist.sh.in: Removed.
22136 * mkinstalldirs: Removed.
22137 * boot: Moved ...
22138 * grub-core/boot: ... to here.
22139 * bus: Moved ...
22140 * grub-core/bus: ... to here.
22141 * commands: Moved ...
22142 * grub-core/commands: ... to here.
22143 * disk: Moved ...
22144 * grub-core/disk: ... to here.
22145 * efiemu: Moved ...
22146 * grub-core/efiemu: ... to here.
22147 * font: Moved ...
22148 * grub-core/font: ... to here.
22149 * fs: Moved ...
22150 * grub-core/fs: ... to here.
22151 * gencmdlist.sh: Moved ...
22152 * grub-core/gencmdlist.sh: ... to here.
22153 * genemuinit.sh: Moved ...
22154 * grub-core/genemuinit.sh: ... to here.
22155 * genemuinitheader.sh: Moved ...
22156 * grub-core/genemuinitheader.sh: ... to here.
22157 * genfslist.sh: Moved ...
22158 * grub-core/genfslist.sh: ... to here.
22159 * genhandlerlist.sh: Moved ...
22160 * grub-core/genhandlerlist.sh: ... to here.
22161 * genmoddep.awk: Moved ...
22162 * grub-core/genmoddep.awk: ... to here.
22163 * genmodsrc.sh: Moved ...
22164 * grub-core/genmodsrc.sh: ... to here.
22165 * genpartmaplist.sh: Moved ...
22166 * grub-core/genpartmaplist.sh: ... to here.
22167 * genparttoollist.sh: Moved ...
22168 * grub-core/genparttoollist.sh: ... to here.
22169 * genterminallist.sh: Moved ...
22170 * grub-core/genterminallist.sh: ... to here.
22171 * gentrigtables.c: Moved ...
22172 * grub-core/gentrigtables.c: ... to here.
22173 * genvideolist.sh: Moved ...
22174 * grub-core/genvideolist.sh: ... to here.
22175 * gettext: Moved ...
22176 * grub-core/gettext: ... to here.
22177 * gfxmenu: Moved ...
22178 * grub-core/gfxmenu: ... to here.
22179 * gnulib: Moved ...
22180 * grub-core/gnulib: ... to here.
22181 * hello: Moved ...
22182 * grub-core/hello: ... to here.
22183 * hook: Moved ...
22184 * grub-core/hook: ... to here.
22185 * io: Moved ...
22186 * grub-core/io: ... to here.
22187 * kern: Moved ...
22188 * grub-core/kern: ... to here.
22189 * lib: Moved ...
22190 * grub-core/lib: ... to here.
22191 * loader: Moved ...
22192 * grub-core/loader: ... to here.
22193 * mmap: Moved ...
22194 * grub-core/mmap: ... to here.
22195 * normal: Moved ...
22196 * grub-core/normal: ... to here.
22197 * partmap: Moved ...
22198 * grub-core/partmap: ... to here.
22199 * parttool: Moved ...
22200 * grub-core/parttool: ... to here.
22201 * script: Moved ...
22202 * grub-core/script: ... to here.
22203 * term: Moved ...
22204 * grub-core/term: ... to here
22205 * tests/example_functional_test.c: Moved ...
22206 * grub-core/tests/example_functional_test.c: ... to here.
22207 * tests/lib/functional_test.c: Moved ...
22208 * grub-core/tests/lib/functional_test.c: ... to here.
22209 * tests/lib/test.c: Moved ...
22210 * grub-core/tests/lib/test.c: ... to here.
22211 * video: Moved ...
22212 * grub-core/video: ... to here.
22213
645586e6
BC
222142010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22215
22216 Replace --enable-grub-emu-modules with grub-emu-lite.
22217
22218 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
22219 cache.S.
22220
22221 * include/grub/emu/misc.h (grub_emu_init): New prototype.
22222 * kern/emu/full.c: New file. For grub-emu specific initialization.
22223 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
22224 * kern/emu/main.c: Call initialization function grub_emu_init.
22225
22226 * Makefile.in: Include grub-emu-lite in install.
22227 * commands/parttool.c: Use grub_no_autoload to differentiate
22228 between grub-emu and grub-emu-lite.
22229 * include/grub/misc.h: New variable grub_no_autoload.
22230
22231 * conf/any-emu.rmk: New rules for grub-emu-lite.
22232 * configure.ac: Remove --enable-grub-emu-modules.
22233 * genmk.rb: Cleanup unnecessary rules.
22234 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
22235
22236 * normal/main.c: Don't load list files on grub-emu-lite.
22237 * util/misc.c (grub_arch_sync_caches): Removed.
22238
f86a4030
CW
222392010-08-23 Colin Watson <cjwatson@ubuntu.com>
22240
22241 * kern/mips/startup.S (grub_prefix): Update comment to refer to
22242 grub-mkimage rather than grub-mkelfimage.
22243 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
22244
06776944
VS
222452010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
22246
22247 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
22248 a key after CapsLock or NumLock. It's just a qemu bug.
22249
df262419
VS
222502010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22251
22252 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
22253 needed by libusb wrapper.
22254
b40ea81b
ST
222552010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
22256
22257 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
22258
dee50575
VS
222592010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22260
22261 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
22262 --nounzip is passed.
22263
fb1d7b79
VS
222642010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
22265
22266 USB hotunplugging and USB serial support.
22267
22268 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
22269 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
22270 (grub_uhci_transfer): Respect timeout and set *actual.
22271 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
22272 non-standard length.
22273 (grub_usb_device_attach): Autoload modules.
22274 (GRUB_MOD_INIT): Set grub_term_poll_usb.
22275 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
22276 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
22277 users updated.
22278 (grub_usb_add_hub): Fill nports and children.
22279 (attach_root_port): Receive hub instead of controller.
22280 All users updated. Fill hub->devices.
22281 (grub_usb_root_hub): Allocate hub->devices.
22282 (detach_device): New function.
22283 (poll_nonroot_hub): Fill children and detach devices.
22284 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
22285 actual arguments. All users updated.
22286 (grub_usb_bulk_read_extended): New function.
22287 * bus/usb/serial/common.c: New file.
22288 * bus/usb/serial/ftdi.c: Likewise.
22289 * bus/usb/serial/pl2303.c: Likewise.
22290 * commands/terminal.c (handle_command): Support wildcard.
22291 * commands/usbtest.c: Output "Unknown" instead of empty string.
22292 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
22293 (usbserial_common_mod_SOURCES): New variable.
22294 (usbserial_common_mod_CFLAGS): Likewise.
22295 (usbserial_common_mod_LDFLAGS): Likewise.
22296 (pkglib_MODULES): Add usbserial_pl2303.mod.
22297 (usbserial_pl2303_mod_SOURCES): New variable.
22298 (usbserial_pl2303_mod_CFLAGS): Likewise.
22299 (usbserial_pl2303_mod_LDFLAGS): Likewise.
22300 (pkglib_MODULES): Add usbserial_ftdi.mod.
22301 (usbserial_ftdi_mod_SOURCES): New variable.
22302 (usbserial_ftdi_mod_CFLAGS): Likewise.
22303 (usbserial_ftdi_mod_LDFLAGS): Likewise.
22304 (pkglib_MODULES): Add serial.mod.
22305 (serial_mod_SOURCES): New variable.
22306 (serial_mod_CFLAGS): Likewise.
22307 (serial_mod_LDFLAGS): Likewise.
22308 * conf/i386-pc.rmk: Likewise.
22309 * conf/mips-yeeloong.rmk: Likewise.
22310 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
22311 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22312 * disk/usbms.c (first_available_slot): New variable.
22313 (grub_usbms_attach): Don't reuse free slots due to potential cache
22314 problems.
22315 * include/grub/serial.h: Moved to ..
22316 * include/grub/ns8250.h: ...this.
22317 * include/grub/serial.h: New file.
22318 * include/grub/term.h (grub_term_poll_usb): New variable.
22319 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
22320 readkey. All users updated.
22321 (grub_terminfo_output_state): Pass term to put.
22322 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
22323 (grub_usb_controller_dev): Add timeout and actual arguments to
22324 transfer. All users updated.
22325 (grub_usb_interface): New field detach_data.
22326 (grub_usb_device): New fields children and nports.
22327 (grub_usb_ep_type_t): New type.
22328 (grub_usb_get_ep_type): New function.
22329 (grub_usb_bulk_read_extended): Likewise.
22330 * include/grub/usbdesc.h (grub_usb_desc): New type.
22331 * include/grub/usbserial.h: New file.
22332 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
22333 * kern/term.c (grub_term_poll_usb): New variable.
22334 (grub_getkey): Call grub_term_poll_usb if set.
22335 (grub_checkkey): Likewise.
22336 (grub_getkeystatus): Likewise.
22337 * term/serial.c: Moved controller-specific parts to ...
22338 * term/ns8250.c: ... here.
22339 * term/serial.c: Mostly rewritten.
22340 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
22341 according to spec.
22342
21a313de
RM
223432010-08-20 Robert Millan <rmh@gnu.org>
22344
22345 Make kFreeBSD code more generic to support ext2fs as root, ufs as
22346 a separate module and maybe other interesting combinations.
22347
22348 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
22349 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
22350 (kfreebsd_entry): Add generic filesystem module load routine.
22351 Map GRUB `ext2' to kFreeBSD `ext2fs'.
22352
63c734a6
CW
223532010-08-20 Colin Watson <cjwatson@ubuntu.com>
22354
22355 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
22356 "numcenter" (I misunderstood the purpose of this entry).
22357 * docs/grub.texi (sendkey): Likewise.
22358
c4d16542
CW
223592010-08-20 Colin Watson <cjwatson@ubuntu.com>
22360
22361 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
22362 status flag options; simply omitting the option is equivalent and
22363 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
22364 (keysym_table): Rename "num5numlock" to "numlock".
22365 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
22366 can uniformly say that only the last of multiple `sendkey'
22367 invocations has any effect.
22368 * docs/grub.texi (sendkey): New section.
22369
93541d66
CW
223702010-08-19 Colin Watson <cjwatson@ubuntu.com>
22371
22372 * commands/i386/pc/sendkey.c (options): Fix three typos.
22373
b4ece5e1
VS
223742010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
22375
22376 Implement sendkey support.
22377
22378 * commands/i386/pc/sendkey.c: New file.
22379 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
22380 (sendkey_mod_SOURCES): New variable.
22381 (sendkey_mod_CFLAGS): Likewise.
22382 (sendkey_mod_LDFLAGS): Likewise.
22383
51f1f5af
CW
223842010-08-18 Colin Watson <cjwatson@ubuntu.com>
22385
22386 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
22387 fix warnings from Autoconf.
22388
9da94e05
CW
223892010-08-18 Colin Watson <cjwatson@ubuntu.com>
22390
22391 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
22392 to avoid false positives with some assemblers that output things
22393 like "someprefix_func" as part of their output.
22394
729a0f2e
RM
223952010-08-15 Robert Millan <rmh@gnu.org>
22396
22397 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
22398 errors.
22399 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
22400 grub_get_libzfs_handle() errors.
22401
f3710e08
RM
224022010-08-14 Robert Millan <rmh@gnu.org>
22403
22404 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
22405 filesystem is not ZFS.
22406
7a3c13de
BC
224072010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22408
22409 Fix for misspelled color names defaulting to black/black (bug
22410 reported by Doug Nazar)
22411
22412 * include/grub/normal.h (grub_parse_color_name_pair): Add return
22413 status to prototype.
22414 * normal/color.c (grub_parse_color_name_pair): Return failure
22415 status.
22416 (grub_env_write_color_normal): Ignore bad color names.
22417 (grub_env_write_color_highlight): Likewise.
22418 * normal/main.c (GRUB_MOD_INIT): Set default color names.
22419
ab8ba50d
BC
224202010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22421
22422 "shift" command support to GRUB script.
22423
22424 * include/grub/script_sh.h (grub_script_shift): New prototype.
22425 * script/execute.c (grub_script_shift): New function.
22426 * script/main.c (grub_script_init): Register shift command.
22427 (grub_script_fini): Unregister shift command.
22428 * util/grub-script-check.c (grub_script_cmd_shift): New function.
22429
22430 * tests/grub_script_shift.in: New testcase.
22431 * conf/tests.rmk: Rules for new testcase.
22432
4d61999e
BC
224332010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22434
22435 "continue" command support to GRUB script.
22436
22437 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
22438 (grub_script_break): Continue support.
22439 * script/main.c (grub_script_init): Register continue command.
22440 (grub_script_fini): Unregister continue command.
22441
22442 * tests/grub_script_continue.in: New testcase.
22443 * conf/tests.rmk: Rules for new testcase.
22444
4df51e00
BC
224452010-08-12 BVK Chaitanya <bvk@dbook>
22446
22447 "break" command support to GRUB script.
22448
22449 * conf/common.rmk: Rule updates to grub-script-check.
22450 * include/grub/misc.h (grub_min): New function.
22451 * include/grub/script_sh.h (grub_script_init): New prototype.
22452 (grub_script_fini): New prototype.
22453 (grub_script_break): New prototype.
22454 * script/main.c (grub_script_init): New function.
22455 (grub_script_fini): New function.
22456 * script/execute.c (grub_script_break): New function.
22457 * normal/main.c: Calls to grub_script_{init,fini}.
22458 * util/grub-script-check.c (grub_script_break): New function.
22459
22460 * tests/grub_script_break.in: New testcase.
22461 * conf/tests.rmk: Rules for new test case.
22462
f12c8420
BC
224632010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22464
22465 Function parameters support to GRUB script.
22466
22467 * script/yylex.l (VARIABLE): Regular expression update.
22468 * script/function.c (grub_script_function_call): Moved ...
22469 * script/execute.c (grub_script_function_call): ... to here.
22470 (grub_script_execute_arglist_to_argv): Removed.
22471 (grub_script_arglist_to_argv): New function.
22472 * script/argv.c: New file.
22473 (grub_script_argv_free): New function.
22474 (grub_script_argv_next): Likewise.
22475 (grub_script_argv_append): Likewise.
22476 (grub_script_argv_split_append): Likewise.
22477 * include/grub/script_sh.h (grub_script_argv): New struct.
22478 (grub_script_argv_free): New function.
22479 (grub_script_argv_next): Likewise.
22480 (grub_script_argv_append): Likewise.
22481 (grub_script_argv_split_append): Likewise.
22482
22483 * conf/common.rmk (normal.mod): New source script/argv.c.
22484
22485 * tests/grub_script_echo1.in: More tests.
22486 * tests/grub_script_vars1.in: Likewise.
22487 * tests/grub_script_functions.in: New test case.
22488 * conf/tests.rmk: Rules for new testcase.
22489
8022b748
BC
224902010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22491
22492 Remove grub_script_cmdblock struct.
22493
22494 * include/grub/script_sh.h: Remove grub_script_cmdblock.
22495 * script/parser.y: Likewise.
22496 * script/execute.c: Rename cmdblock suffix to cmdlist.
22497 * script/script.c: Likewise.
22498 * util/grub-script-check.c: Likewise.
22499
79a6ba61
YB
225002010-08-11 Yves Blusseau <blusseau@zetam.org>
22501
22502 * .bzrignore: add grub-macho2img
22503
d04b9414
VS
225042010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22505
22506 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
22507
f947ab49
VS
225082010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22509
22510 Remove the dump of sm712 initialisation sequence.
22511
22512 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
22513 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
22514 (GRUB_VGA_IO_MISC_WRITE): Likewise.
22515 (GRUB_VGA_CR_*): Added many registers.
22516 (GRUB_VGA_SR_*): Likewise.
22517 (GRUB_VGA_GR_*): Likewise.
22518 (grub_vga_write_arx): New function.
22519 (grub_video_hw_config): New struct.
22520 (grub_vga_set_geometry): New function.
22521 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
22522 GRUB_PCI_CLASS_SUBCLASS_VGA.
22523 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
22524 * video/sm712.c (grub_sm712_write_reg): New function
22525 (grub_sm712_read_reg): Likewise.
22526 (grub_sm712_sr_write): Likewise.
22527 (grub_sm712_gr_write): Likewise.
22528 (grub_sm712_cr_write): Likewise.
22529 (grub_sm712_write_arx): Likewise.
22530 (grub_sm712_cr_shadow_write): Likewise.
22531 (grub_sm712_write_dda_lookup): Likewise.
22532 (grub_video_sm712_setup): Initialise the video rather then
22533 blindly replay the dump.
22534 (main) [TEST]: Add a routine to be able to compile as standalone for
22535 tests.
22536 * video/sm712_init.c (sm712_init): Removed.
22537 (sm712_sr_seq1): New array.
22538 (sm712_sr_seq2): Likewise.
22539
f0206638
VS
225402010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22541
22542 * include/grub/vga.h: Add missing grub/pci.h include.
22543
2764da3b
YB
225442010-08-10 Yves Blusseau <blusseau@zetam.org>
22545
22546 * util/grub-macho2img.c (main): fix typo
22547
cf0c775e
VS
225482010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22549
22550 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
22551 (grub_vga_gr_read): Likewise.
22552 (grub_vga_cr_write): Likewise.
22553 (grub_vga_cr_read): Likewise.
22554 (grub_vga_sr_write): Likewise.
22555 (grub_vga_sr_read): Likewise.
22556 (grub_vga_palette_read): Likewise.
22557 (grub_vga_palette_write): Likewise.
22558 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
22559 (grub_sm712_sr_read): New function.
22560 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
22561 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
22562
07f360e9
RM
225632010-08-09 Robert Millan <rmh@gnu.org>
22564
22565 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
22566 out unused variables on non-ZFS build.
22567
346c2072
RM
225682010-08-08 Robert Millan <rmh@gnu.org>
22569
22570 Fix path generation for sub-filesystems in ZFS.
22571
22572 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
22573 missing slash.
22574
71175420
RM
225752010-08-08 Robert Millan <rmh@gnu.org>
22576
22577 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
22578
0d8286f3
RM
225792010-08-08 Robert Millan <rmh@gnu.org>
22580
22581 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
22582 exist, issue a proper error message (rely on `ls' for translated
22583 strings).
22584
55dd2924
RM
225852010-08-08 Robert Millan <rmh@gnu.org>
22586
22587 Fix grub-probe invocation.
22588
22589 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
22590
d3dd9e80
RM
225912010-08-04 Robert Millan <rmh@gnu.org>
22592
22593 * configure.ac: Remove checks for getfsstat() and getmntany().
22594 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
22595 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
22596 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
22597 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
22598 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
22599 function.
22600 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
22601 via find_mount_point_from_dir() and getfsstat() / getmntany().
22602
0de22aa9
RM
226032010-08-04 Robert Millan <rmh@gnu.org>
22604
22605 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22606 (grub_find_zpool_from_mount_point): Merge into ...
22607 (grub_find_zpool_from_dir): ... this.
22608 * kern/emu/misc.c: Likewise.
22609
22610 * kern/emu/misc.c
22611 (grub_make_system_path_relative_to_its_root): Replace
22612 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
22613 with grub_find_zpool_from_dir().
22614 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
22615
62858144
RM
226162010-08-04 Robert Millan <rmh@gnu.org>
22617
22618 Support OpenSolaris in ZFS device resolution.
22619
22620 * configure.ac: Check for getmntany().
22621 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
22622 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
22623 support.
22624
9dd6fd50
RM
226252010-08-03 Robert Millan <rmh@gnu.org>
22626
22627 Fix grub-emu build.
22628
22629 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
22630 * include/grub/emu/misc.h: ... here.
22631
22632 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
22633 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
22634
22635 * util/misc.c: Remove `<grub/util/libzfs.h>'.
22636 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
22637 (grub_get_libzfs_handle): Move to ...
22638 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
22639 (grub_get_libzfs_handle): ... here.
22640
c9f7ff97
BC
226412010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
22642
22643 * script/execute.c (grub_script_execute_cmdline): Check for NULL
22644 as command name case.
22645
a870a783
CW
226462010-08-02 Colin Watson <cjwatson@ubuntu.com>
22647
22648 * disk/raid.c (insert_array): Select unique numbers for named arrays
22649 as well, for use as keys in the disk cache.
22650
c7db243b
RM
226512010-08-01 Robert Millan <rmh@gnu.org>
22652
22653 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
22654 kFreeBSD device name, except on ZFS where the filesystem label is
22655 used.
22656 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
22657 `/boot/zfs/zpool.cache'.
22658 Set mountfrom kernel variable using ${kfreebsd_device}.
22659
f7abdefb
RM
226602010-08-01 Robert Millan <rmh@gnu.org>
22661
22662 Make it even harder to use uninitialized `libzfs_handle' (and
22663 make the interface a bit simpler).
22664
22665 * include/grub/util/misc.h (grub_util_init_libzfs)
22666 (libzfs_handle): Remove.
22667 (grub_get_libzfs_handle): New prototype.
22668
22669 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
22670 attribute.
22671 (grub_util_init_libzfs): Remove.
22672 (grub_get_libzfs_handle): New function.
22673
22674 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
22675 grub_get_libzfs_handle() to obtain a libzfs handle instead of
22676 accessing `libzfs_handle' directly.
22677
c882acc0
RM
226782010-08-01 Robert Millan <rmh@gnu.org>
22679
22680 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22681 (grub_find_zpool_from_mount_point): New function prototypes.
22682
22683 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22684 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22685
22686 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22687 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22688 `static' attribute.
22689
22690 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22691 finding zpool from mount point into ...
22692 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22693
22694 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22695 requested path is part of a ZFS pool, use
22696 grub_find_zpool_from_mount_point() to detect its filesystem name,
22697 and generate a path with `/fsname@path' syntax.
22698
8bfe31d8
CW
226992010-08-01 Colin Watson <cjwatson@ubuntu.com>
22700
22701 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
22702 (void) rather than () so that this is a proper prototype.
22703
553df63d
VS
227042010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22705
22706 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
22707
8687cf07
VS
227082010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22709
22710 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
22711 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
22712
ea9be8ea
CW
227132010-08-01 Colin Watson <cjwatson@ubuntu.com>
22714
22715 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
22716
6eea041a
CW
227172010-08-01 Colin Watson <cjwatson@ubuntu.com>
22718
22719 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
22720
2cfb45df
CW
227212010-08-01 Colin Watson <cjwatson@ubuntu.com>
22722
22723 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
22724 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
22725 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
22726 disable gfxpayload.
22727 (Shell-like scripting): Add real content.
22728 (Serial terminal): Suggest `terminal_input serial; terminal_output
22729 serial' rather than putting the two commands on separate lines,
22730 since console input will be inoperative after the first command.
22731 (menuentry): Document --class, --users, and --hotkey options.
22732 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
22733 Vladimir Serbinenko).
22734
7decd202
VS
227352010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
227362010-08-01 Colin Watson <cjwatson@ubuntu.com>
22737
22738 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
22739
c882acc0
RM
227402010-08-01 Robert Millan <rmh@gnu.org>
22741
22742 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
22743 (grub_find_zpool_from_mount_point): New function prototypes.
22744
22745 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
22746 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
22747
22748 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
22749 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
22750 `static' attribute.
22751
22752 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
22753 finding zpool from mount point into ...
22754 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
22755
22756 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
22757 requested path is part of a ZFS pool, use
22758 grub_find_zpool_from_mount_point() to detect its filesystem name,
22759 and generate a path with `/fsname@path' syntax.
22760
deb0caa3
RM
227612010-08-01 Robert Millan <rmh@gnu.org>
22762
22763 Prevent accidental use of uninitialized libzfs_handle.
22764
22765 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
22766 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
22767 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
22768
ce04ef47
CW
227692010-08-01 Colin Watson <cjwatson@ubuntu.com>
22770
22771 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
22772 util/grub.d/10_linux.in). Fixes Debian bug #591093.
22773
ebf53056
RM
227742010-08-01 Robert Millan <rmh@gnu.org>
22775
22776 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 22777
3710bb6b
RM
227782010-07-31 Robert Millan <rmh@gnu.org>
22779
22780 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
22781
8072efeb
RM
227822010-07-31 Robert Millan <rmh@gnu.org>
22783
22784 * kern/emu/misc.c: Add missing license header.
22785
3169f4c7
RM
227862010-07-31 Robert Millan <rmh@gnu.org>
22787
22788 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
22789
22790 * include/grub/util/libnvpair.h: Include `<config.h>'.
22791 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
22792 declaring libnvpair prototypes ourselves.
22793 * include/grub/util/libzfs.h: Include `<config.h>'.
22794 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
22795 declaring libzfs prototypes ourselves.
22796
22797 (libzfs_handle): Moved to ...
22798 * include/grub/util/misc.h (libzfs_handle): ... here.
22799 Include `<grub/util/libzfs.h>'.
22800
c9a00aee
RM
228012010-07-30 Robert Millan <rmh@gnu.org>
22802
22803 * include/grub/emu/misc.h: Add missing license header.
22804
a184f9c8
RM
228052010-07-30 Robert Millan <rmh@gnu.org>
22806
22807 Enable `grub-probe -t device' resolution on ZFS.
22808
22809 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
22810 * include/grub/util/libnvpair.h: New file.
22811 * include/grub/util/libzfs.h: New file.
22812
22813 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
22814 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
22815 `<grub/util/libnvpair.h>'.
22816 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
22817
22818 (find_mount_point_from_dir): New static function.
22819 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
22820 function.
22821 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
22822 find_root_device_from_libzfs() before ressorting to find_root_device().
22823
22824 * include/grub/util/misc.h (grub_util_init_libzfs): New function
22825 prototype.
22826 * util/misc.c: Include `<grub/util/libzfs.h>'.
22827 (grub_util_init_libzfs): New function.
22828 [HAVE_LIBZFS] (libzfs_handle): New global variable.
22829 [HAVE_LIBZFS] (fini_libzfs): New static function.
22830 (grub_util_init_libzfs): New function.
22831 * util/grub-probe.c (main): Call grub_util_init_libzfs().
22832
f7790cdd
RM
228332010-07-30 Robert Millan <rmh@gnu.org>
22834
22835 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
22836 (xmalloc, xrealloc, xstrdup, xasprintf): Add
22837 `warn_unused_result' attribute.
22838 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
22839 (grub_xasprintf, grub_xvasprintf): Likewise.
22840 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
22841
0806b63c
RM
228422010-07-29 Robert Millan <rmh@gnu.org>
22843
22844 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
22845 (probe): Handle `PRINT_FS_LABEL'.
22846 (main): Handle `-t fs_label'.
22847
9f841f5c
RM
228482010-07-29 Robert Millan <rmh@gnu.org>
22849
22850 * configure.ac: Remove grub-mkisofs checks.
22851
46371121
VS
228522010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
22853
22854 * util/ieee1275/grub-install.in: Don't use empty grub_device.
22855 Reported by: Lennart Sorensen.
22856
228572010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22858
22859 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
22860 prior to terminal_input/terminal_output separation. It's been over 1.5
22861 years and those versions weren't widely deployed.
22862
a9600892
CW
228632010-07-22 Colin Watson <cjwatson@ubuntu.com>
22864
22865 * disk/raid.c (insert_array): Don't count named arrays when looking
22866 for unused array numbers.
697e053c 22867 Reported and tested by: Michael Guntsche.
a9600892 22868
c03507df
CW
228692010-07-20 Colin Watson <cjwatson@ubuntu.com>
22870
22871 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
22872 implementation of this so that grub-emu links again, with a note
22873 that this should support hotplugging in the future.
22874
b26f1c11
CW
228752010-07-20 Colin Watson <cjwatson@ubuntu.com>
22876
22877 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
22878
efc9d7f1
CW
228792010-07-20 Colin Watson <cjwatson@ubuntu.com>
22880
22881 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
22882 handle on failure.
22883 (grub_loopback_close): Remove empty function.
22884 (grub_loopback_dev): Remove close method.
22885
dd8ff5c9
CW
228862010-07-20 Colin Watson <cjwatson@ubuntu.com>
22887
22888 Disable EFI cursor when the EFI console becomes inactive.
22889
22890 * term/efi/console.c (grub_efi_console_init): New function.
22891 (grub_efi_console_fini): New function.
22892 (grub_console_term_output): Register init and fini methods.
22893
5e3bec67
VS
228942010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22895
22896 * tests/util/grub-shell-tester.in: Remove bashism and declare as
22897 sh script.
22898
afaec079
VS
228992010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22900
22901 * disk/loopback.c (grub_loopback): Replace filename with file.
22902 (delete_loopback): Handle new semantics.
22903 (grub_cmd_loopback): Likewise.
22904 (grub_loopback_iterate): Likewise.
22905 (grub_loopback_close): Likewise.
22906
a6a11f3c
VS
229072010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22908
22909 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
22910 with -p "".
22911 Reported by: Tito Keitel.
22912
64a638b0
VS
229132010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22914
22915 * docs/grub.texi (Naming convention): Document new naming convention.
22916
ab8ba957
VS
229172010-07-20 Vadim Solomin <vadic052@gmail.com>
229182010-07-20 Colin Watson <cjwatson@ubuntu.com>
22919
22920 Generate device.map in something closer to the old ordering.
22921
22922 * util/deviceiter.c (struct device): New declaration.
22923 (compare_file_names): Rename to ...
22924 (compare_devices): ... this. Sort by kernel name in preference to
22925 the stable by-id name, but keep the latter as a fallback comparison.
22926 Update header comment.
22927 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
22928 of `struct device' rather than of plain file names.
22929
a29d6a4b
TF
229302010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
22931
22932 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
22933 on i386.
22934
39d824e8
VS
229352010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22936
22937 * commands/acpi.c (setup_common_tables): Use sizeof instead of
22938 hardcoding size.
22939 (setv1table): Likewise.
22940
f058276b
FZ
229412010-07-20 Colin Watson <cjwatson@ubuntu.com>
22942
22943 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
22944 removing the homehost if present.
22945 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
22946 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
22947 removing the homehost if present.
22948 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
22949 if possible.
22950 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
22951
22952 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
22953 parameter. Set its pointer target to 0.
22954 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
22955 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
22956 `data_offset' value from the superblock for 1.x metadata.
22957 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
22958 data on the device.
22959 (insert_array): Record the start sector of data on the device.
22960 (grub_raid_register): Pass start_sector parameters to
22961 grub_raid_list->detect and insert_array.
22962 * include/grub/raid.h (struct grub_raid_array): Add start_sector
22963 member.
22964 (struct grub_raid): Add start_sector parameter to `detect'.
22965
22966 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
22967 __attribute__ ((packed)), leaving a comment.
22968 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
22969 (grub_mdraid_detect_09): ... here and ...
22970 (grub_mdraid_detect_1x): ... here.
22971
229722010-07-20 Peter Henn <peter.henn@web.de>
22973
22974 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
22975 chunk size and disk size, which are already given as sector counts
22976 as distinct from the 0.90 units. Fetch the correct device number
22977 from the role table instead of using the table index.
22978
229792010-07-20 Felix Zielcke <fzielcke@z-51.de>
22980
22981 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
22982 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
22983 (WriteMostly1): New macro.
22984 Set array->name to NULL for metadata format 0.90. Add support for
22985 metadata 1.x. Fix some comments.
22986 * disk/raid.c (): Add support for name based RAID arrays. Fix a
22987 few comments.
22988 * util/getroot.c (grub_util_get_grub_dev): Add support for
22989 /dev/md/name style devices.
22990
4b761da9
CW
229912010-07-20 Colin Watson <cjwatson@ubuntu.com>
22992
22993 * .bzrignore: Ignore 20_linux_xen.
22994
5771289a
CW
229952010-07-17 Colin Watson <cjwatson@ubuntu.com>
22996
22997 * util/import_unicode.py: Remove unnecessary imports.
22998
5dab68df
AN
229992010-07-17 Aleš Nesrsta <starous@volny.cz>
23000
23001 Hotplugging and USB hub support.
23002
23003 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
23004 (grub_ohci): Likewise.
23005 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
23006 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
23007 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
23008 (GRUB_OHCI_CTRL_EDS): Likewise.
23009 (GRUB_OHCI_BULK_EDS): Likewise.
23010 (GRUB_OHCI_TDS): Likewise.
23011 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
23012 (grub_ohci_ed_phys2virt): New function.
23013 (grub_ohci_virt_to_phys): Likewise.
23014 (grub_ohci_td_phys2virt): Likewise.
23015 (grub_ohci_td_virt2phys): Likewise.
23016 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
23017 attachment.
23018 (grub_ohci_find_ed): New function.
23019 (grub_ohci_alloc_td): Likewise.
23020 (grub_ohci_free_td): Likewise.
23021 (grub_ohci_free_tds): Likewise.
23022 (grub_ohci_transfer): Use previously allocated memory.
23023 (grub_ohci_portstatus): Reset status changed bit.
23024 (grub_ohci_detect_dev): Supply status changed.
23025 (grub_ohci_fini_hw): Free memory.
23026 (grub_ohci_restore_hw): Reallocate memory.
23027 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
23028 Reset status change.
23029 (grub_uhci_detect_dev): Supply status_change.
23030 * bus/usb/usb.c (attach_hooks): New var.
23031 (grub_usb_device_attach): New function.
23032 (grub_usb_register_attach_hook_class): Likewise.
23033 (grub_usb_unregister_attach_hook_class): Likewise.
23034 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
23035 (grub_usb_add_hub): Reset connection changed bit.
23036 (attach_root_port): New function.
23037 (grub_usb_root_hub): Likewise.
23038 (poll_nonroot_hub): Likewise.
23039 (grub_usb_poll_devices): Likewise.
23040 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
23041 * disk/usbms.c (grub_usbms_open): Use device hooks.
23042 (grub_usbms_iterate) :Poll devices.
23043 (grub_usbms_finddevs): Split into ...
23044 (grub_usbms_attach): ... this ...
23045 (grub_usbms_attach): ... and this.
23046 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
23047 in detect_dev.
23048 (grub_usb_interface): New fields attached and detach_hook.
23049 (grub_usb_attach_hook_class): New type.
23050 (grub_usb_attach_desc): New struct.
23051 (grub_usb_register_attach_hook_class): New function.
23052 (grub_usb_unregister_attach_hook_class): Likewise.
23053 (grub_usb_poll_devices): Likewise.
23054 (grub_usb_device_attach): Likewise.
23055 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
23056 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
23057
3222efaf
VS
230582010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23059
23060 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
23061 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
23062 delta determination style. Works with most NetBSD partitions too.
23063
139b714a
VS
230642010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23065
23066 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
23067 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
23068
986aad56
VS
230692010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23070
23071 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
23072
99be513c
AB
230732010-07-14 Anton Blanchard <anton@samba.org>
23074
23075 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
23076 ET_DYN files.
23077
18075f62
GS
230782010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23079
23080 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
23081
8d9a5b15
GS
230822010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23083
23084 * kern/partition.c (grub_partition_check_containment): New function to
23085 check that a partition is physically contained in a parent. Since
23086 offsets are relative (and non-negative), this reduces to checking that
23087 the partition ends before its parent.
23088 (grub_partition_map_probe): Discard out-of-range sub-partitions.
23089 (grub_partition_iterate): Likewise.
23090 * include/grub/partition.h (grub_partition_map): Slightly more detailed
23091 comments.
23092 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
23093 partitions that start before their parent, and add debug printfs.
23094
19563c25
CW
230952010-07-13 Colin Watson <cjwatson@ubuntu.com>
23096
23097 * Makefile.in (.SUFFIX): Spell correctly, as ...
23098 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
23099 bare module name without `.mod', e.g. `test') tried to invoke a
23100 Modula-2 compiler.
23101
1a1f1e67
CW
231022010-07-13 Colin Watson <cjwatson@ubuntu.com>
23103
23104 * README: Point to the Info manual.
23105
811b0dca
JS
231062010-07-13 Jiro SEKIBA <jir@unicus.jp>
23107
23108 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
23109 2nd superblock position from partition size.
23110
e4f4eafc
CW
231112010-07-10 Colin Watson <cjwatson@ubuntu.com>
23112
23113 * Makefile.in (MAINTAINER_CLEANFILES): Remove
23114 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
23115 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
23116 outputs.
23117
4274c30f
VS
231182010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23119
23120 Restructure SCSI .id handling.
23121 Reported and tested by: Aleš Nesrsta.
23122
23123 * disk/ata.c (grub_atapi_close): Removed. All users updated.
23124 (grub_atapi_dev): Changed .name to "ata". New field .id.
23125 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
23126 (grub_usbms_dev): New field .id.
23127 * disk/scsi.c (grub_scsi_iterate): Generate name.
23128 (grub_scsi_open): Parse name.
23129 * include/grub/scsi.h (grub_make_scsi_id): New function.
23130 (grub_scsi_dev): Change iterate and open to number instead of naming
23131 busses. All users updated.
23132 (grub_scsi): Remove name. Add .bus.
23133
5bc24388
VS
231342010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23135
23136 * commands/help.c (grub_cmd_help): Fix a typo.
23137
249975ba
VS
231382010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23139
23140 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
23141 Reported and tested by: Colin Watson.
23142
3eaac1a1
VS
231432010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23144
23145 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
23146 in this context.
23147
becce1b1
VS
231482010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
23149
23150 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
23151
f7bf0918
CW
231522010-07-07 Colin Watson <cjwatson@ubuntu.com>
23153
23154 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
23155 indentation.
23156
0b0f9620
CW
231572010-07-06 Colin Watson <cjwatson@ubuntu.com>
23158
23159 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
23160 and disk/raid6_recover.c.
23161 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23162 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23163
1e545469
CW
231642010-07-06 Colin Watson <cjwatson@ubuntu.com>
23165
23166 * term/gfxterm.c (repaint_schedulded): Rename to ...
23167 (repaint_scheduled): ... this. Update all callers.
23168 (repaint_was_schedulded): Rename to ...
23169 (repaint_was_scheduled): ... this. Update all callers.
23170
5357687a
CW
231712010-07-06 Colin Watson <cjwatson@ubuntu.com>
23172
23173 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
23174 which we expect to be handled by upper layers.
23175
29d7e783
BC
231762010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
23177
23178 * bus/usb/usbhub.c: #include time.h header.
23179
37582066
CW
231802010-07-06 Colin Watson <cjwatson@ubuntu.com>
23181
23182 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
23183 entry_name also for entries without stat blocks (e.g. ".."); fixes
23184 corruption of the first entry in a directory.
23185
c8c06953
CW
231862010-07-06 Colin Watson <cjwatson@ubuntu.com>
23187
23188 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
23189 after setting gfxterm as the active terminal. GRUB_BACKGROUND
23190 doesn't work otherwise.
23191
e75056f1
CW
231922010-07-05 Colin Watson <cjwatson@ubuntu.com>
23193
23194 * docs/grub.texi (Features): Update list of supported file systems.
23195 (GNU/Linux): Update for GRUB 2.
23196 (Serial terminal): Remove mention of --disable-serial, which was a
23197 GRUB Legacy configure option. Update instructions to use
23198 `terminal_input' and `terminal_output' rather than `terminal'.
23199 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
23200 configuration' and `Installing GRUB using grub-install'.
23201 (Menu entry editor): Update for GRUB 2.
23202 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
23203 Document new -a, -u, and -v options.
23204 (initrd): New section.
23205 (initrd16): New section.
23206 (linux): New section.
23207 (linux16): New section.
23208 (search): The `var' argument to `--set' is optional.
23209 (GRUB only offers a rescue shell): Go into a little more detail on
23210 drive ordering.
23211
5cf69151
CW
232122010-07-05 Colin Watson <cjwatson@ubuntu.com>
23213
23214 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
23215
e3f90044
CW
232162010-07-05 Colin Watson <cjwatson@ubuntu.com>
23217
23218 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
23219 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
23220
38d8f4f3
CW
232212010-07-05 Colin Watson <cjwatson@ubuntu.com>
23222
23223 * util/i386/pc/grub-setup.c (setup): Rename prefix to
23224 install_prefix, in line with install_dos_part and install_bsd_part.
23225 Add new prefix variable, which is copied to install_prefix after
23226 comparing core.img in memory with the one read from disk in the
23227 no-embedding case, and use that rather than overwriting
23228 install_prefix immediately when installing to a partition.
23229 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
23230 Bicakci.
23231
57ebd41e
GS
232322010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23233
23234 * configure.ac: Avoid == in test command, it's not portable.
23235 * util/grub.d/30_os-prober.in: Likewise.
23236
cb7f64b2
CW
232372010-07-04 Colin Watson <cjwatson@ubuntu.com>
23238
23239 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
23240
6b654bb0
GS
232412010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23242
23243 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
23244 multiple (top-level) partmaps.
23245
72a2026d
VS
232462010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23247
23248 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 23249 Reported by: Tino Keitel.
72a2026d 23250
df3eb88f
VS
232512010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23252
23253 Bidi and diacritics support.
23254
23255 * Makefile.in (widthspec.bin): New target.
23256 (widthspec.h): Likewise.
23257 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
23258 * autogen.sh: Generate unidata.c.
23259 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
23260 * commands/ls.c (grub_ls_list_devices): Likewise.
23261 (grub_ls_list_files): Likewise.
23262 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
23263 (grub_mini_cmd_lsmod): Likewise.
23264 * commands/read.c: Likewise.
23265 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
23266 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
23267 * lib/arg.c (grub_arg_show_help): Likewise.
23268 * lib/crypto.c (grub_password_get): Likewise.
23269 * normal/auth.c (grub_username_get): Likewise.
23270 * normal/misc.c (grub_normal_print_device_info): Likewise.
23271 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
23272 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
23273 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
23274 (normal/charset.c_DEPENDENCIES): New variable.
23275 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
23276 (pkglib_MODULES): Remove charset.mod.
23277 (charset_mod_SOURCES): Removed.
23278 (charset_mod_CFLAGS): Likewise.
23279 (charset_mod_LDFLAGS): Likewise.
23280 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
23281 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
23282 and term/tparm.c.
23283 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23284 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23285 (kernel_img_HEADERS): Add terminfo.h.
23286 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
23287 Fill ->font. Reverse ascii bitmaps.
23288 (grub_font_get_xheight): New function.
23289 * font/font.c (grub_font_get_string_width): Moved from here ...
23290 * gfxmenu/font.c (grub_font_get_string_width): ... here.
23291 * font/font.c (grub_font_draw_string): Moved from here ...
23292 * gfxmenu/font.c (grub_font_draw_string): ... here.
23293 * font/font.c (grub_font_dup_glyph): New function.
23294 (grub_font_blit_glyph): Likewise.
23295 (grub_font_blit_glyph_mirror): Likewise.
23296 (blit_comb): Likewise.
23297 (grub_font_construct_dry_run): Likewise.
23298 (grub_font_get_constructed_device_width): Likewise.
23299 (grub_font_construct_glyph): Likewise.
23300 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
23301 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
23302 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
23303 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
23304 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
23305 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
23306 (grub_font_get_xheight): New proto.
23307 (grub_font_get_constructed_device_width): Likewise.
23308 (grub_font_construct_glyph): Likewise.
23309 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
23310 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
23311 * include/grub/font.h (grub_font_draw_string): Moved from here ...
23312 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
23313 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
23314 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
23315 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
23316 (grub_console_getcharwidth): Likewise.
23317 * include/grub/misc.h (grub_xputs): New proto.
23318 (grub_puts): Inlined.
23319 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
23320 (grub_normal_get_line_counter): Removed.
23321 (grub_install_newline_hook): Likewise.
23322 (grub_normal_get_char_counter): New proto.
23323 (grub_normal_reset_more): Likewise.
23324 (grub_xputs_normal): Likewise.
23325 * include/grub/powerpc/ieee1275/console.h: Removed.
23326 * include/grub/sparc64/ieee1275/console.h: Likewise.
23327 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
23328 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
23329 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
23330 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
23331 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
23332 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
23333 (grub_term_input): Pass reference to self. All users updated.
23334 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
23335 Pass reference to self. New fields normal_color, highlight_color and
23336 data. All users updated.
23337 (grub_putchar): Removed.
23338 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
23339 (grub_unicode_estimate_width): New function.
23340 (grub_term_getcharwidth): Add defaults.
23341 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
23342 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
23343 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
23344 (grub_cls): Remove EXPORT_FUNC.
23345 (grub_setcolorstate): Inline.
23346 (grub_newline_hook): Removed.
23347 * include/grub/terminfo.h: Rewritten. All users updated.
23348 * include/grub/unicode.h: New file.
23349 * include/grub/video.h (grub_video_signed_rect): New type.
23350 * kern/emu/console.c (grub_console_highlight_color): Removed.
23351 (grub_console_normal_color): Likewise.
23352 (grub_console_standard_color): Made static.
23353 (grub_ncurses_putchar): Remove mapping.
23354 (grub_ncurses_getcharwidth): Removed.
23355 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23356 (grub_ncurses_setcolor): Removed.
23357 (grub_ncurses_getcolor): Likewise.
23358 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
23359 (grub_console_putchar): ... this.
23360 (grub_console_putchar): Handle argument difference.
23361 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
23362 console_init_early and console_init_lately.
23363 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
23364 * kern/misc.c (grub_puts): Removed.
23365 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
23366 (grub_vsnprintf_real): Remove str = NULL support.
23367 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
23368 * normal/charset.c (grub_utf8_to_ucs4): ... here.
23369 * kern/term.c (grub_putcode): Renamed to ...
23370 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
23371 (grub_putchar): Removed.
23372 (grub_xputs_dumb): New function.
23373 (grub_xputs): New variable.
23374 * lib/charset.c: Move from here ...
23375 * normal/charset.c: ... to here.
23376 (grub_ucs4_to_utf8): New function.
23377 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
23378 (join_types): New variable.
23379 (unpack_join): New function.
23380 (bidi_types): New variable.
23381 (unpack_bidi): New function.
23382 (get_bidi_type): Likewise.
23383 (get_join_type): Likewise.
23384 (is_mirrored): Likewise.
23385 (grub_unicode_get_comb_type): Likewise.
23386 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
23387 (is_type_after): Likewise.
23388 (grub_unicode_aglomerate_comb): Likewise.
23389 (bidi_line_wrap): Likewise.
23390 (grub_bidi_line_logical_to_visual): Likewise.
23391 (grub_bidi_logical_to_visual): Likewise.
23392 (grub_unicode_mirror_code): Likewise.
23393 (grub_unicode_shape_code): Likewise.
23394 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
23395 Don't use grub_putchar.
23396 * normal/main.c (grub_normal_init_page): Use grub_putcode.
23397 (grub_normal_reader_init): Likewise.
23398 (grub_xputs_saved): New variable.
23399 (GRUB_MOD_INIT): Set grub_xputs.
23400 (GRUB_MOD_FINI): Restore grub_xputs.
23401 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
23402 (menu_init): Avoid printing gfxmenu error.
23403 (show_menu): Use grub_normal_get_char_counter.
23404 * normal/menu_entry.c (update_screen): Fix out-of-array.
23405 (complete): Avoid NULL dereferencing.
23406 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
23407 * normal/menu_text.c (print_spaces): Removed.
23408 (grub_print_ucs4): Likewise.
23409 (grub_print_message_indented): Use grub_print_ucs4.
23410 (print_message): Use grub_putcode.
23411 (print_entry): Hanlde diacritics.
23412 * normal/term.c (term_state): New type.
23413 (grub_more_lines): Removed.
23414 (term_states): New variable.
23415 (grub_normal_line_counter): Renamed to ..
23416 (grub_normal_char_counter): ...this. All users updated.
23417 (grub_normal_get_line_counter): Renamed to ...
23418 (grub_normal_get_char_counter): ... this.
23419 (grub_normal_reset_more): New function.
23420 (process_newline): Removed.
23421 (print_more): New function.
23422 (grub_install_newline_hook): Removed.
23423 (map_code): New function.
23424 (grub_puts_terminal): Use grub_print_ucs4.
23425 (putglyph): New function.
23426 (putcode_real): Likewise.
23427 (grub_putcode): Use putcode_real.
23428 (get_maxwidth): New function.
23429 (get_startwidth): Likewise.
23430 (print_ucs4_terminal): Likewise.
23431 (find_term_state): Likewise.
23432 (put_glyphs_terminal): Likewise.
23433 (print_backlog): Likewise.
23434 (print_ucs4_real): Likewise.
23435 (grub_print_ucs4): Likewise.
23436 (grub_xputs_normal): Likewise.
23437 * term/efi/console.c (grub_console_putchar): Output diacritics.
23438 (grub_console_getcharwidth): Removed.
23439 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23440 * term/gfxterm.c (clear_char): Free chars.
23441 (scroll_up): Avoid leaking memory.
23442 (grub_gfxterm_putchar): Support diacritics.
23443 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23444 * term/i386/pc/console.c (grub_console_term_output): Declare as
23445 GRUB_TERM_CODE_TYPE_VGA.
23446 * term/i386/pc/vga.c (grub_vga_term): Declare as
23447 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
23448 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
23449 GRUB_TERM_CODE_TYPE_VGA.
23450 * term/i386/vga_common.c (map_char): Removed.
23451 (grub_console_putchar): Likewise.
23452 (grub_console_getcharwidth): Likewise.
23453 * term/ieee1275/ofconsole.c: Simplify using terminfo.
23454 (colors): Reordered to match terminfo.
23455 (grub_ofconsole_normal_color): Removed.
23456 (grub_ofconsole_writeesc): Likewise.
23457 (grub_ofconsole_highlight_color): Likewise.
23458 (grub_ofconsole_getcharwidth): Likewise.
23459 (grub_ofconsole_setcolorstate): Likewise.
23460 (grub_ofconsole_setcolor): Likewise.
23461 (grub_ofconsole_getcolor): Likewise.
23462 (grub_ofconsole_readkey): Renamed to ...
23463 (readkey): ... this. Remove escape sequence handling. Return -1 on no
23464 key.
23465 (grub_ofconsole_checkkey): Removed.
23466 (grub_ofconsole_getkey): Likewise.
23467 (grub_ofconsole_getxy): Likewise.
23468 (grub_ofconsole_gotoxy): Likewise.
23469 (grub_ofconsole_cls): Likewise.
23470 (grub_ofconsole_refresh): Likewise.
23471 (grub_ofconsole_terminfo_input): New struct.
23472 (grub_ofconsole_terminfo_output): Likewise.
23473 (grub_ofconsole_term_input): Use terminfo.
23474 (grub_ofconsole_term_output): Likewise.
23475 (grub_console_init): Split into ...
23476 (grub_console_init_early): ...this and ...
23477 (grub_console_init_lately): ...this. Use terminfo.
23478 (grub_ofconsole_putchar): Renamed to ...
23479 (put): ... this. Remove mapping.
23480 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23481 * term/serial.c: Simplify using terminfo.
23482 (xpos): Removed.
23483 (ypos): Likewise.
23484 (keep_track): Likewise.
23485 (registered): Likewise.
23486 (input_buf): Likewise.
23487 (npending): Likewise.
23488 (serial_translate_key_sequence): Likewise.
23489 (fill_input_buf): Likewise.
23490 (grub_serial_checkkey): Likewise.
23491 (grub_serial_getkey): Likewise.
23492 (grub_serial_getxy): Likewise.
23493 (grub_serial_gotoxy): Likewise.
23494 (grub_serial_putchar): Likewise.
23495 (grub_serial_cls): Likewise.
23496 (grub_serial_setcolorstate): Likewise.
23497 (grub_serial_setcursor): Likewise.
23498 (serial_hw_init): Use serial_hw_fetch.
23499 (grub_serial_terminfo_input): New variable.
23500 (grub_serial_terminfo_output): Likewise.
23501 (grub_serial_term_input): Use terminfo.
23502 (grub_serial_term_output): Likewise.
23503 * term/terminfo.c (putstr): Use put.
23504 (grub_terminfo_all_free): New function
23505 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
23506 (grub_terminfo_output_register): New function.
23507 (grub_terminfo_output_unregister): Likewise.
23508 (grub_terminfo_getxy): Likewise.
23509 (grub_terminfo_readkey): Likewise.
23510 (grub_terminfo_checkkey): Likewise.
23511 (grub_terminfo_getkey): Likewise.
23512 (grub_terminfo_input_init): Likewise.
23513 (print_terminfo): Likewise.
23514 (grub_cmd_terminfo): Handle encoding.
23515 (grub_terminfo_gotoxy): Track position.
23516 (grub_terminfo_cls): Likewise.
23517 (grub_terminfo_putchar): Likewise.
23518 (grub_terminfo_setcolorstate): Handle colors
23519 (grub_terminfo_cursor_on): This ...
23520 (grub_terminfo_cursor_off): ... and this merged into ...
23521 (grub_terminfo_setcursor): ... this.
23522 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
23523 * unicode/ArabicShaping.txt: New file (imported from Unicode).
23524 * unicode/BidiMirroring.txt: Likewise.
23525 * unicode/UnicodeData.txt: Likewise.
23526 * unicode/COPYING: Likewise.
23527 * util/grub-editenv.c (grub_putchar): Removed.
23528 (grub_xputs_real): New function.
23529 (grub_xputs): New variable.
23530 * util/grub-fstest.c (grub_putchar): Removed.
23531 (grub_xputs_real): New function.
23532 (grub_xputs): New variable.
23533 * util/grub-mkdevicemap.c (grub_putchar): Removed.
23534 (grub_xputs_real): New function.
23535 (grub_xputs): New variable.
23536 * util/grub-probe.c (grub_putchar): Removed.
23537 (grub_xputs_real): New function.
23538 (grub_xputs): New variable.
23539 * util/grub-script-check.c (grub_putchar): Removed.
23540 (grub_xputs_real): New function.
23541 (grub_xputs): New variable.
23542 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
23543 (grub_xputs_real): New function.
23544 (grub_xputs): New variable.
23545 * util/import_unicode.py: New file.
23546 * util/grub-mkfont.c (ft_errmsgs): New array.
23547 (grub_glyph_info): Make bitmap a pointer.
23548 (file_formats): New type WIDTH_SPEC.
23549 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
23550 (options): Add width-spec.
23551 (help): Likewise.
23552 (add_char): Renamed to ...
23553 (add_glyph): ... this.
23554 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
23555 (glyph_replace): New type.
23556 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
23557 (add_char): New function.
23558 (add_subst): Likewise.
23559 (process_cursive): Likewise.
23560 (add_font): Handle GSUB.
23561 (write_font_width_spec): New function.
23562 (main): Sort glyphs.
23563 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
23564 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
23565 * kern/term.c (grub_cls): Moved from here...
23566 * normal/term.c (grub_cls): ... here.
23567
50f0bcda
CW
235682010-07-02 Colin Watson <cjwatson@ubuntu.com>
23569
23570 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
23571 suitable for using within the format argument of printf when
23572 converting grub_size_t.
23573 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
23574 "x" to convert grub_size_t arguments.
23575
40372103
VS
235762010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23577
23578 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
23579 too long captions.
23580 (list_get_minimal_size): Take selection box into account.
23581
942a10c7
VS
235822010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23583
23584 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
23585 NULL font.
23586
2bdb2892
CW
235872010-07-02 Colin Watson <cjwatson@ubuntu.com>
23588
23589 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
23590 devices when iterating over /dev/disk/by-id; they will be handled
23591 later if appropriate, which they aren't always (e.g. LVM).
23592
e03ed6c1
CW
235932010-07-02 Colin Watson <cjwatson@ubuntu.com>
23594
23595 * include/grub/misc.h (grub_reboot): Declare as noreturn.
23596 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
23597 fails.
23598 (grub_halt): Likewise.
23599 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
23600 reset-all fails.
23601 (grub_halt): Don't return, even if all of shut-down, power-off, and
23602 poweroff fail.
23603
47695765
CW
236042010-07-02 Colin Watson <cjwatson@ubuntu.com>
23605
23606 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
23607 arguments, not three.
23608
507736c8
CW
236092010-07-02 Colin Watson <cjwatson@ubuntu.com>
23610
23611 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
23612 * util/grub.d/10_linux.in: Use it to check for LVM, so that
23613 LVM-on-RAID is handled correctly.
23614
e3c8cd37
CW
236152010-07-02 Colin Watson <cjwatson@ubuntu.com>
23616
23617 * docs/grub.texi (Changes from GRUB Legacy): New section.
23618 (Future): Fix typo.
23619
8d4a2fec
CW
236202010-07-02 Colin Watson <cjwatson@ubuntu.com>
23621
23622 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
23623 grub.d/README accidentally ends up executable for one reason or
23624 another. Ignore it.
23625
1c4827be
VS
236262010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23627
23628 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
23629 (gpt_partition_map_iterate): Support non-512B sectors.
23630
d9a0c941
VS
236312010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23632
23633 * kern/efi/init.c (grub_efi_init): Disable watchdog.
23634 Tested by: Seth Goldberg.
23635
48f27e87
VS
236362010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23637
23638 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
23639 Properly align mbi.
23640 Reported by: Seth Goldberg.
23641
b0c4f956
VS
236422010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23643
23644 * util/grub-mkrescue.in: Avoid module duplication.
23645
105a2e8c
SF
236462010-07-01 Sean Finney <seanius@seanius.net>
23647
23648 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
23649
5944958c
SF
236502010-07-01 Sean Finney <seanius@seanius.net>
23651
23652 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
23653
236542010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23655
23656 * disk/lvm.c (grub_lvm_checkvalue): New function.
23657 (grub_lvm_check_flag): Likewise.
23658
b79889ba
RM
236592010-07-01 Robert Millan <rmh@gnu.org>
23660
23661 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
23662 Support 'p' as partition separator on kernel of FreeBSD (used
23663 with GPT labels).
23664 (grub_util_biosdisk_get_grub_dev): Likewise.
23665
ec1d04f1
VS
236662010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
23667
23668 Yeeloong firmware port.
23669
23670 * boot/mips/yeeloong/fwstart.S: New file.
23671 * bus/cs5536.c (gpiodump): New const.
23672 (set_io_space): New function.
23673 (set_iod): Likewise.
23674 (set_p2d): Likewise.
23675 (grub_cs5536_init_geode): Likewise.
23676 * commands/mips/yeeloong/lsspd.c: New file.
23677 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
23678 (serial_mod_SOURCES): New variable.
23679 (serial_mod_CFLAGS): Likewise.
23680 (serial_mod_LDFLAGS): Likewise.
23681 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
23682 term/terminfo.c and term/tparm.c.
23683 (pkglib_IMAGES): Add fwstart.img.
23684 (fwstart_img_SOURCES): New variable.
23685 (fwstart_img_CFLAGS): Likewise.
23686 (fwstart_img_ASFLAGS): Likewise.
23687 (fwstart_img_LDFLAGS): Likewise.
23688 (fwstart_img_FORMAT): Likewise.
23689 (pkglib_MODULES): Add lsspd.mod.
23690 (lsspd_mod_SOURCES): New variable.
23691 (lsspd_mod_CFLAGS): Likewise.
23692 (lsspd_mod_LDFLAGS): Likewise.
23693 (pkglib_MODULES): Add halt.mod.
23694 (halt_mod_SOURCES): New variable.
23695 (halt_mod_CFLAGS): Likewise.
23696 (halt_mod_LDFLAGS): Likewise.
23697 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
23698 (serial_mod_SOURCES): Removed.
23699 (serial_mod_CFLAGS): Likewise.
23700 (serial_mod_LDFLAGS): Likewise.
23701 * disk/ata.c (check_device): New function.
23702 (grub_ata_device_initialize): Use check_device.
23703 (grub_ata_iterate): Recheck devices.
23704 (grub_ata_open): Likewise.
23705 (grub_atapi_iterate): Likewise.
23706 (grub_atapi_open): Likewise.
23707 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
23708 (GRUB_ATA_CH1_PORT1): Likewise.
23709 (GRUB_ATA_CH0_PORT2): Likewise.
23710 (GRUB_ATA_CH1_PORT2): Likewise.
23711 * include/grub/mips/loongson.h: New file.
23712 * include/grub/mips/yeeloong/ec.h: Likewise.
23713 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
23714 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
23715 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
23716 * include/grub/misc.h (grub_halt): Declare as noreturn.
23717 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
23718 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
23719 (UART_ENABLE_FIFO_TRIGGER1): New definition.
23720 (UART_ENABLE_DTRRTS): Likewise.
23721 (UART_ENABLE_MODEM): Removed.
23722 (UART_ENABLE_OUT2): New const.
23723 * include/grub/term.h (grub_term_register_input_active): New function.
23724 (grub_term_register_output_active): Likewise.
23725 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
23726 argument.
23727 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
23728 (init_pci): New function.
23729 (grub_machine_init): Execute platform init when firmware. Init serial.
23730 (grub_halt): Implement.
23731 (grub_exit): Likewise.
23732 (grub_reboot): Likewise.
23733 * term/serial.c (serial_hw_init): Update macros.
23734 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
23735 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
23736 (image_targets): New target mipsel-yeeloong-flash.
23737 (generate_image): Support IMAGE_YEELOONG_FLASH.
23738 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
23739 (grub_video_sm712_setup): Init card.
23740 (grub_video_sm712_set_palette): Removed.
23741 * video/sm712_init.c: New file.
23742
ff4a70d2
CW
237432010-06-30 Colin Watson <cjwatson@ubuntu.com>
23744
23745 * Makefile.in (install-local): Temporarily prepend $(builddir) to
23746 PATH when running help2man and then run it on the unadorned
23747 executable names, rather than passing $(builddir)/* paths to
23748 help2man. This avoids the build directory ending up in generated
23749 manual pages.
23750
1246efeb
CW
237512010-06-29 Colin Watson <cjwatson@ubuntu.com>
23752
23753 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
23754 to avoid accidents when debugging with 'sh -x'.
23755 * util/grub-mkrescue.in: Likewise.
23756 * util/grub.d/00_header.in: Likewise.
23757 * util/grub.d/10_hurd.in: Likewise.
23758 * util/grub.d/10_kfreebsd.in: Likewise.
23759 * util/grub.d/10_linux.in: Likewise.
23760 * util/grub.d/10_netbsd.in: Likewise.
23761 * util/grub.d/10_windows.in: Likewise.
23762 * util/grub.d/20_linux_xen.in: Likewise.
23763 * util/grub.d/30_os-prober.in: Likewise.
23764 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23765
1ba9b889
CW
237662010-06-29 Colin Watson <cjwatson@ubuntu.com>
23767
23768 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
23769 last character in the buffer.
23770 Reported by: Vladimir Serbinenko.
23771
dccaf99d
RM
237722010-06-29 Robert Millan <rmh@gnu.org>
23773
23774 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
23775 (Command-line and menu entry commands): Document `badram' command.
23776
d500ed12
RM
237772010-06-28 Robert Millan <rmh@gnu.org>
23778
23779 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
23780 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
23781 command using ${GRUB_BADRAM} as parameter.
23782
20bc84a6
CW
237832010-06-28 Colin Watson <cjwatson@ubuntu.com>
23784
23785 * docs/grub.texi (Device map): New section.
23786 (Themes): New section (stub).
23787 * Makefile.in (docs/grub.info): The info documentation now builds
23788 without errors. Make sure it stays that way.
23789
4045dee1
VS
237902010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23791
23792 Use normal parser for menu entries.
23793 Reported by: Thomas Frauendorfer
23794
23795 * include/grub/parser.h (grub_parser_execute): Don't export.
23796 * normal/menu.c (grub_menu_execute_entry_real): New function.
23797 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
23798
bca58c7b
CW
237992010-06-28 Colin Watson <cjwatson@ubuntu.com>
23800
23801 * docs/grub.texi (Embedded configuration): New section (replacing
23802 old "Preset Menu" stub).
23803 (Images): New section.
23804 (configfile): Note that any menu entries defined in `file' are shown
23805 immediately.
23806
dec53e63
JT
238072010-06-28 Josh Triplett <josh@joshtriplett.org>
23808
23809 * mmap/i386/pc/mmap_helper.S: Set CF on return.
23810
c06e40f7
CW
238112010-06-28 Colin Watson <cjwatson@ubuntu.com>
23812
23813 * util/grub-install.in: Add --debug-image= option.
23814
cb88052b
CW
238152010-06-28 Colin Watson <cjwatson@ubuntu.com>
23816
23817 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
23818 possible on Linux.
23819
23820 * util/deviceiter.c (check_device): Rename to ...
23821 (check_device_readable_unique): ... this. Update all callers.
23822 Maintain and check a list of which devices (by canonicalized name)
23823 have already been seen.
23824 (clear_seen_devices): New function.
23825 (compare_file_names) [__linux__]: New function.
23826 (grub_util_iterate_devices): Clear the list of seen devices on exit
23827 and (just in case) on entry.
23828 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
23829 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
23830 seen-devices list, superseded by general code in check_device.
23831
bbe34652
CW
238322010-06-28 Colin Watson <cjwatson@ubuntu.com>
23833
23834 * commands/cat.c (options): New variable.
23835 (grub_cmd_cat): Parse options. If the --dos option is given, print
23836 DOS-style "\r\n" line endings as simple newlines (Debian bug
23837 #586358).
23838 (GRUB_MOD_INIT): Use extcmd.
23839 (GRUB_MOD_FINI): Likewise.
23840 * docs/grub.texi (cat): Document --dos.
23841
412e09f3
VS
238422010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
23843
23844 XEN with Linux grub-mkconfig support.
23845
23846 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
23847 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
23848 GRUB_CMDLINE_XEN_DEFAULT.
23849 * util/grub.d/20_linux_xen.in: New file.
23850
53f3ef38 238512010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
23852
23853 Initialise VGA video on qemu ourselves.
23854
23855 * boot/i386/qemu/boot.S: Don't call 0xc000.
23856 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
23857 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
23858 (kernel_img_HEADERS): Add pci.h.
23859 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
23860 * configure.ac: Force unifont on qemu and yeeloong.
23861 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
23862 (grub_vga_palette_write): Use correct register.
23863 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
23864 Call grub_qemu_init_cirrus.
23865 * kern/i386/qemu/init.c: New file.
23866 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
23867
23868 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
23869
c75be4fb
PR
238702010-06-26 Pavel Roskin <proski@gnu.org>
23871
23872 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
23873 13.
23874
d8034603
CW
238752010-06-26 Colin Watson <cjwatson@ubuntu.com>
23876
23877 * docs/grub.texi (Simple configuration): Explain that
23878 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
23879 set to `true' to disable their respective recovery entries, not
23880 merely set.
23881
3fa06487
CW
238822010-06-26 Colin Watson <cjwatson@ubuntu.com>
23883
23884 Make the `source' command slightly faster.
23885
23886 * normal/main.c (grub_normal_execute): Don't re-read list files when
23887 nested.
23888
e9b29642
CW
238892010-06-23 Colin Watson <cjwatson@ubuntu.com>
23890
23891 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
23892 field position and mask size to red fields from mode_info, not
23893 green.
23894 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
23895 Remove redundant tag->common.framebuffer_type assignment.
23896 Reported by: Seth Goldberg.
23897
e726542f
CW
238982010-06-23 Colin Watson <cjwatson@ubuntu.com>
23899
23900 Sync up other versions of the Linux loader with Robert Millan's
23901 change of 2010-01-09, "Make loader output a bit more user-friendly".
23902
23903 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
23904 grub_dprintf().
23905 (grub_cmd_linux): Likewise.
23906 (grub_cmd_initrd): Likewise.
23907 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
23908 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
23909
d6e98a17
CW
239102010-06-21 Colin Watson <cjwatson@ubuntu.com>
23911
23912 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
23913 larger than MEMORY_MAP_SIZE.
23914
14d3f08e
BC
239152010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
23916
23917 Fix parallel build.
23918
23919 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
23920 dependency.
23921 * script/parser.y: #include grub_script.tab.h header.
23922
4f9613a3
VS
239232010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23924
23925 Support >3GiB and <16MiB RAM in i386-qemu.
23926
23927 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
23928 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
23929 (grub_lower_mem): Removed.
23930 (grub_upper_mem): Likewise.
23931 (mem_size): Made static.
23932 (above_4g): New variable.
23933 (grub_machine_mmap_init): Detect small mem_size and above_4g.
23934 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
23935 support.
23936
05e51879
VS
239372010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23938
23939 Cirrus 5446 and Bochs video cards support.
23940
23941 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
23942 video_bochs.mod
23943 (video_cirrus_mod_SOURCES): New variable.
23944 (video_cirrus_mod_CFLAGS): Likewise.
23945 (video_cirrus_mod_LDFLAGS): Likewise.
23946 (video_bochs_mod_SOURCES): Likewise.
23947 (video_bochs_mod_CFLAGS): Likewise.
23948 (video_bochs_mod_LDFLAGS): Likewise.
23949 * include/grub/vga.h: New file.
23950 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
23951 (grub_video_fb_set_page_t): New type.
23952 (grub_video_fb_setup): New prototype.
23953 (grub_video_fb_swap_buffers): Likewise.
23954 (grub_video_fb_get_info_and_fini): Likewise.
23955 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
23956 (CRTC_DATA_PORT): Likewise.
23957 (CRTC_CURSOR): Likewise.
23958 (CRTC_CURSOR_ADDR_HIGH): Likewise.
23959 (CRTC_CURSOR_ADDR_LOW): Likewise.
23960 (CRTC_CURSOR_DISABLE): Likewise.
23961 (update_cursor): Use grub_vga_cr_write.
23962 (grub_vga_text_setcursor): Likewise.
23963 * video/bochs.c: New file.
23964 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
23965 (palette): Likewise.
23966 (palette_size): Likewise.
23967 (framebuffer): New variable.
23968 (grub_video_fb_init): Use 'framebuffer'.
23969 (grub_video_fb_fini): Likewise.
23970 (grub_video_fb_get_info): Likewise.
23971 (grub_video_fb_get_palette): Likewise.
23972 (grub_video_fb_set_palette): Likewise.
23973 (grub_video_fb_set_viewport): Likewise.
23974 (grub_video_fb_get_viewport): Likewise.
23975 (grub_video_fb_map_color): Likewise.
23976 (grub_video_fb_map_rgb): Likewise.
23977 (grub_video_fb_map_rgba): Likewise.
23978 (grub_video_fb_unmap_color): Likewise.
23979 (grub_video_fb_unmap_color_int): Likewise.
23980 (grub_video_fb_fill_rect): Likewise.
23981 (grub_video_fb_blit_bitmap): Likewise.
23982 (grub_video_fb_blit_render_target): Likewise.
23983 (grub_video_fb_scroll): Likewise.
23984 (grub_video_fb_create_render_target): Likewise.
23985 (grub_video_fb_doublebuf_blit_init): Likewise.
23986 (grub_video_fb_set_active_render_target): Handle doublebuffering.
23987 (doublebuf_pageflipping_update_screen): New function.
23988 (doublebuf_pageflipping_init): Likewise.
23989 (grub_video_fb_setup): Likewise.
23990 (grub_video_fb_swap_buffers): Likewise.
23991 (grub_video_fb_get_info_and_fini): Likewise.
23992 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
23993 All users updated.
23994 (doublebuf_pageflipping_commit): Restructured into ...
23995 (doublebuf_pageflipping_set_page): ... this.
23996 (doublebuf_pageflipping_update_screen): Removed.
23997 (doublebuf_pageflipping_init): Likewise.
23998 (double_buffering_init): Likewise.
23999 (grub_video_vbe_setup): Use grub_video_fb_setup.
24000 (grub_video_vbe_swap_buffers): Removed.
24001 (grub_video_vbe_set_active_render_target): Likewise.
24002 (grub_video_vbe_get_active_render_target): Likewise.
24003 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
24004 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
24005 grub_video_fb_set_active_render_target and
24006 grub_video_fb_get_active_render_target.
24007 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
24008 (SEQUENCER_DATA_PORT): Likewise.
24009 (MAP_MASK_REGISTER): Likewise.
24010 (CRTC_ADDR_PORT): Likewise.
24011 (CRTC_DATA_PORT): Likewise.
24012 (START_ADDR_HIGH_REGISTER): Likewise.
24013 (START_ADDR_LOW_REGISTER): Likewise.
24014 (GRAPHICS_ADDR_PORT): Likewise.
24015 (GRAPHICS_DATA_PORT): Likewise.
24016 (READ_MAP_REGISTER): Likewise.
24017 (INPUT_STATUS1_REGISTER): Likewise.
24018 (INPUT_STATUS1_VERTR_BIT): Likewise.
24019 (get_map_mask): Use grub_vga_sr_read.
24020 (set_map_mask): Use grub_vga_sr_write.
24021 (set_read_map): Use grub_vga_gr_write.
24022 (set_start_address): Use grub_vga_cr_write.
24023 * video/sm712.c (framebuffer): Remove leftover fields.
24024
4321c64a
CW
240252010-06-20 Colin Watson <cjwatson@ubuntu.com>
24026
24027 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
24028 setting GRUB_VIDEO_BACKEND. Make it available as a user override
24029 instead. Replace the gfxterm backend check with a check that
24030 ${GRUB_PREFIX}/video.lst is non-empty.
24031 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
24032 again.
24033 (load_video): New generated function. Call it before loading
24034 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
24035 * util/grub.d/10_linux.in (linux_entry): Call load_video.
24036 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
24037 * docs/grub.texi (Simple configuration): Document
24038 GRUB_VIDEO_BACKEND.
24039
240402010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24041
24042 Use video functions in linux and xnu loaders.
24043
24044 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
24045 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
24046 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
24047 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
24048 loader/i386/pc/linux.c.
24049 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
24050 (find_line_len): Removed.
24051 (find_framebuf): Likewise.
24052 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
24053 * loader/i386/efi/xnu.c: Removed.
24054 * loader/i386/pc/xnu.c: Moved from here...
24055 * loader/i386/xnu.c: ...here.
24056
24057 Enable priorities in video drivers.
24058
24059 * include/grub/video.h (grub_video_adapter_prio_t): New type.
24060 (grub_video_adapter): New field prio.
24061 (grub_video_register): Respect prio when inserting.
24062 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
24063 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
24064 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
24065 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
24066 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
24067 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
24068 * video/sm712.c (grub_video_sm712_adapter): Likewise.
24069
24070 Fix SDL driver ID.
24071
24072 * include/grub/video.h (grub_video_driver_id_t): New value
24073 GRUB_VIDEO_DRIVER_SDL.
24074 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
24075
7d24e434
CW
240762010-06-17 Colin Watson <cjwatson@ubuntu.com>
24077
24078 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
24079 argument to printf.
24080 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24081
c88a83f6
CW
240822010-06-17 Colin Watson <cjwatson@ubuntu.com>
24083
24084 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
24085 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24086
094dfb69
CW
240872010-06-17 Colin Watson <cjwatson@ubuntu.com>
24088
24089 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
24090 directly, and recommend grub-install instead.
24091 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24092
2164da6b
CW
240932010-06-17 Colin Watson <cjwatson@ubuntu.com>
24094
24095 Fix i386-pc prefix handling with nested partitions (Debian bug
24096 #585068). Note that the case where the core image is booted using
24097 multiboot and relocated from its original location still requires
24098 more work.
24099
24100 * kern/i386/pc/init.c (make_install_device): If the prefix starts
24101 with "(,", fill the boot drive in between those two characters, but
24102 expect that a full partition specification including partition map
24103 names will follow.
24104 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
24105 specified, write a prefix without the drive name but including a
24106 full partition specification.
24107
044e2e60
CW
241082010-06-16 Colin Watson <cjwatson@ubuntu.com>
24109
24110 * util/grub-mkconfig.in: Ignore non-option arguments, for
24111 compatibility with older versions (before 2010-06-12) which did the
24112 same. In particular, this makes it easier to ship an update-grub
24113 wrapper which is compatible with that used with GRUB Legacy (Debian
24114 bug #586056).
24115
5591324f
GS
241162010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24117
24118 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
24119 for manual page generation.
24120
662e24d5
GS
241212010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24122
24123 * po/POTFILES: Remove leftover commands/handler.c.
24124
8d70754e
CW
241252010-06-14 Colin Watson <cjwatson@ubuntu.com>
24126
24127 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
24128 left this script non-functional.
24129
41160e2e
CW
241302010-06-14 Colin Watson <cjwatson@ubuntu.com>
24131
24132 * docs/man/grub-emu.h2m: New file.
24133
b5309cc1
CW
241342010-06-13 Colin Watson <cjwatson@ubuntu.com>
24135
24136 * docs/grub.texi (Commands): Document reduced command set in rescue
24137 mode.
24138 (cpuid): New section.
24139
fcb2d090
GS
241402010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
24141
24142 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
24143 new partition naming style.
24144 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
24145
96e5c556
BC
241462010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
24147
24148 Add "-o grub.iso" like cmdline options support.
24149
24150 * util/grub-install.in: Improve cmdline option parsing.
24151 * util/grub-mkconfig.in: Likewise.
24152 * util/grub-mkrescue.in: Likewise.
24153 * util/grub-reboot.in: Likewise.
24154 * util/grub-set-default.in: Likewise.
24155 * util/i386/efi/grub-install.in: Likewise.
24156 * util/ieee1275/grub-install.in: Likewise.
24157 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24158
c16be99b
CW
241592010-06-12 Colin Watson <cjwatson@ubuntu.com>
24160
24161 * .bzrignore: Ignore 41_custom.
24162
ce08a9fb
TS
241632010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24164
24165 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
24166
7beac90c
CW
241672010-06-12 Colin Watson <cjwatson@ubuntu.com>
24168
24169 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
24170 prototype declarations.
24171
24172 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
24173 generating fs, partmap, and video lists.
24174 * include/grub/fs.h (grub_fs_register): Omit prototype if
24175 GRUB_LST_GENERATOR is defined.
24176 * include/grub/partition.h (grub_partition_map_register): Likewise.
24177 * include/grub/video.h (grub_video_register): Likewise.
24178
1c8f0f8d
JM
241792010-06-12 Javier Martín <lordhabbit@gmail.com>
24180
24181 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
24182
a6085973
TS
241832010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24184
24185 * util/grub-mkrescue.in: Support --xorriso argument.
24186
25c56d29
VS
241872010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24188
24189 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
24190 Suggested by: Thomas Schmitt.
24191
e03e4b24
VS
241922010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24193
24194 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
24195 Suggested by: Thomas Schmitt.
24196
57711df6
VS
241972010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24198
24199 custom.cfg support.
24200
24201 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
24202 * util/grub.d/41_custom.in: New file.
24203
ee62c427
CW
242042010-06-12 Colin Watson <cjwatson@ubuntu.com>
24205
24206 * util/grub-mkrescue.in (make_image): Remove sh module, which has
24207 been merged back into normal.
24208
283af07a
CW
242092010-06-11 Colin Watson <cjwatson@ubuntu.com>
24210
24211 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
24212 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
24213
56a0d956
CW
242142010-06-11 Colin Watson <cjwatson@ubuntu.com>
24215
24216 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
24217 when generating manual pages.
24218 * docs/man/grub-bin2h.h2m: New file.
24219 * docs/man/grub-editenv.h2m: New file.
24220 * docs/man/grub-fstest.h2m: New file.
24221 * docs/man/grub-install.h2m: New file.
24222 * docs/man/grub-macho2img.h2m: New file.
24223 * docs/man/grub-mkconfig.h2m: New file.
24224 * docs/man/grub-mkdevicemap.h2m: New file.
24225 * docs/man/grub-mkfont.h2m: New file.
24226 * docs/man/grub-mkimage.h2m: New file.
24227 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
24228 * docs/man/grub-mkrelpath.h2m: New file.
24229 * docs/man/grub-mkrescue.h2m: New file.
24230 * docs/man/grub-ofpathname.h2m: New file.
24231 * docs/man/grub-pe2elf.h2m: New file.
24232 * docs/man/grub-probe.h2m: New file.
24233 * docs/man/grub-reboot.h2m: New file.
24234 * docs/man/grub-script-check.h2m: New file.
24235 * docs/man/grub-set-default.h2m: New file.
24236 * docs/man/grub-setup.h2m: New file.
24237
3a37e322
VS
242382010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
24239
24240 Use FOR_* macros instead of *_iterate whenever possible.
24241
24242 * commands/handler.c: Removed.
24243 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
24244 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
24245 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24246 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
24247 (grub_probe_SOURCES): Remove kern/parser.c.
24248 (util/grub-script-check.c_DEPENDENCIES): Removed.
24249 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
24250 and grub_script_check_init.c.
24251 (grub_script_check_init.lst): Removed.
24252 (grub_script_check_init.h): Likewise.
24253 (grub_script_check_init.c): Likewise.
24254 (pkglib_MODULES): Remove handler.mod and sh.mod.
24255 (handler_mod_SOURCES): Removed.
24256 (handler_mod_CFLAGS): Likewise.
24257 (handler_mod_LDFLAGS): Likewise.
24258 (normal_mod_SOURCES): Remove normal/handler.c.
24259 Add script/main.c, script/script.c, script/execute.c,
24260 script/function.c, script/lexer.c, grub_script.tab.c
24261 and grub_script.yy.c.
24262 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24263 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24264 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
24265 (grub_setup_SOURCES): Remove kern/parser.c.
24266 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24267 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
24268 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
24269 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24270 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24271 (grub_setup_SOURCES): Remove kern/parser.c.
24272 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24273 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
24274 * include/grub/command.h (grub_command_iterate): Removed.
24275 (FOR_COMMANDS): New macro.
24276 * include/grub/dl.h (grub_dl): New member next.
24277 (grub_dl_iterate): Removed.
24278 (grub_dl_head): New variable declaration.
24279 (FOR_DL_MODULES): New macro.
24280 * include/grub/fs.h: Include list.h.
24281 (grub_fs): Make next first element.
24282 (grub_fs_list): New variable declaration.
24283 (grub_fs_register): Make inline.
24284 (grub_fs_unregister): Likewise.
24285 (grub_fs_iterate): Removed.
24286 (FOR_FILESYSTEMS): New macro.
24287 * include/grub/handler.h: Removed.
24288 * include/grub/list.h (grub_list_hook_t): Removed.
24289 (grub_list_test_t): Likewise.
24290 (grub_list_pop): Likewise.
24291 (grub_list_iterate): Likewise.
24292 (grub_list_insert): Likewise.
24293 (FOR_LIST_ELEMENTS): New macro.
24294 * include/grub/parser.h (grub_parser_class): Removed.
24295 (grub_parser_register): Likewise.
24296 (grub_parser_unregister): Likewise.
24297 (grub_parser_get_current): Likewise.
24298 (grub_parser_set_current): Likewise.
24299 (grub_register_rescue_parser): Likewise.
24300 (grub_rescue_parse_line): New function.
24301 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
24302 * include/grub/script_sh.h (grub_script_function_list): New variable
24303 declaration.
24304 (FOR_SCRIPT_FUNCTIONS): New macro.
24305 (grub_script_function_iterate): Removed.
24306 (grub_normal_parse_line): New prototype.
24307 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
24308 (FOR_DISABLED_TERM_INPUTS): Likewise.
24309 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24310 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24311 * include/grub/video.h (grub_video_adapter): Move 'next' to first
24312 element.
24313 (grub_video_register): Inline.
24314 (grub_video_unregister): Likewise.
24315 (grub_video_adapter_list): New variable declaration.
24316 (grub_video_iterate): Removed.
24317 (FOR_VIDEO_ADAPTERS): New macro.
24318 * kern/dl.c (grub_dl_list): Removed. All users updated.
24319 (grub_dl_iterate): Removed.
24320 * kern/fs.c (grub_fs_list): Make global.
24321 (grub_fs_register): Removed.
24322 (grub_fs_unregister): Likewise.
24323 (grub_fs_iterate): Likewise.
24324 * kern/handler.c: Removed.
24325 * kern/list.c (grub_list_pop): Removed.
24326 (grub_list_iterate): Likewise.
24327 (grub_list_insert): Likewise.
24328 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
24329 (grub_prio_list_insert): Don't use grub_list_insert.
24330 * kern/main.c (grub_register_rescue_parser): Don't call
24331 grub_register_rescue_parser.
24332 * kern/parser.c (grub_parser_class): Removed.
24333 (grub_parser_execute): Use grub_rescue_parse_line.
24334 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
24335 (grub_rescue_parser): Removed.
24336 (grub_register_rescue_parser): Likewise.
24337 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
24338 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
24339 (grub_auth_check_authentication): Likewise.
24340 * normal/completion.c (iterate_command): Removed.
24341 (grub_normal_do_completion): Use FOR_COMMANDS.
24342 * normal/handler.c: Removed.
24343 * normal/main.c (read_config_file): Remove parser changing.
24344 (grub_normal_execute): Don't call read_handler_list.
24345 (grub_normal_read_line_real): Statically allocate prompt.
24346 (grub_cmdline_run): Use grub_normal_parse_line.
24347 (GRUB_MOD_FINI): Don't call free_handler_list.
24348 * normal/menu_entry.c (run): Likewise.
24349 * script/function.c (grub_script_function_list): Make global.
24350 (grub_script_function_iterate): Removed.
24351 * script/main.c (grub_normal_parse_line): Make global.
24352 (grub_sh_parser): Removed.
24353 (GRUB_MOD_INIT): Likewise.
24354 (GRUB_MOD_FINI): Likewise.
24355 * tests/lib/functional_test.c (grub_functional_test): Use
24356 FOR_LIST_ELEMENTS.
24357 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
24358 (grub_test_run): Use FOR_LIST_ELEMENTS.
24359 * tests/lib/unit_test.c (main): Likewise.
24360 * util/deviceiter.c (grub_util_iterate_devices): Don't use
24361 grub_list_pop.
24362 * util/grub-fstest.c (grub_term_input_class): Removed.
24363 (grub_term_output_class): Likewise.
24364 * util/grub-probe.c: Likewise.
24365 * util/i386/pc/grub-setup.c: Likewise.
24366 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24367 * util/grub-script-check.c (main): Don't call grub_init_all and
24368 grub_fini_all.
24369 * video/video.c (grub_video_adapter_list): Make global.
24370 (grub_video_register): Removed.
24371 (grub_video_unregister): Likewise.
24372 (grub_video_iterate): Likewise.
24373
6289c3a7
VS
243742010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
24375
24376 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
24377 reported by Henrique Ferreiro.
24378
91460247
RM
243792010-06-09 Robert Millan <rmh@gnu.org>
24380
24381 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
24382 ones, when both are available.
24383
0ea7c4f9
GS
243842010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24385
24386 Make --version uniform and avoid hard-coded program name.
24387
24388 * util/grub-mkimage.c (main): Use `program_name' instead of
24389 hard-coded string.
24390 * util/i386/pc/grub-setup.c (main): Likewise.
24391 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
24392 * util/grub-install.in: Save the basename of $0 in $self, and use the
24393 latter in informational messages. Use the same format for --version
24394 as the binary programs.
24395 * util/grub-mkconfig.in: Likewise.
24396 * util/grub-mkrescue.in: Likewise.
24397 * util/grub-reboot.in: Likewise.
24398 * util/grub-set-default.in: Likewise.
24399 * util/i386/efi/grub-install.in: Likewise.
24400 * util/ieee1275/grub-install.in: Likewise.
24401 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24402
e8a6f3b6
GS
244032010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24404
24405 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
24406 embedding area. Use <= instead of == when checking for non-emptiness.
24407
f4d095d7
GS
244082010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24409
24410 * configure.ac: Add `.' to the directories searched for unifont.
24411
50e532ca
CW
244122010-06-08 Colin Watson <cjwatson@ubuntu.com>
24413
24414 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
24415 grub_script.yy.h.
24416
d39f3dec
CW
244172010-06-08 Colin Watson <cjwatson@ubuntu.com>
24418
24419 * docs/grub.texi (History): Expand to cover GRUB 2.
24420 (Serial terminal): Refer to `terminal_input' and `terminal_output'
24421 commands, not `terminal'.
24422 (serial): Likewise.
24423 (terminal_input): New section.
24424 (terminal_output): New section.
24425 (uppermem): New section (stub).
24426 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
24427
6ef0ddb4
CW
244282010-06-08 Colin Watson <cjwatson@ubuntu.com>
24429
24430 * docs/grub.texi (Security): Menu entries are unrestricted by
24431 default, not restricted to superusers as I had previously thought.
24432 Reword to account for this.
24433
e0f4c438
CW
244342010-06-07 Colin Watson <cjwatson@ubuntu.com>
24435
24436 * kern/emu/misc.c (device_mapper_null_log): New function.
24437 (grub_device_mapper_supported): New function.
24438 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
24439 prototype.
24440 * kern/emu/hostdisk.c (find_partition_start): Check whether
24441 device-mapper is supported before trying to use it.
24442 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
24443
da908200
CW
244442010-06-07 Colin Watson <cjwatson@ubuntu.com>
24445
24446 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
24447 (File name syntax): Likewise.
24448 (help): --all is no longer supported in GRUB 2. Be more precise
24449 about pattern matching.
24450
fb55c3ac
CW
244512010-06-07 Colin Watson <cjwatson@ubuntu.com>
24452
24453 * normal/completion.c (grub_normal_do_completion): When completing
24454 arguments to "set" and the current word contains an equals sign,
24455 skip to after the equals sign before starting completion.
24456
258c2573
CW
244572010-06-07 Colin Watson <cjwatson@ubuntu.com>
24458
24459 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
24460
ee75515e
CW
244612010-06-07 Colin Watson <cjwatson@ubuntu.com>
24462
24463 * docs/grub.texi (Network): New section.
24464 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
24465 `(nd)' as in GRUB Legacy.
24466 (pxe_unload): New section.
24467
a6a700aa
CW
244682010-06-07 Colin Watson <cjwatson@ubuntu.com>
24469
24470 * docs/grub.texi (Troubleshooting): `echo' is not usually available
24471 in the rescue shell, so recommend using `set' instead. Thanks,
24472 Jordan Uggla.
24473
4003dd38
CW
244742010-06-07 Colin Watson <cjwatson@ubuntu.com>
24475
24476 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
24477 (password): New section.
24478 (password_pbkdf2): New section.
24479 (search): New section.
24480 (Security): New section.
24481 (Troubleshooting): New section, currently very incomplete.
24482 (Invoking grub-mkpasswd-pbkdf2): New section.
24483 (Internals): New section, currently very incomplete.
24484
e1cbcc40
CW
244852010-06-07 Colin Watson <cjwatson@ubuntu.com>
24486
24487 * util/grub.d/00_header.in: Add some more quoting (of
24488 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
24489 work again.
24490 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
24491
db8fa1ad
CW
244922010-06-07 Colin Watson <cjwatson@ubuntu.com>
24493
24494 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
24495 to `count', fixing variable shadowing that broke the -c option.
24496
244972010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
24498
24499 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
24500 in case they contain spaces.
24501
f28a9212
CW
245022010-06-04 Colin Watson <cjwatson@ubuntu.com>
24503
24504 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
24505 "part_" to partmap module names, in line with grub-install.
24506 Reported by: Jindřich Makovička (Debian bug #584426).
24507
9cdfe32f
CW
245082010-06-04 Colin Watson <cjwatson@ubuntu.com>
24509
24510 * util/grub-mkimage.c: Make target-related error messages slightly
24511 more helpful; -O talks about "format". Explicitly point to the use
24512 of -O if no target is specified.
24513 Reported by: Didier Raboud (Debian bug #584415).
24514
795b593a
CW
245152010-06-03 Colin Watson <cjwatson@ubuntu.com>
24516
24517 * INSTALL: Document several build requirements for optional features
24518 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
24519
9d9b5833
GS
245202010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
24521
24522 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
24523 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
24524 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
24525
0819fec8
CW
245262010-06-02 Colin Watson <cjwatson@ubuntu.com>
24527
24528 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
24529 Thanks to Jordan Uggla for spotting this.
24530
49396b4f
VS
245312010-06-02 Aleš Nesrsta <starous@volny.cz>
24532
24533 Finally make USB usable.
24534
24535 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
24536 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
24537 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
24538 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
24539 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
24540 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
24541 (GRUB_OHCI_FSMPS): Likewise.
24542 (GRUB_OHCI_PERIODIC_START): Likewise.
24543 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
24544 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
24545 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
24546 (GRUB_OHCI_SET_PORT_RESET): Likewise.
24547 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
24548 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
24549 (grub_ohci_transaction): Likewise.
24550 (grub_ohci_transfer): Improve condition detection algorithms.
24551 Handle toggle property. Program the transactions correctly.
24552 Improve error handling. Various important fixups.
24553 (grub_ohci_portstatus): Put register writes in right order.
24554 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
24555 (grub_uhci_transfer): Don't show "failed" message on success.
24556 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
24557 array.
24558 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
24559 determine its size.
24560 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
24561 before initialization is completed. Use IN direction for empty
24562 transfers. Use last_trans and compute toggle.
24563 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
24564 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
24565 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
24566 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
24567 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
24568 (grub_usb_device): Increase toggle to 256.
24569 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
24570 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
24571 GRUB_USBMS_SUBCLASS_SFF8070.
24572 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
24573 (grub_scsi_inquiry): New member page and alloc_length.
24574 (grub_scsi_request_sense): New structure.
24575 (grub_scsi_request_sense_data): Likewise.
24576 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
24577 control.
24578 * disk/scsi.c (grub_scsi_request_sense): New function.
24579 (grub_scsi_test_unit_ready): Likewise.
24580 (grub_scsi_inquiry): Fill new fields.
24581 (grub_scsi_read_capacity): Likewise.
24582 (grub_scsi_read10): Add request sense at the end.
24583 (grub_scsi_read12): Likewise.
24584 (grub_scsi_write10): Likewise.
24585 (grub_scsi_write12): Likewise.
24586 (grub_scsi_open): Add Test Unit Ready.
24587 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
24588 Support additional subclasses. Con't clear halt yet. Activate the
24589 proper config. Calculate LUNs correctly.
24590 (grub_usbms_transfer): Various important fixups.
24591
245922010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24593
24594 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
24595 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
24596 (grub_ohci_fini_hw): New function.
24597 (grub_ohci_restore_hw): Likewise.
24598 (GRUB_MOD_INIT(ohci)): Register preboot hook.
24599 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
24600 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
24601
246022010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24603
24604 Dedicated DMA allocations.
24605
24606 * bus/pci.c (grub_memalign_dma32): New function
24607 (grub_dma_free): Likewise.
24608 (grub_dma_get_virt): Likewise.
24609 (grub_dma_get_phys): Likewise.
24610 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
24611 (grub_ohci_pci_iter): Use dma32_alloc.
24612 (grub_ohci_transfer): Likewise.
24613 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24614 (grub_usb_bulk_readwrite): Likewise.
24615 * include/grub/pci.h: Add declarations.
24616
246172010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
24618
24619 CS5536 support.
24620
24621 * bus/cs5536.c: New file.
24622 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
24623 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
24624 (cs5536_mod_SOURCES): New variable.
24625 (cs5536_mod_CFLAGS): Likewise.
24626 (cs5536_mod_LDFLAGS): Likewise.
24627 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
24628 machine/pci.h.
24629 (kernel_img_SOURCES): Add bus/cs5536.c.
24630 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
24631 usb_keyboard.mod.
24632 (usb_mod_SOURCES): New variable.
24633 (usb_mod_CFLAGS): New variable.
24634 (usb_mod_LDFLAGS): New variable.
24635 (usbtest_mod_SOURCES): New variable.
24636 (usbtest_mod_CFLAGS): New variable.
24637 (usbtest_mod_LDFLAGS): New variable.
24638 (ohci_mod_SOURCES): New variable.
24639 (ohci_mod_CFLAGS): New variable.
24640 (ohci_mod_LDFLAGS): New variable.
24641 (usbms_mod_SOURCES): New variable.
24642 (usbms_mod_CFLAGS): New variable.
24643 (usbms_mod_LDFLAGS): New variable.
24644 (usb_keyboard_mod_SOURCES): New variable.
24645 (usb_keyboard_mod_CFLAGS): New variable.
24646 (usb_keyboard_mod_LDFLAGS): New variable.
24647 * include/grub/smbus.h: New file.
24648 * include/grub/cs5536.h: New file.
24649
0b35b2a9
CW
246502010-06-02 Colin Watson <cjwatson@ubuntu.com>
24651
24652 * util/grub.d/00_header.in: Add safety check to make sure that
24653 ${locale_dir} exists before trying to probe it.
24654
ca0afd5b
CW
246552010-06-02 Colin Watson <cjwatson@ubuntu.com>
24656
24657 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
24658 per the GNU Coding Standards; this is now too obscure to be worth
24659 documenting.
24660 (QNX): Likewise.
24661 (chainloader): Remove cross-reference to `SCO UnixWare'.
24662
1c41aa78
CW
246632010-06-02 Colin Watson <cjwatson@ubuntu.com>
24664
24665 * docs/grub.texi (Chain-loading): New section.
24666 (DOS/Windows): New section, borrowed from GRUB Legacy with details
24667 adjusted for GRUB 2.
24668 (SCO UnixWare): Likewise.
24669 (QNX): Likewise.
24670 (chainloader): Add reference to `Block list syntax'.
24671 (drivemap): New section.
24672 (parttool): New section.
24673
bb8ea0f5
CW
246742010-06-02 Colin Watson <cjwatson@ubuntu.com>
24675
24676 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
24677 the grub shell'.
24678 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
24679 (Installing GRUB using grub-install): Remove reference to the grub
24680 shell; mention `grub-mkimage' and `grub-setup' instead.
24681 (Invoking grub-install): Likewise.
24682 (Interface): Add reference to `Menu entry editor'.
24683 (serial): Remove `--device' option.
24684
288dd6ed
CW
246852010-06-02 Colin Watson <cjwatson@ubuntu.com>
24686
24687 * docs/grub.texi (Configuration): New section, documenting
24688 configuration file generation using grub-mkconfig. I've left a slot
24689 for documenting the full shell scripting format but have not yet
24690 started on writing that up.
24691 (Invoking grub-mkconfig): New section.
24692
34c9f0e9
CW
246932010-06-02 Colin Watson <cjwatson@ubuntu.com>
24694
24695 * docs/grub.texi (direntry): Remove grub-terminfo reference.
24696 (GNU GRUB manual): Likewise.
24697 (General commands): Update description of `terminfo' for GRUB 2.
24698
9121567e
CW
246992010-06-02 Colin Watson <cjwatson@ubuntu.com>
24700
24701 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
24702 (GRUB_MOD_INIT): Fix capitalisation.
24703 * docs/grub.texi (Command-line and menu entry commands): Document
24704 gettext and gptsync commands.
24705
ab631611
CW
247062010-06-02 Colin Watson <cjwatson@ubuntu.com>
24707
24708 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
24709 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
24710
bde4a9ac
CW
247112010-06-01 Colin Watson <cjwatson@ubuntu.com>
24712
24713 Add btrfs probing support, currently only in the single-device case.
24714
24715 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
24716 function.
24717 (grub_guess_root_device): Call find_root_device_from_mountinfo
24718 before looking in /dev.
24719
b1d17e10
VS
247202010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24721
24722 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
24723 GRUB_DISK_SIZE_UNKNOWN.
24724 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
24725
dfbfe004
JS
247262010-05-31 Jiro SEKIBA <jir@unicus.jp>
24727
24728 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
24729 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
24730 corrupted or not synced properly.
24731
c2ffc8e9
VS
247322010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24733
24734 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
24735 Reported by: Seth Goldberg.
24736
56293166
VS
247372010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24738
24739 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
24740 addition of dest.
24741 Reported by: Seth Goldberg.
24742
7620e7de
VS
247432010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24744
24745 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
24746 Reported by: Seth Goldberg.
24747
c837af3f
VS
247482010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
24749
24750 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
24751 64-bit address as signed on MIPS.
24752
c7c75cf4
CW
247532010-05-28 Colin Watson <cjwatson@ubuntu.com>
24754
24755 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
24756 to the empty string.
24757
fa4b8490
BC
247582010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
24759
24760 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
24761
24762 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
24763 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
24764 * kern/misc.c (__enable_execute_stack): Disable on
24765 GRUB_MACHINE_EMU.
24766
a33075b9
CW
247672010-05-28 Colin Watson <cjwatson@ubuntu.com>
24768
24769 Make grub-probe work with symbolic links under /dev/mapper as well
24770 as with real block devices. The Linux world seems to be (at best)
24771 in transition here, and GRUB shouldn't get caught in the middle.
24772
24773 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
24774 /dev/mapper.
24775
d8708134
CW
247762010-05-27 Colin Watson <cjwatson@ubuntu.com>
24777
24778 * util/grub-script-check.c (main): Ensure defined behaviour on empty
24779 input files (in which case exit zero).
24780
db2102a0
CW
247812010-05-27 Colin Watson <cjwatson@ubuntu.com>
24782
24783 * kern/emu/misc.c (canonicalize_file_name): realpath can still
24784 return NULL for various reasons even if it has a maximum-length
24785 buffer: for example, there might be a symlink loop, or the path
24786 might exceed PATH_MAX. If this happens, return NULL.
24787
5fdba519
RM
247882010-05-27 Robert Millan <rmh@gnu.org>
24789
24790 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
24791 partmap module to handle cross-partmap setups.
24792 Reported by Orestes Mas. Gràcies!
24793
d1d368e4
CW
247942010-05-27 Colin Watson <cjwatson@ubuntu.com>
24795
24796 * util/grub-mkrescue.in: Initialise override_dir rather than
24797 assuming that it's unset or empty in the environment.
24798
95ac3c73
GS
247992010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
24800
24801 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
24802 variable index into p_index to suppress a warning with -Wshadow.
24803
7d8c0213
BC
248042010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
24805
24806 * INSTALL: Added flex >= 2.5.35 requirement.
24807
db4d5813
VS
248082010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24809
24810 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
24811
f24f4300
VS
248122010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24813
24814 cmostest support.
24815
24816 * commands/i386/cmostest.c: New file.
24817 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
24818 (cmostest_mod_SOURCES): New variable.
24819 (cmostest_mod_CFLAGS): Likewise.
24820 (cmostest_mod_LDFLAGS): Likewise.
24821 * conf/i386-pc.rmk: Likewise.
24822 * docs/grub.texi (Vendor power-on keys): New section.
24823 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
24824 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
24825 and GRUB_BUTTON_CMOS_ADDRESS.
24826 * util/grub.d/00_header.in: Handle powering-on by separate button.
24827
ad603f61
VS
248282010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24829
24830 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
24831 Removed drawing_scrollbar argument. All users updated
24832 Fixes #29792.
24833 Reported by Jo Shields
24834
3ecb080a
VS
248352010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24836
24837 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
24838 buffer since gfxterm handles double repaint.
24839
5f2316c1
VS
248402010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
24841
24842 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
24843 * term/gfxterm.c (real_scroll): Likewise.
24844
9a25f885
VS
248452010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24846
24847 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
24848 before calling BIOS.
24849
39fbb79a
VS
248502010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24851
24852 * include/grub/i18n.h: Always enable grub_gettext.
24853
228cfa97
VS
248542010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
24855
24856 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
24857 partition naming style.
24858
21717c8f
CW
248592010-05-21 Colin Watson <cjwatson@ubuntu.com>
24860
24861 * util/grub-mkconfig.in: Fix handling of -o so that it works when
24862 not the first option.
24863
c0f48e65
CW
248642010-05-20 Colin Watson <cjwatson@ubuntu.com>
24865
24866 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
24867
96779aec
CW
248682010-05-20 Colin Watson <cjwatson@ubuntu.com>
24869
24870 * util/misc.c: Move inclusion of <limits.h> to ...
24871 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
24872
fa9d256e
GS
248732010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
24874
24875 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
24876 Fix merge error in NetBSD code.
24877 (find_partition_start) [__NetBSD__]: Likewise.
24878
123b7a85
BC
248792010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
24880
24881 Fix grub-mkrescue usage unit testing.
24882
24883 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
24884
74276c0d
CF
248852010-05-18 Christian Franke <franke@computer.org>
24886
24887 * util/grub.d/10_windows.in: Use path names instead of
24888 drive letters to prevent warning from Cygwin 1.7.
24889 Add drivemap command to menuentry if needed.
24890
c4f7b523
ST
248912010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
24892
24893 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
24894 gnumach and gnumach.gz.
24895
95b97950
VS
248962010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24897
24898 * include/grub/i18n.h (gettext): Inline instead of using #define.
24899 (grub_gettext): Likewise.
24900 (_): Likewise.
24901
01b8d2d7
VS
249022010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24903
24904 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
24905 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
24906 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
24907 (main): Add a slash after pkglibdirroot.
24908
654e1d1e
VS
249092010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24910
24911 * util/grub-install.in: Add missing "in" keyword.
24912
26966aeb
VS
249132010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24914
24915 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
24916 Reported by: Seth Goldberg.
24917
75006747
VS
249182010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
24919
24920 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
24921
74cbf5bd
CW
249222010-05-18 Colin Watson <cjwatson@ubuntu.com>
24923
24924 * configure.ac: Check for Linux device-mapper support.
24925
24926 * util/hostdisk.c (device_is_mapped): New function.
24927 (find_partition_start): New function, partly broken out from
24928 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
24929 device-mapper support added.
24930 (linux_find_partition): Use find_partition_start.
24931 (convert_system_partition_to_system_disk): Add `st' argument.
24932 Support Linux /dev/mapper/* devices if device-mapper support is
24933 available; only DM-RAID devices are understood at present.
24934 (find_system_device): Add `st' argument. Pass it to
24935 convert_system_partition_to_system_disk.
24936 (grub_util_biosdisk_get_grub_dev): Pass stat result to
24937 find_system_device and convert_system_partition_to_system_disk. Use
24938 find_partition_start.
24939
24940 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
24941 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
24942 * util/deviceiter.c [__linux__]: Define MINOR.
24943 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
24944 * util/mkdevicemap.c (grub_putchar): New function.
24945 (grub_getkey): New function.
24946 (grub_refresh): New function.
24947 (main): Set debug=all if -v -v is used.
24948
355b51e9
CW
249492010-05-18 Colin Watson <cjwatson@ubuntu.com>
24950
24951 Fix build with non-GNU libcs.
24952
24953 * util/misc.c (canonicalize_file_name): Move to ...
24954 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
24955 grub_make_system_path_relative_to_its_root.
24956
7fb5c25f
CW
249572010-05-18 Colin Watson <cjwatson@ubuntu.com>
24958
24959 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
24960 we handle finding grub-mkimage. Default to finding grub-mkimage in
24961 ${bindir} with program_transform_name applied, and provide a
24962 --grub-mkimage option to override this.
24963
1d3293d6
VS
249642010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24965
24966 Remove grub-mkisofs.
24967
24968 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
24969 (grub_mkisofs_SOURCES): Removed.
24970 (grub_mkisofs_CFLAGS): Removed.
24971 * util/mkisofs/defaults.h: Removed.
24972 * util/mkisofs/eltorito.c: Likewise.
24973 * util/mkisofs/exclude.h: Likewise.
24974 * util/mkisofs/hash.c: Likewise.
24975 * util/mkisofs/include/: Likewise.
24976 * util/mkisofs/include/fctldefs.h: Likewise.
24977 * util/mkisofs/include/mconfig.h: Likewise.
24978 * util/mkisofs/include/prototyp.h: Likewise.
24979 * util/mkisofs/include/statdefs.h: Likewise.
24980 * util/mkisofs/iso9660.h: Likewise.
24981 * util/mkisofs/joliet.c: Likewise.
24982 * util/mkisofs/match.c: Likewise.
24983 * util/mkisofs/match.h: Likewise.
24984 * util/mkisofs/mkisofs.c: Likewise.
24985 * util/mkisofs/mkisofs.h: Likewise.
24986 * util/mkisofs/msdos_partition.h: Likewise.
24987 * util/mkisofs/multi.c: Likewise.
24988 * util/mkisofs/name.c: Likewise.
24989 * util/mkisofs/rock.c: Likewise.
24990 * util/mkisofs/tree.c: Likewise.
24991 * util/mkisofs/write.c: Likewise.
24992
5dde9afe
VS
249932010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24994
24995 Unify grub-mkimage accross platforms.
24996
24997 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
24998 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
24999 (grub_mkelfimage_SOURCES): Removed.
25000 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
25001 (util/grub-mkimage.c_DEPENDENCIES): .. this.
25002 (bin_UTILITIES): Add grub-mkimage.
25003 (grub_mkimage_SOURCES): New variable.
25004 (kernel_img_HEADERS): Remove machine/kernel.h.
25005 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
25006 (pkglib_PROGRAMS): Add kernel.img.
25007 (kernel_img_HEADERS): Add machine/kernel.h.
25008 (kernel_img_FORMAT): Removed.
25009 (bin_UTILITIES): Remove grub-mkimage.
25010 (grub_mkimage_SOURCES): Removed.
25011 (grub_mkimage_CFLAGS): Likewise.
25012 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25013 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
25014 (pkglib_PROGRAMS): Add kernel.img.
25015 (bin_UTILITIES): Remove grub-mkimage.
25016 (grub_mkimage_SOURCES): Removed.
25017 (grub_mkimage_CFLAGS): Likewise.
25018 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25019 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
25020 (pkglib_PROGRAMS): Add kernel.img.
25021 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
25022 (pkglib_PROGRAMS): Add kernel.img.
25023 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
25024 (grub_mkimage_SOURCES): Removed.
25025 (grub_mkimage_CFLAGS): Likewise.
25026 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25027 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
25028 (pkglib_PROGRAMS): Add kernel.img.
25029 (bin_UTILITIES): Remove grub-mkimage.
25030 (grub_mkimage_SOURCES): Removed.
25031 (grub_mkimage_CFLAGS): Likewise.
25032 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25033 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
25034 (grub_mkimage_SOURCES): Removed.
25035 (grub_mkimage_CFLAGS): Likewise.
25036 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25037 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
25038 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
25039 (grub_pe32_optional_header): ... this.
25040 (grub_pe64_optional_header): ... and this. All users updated.
25041 (GRUB_PE32_PE32_MAGIC): Split into ..
25042 (GRUB_PE32_PE32_MAGIC): .. this.
25043 (GRUB_PE32_PE64_MAGIC): .. and this.
25044 (GRUB_PE32_SIGNATURE_SIZE): New definition.
25045 * include/grub/elf.h (PT_GNU_STACK): New definition.
25046 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
25047 * include/grub/i386/efi/kernel.h: Likewise.
25048 * include/grub/i386/kernel.h: Likewise.
25049 * include/grub/i386/pc/kernel.h: Likewise.
25050 * include/grub/i386/qemu/boot.h: Likewise.
25051 * include/grub/mips/kernel.h: Likewise.
25052 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25053 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25054 * include/grub/powerpc/kernel.h: Likewise.
25055 * include/grub/sparc64/ieee1275/boot.h: Likewise.
25056 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25057 * include/grub/sparc64/kernel.h: Likewise.
25058 * include/grub/x86_64/efi/kernel.h: Likewise.
25059 * include/grub/x86_64/kernel.h: Likewise.
25060 * include/grub/offsets.h: New file.
25061 * include/grub/kernel.h (grub_module_info): Split into ...
25062 (grub_module_info32): ... this.
25063 (grub_module_info64): ... and this.
25064 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
25065 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
25066 (grub_boot_blocklist): Moved from here ...
25067 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
25068 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
25069 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
25070 * include/grub/types.h (grub_target_to_host16): Removed.
25071 (grub_target_to_host32): Likewise.
25072 (grub_target_to_host64): Likewise.
25073 (grub_host_to_target16): Likewise.
25074 (grub_host_to_target32): Likewise.
25075 (grub_host_to_target64): Likewise.
25076 (grub_host_to_target_addr): Likewise.
25077
25078 Support grub-mkrescue for efi, coreboot and qemu.
25079
25080 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
25081 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
25082 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
25083 * util/grub-mkrawimage.c: Moved from here ...
25084 * util/grub-mkimage.c: ... here. All users updated.
25085 (ALIGN_ADDR): Use image_target.
25086 (TARGET_NO_FIELD): New const.
25087 (image_target_desc): New type.
25088 (image_targets): New array.
25089 (grub_target_to_host64): Use image_target.
25090 (grub_target_to_host32): Likewise.
25091 (grub_target_to_host16): Likewise.
25092 (grub_host_to_target64): Likewise.
25093 (grub_host_to_target32): Likewise.
25094 (grub_host_to_target16): Likewise.
25095 (grub_host_to_target_addr): Likewise.
25096 (generate_image): Handle multiimage.
25097 (main): Require -O parameter. All users updated.
25098 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
25099 util/efi/grub-mkimage.c
25100 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
25101 New option --rom-directory.
25102 Use xorriso.
25103 * util/i386/efi/grub-mkimage.c: Removed.
25104 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
25105 (grub_target_to_host32): Likewise.
25106 (grub_target_to_host64): Likewise.
25107 (grub_host_to_target16): Likewise.
25108 (grub_host_to_target32): Likewise.
25109 (grub_host_to_target64): Likewise.
25110 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
25111 (grub_target_to_host32): Likewise.
25112 (grub_target_to_host64): Likewise.
25113 (grub_host_to_target16): Likewise.
25114 (grub_host_to_target32): Likewise.
25115 (grub_host_to_target64): Likewise.
25116
f4fc97d0
BC
251172010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
25118
25119 Source tree is reorganized for emu build.
25120
25121 * include/grub/util/console.h: Move from here...
25122 * include/grub/emu/console.h: ...to here.
25123 * include/grub/util/getroot.h: Move from here...
25124 * include/grub/emu/getroot.h: ...to here.
25125 * include/grub/util/hostdisk.h: Move from here...
25126 * include/grub/emu/hostdisk.h: ...to here.
25127 * util/console.c: Move from here...
25128 * kern/emu/console.c: ...to here.
25129 * util/getroot.c: Move from here...
25130 * kern/emu/getroot.c: ...to here.
25131 * util/grub-emu.c: Move from here...
25132 * kern/emu/main.c: ...to here.
25133 * util/hostdisk.c: Move from here...
25134 * kern/emu/hostdisk.c: ...to here.
25135 * util/hostfs.c: Move from here...
25136 * kern/emu/hostfs.c: ...to here.
25137 * util/mm.c: Move from here...
25138 * kern/emu/mm.c: ...to here.
25139 * util/pci.c: Move from here...
25140 * bus/emu/pci.c: ...to here.
25141 * util/sdl.c: Move from here...
25142 * video/emu/sdl.c: ...to here.
25143 * util/time.c: Move from here...
25144 * kern/emu/time.c: ...to here.
25145 * util/usb.c: Move from here...
25146 * bus/usb/emu/usb.c: ...to here.
25147
25148 * include/grub/emu/misc.h: New header for grub-emu functions.
25149 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
25150
25151 * conf/any-emu.rmk: Rule updates for above renames.
25152 * conf/common.rmk: Likewise.
25153 * conf/i386-pc.rmk: Likewise.
25154 * conf/i386-qemu.rmk: Likewise.
25155 * conf/mips.rmk: Likewise.
25156 * conf/sparc64-ieee1275.rmk: Likewise.
25157 * conf/x86-efi.rmk: Likewise.
25158
25159 * disk/lvm.h: #include updates for above renames.
25160 * util/grub-mkrelpath.c: Likewise.
25161 * util/grub-probe.c: Likewise.
25162 * util/i386/pc/grub-setup.c: Likewise.
25163 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25164 * kern/emu/console.c: Likewise.
25165 * kern/emu/getroot.c: Likewise.
25166 * kern/emu/hostdisk.c: Likewise.
25167 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
25168
25169 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
25170 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
25171 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
25172 * util/misc.c: Remove grub-emu functions.
25173
cced9145
VS
251742010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
25175
25176 Fix gfxmenu crash.
25177 Reported by: Thorsten Grützmacher.
25178
25179 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
25180 timeout hook.
25181 (circprog_set_property): Register and unregister timeout hook.
25182 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
25183 (label_destroy): Free template. and unregister hook.
25184 (label_set_state): New function.
25185 (label_set_property): Handle templates and hooks.
25186 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
25187 timeout hook.
25188 (progress_bar_set_property): Register and unregister timeout hook.
25189 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
25190 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
25191 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
25192 (update_timeout_visit): Removed.
25193 (update_timeouts): New function.
25194 (redraw_timeouts): Likewise.
25195 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
25196 (grub_gfxmenu_clear_timeout): Likewise.
25197 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
25198 (grub_gfxmenu_timeout_notify): Likewise.
25199 (grub_gfxmenu_timeout_notifications): New external variable.
25200 (grub_gfxmenu_timeout_register): New function.
25201 (grub_gfxmenu_timeout_unregister): Likewise.
25202
c6e5caab
VS
252032010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
25204
25205 Transform (broken) vga terminal into (working) vga video driver.
25206
25207 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
25208 video/i386/pc/vga.c.
25209 * include/grub/video.h (grub_video_driver_id):
25210 Add GRUB_VIDEO_DRIVER_VGA.
25211 * term/i386/pc/vga.c: Renamed to ...
25212 * video/i386/pc/vga.c: ...this
25213 (DEBUG_VGA): Removed.
25214 (CHAR_WIDTH): Likewise.
25215 (CHAR_HEIGHT): Likewise.
25216 (TEXT_WIDTH): Likewise.
25217 (TEXT_HEIGHT): Likewise.
25218 (DEFAULT_FG_COLOR): Likewise.
25219 (DEFAULT_BG_COLOR): Likewise.
25220 (colored_char): Likewise.
25221 (xpos): Likewise.
25222 (ypos): Likewise.
25223 (cursor_state): Likewise.
25224 (fg_color): Likewise.
25225 (bg_color): Likewise.
25226 (text_buf): Likewise.
25227 (page): Likewise.
25228 (font): Likewise.
25229 (framebuffer): New variable.
25230 (set_read_map): Disabled.
25231 (setup): New variable.
25232 (is_target): Likewise.
25233 (grub_vga_mod_init): Likewise.
25234 (grub_vga_mod_fini): Likewise.
25235 (check_vga_mem): Likewise.
25236 (write_char): Likewise.
25237 (write_cursor): Likewise.
25238 (scroll_up): Likewise.
25239 (grub_vga_putchar): Likewise.
25240 (grub_vga_getcharwidth): Likewise.
25241 (grub_vga_getwh): Likewise.
25242 (grub_vga_getxy): Likewise.
25243 (grub_vga_gotoxy): Likewise.
25244 (grub_vga_cls): Likewise.
25245 (grub_vga_setcolorstate): Likewise.
25246 (grub_vga_setcursor): Likewise.
25247 (grub_video_vga_init): New function.
25248 (grub_video_vga_setup): Likewise.
25249 (grub_video_vga_fini): Likewise.
25250 (update_target): Likewise.
25251 (grub_video_vga_blit_bitmap): Likewise.
25252 (grub_video_vga_blit_render_target): Likewise.
25253 (grub_video_vga_set_active_render_target): Likewise.
25254 (grub_video_vga_get_active_render_target): Likewise.
25255 (grub_video_vga_swap_buffers): Likewise.
25256 (grub_video_vga_set_palette): Likewise.
25257 (grub_video_vga_get_info_and_fini): Likewise.
25258 (grub_vga_term): Removed.
25259 (grub_video_vga_adapter): New variable.
25260 (GRUB_MOD_INIT): Register a video driver instead of terminal.
25261 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
25262
2bf61a98
VS
252632010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25264
25265 * video/readers/jpeg.c: Indented.
25266
09ddcd11
VS
252672010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25268
25269 Various jpeg cleanups.
25270
25271 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
25272 (grub_jpeg_decode_quan_table): Use sizeof.
25273 (grub_jpeg_decode_du): Use ARRAY_SIZE.
25274
e5507505
PH
252752010-05-05 Peter Hurley <No e-mail available> (tiny change)
25276
25277 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
25278 tables. Ignore non-last ac bit.
25279 (grub_jpeg_decode_quan_table): Likewise.
25280
7e720a9b
VS
252812010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25282
25283 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
25284 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
25285 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
25286 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
25287 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
25288 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
25289
a7fc080b
VS
252902010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25291
25292 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
25293 error.
25294
2bf6012d
VS
252952010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25296
25297 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
25298
265d68cd
VS
252992010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25300
25301 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
25302 condition.
25303
253042010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
25305
25306 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
25307 part.
25308
265d68cd 253092010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
25310
25311 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
25312 pointers.
25313
265d68cd 253142010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
25315
25316 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
25317
d1b61374
CF
253182010-05-01 Christian Franke <franke@computer.org>
25319
25320 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
25321 Remove broken Cygwin path conversion.
25322 * util/misc.c: [__CYGWIN__] Add include and define.
25323 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
25324 for Cygwin 1.7.
25325 (make_system_path_relative_to_its_root): Simplify loop, replace early
25326 return by break.
25327 [__CYGWIN__] Add conversion to win32 path.
25328 Include "/" case in trailing slash removal.
25329
3558c6e9
VS
253302010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25331
25332 * kern/main.c (grub_load_config): Fix copy-pasted comment.
25333 Reported by: Seth Goldberg
25334
f5f3ff93
VS
253352010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25336
25337 * commands/help.c (grub_cmd_help): Fix a typo.
25338 Reported by: Seth Goldberg
25339
d8b5cd40
VS
253402010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25341
25342 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
25343 name and add N_.
25344 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
25345 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
25346 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
25347 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
25348 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
25349 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
25350 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25351 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25352 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25353 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25354 * normal/context.c (GRUB_MOD_INIT): Likewise.
25355 * normal/main.c (GRUB_MOD_INIT): Likewise.
25356 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25357 * term/serial.c (GRUB_MOD_INIT): Likewise.
25358 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25359
88c14915
VS
253602010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25361
25362 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
25363 extra == 0.
25364
165134bc
VS
253652010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25366
25367 * commands/iorw.c: New file.
25368 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
25369 (iorw_mod_SOURCES): New variable.
25370 (iorw_mod_CFLAGS): Likewise.
25371 (iorw_mod_LDFLAGS): Likewise.
25372
c5ac9b32
VS
253732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25374
25375 Hotkey support
25376
25377 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
25378 * normal/main.c (hotkey_aliases): New variable.
25379 (grub_normal_add_menu_entry): Parse "--hotkey".
25380 * normal/menu_text.c (run_menu): Handle hotkeys.
25381
ce60689c
VS
253822010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25383
25384 * kern/i386/coreboot/init.c (grub_machine_init): Call
25385 grub_machine_mmap_init on qemu.
25386
0359d006
VS
253872010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25388
25389 * boot/i386/qemu/boot.S: Add a missing .code16.
25390
7819a456
VS
253912010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25392
25393 Use LBIO on coreboot.
25394
25395 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
25396 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
25397 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
25398 New declaration.
25399 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
25400 grub_machine_mmap_init on coreboot.
25401 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
25402 GRUB_LINUXBIOS_MEMBER_LINK.
25403 (grub_machine_mmap_iterate): Fix declaration.
25404 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
25405
7210dca9
VS
254062010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25407
25408 Split coreboot and multiboot ports.
25409
25410 * conf/i386-multiboot.rmk: New file.
25411 * configure.ac: Add multiboot port.
25412 * include/grub/i386/multiboot/boot.h: New file.
25413 * include/grub/i386/multiboot/console.h: Likewise.
25414 * include/grub/i386/multiboot/init.h: Likewise.
25415 * include/grub/i386/multiboot/kernel.h: Likewise.
25416 * include/grub/i386/multiboot/loader.h: Likewise.
25417 * include/grub/i386/multiboot/memory.h: Likewise.
25418 * include/grub/i386/multiboot/serial.h: Likewise.
25419 * include/grub/i386/multiboot/time.h: Likewise.
25420 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
25421 * loader/multiboot.c: Likewise.
25422 * loader/multiboot_mbi2.c: Likewise.
25423 * util/grub-mkrescue.in: Generate multiboot rescue.
25424
6f8aaf68
VS
254252010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25426
3080f7a7
VS
25427 * kern/parser.c (grub_parser_execute): Cope with read-only config.
25428
254292010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25430
25431 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
25432
25433 * commands/terminal.c (abstract_terminal): New struct.
25434 (handle_command): New function. Based on grub_cmd_terminal_input.
25435 (grub_cmd_terminal_input): Use handle_command.
25436 (grub_cmd_terminal_output): Use handle_command.
25437
a8ebb841
BC
254382010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
25439
25440 Fix comment handling.
25441
25442 * tests/grub_script_comments.in: New testcase.
25443 * conf/tests.rmk: Rules for new testcase.
25444 * script/yylex.l: Updated flex rules.
25445
bb06ba08
ST
254462010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
25447
25448 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
25449 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
25450 if argc is 1.
bb06ba08 25451
cc9d2425
VS
254522010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25453
25454 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
25455 autogen issues.
25456
460d8402
CF
254572010-04-26 Christian Franke <franke@computer.org>
25458
25459 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
25460 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
25461 (grub_get_prefix): Remove function.
25462 * util/grub-emu.c (main): Replace grub_get_prefix () call by
25463 make_system_path_relative_to_its_root ().
25464 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
25465
553c01f9
CF
254662010-04-24 Christian Franke <franke@computer.org>
25467
25468 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
25469 (kernel_img_LDFLAGS): Remove -static-libgcc.
25470
2aec1692
CF
254712010-04-24 Christian Franke <franke@computer.org>
25472
25473 * configure.ac: Do not CHECK_BSS_START_SYMBOL
25474 and CHECK_END_SYMBOL if grub-emu is built.
25475 Unset TARGET_OBJ2ELF if grub-emu is built
25476 without module support.
25477
f67dc308
JS
254782010-04-24 Jiro SEKIBA <jir@unicus.jp>
25479
25480 Nilfs2 support.
25481
25482 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
25483 (grub_fstest_SOURCES): Likewise.
25484 (pkglib_MODULES): Add nilfs2.mod.
25485 (nilfs2_mod_SOURCES): New variable.
25486 (nilfs2_mod_CFLAGS): Likewise.
25487 (nilfs2_mod_LDFLAGS): Likewise.
25488 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25489 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25490 * fs/nilfs2.c: New file.
25491
4ba8d354
VS
254922010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
25493
25494 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
25495 is not supported.
25496
0d2c20c6
GS
254972010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
25498
25499 Add grub-mkconfig support for NetBSD.
25500
25501 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
25502 * util/grub-mkconfig.in: export new NetBSD specific variables.
25503 * po/POTFILES-shell: added 10_netbsd.in.
25504 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
25505
bc4a2d83
BC
255062010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
25507
25508 Fix emu build with grub-emu-pci and grub-emu-modules.
25509
25510 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
25511 functions.
25512 * include/grub/libpciaccess.h: New file.
25513 * conf/any-emu.rmk: Update kernel headers for emu build.
25514
f48c87aa
VS
255152010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25516
25517 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
25518
18959385
VS
255192010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25520
25521 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
25522
0037de3f
VS
255232010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25524
25525 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
25526 Retrieve chosen/bootpath if bootpath isn't hardcoded.
25527 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
25528 util/ieee1275/ofpath.c.
25529 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
25530 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
25531 * include/grub/sparc64/ieee1275/boot.h
25532 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
25533 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
25534 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
25535 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
25536 const char *.
25537 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
25538 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
25539 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
25540 install.
25541
38e55e90
GS
255422010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
25543
25544 * util/grub-mkconfig.in: Corrected two == equality tests.
25545 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
25546 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
25547 expect a number appended to it.
25548 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
25549 expects a number appended to it.
25550
a9e6ff28
VS
255512010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25552
25553 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
25554
0b830b8f
VS
255552010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25556
25557 * util/hostdisk.c (make_device_name): Change to new partition naming.
25558
0973daeb
VS
255592010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
25560
25561 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
25562
460d8402 255632010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
25564
25565 * Makefile.in: Add missing localedir setting.
25566
0b456309
CW
255672010-04-14 Colin Watson <cjwatson@ubuntu.com>
25568
25569 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
25570 mistake in r2156. Noticed by Anthony Fok.
25571
25572 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
25573 @localedir@.
25574 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
25575
08f46d62
BC
255762010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
25577
25578 Fix a spurious, uninitialized variable warning.
25579
25580 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
25581 Initialize variable, shdr.
25582 (grub_freebsd_load_elfmodule): Likewise.
25583 (grub_freebsd_load_elf_meta): Likewise.
25584
8c4a72d4
BC
255852010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
25586
25587 Fix for escaped dollar in double quoted strings.
25588
25589 * script/yylex.l: Updated flex rules.
25590 * conf/tests.rmk: Rule for new testcase.
25591 * tests/grub_script_dollar.in: New testcase.
25592
ce44826e
CPE
255932010-04-13 Carles Pina i Estany <carles@pina.cat>
255942010-04-13 Colin Watson <cjwatson@ubuntu.com>
25595
25596 Enclose all translated strings in grub.cfg in single quotes, and
25597 escape them appropriately (Ubuntu bug #552921).
25598
25599 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
25600 * util/grub.d/10_hurd.in: Use it.
25601 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
25602 * util/grub.d/10_linux.in (linux_entry): Likewise.
25603
4b0cd8f8
VS
256042010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25605
25606 Fix cygwin compilation.
25607
25608 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
25609 * include/grub/misc.h (__register_frame_info)
25610 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
25611 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25612 * kern/misc.c (__register_frame_info)
25613 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
25614 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
25615
01fcf061
VS
256162010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25617
25618 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
25619
5d04b11e
VS
256202010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
25621
25622 Unify libgcc processing.
25623
25624 * Makefile.in (kernel_img_LDFLAGS): New variable.
25625 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
25626 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
25627 overwriting.
25628 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
25629 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
25630 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
25631 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
25632 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
25633 overwriting. Remove -lgcc and -static-libgcc
25634 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
25635 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25636 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
25637 (kernel_img_LDFLAGS): Append instead of overwriting.
25638 Remove -lgcc and -static-libgcc
25639 * conf/sparc64-ieee1275.rmk: Likewise.
25640 * include/grub/powerpc/libgcc.h: Move to ...
25641 * include/grub/libgcc.h: .. this.
25642 * include/grub/libgcc.h: Don't export most of the function on x86.
25643 (__bswapsi2): New export.
25644 (__bswapdi2): Likewise.
25645 * include/grub/mips/libgcc.h: Removed.
25646 * include/grub/sparc64/libgcc.h: Likewise.
25647
b7f3ac29
VS
256482010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25649
25650 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
25651 disk_info_msg (conflicts with gettexting into languages with cases).
25652
2c7031b1
GS
256532010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
25654
25655 Add grub-probe support for NetBSD.
25656
25657 * util/getroot.c (find_root_device): Convert block device to
25658 character device on NetBSD.
25659 * util/probe.c (probe): Require character device on NetBSD.
25660 * util/hostdisk.c: NetBSD specific headers.
25661 (configure_device_driver): new function to tune device driver
25662 parameters (currently only for NetBSD floppy driver).
25663 (grub_util_biosdisk_open): NetBSD specific code (get disk size
25664 via disklabel ioctl).
25665 (open_device): call configure_device_driver on NetBSD.
25666 (convert_system_partition_to_system_disk): NetBSD specific code.
25667 (device_is_wholedisk): Likewise.
25668 (grub_util_biosdisk_get_grub_dev): Likewise.
25669 (make_device_name): Fixed a typo in bsd_part_str.
25670 * configure.ac: check for opendisk() and getrawpartition() on
25671 NetBSD and set LIBUTIL.
25672 * Makefile.in: add LIBUTIL to LIBS.
25673
f516290c
BC
256742010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25675
25676 Documentation fix.
25677
25678 * util/grub-script-check.c: Better help message.
25679
d8dcc0df
BC
256802010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
25681
25682 Fix FreeBSD build.
25683
25684 * configure.ac: Flex version check.
25685 * conf/common.rmk: Add -Wno-error to sh.mod.
25686 * script/yylex.l: Remove all #pragma.
25687
6734334a
VS
256882010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25689
25690 * include/grub/util/misc.h (canonicalise_file_name): Add missing
25691 prototype.
25692 Reported by: Seth Goldberg.
25693
daea6abd
VS
256942010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25695
25696 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
25697 Rename "module" to "module2".
25698 Reported by: Seth Goldberg.
25699
f2fd9d2b
VS
257002010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25701
25702 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
25703 EXPORT_FUNC.
25704 Reported by: Seth Goldberg.
25705
be124579
VS
257062010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25707
25708 * lib/posix_wrap/locale.h: Add missing file.
25709 Reported by: Seth Goldberg.
25710
ef5da797
VS
257112010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25712
25713 grub-emu module load support.
25714
25715 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
25716 NO_DYNAMIC_MODULES switched to this.
25717 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
25718 (CFLAGS): Likewise.
25719 * conf/any-emu.rmk: Generate symlist.
25720 (kernel_img_HEADERS): Add util/datetime.h.
25721 (kernel_img_HEADERS) [sdl]: Add sdl.h.
25722 (kernel_img_HEADERS) [libusb]: Add libusb.h.
25723 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
25724 kern/$(target_cpu)/cache.S.
25725 * configure.ac (grub-emu-modules): New option.
25726 * genmk.rb: Handle multiple source lists.
25727 * include/grub/sdl.h: New file.
25728 * include/grub/libusb.h: Likewise.
25729 * util/grub-emu.c (main): Hanle (host) root.
25730 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
25731 GRUB_ERR_UNKNOWN_DEVICE.
25732 * util/misc.c: Move mm functions to ...
25733 * util/mm.c: ... here. All users updated.
25734
47822096
VS
257352010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25736
25737 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
25738 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
25739 missing files.
25740 (maintainer-clean): Remove libgcrypt-grub.
25741
5d7e7445
VS
257422010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25743
25744 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
25745
25f4e252
EC
257462010-04-09 EFI Coder <eficoder@hotmail.com>
25747
25748 * normal/menu_text.c (print_message): Clean up the message and show
25749 the Fn information when on EFI
25750 * term/efi/console.c (grub_console_checkkey): Add F4 support.
25751
027de555
VS
257522010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25753
25754 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
25755 All users updated.
25756 * normal/crypto.c (read_crypto_list): Likewise.
25757 * normal/dyncmd.c (read_command_list): Likewise.
25758 * normal/term.c (read_terminal_list): Likewise.
25759 * normal/main.c (read_lists): Use explicit prefix.
25760 (read_lists_hook): Use read_lists.
25761 (grub_normal_execute): Likewise.
25762
47779711
VS
257632010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25764
25765 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
25766 Reported by: Thomas Schmitt.
25767 Add -no-emul-boot to grub-mkisofs parameters.
25768
1118c32e
VS
257692010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25770
25771 * font/font.c: Indented.
25772
7d652447
BC
257732010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25774
25775 Elif support to GRUB script (by Deepak Vankadaru).
25776
25777 * tests/grub_script_if.in: New testcase.
25778 * conf/tests.rmk: Rule for new testcase.
25779 * script/parser.y: Grammar rules for elif.
25780
34bb22df
BC
257812010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
25782
25783 While and until loops support to GRUB script.
25784
25785 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
25786 (grub_script_create_cmdwhile): New function prototype.
25787 (grub_script_execute_cmdwhile): New function prototype.
25788 * script/execute.c (grub_script_execute_cmdwhile): New function.
25789 * script/parser.y (command): New commands.
25790 (whilecmd): New grammar rule.
25791 (untilcmd): New grammar rule.
25792 * script/script.c (grub_script_create_cmdwhile): New function.
25793 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
25794 function.
25795
25796 * tests/grub_script_while1.in: New testcase.
25797 * conf/tests.rmk: Rule for new testcase.
25798
e215d8e0
VS
257992010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25800
25801 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
25802 as *.jpg.
25803
d7c43ba1
MV
258042010-04-09 Mario Vazquez <mariovazq@gmail.com>
25805
25806 GRUB_BACKGROUND support.
25807
25808 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
25809 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
25810
d64795c0
VS
258112010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25812
25813 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 25814 Idea by: Mario Vazquez
d64795c0
VS
25815
25816 * util/grub.d/00_header.in: Load pf2 and image modules.
25817
f267f83a
VS
258182010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25819
25820 grub-mkconfig multiple terminal support.
25821
25822 * util/grub-mkconfig.in: Handle multiple terminals correctly.
25823 * util/grub.d/00_header.in: Likewise.
25824
b7841ceb
VS
258252010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
25826
25827 * Makefile.in: Specify files explicitly instead of using $< and $@ since
25828 we use cd $(srcdir).
25829
df60998c
CW
258302010-04-08 Colin Watson <cjwatson@ubuntu.com>
25831
25832 * util/grub.d/10_linux.in: Only use the first word of
25833 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
25834 spaces in GRUB_DISTRIBUTOR.
25835 * util/grub.d/10_kfreebsd.in: Likewise.
25836 * util/grub.d/10_hurd.in: Likewise.
25837
fa09c82e
BC
258382010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
25839
14e18ae3 25840 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
25841
25842 * tests/util/grub-shell.in: Remove -serial stdio option.
25843
daf892b3
BC
258442010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25845
25846 POSIX header file wrappers.
25847
25848 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
25849 equivalents.
25850 * lib/posix_wrap/ctype.h: Likewise.
25851 * lib/posix_wrap/errno.h: Likewise.
25852 * lib/posix_wrap/langinfo.h: Likewise.
25853 * lib/posix_wrap/limits.h: Likewise.
25854 * lib/posix_wrap/localcharset.h: Likewise.
25855 * lib/posix_wrap/stdint.h: Likewise.
25856 * lib/posix_wrap/stdio.h: Likewise.
25857 * lib/posix_wrap/stdlib.h: Likewise.
25858 * lib/posix_wrap/string.h: Likewise.
25859 * lib/posix_wrap/sys/types.h: Likewise.
25860 * lib/posix_wrap/unistd.h: Likewise.
25861 * lib/posix_wrap/wchar.h: Likewise.
25862 * lib/posix_wrap/wctype.h: Likewise.
25863 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
25864 (grub_script.yy.h): Likewise.
25865 * script/yylex.l: Remove POSIX emulation #defines.
25866 * Makefile.in (POSIX_CFLAGS): New variable.
25867 (GNULIB_UTIL_CFLAGS): Likewise.
25868
25869 Regexp support.
25870
25871 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
25872 (regexp_mod_SOURCES): New variable.
25873 (regexp_mod_CFLAGS): Likewise.
25874 (regexp_mod_LDFLAGS): Likewise.
25875 * commands/regexp.c: New file.
25876 * gnulib/regcomp.c: New file. Imported from gnulib.
25877 * gnulib/regex.c: Likewise.
25878 * gnulib/regex_internal.c: Likewise.
25879 * gnulib/regex_internal.h: Likewise.
25880 * gnulib/regexec.c: Likewise.
25881 * gnulib/regex.h: Likewise.
25882
974ac4f7
VS
258832010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25884
25885 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
25886 unsupported video mode types.
25887
2622c3ff
VS
258882010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25889
25890 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
25891
064cb524
VS
258922010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25893
25894 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
25895 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
25896
a8c3b552
VS
258972010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25898
25899 Remove unused grub_vga_get_font.
25900
25901 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
25902 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
25903
187bbe3d
GS
259042010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25905
25906 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
25907 * include/grub/misc.h: Likewise.
25908
b9396631
GS
259092010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25910
25911 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
25912 for which failure is fatal.
25913
50479feb
GS
259142010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25915
25916 * util/grub-install.in: Use mkdir -p to create grub directory.
25917 * util/i386/efi/grub-install.in: Likewise.
25918 * util/ieee1275/grub-install.in: Likewise.
25919
b1654fdf
GS
259202010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25921
25922 * Makefile.in (LEX): new variable.
25923
bd5a6415
GS
259242010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
25925
25926 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
25927 `=' and added double quotes on operands of this equality test.
25928
3db3a82b
VS
259292010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
25930
25931 * Makefile.in (uninstall): Remove a leftover debug echo.
25932 Reported by: Grégoire Sutre
25933
38023412
VS
259342010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
25935
25936 MIPS multiboot2 support.
25937
25938 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
25939 (multiboot2_mod_SOURCES): New variable.
25940 (multiboot2_mod_CFLAGS): Likewise.
25941 (multiboot2_mod_LDFLAGS): Likewise.
25942 (multiboot2_mod_ASFLAGS): Likewise.
25943 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
25944 definition.
25945 (MULTIBOOT_ENTRY_REGISTER): Likewise.
25946 (MULTIBOOT_MBI_REGISTER): Likewise.
25947 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
25948 (MULTIBOOT_ELF32_MACHINE): Likewise.
25949 (MULTIBOOT_ELF64_MACHINE): Likewise.
25950 * include/grub/mips/multiboot.h: New file.
25951 * include/grub/video.h (grub_video_driver_id): New type
25952 GRUB_VIDEO_DRIVER_SM712.
25953 (grub_video_get_info_and_fini): Export.
25954 (grub_video_get_palette): Likewise.
25955 (grub_video_get_driver_id): Likewise.
25956 * include/multiboot2.h: Resynced with spec.
25957 * loader/i386/multiboot.c: Moved from here ...
25958 * loader/multiboot.c: ... here. All users updated.
25959 (grub_multiboot_boot): Use platform-specific macros.
25960 * loader/i386/multiboot_elfxx.c: Moved from here ...
25961 * loader/multiboot_elfxx.c: ... here. All users updated.
25962 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
25963 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
25964 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
25965
47674667
VS
259662010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
25967
25968 Import gnulib argp module.
25969
25970 * gnulib/argp-ba.c: New file.
25971 * gnulib/argp-eexst.c: Likewise.
25972 * gnulib/argp-fmtstream.c: Likewise.
25973 * gnulib/argp-fmtstream.h: Likewise.
25974 * gnulib/argp-fs-xinl.c: Likewise.
25975 * gnulib/argp-help.c: Likewise.
25976 * gnulib/argp-namefrob.h: Likewise.
25977 * gnulib/argp-parse.c: Likewise.
25978 * gnulib/argp-pin.c: Likewise.
25979 * gnulib/argp-pv.c: Likewise.
25980 * gnulib/argp-pvh.c: Likewise.
25981 * gnulib/argp-version-etc.c: Likewise.
25982 * gnulib/argp-version-etc.h: Likewise.
25983 * gnulib/argp-xinl.c: Likewise.
25984 * gnulib/argp.h: Likewise.
25985
495442ed
VS
259862010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
25987
25988 * kern/device.c (grub_device_iterate): Clear errors after failed
25989 opening device.
25990
f9fd65df
VS
259912010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
25992
25993 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
25994 returned by firmware.
25995
af09641e
VS
259962010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
25997
25998 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
25999 compilation on coreboot and qemu
26000
016883a5
VS
260012010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26002
26003 * include/multiboot2.h: Resync with spec.
26004
f97e1f7d
VS
260052010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26006
26007 Multiboot2 tag support
26008
26009 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
26010 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
26011 Remove loader/multiboot_loader.c.
26012 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
26013 (grub_multiboot2_real_boot): Likewise.
26014 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
26015 (grub_get_multiboot_mmap_count): New proto.
26016 (grub_fill_multiboot_mmap): Likewise.
26017 (grub_multiboot_set_video_mode): Likewise.
26018 (grub_multiboot_set_console): Likewise.
26019 (grub_multiboot_load): Likewise.
26020 (grub_multiboot_load_elf): Likewise.
26021 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
26022 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
26023 * include/multiboot.h: Resynced with specification.
26024 * include/multiboot2.h: Resynced with specification.
26025 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
26026 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
26027 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
26028 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
26029 users updated.
26030 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
26031 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
26032 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
26033 Removed.
26034 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
26035 Moved from here...
26036 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
26037 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
26038 Moved from here...
26039 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
26040 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
26041 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
26042 All users updated.
26043 * loader/i386/multiboot_mbi2.c: New file.
26044
3506b90b
VS
260452010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26046
26047 Resync with gnulib.
26048
26049 * Makefile.in (GNULIB_CFLAGS): New variable.
26050 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
26051 (grub_script_check_CFLAGS): New variable.
26052 * gnulib/alloca.h: Resync with gnulib.
26053 * gnulib/error.c: Likewise.
26054 * gnulib/error.h: Likewise.
26055 * gnulib/fnmatch.c: Likewise.
26056 * gnulib/fnmatch_loop.c: Likewise.
26057 * gnulib/getdelim.c: Likewise.
26058 * gnulib/getline.c: Likewise.
26059 * gnulib/getopt.c: Likewise.
26060 * gnulib/getopt1.c: Likewise.
26061 * gnulib/getopt_int.h: Likewise.
26062 * gnulib/gettext.h: Likewise.
26063 * gnulib/progname.c: Likewise.
26064 * gnulib/progname.h: Likewise.
26065
394a3120
GS
260662010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
26067
26068 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
26069 which is the case with --disabled-nls.
26070
26071 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
26072 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
26073 * util/misc.c: Likewise.
26074 * util/mkisofs/mkisofs.c: Likewise.
26075 * util/mkisofs/mkisofs.h: Likewise.
26076
969d1c78
VS
260772010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26078
26079 Simplify Apple CC support.
26080
26081 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
26082 Add 0 byte at the end not to have a symbol with empty target.
26083 * mmap/i386/pc/mmap_helper.S: Likewise.
26084 * genmk.rb: Ignore errors 2030 and 2050.
26085 * kern/i386/pc/startup.S: Use LOCAL when possible.
26086
8d2977bb
BC
260872010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
26088
26089 Testcase and the fix for final semicolon on cmdline.
26090
26091 * tests/grub_script_final_semicolon.in: New testcase.
26092 * conf/tests.rmk: Rules for the new testcase.
26093 * script/parser.y: Grammar fix.
26094
a7bd6915
BC
260952010-03-26 BVK Chaitanya <bvk@localhost>
26096
26097 Blank lines testcase for GRUB script.
26098
26099 * tests/grub_script_blanklines.in: New testcase.
26100 * conf/tests.rmk: Rules for the new testcase.
26101
e4ff6628
VS
261022010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26103
26104 Don't use __FILE__.
26105
26106 * genmk.rb: Add -DGRUB_FILE to all C targets.
26107 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
26108 * include/grub/list.h: Likewise.
26109 * include/grub/misc.h: Likewise.
26110 * include/grub/mm.h: Likewise.
26111 * include/grub/test.h: Likewise.
26112 * kern/mm.c: Likewise.
26113 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26114
6a5cf6b6
VS
261152010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26116
26117 Sunpc partitions support.
26118
26119 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
26120 (grub_fstest_SOURCES): Likewise.
26121 (pkglib_MODULES): Add part_sunpc.mod.
26122 (part_sunpc_mod_SOURCES): New variable.
26123 (part_sunpc_mod_CFLAGS): Likewise.
26124 (part_sunpc_mod_LDFLAGS): Likewise.
26125 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
26126 * partmap/sunpc.c: New file.
26127
746d9045
BC
261282010-03-26 BVK Chaitanya <bvk@localhost>
26129
26130 For loop support to GRUB script.
26131
26132 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
26133 (grub_script_create_cmdfor): New function prototype.
26134 (grub_script_execute_cmdfor): New function prototype.
26135 * script/execute.c (grub_script_execute_cmdfor): New function.
26136 * script/parser.y (command): New for command.
26137 (forcmd): New grammar rule.
26138 * script/script.c (grub_script_create_cmdfor): New function.
26139 * util/grub-script-check.c (grub_script_execute_cmdfor): New
26140 function.
26141 * tests/grub_script_for1.in: New testcase.
26142 * conf/tests.rmk: Rules for new testcase.
26143
18486b18
VS
261442010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26145
26146 Nested partitions
26147
26148 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
26149 'partition' is NULL, grub_partition_get_start already does that.
26150 * commands/loadenv.c (check_blocklists): Likewise.
26151 (write_blocklists): Likewise.
26152 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
26153 (grub_fstest_SOURCES): Likewise.
26154 (pkglib_MODULES): Add part_bsd.mod.
26155 (part_bsd_mod_SOURCES): New variable.
26156 (part_bsd_mod_CFLAGS): Likewise.
26157 (part_bsd_mod_LDFLAGS): Likewise.
26158 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
26159 (grub_emu_SOURCES): Likewise.
26160 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26161 * include/grub/bsdlabel.h: New file.
26162 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
26163 'get_name'.
26164 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
26165 (grub_partition_map_list): New variable.
26166 (grub_partition_map_register): Inline.
26167 (grub_partition_map_unregister): Likewise.
26168 (FOR_PARTITION_MAPS): New macro.
26169 (grub_partition_map_iterate): Removed.
26170 (grub_partition_get_start): Handle nested partitions.
26171 * include/grub/msdos_partition.h: Remove bsd-related entries.
26172 (grub_pc_partition): Remove.
26173 * kern/disk.c (grub_disk_close): Free partition data.
26174 (grub_disk_adjust_range): Handle nested partitions.
26175 * kern/partition.c (grub_partition_map_probe): New function.
26176 (grub_partition_probe): Parse name to number, handle subpartitions.
26177 (get_partmap): New function.
26178 (grub_partition_iterate): Handle subpartitions.
26179 (grub_partition_get_name): Likewise.
26180 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
26181 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
26182 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
26183 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
26184 Set 'number'.
26185 (acorn_partition_map_probe): Remove.
26186 (acorn_partition_map_get_name): Likewise.
26187 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
26188 Set 'number'.
26189 Set 'index' to 0 since there can be only one partition entry per sector.
26190 (amiga_partition_map_probe): Remove.
26191 (amiga_partition_map_get_name): Likewise.
26192 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
26193 Set 'number'.
26194 Set 'offset' and 'index' to real positions of partitions.
26195 (apple_partition_map_probe): Remove.
26196 (apple_partition_map_get_name): Likewise.
26197 * partmap/bsdlabel.c: New file.
26198 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
26199 Set 'number'.
26200 Allocate 'data' so it can be correctly freed.
26201 Set 'index' to offset inside sector.
26202 (gpt_partition_map_probe): Remove.
26203 (gpt_partition_map_get_name): Likewise.
26204 * partmap/msdos.c (grub_partition_parse): Remove.
26205 (pc_partition_map_iterate): Don't force raw access.
26206 Set 'number'.
26207 Make 'ext_offset' a local variable.
26208 (pc_partition_map_probe): Remove.
26209 (pc_partition_map_get_name): Remove.
26210 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
26211 Set 'number'.
26212 (sun_partition_map_probe): Remove.
26213 (sun_partition_map_get_name): Likewise.
26214 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
26215 (grub_pcpart_type): Likewise.
26216 * util/hostdisk.c (open_device): Handle new numbering scheme.
26217 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
26218 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
26219 * util/grub-probe.c (probe_partmap): Handle nested paritions.
26220 * util/grub-install.in: Insert all subpartition modules.
26221 * util/ieee1275/grub-install.in: Likewise.
26222
a3940f88
AG
262232010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
26224
26225 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
26226 grammar.
26227
21b99926 262282010-03-24 Colin Watson <cjwatson@ubuntu.com>
26229
26230 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
26231
bed1d352
CW
262322010-03-21 Colin Watson <cjwatson@ubuntu.com>
26233
26234 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
26235 match where 'make install' puts them.
26236 * util/i386/efi/grub-install.in: Likewise.
26237
c9f58427
CW
262382010-03-19 Colin Watson <cjwatson@ubuntu.com>
26239
26240 * .bzrignore: Add gentrigtables, grub-script-check,
26241 grub_script_check_init.c, grub_script_check_init.h, and
26242 trigtables.c.
26243
f84afb27
VS
262442010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
26245
26246 * kern/parser.c: Indented.
26247
ed0e3d30
VS
262482010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26249
26250 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
26251
0ea81d98
VS
262522010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26253
26254 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
26255 alpha_mask_size == 0 case.
26256
0cdc2a09
BC
262572010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
26258
26259 GRUB shell lexer and parser improvements.
26260
26261 * conf/any-emu.rmk: Build rule updates.
26262 * conf/common.rmk: Likewise.
26263 * conf/i386-coreboot.rmk: Likewise.
26264 * conf/i386-efi.rmk: Likewise.
26265 * conf/i386-ieee1275.rmk: Likewise.
26266 * conf/i386-pc.rmk: Likewise.
26267 * conf/powerpc-ieee1275.rmk: Likewise.
26268 * conf/x86_64-efi.rmk: Likewise.
26269
26270 * configure.ac: Configure check for flex.
26271
26272 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
26273 types.
26274 (grub_lexer_param): Struct member updates.
26275 (grub_parser_param): Likewise.
26276 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
26277 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
26278 (grub_script_lexer_init): Prototype update.
26279 (grub_script_lexer_record_start): Likewise.
26280 (grub_script_lexer_record_stop): Likewise.
26281 (grub_script_lexer_yywrap): New function prototype.
26282 (grub_script_lexer_fini): Likewise.
26283 (grub_script_execute_argument_to_string): Removed by...
26284 (grub_script_execute_argument_to_argv): ...better version.
26285
26286 * script/execute.c (ROUND_UPTO): New macro.
26287 (grub_script_execute_cmdline): Out of memory fixes.
26288 (grub_script_execute_menuentry): Likewise.
26289 (grub_script_execute_argument_to_string): Removed. Update all
26290 users by...
26291 (grub_script_execute_argument_to_argv): ...better version.
26292 * script/function.c (grub_script_function_create): Use
26293 grub_script_execute_argument_to_argv instead of
26294 grub_script_execute_argument_to_string.
26295
26296 * script/lexer.c (check_varstate): Removed.
26297 (check_textstate): Removed.
26298 (grub_script_lexer_record_start): Likewise.
26299 (grub_script_lexer_record_stop): Likewise.
26300 (recordchar): Replaced with...
26301 (grub_script_lexer_record): ...new function.
26302 (nextchar): Removed.
26303 (grub_script_lexer_init): Rewritten.
26304 (grub_script_yylex): Rewritten.
26305 (append_newline): New function.
26306 (grub_script_lexer_yywrap): New function.
26307 (grub_script_lexer_fini): New function.
26308 (grub_script_yyerror): Sets error flag.
26309
26310 * script/yylex.l: New file.
26311 (grub_lexer_yyfree): Wrapper for flex yyffre.
26312 (grub_lexer_yyalloc): Likewise.
26313 (grub_lexer_yyrealloc): Likewise.
26314 * script/parser.y: Refactored.
26315
26316 * script/script.c (grub_script_arg_add): Out of memory fixes.
26317 (grub_script_add_arglist): Likewise.
26318 (grub_script_create_cmdline): Likewise.
26319 (grub_script_create_cmdmenu): Likewise.
26320 (grub_script_add_cmd): Likewise.
26321 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
26322 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
26323 unnecessary code.
26324
26325 * tests/grub_script_echo1.in: New testcase.
26326 * tests/grub_script_vars1.in: New testcase.
26327 * tests/grub_script_echo_keywords.in: New testcase.
26328
1d63a066
VS
263292010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26330
26331 Remove some redundancy in build system.
26332
26333 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
26334 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
26335 (TARGET_LDFLAGS): Add -nostdlib.
26336 (TARGET_IMG_LDFLAGS): Likewise.
26337 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
26338 anything since mmap isn't available.
26339 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
26340 Add util/time.c.
26341 (pkglib_MODULES): Remove reboot.mod.
26342 (reboot_mod_SOURCES): Removed.
26343 (reboot_mod_CFLAGS): Likewise.
26344 (reboot_mod_LDFLAGS): Likewise.
26345 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
26346 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
26347 (DEFSYMFILES): Add kernel_syms.lst.
26348 (kernel_img_HEADERS): Add common headers.
26349 (symlist.c): New target.
26350 (kernel_syms.lst): Likewise.
26351 (pkglib_MODULES): Add memdisk.mod.
26352 (memdisk_mod_SOURCES): New variable.
26353 (memdisk_mod_CFLAGS): Likewise.
26354 (memdisk_mod_LDFLAGS): Likewise.
26355 (pkglib_MODULES): Add reboot.mod.
26356 (reboot_mod_SOURCES): New variable.
26357 (reboot_mod_CFLAGS): Likewise.
26358 (reboot_mod_LDFLAGS): Likewise.
26359 (pkglib_MODULES): Add date.mod.
26360 (date_mod_SOURCES): New variable.
26361 (date_mod_CFLAGS): Likewise.
26362 (date_mod_LDFLAGS): Likewise.
26363 (pkglib_MODULES): Add datehook.mod.
26364 (datehook_mod_SOURCES): New variable.
26365 (datehook_mod_CFLAGS): Likewise.
26366 (datehook_mod_LDFLAGS): Likewise.
26367 (pkglib_MODULES): Add lsmmap.mod.
26368 (lsmmap_mod_SOURCES): New variable.
26369 (lsmmap_mod_CFLAGS): Likewise.
26370 (lsmmap_mod_LDFLAGS): Likewise.
26371 (pkglib_MODULES): Add boot.mod.
26372 (boot_mod_SOURCES): New variable.
26373 (boot_mod_CFLAGS): Likewise.
26374 (boot_mod_LDFLAGS): Likewise.
26375 * conf/i386-coreboot.rmk: Removed redundant parts.
26376 * conf/i386-ieee1275.rmk: Likewise.
26377 * conf/i386-pc.rmk: Likewise.
26378 * conf/mips-yeeloong.rmk: Likewise.
26379 * conf/mips.rmk: Likewise.
26380 * conf/powerpc-ieee1275.rmk: Likewise.
26381 * conf/sparc64-ieee1275.rmk: Likewise.
26382 * conf/x86_64-efi.rmk: Likewise.
26383 * conf/i386-coreboot.rmk: Moved qemu parts ..
26384 * conf/i386-qemu.rmk: ... here
26385 * conf/i386-efi.rmk: Moved common parts to...
26386 * conf/x86-efi.rmk: ... here.
26387 * conf/i386.rmk: Added modules common to all x86 variants.
26388 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
26389 * disk/memdisk.c: Remove grub/machine/kernel.h.
26390 * gensymlist.sh.in: Include symbol.h.
26391 * hook/datehook.c: Correct module name.
26392 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
26393 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
26394 * include/grub/i386/efi/serial.h: New file.
26395 * include/grub/x86_64/efi/serial.h: Likewise.
26396 * util/time.c: Likewise.
26397 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
26398
463ac55f
CK
263992010-03-14 Colin King <colin.king@ubuntu.com>
264002010-03-14 Colin Watson <cjwatson@ubuntu.com>
26401
26402 Shrink the pre-partition-table part of boot.img by eight bytes.
26403
26404 * boot/i386/pc/boot.S (ERR): New macro.
26405 (chs_mode): Use ERR.
26406 (geometry_error): Likewise.
26407 (hd_probe_error): Remove. This is only used once, so we wrwite
26408 it inline instead.
26409 (read_error): Instead of printing read_error_string, just set up
26410 %si and fall through to ...
26411 (error_message): ... this new function, also used by ERR.
26412
08e46ede
CW
264132010-03-14 Colin Watson <cjwatson@ubuntu.com>
26414
26415 Speed up consecutive hostdisk operations on the same device.
26416
26417 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
26418 (grub_util_biosdisk_open): Initialise disk->data.
26419 (struct linux_partition_cache): New structure.
26420 (linux_find_partition): Cache partition start positions; these are
26421 expensive to compute on every read and write.
26422 (open_device): Cache open file descriptor in disk->data, so that we
26423 don't have to reopen it and flush the buffer cache for consecutive
26424 operations on the same device.
26425 (grub_util_biosdisk_close): New function.
26426 (grub_util_biosdisk_dev): Set `close' member.
26427
26428 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
26429 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
26430 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26431 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26432 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
26433
4a6d2d06
VS
264342010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26435
26436 Compile parts of grub-emu as modules.
26437
26438 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
26439 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
26440 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
26441 (all-local): Add $(GRUB_EMU).
26442 (install-local): Install $(GRUB_EMU).
26443 (uninstall): Uninstall $(GRUB_EMU).
26444 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
26445 * kern/dl.c: Likewise.
26446 * commands/sleep.c: Not include machine/time.h.
26447 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
26448 (COMMON_CFLAGS): Likewise.
26449 (sbin_UTILITIES): Remove grub-emu.
26450 (grub_emu_SOURCES): Removed.
26451 (kernel_img_RELOCATABLE): New variable.
26452 (pkglib_PROGRAMS): Add kernel.img.
26453 (kernel_img_SOURCES): New variable
26454 (kernel_img_CFLAGS): Likewise.
26455 (kernel_img_LDFLAGS): Likewise.
26456 (TARGET_NO_STRIP): Likewise.
26457 (TARGET_NO_DYNAMIC_MODULES): Likewise.
26458 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
26459 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
26460 (grub-emu): New target.
26461 (GRUB_EMU): New variable.
26462 * configure.ac: Whitelist -emu as possible x86_64 architecture.
26463 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
26464 * loader/xnu.c: Likewise.
26465 * include/grub/pci.h: Likewise.
26466 * genemuinit.sh: New file.
26467 * genemuinitheader.sh: Likewise.
26468 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
26469 Support TARGET_NO_DYNAMIC_MODULES.
26470 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
26471 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
26472 * disk/loopback.c: Likewise.
26473 * font/font_cmd.c: Likewise.
26474 * partmap/acorn.c: Likewise.
26475 * partmap/amiga.c: Likewise.
26476 * partmap/apple.c: Likewise.
26477 * partmap/gpt.c: Likewise.
26478 * partmap/msdos.c: Likewise.
26479 * partmap/sun.c: Likewise.
26480 * parttool/msdospart.c: Likewise.
26481 * term/gfxterm.c: Likewise.
26482 * video/bitmap.c: Likewise.
26483 * video/readers/jpeg.c: Likewise.
26484 * video/readers/png.c: Likewise.
26485 * video/readers/tga.c: Likewise.
26486 * video/video.c: Likewise.
26487 * util/grub-emu.c (read_command_list): Removed.
26488 (main): Don't call util_init_nls.
26489 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
26490 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
26491
91fdd2ed
VS
264922010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26493
26494 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
26495 date.mod, datehook.mod.
26496 (datetime_mod_SOURCES): New variable.
26497 (datetime_mod_CFLAGS): Likewise.
26498 (datetime_mod_LDFLAGS): Likewise.
26499 (date_mod_SOURCES): Likewise.
26500 (date_mod_CFLAGS): Likewise.
26501 (date_mod_LDFLAGS): Likewise.
26502 (datehook_mod_SOURCES): Likewise.
26503 (datehook_mod_CFLAGS): Likewise.
26504 (datehook_mod_LDFLAGS): Likewise.
26505 * conf/sparc64-ieee1275.rmk: Likewise.
26506 * lib/ieee1275/datetime.c: New file.
26507
873ccae6
VS
265082010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26509
26510 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
26511 (ieee1275_fb_mod_SOURCES): New variable.
26512 (ieee1275_fb_mod_CFLAGS): Likewise.
26513 (ieee1275_fb_mod_LDFLAGS): Likewise.
26514 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
26515 New proto.
26516 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
26517 (HEAP_MAX_ADDR): Likewise.
26518 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
26519 type.
26520 Correct stop condition.
26521 (grub_ieee1275_devices_iterate): New function.
26522 * video/ieee1275.c: New file.
26523
601c97c0
VS
265242010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26525
26526 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
26527
26528 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
26529 as scratch.
26530 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
26531 SCRATCH_PAD_DISKBOOT as scratch.
26532 (bootit): Pass Openfirmware pointer in %o4.
26533 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
26534 of 0x200000.
26535 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
26536 with util/grub-mkrawimage.c.
26537 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
26538 * include/grub/aout.h (AOUT_MID_SUN): New definition.
26539 (grub_aout_get_type) [GRUB_UTIL]: Removed.
26540 (grub_aout_load) [GRUB_UTIL]: Likewise.
26541 * include/grub/kernel.h (grub_modules_get_end): New proto.
26542 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
26543 (SCRATCH_PAD_BOOT): New definition.
26544 (SCRATCH_PAD_DISKBOOT): Likewise.
26545 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
26546 * include/grub/sparc64/ieee1275/ieee1275.h
26547 (grub_ieee1275_original_stack): New variable
26548 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
26549 New definition
26550 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
26551 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
26552 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
26553 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
26554 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
26555 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
26556 (grub_platform_image_format_t): New type.
26557 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
26558 * kern/main.c (grub_modules_get_end)
26559 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
26560 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
26561 (codestart): Switch stacks.
26562 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
26563 variable.
26564 (grub_heap_init): Use grub_modules_get_end.
26565 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
26566 stack.
26567 * util/grub-mkrawimage.c (generate_image): Support sparc64.
26568 (main): Likewise.
26569 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
26570
d68b491e
TG
265712010-03-14 Thorsten Glaser <tg@mirbsd.org>
26572
26573 * util/grub-mkrescue.in: Base ISO UUID on UTC.
26574
4e02ed50
MK
265752010-03-08 Matt Kraai <kraai@ftbfs.org>
26576
26577 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
26578 bug #559005).
26579
1f15fc1e
VS
265802010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
26581
26582 * genmoddep.awk: Output all missing symbols and not only first.
26583
fce5d8ff
VS
265842010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26585
26586 * NEWS: Put the date of 1.98 release.
26587
d1e8a02f
VS
265882010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26589
26590 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
26591 ft2build.h.
26592
696fd607
VS
265932010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26594
26595 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
26596 completition in the middle of string.
26597
33e2e6f3
VS
265982010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26599
26600 * util/grub-mkrescue.in: Use mktemp with explicit template.
26601
b1f6d291
VS
266022010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26603
26604 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
26605
2ac227c7
VS
266062010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
26607
26608 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
26609 right pointer.
26610
8f9a632b
VS
266112010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26612
26613 Fix FreeBSD compilation.
26614
26615 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
26616 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
26617
60b03859
VS
266182010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
26619
26620 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
26621
48a5a769
VS
266222010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26623
26624 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
26625
3ab4bd77
VS
266262010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26627
26628 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
26629
d116e0d8
RM
266302010-03-04 Robert Millan <rmh.grub@aybabtu.com>
26631
26632 Support relative image path in theme file.
26633
26634 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
26635 (image_set_property): Handle theme_dir and relative path.
26636
c7ef54aa
VS
266372010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26638
26639 * configure.ac: Alias amd64 to x86_64.
26640
fcee14ed
VS
266412010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26642
26643 * NEWS: mention multiboot on EFI.
26644
d0780363
VS
266452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26646
26647 * kern/main.c (grub_load_modules): Handle errors from init functions of
26648 embeded modules.
26649
41168ea4
VS
266502010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26651
26652 * normal/autofs.c (autoload_fs_module): Handle errors.
26653
b54d93ac
VS
266542010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26655
26656 Disable linux.mod on qemu-mips since it's not functional and leads
26657 to compilation failure.
26658
26659 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
26660 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
26661 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
26662 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
26663 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
26664 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
26665 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
26666 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
26667 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
26668 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
26669 Reported by: BVK Chaitanya
26670
fc8345da
JU
266712010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
26672
26673 * INSTALL: Add gettext as a dependency and add qemu to a new section
26674 "Prerequisites for make-check".
26675
4760f979
CF
266762010-03-04 Christian Franke <franke@computer.org>
26677
26678 * util/grub-pe2elf.c: Add missing include "progname.h".
26679
f209b5b2
VS
266802010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26681
26682 * normal/crypto.c (read_crypto_list): Fix a typo.
26683 Reported by: Seth Goldberg.
26684
b4b7be98
VS
266852010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26686
26687 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 26688 Reported by: Seth Goldberg.
b4b7be98 26689
c0ee0385
VS
266902010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26691
26692 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
26693 ascii.bitmaps.
26694
a8efbf64
VS
266952010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26696
26697 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 26698 Reported by: Seth Goldberg.
a8efbf64 26699
08dcd913
VS
267002010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
26701
26702 * util/i386/efi/grub-install.in: Copy gettext files.
26703
c4d0b332
VS
267042010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26705
26706 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
26707
c6f2fe52
VS
267082010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26709
26710 Wait for user entry basing on presence of output rather than on errors.
26711
26712 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
26713 (grub_install_newline_hook): Likewise.
26714 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
26715 * normal/menu.c (show_menu): Check line_counter to determine presence
26716 of output.
26717 * normal/term.c (grub_normal_line_counter): New variable.
26718 (grub_normal_get_line_counter): New function.
26719 (grub_install_newline_hook): Likewise.
26720
5382b1e4
VS
267212010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26722
26723 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
26724
5519963b
VS
267252010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
26726
26727 * configure.ac: Update version to 1.98.
26728
72b28631
VS
267292010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
26730
26731 * util/grub.d/10_linux.in (linux_entry): Don't default to
26732 gfxpayload=keep if Linux doesn't support video handover.
26733
c140a180
VS
267342010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
26735
26736 Don't compile video modules on yeeloong since video subsystem is part
26737 of kernel.
26738
26739 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
26740 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
26741 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
26742 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
26743 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
26744 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
26745 * include/grub/bitmap_scale.h: Likewise.
26746 * include/grub/bufio.h: Likewise.
26747 * include/grub/font.h: Likewise.
26748 * include/grub/gfxterm.h: Likewise.
26749 * include/grub/video.h: Likewise.
26750 * include/grub/vbe.h: Don't include video_fb.h.
26751 * video/i386/pc/vbe.c: Include video_fb.h.
26752 * commands/i386/pc/vbetest.c: Include video.h.
26753
a0ca21c2
CW
267542010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
26755
26756 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
26757 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
26758 default entry if GRUB_SAVEDEFAULT=true. This allows using
26759 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
26760 saving a new default on every boot.
26761
4a8a763c
VS
267622010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26763
26764 * normal/crypto.c (read_crypto_list): Fix a memory leak.
26765 * normal/term.c (read_terminal_list): Likewise.
26766 * normal/main.c (grub_normal_init_page): Likewise.
26767 (grub_normal_read_line_real): Likewise.
26768
607ffde2
VS
267692010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
26770
26771 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
26772 memory leak.
26773 Reported by: Seth Goldberg.
26774
2b8fa975
CW
267752010-02-24 Joey Korkames <joey+lists@kidfixit.com>
26776
26777 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
26778 duplicate declaration of `start'.
26779
618307dd
VS
267802010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26781
26782 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
26783 filename.
26784 Reported by: Georgy Buranov
26785
7dd05b96 267862010-02-20 Carles Pina i Estany <carles@pina.cat>
26787
26788 * util/grub-mkrawimage.c (usage): Change string formatting to
26789 improve gettext.
26790
d1484a42
MRA
267912010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
26792
26793 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
26794 backspace keys.
26795
42b1d186
VS
267962010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
26797
26798 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
26799 Reported by: Michael Suchanek.
26800
268012010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
26802
26803 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
26804 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
26805
d9f31a41
VS
268062010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
26807
26808 Remove any reference to non-free fonts.
26809
26810 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
26811 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
26812 uses non-free components.
26813 * font/font.c (grub_font_get_name): Remove example name.
26814 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
26815 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
26816 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
26817 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
26818
2793c71e
GB
268192010-02-16 Georgy Buranov <gburanov@gmail.com>
26820
26821 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
26822
402e3779
VS
268232010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26824
26825 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
26826 Double divisor.
26827 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
26828 features.
26829 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
26830
0dd1e0dd
VS
268312010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
26832
26833 * gensymlist.sh.in: Use TARGET_CC instead of CC.
26834
6fa7cfce
ST
268352010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26836
26837 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
26838 * docs/grub.texi (Command-line and menu entry commands): Document play
26839 command.
26840
37c8483b
ST
268412010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26842
26843 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
26844 parse arguments as inline tempo and notes. Move code for playing notes
26845 to...
26846 (play): ... new function.
26847
14da0fb7
ST
268482010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
26849
26850 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
26851 grub_uint16_t instead of short.
26852 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
26853 disk from little endian to cpu endianness.
26854
04459e70
ST
268552010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
26856
26857 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
26858 GRUB_TICKS_PER_SECOND instead of 120.
26859
a0876943
VS
268602010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26861
26862 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
26863 escape sequence after \e.
26864
e29f95dc
VS
268652010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26866
26867 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
26868 non-ASCII characters.
26869
d27859b2
VS
268702010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26871
26872 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
26873 set root in single quotes to prevent \, from being unescaped.
26874
bc028f2f
VS
268752010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26876
26877 Prevent unknown commands from stopping menuentry execution.
26878
26879 * script/execute.c (grub_script_execute_cmdline): Print error after
26880 unknown command.
26881
095f5f82
VS
268822010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26883
26884 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
26885 Reported by: Pavel Pisa.
26886
8c717950
VS
268872010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26888
26889 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
26890
904935c3
VS
268912010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26892
26893 Merge grub_ieee1275_map_physical into grub_map and rename to
26894 grub_ieee1275_map
26895
26896 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
26897 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
26898 Remove.
26899 * kern/ieee1275/openfw.c (grub_map): Rename to ...
26900 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
26901 necessary.
26902 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
26903
5b59a4e3
VS
269042010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26905
26906 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
26907 opening and not after.
26908
69e137e8
VS
269092010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26910
26911 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
26912 constants.
26913
2c0fcc36
VS
269142010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26915
26916 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
26917 (alloc_phys): Use ALIGN_UP instead of align_addr.
26918
8c6052ce
VS
269192010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26920
26921 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
26922
17cec782
VS
269232010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26924
26925 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
26926
e0128bbd
VS
269272010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26928
26929 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
26930 verbose dprintf.
26931
ca62070b
VS
269322010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26933
26934 Fix over-4GiB seek on sparc64.
26935
26936 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
26937 Replace pos_i and pos_lo with pos. All users updated.
26938 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
26939 New constant.
26940 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
26941 Likewise.
26942 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
26943 and pos_lo.
26944
bdca2607
VS
269452010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26946
26947 * util/grub-mkrawimage.c (main): Call set_program_name.
26948
da278c4d
VS
269492010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26950
26951 Properly align 64-bit targets.
26952
26953 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
26954 (generate_image): Use ALIGN_ADDR.
26955
b274d734
VS
269562010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26957
26958 Properly create cross-endian images.
26959
26960 * include/grub/types.h (grub_host_to_target_addr): New macro
26961 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
26962
82da2062
VS
269632010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
26964
26965 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
26966
7cae4377
VS
269672010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26968
26969 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
26970
26971 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
26972 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
26973 (grub_linux_boot): Divide by 64K when on VESA.
26974
65a533e7
VS
269752010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26976
26977 Support GRUB_GFXPAYLOAD_LINUX.
26978
26979 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
26980 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
26981
dd01d397
VS
269822010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
26983
26984 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
26985 to show messages instead of discarding them.
26986 Process errors after executing command and not before. Keep old method
26987 too as precaution.
26988
660960d6
VS
269892010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
26990
26991 * configure.ac: Check for ft2build.h.
26992
62509f04
VS
269932010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26994
26995 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
26996
473df63d
VS
269972010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
26998
26999 * genkernsyms.sh.in: Use TARGET_CC.
27000
c98d2a13
CW
270012010-02-07 Colin Watson <cjwatson@ubuntu.com>
27002
27003 * NEWS: Update.
27004
6e14234c
VS
270052010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27006
27007 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
27008 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
27009 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 27010
b255e9cf
YB
270112010-02-07 Yves Blusseau <blusseau@zetam.org>
27012
6e14234c 27013 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 27014
98e6959d
VS
270152010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27016
27017 Fix warnings in grub-emu when compiling with maximum warning options.
27018
27019 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
27020 (grub_arch_modules_addr): Return 0 and not NULL.
27021 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 27022 (xstrdup): Use newstr instead of dup.
f88d801b
VS
27023 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
27024 of disk to dsk to avoid shadowing.
74e4934e
VS
27025 (find_free_slot): Fix prototype.
27026 * util/getroot.c (grub_util_is_dmraid): Make static.
27027 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
27028 Add missing prototype.
27029 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 27030
74e31b5c
VS
270312010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27032
27033 * loader/i386/linux.c (grub_linux_setup_video): Handle error
27034 appropriately.
27035
6b2ad14b
VS
270362010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27037
27038 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
27039 code out.
27040
8f891adc
VS
270412010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27042
27043 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
27044 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
27045 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
27046 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
27047 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
27048 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
27049
74b45184
VS
270502010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27051
27052 * include/grub/err.h (grub_err_printf): Don't export.
27053
a4bced77
VS
270542010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27055
27056 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
27057
007d0695
VS
270582010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27059
27060 * include/grub/i18n.h (grub_gettext_dummy): Removed.
27061 * kern/misc.c (grub_gettext_dummy): Make static.
27062
b6c0d9c2
VS
270632010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27064
27065 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
27066 by non-valid ones.
27067 * kern/term.c (grub_putchar): Likewise.
27068
f51a90d0
VS
270692010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27070
27071 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
27072 buggy hook call and memory leak.
27073
6846cec5
VS
270742010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27075
27076 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
27077
468d69fe
VS
270782010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27079
27080 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
27081
51906b8c
VS
270822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27083
27084 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
27085 modevar.
27086 Return grub_errno on allocation error.
27087
09706ce5
VS
270882010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27089
27090 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
27091
911df80c
YB
270922010-02-06 Yves Blusseau <blusseau@zetam.org>
27093
27094 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
27095 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
27096
3746a6bc
VS
270972010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27098
27099 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
27100 non-pxe disk.
27101 (grub_pxefs_open): Likewise.
27102
09706ce5
VS
271032010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27104
27105 * util/grub.d/10_hurd.in: Add --class information to menuentries.
27106 * util/grub.d/10_kfreebsd.in: Likewise.
27107 * util/grub.d/10_linux.in: Likewise.
27108
7cc192d9
VS
271092010-02-06 Colin D Bennett <colin@gibibit.com>
27110
27111 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
27112 (gfxmenu_mod_SOURCES): New variable.
27113 (gfxmenu_mod_CFLAGS): Likewise.
27114 (gfxmenu_mod_LDFLAGS): Likewise.
27115 * include/grub/term.h (grub_term_set_current_output): Declare
27116 argument as const.
27117 * docs/gfxmenu-theme-example.txt: New file.
27118 * gfxmenu/gfxmenu.c: Likewise.
27119 * gfxmenu/gui_box.c: Likewise.
27120 * gfxmenu/gui_canvas.c: Likewise.
27121 * gfxmenu/gui_circular_progress.c: Likewise.
27122 * gfxmenu/gui_image.c: Likewise.
27123 * gfxmenu/gui_label.c: Likewise.
27124 * gfxmenu/gui_list.c: Likewise.
27125 * gfxmenu/gui_progress_bar.c: Likewise.
27126 * gfxmenu/gui_string_util.c: Likewise.
27127 * gfxmenu/gui_util.c: Likewise.
27128 * gfxmenu/icon_manager.c: Likewise.
27129 * gfxmenu/model.c: Likewise.
27130 * gfxmenu/named_colors.c: Likewise.
27131 * gfxmenu/theme_loader.c: Likewise.
27132 * gfxmenu/view.c: Likewise.
27133 * gfxmenu/widget-box.c: Likewise.
27134 * include/grub/gfxmenu_model.h: Likewise.
27135 * include/grub/gfxmenu_view.h: Likewise.
27136 * include/grub/gfxwidgets.h: Likewise.
27137 * include/grub/gui.h: Likewise.
27138 * include/grub/gui_string_util.h: Likewise.
27139 * include/grub/icon_manager.h: Likewise.
27140
271412010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27142
27143 Agglomerate scrolling in gfxterm.
27144
27145 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
27146 (grub_virtual_screen_setup): Initialise 'total_screen'.
27147 (write_char): Split to ...
27148 (paint_char): ... this ...
27149 (write_char): ... and this.
27150 (paint_char): Handle delayed scrolling.
27151 (draw_cursor): Likewise.
27152 (scroll_up): Split to ...
27153 (real_scroll): ... this ...
27154 (scroll_up): ... and this.
27155 (real_scroll): Handle multi-line scroll and draw below-the-bottom
27156 characters.
27157 (grub_gfxterm_refresh): Call real_scroll.
27158
271592010-02-06 Colin D Bennett <colin@gibibit.com>
27160
27161 * include/grub/misc.h (grub_iscntrl): New inline function.
27162 (grub_isalnum): Likewise.
27163 (grub_strtol): Likewise.
27164
271652010-02-06 Colin D Bennett <colin@gibibit.com>
27166
27167 * normal/menu_text.c (get_entry_number): Move from here ...
27168 * normal/menu.c (get_entry_number): ... moved here.
27169 * include/grub/menu.h (grub_menu_get_default_entry_index):
27170 New prototype.
27171 * normal/menu.c (grub_menu_get_default_entry_index): New function.
27172 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
27173 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
27174 (grub_menu_viewer_should_return): Likewise.
27175 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
27176 * normal/menu_text.c (run_menu): Enable menu switching.
27177 * normal/menu_viewer.c (should_return): New variable.
27178 (menu_viewer_changed): Likewise.
27179 (grub_menu_viewer_show_menu): Handle menu viewer changes.
27180 (grub_menu_viewer_should_return): New function.
27181 (menuviewer_write_hook): Likewise.
27182 (grub_menu_viewer_init): Likewise.
27183
271842010-02-06 Colin D Bennet <colin@gibibit.com>
271852010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27186
27187 Support for gfxterm in a window.
27188
27189 * include/grub/gfxterm.h: New file.
27190 * include/grub/video.h (struct grub_video_rect): New declaration.
27191 (grub_video_rect_t): Likewise.
27192 * term/gfxterm.c (struct grub_gfxterm_window): New type.
27193 (refcount): New variable.
27194 (render_target): Likewise.
27195 (window): Likewise.
27196 (repaint_callback): Likewise.
27197 (grub_virtual_screen_setup): Use 'render_target'.
27198 (init_window): New function.
27199 (grub_gfxterm_init_window): Likewise.
27200 (grub_gfxterm_init): Check reference counter.
27201 Use init_window.
27202 (destroy_window): New function.
27203 (grub_gfxterm_destroy_window): Likewise.
27204 (grub_gfxterm_fini): Check reference counter.
27205 Use destroy_window.
27206 (redraw_screen_rect): Restore viewport.
27207 Use 'render_target' and 'window'.
27208 Call 'repaint_callback'.
27209 (write_char): Use 'render_target'.
27210 (draw_cursor): Likewise.
27211 (scroll_up): Restore viewport.
27212 Use 'render_target' and 'window'.
27213 Call 'repaint_callback'.
27214 (grub_gfxterm_cls): Likewise.
27215 (grub_gfxterm_refresh): Use 'window'.
27216 (grub_gfxterm_set_repaint_callback): New function.
27217 (grub_gfxterm_background_image_cmd): Use 'window'.
27218 (grub_gfxterm_get_term): New function.
27219 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
27220
272212010-02-06 Colin D Bennett <colin@gibibit.com>
27222
27223 Bitmap scaling support.
27224
27225 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
27226 (bitmap_scale_mod_SOURCES): New variable.
27227 (bitmap_scale_mod_CFLAGS): Likewise.
27228 (bitmap_scale_mod_LDFLAGS): Likewise.
27229 * include/grub/bitmap_scale.h: New file.
27230 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
27231 (background_image_cmd_options): New variable.
27232 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
27233 (cmd): Rename and change type to ...
27234 (background_image_cmd_handle): ... this. All users updated.
27235 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
27236 * video/bitmap_scale.c: New file.
27237
272382010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27239
27240 SDL support.
27241
27242 * Makefile.in (LIBSDL): New variable.
27243 (enable_grub_emu_sdl): Likewise.
27244 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
27245 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
27246 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
27247 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
27248 * util/sdl.c: New file.
27249
272502010-02-06 Colin D Bennett <colin@gibibit.com>
272512010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27252
27253 Double buffering support.
27254
27255 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
27256 * include/grub/video.h: Update comment.
27257 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
27258 New type.
27259 (grub_video_fb_doublebuf_blit_init): New prototype.
27260 * term/gfxterm.c (scroll_up): Support double buffering.
27261 (grub_gfxterm_refresh): Likewise.
27262 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
27263 (grub_video_fb_doublebuf_blit_init): Likewise.
27264 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
27265 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
27266 'displayed_page', 'render_page' and 'update_screen'.
27267 (grub_video_vbe_fini): Free offscreen buffer.
27268 (doublebuf_pageflipping_commit): New function.
27269 (doublebuf_pageflipping_update_screen): Likewise.
27270 (doublebuf_pageflipping_init): Likewise.
27271 (double_buffering_init): Likewise.
27272 (grub_video_vbe_setup): Enable doublebuffering.
27273 (grub_video_vbe_swap_buffers): Implement.
27274 (grub_video_vbe_set_active_render_target): Handle double buffering.
27275 (grub_video_vbe_get_active_render_target): Likewise.
27276 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
27277 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
27278 (grub_video_vbe_enable_double_buffering): Likewise.
27279 (grub_video_vbe_swap_buffers): Use update_screen.
27280 (grub_video_set_mode): Use double buffering.
27281
272822010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27283
27284 * maintainance/gentrigtables.py: Remove.
27285 * lib/trig.c: Likewise.
27286
27287 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
27288
27289 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
27290 `trigtables.c'.
27291 (trigtables.c): New rule.
27292 (gentrigtables): Likewise.
27293 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
27294
272952010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27296
27297 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
27298 integer constants.
27299
273002010-02-06 Colin D Bennet <colin@gibibit.com>
27301
27302 Trigonometry support.
27303
27304 * include/grub/trig.h: New file.
27305 * lib/trig.c: Likewise.
27306 * maintainance/gentrigtables.py: Likewise.
27307 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
27308 (trig_mod_SOURCES): New variable.
27309 (trig_mod_CFLAGS): Likewise.
27310 (trig_mod_LDFLAGS): Likewise.
27311
5562834e
VS
273122010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27313
27314 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
27315 disk devices.
27316
4f8528fc
VS
273172010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27318
27319 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
27320 error.
27321
2b4068e9
VS
273222010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27323
27324 * util/hostdisk.c (open_device): Don't use partition device when reading
27325 before the partition.
27326 (grub_util_biosdisk_read): Don't read from partition and before the
27327 partition in single operation.
27328 (grub_util_biosdisk_write): Don't write to partition and before the
27329 partition in single operation.
27330
399f6e4d
TL
273312010-02-03 Torsten Landschoff <torsten@debian.org>
27332
27333 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27334 last sectors.
27335
996649b0
VS
273362010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27337
27338 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
27339 CDROM reads.
27340 (grub_biosdisk_write): Refuse to write to CDROM.
27341
3b205d4d
VS
273422010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27343
27344 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
27345
61e89d9d
VS
273462010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27347
27348 * font/font.c (find_glyph): Check that bmp_idx is available before
27349 using it.
27350 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
27351 with (font == NULL).
27352
bf7fcba2
CS
273532010-01-28 Christian Schmitt <chris@ilovelinux.de>
27354
27355 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
27356
f45d2663
BC
273572010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
27358
27359 * include/grub/script_sh.h (sourcecode): Add const qualifier.
27360 * util/grub-script-check.c (getline): Fix empty lines case.
27361
ec1444e6
RM
273622010-01-28 Robert Millan <rmh.grub@aybabtu.com>
27363
27364 * Makefile.in (check): Exit with fail status when one of the tests
27365 fails.
27366 * tests/example_functional_test.c (example_test): Fix reversed assert.
27367 * tests/example_unit_test.c (example_test): Likewise.
27368
2e1cb9bb
CW
273692010-01-28 Colin Watson <cjwatson@ubuntu.com>
27370
27371 * util/grub.d/10_linux.in: This script does not use any of the
27372 contents of gettext.sh, only the external command `gettext', so stop
27373 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
27374 the same prefix as GRUB.)
27375 * util/grub.d/10_kfreebsd.in: Likewise.
27376
63533ab0
VS
273772010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27378
27379 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
27380 of the line.
27381
989e1f93
VS
273822010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27383
27384 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27385 last sectors.
27386
e709ebe2
VS
273872010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27388
27389 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
27390 having a 4KiB and not 32KiB buffer size.
27391
27dea7ed
RM
273922010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27393
27394 * util/hostfs.c: Include `<errno.h>'.
27395 (grub_hostfs_read): Handle errors from fseeko() and fread().
27396
67667b9c
RM
273972010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27398
27399 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
27400 loop when using read hooks on files whose size isn't sector-aligned.
27401
c294d9d8
RM
274022010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27403
27404 Remove unused parameter.
27405
27406 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
27407 (grub_iso9660_open): Remove initialization of `data->length'.
27408
af75a9f1
RM
274092010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27410
27411 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
27412 memleak conditions.
27413
254e2ce5 274142010-01-27 Carles Pina i Estany <carles@pina.cat>
27415
27416 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
27417 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
27418
b510928c 274192010-01-26 Carles Pina i Estany <carles@pina.cat>
27420
27421 * util/bin2h.c (usage): Fix warning (space after backslash).
27422
aa2f9dd2 274232010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 27424
27425 * font/font.c: Include `grub/fontformat.h.
27426 Remove font file format constants.
27427 (grub_font_load): Use the new macros.
27428 * include/grub/fontformat.h: New file.
27429 * util/grub-mkfont.c: Include `grub/fontformat.c'.
27430 (write_font_pf2): Use the new macros.
27431
94e7e712
RM
274322010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27433
27434 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
27435 does.
27436
3973a59a
RM
274372010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27438
27439 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
27440
27441 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
27442 (_start): Macroify `0x7F'.
27443
27444 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
27445 (make_install_device): Use "(pxe)" as fallback prefix when booting
27446 via PXE.
27447
42e0cba3
GS
274482010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
27449
27450 * configure.ac: Reset LIBS after check for libgcc symbols.
27451
847effd8
CW
274522010-01-25 Colin Watson <cjwatson@ubuntu.com>
27453
27454 * util/hostdisk.c (open_device): Add trailing newline to debug
27455 message.
27456
ea4a7e35
GS
274572010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
27458
27459 * configure.ac: Check for `limits.h'.
27460 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
27461
67951a53
RM
274622010-01-24 Robert Millan <rmh.grub@aybabtu.com>
27463
27464 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
27465 capitalize error strings.
27466
c273d4ce
ST
274672010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27468
27469 * util/grub.d/10_hurd.in: Add a recovery mode.
27470
69be5b74
VS
274712010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
27472
27473 * configure.ac: Check for libgcc symbols with -nostdlib.
27474
fc9e5810
BC
274752010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
27476
27477 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
27478
4b358c0a
VS
274792010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27480
27481 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
27482 stack since heap may be unavailable at that point.
27483 (grub_ofconsole_gotoxy): Likewise.
27484
454fcd1c
VS
274852010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27486
27487 * configure.ac: Check for _restgpr_14_x.
27488 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
27489 and _savegpr_* prototypes.
27490
566863ca
RM
274912010-01-22 Robert Millan <rmh.grub@aybabtu.com>
27492
27493 Use generic grub_reboot() for i386-efi.
27494
27495 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
27496 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
27497 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
27498
bf86e59a
VS
274992010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27500
27501 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
27502 presence of "prefix" variable as it breaks when normal.mod is
27503 embedded.
27504
d645e0f8
VS
275052010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27506
27507 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
27508 stack since heap is unavailable at that point.
27509
f9ab2e25
VS
275102010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27511
27512 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
27513 (grub_freebsd_bootinfo): Rewritten.
27514 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
27515
01fc7054
VS
275162010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27517
27518 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
27519
caab4fd6
RM
275202010-01-21 Robert Millan <rmh.grub@aybabtu.com>
27521
27522 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
27523 domain now.
27524
67eb1427
FZ
275252010-01-20 Felix Zielcke <fzielcke@z-51.de>
27526
27527 * util/misc.c (make_system_path_relative_to_its_root): Change the work
27528 around for handling "/" to the correct fix. Fix a memory leak. Use
27529 xstrdup instead of strdup.
27530
a9ed4ff3
VS
275312010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27532
27533 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
27534
275352010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
27536
27537 Optimise glyph lookup by Basic Multilingual Plane lookup array.
27538
27539 * font/font.c (struct grub_font): New member 'bmp_idx'.
27540 (font_init): Initialise 'bmp_idx'.
27541 (load_font_index): Fill 'bmp_idx'.
27542 (find_glyph): Make inline. Use bmp_idx for BMP characters.
27543
48209f4f
VS
275442010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27545
27546 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
27547 unnecessary calls.
27548
9f0a4bb7
VS
275492010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27550
27551 Move context handling out of the kernel.
27552
27553 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
27554 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
27555 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
27556 * conf/i386-efi.rmk: Likewise.
27557 * conf/i386-ieee1275.rmk: Likewise.
27558 * conf/i386-pc.rmk: Likewise.
27559 * conf/powerpc-ieee1275.rmk: Likewise.
27560 * conf/sparc64-ieee1275.rmk: Likewise.
27561 * conf/x86_64-efi.rmk: Likewise.
27562 * include/grub/env.h: Include grub/menu.h.
27563 (grub_env_var_type): Removed.
27564 (grub_env_var): Replaced field 'type' with 'global'.
27565 (grub_env_find): New prototype.
27566 (grub_env_context_open): Remove EXPORT_FUNC.
27567 (grub_env_context_close): Likewise.
27568 (grub_env_export): Likewise.
27569 (grub_env_set_data_slot): Removed.
27570 (grub_env_get_data_slot): Likewise.
27571 (grub_env_unset_data_slot): Likewise.
27572 (grub_env_unset_menu): New prototype.
27573 (grub_env_set_menu): Likewise.
27574 (grub_env_get_menu): Likewise.
27575 * include/grub/env_private.h: New file.
27576 * include/grub/normal.h (grub_context_init): New prototype.
27577 (grub_context_fini): Likewise.
27578 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
27579 * normal/context.c (grub_cmd_export): ... to here.
27580 * kern/env.c: Include env_private.h.
27581 (HASHSZ): Moved to include/grub/env_private.h.
27582 (grub_env_context): Likewise.
27583 (grub_env_sorted_var): Likewise.
27584 (current_context): Renamed from this ...
27585 (grub_current_context): ...to this. 'static' removed. All users updated.
27586 (grub_env_find): Removed 'static'.
27587 (grub_env_context_open): Moved to normal/context.c.
27588 (grub_env_context_close): Likewise.
27589 (grub_env_export): Likewise.
27590 (mangle_data_slot_name): Removed.
27591 (grub_env_set_data_slot): Likewise.
27592 (grub_env_get_data_slot): Likewise.
27593 (grub_env_unset_data_slot): Likewise.
27594 * kern/main.c (grub_set_root_dev): Don't export root.
27595 It will be done later.
27596 (grub_main): Don't export prefix.
27597 It will be done later.
27598 * normal/context.c: New file.
27599 * normal/main.c (free_menu): Use grub_env_unset_menu.
27600 (grub_normal_add_menu_entry): Use grub_env_get_menu.
27601 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
27602 (GRUB_MOD_INIT(normal)): Call grub_context_init.
27603 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
27604
8dd35b8c
VS
276052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27606
27607 setpci support.
27608
27609 * commands/setpci.c: New file.
27610 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
27611 (setpci_mod_SOURCES): New variable.
27612 (setpci_mod_CFLAGS): Likewise.
27613 (setpci_mod_LDFLAGS): Likewise.
27614
449193d5
VS
276152010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27616
27617 Byte-addressable PCI configuration space.
27618
27619 * bus/pci.c (grub_pci_make_address): Use byte address instead of
27620 dword address.
27621 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
27622 GRUB_PCI_REG_CACHELINE.
27623 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
27624 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
27625 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
27626 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
27627 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
27628 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
27629 grub_pci_make_address.
27630 (lock_rom_area): Likewise.
27631 * commands/lspci.c (grub_lspci_iter): Use macroses
27632 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
27633 of grub_pci_make_address.
27634 * disk/ata.c (grub_ata_pciinit): Likewise.
27635 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
27636 (GRUB_PCI_REG_VENDOR): Likewise.
27637 (GRUB_PCI_REG_DEVICE): Likewise.
27638 (GRUB_PCI_REG_COMMAND): Likewise.
27639 (GRUB_PCI_REG_STATUS): Likewise.
27640 (GRUB_PCI_REG_REVISION): Likewise.
27641 (GRUB_PCI_REG_CLASS): Likewise.
27642 (GRUB_PCI_REG_CACHELINE): Likewise.
27643 (GRUB_PCI_REG_LAT_TIMER): Likewise.
27644 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
27645 (GRUB_PCI_REG_BIST): Likewise.
27646 (GRUB_PCI_REG_ADDRESSES): Likewise.
27647 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27648 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27649 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27650 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27651 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27652 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
27653 (GRUB_PCI_REG_CIS_POINTER): Likewise.
27654 (GRUB_PCI_REG_SUBVENDOR): Likewise.
27655 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
27656 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
27657 (GRUB_PCI_REG_CAP_POINTER): Likewise.
27658 (GRUB_PCI_REG_IRQ_LINE): Likewise.
27659 (GRUB_PCI_REG_IRQ_PIN): Likewise.
27660 (GRUB_PCI_REG_MIN_GNT): Likewise.
27661 (GRUB_PCI_REG_MAX_LAT): Likewise.
27662 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
27663 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
27664 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 27665 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
27666 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
27667 space.
27668
96d73208
RM
276692010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27670
27671 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
27672 can be reliably determined to be supported.
27673
d4484482
RM
276742010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27675
27676 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
27677 that VESA is supported.
27678 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
27679 supported.
27680
00308ecf
VS
276812010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27682
27683 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
27684
f66924a4
RM
276852010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27686
27687 * util/misc.c (make_system_path_relative_to_its_root): Work around
27688 special-casing of "/", as previous incarnation of this routine did.
27689
cbca0ada
VS
276902010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27691
27692 Fix any-emu compilation.
27693
27694 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
27695 * grub_bin2h_SOURCES: New variable.
27696
34a66d99
RM
276972010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27698
27699 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
27700
94fabf58
RM
277012010-01-20 Robert Millan <rmh.grub@aybabtu.com>
27702
27703 * util/grub.d/00_header.in: Fix handling of locale_dir.
27704
02cf98ca
VS
277052010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27706
27707 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
27708 as possible unifont location (Gentoo).
27709 Reported by: Alexander Brüning
27710
327dbcd7
VS
277112010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27712
27713 Don't try to generate lists for kernel.img.
27714
27715 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
27716 (pkglib_MODULES): Remove kernel.img.
27717 (kernel_img_EXPORTS): Removed.
27718 (kernel_img_RELOCATABLE): New variable.
27719 * conf/x86_64-efi.rmk: Likewise.
27720 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
27721
ca467290
VS
277222010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27723
27724 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
27725 grub_xasprintf or grub_snprintf.
27726 (grub_vsprintf): Likewise.
27727 (grub_snprintf): New proto.
27728 (grub_vsnprintf): Likewise.
27729 (grub_xasprintf): Likewise.
27730 (grub_xvasprintf): Likewise.
27731 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
27732 (grub_sprintf): Removed.
27733 (grub_vsnprintf): New function.
27734 (grub_snprintf): Likewise.
27735 (grub_xvasprintf): Likewise.
27736 (grub_xasprintf): Likewise.
27737 (grub_vsprintf): Renamed to ...
27738 (grub_vsnprintf_real): ...this. New argument max_len.
27739
aca655fd
BC
277402010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
27741
27742 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
27743 fix grub-script-check warning.
27744
7ee92c32
VS
277452010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27746
27747 * include/grub/font.h (grub_font_load): Fix prototype.
27748
f80927ca
VS
277492010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27750
27751 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
27752
119c50ea
VS
277532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27754
27755 * include/grub/x86_64/at_keyboard.h: New file.
27756
47d5f3c1
VS
277572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27758
27759 * loader/mips/linux.c: Include missing grub/i18n.h.
27760
55ff5266
RM
277612009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27762
27763 * normal/menu.c (notify_execution_failure): Clarify error message.
27764
c893cc87
RM
277652009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27766
27767 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
27768 return value (and revert all return statements). Update users.
27769
917dd370
CW
277702010-01-20 Dan Merillat <debian@dan.merillat.org>
27771
27772 * kern/device.c (grub_device_iterate): Allocate new part_ent
27773 structure based on sizeof (*p) rather than sizeof (p->next), to
27774 account for structure padding.
27775
27776 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
27777 disk is NULL, which might happen for LVM physical volumes with no
27778 LVM signature.
27779
d4a4ee57
RM
277802009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27781
27782 * loader/mips/linux.c (grub_cmd_initrd)
27783 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
27784
277852009-12-20 Robert Millan <rmh.grub@aybabtu.com>
27786
27787 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
27788 (grub_video_video_init, grub_video_bitmap_init)
27789 (grub_font_manager_init, grub_term_gfxterm_init)
27790 (grub_at_keyboard_init): New extern declarations.
27791 (grub_machine_init): Initialize gfxterm and at_keyboard.
27792
27793 * kern/main.c (grub_main): Revert grub_printf delay kludge.
27794
27795 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
27796 `gfxterm.mod' into core image.
27797
27798 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27799 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27800 (kernel_img_FORMAT): Copy to ...
27801
27802 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27803 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27804 (kernel_img_FORMAT): ... here, and ...
27805
27806 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
27807 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
27808 (kernel_img_FORMAT): ... here.
27809
27810 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
27811 and input (at_keyboard) terminals in kernel.
27812 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
27813
27814 (pkglib_MODULES): Remove `pci.mod'.
27815 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
27816 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
27817 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27818 (at_keyboard_mod_LDFLAGS): Remove variables.
27819
278202010-01-11 Felix Zielcke <fzielcke@z-51.de>
27821
27822 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
27823
278242009-12-10 Robert Millan <rmh.grub@aybabtu.com>
27825
27826 * include/grub/mips/libgcc.h: Only export symbols for functions
27827 that libgcc provides.
27828
278292009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
27830
27831 MIPS support.
27832
27833 * bus/bonito.c: New file.
27834 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
27835 GRUB_PCI_NUM_DEVICES.
27836 * term/i386/pc/serial.c: Move to ...
27837 * term/serial.c: ... here. All users updated.
27838 * util/i386/pc/grub-mkimage.c: Move to ...
27839 * util/grub-mkrawimage.c: ... here. All users updated.
27840 * term/i386/pc/at_keyboard.c: Move to ...
27841 * term/at_keyboard.c: ... here. All users updated.
27842 * conf/mips-qemu-mips.rmk: New file.
27843 * conf/mips-yeeloong.rmk: Likewise.
27844 * conf/mips.rmk: Likewise.
27845 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
27846 mipsel-qemu-mips.
27847 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
27848 to port addresses.
27849 (grub_ata_pciinit): Support CS5536.
27850 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
27851 * font/font_cmd.c (loadfont_command): Open file before passing it to
27852 grub_font_load.
27853 (pseudo_file_read): New function.
27854 (pseudo_file_close): Likewise.
27855 (pseudo_fs): New structure.
27856 (load_font_module): New function.
27857 (GRUB_MOD_INIT(font_manager)): Load embedded font.
27858 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
27859 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
27860 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
27861 * include/grub/i386/at_keyboard.h: Split into ...
27862 * include/grub/at_keyboard.h: ... this ...
27863 * include/grub/i386/at_keyboard.h: ... and this.
27864 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
27865 New prototype.
27866 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
27867 updated.
27868 (grub_elf64_size): Likewise.
27869 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
27870 filename.
27871 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
27872 * include/grub/i386/coreboot/serial.h: Rewritten.
27873 * include/grub/i386/ieee1275/serial.h: Include
27874 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
27875 * include/grub/i386/pc/serial.h: Moved from here ...
27876 * include/grub/serial.h: ... to here. All users updated.
27877 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
27878 (GRUB_PCI_NUM_BUS): Likewise.
27879 (GRUB_PCI_NUM_DEVICES): Likewise.
27880 (grub_pci_device_map_range): Add missing volatile keyword.
27881 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
27882 * include/grub/mips/at_keyboard.h: New file.
27883 * include/grub/mips/cache.h: Likewise.
27884 * include/grub/mips/io.h: Likewise.
27885 * include/grub/mips/kernel.h: Likewise.
27886 * include/grub/mips/libgcc.h: Likewise.
27887 * include/grub/mips/pci.h: Likewise.
27888 * include/grub/mips/qemu-mips/boot.h: Likewise.
27889 * include/grub/mips/qemu-mips/kernel.h: Likewise.
27890 * include/grub/mips/qemu-mips/loader.h: Likewise.
27891 * include/grub/mips/qemu-mips/memory.h: Likewise.
27892 * include/grub/mips/qemu-mips/serial.h: Likewise.
27893 * include/grub/mips/qemu-mips/time.h: Likewise.
27894 * include/grub/mips/relocator.h: Likewise.
27895 * include/grub/mips/time.h: Likewise.
27896 * include/grub/mips/types.h: Likewise.
27897 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
27898 * include/grub/mips/yeeloong/boot.h: Likewise.
27899 * include/grub/mips/yeeloong/kernel.h: Likewise.
27900 * include/grub/mips/yeeloong/loader.h: Likewise.
27901 * include/grub/mips/yeeloong/memory.h: Likewise.
27902 * include/grub/mips/yeeloong/pci.h: Likewise.
27903 * include/grub/mips/yeeloong/serial.h: Likewise.
27904 * include/grub/mips/yeeloong/time.h: Likewise.
27905 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
27906 * kern/elf.c (grub_elf32_size): New parameter. All users
27907 updated.
27908 (grub_elf64_size): Likewise.
27909 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
27910 Load modules before saying "Welcome to GRUB!".
27911 Call grub_refresh after saying "Welcome to GRUB!".
27912 * kern/mips/cache.S: New file.
27913 * kern/mips/cache_flush.S: Likewise.
27914 * kern/mips/dl.c: Likewise.
27915 * kern/mips/init.c: Likewise.
27916 * kern/mips/qemu-mips/init.c: Likewise.
27917 * kern/mips/startup.S: Likewise.
27918 * kern/mips/yeeloong/init.c: Likewise.
27919 * kern/term.c (grub_putcode): Handle NULL terminal.
27920 (grub_getcharwidth): Likewise.
27921 (grub_getkey): Likewise.
27922 (grub_checkkey): Likewise.
27923 (grub_getkeystatus): Likewise.
27924 (grub_getxy): Likewise.
27925 (grub_getwh): Likewise.
27926 (grub_gotoxy): Likewise.
27927 (grub_cls): Likewise.
27928 (grub_setcolorstate): Likewise.
27929 (grub_setcolor): Likewise.
27930 (grub_getcolor): Likewise.
27931 (grub_refresh): Likewise.
27932 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
27933 (write_jump): Add hatch nop.
27934 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
27935 * lib/mips/setjmp.S: New file.
27936 * loader/mips/linux.c: Likewise.
27937 * term/i386/pc/at_keyboard.c: Move from here ...
27938 * term/at_keyboard.c: ... to here.
27939 * term/i386/pc/serial.c: Moved from here ...
27940 * term/serial.c: ... to here. All users updated.
27941 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
27942 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
27943 (serial_translate_key_sequence): Avoid deadlock.
27944 (grub_serial_getkey): Handle backspace.
27945 (grub_serial_putchar): Fix newline handling.
27946 * util/i386/pc/grub-mkimage.c: Move from here ...
27947 * util/grub-mkrawimage.c: ... to here. All users updated.
27948 (generate_image): New parameters 'font_path' and 'format'.
27949 Support embedding font.
27950 Use grub_host_to_target* instead of grub_cpu_to_le*.
27951 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
27952 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
27953 (options): New option "--font".
27954 (usage): Likewise.
27955 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
27956 (main): Handle "--font".
27957 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
27958 (grub_virtual_screen_setup): Set bg_color_display.
27959 (redraw_screen_rect): Use bg_color_display instead of incorrect
27960 bg_color.
27961 (grub_gfxterm_cls): Likewise.
27962 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
27963 Support embedding config file.
27964 (add_segments): Likewise.
27965 (options): New option "--config".
27966 (main): Handle "--config".
27967 * video/sm712.c: New file.
27968
25c2b5b3
RM
279692010-01-18 Robert Millan <rmh.grub@aybabtu.com>
27970
27971 Fix parallel builds.
27972
27973 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
27974 font.c depend on ascii.h).
27975
279762010-01-12 Carles Pina i Estany <carles@pina.cat>
27977
27978 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
27979
279802010-01-11 Carles Pina i Estany <carles@pina.cat>
27981
27982 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
27983 By default: disabled.
27984 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
27985 parameter.
27986
279872010-01-10 Carles Pina i Estany <carles@pina.cat>
27988
27989 * font/font.c: Update copyright years.
27990 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
27991
279922010-01-10 Carles Pina i Estany <carles@pina.cat>
27993
27994 * font/font.c: Include `ascii.h'.
27995 (ASCII_BITMAP_SIZE): New macro.
27996 (ascii_font_glyph): Define.
27997 (ascii_glyph_lookup): New function.
27998 (grub_font_get_string_width): Change comment. If glyph not found, use
27999 ascii_glyph_lookup.
28000 (grub_font_get_glyph_with_fallback): If glyph not available returns
28001 ascii_glyph_lookup.
28002 * util/grub-mkfont.c (file_formats): New enum.
28003 (options): Add `ascii-bitmaps' new option.
28004 (usage): Add `asii-bitmaps' new option.
28005 (write_font_ascii_bitmap): New function.
28006 (write_font): Rename to ...
28007 (write_font_p2): ... this. Remove print_glyphs call.
28008 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
28009 used. Call print_glyphs.
28010 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
28011
280122010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28013
28014 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
28015 (grub_bin2h_SOURCES): New variable.
28016 * util/bin2h.c: New file.
28017
915fc1b8
VS
280182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28019
28020 * include/multiboot.h: Resynced with spec.
28021 * include/multiboot2.h: Likewise.
28022 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
28023 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
28024
9444b678
RM
280252010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28026
28027 * include/grub/term.h (grub_term_register_input,
28028 grub_term_register_output): Check return of terminal init()
28029 routines, and abort if errors are raised.
28030
28031 * commands/terminal.c: Update copyright year.
28032
cba98e8d
RM
280332010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28034
28035 * commands/terminal.c (grub_cmd_terminal_input)
28036 (grub_cmd_terminal_output): Check return of terminal init()
28037 routines, and abort if errors are raised.
28038
6f7db5d6
VS
280392010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28040
28041 * include/grub/i386/bsd.h: Fix include pathes.
28042
262bff8d
VS
280432010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28044
28045 Add missing *BSD copyright headers.
28046
28047 * include/grub/aout.h: Add BSD licence.
28048 * include/grub/i386/bsd.h: Parts under different licences moved to ...
28049 * include/grub/i386/freebsd_linker.h: ... here,
28050 * include/grub/i386/freebsd_reboot.h: ... here,
28051 * include/grub/i386/netbsd_bootinfo.h: ... here,
28052 * include/grub/i386/netbsd_reboot.h: ... here,
28053 * include/grub/i386/openbsd_bootarg.h: ... here,
28054 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
28055 licence to each file.
28056
b2cab848
RM
280572010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28058
28059 * acinclude.m4: Remove `nop' assembly instruction; it's not
28060 implemented by all architectures.
28061
2cb6be4b
RM
280622010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28063
28064 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
28065 ELILO. This is no longer necessary.
28066
a2eaee15
BC
280672010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
28068
28069 Added new tool, grub-scrit-check to verify grub.cfg syntax.
28070
28071 * util/grub-script-check.c: grub-script-check tool.
28072 * conf/common.rmk: Make rules for grub-script-check.
28073
88d17012
RM
280742010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28075
28076 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
28077 spotting it back in 2008. Shame on me for forgetting he did.
28078
28079 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
28080
8040619d
RM
280812010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28082
28083 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
28084 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
28085 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
28086 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
28087 (GRUB_VIDEO_TYPE_EFI): Rename to ...
28088 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
28089
a0c2a0f6
RM
280902010-01-17 Robert Millan <rmh.grub@aybabtu.com>
28091
28092 * include/grub/test.h: Add license header.
28093 * tests/example_functional_test.c: Likewise.
28094 * tests/example_unit_test.c: Likewise.
28095 * tests/lib/functional_test.c: Likewise.
28096 * tests/lib/test.c: Likewise.
28097 * tests/lib/unit_test.c: Likewise.
28098
b0b13907
VS
280992010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
28100
28101 Use flag-based instead of hook-based video mode selection and "auto"
28102 keyword.
28103
28104 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
28105 (grub_video_set_mode): Changed prototype. All users updated.
28106 (grub_video_check_mode_flag): New inline function.
28107 * video/video.c (parse_modespec): New function.
28108 (grub_video_set_mode): Parse flags and keywords.
28109
ea379330 281102010-01-17 Carles Pina i Estany <carles@pina.cat>
28111
28112 * util/misc.c (grub_util_info): Fix the order of the parameters in a
28113 fprintf call.
28114
e15c215e
FZ
281152010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
28116
28117 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
28118
409ae1c9 281192010-01-16 Carles Pina i Estany <carles@pina.cat>
28120
28121 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
28122 string.
28123 * util/grub-emu.c (usage): Likewise.
28124 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
28125 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28126 * util/i386/pc/grub-mkimage.c (usage): Likewise.
28127 * util/i386/pc/grub-setup.c (usage): Likewise.
28128
70a14d3d 281292010-01-16 Carles Pina i Estany <carles@pina.cat>
28130
28131 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
28132 the message.
28133 (grub_util_info): Likewise.
28134 (grub_util_error): Likewise.
28135 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
28136 and/or new lines in `grub_util_warna', `grub_util_info',
28137 `grub_util_error' calls.
28138 * util/getroot.c: Likewise.
28139 * util/grub-editenv.c: Likewise.
28140 * util/grub-emu.c: Likewise.
28141 * util/grub-fstest.c: Likewise.
28142 * util/grub-mkdevicemap.c: Likewise.
28143 * util/grub-mkfont.c: Likewise.
28144 * util/grub-mkpasswd-pbkdf2.c: Likewise.
28145 * util/grub-mkrelpath.c: Likewise.
28146 * util/grub-pe2elf.c: Likewise.
28147 * util/grub-probe.c: Likewise.
28148 * util/hostdisk.c: Likewise.
28149 * util/i386/efi/grub-mkimage.c: Likewise.
28150 * util/i386/pc/grub-mkimage.c: Likewise.
28151 * util/i386/pc/grub-setup.c: Likewise.
28152 * util/ieee1275/ofpath.c: Likewise.
28153 * util/mkisofs/eltorito.c: Likewise.
28154 * util/mkisofs/rock.c: Likewise.
28155 * util/mkisofs/write.c: Likewise.
28156 * util/raid.c: Likewise.
28157 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28158 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28159
a0b766fc
VS
281602010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28161
28162 Enable multiboot on non-pc.
28163
28164 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
28165 multiboot.mod and multiboot2.mod to ...
28166 * conf/i386.rmk (pkglib_MODULES): ... here.
28167 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
28168 Moved to ...
28169 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
28170 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
28171 Moved to ...
28172 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
28173 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
28174 Moved to ...
28175 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
28176 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
28177 Moved to ...
28178 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
28179 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
28180 relocator.mod.
28181 (ata_mod_SOURCES): Removed.
28182 (ata_mod_CFLAGS): Likewise.
28183 (ata_mod_LDFLAGS): Likewise.
28184 (relocator_mod_SOURCES): Removed.
28185 (relocator_mod_CFLAGS): Likewise.
28186 (relocator_mod_ASFLAGS): Likewise.
28187 (relocator_mod_LDFLAGS): Likewise.
28188 Include i386.mk.
28189 * include/grub/x86_64/multiboot.h: New file.
28190 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
28191 Terminate EFI.
28192
884ade56
VS
281932010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28194
28195 Video multiboot support.
28196
28197 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
28198 New prototype.
28199 * include/multiboot.h: Resynced with multiboot specification.
28200 * include/multiboot2.h: Likewise.
28201 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
28202 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
28203 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
28204 (HAS_VGA_TEXT): Likewise.
28205 (accepts_video): New variable.
28206 (grub_multiboot_set_accepts_video): New function.
28207 (grub_multiboot_get_mbi_size): Account for video structures.
28208 (set_video_mode): New function.
28209 (retrieve_video_parameters): Likewise.
28210 (grub_multiboot_make_mbi): Fill video fields.
28211
0d90e8a6
VS
282122010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28213
28214 Video driver ids.
28215
28216 * include/grub/video.h (grub_video_driver_id): New type.
28217 (grub_video_adapter): New member 'id'. All users updated.
28218 (grub_video_get_driver_id): New proto.
28219 * video/video.c (grub_video_get_driver_id): New function.
28220
5c71db1b 282212010-01-14 Carles Pina i Estany <carles@pina.cat>
28222
28223 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
28224 `var=val'.
28225
cca15b52 282262010-01-14 Carles Pina i Estany <carles@pina.cat>
28227
28228 * normal/cmdline.c (print_completion): Gettextizze.
28229
c586fbb2 282302001-01-14 Carles Pina i Estany <carles@pina.cat>
28231
28232 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
28233
ba2f6848 282342010-01-14 Carles Pina i Estany <carles@pina.cat>
28235
28236 * gettext/gettext.c (grub_gettext_translate): Push and pop
28237 grub_errno.
28238 (grub_gettext_delete_list): Change comment style.
28239 * kern/err.c (grub_error): Gettextizze.
28240 (grub_fatal): Gettextizze.
28241
0a46429a
RM
282422010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28243
28244 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
28245 (grub_linux16_real_boot): ... this.
28246 * kern/i386/loader.S: Likewise.
28247 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
28248 (grub_linux16_boot): New function. Switches to text mode and calls
28249 grub_linux16_real_boot().
28250
28251 * loader/i386/bsd.c: Include `<grub/video.h>'.
28252 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
28253 text mode before calling grub_unix_real_boot().
28254
28255 * loader/i386/multiboot.c: Include `<grub/video.h>'.
28256 (grub_multiboot_boot): Switch to text mode before calling
28257 grub_relocator32_boot().
28258
28259 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
28260 (grub_chainloader_boot): Switch to text mode before calling
28261 grub_chainloader_real_boot().
28262
d6f93a66
RM
282632010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
282642010-01-05 Colin Watson <cjwatson@ubuntu.com>
28265
28266 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
28267 non-empty value.
28268
282692010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
282702010-01-05 Colin Watson <cjwatson@ubuntu.com>
28271
28272 * util/grub.d/00_header.in: Define a "savedefault" function for use
28273 in menu entries.
28274 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
28275
282762010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
282772010-01-05 Colin Watson <cjwatson@ubuntu.com>
28278
28279 * util/grub-mkconfig_lib.in (save_default_entry): Only set
28280 saved_entry if boot_once is unset.
28281 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
28282 previous saved entry (i.e. grub-reboot).
28283
282842009-12-08 Colin Watson <cjwatson@ubuntu.com>
28285
28286 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
28287
282882009-12-08 Colin Watson <cjwatson@ubuntu.com>
28289
28290 * util/grub.d/00_header.in: Use `set var=val' rather than plain
28291 `var=val'.
28292 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
28293
282942009-12-08 Colin Watson <cjwatson@ubuntu.com>
28295
28296 * util/grub-reboot.in: Fix --version output.
28297 * util/grub-set-default.in: Likewise.
28298
282992009-12-08 Colin Watson <cjwatson@ubuntu.com>
28300
28301 * util/grub.d/00_header.in: Silently ignore zero-sized environment
28302 blocks.
28303
283042009-12-08 Colin Watson <cjwatson@ubuntu.com>
28305
28306 * util/grub.d/00_header.in: Quote the value assigned to `default',
28307 in case it contains spaces.
28308
283092009-12-08 Colin Watson <cjwatson@ubuntu.com>
28310
28311 * util/grub.d/30_os-prober.in: Fix merge error that moved a
28312 `save_default_entry' call from the macosx case to the linux case.
28313
283142009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
283152009-10-25 Colin Watson <cjwatson@ubuntu.com>
28316
28317 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
28318 in `chosen' environment variable.
28319 * normal/menu_text.c (get_entry_number): Check if the variable
28320 matches the title of a menu entry.
28321 (run_menu): Pass menu to get_entry_number.
28322
28323 * util/grub-reboot.in: New file.
28324 * util/grub-set-default.in: New file.
28325 * conf/common.rmk (grub-reboot): New utility.
28326 (grub-set-default): New utility.
28327
28328 * util/grub-mkconfig_lib.in (save_default_entry): New function.
28329 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
28330 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
28331 move it to `saved_entry' for the next boot. Load environment on
28332 initialisation.
28333 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
28334 * util/grub.d/10_hurd.in: Likewise.
28335 * util/grub.d/10_linux.in (linux_entry): Likewise.
28336 * util/grub.d/10_windows.in: Likewise.
28337 * util/grub.d/30_os-prober.in: Likewise.
28338
28339 * util/grub-install.in: Create environment block.
28340 * util/i386/efi/grub-install.in: Likewise.
28341 * util/ieee1275/grub-install.in: Likewise.
28342 * util/sparc64/ieee1275/grub-install.in: Likewise.
28343
0934d184
BC
283442010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
28345
28346 Unit testing framework for GRUB.
28347
28348 * Makefile.in: Test framework build rules for 'make check'.
28349 * conf/tests.rmk: Build rules for individual tests and framework.
28350
28351 * include/grub/test.h: Header file for whitebox tests.
28352 * tests/lib/functional_test.c: Framework support for whitebox
28353 functional tests.
28354 * tests/lib/test.c: Common whitebox testing code for unit and
28355 functional tests.
28356 * tests/lib/unit_test.c: Framework support for whitebox unit
28357 tests.
28358
28359 * tests/util/grub-shell-tester.in: Support utility for grub-script
28360 tests.
28361 * tests/util/grub-shell.in: Utility to execute grub-script
28362 commands in a Qemu instance.
28363
28364 * tests/example_functional_test.c: Example whitebox functional
28365 test.
28366 * tests/example_grub_script_test.in: Example grub-script test.
28367 * tests/example_scripted_test.in: Example scripted test.
28368 * tests/example_unit_test.c: Example whitebox unit test.
28369
9c4ffeeb
VS
283702010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
28371
28372 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
28373 Add loader/i386/multiboot_mbi.c.
28374 (multiboot2_mod_SOURCES): Likewise.
28375 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
28376 (multiboot2_mod_SOURCES): Likewise.
28377 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
28378 (grub_multiboot_make_mbi): Likewise.
28379 (grub_multiboot_free_mbi): Likewise.
28380 (grub_multiboot_init_mbi): Likewise.
28381 (grub_multiboot_add_module): Likewise.
28382 (grub_multiboot_set_bootdev): Likewise.
28383 * loader/i386/multiboot.c (mbi): Removed.
28384 (mbi_dest): Likewise.
28385 (alloc_mbi): New variable.
28386 (grub_multiboot_payload_size): Removed. All users updated.
28387 (grub_multiboot_pure_size): New variable.
28388 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
28389 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
28390 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
28391 (grub_fill_multiboot_mmap): Likewise.
28392 (grub_multiboot_get_bootdev): Likewise.
28393 (grub_multiboot): Use multiboot_mbi functions.
28394 * loader/i386/multiboot_mbi.c: New file.
28395
17383dfe
VS
283962010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28397
28398 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
28399 it would result in module crash.
28400
c1f28820
VS
284012010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28402
28403 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
28404 (grub_ofconsole_getwh): Split to ...
28405 (grub_ofconsole_getwh): ... this.
28406 (grub_ofconsole_dimensions): ...and this.
28407 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
28408
58655a16
RM
284092010-01-13 Robert Millan <rmh.grub@aybabtu.com>
28410
28411 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
28412
10891398
VS
284132010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28414
28415 * loader/i386/pc/multiboot2.c: Removed stalled file.
28416
0b8a223c
VS
284172010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28418
28419 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
28420 Reported by: Grégoire Sutre
28421
92ab12b0
RM
284222010-01-11 Robert Millan <rmh.grub@aybabtu.com>
28423
28424 * util/misc.c (canonicalize_file_name): New function.
28425 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
28426 instead of realpath().
28427
a788afb6
CW
284282010-01-11 Colin Watson <cjwatson@ubuntu.com>
28429
28430 * util/grub-install.in (usage): Clarify meaning of --root-directory,
28431 and make it clearer that it's optional. Based on confusion
28432 witnessed on IRC.
28433
ffa8e3d2
VS
284342010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28435
28436 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
28437 in premature implicit newline.
28438
e9060a9d
VS
284392010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28440
28441 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
28442 which resulted in garbled command line at the end of screen.
28443
f0d0c0b7
RM
284442010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28445
28446 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
28447 initialization with similar approach as with other Linux loaders.
28448
0e60bae7
RM
284492010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28450
28451 Fix i386-ieee1275 build.
28452
28453 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
28454 and grub_term_height() for video_{width,height} initialization.
28455
284562010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
28457
28458 Fix grub-emu build.
28459
28460 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
28461
cdb3f378
RM
284622010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
284632010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28464
28465 Support for multiple terminals.
28466
28467 * Makefile.in (pkglib_DATA): terminal.lst.
28468 (terminal.lst): New target.
28469 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
28470 (GRUB_MOD_INIT(handler)): Likewise.
28471 (GRUB_MOD_FINI(handler)): Likewise.
28472 * commands/help.c (grub_cmd_help): Handle multiple terminals.
28473 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
28474 * commands/sleep.c (do_print): Use grub_term_restore_pos.
28475 (grub_cmd_sleep): Use grub_term_save_pos.
28476 * commands/terminal.c: New file.
28477 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
28478 commands/terminal.c and lib/charset.c.
28479 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
28480 (pkglib_MODULES): Add terminal.mod.
28481 (terminal_mod_SOURCES): New variable.
28482 (terminal_mod_CFLAGS): Likewise.
28483 (terminal_mod_LDFLAGS): Likewise.
28484 * genhandlerlist.sh: Don't handle terminals.
28485 * genmk.rb: Generate terminal-*.lst.
28486 * genterminallist.sh: New file.
28487 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
28488 (grub_is_valid_utf8): Likewise.
28489 (grub_utf8_to_ucs4_alloc): Likewise.
28490 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
28491 (grub_menu_register_viewer): Changed argument.
28492 (grub_menu_try_text): New proto.
28493 (grub_gfxmenu_try_hook): New declaration.
28494 * include/grub/normal.h (grub_normal_exit_level): New declaration.
28495 (grub_menu_init_page): Additional argument term.
28496 (grub_normal_init_page): Likewise.
28497 (grub_cmdline_get): Arguments simplified.
28498 (grub_utf8_to_ucs4_alloc): Removed.
28499 (grub_print_ucs4): Additional argument term.
28500 (grub_getstringwidth): Likewise.
28501 (grub_print_message_indented): Likewise.
28502 (grub_menu_text_register_instances): New proto.
28503 (grub_show_menu): Likewise.
28504 (read_terminal_list): Likewise.
28505 (grub_set_more): Likewise.
28506 * include/grub/parser.h: Include handler.h.
28507 * include/grub/reader.h: Rewritten.
28508 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
28509 (GRUB_TERM_WIDTH): Changed to function.
28510 (GRUB_TERM_HEIGHT): Likewise.
28511 (GRUB_TERM_BORDER_WIDTH): Likewise.
28512 (GRUB_TERM_BORDER_HEIGHT): Likewise.
28513 (GRUB_TERM_NUM_ENTRIES): Likewise.
28514 (GRUB_TERM_ENTRY_WIDTH): Likewise.
28515 (GRUB_TERM_CURSOR_X): Likewise.
28516 (grub_term_input_class): Likewise.
28517 (grub_term_output_class): Likewise.
28518 (grub_term_outputs_disabled): New declaration.
28519 (grub_term_inputs_disabled): Likewise.
28520 (grub_term_outputs): Likewise.
28521 (grub_term_inputs): Likewise.
28522 (grub_term_register_input): Rewritten.
28523 (grub_term_register_output): Likewise.
28524 (grub_term_unregister_input): Likewise.
28525 (grub_term_unregister_output): Likewise.
28526 (FOR_ACTIVE_TERM_INPUTS): New macro.
28527 (FOR_DISABLED_TERM_INPUTS): Likewise.
28528 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
28529 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
28530 * include/grub/terminfo.h: Add oterm argument to all protypes.
28531 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
28532 Use grub_rescue_run.
28533 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
28534 All users updated.
28535 * kern/reader.c: Removed. All users updated.
28536 * kern/rescue_reader.c (grub_rescue_init): Removed.
28537 (grub_rescue_reader): Likewise.
28538 (grub_register_rescue_reader): Likewise.
28539 (grub_rescue_run): New function based on kern/reader.c.
28540 * kern/term.c: Adapted for multiterm.
28541 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
28542 (grub_is_valid_utf8): Likewise.
28543 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
28544 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
28545 right terminal.
28546 * loader/i386/linux.c (grub_linux_boot): Likewise.
28547 * normal/auth.c (grub_username_get): New function.
28548 (grub_auth_check_authentication): Use grub_username_get.
28549 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
28550 * normal/color.c: Adapt for multiterm.
28551 * normal/main.c (read_config_file): Don't use grub_reader_loop.
28552 (grub_normal_init_page): Additional argument term.
28553 (read_lists): Call read_terminal_lists.
28554 (grub_enter_normal_mode): Call grub_cmdline_run.
28555 Handle grub_normal_exit_level.
28556 (grub_cmd_normal): Make reentrant.
28557 (grub_cmd_normal_exit): New function.
28558 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
28559 * normal/menu.c: Adapt for multiterm.
28560 * normal/menu_entry.c: Likewise.
28561 * normal/menu_text.c: Likewise.
28562 * normal/menu_viewer.c: Removed. All users updated.
28563 * normal/term.c: New file.
28564 * util/console.c: Change order of includes to workaround a bug in
28565 ncurses headers.
28566 * term/terminfo.c: New argument oterm on all exported functions.
28567 All users updated.
28568 * util/grub-editenv.c (grub_term_input_class): Removed.
28569 (grub_term_output_class): Likewise.
28570
1a064917
RM
285712010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28572
28573 Make loader output a bit more user-friendly.
28574
28575 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
28576 is being loaded. Likewise for the Hurd.
28577
28578 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
28579 that kernel of FreeBSD ${version} is being loaded.
28580
28581 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
28582 grub_dprintf().
28583 (grub_cmd_initrd): Likewise.
28584 * util/grub.d/10_linux.in (linux_entry): Print message indicating
28585 that Linux ${version} is being loaded. Likewise for initrd.
28586
5ce0a83a 285872010-01-09 Carles Pina i Estany <carles@pina.cat>
28588
28589 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
28590
809bbfeb 285912010-01-08 Carles Pina i Estany <carles@pina.cat>
28592
28593 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
28594 (GRUB_MOD_INIT): Gettextizze.
28595 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
28596 (GRUB_MOD_INIT): Gettextizze.
28597 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
28598 (grub_cmd_linux): Capitalise Linux.
28599 (GRUB_MOD_INIT): Gettextizze.
28600 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
28601 (grub_cmd_linux): Capitalise Linux.
28602 (GRUB_MOD_INIT): Gettextizze.
28603 * loader/i386/linux.c: Include `<grub/i18n.h>'.
28604 (grub_cmd_linux): Capitalise Linux.
28605 (GRUB_MOD_INIT): Gettextizze.
28606 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
28607 (GRUB_MOD_INIT): Gettextizze.
28608 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
28609 (grub_cmd_linux): Capitalise Linux.
28610 (GRUB_MOD_INIT): Gettextizze.
28611 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
28612 (grub_cpu_xnu_init): Gettextizze.
28613 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
28614 (GRUB_MOD_INIT): Gettextizze.
28615 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
28616 (GRUB_MOD_INIT): Gettextizze.
28617 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
28618 (grub_linux_load64): Capitalise Linux.
28619 (GRUB_MOD_INIT): Gettextizze.
28620 * loader/xnu.c: Include `<grub/i18n.h>'.
28621 (GRUB_MOD_INIT): Gettextizze.
28622 * po/POTFILES: Add `loader/efi/appleloader.c',
28623 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
28624 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
28625 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
28626 `loader/i386/xnu.c', `loader/multiboot_loader.c',
28627 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
28628 and `loader/xnu.c'.
28629
b394b2ca
RM
286302010-01-08 Robert Millan <rmh.grub@aybabtu.com>
28631
28632 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
28633
286342010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
28635
28636 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
28637 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
28638 * util/mkisofs/mkisofs.c (main): Readjust --version output.
28639
bc8b32b3
RM
286402010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28641
28642 Reset Multiboot 2 support. New loader implements the draft in
28643 /branches/multiboot2 and shares as much code as possible with the
28644 production Multiboot 1 implementation.
28645
28646 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
28647 * loader/multiboot2.c: Likewise.
28648 * loader/i386/multiboot_helper.S: Likewise.
28649 * include/multiboot2.h: Replace with latest version from the draft
28650 in /branches/multiboot2.
28651
28652 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
28653 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
28654 and `loader/multiboot2.c'.
28655 (pkglib_MODULES): Add `multiboot2.mod'.
28656 (multiboot2_mod_SOURCES): New variable.
28657 (multiboot2_mod_LDFLAGS): Likewise.
28658 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
28659
28660 * conf/i386-pc.rmk: Likewise.
28661
28662 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
28663 (multiboot_mod_SOURCES): Remove variable.
28664 (multiboot_mod_LDFLAGS): Likewise.
28665 (multiboot_mod_CFLAGS): Likewise.
28666
28667 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
28668 `<multiboot2.h>' instead of `<multiboot.h>'.
28669 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
28670 (MULTIBOOT_HEADER_MAGIC): New macros.
28671
28672 * loader/multiboot_loader.c (module_version_status): Remove variable.
28673 (find_multi_boot2_header): Remove function.
28674 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
28675 logic. Always check for the Multiboot version we're compiling for.
28676 (grub_cmd_module_loader): Likewise.
28677 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
28678 command instead of `multiboot'.
28679
5d2c52b8
RM
286802010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28681
28682 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
28683 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
28684 all users.
28685
53108d92
RM
286862010-01-07 Robert Millan <rmh.grub@aybabtu.com>
286872010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28688
28689 Fix breakage introduced with previous commit.
28690
28691 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
28692 commands.
28693 * normal/handler.c (read_handler_list): Revert part of previous commit
28694 affecting this file.
28695 * normal/main.c (read_lists): Move read_handler_list() call back to ...
28696 (grub_normal_execute): ... here.
28697
e2e936b2
RM
286982010-01-07 Robert Millan <rmh.grub@aybabtu.com>
28699
28700 Merge prefix-redefinition-fix branch.
28701
28702 * normal/autofs.c (read_fs_list): Make function capable of being
28703 run multiple times, gracefuly replacing the previous data
28704 structures.
28705 * normal/dyncmd.c (read_command_list): Likewise.
28706 * normal/handler.c (read_handler_list): Likewise.
28707 * normal/main.c (read_lists): New function. Calls all the
28708 list reading functions.
28709 (grub_normal_execute): Use read_lists() instead of calling all
28710 list reading functions explicitly. Register read_lists() as a
28711 variable hook attached to ${prefix}.
28712
607a3701
VS
287132010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
28714
28715 Merge crypto branch.
28716
28717 * Makefile.in (pkglib_DATA): Add crypto.lst.
28718 (crypto.lst): New target.
28719 * commands/hashsum.c: New file.
28720 * commands/password.c (check_password): Use grub_crypto_memcmp.
28721 * commands/password_pbkdf2.c: New file.
28722 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
28723 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
28724 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
28725 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
28726 -I$(srcdir)/lib/libgcrypt_wrap.
28727 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
28728 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
28729 password_pbkdf2.mod.
28730 (crypto_mod_SOURCES): New variable.
28731 (crypto_mod_CFLAGS): Likewise.
28732 (crypto_mod_LDFLAGS): Likewise.
28733 (hashsum_mod_SOURCES): New variable.
28734 (hashsum_mod_CFLAGS): Likewise.
28735 (hashsum_mod_LDFLAGS): Likewise.
28736 (pbkdf2_mod_SOURCES): New variable.
28737 (pbkdf2_mod_CFLAGS): Likewise.
28738 (pbkdf2_mod_LDFLAGS): Likewise.
28739 (password_pbkdf2_mod_SOURCES): New variable.
28740 (password_pbkdf2_mod_CFLAGS): Likewise.
28741 (password_pbkdf2_mod_LDFLAGS): Likewise.
28742 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
28743 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
28744 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
28745 Include conf/gcry.rmk.
28746 * include/grub/auth.h: Rewritten.
28747 * include/grub/crypto.h: New file.
28748 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
28749 * include/grub/normal.h (read_crypto_list): New prototype.
28750 * lib/crypto.c: New file.
28751 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
28752 * lib/pbkdf2.c: Likewise.
28753 * normal/auth.c (grub_auth_strcmp): Removed.
28754 (grub_iswordseparator): Likewise.
28755 (grub_auth_strword): Likewise.
28756 (is_authenticated): Use grub_strword.
28757 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
28758 and grub_strword. Pass entered password to authentication callback.
28759 * normal/crypto.c: New file.
28760 * normal/main.c: Call read_crypto_list.
28761 * util/grub-mkpasswd-pbkdf2.c: New file.
28762 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
28763
42841caa
VS
287642010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
28765
28766 Fix descent and ascent calculation.
28767
28768 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
28769 (options): New option "asce".
28770 (usage): Likewise.
28771 (add_char): Ignore invalid glyphs for descent calculation.
28772 Calculate ascent from actual content.
28773 (print_glyphs): Use 'asce'.
28774 (write_font): Likewise. Allow ascent override.
28775 (main): Handle "asce" option.
28776
e7730de7 287772010-01-06 Carles Pina i Estany <carles@pina.cat>
28778
28779 * kern/err.c: Include `<grub/i18n.h>'.
28780 (grub_print_error): Add full stop. Gettextizze.
28781 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
28782 (grub_bsd_load_elf): Capitalise ELF.
28783 (grub_cmd_freebsd_loadenv): Add `s' in error string.
28784 (grub_cmd_freebsd_module): Likewise.
28785 (grub_cmd_freebsd_module_elf): Likewise.
28786 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
28787
40e3a41f 287882010-01-06 Carles Pina i Estany <carles@pina.cat>
28789
28790 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
28791 * commands/search_file.c (HELP_MESSAGE): New macro.
28792 * commands/search_label.c (HELP_MESSAGE): Likewise.
28793 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
28794 * po/POTFILES: Add `commands/search_file.c',
28795 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
28796 `commands/search.c'.
28797
83507e68
RM
287982010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28799
28800 * config.rpath: Update from Gnulib.
28801
465c787b
YB
288022010-01-05 Yves Blusseau <blusseau@zetam.org>
28803
28804 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
28805
6581dd3a
YB
288062010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
28807
28808 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
28809
3bff18c5
CW
288102010-01-05 Colin Watson <cjwatson@ubuntu.com>
28811
28812 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
28813 arguments to fread so that we get a return value in bytes, rather
28814 than something that will normally be rounded down to 0.
28815 Adjust error handling to avoid producing garbage when size_t is not
28816 the same size as long long.
28817
a1368118
CW
288182010-01-05 Colin Watson <cjwatson@ubuntu.com>
28819
28820 * util/mkisofs/write.c (padblock_write): Check return value of
28821 fread.
28822
7c302978
RM
288232010-01-05 Robert Millan <rmh.grub@aybabtu.com>
28824
28825 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
28826 floppy images now.
28827
28828 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
28829
e33ace06
RM
288302010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28831
28832 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
28833 instead of manual alignment.
28834 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
28835 verbose). Avoid attempts to read past end of the device
28836 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
28837 but GRUB_DISK_CACHE_SIZE may exceed that).
28838
4b856776
RM
288392010-01-04 Robert Millan <rmh.grub@aybabtu.com>
28840
28841 * commands/crc.c (grub_cmd_crc): Abort on read errors.
28842 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
28843 it to upper layer.
28844
52c2d97f
VS
288452010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28846
28847 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
28848 New constant.
28849 (grub_efi_piwg_device_path): New structure
28850 (grub_efi_piwg_device_path_t): New type.
28851 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
28852 (devpath_1): Transform to a structure. All users updated.
28853 (devpath_2): Likewise.
28854 (devpath_3): Likewise.
28855 (devpath_4): Likewise.
28856 (devpath_5): Likewise.
28857
98ff6a54
VS
288582010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
28859
28860 * loader/efi/appleloader.c: Restored. Update all users.
28861
3a73dcb6
RM
288622010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28863
28864 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
28865
28866 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
28867 (struct boot_blocklist): Move from here ...
28868 * include/grub/i386/pc/boot.h [ASM_FILE]
28869 (struct grub_boot_blocklist): ... to here. Update all users.
28870 (setup): Only initialize `start' member of `first_block'
28871 structure. Add assert() calls to verify the other members.
28872
28873 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
28874 (generate_image): Fix broken blocklist length initialization.
28875 Add assert() call to verify blocklist `segment' field.
28876
ab0eeb0c
RM
288772010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28878
28879 * loader/efi/appleloader.c: Remove. Update all users.
28880
58bc8bd5
RM
288812010-01-03 Robert Millan <rmh.grub@aybabtu.com>
28882
28883 * boot/i386/pc/boot.S: Update copyright year.
28884 * boot/i386/pc/cdboot.S: Likewise.
28885 * boot/i386/pc/diskboot.S: Likewise.
28886 * boot/i386/pc/lnxboot.S: Likewise.
28887 * boot/i386/pc/pxeboot.S: Likewise.
28888 * bus/pci.c: Likewise.
28889 * commands/cmp.c: Likewise.
28890 * commands/help.c: Likewise.
28891 * commands/hexdump.c: Likewise.
28892 * commands/i386/pc/halt.c: Likewise.
28893 * commands/i386/pc/play.c: Likewise.
28894 * commands/i386/pc/vbeinfo.c: Likewise.
28895 * commands/ls.c: Likewise.
28896 * commands/test.c: Likewise.
28897 * disk/dmraid_nvidia.c: Likewise.
28898 * disk/i386/pc/biosdisk.c: Likewise.
28899 * disk/ieee1275/nand.c: Likewise.
28900 * disk/ieee1275/ofdisk.c: Likewise.
28901 * disk/lvm.c: Likewise.
28902 * disk/raid.c: Likewise.
28903 * disk/raid6_recover.c: Likewise.
28904 * disk/scsi.c: Likewise.
28905 * fs/affs.c: Likewise.
28906 * fs/cpio.c: Likewise.
28907 * fs/ext2.c: Likewise.
28908 * fs/hfs.c: Likewise.
28909 * fs/iso9660.c: Likewise.
28910 * fs/ntfs.c: Likewise.
28911 * fs/sfs.c: Likewise.
28912 * fs/udf.c: Likewise.
28913 * fs/ufs.c: Likewise.
28914 * fs/xfs.c: Likewise.
28915 * gencmdlist.sh: Likewise.
28916 * genmk.rb: Likewise.
28917 * include/grub/disk.h: Likewise.
28918 * include/grub/efi/api.h: Likewise.
28919 * include/grub/efi/efi.h: Likewise.
28920 * include/grub/efi/pe32.h: Likewise.
28921 * include/grub/elf.h: Likewise.
28922 * include/grub/fs.h: Likewise.
28923 * include/grub/i386/at_keyboard.h: Likewise.
28924 * include/grub/i386/pc/memory.h: Likewise.
28925 * include/grub/i386/pc/vbe.h: Likewise.
28926 * include/grub/i386/pci.h: Likewise.
28927 * include/grub/i386/tsc.h: Likewise.
28928 * include/grub/ieee1275/ieee1275.h: Likewise.
28929 * include/grub/ntfs.h: Likewise.
28930 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
28931 * include/grub/sparc64/libgcc.h: Likewise.
28932 * include/grub/symbol.h: Likewise.
28933 * include/grub/types.h: Likewise.
28934 * include/multiboot2.h: Likewise.
28935 * io/gzio.c: Likewise.
28936 * kern/device.c: Likewise.
28937 * kern/disk.c: Likewise.
28938 * kern/efi/efi.c: Likewise.
28939 * kern/efi/mm.c: Likewise.
28940 * kern/elf.c: Likewise.
28941 * kern/file.c: Likewise.
28942 * kern/i386/dl.c: Likewise.
28943 * kern/i386/pc/init.c: Likewise.
28944 * kern/i386/pc/startup.S: Likewise.
28945 * kern/ieee1275/ieee1275.c: Likewise.
28946 * kern/ieee1275/init.c: Likewise.
28947 * kern/main.c: Likewise.
28948 * kern/mm.c: Likewise.
28949 * kern/powerpc/dl.c: Likewise.
28950 * kern/sparc64/dl.c: Likewise.
28951 * kern/x86_64/dl.c: Likewise.
28952 * lib/hexdump.c: Likewise.
28953 * loader/efi/appleloader.c: Likewise.
28954 * loader/i386/ieee1275/linux.c: Likewise.
28955 * loader/i386/pc/chainloader.c: Likewise.
28956 * loader/i386/pc/linux.c: Likewise.
28957 * loader/i386/pc/multiboot2.c: Likewise.
28958 * loader/ieee1275/multiboot2.c: Likewise.
28959 * loader/multiboot2.c: Likewise.
28960 * loader/multiboot_loader.c: Likewise.
28961 * loader/powerpc/ieee1275/linux.c: Likewise.
28962 * normal/completion.c: Likewise.
28963 * normal/menu_entry.c: Likewise.
28964 * partmap/apple.c: Likewise.
28965 * util/grub.d/10_hurd.in: Likewise.
28966 * util/hostfs.c: Likewise.
28967 * video/readers/png.c: Likewise.
28968
e2d70b5c
CW
289692010-01-03 Colin Watson <cjwatson@ubuntu.com>
28970
28971 * include/grub/misc.h (GNUC_PREREQ): New macro.
28972 (ATTRIBUTE_ERROR): New macro.
28973 * include/grub/list.h (grub_bad_type_cast_real): Use
28974 ATTRIBUTE_ERROR.
28975
a173283f 289762010-01-03 Carles Pina i Estany <carles@pina.cat>
28977
28978 * normal/menu_text.c (print_message): Change messages.
28979
7fa7ff74 289802010-01-03 Carles Pina i Estany <carles@pina.cat>
28981
28982 * normal/menu_entry.c (store_completion): Gettextizze.
28983
136d24f6 289842010-01-03 Carles Pina i Estany <carles@pina.cat>
28985
28986 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
28987
f936862e 289882010-01-03 Carles Pina i Estany <carles@pina.cat>
28989
28990 * po/POTFILES: Sort correctly.
28991
29c44ad1 289922010-01-03 Carles Pina i Estany <carles@pina.cat>
28993
28994 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
28995 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
28996 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
28997 full stop.
28998 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
28999 summary. Gettextizze the strings.
29000 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
29001 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
29002 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
29003 full stop.
29004 (GRUB_MOD_INIT): Remove command name from summary.
29005 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
29006 summary.
29007 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
29008 * term/i386/pc/serial.c (options): Add full stops.
29009 (GRUB_MOD_INIT): Remove command name from the summary.
29010
77a79592 290112010-01-03 Carles Pina i Estany <carles@pina.cat>
29012
29013 * commands/acpi.c: Gettextizze help strings and/or options. Include
29014 `grub/i18n.h' if needed.
29015 * commands/blocklist.c: Likewise.
29016 * commands/boot.c: Likewise.
29017 * commands/cat.c: Likewise.
29018 * commands/cmp.c: Likewise.
29019 * commands/configfile.c: Likewise.
29020 * commands/crc.c: Likewise.
29021 * commands/date.c: Likewise.
29022 * commands/echo.c: Likewise.
29023 * commands/efi/fixvideo.c: Likewise.
29024 * commands/efi/loadbios.c: Likewise.
29025 * commands/gptsync.c: Likewise.
29026 * commands/halt.c: Likewise.
29027 * commands/handler.c: Likewise.
29028 * commands/hdparm.c: Likewise.
29029 * commands/hexdump.c: Likewise.
29030 * commands/i386/cpuid.c: Likewise.
29031 * commands/i386/pc/drivemap.c: Likewise.
29032 * commands/i386/pc/halt.c: Likewise.
29033 * commands/i386/pc/pxecmd.c: Likewise.
29034 * commands/i386/pc/vbeinfo.c: Likewise.
29035 * commands/i386/pc/vbetest.c: Likewise.
29036 * commands/ieee1275/suspend.c: Likewise.
29037 * commands/keystatus.c: Likewise.
29038 * commands/loadenv.c: Likewise.
29039 * commands/ls.c: Likewise.
29040 * commands/lsmmap.c: Likewise.
29041 * commands/lspci.c: Likewise.
29042 * commands/memrw.c: Likewise.
29043 * commands/minicmd.c: Likewise.
29044 * commands/parttool.c: Likewise.
29045 * commands/password.c: Likewise.
29046 * commands/probe.c: Likewise.
29047 * commands/read.c: Likewise.
29048 * commands/reboot.c: Likewise.
29049 * commands/search.c: Likewise.
29050 * commands/sleep.c: Likewise.
29051 * commands/test.c: Likewise.
29052 * commands/true.c: Likewise.
29053 * commands/usbtest.c: Likewise.
29054 * commands/videotest.c: Likewise.
29055 * commands/xnu_uuid.c: Likewise.
29056 * disk/loopback.c: Likewise.
29057 * hello/hello.c: Likewise.
29058 * loader/i386/bsd.c: Likewise.
29059 * term/i386/pc/serial.c: Likewise.
29060 * po/POTFILES: Add new files.
29061
da8d5c53
CW
290622010-01-02 Colin Watson <cjwatson@ubuntu.com>
29063
29064 * term/i386/pc/at_keyboard.c
29065 (keyboard_controller_wait_untill_ready): Rename to ...
29066 (keyboard_controller_wait_until_ready): ... this. Update all users.
29067
33937904 290682010-01-01 Carles Pina i Estany <carles@pina.cat>
29069
29070 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
29071 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
29072 string using string width.
29073 * normal/menu_text.c (grub_print_message_indented): Use
29074 grub_print_spaces and not print_spaces.
29075 (print_timeout): Likewise.
29076 (print_spaces): Move to...
29077 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
29078
3fd3b8d8
RM
290792010-01-01 Robert Millan <rmh.grub@aybabtu.com>
29080
29081 Import from Gnulib.
29082
29083 * gnulib/getdelim.c: New file.
29084 * gnulib/getline.c: Likewise.
29085
33433555
VS
290862009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
29087
29088 * include/grub/list.h (grub_assert_fail): Removed.
29089 (grub_bad_type_cast_real): New function.
29090 (grub_bad_type_cast): New macro.
29091 (GRUB_AS_LIST): Use grub_bad_type_cast.
29092 (GRUB_AS_LIST_P): Likewise.
e44721e8 29093 (GRUB_AS_NAMED_LIST): Likewise.
33433555 29094 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 29095 (GRUB_AS_PRIO_LIST): Likewise.
33433555 29096 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 29097 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 29098
f5a51306
VS
290992009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
29100
29101 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
29102 Fix syntax error.
29103
90d1e879
RM
291042009-12-29 Robert Millan <rmh.grub@aybabtu.com>
29105
29106 * configure.ac: Check for TARGET_CFLAGS initialization before we
29107 initialize it ourselves (sigh).
29108 Move a few modifications to TARGET_CFLAGS to be unconditional
29109 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
29110 eh_frame)
29111
29112 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
29113 * term/i386/pc/at_keyboard.c
29114 (keyboard_controller_wait_untill_ready): Likewise.
29115 (keyboard_controller_led): Rename `led_status' paramter to avoid
29116 name conflict.
29117
465b5a81 291182009-12-28 Carles Pina i Estany <carles@pina.cat>
29119
29120 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
29121 quotes.
29122
c181849b
VS
291232009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29124
29125 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
29126
9c8739a4
VS
291272009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29128
29129 * normal/menu_text.c (grub_print_message_indented): Prevent
29130 past-the-end-of-array dereference.
29131
3e74249c
VS
291322009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29133
29134 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
29135 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
29136
64fd18ed 291372009-12-27 Carles Pina i Estany <carles@pina.cat>
29138
29139 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
29140 * normal/main.c (grub_normal_read_line): Remove a space from the
29141 default prompt.
29142
714af9b9 291432009-12-27 Carles Pina i Estany <carles@pina.cat>
29144
29145 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
29146 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29147 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29148 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29149 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29150 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29151 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29152
82f3e412 291532009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 29154
29155 * video/readers/jpeg.c (cmd): Declare.
29156 (grub_cmd_jpegtest): Use `grub_command_t' type.
29157 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29158 Assign to `cmd'.
29159 (GRUB_MOD_FINI): Use `cmd' to unregister.
29160 * video/readers/png.c (cmd): Declare.
29161 (grub_cmd_pngtest): Use `grub_command_t' type.
29162 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29163 Assign to `cmd'.
29164 (GRUB_MOD_FINI): Use `cmd' to unregister.
29165 * video/readers/tga.c (cmd): Declare.
29166 (grub_cmd_tgatest): Use `grub_command_t' type.
29167 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29168 Assign to `cmd'.
29169 (GRUB_MOD_FINI): Use `cmd' to unregister.
29170
82f3e412 291712009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 29172
29173 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
29174 stops.
29175 * kern/corecmd.c (grub_register_core_commands): Likewise.
29176 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
29177 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29178 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
29179 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29180 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29181 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
29182 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29183 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
29184 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29185 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29186 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29187 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29188 * normal/handler.c (insert_handler): Likewise.
29189 * normal/main.c (GRUB_MOD_INIT): Likewise.
29190 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
29191
fdcdbb66 291922009-12-26 Carles Pina i Estany <carles@pina.cat>
29193
29194 * commands/help.c (grub_cmd_help): Print the command name before the
29195 summary.
29196 (GRUB_MOD_INIT): Remove command name from the summary.
29197 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 29198 string as summary.
fdcdbb66 29199 * lib/arg.c (find_long): Print the command name before the summary.
29200 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
29201 summary.
29202 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
29203 * commands/cat.c (GRUB_MOD_INIT): Likewise.
29204 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
29205 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
29206 * commands/crc.c (GRUB_MOD_INIT): Likewise.
29207 * commands/date.c (GRUB_MOD_INIT): Likewise.
29208 * commands/echo.c (GRUB_MOD_INIT): Likewise.
29209 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
29210 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29211 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29212 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
29213 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
29214 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
29215 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
29216 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29217 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
29218 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
29219 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
29220 * commands/ls.c (GRUB_MOD_INIT): Likewise.
29221 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29222 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29223 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29224 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
29225 * commands/password.c (GRUB_MOD_INIT): Likewise.
29226 * commands/probe.c (GRUB_MOD_INIT): Likewise.
29227 * commands/read.c (GRUB_MOD_INIT): Likewise.
29228 * commands/search.c (GRUB_MOD_INIT): Likewise.
29229 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
29230 * commands/test.c (GRUB_MOD_INIT): Likewise.
29231 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
29232 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
29233 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
29234 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
29235 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
29236 * lib/arg.c (GRUB_MOD_INIT): Likewise.
29237 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
29238 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29239 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29240 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29241 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
29242 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
29243 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
29244 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
29245
9c288be2
VS
292462009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29247
29248 Use search command for preliminar UUID search.
29249
29250 * commands/search.c: Split into ...
29251 * commands/search_wrap.c: ...this
29252 * commands/search.c: ...and this.
29253 * commands/search_file.c: New file.
29254 * commands/search_label.c: New file.
29255 * commands/search_uuid.c: New file.
29256 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
29257 Add commands/search_wrap.c, commands/search_file.c,
29258 commands/search_label.c and commands/search_uuid.c.
29259 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
29260 (search_mod_SOURCES): Set to commands/search_wrap.c.
29261 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
29262 search_label.mod.
29263 (search_fs_file_mod_SOURCES): New variable.
29264 (search_fs_file_mod_CFLAGS): Likewise.
29265 (search_fs_file_mod_LDFLAGS): Likewise.
29266 (search_label_mod_SOURCES): Likewise.
29267 (search_label_mod_CFLAGS): Likewise.
29268 (search_label_mod_LDFLAGS): Likewise.
29269 (search_fs_uuid_mod_SOURCES): New variable.
29270 (search_fs_uuid_mod_CFLAGS): Likewise.
29271 (search_fs_uuid_mod_LDFLAGS): Likewise.
29272 (fs_file_mod_SOURCES): Removed.
29273 (fs_file_mod_CFLAGS): Likewise.
29274 (fs_file_mod_LDFLAGS): Likewise.
29275 (fs_uuid_mod_SOURCES): Removed.
29276 (fs_uuid_mod_CFLAGS): Likewise.
29277 (fs_uuid_mod_LDFLAGS): Likewise.
29278 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
29279 Set to util/grub-install.in.
29280 * disk/fs_file.c: Removed.
29281 * disk/fs_uuid.c: Likewise.
29282 * include/grub/search.h: New file.
29283 * util/grub-install.in: Handle sparc64.
29284 Create and use load.cfg.
29285 * util/sparc64/ieee1275/grub-install.in: Removed.
29286
db943399
VS
292872009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29288
29289 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
29290 Ignore return status if CF is cleared.
29291 (grub_biosdisk_get_diskinfo_standard): Likewise.
29292
3fdae612
RM
292932009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29294
29295 * term/i386/pc/at_keyboard.c
29296 (keyboard_controller_wait_untill_ready): New function.
29297 (grub_keyboard_controller_write, grub_keyboard_controller_read)
29298 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
29299 for keyboard polling, rather than duplicate the same loop. This
29300 saves a few bytes in code size.
29301
7ebaa2b4
VS
293022009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29303
29304 Support for (pxe[:server[:gateway]]) syntax and
29305 use environment variable for PXE.
29306
29307 * commands/i386/pc/pxecmd.c (options): Removed.
29308 (print_ip): Removed.
29309 (grub_cmd_pxe): Removed
29310 (grub_cmd_pxe_unload): New function.
29311 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
29312 (grub_pxe_your_ip): Made static.
29313 (grub_pxe_default_server_ip): Likewise.
29314 (grub_pxe_default_gateway_ip): Likewise.
29315 (grub_pxe_blksize): Likewise.
29316 (parse_ip): New function.
29317 (grub_pxe_open): Support server and gateway specification.
29318 (grub_pxe_close): Free disk->data.
29319 (grub_pxefs_open): Use disk->data.
29320 (grub_pxefs_read): Likewise.
29321 (grub_env_write_readonly): New function.
29322 (set_mac_env): Likewise.
29323 (set_env_limn_ro): Likewise.
29324 (parse_dhcp_vendor): Likewise.
29325 (grub_pxe_detect): Set the environment variables.
29326 (set_ip_env): New function.
29327 (write_ip_env): Likewise.
29328 (grub_env_write_pxe_default_server): Likewise.
29329 (grub_env_write_pxe_default_gateway): Likewise.
29330 (grub_env_write_pxe_blocksize): Likewise.
29331 (GRUB_MOD_INIT(pxe)): Set environment variables.
29332 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
29333 (grub_pxe_mac_addr_t): ... this. All users updated.
29334 (grub_pxe_your_ip): Removed.
29335 (grub_pxe_server_ip): Likewise.
29336 (grub_pxe_gateway_ip): Likewise.
29337 (grub_pxe_blksize): Likewise.
29338
ec5f98ab 293392009-12-25 Carles Pina i Estany <carles@pina.cat>
29340
29341 * commands/help.c: Include `<grub/i18n.h>'.
29342 (grub_cmd_help): Gettextizze.
29343 (GRUB_MOD_INIT): Likewise.
29344 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
29345 (GRUB_MOD_INIT): Gettextizze.
29346 * commands/search.c: Include `<grub/i18n.h>'.
29347 (options): Gettextizze.
29348 (GRUB_MOD_INIT): Gettextizze.
29349 * lib/arg.c: Include `<grub/i18n.h>'.
29350 (help_options): Gettextizze.
29351 (find_long): Likewise.
29352 (grub_arg_show_help): Likewise.
29353 * normal/dyncmd.c: Include `<grub/i18n.h>'.
29354 (read_command_list): Gettextizze.
29355 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 29356 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 29357
22815526
RM
293582009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29359
29360 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
29361 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
29362 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
29363 (led_status): New variable.
29364 (keyboard_controller_led): New function.
29365 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
29366 update led status for caps lock, num lock and scroll lock.
29367
0ad46fd7
FZ
293682009-12-25 Felix Zielcke <fzielcke@z-51.de>
29369
29370 * util/hostdisk.c (open_device): Fix a comment.
29371
d0e158c2
RM
293722009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29373
29374 * util/grub-install.in (host_os): New variable.
29375 * util/i386/efi/grub-install.in (host_os): Likewise.
29376
401c0ad6
RM
293772009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29378
29379 * util/mkisofs/write.c (padblock_write): Abort when given an
29380 excedingly large embed image, instead of silently truncating it.
29381
d14d3370
RM
293822009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29383
29384 * include/multiboot.h: Indentation fixes.
29385
eeed10b4
RM
293862009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29387
29388 * include/multiboot.h (struct multiboot_aout_symbol_table)
29389 (struct multiboot_elf_section_header_table): New structure
29390 declarations (stolen from GRUB Legacy).
29391 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
29392 table information.
29393
29394 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
29395 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
29396 type aliases.
29397
681c70ab
RM
293982009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29399
29400 * include/multiboot.h: Make comments src2texi-friendly.
29401
e4d47d8d
RM
294022009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29403
29404 For consistency with [multiboot]/docs/boot.S.
29405
29406 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
29407 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
29408 (MULTIBOOT_MAGIC2): Rename from this ...
29409 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
29410
a0b70bda
RM
294112009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29412
29413 * include/multiboot.h: Remove `<grub/types.h>'.
29414 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
29415 types. Update all users.
29416
61ba42be 294172009-12-25 Carles Pina i Estany <carles@pina.cat>
29418
29419 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
29420 `couldn't' and `can not' by `cannot'.
29421 * commands/i386/pc/drivemap.c: Likewise.
29422 * disk/ata.c: Likewise.
29423 * disk/ieee1275/nand.c: Likewise.
29424 * fs/affs.c: Likewise.
29425 * fs/fat.c: Likewise.
29426 * fs/hfs.c: Likewise.
29427 * fs/hfsplus.c: Likewise.
29428 * fs/iso9660.c: Likewise.
29429 * fs/jfs.c: Likewise.
29430 * fs/minix.c: Likewise.
29431 * fs/reiserfs.c: Likewise.
29432 * fs/sfs.c: Likewise.
29433 * fs/udf.c: Likewise.
29434 * fs/ufs.c: Likewise.
29435 * fs/xfs.c: Likewise.
29436 * loader/powerpc/ieee1275/linux.c: Likewise.
29437 * loader/sparc64/ieee1275/linux.c: Likewise.
29438 * util/grub-probe.c: Likewise.
29439 * util/misc.c: Likewise.
29440
7fd0baee 294412009-12-24 Carles Pina i Estany <carles@pina.cat>
29442
29443 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
29444 grub_errno calls.
29445 * commands/acpi.c: Likewise.
29446 * commands/blocklist.c: Likewise.
29447 * commands/efi/loadbios.c: Likewise.
29448 * commands/i386/pc/drivemap.c: Likewise.
29449 * commands/loadenv.c: Likewise.
29450 * commands/memrw.c: Likewise.
29451 * commands/password.c: Likewise.
29452 * commands/videotest.c: Likewise.
29453 * disk/ata.c: Likewise.
29454 * disk/ata_pthru.c: Likewise.
29455 * disk/dmraid_nvidia.c: Likewise.
29456 * disk/ieee1275/nand.c: Likewise.
29457 * disk/ieee1275/ofdisk.c: Likewise.
29458 * disk/loopback.c: Likewise.
29459 * disk/lvm.c: Likewise.
29460 * disk/mdraid_linux.c: Likewise.
29461 * disk/raid.c: Likewise.
29462 * disk/raid6_recover.c: Likewise.
29463 * disk/scsi.c: Likewise.
29464 * efiemu/main.c: Likewise.
29465 * efiemu/mm.c: Likewise.
29466 * efiemu/pnvram.c: Likewise.
29467 * efiemu/symbols.c: Likewise.
29468 * font/font.c: Likewise.
29469 * fs/cpio.c: Likewise.
29470 * fs/hfsplus.c: Likewise.
29471 * fs/iso9660.c: Likewise.
29472 * fs/jfs.c: Likewise.
29473 * fs/minix.c: Likewise.
29474 * fs/ntfs.c: Likewise.
29475 * fs/ntfscomp.c: Likewise.
29476 * fs/reiserfs.c: Likewise.
29477 * fs/ufs.c: Likewise.
29478 * fs/xfs.c: Likewise.
29479 * gettext/gettext.c: Likewise.
29480 * include/grub/auth.h: Likewise.
29481 * kern/elf.c: Likewise.
29482 * kern/file.c: Likewise.
29483 * kern/ieee1275/init.c: Likewise.
29484 * kern/ieee1275/mmap.c: Likewise.
29485 * kern/ieee1275/openfw.c: Likewise.
29486 * kern/powerpc/dl.c: Likewise.
29487 * kern/sparc64/dl.c: Likewise.
29488 * lib/arg.c: Likewise.
29489 * loader/i386/bsd.c: Likewise.
29490 * loader/i386/bsdXX.c: Likewise.
29491 * loader/i386/efi/linux.c: Likewise.
29492 * loader/i386/efi/xnu.c: Likewise.
29493 * loader/i386/ieee1275/linux.c: Likewise.
29494 * loader/i386/linux.c: Likewise.
29495 * loader/i386/multiboot.c: Likewise.
29496 * loader/i386/pc/linux.c: Likewise.
29497 * loader/i386/pc/multiboot2.c: Likewise.
29498 * loader/i386/xnu.c: Likewise.
29499 * loader/ieee1275/multiboot2.c: Likewise.
29500 * loader/macho.c: Likewise.
29501 * loader/machoXX.c: Likewise.
29502 * loader/multiboot2.c: Likewise.
29503 * loader/multiboot_loader.c: Likewise.
29504 * loader/powerpc/ieee1275/linux.c: Likewise.
29505 * loader/sparc64/ieee1275/linux.c: Likewise.
29506 * loader/xnu.c: Likewise.
29507 * loader/xnu_resume.c: Likewise.
29508 * mmap/i386/pc/mmap.c: Likewise.
29509 * normal/menu_viewer.c: Likewise.
29510 * partmap/acorn.c: Likewise.
29511 * partmap/amiga.c: Likewise.
29512 * partmap/apple.c: Likewise.
29513 * script/lexer.c: Likewise.
29514 * term/gfxterm.c: Likewise.
29515 * term/i386/pc/serial.c: Likewise.
29516 * term/i386/pc/vga.c: Likewise.
29517 * term/ieee1275/ofconsole.c: Likewise.
29518 * term/terminfo.c: Likewise.
29519 * video/bitmap.c: Likewise.
29520 * video/efi_gop.c: Likewise.
29521 * video/efi_uga.c: Likewise.
29522 * video/fb/video_fb.c: Likewise.
29523 * video/i386/pc/vbe.c: Likewise.
29524 * video/readers/tga.c: Likewise.
29525 * video/video.c: Likewise.
29526
0ad46fd7 295272009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
29528
29529 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
29530 * commands/lspci.c: Likewise.
29531 * commands/probe.c: Likewise.
29532 * commands/xnu_uuid.c: Likewise.
29533 * conf/i386-coreboot.rmk: Likewise.
29534 * conf/i386-efi.rmk: Likewise.
29535 * conf/i386-ieee1275.rmk: Likewise.
29536 * conf/i386-pc.rmk: Likewise.
29537 * conf/powerpc-ieee1275.rmk: Likewise.
29538 * conf/sparc64-ieee1275.rmk: Likewise.
29539 * conf/x86_64-efi.rmk: Likewise.
29540 * fs/i386/pc/pxe.c: Likewise.
29541 * gettext/gettext.c: Likewise.
29542 * include/grub/efi/graphics_output.h: Likewise.
29543 * include/grub/i386/pc/memory.h: Likewise.
29544 * kern/env.c: Likewise.
29545 * kern/i386/qemu/startup.S: Likewise.
29546 * lib/i386/pc/biosnum.c: Likewise.
29547 * lib/i386/relocator.c: Likewise.
29548 * lib/i386/relocator_asm.S: Likewise.
29549 * lib/relocator.c: Likewise.
29550 * loader/i386/bsd.c: Likewise.
29551 * loader/i386/multiboot.c: Likewise.
29552 * loader/i386/pc/chainloader.c: Likewise.
29553 * loader/i386/xnu.c: Likewise.
29554 * loader/xnu.c: Likewise.
29555 * normal/main.c: Likewise.
29556 * normal/menu_text.c: Likewise.
29557 * util/getroot.c: Likewise.
29558 * util/grub-mkconfig_lib.in: Likewise.
29559 * util/grub.d/00_header.in: Likewise.
29560 * util/i386/pc/grub-mkimage.c: Likewise.
29561 * util/mkisofs/eltorito.c: Likewise.
29562 * util/mkisofs/exclude.h: Likewise.
29563 * util/mkisofs/hash.c: Likewise.
29564 * util/mkisofs/iso9660.h: Likewise.
29565 * util/mkisofs/joliet.c: Likewise.
29566 * util/mkisofs/mkisofs.c: Likewise.
29567 * util/mkisofs/mkisofs.h: Likewise.
29568 * util/mkisofs/multi.c: Likewise.
29569 * util/mkisofs/name.c: Likewise.
29570 * util/mkisofs/rock.c: Likewise.
29571 * util/mkisofs/tree.c: Likewise.
29572 * util/mkisofs/write.c: Likewise.
29573 * video/efi_gop.c: Likewise.
29574
009ec743
VS
295752009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
29576
29577 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
29578 size counting.
29579
0ad46fd7 295802009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
29581
29582 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
29583 * genmk.rb (class SCRIPT): Modify the target file instead of source.
29584
d3d30ea0
VS
295852009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29586
29587 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
29588 (GRUB_MOD_INIT(memrw)): Update help line.
29589
a34f5c70
VS
295902009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29591
29592 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
29593 Use grub_extcmd_t. All users updated.
29594 (options): New variable.
29595 (grub_cmd_read): Restructure for readability. Support "-v" option.
29596 (grub_cmd_write): Restructure for readability.
29597
0ad46fd7 295982009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
29599
29600 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
29601
0ad46fd7 296022009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
29603
29604 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
29605 with the actual contents of the correspondending make variable.
29606 * util/grub-mkrescue.in (pkglib_DATA): New variable.
29607 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
29608 specifying `*.lst' and `efiemu??.o'
29609
0ad46fd7 296102009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
29611
29612 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
29613 after function name.
29614 Noticed by Rene Engelhard <rene@debian.org>.
29615
dc77a799
VS
296162009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29617
29618 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
29619 (options): New variable.
29620 (iospace): Likewise.
29621 (grub_lspci_iter): List IO spaces if "-i" was given.
29622 (grub_cmd_lspci): Parse options.
29623 (GRUB_MOD_INIT(lspci)): Use extcmd.
29624 (GRUB_MOD_FINI(lspci)): Likewise.
29625
0ad46fd7 296262009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
29627
29628 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
29629 `function' keyword.
29630 Patch by Tony Mancill <tmancill@debian.org>.
29631
b5d5993b
VS
296322009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
29633
29634 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
29635 (grub_uhci_portstatus): Likewise.
29636 (grub_uhci_portstatus): Add necessary delay.
11d18281 29637 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 29638
941903f2 296392009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 29640
941903f2 29641 * commands/acpi.c (options): Fix capitalizations and/or full stops.
29642 (GRUB_MOD_INIT): Likewise.
29643 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 29644 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
29645 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 29646 * commands/efi/loadbios.c (enable_rom_area): Likewise.
29647 (enable_rom_area): Likewise.
29648 (GRUB_MOD_INIT): Likewise.
29649 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29650 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
29651 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29652 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
29653 * commands/hexdump.c (options): Likewise.
29654 * commands/i386/cpuid.c (options): Likewise.
29655 (GRUB_MOD_INIT): Likewise.
29656 * commands/i386/pc/drivemap.c (options): Likewise.
29657 (GRUB_MOD_INIT): Likewise.
29658 * commands/i386/pc/halt (options): Likewise.
29659 (GRUB_MOD_INIT): Likewise.
29660 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29661 * commands/i386/pc/pxecmd.c (options): Likewise.
29662 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
29663 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
29664 * commands/keystatus.c (options): Likewise.
29665 (GRUB_MOD_INIT): Likewise.
29666 * commands/loadenv.c (options): Likewise.
29667 * commands/ls.c (options): Likewise.
29668 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29669 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29670 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29671 * commands/parttool.c (helpmsg): Likewise.
29672 * commands/probe.c (options): Likewise.
29673 * commands/read.c (GRUB_MOD_INIT): Likewise.
29674 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
29675 * commands/search.c (options): Likewise.
29676 * commands/sleep.c (options): Likewise.
29677 * commands/test.c (GRUB_MOD_INIT): Likewise.
29678 * commands/true.c (GRUB_MOD_INIT): Likewise.
29679 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
29680 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
29681 * lib/arg.c (help_options): Likewise.
e9bbb4e7 29682 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
29683 `$(XGETTEXT)'.
98a50553 29684 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 29685
0ad46fd7 296862009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 29687
ef3c2c3a 29688 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
29689 instead of specifying them explicit.
29690
7922f68b
RM
296912009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29692
29693 * NEWS: Add grub-probe support for GNU/Hurd.
29694
537ce47f
RM
296952009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29696
29697 * NEWS: gettext was added after 1.97.
29698
9b214e3a
RM
296992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29700
29701 * util/mkisofs/msdos_partition.h: New file (based on
29702 include/grub/msdos_partition.h).
29703 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
29704 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
29705 (ld_options, main): Recognize --protective-msdos-label.
29706 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
29707 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
29708 (padblock_write): If `use_protective_msdos_label' is set, patch a
29709 protective DOS-style label in the output image.
29710
29711 * util/grub-mkrescue.in: Use --protective-msdos-label.
29712
e9309813
RM
297132009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29714
29715 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
29716 boot.
29717
0ae56929
RM
297182009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29719
29720 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
29721 variables.
29722 (ld_options, main): Recognize `--embedded-boot'.
29723 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
29724 declarations.
29725 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
29726 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
29727 (padblock_write): Likewise. Rewrite to support embedded boot image.
29728
29729 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
29730 for BIOS-based disk boot instead of only ElTorito.
29731
b15937b1
RM
297322009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29733
29734 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
29735 build (not needed for bootstrap).
29736
52cc3ce0
RM
297372009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29738
29739 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
29740 from i386-pc build (not needed for bootstrap).
29741 Rewrite a pair of strings.
29742
36f5ff04
RM
297432009-12-21 Robert Millan <rmh.grub@aybabtu.com>
29744
29745 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
29746
973c6c85 297472009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
29748
29749 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
29750
05d21547
AB
297512009-12-21 Andreas Born <futur.andy@googlemail.com>
29752
29753 * kern/env.c (grub_env_context_open): Mark exported variable for
29754 reexport.
29755
0175d51f
AB
297562009-12-21 Andreas Born <futur.andy@googlemail.com>
29757
29758 * kern/env.c (grub_env_export): Create nonexistent variables before
29759 exporting.
29760
7f39d92f 297612009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 29762
7f39d92f 29763 * include/grub/auth.h: Include `<grub/i18n.h>'.
29764 (GRUB_GET_PASSWORD): Gettextizze string.
29765 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
29766 menu_text.c.
29767 (grub_utf8_to_ucs4_alloc): Fix indentation.
29768 (grub_print_ucs4): Likewise.
29769 (grub_getstringwidth): Likewise.
29770 (print_message_indented): New declaration.
29771 * normal/auth.c: Include `<grub/i18n.h>'.
29772 (grub_auth_check_authentication): Gettexttize string.
29773 * normal/cmdline.c: Include `<grub/i18n.h>'.
29774 (grub_cmdline_get): Gettextizze.
29775 * normal/color.c: Include `<grub/i18n.h>'.
29776 (grub_parse_color_name_pair): Gettexttize strings.
29777 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
29778 string (use `print_message_indented').
29779 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
29780 `include/grub/normal.h'.
29781 (print_message_indented): Renamed to ...
29782 (grub_print_message_indented): ... this. Remove `static' qualifer (now
29783 used in normal/main.c).
29784 (print_message): Use `grub_print_message_indented' instead of
29785 `print_message_indented'.
29786 (print_timeout): Likewise.
29787 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
29788 (grub_normal_print_device_info): Gettexttize strings.
29789 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
29790
3041d898
VS
297912009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29792
29793 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
29794 of arguments. Return number of tokens and not arguments. All users
29795 updated.
29796
de15bf8e
VS
297972009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
29798
29799 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
29800 non-MSDOS paritions.
29801
e0a6ca52
VS
298022009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
29803
29804 * include/grub/types.h (UNUSED): Removed since it conflicts with
29805 NetBSD headers. All users changed to direct __attribute__ ((unused)).
29806 Reported by Grégoire Sutre.
29807
b99518d1 298082009-12-19 Carles Pina i Estany <carles@pina.cat>
29809
29810 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
29811 (grub_print_ucs4_alloc): Likewise.
29812 (grub_getstringwidth): Likewise.
29813 * normal/main.c (grub_normal_init_page): Gettextize version string.
29814 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
29815 (getstringwidth): Renamed to ...
29816 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
29817 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
29818 (grub_print_ucs4): Remove `static' qualifer (now used in
29819 normal/main.c).
29820 * po/POTFILES: Add normal/main.c.
29821
bfd5e52b 298222009-12-19 Carles Pina i Estany <carles@pina.cat>
29823
29824 * normal/menu_text.c (STANDARD_MARGIN): New macro.
29825 (print_message_indented): Add `margin_left' and `margin_right'
29826 parameters.
29827 (print_message): Update `print_message_indented' calls. Adds '\n' to the
29828 strings.
29829 (print_timeout): Use `print_message_indented' to print the message.
29830 Deletes `second_stage' parameter.
29831 (run_menu): Update `print_timeout' calls.
29832
5a1ad2b9
VS
298332009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29834
29835 Fix console palette on OpenFirmware.
29836
29837 * term/ieee1275/ofconsole.c (MAX): Removed.
29838 (colors): Redone based on VGA palette.
29839 (grub_ofconsole_setcolor): Discard brightness bit since only 8
29840 colors are supported.
29841 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
29842
b045f00a
VS
298432009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29844
29845 Fix potential EfiEmu double prepare.
29846
29847 * efiemu/main.c (prepared): New variable
29848 (grub_efiemu_unload): Set prepare to '0'.
29849 (grub_efiemu_prepare): Return if already prepared. Set prepared.
29850
29851 set_virtual_address_map support.
29852
29853 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
29854 prototype.
29855 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
29856 prototype.
29857 (grub_efiemu_crc32): Likewise.
29858 (grub_efiemu_crc64): Likewise.
29859 (grub_efiemu_set_virtual_address_map): Likewise.
29860 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
29861 New definition.
29862 (grub_autoefi_set_virtual_address_map): Likewise.
29863 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
29864 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
29865 Restructure flow to accomodate it.
29866 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
29867 (grub_efiemu_crc): Recompute CRC32.
29868 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
29869 (efiemu_ptv_relocated): ... this. Made global. All users updated.
29870 * efiemu/symbols.c (relocated_handle): New variable.
29871 (grub_efiemu_free_syms): Free relocated_handle.
29872 (grub_efiemu_alloc_syms): Allocate relocated_handle.
29873 (grub_efiemu_write_sym_markers): New function.
29874 (grub_efiemu_set_virtual_address_map): Likewise.
29875
29876 Newer XNU parameters.
29877
29878 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
29879 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
29880 (grub_xnu_fill_devicetree): New prototype.
29881 (grub_xnu_heap_real_start): New variable.
29882 * loader/xnu.c (get_name_ptr): New function.
29883 (grub_xnu_load_driver): Fill namelen and name.
29884
29885 64-bit xnu support.
29886
29887 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
29888 and 'loader/macho64.c'.
29889 * conf/i386-pc.rmk: Likewise.
29890 * conf/x86_64-efi.rmk: Likewise.
29891 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
29892 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
29893 * include/grub/macho.h (grub_macho_segment64): New structure.
29894 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
29895 (grub_macho_size32): ... to this.
29896 (grub_macho32_get_entry_point): Renamed from ...
29897 (grub_macho_get_entry_point32): ... to this.
29898 (grub_macho_contains_macho64): New prototype.
29899 (grub_macho_size64): Likewise.
29900 (grub_macho_get_entry_point64): Likewise.
29901 (grub_macho32_load): Renamed from ...
29902 (grub_macho_load32): ... to this.
29903 (grub_macho32_filesize): Renamed from ...
29904 (grub_macho_filesize32): ... to this.
29905 (grub_macho32_readfile): Renamed from ...
29906 (grub_macho_readfile32): ... to this.
29907 (grub_macho_filesize64): New prototype.
29908 (grub_macho_readfile64): Likewise.
29909 (grub_macho_parse32): Likewise.
29910 (grub_macho_parse64): Likewise.
29911 * loader/macho.c: Split into ...
29912 * loader/machoXX.c: ... and this. Replace 32 with XX.
29913 * loader/macho32.c: New file.
29914 * loader/macho64.c: Likewise.
29915 * loader/xnu.c (grub_xnu_is_64bit): New variable.
29916 (grub_cmd_xnu_kernel): Make 32-bit only.
29917 (grub_cmd_xnu_kernel64): New function.
29918 (grub_xnu_load_driver): Support Mach-O 64.
29919 (grub_cmd_xnu_mkext): Likewise.
29920 * util/grub.d/30_os-prober.in (osx_entry): New function.
29921 Generate entries for 64-bit boot too.
29922
29923 Eliminate ad-hoc tree format in XNU and EfiEmu.
29924
29925 * efiemu/main.c (grub_efiemu_prepare): Update comment.
29926 * efiemu/pnvram.c: Rewritten to use environment variables.
29927 All users updated.
29928
29929 Inline utf16_to_utf8.
29930
29931 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
29932 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
29933 All users updated.
29934 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
29935
29936 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
29937 * commands/usbtest.c (grub_usb_get_string): ... move here.
29938 (usb_print_str): Fix error handling.
29939 * include/grub/usb.h (grub_usb_get_string): Remove.
29940
29941 UTF-8 to UTF-16 transformation.
29942
29943 * conf/common.rmk (pkglib_MODULES): Add charset.mod
29944 (charset_mod_SOURCES): New variable.
29945 (charset_mod_CFLAGS): Likewise.
29946 (charset_mod_LDFLAGS): Likewise.
29947 * include/grub/utf.h: New file.
29948 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
29949
29950 Support for device properties.
29951
29952 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
29953 (grub_xnu_devprop_device_header): Likewise.
29954 (grub_xnu_devprop_device_descriptor): Likewise.
29955 (grub_xnu_devprop_add_device): New prototype.
29956 (grub_xnu_devprop_remove_device): Likewise.
29957 (grub_xnu_devprop_remove_property): Likewise.
29958 (grub_xnu_devprop_add_property_utf8): Likewise.
29959 (grub_xnu_devprop_add_property_utf16): Likewise.
29960 (grub_cpu_xnu_init): Likewise.
29961 (grub_cpu_xnu_fini): Likewise.
29962 (grub_cpu_xnu_unload): Likewise.
29963 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
29964 (property_descriptor): Likewise.
29965 (devices): New variable.
29966 (grub_xnu_devprop_remove_property): New function.
29967 (grub_xnu_devprop_add_device): Likewise.
29968 (grub_xnu_devprop_remove_device): Likewise.
29969 (grub_xnu_devprop_add_property): Likewise.
29970 (grub_xnu_devprop_add_property_utf8): Likewise.
29971 (grub_xnu_devprop_add_property_utf16): Likewise.
29972 (hextoval): Likewise.
29973 (grub_cpu_xnu_fill_devprop): Likewise.
29974 (grub_cmd_devprop_load): Likewise.
29975 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
29976 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
29977 (cmd_devprop_load): New variable.
29978 (grub_cpu_xnu_init): New function.
29979 (grub_cpu_xnu_fini): Likewise.
29980 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
29981 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
29982 (grub_cmd_xnu_devtree): Likewise.
29983 (hextoval): New function.
29984 (unescape): Likewise.
29985 (grub_xnu_fill_devicetree): Likewise.
29986
29987 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
29988 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
29989
0945f181
VS
299902009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
29991
29992 Workaround for broken ATI VBE.
29993
29994 * video/i386/pc/vbe.c (last_set_mode): New variable.
29995 (grub_vbe_set_video_mode): Set 'last_set_mode'.
29996 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
29997 (grub_video_vbe_setup): Don't check for reserved flag.
29998
0ad46fd7 299992009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
30000
30001 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
30002 the `find' command.
30003
c179ebe4
VS
300042009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
30005
30006 UUID support for HFS.
30007
30008 * fs/hfs.c (grub_hfs_uuid): New function.
30009 (grub_hfs_fs): New value .uuid.
30010 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
30011
0ad46fd7 300122009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
30013
30014 Fix a segfault with parsing unknown long options.
30015
30016 * util/grub-mkrelpath.c (options): Zero terminate it.
30017
c4a3e41a
CPE
300182009-12-13 Carles Pina i Estany <carles@pina.cat>
30019
30020 * include/grub/misc.h (grub_puts): New declaration.
30021 (grub_puts_): Likewise.
a22008a6 30022 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
30023 (grub_puts_): Likewise.
30024
2e8a7602
RM
300252009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30026
30027 * util/grub-probe.c (probe): Improve error message.
30028
b50b77b9
RM
300292009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30030
30031 * loader/i386/multiboot_elfxx.c
30032 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
30033 initialization.
30034
300352009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30036
30037 Relocator framework
30038
30039 * loader/i386/xnu_helper.S: Removed. All users updated.
30040 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
30041 (relocator_mod_SOURCES): New variable.
30042 (relocator_mod_CFLAGS): Likewise.
30043 (relocator_mod_LDFLAGS): Likewise.
30044 (relocator_mod_ASFLAGS): Likewise.
30045 * conf/x86_64.rmk: Likewise.
30046 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
30047 (grub_multiboot_payload_entry_offset): Likewise.
30048 (grub_multiboot_forward_relocator): Likewise.
30049 (grub_multiboot_forward_relocator_end): Likewise.
30050 (grub_multiboot_backward_relocator): Likewise.
30051 (grub_multiboot_backward_relocator_end): Likewise.
30052 (grub_multiboot_payload_eip): New variable.
30053 (grub_multiboot_payload_orig): Likewise.
30054 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
30055 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
30056 * include/grub/i386/memory.h
30057 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
30058 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
30059 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
30060 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
30061 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
30062 * include/grub/i386/relocator.h: New file.
30063 * include/grub/x86_64/relocator.h: Likewise.
30064 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
30065 (XNU_RELOCATOR): New macro.
30066 (grub_xnu_launcher_start): Remove.
30067 (grub_xnu_launcher_end): Likewise.
30068 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
30069 (grub_xnu_heap_real_start): Remove.
30070 (grub_xnu_heap_start): Change to void *. All users updated.
30071 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
30072 * lib/i386/relocator.c: New file.
30073 * lib/i386/relocator_asm.S: Likewise.
30074 * lib/i386/relocator_backward.S: Likewise.
30075 * lib/mips/relocator.c: Likewise.
30076 * lib/mips/relocator_asm.S: Likewise.
30077 * lib/relocator.c: Likewise.
30078 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
30079 (entry): Removed.
30080 (playground): Likewise.
30081 (grub_multiboot_payload_orig): New variable.
30082 (grub_multiboot_payload_dest): Likewise.
30083 (grub_multiboot_payload_size): Likewise.
30084 (grub_multiboot_payload_eip): Likewise.
30085 (grub_multiboot_payload_esp): Likewise.
30086 (grub_multiboot_boot): Use grub_relocator32_boot.
30087 (grub_multiboot_unload): Free relocators.
30088 (grub_multiboot): Setup stack. Use relocators.
30089 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
30090 (grub_multiboot_load_elfXX): Use relocators.
30091 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
30092 (grub_multiboot_payload_size): Likewise.
30093 (grub_multiboot_payload_dest): Likewise.
30094 (grub_multiboot_payload_entry_offset): Likewise.
30095 (grub_multiboot_forward_relocator): Likewise.
30096 (grub_multiboot_backward_relocator): Likewise.
30097 (grub_multiboot_real_boot): Likewise.
30098 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
30099 (grub_xnu_entry_point): Likewise.
30100 (grub_xnu_arg1): Likewise.
30101 (grub_xnu_stack): Likewise.
30102 (grub_xnu_launch): Removed.
30103 (grub_xnu_boot_resume): New function.
30104 (grub_xnu_boot): Use relocators.
30105 * loader/i386/xnu_helper.S: Removed.
30106 * loader/xnu.c (grub_xnu_heap_start): New variable.
30107 (grub_xnu_heap_size): Likewise.
30108 (grub_xnu_heap_malloc): Use relocators.
30109 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
30110
29eb90c6
VS
301112009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30112
30113 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
30114 anything.
30115
31027430
CPE
301162009-12-13 Carles Pina i Estany <carles@pina.cat>
30117
30118 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
30119 GRUB_ERR_NONE before calling grub_env_set.
30120
dc0c71d9
RM
301212009-12-12 Robert Millan <rmh@aybabtu.com>
30122
30123 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
30124 * genmk.rb (video): New variable.
30125 (CLEANFILES, VIDEOFILES): Add #{video}.
30126 (#{video}): New target rule.
30127 * genvideolist.sh: New file.
30128 * Makefile.in (pkglib_DATA): Add video.lst.
30129 (video.lst): New target rule.
30130 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
30131 `video.lst'.
30132 * util/grub.d/30_os-prober.in: Replace `vbe' with
30133 ${GRUB_VIDEO_BACKEND}.
30134
2a4bfcf0
RM
301352009-12-11 Robert Millan <rmh.grub@aybabtu.com>
30136
30137 * THANKS: Add David Miller.
30138
2a3aa4d5
RM
301392009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
30140
30141 libpciaccess support.
30142
30143 * Makefile.in (LIBPCIACCESS): New variable.
30144 (enable_grub_emu_pci): Likewise.
30145 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
30146 util/pci.c and commands/lspci.c.
30147 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
30148 * configure.ac (grub-emu-pci): New option.
30149 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
30150 (grub_pci_device_unmap_range): Likewise.
30151 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
30152 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
30153 (grub_pci_address_t) [!GRUB_UTIL]: New type.
30154 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
30155 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
30156 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
30157 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
30158 * include/grub/pciutils.h: New file.
30159 * util/pci.c: Likewise.
30160
0ad46fd7 301612009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
30162
30163 * util/misc.c: Don't include <errno.h> twice.
30164
0ad46fd7 301652009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
30166
30167 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
30168 name in an error message.
30169 (grub_biosdisk_rw): Likewise.
30170
2e59983c
VS
301712009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30172
30173 Eliminate NTFS 4Gib barrier.
30174
30175 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
30176 (read_run_data): Likewise.
30177 (grub_ntfs_read_run_list): Likewise.
30178 (grub_ntfs_read_block): Likewise.
30179 (grub_ntfs_iterate_dir): Likewise.
30180 (read_mft): Likewise.
30181 (read_data): Likewise.
30182 Use COM_LOG_LEN.
30183 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
30184 to avoid 64-bit division
30185 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
30186 (grub_ntfs_rlst): Use grub_disk_addr_t.
30187
71ee178a
VS
301882009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30189
30190 Eliminate grub-fstest 4Gib barrier.
30191
30192 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
30193 (read_file): Fix error reporting.
30194
2520d4b8
VS
301952009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30196
30197 Eliminate hexdump 4Gib barrier.
30198
30199 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
30200 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
30201
e1f27065
VS
302022009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30203
30204 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
30205 Fixes amarsh bug.
30206
1a0f7f45
RM
302072009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
30208
30209 Remove miscellaneous files in distclean target.
30210
30211 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
30212
c631d9fb
CW
302132009-12-09 Colin Watson <cjwatson@ubuntu.com>
30214
30215 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
30216 if they're already set. This resolves the conflict between my
30217 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
30218 fixing the --grub-probe option again.
30219 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
30220 change on 2009-10-06, so that we now once again source
30221 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
30222
7c7b6106
RM
302232009-12-08 Robert Millan <rmh.grub@aybabtu.com>
30224
30225 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
30226 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
30227 `util/devicemap.c'.
30228
e3069ec1
CPE
302292009-12-08 Carles Pina i Estany <carles@pina.cat>
30230
30231 * include/grub/misc.h (grub_printf_): New declaration.
30232 * kern/misc.c (grub_printf_): New definition.
30233 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
30234 instead of `grub_printf' and `_'.
30235 * normal/menu_entry.c (store_completion): Likewise.
30236 (run): Likewise.
30237 (grub_menu_entry_run): Likewise.
30238 * normal/menu_text.c (grub_wait_after_message): Likewise.
30239 (notify_booting): Likewise.
30240 (notify_fallback): Likewise.
30241 (notify_execution_failure): Likewise.
30242
d6ceebf1
CW
302432009-12-07 Colin Watson <cjwatson@ubuntu.com>
30244
30245 * configure.ac: Check for vasprintf.
30246 * util/misc.c (asprintf): Move allocation from here ...
30247 (vasprintf): ... to here. New function.
30248 (xasprintf): New function.
30249 * include/grub/util/misc.h (vasprintf, xasprintf): Add
30250 prototypes.
30251 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
30252 * util/grub-mkfont.c (write_font): Likewise.
30253 * util/grub-probe.c (probe): Likewise.
30254 * util/hostdisk.c (make_device_name): Likewise.
30255
de6daa8b
DM
302562009-12-06 David S. Miller <davem@sunset.davemloft.net>
30257
30258 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
30259 anything even prefixed with 'cdrom' as a cdrom.
30260
0ad46fd7 302612009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
30262
30263 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
30264 mount points.
30265
98d3dc02
CPE
302662009-12-05 Carles Pina i Estany <carles@pina.cat>
30267
30268 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
30269 grub_gettext_msg_list.
30270 (grub_gettext_gettranslation_from_position): Return const char *
30271 and not char *.
a2c1332b 30272 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
30273 returns from the list if existing there.
30274 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
30275 (grub_gettext_delete_list): Delete the list.
30276 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
30277 lang environment variable is changed.
30278 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
30279
b283f108
VS
302802009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30281
30282 Rename kernel.mod to kernel.img.
30283
30284 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
30285 (kernel_mod_EXPORTS): Rename to ...
30286 (kernel_img_EXPORTS): ... this.
30287 (kernel_mod_SOURCES): Rename to ...
30288 (kernel_img_SOURCES): ... this.
30289 (kernel_mod_HEADERS): Rename to ...
30290 (kernel_img_HEADERS): ... this. All users updated.
30291 (kernel_mod_CFLAGS): Rename to ...
30292 (kernel_img_CFLAGS): ... this.
30293 (kernel_mod_ASFLAGS): Rename to ...
30294 (kernel_img_ASFLAGS): ... this.
30295 (kernel_mod_LDFLAGS): Rename to ...
30296 (kernel_img_LDFLAGS): ... this.
30297 * conf/x86_64-efi.rmk: Likewise.
30298 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
30299 (read_kernel_image): ... this. All users updated.
30300 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
30301
69055f8a
CPE
303022009-12-05 Carles Pina i Estany <carles@pina.cat>
30303
30304 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
30305 (print_spaces): New function.
30306 (grub_print_ucs4): New function.
30307 (getstringwidth): New function.
30308 (print_message_indented): New function.
30309 (print_message): Gettexttize strings using print_message_indented.
30310 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
30311 width.
30312 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 30313 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
30314 Gettextize.
30315 * normal/menu_entry.c (store_completion): Cleanup the gettextized
30316 string.
30317 (run): Likewise.
30318 (grub_menu_entry_run): Likewise.
30319 * PO/POTFILES: Add normal/menu_entry.c.
30320
f616f51c
VS
303212009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30322
30323 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
30324
57bbe3be
CPE
303252009-12-05 Carles Pina i Estany <carles@pina.cat>
30326
30327 * util/grub-install.in: Install gettext .mo files.
30328 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
30329
013d67a1
CPE
303302009-12-05 Carles Pina i Estany <carles@pina.cat>
30331
30332 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
30333 grub_dprintf.
30334
fb954db0
RM
303352009-12-05 Robert Millan <rmh.grub@aybabtu.com>
30336
30337 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
30338 non-firmware-dependant one in realmode.S takes precedence.
30339
6b8474f8
RM
303402009-12-04 Robert Millan <rmh.grub@aybabtu.com>
30341
30342 * commands/halt.c: Replace misc arch-specific headers with
30343 `<grub/misc.h>'.
30344 * commands/reboot.c: Likewise.
30345 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
30346 `<grub/misc.h>'.
30347 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
30348 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
30349 (kernel_img_SOURCES): ... to here.
30350
30351 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
30352 * include/grub/i386/pc/init.h: Likewise.
30353 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
30354 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30355
30356 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
30357
30358 * include/grub/i386/halt.h: Remove.
30359 * include/grub/i386/reboot.h: Likewise.
30360
30361 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
30362
4b2e6ca2
DM
303632009-12-03 David S. Miller <davem@sunset.davemloft.net>
30364
30365 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
30366 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
30367 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
30368 "progname.h"
30369 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30370 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30371 (usage): Add missing comma in printf.
30372
5239348f
RM
303732009-12-02 Robert Millan <rmh.grub@aybabtu.com>
30374
30375 Use the same reboot approach on i386 coreboot and qemu as we do on
30376 BIOS.
30377
30378 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
30379 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
30380 * kern/i386/reboot.c: Remove.
30381 * include/grub/i386/reboot.h (grub_reboot): Export function.
30382 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
30383 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
30384 0xf000:0xfff0 instead of 0xffff:0x0000.
30385 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
30386 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
30387
ef34cbd4
RM
303882009-11-30 Robert Millan <rmh.grub@aybabtu.com>
30389
30390 Fix $srcdir != $objdir build.
30391
30392 * Makefile.in (po/%.po): Rewrite as ...
30393 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
30394
dc9837ea
ST
303952009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
30396
30397 Fix GNU/Hurd grub-install crash.
30398 * util/grub-probe.c (probe): Try to access `path' only when it is not
30399 NULL.
30400
2f857f98
VS
304012009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30402
30403 Correct module naming.
30404
30405 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30406 (GRUB_MOD_INIT(efi_uga)): ... to this
30407 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30408 (GRUB_MOD_FINI(efi_uga)): ... to this
30409 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30410 (GRUB_MOD_INIT(efi_gop)): ... to this
30411 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30412 (GRUB_MOD_FINI(efi_gop)): ... to this
30413
c5448046
RM
304142009-11-28 Robert Millan <rmh.grub@aybabtu.com>
30415
30416 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
30417 translatable.
30418 (usage): Translate `arg' strings using gettext().
30419 Thanks to Jordi Mallach for the suggestion.
30420
c85184ad
VS
304212009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30422
30423 GOP support. Based on patch from Bean
30424 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30425
30426 * video/efi_gop.c: New file.
30427 * include/grub/efi/graphics_output.h: Likewise.
30428 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
30429 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30430 variables.
30431 * conf/x86_64-efi.rmk: Likewise.
30432
8a4c48d8
VS
304332009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30434
30435 Rename efi_fb to efi_uga.
30436
30437 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30438 'efi_uga.mod'.
30439 (efi_fb_mod_SOURCES): Rename this ...
30440 (efi_uga_mod_SOURCES): ... to this.
30441 (efi_fb_mod_CFLAGS): Rename this ...
30442 (efi_uga_mod_CFLAGS): ... to this.
30443 (efi_fb_mod_LDFLAGS): Rename this ...
30444 (efi_uga_mod_LDFLAGS): ... to this.
30445 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30446 'efi_uga.mod'.
30447 (efi_fb_mod_SOURCES): Rename this ...
30448 (efi_uga_mod_SOURCES): ... to this.
30449 (efi_fb_mod_CFLAGS): Rename this ...
30450 (efi_uga_mod_CFLAGS): ... to this.
30451 (efi_fb_mod_LDFLAGS): Rename this ...
30452 (efi_uga_mod_LDFLAGS): ... to this.
30453 * video/efi_fb.c: Move this ...
30454 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
30455
fb6c1a7b
RM
304562009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30457
30458 * po/README: New file. Explain our PO file workflow.
30459
3bc7896c
RM
304602009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30461
30462 * po/ChangeLog: Remove. Move relevant entries back to ...
30463 * ChangeLog: ... here.
30464 * po/ca.po: Remove (now handled by TLP).
30465 * po/id.po: Likewise.
30466 * po/zh_CN.po: Likewise.
30467 * Makefile.in (LINGUAS): Initialize in a way that supports
30468 empty set.
30469
9ed4841d
RM
304702009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30471
30472 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
30473 reliing on po/LINGUAS.
30474 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
30475 (po/%.po): ... this.
30476
0ad46fd7 304772009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
30478
30479 * util/i386/efi/grub-mkimage.c: Include "progname.h".
30480 (main): Use `program_name' instead of nonexistent `progname'.
30481
e30dd392
FZ
304822009-11-26 Felix Zielcke <fzielcke@z-51.de>
30483
30484 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30485 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
30486
7656de4f
RM
304872009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30488
30489 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
30490 commit.
30491 * conf/i386-efi.rmk: Likewise.
30492 * conf/i386-ieee1275.rmk: Likewise.
30493 * conf/powerpc-ieee1275.rmk: Likewise.
30494 * conf/sparc64-ieee1275.rmk: Likewise.
30495 * conf/x86_64-efi.rmk: Likewise.
30496
db77c4d4
FZ
304972009-11-26 Felix Zielcke <fzielcke@z-51.de>
30498
30499 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
30500
a755bb04
FZ
305012009-11-26 Felix Zielcke <fzielcke@z-51.de>
30502
30503 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
30504
8a4c07fd
RM
305052009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30506
30507 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
30508 (grub_mkdevicemap_SOURCES): New variable.
30509 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
30510 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
30511 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
30512 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
30513 (grub_mkdevicemap_SOURCES): Remove.
30514 * conf/i386-efi.rmk: Likewise.
30515 * conf/i386-ieee1275.rmk: Likewise.
30516 * conf/i386-pc.rmk: Likewise.
30517 * conf/powerpc-ieee1275.rmk: Likewise.
30518 * conf/sparc64-ieee1275.rmk: Likewise.
30519 * conf/x86_64-efi.rmk: Likewise.
30520 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
30521 (usage): Fix strings to use `program_name'.
30522 (main): Initialize gettext.
30523 * util/grub-editenv.c: Likewise.
30524 * util/grub-emu.c: Likewise.
30525 * util/grub-fstest.c: Likewise.
30526 * util/grub-mkdevicemap.c: Likewise.
30527 * util/grub-mkfont.c: Likewise.
30528 * util/grub-mkrelpath.c: Likewise.
30529 * util/grub-pe2elf.c: Likewise.
30530 * util/grub-probe.c: Likewise.
30531 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30532 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30533 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30534
30535 * util/misc.c: Include `"progname.h"'.
30536 (progname): Remove variable.
30537 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
30538
6f61ed55
FZ
305392009-11-25 Felix Zielcke <fzielcke@z-51.de>
30540
30541 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
30542 printf and print a newline after the menuentry header line.
30543 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
30544
f022876b
FZ
305452009-11-25 Felix Zielcke <fzielcke@z-51.de>
30546
30547 autoconf >= 2.60 support $(localedir).
30548
30549 * INSTALL: Note that autoconf 2.60 is required.
30550 * configure.ac (AC_PREREQ): Bump to 2.60.
30551 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
30552 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
30553
6717926e
YB
305542009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
30555
30556 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
30557 aclocal is run.
30558
08806a54
RM
305592009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30560
30561 * normal/main.c (grub_normal_read_line): Fix off-by-one
30562 buffer overflow.
30563
13b33fba
RM
305642009-11-25 Robert Millan <rmh.grub@aybabtu.com>
30565
30566 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
30567 "parser.grub" in grub_command_execute() call.
30568
4a8572e9
CPE
305692009-11-24 Carles Pina i Estany <carles@pina.cat>
30570
30571 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
30572 * conf/i386-efi.rmk: Likewise.
30573 * conf/i386-ieee1275.rmk: Likewise.
30574 * conf/i386-pc.rmk: Likewise.
30575 * conf/powerpc-ieee1275.rmk: Likewise.
30576 * conf/sparc64-ieee1275.rmk: Likewise.
30577 * conf/x86_64-efi.rmk: Likewise.
30578 * gettext/gettex.c: Include <grub/i18n.h>.
30579 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
30580 here ...
30581 * include/grub/i18n.h: ... to here
30582 * include/grub/i18n.h: ... to here.
30583 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 30584 (grub_gettext_dummy): Move above user.
4a8572e9 30585
bee48093
FZ
305862009-11-24 Felix Zielcke <fzielcke@z-51.de>
30587
30588 * util/Makefile.in (install-local): Convert a `for' into a normal
30589 shell expansion.
30590
a031e91c
RM
305912009-11-24 Robert Millan <rmh.grub@aybabtu.com>
30592
30593 * autogen.sh: Add automake call.
30594 * config.guess: Remove.
30595 * config.sub: Likewise.
30596 * install-sh: Likewise.
30597
26bec39d
FZ
305982009-11-24 Felix Zielcke <fzielcke@z-51.de>
30599
30600 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
30601
8e2532fd
FZ
306022009-11-24 Felix Zielcke <fzielcke@z-51.de>
30603
30604 * util/Makefile.in (install-local): Convert a make `$(foreach)'
30605 function to a normal shell `for'.
30606
fefa1b7d
FZ
306072009-11-24 Felix Zielcke <fzielcke@z-51.de>
30608
30609 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30610
4501250b
FZ
306112009-11-24 Felix Zielcke <fzielcke@z-51.de>
30612
30613 * util/grub-mkrelpath.c: New file.
30614 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
30615 (grub_mkrelpath_SOURCES): New variable.
30616 * include/grub/util/misc.h: New function prototype.
30617 * util/misc.c (make_system_path_relative_to_its_root): New function.
30618
30619 * util/grub-mkconfig_lib.in (bindir): New variable.
30620 (grub_mkrelpath): Likewise.
30621 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
30622
30623 * util/probe.c (probe): Make the file path relative to its root.
30624 Change a info message to use the GRUB path. Enable again the
30625 check if we can read the file with GRUB facilities.
30626
30627 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
30628 to its root.
30629
11d9778b
FZ
306302009-11-24 Felix Zielcke <fzielcke@z-51.de>
30631
30632 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
30633 platform.
30634
4465287d
FZ
306352009-11-24 Felix Zielcke <fzielcke@z-51.de>
30636
30637 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
30638 strncmp().
30639
62b47f22
FZ
306402009-11-24 Felix Zielcke <fzielcke@z-51.de>
30641
30642 * util/getroot.c (grub_util_is_dmraid): New function.
30643 (grub_util_get_dev_abstraction): Treat dmraid and multipath
30644 devices as normal ones, not as LVM.
30645
1eafb9b9 306462009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
30647
30648 * conf/common.rmk: Add grub-gettext_lib target and updates
30649 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
30650 LDFLAGS.
30651 * gettext/gettext.c: New file. (Reads mo files).
30652 * include/grub/file.h (grub_file_pread): New prototype.
30653 * include/grub/i18n.h (_): New prototype.
30654 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
30655 prototypes.
30656 * kern/misc.c (grub_gettext_dummy): New function.
30657 * normal/menu_text.c: Include <grub/i18n.h>.
30658 * normal/menu_text.c (print_timeout): Gettexttize string.
30659 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
30660 * po/POTFILES: Add `normal/menu_text.c'.
30661 * po/ca.po: Add new translations.
c3ea6bd4
CPE
30662 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
30663 gettext module and defines locale_dir and lang in grub.cfg.
30664 * NEWS: Add gettext support.
30665
0fdb2568
RM
306662009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30667
30668 * util/hostdisk.c: Include `<grub/i18n.h>'.
30669 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
30670 (make_device_name): Rewrite using asprintf.
30671 (convert_system_partition_to_system_disk): Replace 0 with NULL.
30672 (find_system_device): If a device is not found, generate one just
30673 by reusing the OS path name.
30674 (read_device_map): Make it permissible for device.map not to exist.
30675
f515aa62
RM
306762009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30677
30678 * script/sh/execute.c: Move from here ...
30679 * script/execute.c: ... to here. Update all users.
30680 * script/sh/function.c: Move from here ...
30681 * script/function.c: ... to here. Update all users.
30682 * script/sh/lexer.c: Move from here ...
30683 * script/lexer.c: ... to here. Update all users.
30684 * script/sh/main.c: Move from here ...
30685 * script/main.c: ... to here. Update all users.
30686 * script/sh/parser.y: Move from here ...
30687 * script/parser.y: ... to here. Update all users.
30688 * script/sh/script.c: Move from here ...
30689 * script/script.c: ... to here. Update all users.
30690
f84b481b
RM
306912009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30692
30693 * configure.ac: Detect all `emu' platforms. Define
30694 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
30695 --enable-grub-emu logic. Disable include/grub/machine
30696 symlink on `emu' platforms.
30697
30698 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
30699 * gensymlist.sh.in: Likewise.
30700
30701 * include/grub/i386/coreboot/machine.h: Remove file.
30702 * include/grub/i386/efi/machine.h: Likewise.
30703 * include/grub/i386/ieee1275/machine.h: Likewise.
30704 * include/grub/i386/pc/machine.h: Likewise.
30705 * include/grub/i386/qemu/machine.h: Likewise.
30706 * include/grub/powerpc/ieee1275/machine.h: Likewise.
30707 * include/grub/sparc64/ieee1275/machine.h: Likewise.
30708 * include/grub/x86_64/efi/machine.h: Likewise.
30709
30710 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
30711 * commands/halt.c: Likewise.
30712 * commands/reboot.c: Likewise.
30713 * include/grub/autoefi.h: Likewise.
30714 * include/grub/i386/at_keyboard.h: Likewise.
30715 * include/grub/i386/kernel.h: Likewise.
30716 * include/grub/i386/loader.h: Likewise.
30717 * include/grub/i386/pc/memory.h: Likewise.
30718 * kern/dl.c: Likewise.
30719 * kern/i386/coreboot/init.c: Likewise.
30720 * loader/i386/bsd.c: Likewise.
30721 * loader/i386/linux.c: Likewise.
30722 * loader/multiboot_loader.c: Likewise.
30723 * term/i386/pc/serial.c: Likewise.
30724 * term/usb_keyboard.c: Likewise.
30725
30726 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
30727 `<grub/machine/machine.h>'
30728 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
30729 * util/misc.c: Remove `<grub/machine/machine.h>' and
30730 `<grub/machine/time.h>'.
30731
30732 * Makefile.in (enable_grub_emu): Remove variable.
30733 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
30734
30735 * conf/any-emu.rmk: New file.
30736 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
30737 (grub_emu_init.c): Move from here ...
30738 * conf/any-emu.rmk: ... to here.
30739
30740 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
30741 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
30742 * conf/any-emu.rmk: ... to here.
30743
4efeab03
RM
307442009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30745
30746 * include/grub/parser.h (grub_parser_register): Document need
30747 of `name' parameter.
30748 * normal/main.c (grub_normal_read_line): Simplify prompt string.
30749 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
30750 "sh" to "grub".
30751
ea1dd8bf
RM
307522009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30753
30754 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
30755 `$(XGETTEXT)'.
30756 * include/grub/i18n.h (N_): New macro.
30757 * util/mkisofs/mkisofs.h: Likewise.
30758 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
30759 around N_().
30760 (usage): Use gettext() to translate help strings when printing them.
30761
0c140626
RM
307622009-11-23 Robert Millan <rmh.grub@aybabtu.com>
30763
30764 Based on patch from Bean
30765 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30766
30767 * video/efi_fb.c: New file.
30768 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
30769 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30770 variables.
30771 * conf/x86_64-efi.rmk: Likewise.
30772
87d58298
RM
307732009-11-22 Robert Millan <rmh.grub@aybabtu.com>
30774
30775 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
30776 * util/i386/pc/grub-setup.c: Likewise.
30777
994cc3a3
ST
307782009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
30779
30780 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
30781 <hurd/fs.h>
30782 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
30783 file_get_storage_info to implement grub_guess_root_device.
30784
26a61d6a
FZ
307852009-11-21 Felix Zielcke <fzielcke@z-51.de>
30786
30787 * Makefile.in (target): Use make's builtin $(shell) function
30788 instead of calling directly $(SHELL) to create the locale directories,
30789 inside the $(foreach) function.
30790
74ff1dd5
FZ
307912009-11-21 Felix Zielcke <fzielcke@z-51.de>
30792
30793 * util/grub-mkrescue.in: Print an error and usage if output option
30794 has not been given.
30795
0b787d0e
FZ
307962009-11-21 Felix Zielcke <fzielcke@z-51.de>
30797
30798 Patch from Loïc Minier <loic.minier@ubuntu.com>.
30799 * util/grub.d/30_os-prober.in: Cope with Linux entries where
30800 root and /boot are on different devices.
30801
1164b270
RM
308022009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30803
30804 Fix build for srcdir != objdir.
30805
30806 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
30807 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
30808 $(srcdir).
30809 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
30810 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
30811 reference for input.
30812
13774a2f
RM
308132009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30814
30815 * util/grub-mkrescue.in: Use source directory direcly (without copiing
30816 or hardlinking it). Remove -J option, Joliet is not compatible with
30817 multiple source directories.
30818
efda854e
RM
308192009-11-21 Carles Pina i Estany <carles@pina.cat>
308202009-11-21 Robert Millan <rmh.grub@aybabtu.com>
30821
30822 * util/grub-mkrescue.in: Recognize `--override-directory' option.
30823 (process_input_dir): New function. Process an arbitrary input
30824 directory.
30825 Misc adjustments to support both "override mode" and system-wide mode.
30826
6c09890c
FZ
308272009-11-20 Felix Zielcke <fzielcke@z-51.de>
30828
30829 * configure.ac (UNIFONT_BDF): Rename to ...
30830 (FONT_SOURCE): ... this. Update all users.
30831
a797824f
FZ
308322009-11-20 Felix Zielcke <fzielcke@z-51.de>
30833
30834 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
30835 to the list of unifont files to look for.
30836
cd4f42b0
RM
308372009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30838
30839 Patch from Joe Auricchio <jauricchio@gmail.com>
30840 * commands/minicmd.c (grub_mini_cmd_clear): New function.
30841 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
30842 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
30843
393c783d
FZ
308442009-11-19 Felix Zielcke <fzielcke@z-51.de>
30845
30846 * Makefile.in (install-local): Add a missing backslash.
30847
b2f1e327
FZ
308482009-11-19 Felix Zielcke <fzielcke@z-51.de>
30849
30850 * include/grub/x86_64/io.h: New file.
30851
f577f7a0
RM
308522009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30853
30854 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
30855 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
30856 Include `"progname.h"'.
30857 (main): Initialize gettext.
30858 * util/i386/pc/grub-setup.c: Gettexttize.
30859 * util/i386/pc/grub-mkimage.c: Likewise.
30860
30861 * Makefile.in (po/*.po): Redefine as ...
30862 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
30863
3bc7896c
RM
30864 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
30865
c37943b6
RM
308662009-11-19 Robert Millan <rmh.grub@aybabtu.com>
30867
30868 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
30869 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
30870 (program_name): Remove.
30871 (main): Initialize gettext support.
6323f705
RM
30872 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
30873 Include `<libintl.h>'.
30874 (_): New macro.
c37943b6
RM
30875
30876 * util/mkisofs/eltorito.c: Gettexttize.
30877 * util/mkisofs/joliet.c: Likewise.
30878 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
30879 * util/mkisofs/multi.c: Likewise.
30880 * util/mkisofs/rock.c: Likewise.
30881 * util/mkisofs/tree.c: Likewise.
30882 * util/mkisofs/write.c: Likewise.
30883
3bc7896c
RM
30884 * po/POTFILES: Update with new files.
30885
5ce77c6e
RM
308862009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30887
30888 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
30889 * util/mkisofs/iso9660.h: Likewise.
30890 * util/mkisofs/joliet.c: Likewise.
30891 * util/mkisofs/mkisofs.c: Likewise.
30892 * util/mkisofs/mkisofs.h: Likewise.
30893 * util/mkisofs/rock.c: Likewise.
30894 * util/mkisofs/tree.c: Likewise.
30895 * util/mkisofs/write.c: Likewise.
30896
30897 * util/mkisofs/eltorito.c (rcsid): Remove.
30898 * util/mkisofs/hash.c: Likewise.
30899 * util/mkisofs/joliet.c: Likewise.
30900 * util/mkisofs/name.c: Likewise.
30901 * util/mkisofs/rock.c: Likewise.
30902 * util/mkisofs/tree.c: Likewise.
30903 * util/mkisofs/write.c: Likewise.
30904
1dabbc77
RM
309052009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30906
30907 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
30908 instead of static allocation.
30909 * util/mkisofs/match.h: Likewise.
30910
633877cb
RM
309112009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30912
3bc7896c
RM
30913 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
30914 and `util/grub.d/10_linux.in'.
633877cb
RM
30915 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
30916 translatable Shell files.
30917
af1c0c85
RM
309182009-11-18 Robert Millan <rmh.grub@aybabtu.com>
30919
30920 * Makefile.in ($(srcdir)/aclocal.m4): New target.
30921
769ae37b
RM
309222009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30923
30924 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 30925 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
30926 * util/grub.d/10_kfreebsd.in (bindir): New variable.
30927 Add gettext initialization.
30928 (kfreebsd_entry): Make menuentry output translatable.
30929
309302009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30931
30932 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
30933 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
30934 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
30935 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
30936 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 30937 * po/LINGUAS: New file.
769ae37b
RM
30938
309392009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30940
30941 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
30942 other things).
30943 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
30944 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
30945 bindtextdomain() calls for gettext initialization.
30946
309472009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30948
30949 * gnulib/progname.c: New file (imported from Gnulib).
30950 * gnulib/progname.h: Likewise.
30951 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30952 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
30953 (usage): Replace `progname' with `program_name'.
30954 (main): Use set_program_name() for program name initialization.
30955
309562009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30957
30958 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
30959 from here ...
30960 * Makefile.in (CPPFLAGS): ... to here.
30961
309622009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30963
30964 * aclocal.m4: Move from here ...
30965 * acinclude.m4: ... to here.
30966 * autogen.sh: Add call to `aclocal'.
30967 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
30968
309692009-11-16 Robert Millan <rmh.grub@aybabtu.com>
30970
30971 * Makefile.in (CLEANFILES): Add `po/*.mo'.
30972 (LINGUAS): New variable.
30973 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
30974 (install-local): Install MO files.
30975 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
30976 * include/grub/i18n.h: New file.
3bc7896c
RM
30977 * po/POTFILES: New file.
30978 * po/ca.po: New file.
769ae37b
RM
30979 * util/grub.d/10_linux.in (bindir): New variable.
30980 Add gettext initialization.
30981 (linux_entry): Make menuentry output translatable.
30982 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
30983 (usage): Make --help output translatable.
30984 (main): Initialize gettext.
30985
02c0a6ad
RM
309862009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30987
30988 * import_gcry.py: New file (written by Vladimir with minor
30989 adjustments).
30990 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
30991 ciphers.
30992 * INSTALL: Document that Python is required for bootstrap.
30993
309942009-11-17 Robert Millan <rmh.grub@aybabtu.com>
30995
30996 Import ciphers from libgcrypt 1.4.4.
30997
30998 * lib/libgcrypt/cipher/ChangeLog
30999 * lib/libgcrypt/cipher/ac.c
31000 * lib/libgcrypt/cipher/arcfour.c
31001 * lib/libgcrypt/cipher/bithelp.h
31002 * lib/libgcrypt/cipher/blowfish.c
31003 * lib/libgcrypt/cipher/camellia-glue.c
31004 * lib/libgcrypt/cipher/camellia.c
31005 * lib/libgcrypt/cipher/camellia.h
31006 * lib/libgcrypt/cipher/cast5.c
31007 * lib/libgcrypt/cipher/cipher.c
31008 * lib/libgcrypt/cipher/crc.c
31009 * lib/libgcrypt/cipher/des.c
31010 * lib/libgcrypt/cipher/dsa.c
31011 * lib/libgcrypt/cipher/ecc.c
31012 * lib/libgcrypt/cipher/elgamal.c
31013 * lib/libgcrypt/cipher/hash-common.c
31014 * lib/libgcrypt/cipher/hash-common.h
31015 * lib/libgcrypt/cipher/hmac-tests.c
31016 * lib/libgcrypt/cipher/md.c
31017 * lib/libgcrypt/cipher/md4.c
31018 * lib/libgcrypt/cipher/md5.c
31019 * lib/libgcrypt/cipher/primegen.c
31020 * lib/libgcrypt/cipher/pubkey.c
31021 * lib/libgcrypt/cipher/rfc2268.c
31022 * lib/libgcrypt/cipher/rijndael-tables.h
31023 * lib/libgcrypt/cipher/rijndael.c
31024 * lib/libgcrypt/cipher/rmd.h
31025 * lib/libgcrypt/cipher/rmd160.c
31026 * lib/libgcrypt/cipher/rsa.c
31027 * lib/libgcrypt/cipher/seed.c
31028 * lib/libgcrypt/cipher/serpent.c
31029 * lib/libgcrypt/cipher/sha1.c
31030 * lib/libgcrypt/cipher/sha256.c
31031 * lib/libgcrypt/cipher/sha512.c
31032 * lib/libgcrypt/cipher/tiger.c
31033 * lib/libgcrypt/cipher/twofish.c
31034 * lib/libgcrypt/cipher/whirlpool.c
31035
af2f93ac
RM
310362009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31037
31038 Fix build for systems without error().
31039
31040 * gnulib/error.c: New file (imported from Gnulib).
31041 * gnulib/error.h: Likewise.
31042 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
31043 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
31044 (this variable is now used by error()).
31045
73fb3dd5
FZ
310462009-11-16 Felix Zielcke <fzielcke@z-51.de>
31047
814f5e96
FZ
31048 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
31049 instead of relying that char is signed.
73fb3dd5 31050
a691ca33
VS
310512009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
31052
31053 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
31054 blocksize different from specified.
31055 (grub_pxefs_read): Likewise.
31056
2af8f0f4
FZ
310572009-11-16 Felix Zielcke <fzielcke@z-51.de>
31058
31059 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
31060
31061 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
31062 (grub_ata_readwrite): Likewise. Update 2 format strings.
31063 (grub_atapi_read): Likewise.
31064
31065 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
31066 * conf/i386.rmk (pkglib_MODULES): ... to here ...
31067 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
31068 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
31069 (ata_mod_LDFLAGS): Move from here ...
31070 * conf/i386.rmk: ... to here ...
31071 * conf/x86_64-efi.rmk: ... and here.
31072 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
31073 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
31074
83bdecaf
RM
310752009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31076
31077 Relicense multiboot.h, with RMS' blessing.
31078
31079 * include/multiboot.h: Change to X11 license.
31080
fd6fd3d7
RM
310812009-11-15 Robert Millan <rmh.grub@aybabtu.com>
31082
31083 Support --version in grub-mkisofs.
31084
31085 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
31086 (OPTION_VERSION): New macro.
31087 (ld_options): Recognize --version.
31088 (usage): Move `program_name' from here ...
31089 (program_name): ... to here. Add `static' qualifier.
31090 (main): Recognize `OPTION_VERSION'.
31091
16a88c49
FZ
310922009-11-15 Felix Zielcke <fzielcke@z-51.de>
31093
31094 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
31095 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
31096
a4158476
RM
310972009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31098
31099 Fix help2man generation for mkisofs.
31100
31101 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
31102 (usage): Send output to stdout (rather than stderr).
31103
fc2208b0
RM
311042009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31105
31106 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
31107 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31108 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
31109 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31110 (bin_SCRIPTS): Add `grub-mkfloppy'.
31111 (grub_mkfloppy_SOURCES): New variable.
31112
31113 * util/grub-mkrescue.in: New file.
31114 * util/i386/pc/grub-mkfloppy.in: New file.
31115
31116 * util/i386/coreboot/grub-mkrescue.in: Remove.
31117 * util/i386/pc/grub-mkrescue.in: Remove.
31118
8d0edf4a
RM
311192009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31120
31121 * include/grub/multiboot.h (struct grub_multiboot_header): Move
31122 from here ...
31123 * include/multiboot.h (struct multiboot_header): ... to here. Update
31124 all users.
31125 * include/grub/multiboot.h (struct grub_multiboot_info): Move
31126 from here ...
31127 * include/multiboot.h (struct multiboot_info): ... to here. Update
31128 all users.
31129 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
31130 from here ...
31131 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
31132 Update all users.
31133 * include/grub/multiboot.h (struct grub_mod_list): Move
31134 from here ...
31135 * include/multiboot.h (struct multiboot_mod_list): ... to here.
31136 Update all users.
31137
a73f5969
RM
311382009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31139
31140 * include/multiboot2.h (multiboot_word): Rename from this ...
31141 (multiboot2_word): ... to this. Update all users.
31142 (multiboot_header): Rename from this ...
31143 (multiboot2_header): ... to this. Update all users.
31144 (multiboot_tag_header): Rename from this ...
31145 (multiboot2_tag_header): ... to this. Update all users.
31146 (multiboot_tag_start): Rename from this ...
31147 (multiboot2_tag_start): ... to this. Update all users.
31148 (multiboot_tag_name): Rename from this ...
31149 (multiboot2_tag_name): ... to this. Update all users.
31150 (multiboot_tag_module): Rename from this ...
31151 (multiboot2_tag_module): ... to this. Update all users.
31152 (multiboot_tag_memory): Rename from this ...
31153 (multiboot2_tag_memory): ... to this. Update all users.
31154 (multiboot_tag_unused): Rename from this ...
31155 (multiboot2_tag_unused): ... to this. Update all users.
31156 (multiboot_tag_end): Rename from this ...
31157 (multiboot2_tag_end): ... to this. Update all users.
31158
1c8927f0
RM
311592009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31160
31161 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
31162 this platform we should support Multiboot1 first.
31163
31164 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31165 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
31166 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
31167
6e1e0d89
RM
311682009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31169
31170 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
31171 of write calls (converting them to fwrite() if they aren't already).
31172 (get_torito_desc): Likewise.
31173 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
31174
7f2b34d8
RM
311752009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31176
31177 * util/i386/pc/grub-install.in: Move from here ...
31178 * util/grub-install.in: ... to here. Update all users.
31179
c0ef3311
CW
311802009-11-11 Colin Watson <cjwatson@ubuntu.com>
31181
31182 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
31183
e1f240ff
RM
311842009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31185
31186 Support for El Torito without floppy emulation.
31187
31188 * util/mkisofs/eltorito.c: Include `<errno.h>'.
31189 (init_boot_catalog): Improve error handling.
31190 (get_torito_desc): Don't use floppy emulation unless requested by
31191 user. Patch boot information table when requested via
31192 `-boot-info-table'.
31193 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
31194 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
31195 (use_boot_info_table): New variables.
31196 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
31197 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
31198 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
31199 `--eltorito-emul-floppy'.
31200 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
31201 and `OPTION_ELTORITO_EMUL_FLOPPY'.
31202 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
31203 (use_boot_info_table, get_731): New prototypes.
31204 * util/mkisofs/write.c (get_731): New function.
31205
af7d4de5
FZ
312062009-11-11 Felix Zielcke <fzielcke@z-51.de>
31207
31208 Fix the generation of the man page.
31209
31210 * util/pc/i386/grub-install.in: Source
31211 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
31212
2c55dbc0
RM
312132009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31214
31215 Large file support for grub-mkisofs.
31216
31217 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
31218 * util/mkisofs/mkisofs.c (next_extent, last_extent)
31219 (session_start): Upgrade type to `uint64_t'. Update all users.
31220 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
31221 (struct directory_entry): Upgrade type of `starting_block' and
31222 `size' to `uint64_t'. Update all users.
31223 (struct deferred): Remove unused structure.
31224 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
31225 Update all users.
31226 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
31227 file is larger than `UINT32_MAX'.
31228 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
31229 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
31230 return value.
31231 (struct deferred_write): Upgrade type of `extent' and `size' to
31232 `uint64_t'. Update all users.
31233 (last_extent_written): Upgrade type to `uint64_t'. Update all
31234 users.
31235 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
31236 Update all users. Upgrade type of `remain' to `int64_t' and
31237 `use' to `size_t'. Use error() to handle fread() errors.
31238 (write_files): Rely on write_one_file() rather than calling
31239 xfwrite() directly.
31240
6a9cead5
FZ
312412009-11-09 Felix Zielcke <fzielcke@z-51.de>
31242
31243 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
31244
4825d790
RM
312452009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31246
31247 * util/mkisofs/fnmatch.c: Remove.
31248 * util/mkisofs/getopt1.c: Likewise.
31249 * util/mkisofs/getopt.c: Likewise.
31250 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
31251 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
31252 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
31253 `gnulib/getopt1.c' and `gnulib/getopt.c'.
31254 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
31255
31256 * configure.ac: Detect `mingw32msvc' host_os.
31257 Check for lstat(), getuid() and getgid().
31258
31259 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
31260 instances of `u_char' with `uint8_t'.
31261
31262 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
31263 [!HAVE_GETUID] (getuid): New function (stub).
31264 [!HAVE_GETGID] (getgid): Likewise.
31265 [!HAVE_LSTAT] (lstat): Likewise.
31266 [!S_IROTH] (S_IROTH): New macro (dummy).
31267 [!S_IRGRP] (S_IRGRP): Likewise.
31268
84b860d8
RM
312692009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31270
31271 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
31272 conditional expression).
31273
66e9b712
RM
312742009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31275
31276 Import from Gnulib.
31277
31278 * gnulib/fnmatch.c: New file.
31279 * gnulib/fnmatch.h: Likewise.
31280 * gnulib/fnmatch_loop.c: Likewise.
31281 * gnulib/getopt.c: Likewise.
31282 * gnulib/getopt.h: Likewise.
31283 * gnulib/getopt1.c: Likewise.
31284 * gnulib/getopt_int.h: Likewise.
31285 * gnulib/gettext.h: Likewise.
31286
34f4a5b0
RM
312872009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31288
31289 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
31290 * normal/handler.c (read_handler_list): Likewise.
31291
ac451143
RM
312922009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31293
31294 Misc cleanup.
31295
31296 * kern/command.c (grub_register_command_prio): Use
31297 grub_zalloc() instead of explicitly zeroing data.
31298 * kern/list.c: Include `<grub/mm.h>'.
31299 (grub_named_list_find): Replace `0' with `NULL'.
31300 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
31301 (fs_module_list): Change type to `grub_named_list_t'. Update all
31302 users.
31303 * normal/dyncmd.c (read_command_list): Add space between function
31304 call and parenthesis.
31305 * normal/handler.c (read_handler_list): Likewise.
31306
4089b167
RM
313072009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31308
31309 * normal/auth.c (punishment_delay): Moved from here ...
31310 (grub_auth_strcmp): ... to here (inside function).
31311
325f5037
RM
313122009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31313
31314 * include/grub/list.h (struct grub_named_list): Remove `const'
31315 qualifier from `name'.
31316 (struct grub_prio_list): Likewise.
31317
7aea29a3
RM
313182009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31319
31320 * normal/auth.c: Include `<grub/time.h>'.
31321 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
31322
3fd6f044
RM
313232009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31324
31325 * normal/auth.c (punishment_delay): New variable.
31326 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
31327 (grub_auth_check_authentication): Punish failed login attempts with
31328 an incremental (2^N) delay.
31329
a4cd68e4
RM
313302009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31331
31332 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
31333 path with $(srcdir).
31334
7ad12f43
VS
313352009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31336
31337 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
31338
c1129f03
RM
313392009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31340
31341 * util/i386/coreboot/grub-mkrescue.in: New file.
31342 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
31343 variables.
31344
31345 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
31346 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
31347 * configure.ac: Add header and function checks to satisfy grub-mkisofs
31348 requirements.
31349 * util/mkisofs/defaults.h: New file.
31350 * util/mkisofs/eltorito.c: Likewise.
31351 * util/mkisofs/exclude.h: Likewise.
31352 * util/mkisofs/fnmatch.c: Likewise.
31353 * util/mkisofs/getopt.c: Likewise.
31354 * util/mkisofs/getopt1.c: Likewise.
31355 * util/mkisofs/hash.c: Likewise.
31356 * util/mkisofs/include/fctldefs.h: Likewise.
31357 * util/mkisofs/include/mconfig.h: Likewise.
31358 * util/mkisofs/include/prototyp.h: Likewise.
31359 * util/mkisofs/include/statdefs.h: Likewise.
31360 * util/mkisofs/iso9660.h: Likewise.
31361 * util/mkisofs/joliet.c: Likewise.
31362 * util/mkisofs/match.c: Likewise.
31363 * util/mkisofs/match.h: Likewise.
31364 * util/mkisofs/mkisofs.c: Likewise.
31365 * util/mkisofs/mkisofs.h: Likewise.
31366 * util/mkisofs/multi.c: Likewise.
31367 * util/mkisofs/name.c: Likewise.
31368 * util/mkisofs/rock.c: Likewise.
31369 * util/mkisofs/tree.c: Likewise.
31370 * util/mkisofs/write.c: Likewise.
31371
ec8bb77d
VS
313722009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31373
31374 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
31375 being insecure.
31376
3716b12c
RM
313772009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31378
31379 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
31380 `grub-mkimage' (and use $0 when possible).
31381
b97b7b91
RM
313822009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31383
31384 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
31385 error message for excessively large memory map.
31386
04114812
RM
313872009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31388
31389 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
31390 executable bit.
31391
e4eb2373
RM
313922009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31393
31394 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
31395 message for coreboot users.
31396
c926e1d5 313972009-11-07 Robert Millan <rmh.grub@aybabtu.com>
31398
31399 Fix build with GNU gold.
31400
31401 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
31402 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
31403 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
31404 link addresses.
31405 * aclocal.m4: Likewise.
31406
86e5b1db 314072009-11-04 Felix Zielcke <fzielcke@z-51.de>
31408
31409 * configure.ac (AC_PREREQ): Bump to 2.59d.
31410 * INSTALL: Make it more clear when Autoconf and Ruby are
31411 needed and when to run `./autogen.sh'.
31412
246cd78f 314132009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31414
31415 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
31416 OSes.
31417
4f9dfb37 314182009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31419
31420 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
31421
b82bd5e1 314222009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31423
31424 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
31425 giving it to GNU Mach.
31426
ff1a9bca 314272009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31428
31429 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
31430 GNU partition number to get internal GRUB partition number.
31431
61697d9c 314322009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31433
31434 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
31435 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
31436
a50569e1 314372009-11-01 Robert Millan <rmh.grub@aybabtu.com>
31438
31439 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
31440 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
31441 case.
31442
5b153867 314432009-11-01 Felix Zielcke <fzielcke@z-51.de>
31444
31445 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
31446
d9e2cd70 314472009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31448
31449 Fix build problem.
31450
31451 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
31452 `-isystem=$(srcdir)/include'.
31453
805111a4 314542009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31455
31456 * util/i386/pc/grub-install.in: Remove hint that device.map should be
31457 checked (grub-install doesn't currently rely on it).
31458
fa6e945f 314592009-10-29 Robert Millan <rmh.grub@aybabtu.com>
31460
31461 Revert SVN r2660.
31462
31463 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
31464 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31465 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
31466 * conf/i386-ieee1275.rmk: Likewise.
31467 * conf/i386-pc.rmk: Likewise.
31468 * conf/powerpc-ieee1275.rmk: Likewise.
31469 * conf/sparc64-ieee1275.rmk: Likewise.
31470 * conf/x86_64-efi.rmk: Likewise.
31471
cee15086 314722009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31473
31474 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
31475
95b9239e 314762009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31477
31478 * include/grub/misc.h: Stop checking for APPLE_CC.
31479
2ed19dfd 314802009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31481
31482 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
31483 doesn't cause an infinite call loop.
31484
fdcdde19 314852009-10-28 Felix Zielcke <fzielcke@z-51.de>
31486
31487 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
31488 strings.
31489
cefabfe1 314902009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31491
31492 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
31493 variable.
31494 * Makefile.in: Likewise.
31495
ed96ab6d 314962009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31497
31498 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
31499
0579b753 315002009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31501
31502 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
31503
478df409 315042009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31505
31506 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
31507
083d1679 315082009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31509
31510 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
31511 from here ...
31512 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
31513
5947ae32 315142009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31515
31516 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
31517 in $(MAKEINFO) invocation. This makes it clear in output that
31518 errors are being ignored.
31519
94180ff6 315202009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31521
31522 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
31523 from here ...
31524 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31525 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
31526 * conf/i386-ieee1275.rmk: Likewise.
31527 * conf/i386-pc.rmk: Likewise.
31528 * conf/powerpc-ieee1275.rmk: Likewise.
31529 * conf/sparc64-ieee1275.rmk: Likewise.
31530 * conf/x86_64-efi.rmk: Likewise.
31531
9031b03a 315322009-10-26 Colin Watson <cjwatson@ubuntu.com>
31533
31534 * util/grub-editenv.c (main): If only a command is given, use
31535 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
31536 (usage): FILENAME is now optional and has a default.
31537
e4f6809b 315382009-10-26 Colin Watson <cjwatson@ubuntu.com>
31539
31540 Improve grub-mkconfig performance when there are several menu
31541 entries on a single filesystem.
31542
31543 * util/grub.d/10_linux.in (linux_entry): Cache the output of
31544 prepare_grub_to_access_device.
31545 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
31546 * util/grub.d/30_os-prober.in: Likewise.
31547
67937d4d 315482009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31549
31550 * util/grub.d/10_freebsd.in: Remove.
31551 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
31552 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
31553
ee3756cc 315542009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31555
5c35048e 31556 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 31557
4dea1c6f 315582009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31559
31560 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
31561 grub_util_error() call.
31562
042484d7 315632009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31564
31565 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
31566 `reserved_first_sector' member.
31567 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
31568 `reserved_first_sector' to 1.
31569 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
31570 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
31571 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
31572 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
31573 filesystems which begin at first sector.
31574 (options): New option --skip-fs-probe.
31575 (main): Handle --skip-fs-probe and pass it to setup().
31576
d64448a7 315772009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31578
31579 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
31580 (memset): Fix function prototype.
31581
508d42ec 315822009-10-25 Robert Millan <rmh.grub@aybabtu.com>
315832009-10-25 Vasily Averin <vvs@parallels.com>
31584
31585 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
31586 `dirent.direntlen == 0'.
31587
b240e30c 315882009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31589
31590 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
31591 `cpio'.
31592 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
31593
346e7fbe 315942009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31595
31596 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
31597 `__trampoline_setup' and `__ucmpdi2'.
31598 * include/grub/powerpc/libgcc.h: Only export symbols for functions
31599 that libgcc provides.
31600
cdb308b0 316012009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31602
31603 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
31604 * include/grub/sparc64/libgcc.h (memset): Likewise.
31605 * include/grub/misc.h (memset, memcmp): New function prototypes.
31606
fb26abc2 316072009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31608
31609 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
31610 `cpio'.
31611 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
31612
f6693890 316132009-10-25 Robert Millan <rmh.grub@aybabtu.com>
31614
31615 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
31616 * docs/grub.cfg: Compensate for recent change in multiboot
31617 loader (since 2009-08-14 it won't pass filename to payload).
31618 * util/grub.d/10_hurd.in: Likewise.
31619
0933cdc0 316202009-10-21 Felix Zielcke <fzielcke@z-51.de>
31621
31622 * config.guess: Update to latest version from config git
31623 repository.
31624 * config.sub: Likewise.
31625
3b2fe8c2 316262009-10-20 Robert Millan <rmh.grub@aybabtu.com>
31627
31628 Fix build on sparc64.
31629
31630 * configure.ac: Perform checks for libgcc symbols before
31631 adding `-nostdlib' to LDFLAGS.
31632
46695a62 316332009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31634
31635 Let user specify OpenBSD root device.
31636
31637 * loader/i386/bsd.c (openbsd_root): New variable.
31638 (openbsd_opts): New option 'root'.
31639 (OPENBSD_ROOT_ARG): New macro.
31640 (grub_openbsd_boot): Use 'openbsd_root'.
31641 (grub_cmd_openbsd): Fill 'openbsd_root'.
31642
d2b6b7fc 316432009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31644
31645 * NEWS: Misc adjustments.
31646
421bd7ac 316472009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
31648
31649 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
31650
f1d29d87 316512009-10-16 Robert Millan <rmh.grub@aybabtu.com>
31652
31653 * configure.ac: Bump version to 1.97.
31654
6f3cd880 316552009-10-16 Colin Watson <cjwatson@ubuntu.com>
31656
31657 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
31658 -mno-3dnow on x86 architectures. Some toolchains enable these
31659 features by default, but they rely on registers that aren't enabled
31660 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
31661
035f7122 316622009-10-15 Robert Millan <rmh.grub@aybabtu.com>
31663
31664 Make entry text a bit more readable.
31665
31666 * util/grub.d/10_linux.in: Add `with' before `Linux'.
31667
44998e58 316682009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31669
31670 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
31671
cd2851b3 316722009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31673
31674 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
31675 operations.
31676
c6f3b249 316772009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31678
31679 * configure.ac: Add missing dollar.
31680
6b5886ba 316812009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
31682
31683 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
31684
31685 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
31686 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
31687 exports.
31688 * include/grub/sparc64/libgcc.h: Likewise. Use
31689 preprocessor conditionals.
31690
e9d66f6d 316912009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31692
31693 * conf/common.rmk (grub-dumpbios): Remove rule.
31694 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
31695 * util/grub-dumpbios.in: Remove file.
31696
9155bc17 316972009-10-14 Robert Millan <rmh.grub@aybabtu.com>
31698
31699 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
31700 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
31701
31702 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
31703 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
31704 users.
31705
31706 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
31707 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
31708 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
31709 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
31710 users.
31711
bf7f7a18 317122009-10-12 Robert Millan <rmh.grub@aybabtu.com>
31713
31714 * term/tparm.c: Switch to GPLv3.
31715
86564c26 317162009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31717
31718 * include/grub/i386/cpuid.h: Add header protection.
31719
5c936493 317202009-10-09 Robert Millan <rmh.grub@aybabtu.com>
31721
31722 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
31723
31724 * include/grub/i386/cpuid.h: New file.
31725 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
31726 (has_longmode): Rename to ...
31727 (grub_cpuid_has_longmode): ... this. Update all users. Remove
31728 `static' attribute.
31729 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
31730 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
31731 on a CPU that doesn't implement AMD64 instruction set.
31732
186e7cf2 317332009-10-06 Colin Watson <cjwatson@ubuntu.com>
31734
31735 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
31736 that version.texi is rebuilt on version number changes.
31737
83b65c4a 317382009-10-06 Colin Watson <cjwatson@ubuntu.com>
31739
31740 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
31741 Fixes bug #27602.
31742
d244281c 317432009-10-06 Colin Watson <cjwatson@ubuntu.com>
31744
31745 * util/i386/pc/grub-install.in: Source
31746 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
31747 that the --grub-probe option will work.
31748 * util/sparc64/ieee1275/grub-install.in: Likewise.
31749
da25306d 317502009-10-05 Robert Millan <rmh.grub@aybabtu.com>
31751
31752 * configure.ac: Bump version to 1.97~beta4.
31753
e8ee83c0 317542009-10-03 Robert Millan <rmh.grub@aybabtu.com>
31755
31756 Resync grub-mkdevicemap in x86_64-efi.
31757
31758 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
31759 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
31760 `util/devicemap.c'.
31761
50dcabcf 317622009-10-01 Colin Watson <cjwatson@ubuntu.com>
31763
31764 * util/grub-editenv.c (create_envblk_file): Write new block with a
31765 .new suffix and then rename it into place, to ensure atomic
31766 creation.
31767
0e51c3a7 317682009-09-28 Robert Millan <rmh.grub@aybabtu.com>
31769
31770 Do not automatically install headers.
31771
31772 * Makefile.in (include_DATA): Remove. Update all users.
31773
31299a95 317742009-09-26 Robert Millan <rmh.grub@aybabtu.com>
31775
31776 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
31777 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
31778
31779 * util/osdetect.lua: Remove.
31780 * script/lua/lauxlib.c: Likewise.
31781 * script/lua/ldebug.c: Likewise.
31782 * script/lua/grub_main.c: Likewise.
31783 * script/lua/lauxlib.h: Likewise.
31784 * script/lua/ldebug.h: Likewise.
31785 * script/lua/ltablib.c: Likewise.
31786 * script/lua/liolib.c: Likewise.
31787 * script/lua/lstrlib.c: Likewise.
31788 * script/lua/lualib.h: Likewise.
31789 * script/lua/ldo.c: Likewise.
31790 * script/lua/ldump.c: Likewise.
31791 * script/lua/ldo.h: Likewise.
31792 * script/lua/loslib.c: Likewise.
31793 * script/lua/lundump.c: Likewise.
31794 * script/lua/grub_lib.c: Likewise.
31795 * script/lua/ldblib.c: Likewise.
31796 * script/lua/lundump.h: Likewise.
31797 * script/lua/lmem.c: Likewise.
31798 * script/lua/grub_lib.h: Likewise.
31799 * script/lua/lmathlib.c: Likewise.
31800 * script/lua/lstate.c: Likewise.
31801 * script/lua/ltm.c: Likewise.
31802 * script/lua/lvm.c: Likewise.
31803 * script/lua/lmem.h: Likewise.
31804 * script/lua/lstate.h: Likewise.
31805 * script/lua/ltm.h: Likewise.
31806 * script/lua/ltable.c: Likewise.
31807 * script/lua/lvm.h: Likewise.
31808 * script/lua/llex.c: Likewise.
31809 * script/lua/lgc.c: Likewise.
31810 * script/lua/grub_lua.h: Likewise.
31811 * script/lua/loadlib.c: Likewise.
31812 * script/lua/lfunc.c: Likewise.
31813 * script/lua/lopcodes.c: Likewise.
31814 * script/lua/lparser.c: Likewise.
31815 * script/lua/ltable.h: Likewise.
31816 * script/lua/llex.h: Likewise.
31817 * script/lua/lgc.h: Likewise.
31818 * script/lua/lfunc.h: Likewise.
31819 * script/lua/lbaselib.c: Likewise.
31820 * script/lua/lopcodes.h: Likewise.
31821 * script/lua/lparser.h: Likewise.
31822 * script/lua/lzio.c: Likewise.
31823 * script/lua/linit.c: Likewise.
31824 * script/lua/lobject.c: Likewise.
31825 * script/lua/llimits.h: Likewise.
31826 * script/lua/lstring.c: Likewise.
31827 * script/lua/lzio.h: Likewise.
31828 * script/lua/lapi.c: Likewise.
31829 * script/lua/lcode.c: Likewise.
31830 * script/lua/lua.h: Likewise.
31831 * script/lua/lobject.h: Likewise.
31832 * script/lua/lstring.h: Likewise.
31833 * script/lua/lapi.h: Likewise.
31834 * script/lua/lcode.h: Likewise.
31835 * script/lua/luaconf.h: Likewise.
31836
cb8a2c38 318372009-09-26 Colin Watson <cjwatson@ubuntu.com>
31838
31839 * docs/grub.texi (Command-line and menu entry commands): Document
31840 date and echo commands.
31841
6b9b6276 318422009-09-24 Pavel Roskin <proski@gnu.org>
31843
31844 * include/grub/kernel.h (struct grub_module_header): Remove
31845 `grub_module_header_types'. Make `type' unsigned. Make `size'
31846 32-bit on all platforms.
31847 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
31848 8-bit field. Use grub_host_to_target32() for `size'.
31849 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
31850 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
31851 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
31852
4e5a02a7 318532009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31854
31855 Fix "lost keypress" bug in at_keyboard.
31856
31857 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
31858 Checks for readyness of input buffer (without flushing it).
31859 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
31860 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
31861
c6dcedf6 318622009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31863
31864 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
31865 size check within GRUB_MACHINE_PCBIOS section.
31866
74c958b1 318672009-09-24 Robert Millan <rmh.grub@aybabtu.com>
31868
31869 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
31870 return value.
31871 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
31872 KEYBOARD_ISREADY check.
31873 (grub_at_keyboard_checkkey): Rename to ...
31874 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
31875 Remove gratuitous cast.
31876
ff420223 318772009-09-23 Colin Watson <cjwatson@ubuntu.com>
31878
31879 * configure.ac: Call AC_PROG_MKDIR_P.
31880 * Makefile.in (docs/stamp-vti): Create docs directory. Create
31881 version.texi in $(builddir) rather than $(srcdir).
31882 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
31883 to makeinfo's @include search path.
31884
d96875df 318852009-09-23 Felix Zielcke <fzielcke@z-51.de>
31886
31887 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
31888
9b3f8365 318892009-09-23 Felix Zielcke <fzielcke@z-51.de>
31890
31891 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
31892 for `*.dpkg-new'.
31893
c44c90db 318942009-09-21 Colin Watson <cjwatson@ubuntu.com>
31895
31896 Build info documentation. Some code borrowed from Automake.
31897
31898 * configure.ac: Check for makeinfo.
31899 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
31900 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
31901 docs/version.texi.
31902 (MOSTLYCLEANFILES): Add vti.tmp.
31903 (docs/version.texi, docs/stamp-vti): Update automatically.
31904 (docs/grub.info): Build info documentation. Use --force and ignore
31905 errors for now.
31906 (all-local): Add $(INFOS).
31907 (install-local): Install info files.
31908 (uninstall): Uninstall info files.
31909 * docs/version.texi: Remove from revision control. This file is
31910 automatically generated on build now.
31911 * gendistlist.sh: Add `*.info'.
31912
e0b37bb5 319132009-09-21 Felix Zielcke <fzielcke@z-51.de>
31914
31915 * kern/term.c: Fix indentation.
31916
5a78865b 319172009-09-21 Felix Zielcke <fzielcke@z-51.de>
31918
31919 * util/hostdisk.c: Fix a comment.
31920
dace7e8a 319212009-09-20 Robert Millan <rmh.grub@aybabtu.com>
31922
31923 Fix regression introduced in r2539.
31924
31925 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
31926 to 0xA1.
31927
a83d079b 319282009-09-19 Colin Watson <cjwatson@ubuntu.com>
31929
31930 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 31931 os-prober. Under normal operation, it does not print anything to
31932 stderr; if it does, we need to debug it, and throwing away stderr
31933 makes that excessively difficult.
a83d079b 31934
be94a509 319352009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
31936
31937 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
31938
63f745e8 319392009-09-16 Robert Millan <rmh.grub@aybabtu.com>
31940
31941 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
31942 AC_LANG_PROGRAM from autoconf.
31943 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
31944 prototypes (fixes warning).
31945
31946 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
31947 `--disable-werror' was used.
31948
bbb2a70f 319492009-09-16 Robert Millan <rmh.grub@aybabtu.com>
31950
31951 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
31952 uninitialized `lastaddr'.
31953
77c24f1d 319542009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
31955
0f0b8c87 31956 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 31957
07197f23 319582009-09-14 Colin Watson <cjwatson@ubuntu.com>
31959
31960 * commands/test.c (get_fileinfo): Return immediately if
31961 grub_fs_probe fails.
31962
dabf1798 319632009-09-14 José Martínez <xosemp@gmail.com>
31964
31965 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
31966
d52109a7 319672009-09-14 Colin Watson <cjwatson@ubuntu.com>
31968
31969 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
31970 output.
31971
56532179 319722009-09-13 Robert Millan <rmh.grub@aybabtu.com>
31973
31974 * configure.ac: Remove --enable-grub-pe2elf. Only build
31975 grub-pe2elf when needed by the build system itself.
31976 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
31977
8ef070f5 319782009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31979
31980 * configure.ac: Bump version to 1.97~beta3.
31981 * docs/version.texi: Likewise.
31982
61229557 319832009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31984
31985 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
31986 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
31987 from here ...
31988 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
31989 (grub_linux_setup_video): ... to here (with some adjustments).
31990
5c9f8d84 319912009-09-12 Robert Millan <rmh.grub@aybabtu.com>
31992
31993 Fix memory corruption issue (spotted by Colin Watson).
31994
31995 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
31996 causing returned size to be stored in an incorrect memory location.
31997 Fix use of uninitialized value when storing the returned size.
31998
e8f5d6e9 319992009-09-12 Yves Blusseau <blusseau@zetam.org>
32000
32001 Change clean rules to properly remove files
32002
32003 * genmk.rb: add new clean rules
32004 * Makefile.in (clean): add the new targets
32005 (mostlyclean): likewise
32006
cda2a409 320072009-09-11 Colin Watson <cjwatson@ubuntu.com>
32008
32009 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
32010 to grub_uint64_t.
32011 * fs/ntfs.c (init_file): Understand 64-bit sizes for
32012 non-resident files.
32013
86695375 320142009-09-11 Colin Watson <cjwatson@ubuntu.com>
32015
32016 * configure.ac: Don't look for help2man when cross-compiling. Fixes
32017 part of bug #27349.
32018
8aa1541a 320192009-09-10 Felix Zielcke <fzielcke@z-51.de>
32020
32021 * util/grub-mkconfig.in: Make the created config mode 400 and
32022 print a warning if it fails.
32023
48d9bb0a 320242009-09-10 Robert Millan <rmh.grub@aybabtu.com>
32025
32026 * util/grub.d/40_custom.in: Ask user to type custom entries below
32027 comment, rather than below 'exec tail' line.
32028
3b0521be 320292009-09-10 Colin Watson <cjwatson@ubuntu.com>
32030
32031 * util/grub.d/40_custom.in: Make sure that the explanatory text is
32032 visible in grub.cfg.
32033
50051d55 320342009-09-10 Colin Watson <cjwatson@ubuntu.com>
32035
32036 * util/grub.d/40_custom.in: Make it a little clearer how to use this
32037 file.
32038
c0d34387 320392009-09-10 Felix Zielcke <fzielcke@z-51.de>
32040
32041 * docs/grub.cfg: Add an example menu entry for memtest86+.
32042
80a608f3 320432009-09-09 Felix Zielcke <fzielcke@z-51.de>
32044
a2094832 32045 * config.guess: Update to latest version from config git.
80a608f3 32046 * config.sub: Likewise.
32047
99423078 320482009-09-08 Colin Watson <cjwatson@ubuntu.com>
32049
32050 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
32051 unknown-command case. Fixes bug #27320.
32052
44454e4c 320532009-09-08 Felix Zielcke <fzielcke@z-51.de>
32054
32055 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
32056 `help' if the command exists.
32057
e30d87ad 320582009-09-06 Robert Millan <rmh.grub@aybabtu.com>
32059
32060 * INSTALL: Require GCC 4.1.3 or later.
32061
9a86f1ec 320622009-09-06 Yves Blusseau <blusseau@zetam.org>
32063
32064 * Makefile.in (RMKFILES): add i386-qemu.rmk
32065 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
32066 $(srcdir)/stamp-h.in
32067
7f26d466 320682009-09-05 Robert Millan <rmh.grub@aybabtu.com>
32069
32070 * util/grub-probe.c (probe): Comment out buggy codepath, which
32071 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
32072 should be re-enabled after 1.97.
32073
3a613259 320742009-09-05 Felix Zielcke <fzielcke@z-51.de>
32075
32076 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
32077 find searches for.
32078
197f76c7 320792009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
32080
32081 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
32082 unnecessary calls to grub_error.
32083
70ba68ce 320842009-09-04 Colin Watson <cjwatson@ubuntu.com>
32085
32086 * NEWS: Mention `keystatus' and Unicode fonts.
32087
4ff0d7a4 320882009-09-04 Robert Millan <rmh.grub@aybabtu.com>
32089
32090 * configure.ac: Bump version to 1.97~beta2.
32091 * docs/version.texi: Likewise.
32092
77c55a87 320932009-09-03 Colin Watson <cjwatson@ubuntu.com>
32094
32095 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
32096 containing unwind information in some cases where it previously did
32097 not. Use -fno-dwarf2-cfi-asm if available to restore the old
32098 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
32099 discussion.
32100
f79572cd 321012009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
32102
32103 Embedding loadenv module into grub-emu
32104
32105 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
32106 commands/loadenv.c
32107 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
32108 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
32109 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
32110 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
32111 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
32112 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
32113
93a81088 321142009-09-03 Magnus Granberg <zorry@ume.nu>
32115
32116 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
32117 include -fPIE in the default specs.
32118 * configure.ac: Check if pie_possible is yes and add -fno-PIE
32119 to TARGET_CFLAGS.
32120
160034b2 321212009-09-03 Felix Zielcke <fzielcke@z-51.de>
32122
32123 * INSTALL: Note that GNU Bison 2.3 or later is required.
32124
087c07c4 321252009-09-03 Colin Watson <cjwatson@ubuntu.com>
32126
32127 * kern/i386/pc/startup.S: Fix typo.
32128
cbf978c0 321292009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
32130
32131 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
32132 according to GCS.
32133
321342009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 32135
32136 * docs/grub.texi (Naming convention): Describe one-based partition
32137 numbering.
32138 (Device syntax): Likewise.
32139 (File name syntax): Likewise.
32140 (Block list syntax): Likewise.
32141 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
32142 menu.lst.
32143 (File name syntax): Likewise.
32144 (Command-line and menu entry commands): Document acpi, blocklist,
32145 crc, export, insmod, keystatus, ls, set, and unset commands.
32146
f3e8cdfd 321472009-09-02 Colin Watson <cjwatson@ubuntu.com>
32148
32149 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
32150 to avoid implying that only one of --shift, --ctrl, or --alt may be
32151 used.
32152
c0bc232b 321532009-09-02 Colin Watson <cjwatson@ubuntu.com>
32154
32155 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
32156 rather than comparing against S_IFREG, which will almost never work.
32157
aa0f752d 321582009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
32159
32160 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
32161 (write_blocklists): Likewise.
32162
ecb3166a 321632009-09-01 Colin Watson <cjwatson@ubuntu.com>
32164
32165 * script/lua/grub_lua.h (fputs): Supply a format string as the first
32166 argument to grub_printf.
32167
c403a125 321682009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 32169
32170 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 32171 non GNU test.
31aba781 32172
b5e7312c 321732009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32174
32175 * kern/file.c (grub_file_read): Spelling fix
32176
fe00f472 321772009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32178
32179 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
32180 loading of headers in some cases.
32181
cc55302e 321822009-08-30 Robert Millan <rmh.grub@aybabtu.com>
32183
32184 * configure.ac: Bump version to 1.97~beta1.
32185 * docs/version.texi: Likewise.
32186
5c90cdd2 321872009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 32188
32189 * include/grub/i386/xnu.h: Add license header.
32190 include grub/err.h explicitly.
32191
c90edae4 321922009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32193
32194 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
32195 to `ufs' in the vfs.root.mountfrom kernel parameter.
32196
d8888b5c 321972009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32198
32199 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
32200
32201 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
32202 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
32203
32204 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
32205 `ARRAY_SIZE' macro.
32206
6f07b921 322072009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32208
32209 * kern/file.c (grub_file_read): Check offset.
32210 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
32211 * fs/jfs.c (grub_jfs_read_file): Likewise.
32212 * fs/ntfs.c (grub_ntfs_read): Likewise.
32213 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
32214 * fs/minix.c (grub_minix_read_file): Correct offset check.
32215 * fs/ufs.c (grub_ufs_read_file): Likewise.
32216
b4f34077 322172009-08-28 Colin Watson <cjwatson@ubuntu.com>
32218
32219 * term/i386/pc/console.c (bios_data_area): Cast
32220 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
32221
e7c69859 322222009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32223
32224 1-bit optimised blitters.
32225
32226 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
32227 prototype.
32228 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32229 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32230 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32231 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32232 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32233 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32234 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
32235 function.
32236 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32237 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32238 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32239 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32240 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32241 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32242 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
32243 when possible.
32244 * video/video.c (grub_video_get_blit_format): Return
32245 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
32246
a57da43f 322472009-08-28 Colin Watson <cjwatson@ubuntu.com>
32248
32249 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
32250 the first argument to grub_printf.
32251
4cbe67e5 322522009-08-28 Colin Watson <cjwatson@ubuntu.com>
322532009-08-28 Robert Millan <rmh.grub@aybabtu.com>
32254
32255 Add `getkeystatus' terminal method. Add a new `keystatus' command
32256 to query it.
32257
32258 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
32259 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
32260 modifier key bitmasks.
32261 (struct grub_term_input): Add `getkeystatus' member.
32262 (grub_getkeystatus): Add prototype.
32263 * kern/term.c (grub_getkeystatus): New function.
32264
32265 * include/grub/i386/pc/memory.h
32266 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
32267 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
32268 Data Area layout.
32269 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
32270 (grub_console_term_input): Set `getkeystatus' member.
32271 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
32272 constants.
32273 (grub_usb_keyboard_getreport): Likewise.
32274 (grub_usb_keyboard_checkkey): Likewise.
32275 (grub_usb_keyboard_getkeystatus): New function.
32276 (grub_usb_keyboard_term): Set `getkeystatus' member.
32277
32278 * commands/keystatus.c: New file.
32279 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
32280 (keystatus_mod_SOURCES): New variable.
32281 (keystatus_mod_CFLAGS): Likewise.
32282 (keystatus_mod_LDFLAGS): Likewise.
32283 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
32284 commands/keystatus.c.
32285 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32286 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32287 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32288 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32289 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32290 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 32291
6e2a9085 322922009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32293
32294 Split befs.mod and afs.mod into *_be.mod and *.mod
32295
32296 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
32297 (grub_fstest_SOURCES): Likewise.
32298 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
32299 (afs_be_mod_SOURCES): New variable.
32300 (afs_be_mod_CFLAGS): Likewise.
32301 (afs_be_mod_LDFLAGS): Likewise.
32302 (befs_be_mod_SOURCES): Likewise.
32303 (befs_be_mod_CFLAGS): Likewise.
32304 (befs_be_mod_LDFLAGS): Likewise.
32305 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
32306 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32307 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32308 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
32309 (grub_emu_SOURCES): Likewise.
32310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32311 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32312 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32313 * fs/afs_be.c: New file.
32314 * fs/befs_be.c: New file.
32315 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
32316 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
32317 (U16): Replaced with ...
32318 (grub_afs_to_cpu16): ...this. All users updated.
32319 (U32): Replaced with ...
32320 (grub_afs_to_cpu32): ...this. All users updated.
32321 (U64): Replaced with ...
32322 (grub_afs_to_cpu64): ...this. All users updated.
32323 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
32324 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 32325 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 32326 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32327 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32328 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32329 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32330 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32331 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32332 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32333 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32334
32a71655 323352009-08-26 Bean <bean123ch@gmail.com>
32336
32337 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
32338 64-bit number.
32339 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
32340 (grub_xfs_inode_block): Change return type to grub_uint64_t.
32341 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
32342
552bf6c5 323432009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32344
32345 NetBSD memory map support.
32346
32347 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
32348 (grub_netbsd_btinfo_mmap_header): New structure.
32349 (grub_netbsd_btinfo_mmap_entry): Likewise.
32350 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
32351
1ae2078c 323522009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32353
32354 Enable bsd.mod on coreboot.
32355
32356 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
32357 (bsd_mod_SOURCES): New variable.
32358 (bsd_mod_CFLAGS): Likewise.
32359 (bsd_mod_LDFLAGS): Likewise.
32360 (bsd_mod_ASFLAGS): Likewise.
32361 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
32362 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
32363
beefc598 323642009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32365
32366 Cleanup NetBSD root support.
32367
32368 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
32369 grub_bsd_get_device.
32370 Fix typo.
32371
3b76e68b 323722009-08-25 Felix Zielcke <fzielcke@z-51.de>
32373
32374 * util/grub.d/00_header.in: Move check for the video backend of
32375 gfxterm from here ...
32376 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
32377 a suitable video backend.
32378
aea664ea 323792009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32380
32381 Fix breakage in grub-setup.
32382
32383 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
32384 "msdos_partition_map".
32385
ff747d50 323862009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32387
32388 Fix breakage in normal/auth.c.
32389
32390 * normal/auth.c (grub_iswordseparator): New function.
32391
e7e1f93f 323922009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32393
32394 Authentication support.
32395
32396 * commands/password.c: New file.
32397 * conf/common.rmk (pkglib_MODULES): Add password.mod.
32398 (password_mod_SOURCES): New variable.
32399 (password_mod_CFLAGS): Likewise.
32400 (password_mod_LDFLAGS): Likewise.
32401 (normal_mod_SOURCES): Add normal/auth.c.
32402 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
32403 normal/auth.c.
32404 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32405 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32406 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32408 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32409 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32410 * include/grub/auth.h: New file.
32411 * include/grub/err.h (grub_err_t): New enum value
32412 GRUB_ERR_ACCESS_DENIED.
32413 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
32414 'users'.
32415 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
32416 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
32417 users updated.
32418 * normal/auth.c: New file.
32419 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
32420 (grub_cmdline_run): Don't allow to go to command line without
32421 authentication.
32422 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
32423 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
32424 menuentry without superuser rights.
32425 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
32426 user isn't a superuser.
32427
70f1161d 324282009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32429
32430 Save space by inlining misc.c functions.
32431
32432 * kern/misc.c (grub_iswordseparator): Made static.
32433 * kern/misc.c (grub_strcat): Moved from here ...
32434 * include/grub/misc.h (grub_strcat): ... here. Inlined.
32435 * kern/misc.c (grub_strncat): Moved from here ...
32436 * include/grub/misc.h (grub_strncat): ... here. Inlined.
32437 * kern/misc.c (grub_strcasecmp): Moved from here ...
32438 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
32439 * kern/misc.c (grub_strncasecmp): Moved from here ...
32440 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
32441 * kern/misc.c (grub_isalpha): Moved from here ...
32442 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
32443 * kern/misc.c (grub_isdigit): Moved from here ...
32444 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
32445 * kern/misc.c (grub_isgraph): Moved from here ...
32446 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
32447 * kern/misc.c (grub_tolower): Moved from here ...
32448 * include/grub/misc.h (grub_tolower): ... here. Inlined.
32449
48e40bff 324502009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32451
32452 * script/sh/function.c (grub_script_function_find): Cut error message
32453 not to flood terminal.
32454 * script/sh/lexer.c (grub_script_yylex): Remove command line length
32455 limit.
32456 * script/sh/script.c (grub_script_arg_add): Duplicate string.
32457
c385bfc3 324582009-08-24 Colin Watson <cjwatson@ubuntu.com>
32459
32460 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
32461 `report' grub_uint8_t *.
32462 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
32463 Use a 50-millisecond timeout rather than just repeating
32464 grub_usb_keyboard_getreport 50 times.
32465 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
32466
2d21e3e8 324672009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32468
32469 Rename *_partition_map to part_*
32470
32471 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
32472 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
32473 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
32474 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
32475 All users updated.
32476 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
32477 All users updated.
32478 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
32479 * util/grub-probe.c (probe_partmap): Don't transform partition name
32480 to get module name.
32481
dd103c4e 324822009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32483
32484 Fix OpenBSD and NetBSD support.
32485
32486 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
32487 memory address conflict.
32488 (OPENBSD_MMAP_ACPI): New definition.
32489 (OPENBSD_MMAP_NVS): Likewise.
32490 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
32491 and OPENBSD_MMAP_NVS.
32492 Add memory map terminator
32493 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 32494 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 32495
16c84d74 324962009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32497
32498 Let user specify NetBSD root device.
32499
32500 * loader/i386/bsd.c (netbsd_root): New variable.
32501 (netbsd_opts): New option 'root'.
32502 (NETBSD_ROOT_ARG): New macro.
32503 (grub_netbsd_boot): Use 'netbsd_root'.
32504 (grub_bsd_unload): Free 'netbsd_root'.
32505 (grub_cmd_netbsd): Fill 'netbsd_root'.
32506
adb29902 325072009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32508
32509 Support for 64-bit NetBSD.
32510
32511 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
32512 point when booting non-FreeBSD.
32513
f5ae9f74 325142009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32515
32516 Support --no-smp and --no-acpi for NetBSD.
32517
32518 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
32519 (NETBSD_AB_NOACPI): Likewise.
32520 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
32521 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
32522
de74f136 325232009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32524
32525 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
32526 errors.
32527 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
32528 errors. Call grub_error when needed.
32529
e9a925da 325302009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32531
32532 * commands/search.c (search_fs): Try searching without autoload first.
32533 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
32534 filesystem module explicitly for faster booting.
32535
5174302b 325362009-08-23 Colin Watson <cjwatson@ubuntu.com>
32537
32538 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
32539
c8c80635 325402009-08-23 Colin Watson <cjwatson@ubuntu.com>
32541
32542 * util/grub.d/30_os-prober.in: Disable os-prober if
32543 `GRUB_DISABLE_OS_PROBER' was set to true.
32544
71acf5e5 325452009-08-23 Robert Millan <rmh.grub@aybabtu.com>
32546
32547 * partmap/pc.c: Rename to ...
32548 * partmap/msdos.c: ... this. Update all users.
32549 (grub_pc_partition_map): Rename to ...
32550 (grub_msdos_partition_map): ... this. Update all users.
32551
32552 * parttool/pcpart.c: Rename to ...
32553 * parttool/msdospart.c: ... this. Update all users.
32554
32555 * include/grub/pc_partition.h: Rename to ...
32556 * include/grub/msdos_partition.h: ... this. Update all users.
32557 (grub_pc_partition_bsd_entry): Rename to ...
32558 (grub_msdos_partition_bsd_entry): ... this. Update all users.
32559 (grub_pc_partition_disk_label): Rename to ...
32560 (grub_msdos_partition_disk_label): ... this. Update all users.
32561 (grub_pc_partition_entry): Rename to ...
32562 (grub_msdos_partition_entry): ... this. Update all users.
32563 (grub_pc_partition_mbr): Rename to ...
32564 (grub_msdos_partition_mbr): ... this. Update all users.
32565 (grub_pc_partition): Rename to ...
32566 (grub_msdos_partition): ... this. Update all users.
32567 (grub_pc_partition_is_empty): Rename to ...
32568 (grub_msdos_partition_is_empty): ... this. Update all users.
32569 (grub_pc_partition_is_extended): Rename to ...
32570 (grub_msdos_partition_is_extended): ... this. Update all users.
32571 (grub_pc_partition_is_bsd): Rename to ...
32572 (grub_msdos_partition_is_bsd): ... this. Update all users.
32573
32574 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
32575 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
32576 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
32577 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
32578 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
32579 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
32580 (gpt_mod_LDFLAGS): Rename to ...
32581 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
32582 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
32583 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
32584 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
32585 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
32586 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
32587 (part_gpt_mod_LDFLAGS): ... this.
32588 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
32589 `pcpart.mod' to `msdospart.mod'.
32590 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
32591 to ...
32592 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
32593 (msdospart_mod_LDFLAGS): ... this.
32594
c11fded5 325952009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32596
32597 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
32598 (openbsd_opts): Likewise.
32599 (netbsd_opts): Likewise.
32600 (freebsd_flags): Added 0 terminator.
32601 (openbsd_flags): Likewise.
32602 (netbsd_flags): Likewise.
32603 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
32604 (grub_cmd_freebsd): Transformed into extended command.
32605 (grub_cmd_openbsd): Likewise.
32606 (grub_cmd_netbsd): Likewise.
32607 (cmd_freebsd): Changed type to grub_extcmd_t.
32608 (cmd_openbsd): Likewise.
32609 (cmd_netbsd): Likewise.
32610 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
32611 grub_cmd_openbsd as extended commands.
32612 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
32613 cmd_netbsd and cmd_openbsd
32614
11d1c769 326152009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
32616
32617 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
32618
7a9094e5 326192009-08-21 Pavel Roskin <proski@gnu.org>
32620
5496c37e 32621 * Makefile.in (install-local): When checking if a file is in the
32622 build directory, use "test -e" to detect symlinks.
32623
7a9094e5 32624 * Makefile.in (install-local): Remove all files in
32625 $(DESTDIR)$(pkglibdir) before installing new files there.
32626
e53cea11 326272009-08-18 Felix Zielcke <fzielcke@z-51.de>
32628
32629 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
32630 grub-mkelfimage.
32631
9aced544 326322009-08-18 Felix Zielcke <fzielcke@z-51.de>
32633
32634 * util/grub-mkconfig.in: Don't use gfxterm by default if not
32635 explicitly specified by the user.
32636
b7da6bab 326372009-08-18 Pavel Roskin <proski@gnu.org>
32638
32639 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
32640 grub_uint8_t pointer for data.
32641 * include/grub/fbutil.h (struct grub_video_fbblit_info):
32642 Likewise.
32643 * video/fb/fbutil.c: Remove unnecessary casts.
32644
19f1b335 326452009-08-17 Michal Suchanek <hramrach@centrum.cz>
32646
32647 VBE cleanup.
32648
32649 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
32650 (grub_vbe_set_video_mode): Save active mode info
32651 only after setting the mode.
32652 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
32653 second argument.
32654
2f467aa9 326552009-08-17 Michal Suchanek <hramrach@centrum.cz>
32656
32657 Rename variables for clarity.
32658
32659 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
32660 (active_vbe_mode_info): ... this. All users updated.
32661 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
32662 All users updated.
32663 (initial_mode): Rename to ...
32664 (initial_vbe_mode): ... this. All users updated.
32665 (mode_in_use): Rename to ..
32666 (vbe_mode_in_use): ... this. All users updated.
32667 (mode_list): Rename to ..
32668 (vbe_mode_list): ... this. All users updated.
32669 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
32670 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
32671 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
32672 'mode_list_size' to 'vbe_mode_list_size'.
32673 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
32674 'best_mode_info' to 'best_vbe_mode_info' and
32675 'best_mode' to 'best_vbe_mode'
32676
6025fcd7 326772009-08-17 Michal Suchanek <hramrach@centrum.cz>
32678
32679 Remove duplicate grub_video_fb_get_video_ptr.
32680
32681 * include/grub/fbutil.h (get_data_ptr): Rename to ...
32682 (grub_video_fb_get_video_ptr): ... this.
32683 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
32684 * video/fb/fbutil.c: Add comment about addressing.
32685 (get_data_ptr): Rename to ...
32686 (grub_video_fb_get_video_ptr): ... this. All users updated.
32687 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
32688
cc8c6faf 326892009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32690
32691 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
32692 grub_dprintf() that was just added.
32693
08aa61f0 326942009-08-17 Robert Millan <rmh.grub@aybabtu.com>
32695
32696 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
32697 (DEFAULT_VIDEO_MODE): Remove macros.
32698 (grub_linux_boot): Remove assumption that Linux has FB support,
32699 and use "text" as default video mode.
32700
7cef4f75 327012009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
32702
32703 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
32704 grub_dprintf.
32705 * fs/fat.c (grub_fat_read_data): Likewise.
32706
e1f39873 327072009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32708
32709 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
32710 payload.
32711 (grub_module): Likewise.
32712
c166d79e 327132009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32714
32715 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
32716 mbi->cmdline but free playground.
32717
c60cee8e 327182009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32719
32720 Handle group offset on UFS1.
32721
32722 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
32723 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
32724
c0d8b5d4 327252009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32726
32727 Split ufs.mod into ufs1.mod and ufs2.mod.
32728
32729 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
32730 (grub_fstest_SOURCES): Likewise.
32731 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
32732 (ufs_mod_SOURCES): Remove.
32733 (ufs_mod_CFLAGS): Likewise.
32734 (ufs_mod_LDFLAGS): Likewise.
32735 (ufs1_mod_SOURCES): New variable.
32736 (ufs1_mod_CFLAGS): Likewise.
32737 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 32738 (ufs2_mod_SOURCES): New variable.
32739 (ufs2_mod_CFLAGS): Likewise.
32740 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 32741 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
32742 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32743 Likewise.
32744 (grub_emu_SOURCES): Likewise.
32745 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32746 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32747 (grub_setup_SOURCES): Likewise.
32748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32749 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
32750 (grub_setup_SOURCES): Likewise.
32751 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
32752 Likewise.
32753 * fs/ufs2.c: New file.
32754 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
32755
d3539132 327562009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
32757
32758 Framebuffer split.
32759
32760 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
32761 subsystem at the end.
32762 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
32763 (video_fb_mod_SOURCES): New variable.
32764 (video_fb_mod_CFLAGS): Likewise.
32765 (video_fb_mod_LDFLAGS): Likewise.
32766 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
32767 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
32768 * video/i386/pc/vbeblit.c: Moved from here ...
32769 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
32770 * video/i386/pc/vbefill.c: Moved from here ...
32771 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
32772 * video/i386/pc/vbeutil.c: Moved from here ...
32773 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
32774 * include/grub/i386/pc/vbeblit.h: Moved from here ...
32775 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
32776 * include/grub/i386/pc/vbefill.h: Moved from here ...
32777 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
32778 * include/grub/i386/pc/vbeutil.h: Moved from here ...
32779 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
32780 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
32781 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
32782 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
32783 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
32784 (grub_video_adapter): Added 'get_info_and_fini'.
32785 (grub_video_get_info_and_fini): New prototype.
32786 (grub_video_set_mode): make modestring const char *.
32787 * loader/i386/linux.c (grub_linux_setup_video): Use
32788 grub_video_get_info_and_fini.
32789 (grub_linux_boot): Move modesetting just before booting.
32790 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
32791 grub_video_get_info_and_fini.
32792 * video/i386/pc/vbe.c: Moved framebuffer part ...
32793 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
32794 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
32795 grub_video_fbstd_colors and grub_video_fb_set_palette.
32796 (grub_video_vbe_init): Clear 'framebuffer' variable and use
32797 grub_video_fb_init.
32798 (grub_video_vbe_fini): Use grub_video_fb_fini.
32799 (grub_video_vbe_setup): Use framebuffer.render_target instead of
32800 render_target and use grub_video_fb_set_active_render_target and
32801 grub_video_fb_set_palette.
32802 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
32803 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
32804 (grub_video_vbe_adapter): Use framebuffer.
32805 * video/video.c (grub_video_get_info_and_fini): New function.
32806 (grub_video_set_mode): Make modestring const char *.
32807 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
32808 values are already initialised.
32809
d404ee56 328102009-08-14 Pavel Roskin <proski@gnu.org>
32811
32812 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
32813 ABS and APPLE_CC.
32814 * boot/i386/pc/diskboot.S: Likewise.
32815 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
32816 sectors allow compilation on MacOSX.
32817 * conf/i386-pc.rmk: Enable unconditional compilation of
32818 lnxboot.img.
32819
9a10df16 328202009-08-13 Colin Watson <cjwatson@ubuntu.com>
32821
32822 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
32823 * util/grub.d/00_header.in: Enter interruptible sleep if
32824 GRUB_HIDDEN_TIMEOUT is set.
32825
be3c9ca7 328262009-08-13 Yves Blusseau <blusseau@zetam.org>
32827
32828 * include/grub/symbol.h: Add the LOCAL macro.
32829 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
32830 starting with "L_".
32831
1f9e557e 328322009-08-13 Pavel Roskin <proski@gnu.org>
32833
9ca62843 32834 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
32835 any modern compilers we support.
32836
1f9e557e 32837 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
32838 Use local labels starting with "L_" so that Apple assembler
32839 knows they are local.
32840
81623db6 328412009-08-10 Robert Millan <rmh.grub@aybabtu.com>
32842
32843 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
32844 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
32845 (bsd_kernel_types): ... this enum.
32846
32847 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
32848 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
32849 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
32850
32851 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
32852 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
32853 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
32854 messages.
32855
f5d35e7a 328562009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32857
32858 * util/grub-dumpdevtree: Moved from here ...
32859 * util/i386/efi/grub-dumpdevtree: ... to here.
32860 (hexify): New function. Converts a string to its hex version.
32861 Generate hex versions of "efi" and "device-properties" by calling
32862 hexify() on the ASCII strings rather than by hardcoding numbers.
32863
d1e1d527 328642009-08-08 Robert Millan <rmh.grub@aybabtu.com>
32865
32866 * fs/jfs.c: Update copyright year.
32867
1ebbe064 328682009-08-08 Felix Zielcke <fzielcke@z-51.de>
32869
32870 * util/grub.d/00_header.in: Fix a comment.
32871 * util/grub.d/10_linux.in: Likewise.
32872 * util/grub.d/10_windows.in: Likewise.
32873 * util/grub.d/10_hurd.in: Likewise.
32874
a78c8d24 328752009-08-08 Felix Zielcke <fzielcke@z-51.de>
32876
32877 * util/grub-mkconfig.in: Allow the user to specify the used font
32878 with GRUB_FONT.
32879
29a6b9e8 328802009-08-08 Pavel Roskin <proski@gnu.org>
32881
b5f16cc4 32882 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
32883 available, xfs.mod needs it now.
32884
2f5cb827 32885 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
32886 the "g" modifier in sed when the intention is to strip something
32887 once. This fixes comparison of kernels with multiple dashes.
32888
29a6b9e8 32889 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
32890 on it. Add missing space before closing bracket. Fix
32891 misleading formatting.
32892
892a3d98 328932009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32894
32895 * docs/grub.texi: Major overhaul. Remove all sections that are
32896 specific to GRUB Legacy, or mostly composed of Legacy-specific
32897 information.
32898
ed94253f 328992009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32900
32901 * docs/version.texi: New file. Provides version information for
32902 grub.texi.
32903
126d6628 329042009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32905
32906 * docs/grub.texi: Update CVS information to SVN.
32907 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
32908
998b5aa9 329092009-08-07 Felix Zielcke <fzielcke@z-51.de>
32910
32911 * util/grub-mkconfig.in: Remove a wrong `fi'.
32912
818e094a 329132009-08-07 Felix Zielcke <fzielcke@z-51.de>
32914
32915 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
32916 (grub_jfs_uuid): New function.
32917 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
32918
b969c52f 329192009-08-07 Felix Zielcke <fzielcke@z-51.de>
32920
32921 * util/grub-mkconfig_lib.in (font_path): Move the functionality
32922 of it to ...
32923 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
32924 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
32925
7a4894cc 329262009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32927
32928 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
32929 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
32930 Update all users.
32931
32932 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
32933 not just "vmlinu[zx]".
32934 Moved from here ...
32935 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
32936 all users.
32937
32938 * util/grub.d/10_linux.in (find_latest): Moved from here ...
32939 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
32940 all users.
32941
4e2171f8 329422009-08-07 Robert Millan <rmh.grub@aybabtu.com>
32943
32944 * util/grub.d/10_freebsd.in: Use an absolute device path for
32945 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
32946
6dcfcb32 329472009-08-06 Felix Zielcke <fzielcke@z-51.de>
32948
32949 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
32950 handling of multiple abstraction modules.
32951
f56a8756 329522009-08-04 Robert Millan <rmh.grub@aybabtu.com>
32953
32954 Fix a bug resulting in black screen when loading Linux using a
32955 packed video mode.
32956
32957 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
32958 function.
32959
32960 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
32961 (grub_vbe_bios_getset_dac_palette_width): New function.
32962 (grub_vbe_bios_get_dac_palette_width)
32963 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
32964 grub_vbe_bios_getset_dac_palette_width()).
32965
32966 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
32967 check for return status.
32968 (grub_vbe_get_video_mode_info): When getting information for a packed
32969 mode (<= 8 bpp), obtain DAC palette width using
32970 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
32971 {red,green,blue}_mark_size.
32972
222671b2 329732009-08-04 Felix Zielcke <fzielcke@z-51.de>
32974
ecb1a6d9 32975 * commands/search.c (options): Fix help output to match actual code.
222671b2 32976
f84114f5 329772009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
32978
32979 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
32980 of homegrown code.
32981
bd288a20 329822009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 32983
32984 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
32985 on XFS or ReiserFS.
32986
8aab5e25 329872009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
32988
32989 Support Apple partition map with sector size different from 512 bytes.
32990
32991 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
32992 (apple_partition_map_iterate): Respect 'aheader.blocksize'
32993 and 'apart.partmap_size'.
32994
6ad6258a 329952009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
329962009-08-01 Robert Millan <rmh.grub@aybabtu.com>
32997
32998 Fix cpuid command.
32999
33000 * commands/i386/cpuid.c (options): New variable.
33001 (grub_cmd_cpuid): Return real error.
33002 (GRUB_MOD_INIT(cpuid)): Declare options.
33003
67459bc6 330042009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
33005
33006 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
33007 valid.
33008
fbc6ab54 330092009-07-31 Bean <bean123ch@gmail.com>
33010
33011 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
33012 log2_inode.
33013 (grub_fshelp_node): Move inode field to the end.
33014 (grub_xfs_data): Remove inode field.
33015 (grub_xfs_inode_block): Calculate inode size using sblock.
33016 (grub_xfs_inode_offset): Likewise.
33017 (grub_xfs_read_inode): Calculate inode size using sblock.
33018 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
33019 (grub_xfs_iterate_dir): Calculate inode size using sblock.
33020 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
33021 to match inode size.
33022 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
33023 not accessible when data is null.
33024 (grub_xfs_open): Likewise.
33025
f45d6cfc 330262009-07-31 Bean <bean123ch@gmail.com>
33027
33028 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
33029 Don't change pv->disk if it's already set.
33030
33031 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
33032 (grub_raid_register): ... here.
33033 (grub_raid_rescan): Removed.
33034
33035 * include/grub/raid.h (grub_raid_rescan): Removed.
33036
33037 * util/grub-fstest.c: Remove include file <grub/raid.h>.
33038 (fstest): Replace grub_raid_rescan with module fini function followed
33039 by init function.
33040
33041 * util/grub-probe.c: Add include file <grub/raid.h>.
33042 (probe_raid_level): New function.
33043 (probe): Detect abstraction by walking the disk device, support two
33044 level of abstraction (LVM on RAID) when detecting partition map.
33045
24443b5a 330462009-07-31 Pavel Roskin <proski@gnu.org>
33047
33048 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
33049 to grub_zalloc(), it was erroneous.
33050 Reported by Bean <bean123ch@gmail.com>
33051
a275d9e7 330522009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
33053
33054 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 33055 embedding zone, not only the first one.
a275d9e7 33056
56c5a47f 330572009-07-29 Joe Auricchio <jauricchio@gmail.com>
33058
33059 * term/gfxterm.c (clear_char): New function.
33060 (grub_virtual_screen_setup): Use clear_char.
33061 (scroll_up): Likewise.
33062 (grub_virtual_screen_cls): Likewise.
33063
67bb323a 330642009-07-29 Felix Zielcke <fzielcke@z-51.de>
33065
33066 * util/deviceiter.c (get_acceleraid_disk_name): New static
33067 function.
33068 (grub_util_iterate_devices): Handle Accelraid devices.
33069 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
33070
388a7c75 330712009-07-28 Robert Millan <rmh.grub@aybabtu.com>
33072
33073 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
33074 separator for the suggested gfxpayload string (';' collides with the
33075 parser and needs escaping).
33076
3bb7abcf 330772009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
33078
33079 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
33080 Clear direction flag before jumping to OS.
33081 (grub_multiboot2_real_boot): Likewise.
33082
2ddd36d7 330832009-07-28 Felix Zielcke <fzielcke@z-51.de>
33084
33085 * util/i386/pc/grub-install: Fix parsing of --disk-module
33086 option.
33087
c521b62b 330882009-07-28 Felix Zielcke <fzielcke@z-51.de>
33089
33090 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
33091 when embedding.
33092
880e0a0c 330932009-07-26 Felix Zielcke <fzielcke@z-51.de>
33094
33095 * util/grub-mkconfig.in (package_version): New variable.
33096 Use it do display the version.
33097
2366e356 330982009-07-25 Felix Zielcke <fzielcke@z-51.de>
33099
33100 * kern/file.c (grub_file_open): Revert to previous check with
33101 grub_errno.
33102
7ad8c80e 331032009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33104
33105 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
33106 from help line. It's out of sync with code.
33107
72b9658b 331082009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33109
33110 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
33111 entries on failed boot.
33112
77435277 331132009-07-25 Felix Zielcke <fzielcke@z-51.de>
33114
33115 * kern/file.c (grub_file_open): Fix an error check.
33116
fcaa8b21 331172009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
33118
35d16c74 33119 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
33120 partition map couldn't be identified.
fcaa8b21 33121
48904cd1 331222009-07-23 Pavel Roskin <proski@gnu.org>
33123
ef3c317f 33124 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
33125 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
33126 case of little endian words becomes just an optimization.
33127 Respect const modifier.
ad8ea1f4 33128 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 33129
48904cd1 33130 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
33131 to avoid loss of upper bits if align is unsigned and shorter
33132 than addr.
33133
260c9a89 331342009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33135
33136 UUID support for UFS
33137
33138 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
33139 (grub_ufs_uuid): New function.
33140 (grub_ufs_fs): add .uuid
33141
f76ce889 331422009-07-21 Pavel Roskin <proski@gnu.org>
33143
33144 * kern/dl.c (grub_dl_check_header): Make static.
33145
6a6cbcaf 331462009-07-21 Felix Zielcke <fzielcke@z-51.de>
33147
33148 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
33149 add drivemap for Vista. It breaks Windows 7.
33150
cffcddb2 331512009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33152
33153 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
33154 128 bytes
33155
1ef44b80 331562009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33157
33158 Add BFS support
33159
33160 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
33161 (grub_fstest_SOURCES): Likewise.
33162 (pkglib_MODULES): Add befs.mod.
33163 (befs_mod_SOURCES): New variable.
33164 (befs_mod_CFLAGS): Likewise.
33165 (befs_mod_LDFLAGS): Likewise.
33166 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33167 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33168 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33169 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33170 (grub_setup_SOURCES): Likewise.
33171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33172 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33173 (grub_setup_SOURCES): Likewise.
33174 * fs/befs.c: New file.
33175 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
33176 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
33177 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
33178 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
33179 (B_KEY_INDEX_ALIGN): New declaration.
33180 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
33181 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
33182 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
33183 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
33184 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
33185 (grub_afs_mount) [MODE_BFS]: Likewise.
33186 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
33187 (grub_afs_fs): Use GRUB_AFS_FSNAME
33188 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
33189 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
33190 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
33191 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
33192
4f253044 331932009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
33194
33195 * util/getroot.c (find_root_device): Add support for MacOSX.
33196 * util/hostdisk.c: Likewise.
33197
57a55913 331982009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33199
33200 * font/font.c (find_glyph): Check whether a font is present to avoid
33201 segmentation fault.
75421ca9 33202
332032009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 33204
33205 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
33206
e98cd0c2 332072009-07-20 Pavel Roskin <proski@gnu.org>
33208
33209 * configure.ac: Trim excessively wordy excuses.
33210
1d2d169a 332112009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33212
33213 Add symlink, mtime and label support to AtheFS.
33214
33215 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
33216 (grub_afs_iterate_dir): Handle symlinks.
33217 (grub_afs_open): Use grub_afs_read_symlink.
33218 (grub_afs_dir): Likewise.
33219 Pass mtime.
33220 (grub_afs_label): New function.
33221 (grub_afs_fs): Add grub_afs_label.
33222 (grub_afs_read_symlink): New function.
33223
186f3189 332242009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33225
33226 Fix AtheFS support.
33227
33228 * fs/afs.c: Fix comments style.
33229 (grub_afs_blockrun): Declare as packed.
33230 (grub_afs_datastream): Likewise.
33231 (grub_afs_bnode): Likewise.
33232 (grub_afs_btree): Likewise.
33233 (grub_afs_sblock): Likewise.
33234 Declare `name' as char.
33235 (grub_afs_inode): Declare as packed.
33236 Change void *vnode to grub_uint32_t unused.
33237 (grub_afs_iterate_dir): Check that key_size is positive.
33238 (grub_afs_mount): Don't read superblock twice.
75421ca9 33239 (grub_afs_dir): Don't free node in case of error,
186f3189 33240 grub_fshelp_find_file already handles this.
33241 (grub_afs_open): Likewise.
33242
5680109e 332432009-07-19 Pavel Roskin <proski@gnu.org>
33244
33245 * Makefile.in: Remove LIBLZO and enable_lzo.
33246 * conf/i386-pc.rmk: Remove lzo support.
33247 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
33248 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
33249 support.
33250 * kern/i386/pc/lzo1x.S: Remove.
33251 * kern/i386/pc/startup.S: Remove lzo support.
33252 * util/i386/pc/grub-mkimage.c: Likewise.
33253
ac70fa32 332542009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
33255
33256 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
33257 * fs/xfs.c (grub_xfs_dir): Likewise.
33258 * fs/afs.c (grub_afs_dir): Likewise.
33259 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
33260 (grub_iso9660_open): Likewise.
33261 * fs/jfs.c (grub_jfs_open): Likewise.
33262 * fs/ext2.c (grub_ext2_dir): Likewise.
33263 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
33264 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 33265
eab58da2 332662009-07-16 Pavel Roskin <proski@gnu.org>
33267
d2838156 33268 * configure.ac: Never add "-c" to CFLAGS.
33269
55c70904 33270 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
33271
43e6200c 33272 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
33273 grub_cv_cc_efiemu should be used.
33274
ce7a733d 33275 * configure.ac: Typo fixes.
33276
eab58da2 33277 * kern/mm.c (grub_zalloc): New function.
33278 (grub_debug_zalloc): Likewise.
33279 * include/grub/mm.h: Declare grub_zalloc() and
33280 grub_debug_zalloc().
33281 * util/misc.c (grub_zalloc): New function.
33282 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
33283 instead of grub_malloc(), remove unneeded initializations.
33284 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
33285 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
33286 * commands/parttool.c (grub_cmd_parttool): Likewise.
33287 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
33288 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
33289 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
33290 * disk/usbms.c (grub_usbms_finddevs): Likewise.
33291 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
33292 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
33293 (grub_cmd_efiemu_pnvram): Likewise.
33294 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
33295 * fs/iso9660.c (grub_iso9660_mount): Likewise.
33296 (grub_iso9660_iterate_dir): Likewise.
33297 * fs/jfs.c (grub_jfs_opendir): Likewise.
33298 * fs/ntfs.c (list_file): Likewise.
33299 (grub_ntfs_mount): Likewise.
33300 * kern/disk.c (grub_disk_open): Likewise.
33301 * kern/dl.c (grub_dl_load_core): Likewise.
33302 * kern/elf.c (grub_elf_file): Likewise.
33303 * kern/env.c (grub_env_context_open): Likewise.
33304 (grub_env_set): Likewise.
33305 (grub_env_set_data_slot): Likewise.
33306 * kern/file.c (grub_file_open): Likewise.
33307 * kern/fs.c (grub_fs_blocklist_open): Likewise.
33308 * loader/i386/multiboot.c (grub_module): Likewise.
33309 * loader/xnu.c (grub_xnu_create_key): Likewise.
33310 (grub_xnu_create_value): Likewise.
33311 * normal/main.c (grub_normal_add_menu_entry): Likewise.
33312 (read_config_file): Likewise.
33313 * normal/menu_entry.c (make_screen): Likewise.
33314 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33315 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
33316 * script/sh/script.c (grub_script_parse): Likewise.
33317 * video/bitmap.c (grub_video_bitmap_create): Likewise.
33318 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
33319 * video/readers/png.c (grub_png_output_byte): Likewise.
33320 (grub_video_reader_png): Likewise.
33321
830afef7 333222009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 33323
33324 Enable all targets that can be built by default
33325
830afef7 33326 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 33327 grub-mkfont and grub-fstest if they can be built
33328
ee293aee 333292009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33330
33331 Fix hang and segmentation fault in grub-emu-usb
33332
33333 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
33334 * util/usb.c (grub_libusb_devices): likewise
33335 (grub_libusb_init): rename to ...
33336 (GRUB_MOD_INIT (libusb)):...this
33337 (grub_libusb_fini): rename to ..
33338 (GRUB_MOD_FINI (libusb)):...this
33339 * disk/usbms.c (grub_usbms_transfer): fix retry logic
33340 * include/grub/disk.h (grub_raid_init): removed, it's useless
33341 (grub_raid_fini): likewise
33342 (grub_lvm_init): likewise
33343 (grub_lvm_fini): likewise
33344 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
33345 by grub_init_all
33346
94414221 333472009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33348
33349 Fix libusb
33350
33351 * Makefile.in (LIBUSB): new macro
33352 * genmk.rb (Utility/print_tail): new method
33353 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
33354 (top level): call util.print_tail at the end.
33355
59ade63d 333562009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33357
33358 Make FreeBSD accept zpool.cache
33359
33360 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
33361 type is /boot/zfs/zpool.cache
33362
a58da8c7 333632009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33364
33365 Fix 64-bit efiemu
33366
33367 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
33368 correct wrong typedef
33369 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
33370
20591577 333712009-07-15 Pavel Roskin <proski@gnu.org>
33372
560ca572 33373 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
33374 * kern/disk.c (struct grub_disk_cache): Likewise.
33375
e8e8e4fd 33376 * commands/probe.c (options): Typo fix.
33377
fde24e10 33378 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
33379 Increase to 0x5a to accommodate FAT32. Adjust other offsets
33380 accordingly.
33381 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
33382
379c54c1 33383 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
33384 the end of "Error" to make the message more readable.
33385
7bd8f5bf 33386 * boot/i386/pc/boot.S (kernel_segment): Remove.
33387 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
33388 for destination.
33389
40b132c5 33390 * boot/i386/pc/boot.S (boot_version): Remove.
33391 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
33392 Remove.
33393
20591577 33394 * include/grub/i386/pc/boot.h: Sort all offsets.
33395 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
33396 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
33397 * boot/i386/pc/boot.S: Assert location of every offset listed in
33398 include/grub/i386/pc/boot.h.
33399
2df32b2c 334002009-07-13 Pavel Roskin <proski@gnu.org>
33401
44b5d879 33402 * include/grub/i386/coreboot/machine.h: Rename
33403 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
33404 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
33405 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
33406
17dc3751 33407 * kern/dl.c: Force native word size to suppress warnings when
33408 compiling grub-emu.
33409
2df32b2c 33410 * kern/device.c (grub_device_iterate): Change struct part_ent to
33411 hold the name, not a pointer to it. Use one grub_malloc() per
33412 partition, not two. Free partition_name if grub_malloc() fails.
33413 Set ents to NULL only before grub_partition_iterate() is called.
33414
75c59f59 334152009-07-11 Bean <bean123ch@gmail.com>
33416
33417 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
33418 childname.
33419
0ae1bf88 334202009-07-10 Bean <bean123ch@gmail.com>
334212009-07-10 Robert Millan <rmh.grub@aybabtu.com>
33422
33423 * kern/ieee1275/openfw.c (grub_children_iterate)
33424 (grub_devalias_iterate): Fix size evaluation for property or path
33425 strings, which was broken since r2132.
33426
8279cade 334272009-07-07 Pavel Roskin <proski@gnu.org>
33428
7d8a52d3 33429 * commands/search.c (search_file): Merge into ...
33430 (search_fs): ... this. Accept search type as argument.
33431 (grub_cmd_search): Pass search type to search_fs().
33432
25f9a05a 33433 * include/grub/util/console.h: New file.
33434 * util/console.c: Use it instead of grub/machine/console.h.
33435 * util/grub-emu.c: Likewise.
33436
8279cade 33437 * lib/arg.c (find_long_option): Remove.
33438 (find_long): Add `len' argument, make `s' const char *.
33439 (grub_arg_parse): Parse long options in place, not in a
33440 temporary buffer.
33441
4a11b60f 334422009-07-06 Pavel Roskin <proski@gnu.org>
33443
99f68041 33444 * commands/search.c (search_fs): Fix potential NULL pointer
33445 dereference.
33446
4a11b60f 33447 * commands/search.c (search_fs): Replace QUID macro with quid_fn
33448 function pointer.
33449
e110f4de 334502009-07-06 Daniel Mierswa <impulze@impulze.org>
33451
33452 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
33453 comparison.
33454
46eeb6a2 334552009-07-05 Pavel Roskin <proski@gnu.org>
33456
bab74958 33457 * include/grub/i386/linux.h (struct linux_kernel_params):
33458 Restore padding3, it's still needed.
33459
46eeb6a2 33460 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
33461 FreeBSD.
33462 * util/osdetect.lua: Likewise.
33463
b4a1dc79 334642009-07-05 Bean <bean123ch@gmail.com>
33465
33466 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
33467
33468 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
33469 (grub_lua_getenv): Likewise.
33470 (grub_lua_setenv): Likewise.
33471 (save_errno): New function.
33472 (push_result): Likewise.
33473 (grub_lua_enum_device): Likewise.
33474 (grub_lua_enum_file): Likewise.
33475 (grub_lua_file_open): Likewise.
33476 (grub_lua_file_close): Likewise.
33477 (grub_lua_file_seek): Likewise.
33478 (grub_lua_file_read): Likewise.
33479 (grub_lua_file_getline): Likewise.
33480 (grub_lua_file_getsize): Likewise.
33481 (grub_lua_file_getpos): Likewise.
33482 (grub_lua_file_eof): Likewise.
33483 (grub_lua_file_exist): Likewise.
33484 (grub_lua_add_menu): Likewise.
33485
33486 * script/lua/grub_lua.h (isupper): New inline function.
33487 (islower): Likewise.
33488 (ispunct): Likewise.
33489 (isxdigit): Likewise.
33490 (strcspn): Change to normal function.
33491 (strpbkr): New function declaration.
33492 (memchr): Likewise.
33493
33494 * script/lua/grub_main.c (scan_str): New function.
33495 (strcspn): Likewise.
33496 (strpbrk): Likewise.
33497 (memchr): Likewise.
33498
33499 * script/lua/linit.c (lualibs): Enable the string library.
33500
33501 * util/osdetect.lua: New file.
33502
2da92295 335032009-07-04 Robert Millan <rmh.grub@aybabtu.com>
33504
33505 * include/grub/i386/linux.h (struct linux_kernel_params): Add
33506 `capabilities' member.
33507
b2582ec9 335082009-07-02 Pavel Roskin <proski@gnu.org>
33509
33510 * genparttoollist.sh: Add missing newline at the end.
33511
32622956 335122009-07-01 Pavel Roskin <proski@gnu.org>
33513
87a7339e 33514 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
33515
d23af54e 33516 * util/hostdisk.c (open_device): Remove `const' from
33517 `sysctl_size', as sysctlbyname() can change it (in this case it
33518 doesn't actually happen).
33519
c94b18a9 33520 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
33521 using signed long int constants.
33522
c6cd3ef0 33523 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
33524 constant to avoid a warning on FreeBSD.
33525
0df63420 33526 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
33527 where it's needed.
33528
999577f1 33529 * Makefile.in: Install include/grub/machine symlink.
33530
6f41557f 33531 * Makefile.in: When installing symlinks, use "cp -fR", which
33532 works on FreeBSD and MacOSX.
33533 From Yves Blusseau <cl7m42e02@sneakemail.com>
33534
c8d22988 33535 * kern/dl.c (grub_dl_resolve_symbol): Make static.
33536 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
33537
1b96e952 33538 * util/misc.c: Move grub_reboot() and grub_halt() ...
33539 * util/grub-emu.c: ... here. Make main_env static.
33540 * include/grub/util/misc.h: Remove main_env.
33541
2ef0084d 33542 * kern/mm.c: Use correct format to print size_t.
33543
32622956 33544 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
33545 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
33546 * kern/powerpc/dl.c: Likewise.
33547 * kern/sparc64/dl.c: Likewise.
33548 * kern/x86_64/dl.c: Likewise.
33549
3f7f0cd0 335502009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33551
33552 Fix grub-emu build on sparc64-ieee1275.
33553
75421ca9 33554 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 33555 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
33556
211d06b5 335572009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33558
33559 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
33560 (grub_reboot, grub_halt): New functions.
33561
33562 * util/i386/pc/misc.c: Delete. Update all users.
33563 * util/sparc64/ieee1275/misc.c: Likewise.
33564 * util/powerpc/ieee1275/misc.c: Likewise.
33565
aaf53e3c 335662009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33567
33568 * conf/i386.rmk (setjmp_mod_SOURCES)
33569 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
33570 * conf/common.rmk (setjmp_mod_SOURCES)
33571 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
33572 to use $(target_cpu).
33573 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
33574 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
33575 * conf/powerpc-ieee1275.rmk: Likewise.
33576 * conf/sparc64-ieee1275.rmk: Likewise.
33577
33578 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
33579 $(target_cpu) for kern/$(target_cpu)/dl.c.
33580 * conf/i386-efi.rmk: Likewise.
33581 * conf/i386-ieee1275.rmk: Likewise.
33582 * conf/x86_64-efi.rmk: Likewise.
33583 * conf/i386-coreboot.rmk: Likewise.
33584 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
33585 $(target_cpu) for kern/$(target_cpu)/dl.c and for
33586 kern/$(target_cpu)/cache.S.
33587 * conf/sparc64-ieee1275.rmk: Likewise.
33588
a337130b 335892009-07-01 Robert Millan <rmh.grub@aybabtu.com>
33590
33591 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
33592 type to `grub_uint8_t', and adjust `padding9' accordingly.
33593
c6fe4d53 335942009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33595
b09db61d 33596 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
33597
c6fe4d53 33598 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
33599 assembly in final jump, using register constraints.
33600
b09db61d 33601 (grub_linux_boot): For text mode, initialize `have_vga' using
33602 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
33603
33604 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
33605 right before the final jump.
33606
33607 Set `video_mode' to 0x3.
33608
33609 Document initialization of `video_page', `video_mode' and
33610 `video_ega_bx'.
33611
28333ad0 336122009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33613
33614 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
33615 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 33616 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 33617
02164e1b 336182009-06-29 Robert Millan <rmh.grub@aybabtu.com>
33619
33620 Fix build on Debian / sparc.
33621
33622 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
33623
18b6c557 336242009-06-28 Pavel Roskin <proski@gnu.org>
33625
85f2aab6 33626 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
33627 fix a warning.
33628
18b6c557 33629 * util/grub.d/10_linux.in: Match SUSE style initrd names.
33630
ad760f81 336312009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33632
33633 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
33634 `err'.
33635
87a4623b 336362009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33637
33638 Revert r2338.
33639
33640 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
33641 file can't be opened. grub_file_open() is already supposed to set
75421ca9 33642 grub_errno / grub_errmsg appropriately.
87a4623b 33643 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33644
8231fb77 336452009-06-27 Pavel Roskin <proski@gnu.org>
336462009-06-27 Robert Millan <rmh.grub@aybabtu.com>
33647
33648 * include/grub/dl.h: Include grub/elf.h.
33649 (struct grub_dl): Add symtab field.
33650 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
33651 GRUB_MODULES_MACHINE_READONLY.
33652 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
33653 of the header for read-only modules.
33654 (grub_dl_unload): Free mod->symtab for read-only modules.
33655 * kern/i386/dl.c: Use mod->symtab.
33656 * kern/powerpc/dl.c: Likewise.
33657 * kern/sparc64/dl.c: Likewise.
33658 * kern/x86_64/dl.c: Likewise.
33659
33660 * conf/i386-qemu.rmk: New file.
33661 * kern/i386/qemu/startup.S: Likewise.
33662 * kern/i386/qemu/mmap.c: Likewise.
33663 * boot/i386/qemu/boot.S: Likewise.
33664 * include/grub/i386/qemu/time.h: Likewise.
33665 * include/grub/i386/qemu/serial.h: Likewise.
33666 * include/grub/i386/qemu/kernel.h: Likewise.
33667 * include/grub/i386/qemu/console.h: Likewise.
33668 * include/grub/i386/qemu/boot.h: Likewise.
33669 * include/grub/i386/qemu/init.h: Likewise.
33670 * include/grub/i386/qemu/machine.h: Likewise.
33671 * include/grub/i386/qemu/loader.h: Likewise.
33672 * include/grub/i386/qemu/memory.h: Likewise.
33673
33674 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
33675 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
33676 [qemu] (pkglib_IMAGES): Add `boot.img'.
33677 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
33678 [qemu] (boot_img_FORMAT): New variables.
33679 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
33680 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
33681 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
33682 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
33683 [qemu] (kernel_img_FORMAT): New variables.
33684
33685 * configure.ac: Recognise `i386-qemu'.
33686
33687 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
33688 (for no compression).
33689 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
33690 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
33691 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
33692 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
33693 ifdefs).
33694
97fe384e 336952009-06-27 Pavel Roskin <proski@gnu.org>
33696
33697 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
33698 read.
33699 * efiemu/prepare32.c: Likewise.
33700 * efiemu/prepare64.c: Likewise.
33701
c402ab17 337022009-06-26 Pavel Roskin <proski@gnu.org>
33703
33704 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
33705 * include/grub/elf.h: Define symbols without "32" or "64" based
33706 on GRUB_TARGET_WORDSIZE.
33707 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
33708 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
33709 ELF definitions.
33710 * efiemu/loadcore64.c: Likewise.
33711 * loader/i386/bsd32.c: Likewise.
33712 * loader/i386/bsd64.c: Likewise.
33713 * kern/dl.c: Remove own ELF definitions.
33714 * util/i386/efi/grub-mkimage.c: Likewise.
33715
9bbdfd4d 337162009-06-23 Robert Millan <rmh.grub@aybabtu.com>
33717
33718 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
33719 segment 0x0 unconditionally, because the reference generated by
33720 GAS is an absolute address.
33721
a42ce6e9 337222009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33723
33724 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
33725 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
33726
c952cf92 337272009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33728
33729 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
33730 indexes. Check for -f explicitly.
cc3752ad 33731 (search_file): Improve error message.
33732 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 33733
132a0a59 337342009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33735
33736 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
33737 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
33738
387a140c 337392009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33740
33741 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
33742 * conf/i386-ieee1275.rmk: Likewise.
33743 * conf/i386-coreboot.rmk: Likewise.
33744
33745 * kern/i386/pc/startup.S (grub_stop): Remove function.
33746 * kern/i386/ieee1275/startup.S: Likewise.
33747 * kern/i386/coreboot/startup.S: Likewise.
33748 * kern/i386/misc.S (grub_stop): New function.
33749
41da9665 337502009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33751
33752 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
33753 * kern/i386/realmode.S (real_to_prot): ... to here.
33754
bf337234 337552009-06-22 Robert Millan <rmh.grub@aybabtu.com>
33756
33757 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
33758 with `kernel.img'.
33759 (kernel_elf_SOURCES): Rename to ...
33760 (kernel_img_SOURCES): ... this.
33761 (kernel_elf_HEADERS): Rename to ...
33762 (kernel_img_HEADERS): ... this. Update all users.
33763 (kernel_elf_ASFLAGS): Rename to ...
33764 (kernel_img_ASFLAGS): ... this.
33765 (kernel_elf_CFLAGS): Rename to ...
33766 (kernel_img_CFLAGS): ... this.
33767 (kernel_elf_LDFLAGS): Rename to ...
33768 (kernel_img_LDFLAGS): ... this.
33769 * conf/i386-coreboot.rmk: Likewise.
33770 * conf/powerpc-ieee1275.rmk: Likewise.
33771
33772 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
33773 with "kernel.img".
33774
f52196ff 337752009-06-21 Pavel Roskin <proski@gnu.org>
33776
c3cee413 33777 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
33778 to match nested functions.
33779 * loader/sparc64/ieee1275/linux.c: Likewise.
33780
f52196ff 33781 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
33782
58750afc 337832009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33784
33785 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
33786 all i386 platforms.
33787
15355c7d 337882009-06-21 Robert Millan <rmh.grub@aybabtu.com>
33789
33790 Fix asm file handling on ELF, and remove workarounds.
33791
33792 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 33793 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 33794 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
33795 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
33796
3f3ec72b 337972009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
33798
33799 Load BSD ELF modules
33800
33801 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
33802 and loader/i386/bsd64.c
33803 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
33804 (FREEBSD_MODTYPE_ELF_MODULE): New definition
33805 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
33806 (grub_freebsd_load_elfmodule32): New declaration
33807 (grub_freebsd_load_elfmoduleobj64): Likewise
33808 (grub_freebsd_load_elf_meta32): Likewise
33809 (grub_freebsd_load_elf_meta64): Likewise
33810 (grub_freebsd_add_meta): Likewise
33811 (grub_freebsd_add_meta_module): Likewise
33812 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
33813 (grub_freebsd_add_meta_module): Likewise and move module-specific
33814 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
33815 (grub_cmd_freebsd): Add elf-kernel specific parts
33816 based on grub_freebsd_add_meta_module
33817 (grub_cmd_freebsd_module): Add type parsing moved from
33818 grub_freebsd_add_meta_module
33819 (grub_cmd_freebsd_module_elf): New function
33820 (cmd_freebsd_module_elf): New variable
33821 (GRUB_MOD_INIT): Register freebsd_module_elf
33822 * loader/i386/bsd32.c: New file
33823 * loader/i386/bsd64.c: Likewise
33824 * loader/i386/bsdXX.c: Likewise
33825 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
33826 (grub_elf64_load): Likewise
33827 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
33828 All users updated
33829 (grub_elf64_load_hook_t): Likewise
33830
0db15301 338312009-06-21 Colin Watson <cjwatson@ubuntu.com>
33832
33833 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
33834 variable.
33835 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
33836 don't write a menu entry for recovery mode.
33837
546796c1 338382009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33839
33840 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
33841 after it's no longer needed.
33842
cd7310d5 338432009-06-20 Robert Millan <rmh.grub@aybabtu.com>
33844
33845 * include/grub/i386/loader.h (grub_linux_prot_size)
33846 (grub_linux_tmp_addr, grub_linux_real_addr)
33847 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
33848 GRUB_MACHINE_PCBIOS.
33849 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
33850 common grub_util_info() call to ...
33851 (generate_image): ... here.
33852 Fix use of uninitialized memory, comparison of signed with
33853 unsigned integers and memory leak.
33854 Remove bogus module address message.
33855
ab32d3b5 338562009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
33857
33858 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
33859 grub_raid_register
33860 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
33861
024ef597 338622009-06-19 Pavel Roskin <proski@gnu.org>
33863
33864 * configure.ac: Remove stray AC_MSG_CHECKING.
33865
3ac72b51 338662009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
33867
33868 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 33869
e14cd814 338702009-06-18 Pavel Roskin <proski@gnu.org>
33871
33872 * conf/common.rmk: Add fs_file.mod.
33873 * disk/fs_file.c: New file.
33874 * include/grub/disk.h (enum grub_disk_dev_id): Add
33875 GRUB_DISK_DEVICE_FILE_ID.
33876
26586d98 338772009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33878
33879 Fix build with Apple's toolchain. Part 2
33880
33881 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
33882 a fake start
33883
26de2bcd 338842009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33885
33886 Fix build with Apple's toolchain. Part 1
33887
33888 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
33889 for long calls
33890 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 33891 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 33892 Apple's toolchain
33893
09b3490b 338942009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
33895
33896 Fix warnings
33897
33898 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
33899 (decomp_block): initialize ch
33900 use grub_memcpy instead of memcpy
33901
c22a006a 339022009-06-17 Pavel Roskin <proski@gnu.org>
33903
d3638678 33904 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
33905 version, use declarations needed to use vga_text as the startup
33906 console.
33907
c22a006a 33908 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
33909 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
33910 the kernel.
33911 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
33912 and grub_at_keyboard_fini(), it's done on module load and
33913 unload.
33914
05b129e0 339152009-06-17 Felix Zielcke <fzielcke@z-51.de>
33916
33917 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
33918 file can't be found.
33919 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
33920
cf24ed9e 339212009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
33922
33923 Fix newline handling
33924
33925 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 33926 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 33927 (grub_script_yylex): don't segfault on unterminated script
33928 newline terminates command and variable
33929
74aa8e4b 339302009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
33931
33932 avoid double grub_adjust_range call. Bug reported by David Simner
33933
33934 * kern/disk.c (grub_disk_write): change to raw disk access before
33935 calling disk_read
33936
1bd265f3 339372009-06-17 Colin Watson <cjwatson@ubuntu.com>
33938
33939 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
33940 spaces, for the benefit of help2man.
33941 * util/i386/efi/grub-mkimage.c (usage): Likewise.
33942
a2d08c06 339432009-06-16 Pavel Roskin <proski@gnu.org>
33944
33945 * kern/i386/halt.c: Include grub/machine/init.h.
33946 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
33947
b97bcb19 339482009-06-16 Felix Zielcke <fzielcke@z-51.de>
33949
33950 * util/grub.d/30_os-prober.in: Use ${root} in the generated
33951 drivemap menuentry.
33952
0644f96c 339532009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
33954
33955 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
33956 `echo' command.
33957
3ef17a2e 339582009-06-16 Pavel Roskin <proski@gnu.org>
33959
33960 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
33961 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
33962 save %dx, we only need %dl and we never change it.
33963 * boot/i386/pc/cdboot.S: Don't set the root drive.
33964 * boot/i386/pc/pxeboot.S: Likewise.
33965 * include/grub/i386/pc/boot.h: Remove
33966 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
33967 GRUB_BOOT_MACHINE_DRIVE_CHECK.
33968 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
33969 * kern/i386/pc/init.c (make_install_device): Remove references
33970 to grub_root_drive.
33971 * kern/i386/pc/startup.S: Likewise.
33972 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
33973
693fe637 339742009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
33975
33976 xnu_uuid command
33977
33978 * commands/xnu_uuid.c: new file
33979 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
33980 (xnu_uuid_mod_SOURCES): new variable
33981 (xnu_uuid_mod_CFLAGS): likewise
33982 (xnu_uuid_mod_LDFLAGS): likewise
33983 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
33984 * conf/i386-ieee1275.rmk: likewise
33985 * conf/i386-pc.rmk: likewise
33986 * conf/powerpc-ieee1275.rmk: likewise
33987 * conf/sparc64-ieee1275.rmk: likewise
33988 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
33989
c9da87d0 339902009-06-16 Pavel Roskin <proski@gnu.org>
33991
33992 * configure.ac: Avoid '==' in test command, it's not portable.
33993
9c6f4596 339942009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
33995
33996 Probe command
33997
33998 * commands/probe.c: new file
33999 * conf/common.rmk (pkglib_MODULES): add probe.mod
34000 (probe_mod_SOURCES): new variable
34001 (probe_mod_CFLAGS): likewise
34002 (probe_mod_LDFLAGS): likewise
34003 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34004 * conf/i386-ieee1275.rmk: likewise
34005 * conf/i386-pc.rmk: likewise
34006 * conf/powerpc-ieee1275.rmk: likewise
34007 * conf/sparc64-ieee1275.rmk: likewise
34008
70b7f9fd 340092009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
34010
34011 Fix handling of string like \"hello\" and "a
34012 b"
34013
34014 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
34015 (grub_script_yylex): fix parsing of quoting, escaping and newline
34016
71c79a6b 340172009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
34018
dd74360c 34019 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 34020 handling
dd74360c 34021
0644f96c 340222009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 34023
34024 * util/grub-mkconfig.in: Fix parsing of --output option.
34025
e40893c3 340262009-06-12 Pavel Roskin <proski@gnu.org>
34027
34028 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
34029 genmk.rb don't need to be generated or installed.
34030
3a1acfe2 340312009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
34032
34033 * commands/i386/pc/drivemap_int13h.S: add more comments
34034
3a4575d4 340352009-06-11 Pavel Roskin <proski@gnu.org>
34036
0658e928 34037 * Makefile.in (uninstall): Uninstall manuals.
34038
ca0388f0 34039 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
34040 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
34041 and update-grub_lib in two places.
34042 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
34043
e3b27c39 34044 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
34045 a compiler warning.
34046
3a4575d4 34047 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
34048 `entry_lo' to fix variable shadowing.
34049
af1f4f55 340502009-06-11 Christian Franke <franke@computer.org>
34051
34052 * kern/misc.c (__enable_execute_stack): Add missing return type
34053 to prevent gcc warning.
34054
5225e649 340552009-06-11 Felix Zielcke <fzielcke@z-51.de>
34056
34057 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
34058
7d83bd47 340592009-06-11 Pavel Roskin <proski@gnu.org>
34060
c1cb63ba 34061 * Makefile.in: Don't rely on any scripts being executable.
34062 Always use $(SHELL) to run shell scripts.
34063
7d83bd47 34064 * configure.ac: Always define ___main if using -nostdlib. This
34065 fixes tests on Cygwin.
34066
948f48e7 340672009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
34068
34069 UDF fix
34070
7d83bd47 34071 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 34072 is in bytes and not in blocks
7d83bd47 34073
8ada9bc1 340742009-06-11 Pavel Roskin <proski@gnu.org>
34075
34076 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
34077 warning.
34078
25ad2323 340792009-06-11 Felix Zielcke <fzielcke@z-51.de>
34080
34081 * util/grub.d/30_os-prober.in: Fix a comment. Source
34082 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
34083 to set the root device. Place drivemap command in the generated
34084 chain entry.
34085
e65acb0c 340862009-06-11 Pavel Roskin <proski@gnu.org>
34087
34088 * configure.ac: Remove host_m32. Issues with 64-bit utilities
34089 have long been resolved.
34090
f285fe2d 340912009-06-11 Colin Watson <cjwatson@ubuntu.com>
34092
bd47b0b5 34093 * util/grub.d/10_linux.in: Capitalise "Linux".
34094
f285fe2d 34095 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
34096
a0c62e4e 340972009-06-11 Pavel Roskin <proski@gnu.org>
34098
b6783cb2 34099 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
34100 fix a gcc warning and ensure that the function won't ever exit.
34101
dde032e8 34102 * kern/i386/ieee1275/init.c: Add missing prototype for
34103 grub_stop_floppy().
34104
22cd079d 34105 * loader/ieee1275/multiboot2.c [__i386__]: Include
34106 grub/cpu/multiboot.h.
34107
a0c62e4e 34108 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
34109 casts to short - they are not portable and cause warnings. Fix
34110 use of uninitialized values in input_buf. Use ARRAY_SIZE.
34111
63963d17 341122009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
34113
34114 Drivemap fixes
34115
34116 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
34117 new function
34118 (grub_get_root_biosnumber_saved): new variable
34119 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
34120 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 34121 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 34122 %dx after the call if necessary
34123 * conf/common.rmk (pkglib_MODULES): remove boot.mod
34124 (boot_mod_SOURCES): remove
34125 (boot_mod_CFLAGS): remove
34126 (boot_mod_LDFLAGS): remove
34127 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
34128 (boot_mod_SOURCES): new variable
34129 (boot_mod_CFLAGS): likewise
34130 (boot_mod_LDFLAGS): likewise
34131 * conf/i386-efi.rmk: likewise
34132 * conf/i386-ieee1275.rmk: likewise
34133 * conf/i386-pc.rmk: likewise
34134 * conf/powerpc-ieee1275.rmk: likewise
34135 * conf/sparc64-ieee1275.rmk: likewise
34136 * conf/x86_64-efi.rmk: likewise
34137 * include/grub/i386/pc/biosnum.h: new file
34138 * lib/i386/pc/biosnum.c: likewise
34139 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
34140 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
34141 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 34142
33abf7ae 341432009-06-10 Pavel Roskin <proski@gnu.org>
34144
5ac35b35 34145 * io/gzio.c (test_header): Don't reuse one buffer for all data.
34146 Use separate variables. Read only the file size at the end, but
34147 not the checksum that we don't use.
34148
5c5215d5 34149 * kern/file.c (grub_file_read): Use void pointer for the buffer.
34150 Adjust all callers.
34151
27d5fef7 34152 * kern/ieee1275/openfw.c: Remove libc includes.
34153 * kern/ieee1275/cmain.c: Likewise.
34154 * include/grub/ieee1275/ieee1275.h: Likewise.
34155
33abf7ae 34156 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
34157 compiler warnings.
34158
19d50c2b 341592009-06-10 Felix Zielcke <fzielcke@z-51.de>
34160
34161 * Makefile.in: Remove all trailing whitespace.
34162 * conf/i386-pc.rmk: Likewise.
34163 * conf/powerpc-ieee1275.rmk: Likewise.
34164 * conf/sparc64-ieee1275.rmk: Likewise.
34165 * docs/grub.texi: Likewise.
34166 * docs/texinfo.tex: Likewise.
34167 * disk/fs_uuid.c: Likewise.
34168 * disk/lvm.c: Likewise.
34169 * disk/scsi.c: Likewise.
34170 * disk/ata.c: Likewise.
34171 * disk/ieee1275/ofdisk.c: Likewise.
34172 * disk/i386/pc/biosdisk.c: Likewise.
34173 * disk/host.c: Likewise.
34174 * disk/raid.c: Likewise.
34175 * disk/efi/efidisk.c: Likewise.
34176 * disk/usbms.c: Likewise.
34177 * disk/memdisk.c: Likewise.
34178 * disk/loopback.c: Likewise.
34179 * kern/powerpc/dl.c: Likewise.
34180 * kern/device.c: Likewise.
34181 * kern/dl.c: Likewise.
34182 * kern/sparc64/dl.c: Likewise.
34183 * kern/ieee1275/ieee1275.c: Likewise.
34184 * kern/term.c: Likewise.
34185 * kern/fs.c: Likewise.
34186 * kern/i386/dl.c: Likewise.
34187 * kern/i386/pc/startup.S: Likewise.
34188 * kern/i386/pc/init.c: Likewise.
34189 * kern/i386/pc/mmap.c: Likewise.
34190 * kern/i386/pc/lzo1x.S: Likewise.
34191 * kern/i386/ieee1275/init.c: Likewise.
34192 * kern/i386/realmode.S: Likewise.
34193 * kern/i386/tsc.c: Likewise.
34194 * kern/partition.c: Likewise.
34195 * kern/corecmd.c: Likewise.
34196 * kern/file.c: Likewise.
34197 * kern/efi/efi.c: Likewise.
34198 * kern/efi/init.c: Likewise.
34199 * kern/efi/mm.c: Likewise.
34200 * kern/main.c: Likewise.
34201 * kern/err.c: Likewise.
34202 * kern/env.c: Likewise.
34203 * kern/disk.c: Likewise.
34204 * kern/generic/millisleep.c: Likewise.
34205 * kern/generic/rtc_get_time_ms.c: Likewise.
34206 * kern/misc.c: Likewise.
34207 * kern/parser.c: Likewise.
34208 * genmk.rb: Likewise.
34209 * configure.ac: Likewise.
34210 * boot/i386/pc/diskboot.S: Likewise.
34211 * boot/i386/pc/pxeboot.S: Likewise.
34212 * boot/i386/pc/boot.S: Likewise.
34213 * boot/i386/pc/lnxboot.S: Likewise.
34214 * boot/i386/pc/cdboot.S: Likewise.
34215 * parttool/pcpart.c: Likewise.
34216 * video/readers/tga.c: Likewise.
34217 * video/video.c: Likewise.
34218 * video/bitmap.c: Likewise.
34219 * lib/envblk.c: Likewise.
34220 * lib/i386/setjmp.S: Likewise.
34221 * fs/xfs.c: Likewise.
34222 * fs/afs.c: Likewise.
34223 * fs/fat.c: Likewise.
34224 * fs/ntfs.c: Likewise.
34225 * fs/udf.c: Likewise.
34226 * fs/affs.c: Likewise.
34227 * fs/iso9660.c: Likewise.
34228 * fs/hfs.c: Likewise.
34229 * fs/fshelp.c: Likewise.
34230 * fs/ext2.c: Likewise.
34231 * fs/jfs.c: Likewise.
34232 * fs/reiserfs.c: Likewise.
34233 * fs/hfsplus.c: Likewise.
34234 * fs/minix.c: Likewise.
34235 * fs/cpio.c: Likewise.
34236 * fs/sfs.c: Likewise.
34237 * fs/ufs.c: Likewise.
34238 * efiemu/prepare.c: Likewise.
34239 * efiemu/loadcore_common.c: Likewise.
34240 * efiemu/runtime/efiemu.sh: Likewise.
34241 * efiemu/runtime/efiemu.S: Likewise.
34242 * efiemu/runtime/efiemu.c: Likewise.
34243 * efiemu/pnvram.c: Likewise.
34244 * efiemu/main.c: Likewise.
34245 * efiemu/i386/pc/cfgtables.c: Likewise.
34246 * efiemu/i386/loadcore64.c: Likewise.
34247 * efiemu/i386/loadcore32.c: Likewise.
34248 * efiemu/loadcore.c: Likewise.
34249 * efiemu/symbols.c: Likewise.
34250 * efiemu/mm.c: Likewise.
34251 * include/grub/autoefi.h: Likewise.
34252 * include/grub/datetime.h: Likewise.
34253 * include/grub/term.h: Likewise.
34254 * include/grub/hfs.h: Likewise.
34255 * include/grub/lvm.h: Likewise.
34256 * include/grub/i386/tsc.h: Likewise.
34257 * include/grub/i386/linux.h: Likewise.
34258 * include/grub/i386/xnu.h: Likewise.
34259 * include/grub/i386/efiemu.h: Likewise.
34260 * include/grub/i386/pc/biosdisk.h: Likewise.
34261 * include/grub/i386/pc/memory.h: Likewise.
34262 * include/grub/i386/pc/vbe.h: Likewise.
34263 * include/grub/parttool.h: Likewise.
34264 * include/grub/video.h: Likewise.
34265 * include/grub/memory.h: Likewise.
34266 * include/grub/fs.h: Likewise.
34267 * include/grub/partition.h: Likewise.
34268 * include/grub/xnu.h: Likewise.
34269 * include/grub/efi/api.h: Likewise.
34270 * include/grub/efi/pe32.h: Likewise.
34271 * include/grub/efi/memory.h: Likewise.
34272 * include/grub/multiboot.h: Likewise.
34273 * include/grub/usbdesc.h: Likewise.
34274 * include/grub/multiboot2.h: Likewise.
34275 * include/grub/acpi.h: Likewise.
34276 * include/grub/efiemu/efiemu.h: Likewise.
34277 * include/grub/disk.h: Likewise.
34278 * include/grub/ieee1275/ieee1275.h: Likewise.
34279 * include/grub/net.h: Likewise.
34280 * include/grub/machoload.h: Likewise.
34281 * include/grub/macho.h: Likewise.
34282 * include/multiboot.h: Likewise.
34283 * genmoddep.awk: Likewise.
34284 * normal/main.c: Likewise.
34285 * normal/menu_entry.c: Likewise.
34286 * normal/menu_viewer.c: Likewise.
34287 * normal/completion.c: Likewise.
34288 * normal/cmdline.c: Likewise.
34289 * normal/misc.c: Likewise.
34290 * normal/datetime.c: Likewise.
34291 * bus/usb/usbtrans.c: Likewise.
34292 * bus/usb/ohci.c: Likewise.
34293 * bus/usb/uhci.c: Likewise.
34294 * bus/usb/usb.c: Likewise.
34295 * mmap/efi/mmap.c: Likewise.
34296 * mmap/i386/pc/mmap_helper.S: Likewise.
34297 * mmap/i386/pc/mmap.c: Likewise.
34298 * mmap/i386/mmap.c: Likewise.
34299 * mmap/i386/uppermem.c: Likewise.
34300 * mmap/mmap.c: Likewise.
34301 * commands/acpi.c: Likewise.
34302 * commands/echo.c: Likewise.
34303 * commands/blocklist.c: Likewise.
34304 * commands/loadenv.c: Likewise.
34305 * commands/usbtest.c: Likewise.
34306 * commands/boot.c: Likewise.
34307 * commands/parttool.c: Likewise.
34308 * commands/search.c: Likewise.
34309 * commands/cat.c: Likewise.
34310 * commands/i386/pc/play.c: Likewise.
34311 * commands/i386/pc/drivemap.c: Likewise.
34312 * commands/i386/pc/vbeinfo.c: Likewise.
34313 * commands/i386/pc/acpi.c: Likewise.
34314 * commands/i386/pc/vbetest.c: Likewise.
34315 * commands/ls.c: Likewise.
34316 * commands/cmp.c: Likewise.
34317 * commands/test.c: Likewise.
34318 * commands/efi/acpi.c: Likewise.
34319 * commands/gptsync.c: Likewise.
34320 * commands/help.c: Likewise.
34321 * partmap/amiga.c: Likewise.
34322 * partmap/apple.c: Likewise.
34323 * partmap/acorn.c: Likewise.
34324 * partmap/pc.c: Likewise.
34325 * partmap/sun.c: Likewise.
34326 * partmap/gpt.c: Likewise.
34327 * script/sh/lexer.c: Likewise.
34328 * script/sh/function.c: Likewise.
34329 * font/font.c: Likewise.
34330 * font/font_cmd.c: Likewise.
34331 * loader/powerpc/ieee1275/linux.c: Likewise.
34332 * loader/efi/chainloader.c: Likewise.
34333 * loader/multiboot_loader.c: Likewise.
34334 * loader/macho.c: Likewise.
34335 * loader/i386/multiboot.c: Likewise.
34336 * loader/i386/linux.c: Likewise.
34337 * loader/i386/pc/linux.c: Likewise.
34338 * loader/i386/pc/multiboot2.c: Likewise.
34339 * loader/i386/pc/chainloader.c: Likewise.
34340 * loader/i386/pc/xnu.c: Likewise.
34341 * loader/i386/bsd_trampoline.S: Likewise.
34342 * loader/i386/efi/linux.c: Likewise.
34343 * loader/i386/multiboot_elfxx.c: Likewise.
34344 * loader/i386/bsd_helper.S: Likewise.
34345 * loader/i386/bsd.c: Likewise.
34346 * loader/i386/linux_trampoline.S: Likewise.
34347 * loader/i386/xnu_helper.S: Likewise.
34348 * loader/i386/xnu.c: Likewise.
34349 * loader/i386/bsd_pagetable.c: Likewise.
34350 * loader/i386/multiboot_helper.S: Likewise.
34351 * loader/xnu.c: Likewise.
34352 * loader/xnu_resume.c: Likewise.
34353 * io/gzio.c: Likewise.
34354 * term/efi/console.c: Likewise.
34355 * term/terminfo.c: Likewise.
34356 * term/ieee1275/ofconsole.c: Likewise.
34357 * term/i386/pc/serial.c: Likewise.
34358 * term/i386/pc/vesafb.c: Likewise.
34359 * term/i386/pc/vga.c: Likewise.
34360 * term/usb_keyboard.c: Likewise.
34361 * term/gfxterm.c: Likewise.
34362 * aclocal.m4: Likewise.
34363 * util/lvm.c: Likewise.
34364 * util/grub.d/30_os-prober.in: Likewise.
34365 * util/grub.d/10_hurd.in: Likewise.
34366 * util/console.c: Likewise.
34367 * util/grub-macho2img.c: Likewise.
34368 * util/grub-probe.c: Likewise.
34369 * util/hostfs.c: Likewise.
34370 * util/i386/pc/grub-mkimage.c: Likewise.
34371 * util/i386/pc/grub-setup.c: Likewise.
34372 * util/i386/efi/grub-mkimage.c: Likewise.
34373 * util/grub-mkconfig.in: Likewise.
34374 * util/raid.c: Likewise.
34375 * util/resolve.c: Likewise.
34376 * util/grub-mkdevicemap.c: Likewise.
34377 * util/grub-emu.c: Likewise.
34378 * util/getroot.c: Likewise.
34379 * util/hostdisk.c: Likewise.
34380 * util/usb.c: Likewise.
34381 * util/grub-editenv.c: Likewise.
34382 * util/misc.c: Likewise.
34383
d2d49665 343842009-06-10 Felix Zielcke <fzielcke@z-51.de>
34385
34386 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
34387 `genparttoollist.sh'.
34388 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
34389 Add `*.sh' to the list find searches for and change `mdate.sh'
34390 to `mdate-sh'.
34391
fe052e37 343922009-06-10 Pavel Roskin <proski@gnu.org>
34393
2763ac18 34394 * include/grub/multiboot2.h: Provide compatibility defines for
34395 multiboot2.h.
34396 * include/multiboot2.h: Include stdint.h only if needed, using
34397 angle brackets.
34398 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
34399 grub/multiboot2.h.
34400 * loader/ieee1275/multiboot2.c: Likewise.
34401 * loader/multiboot2.c: Likewise.
34402 * loader/multiboot_loader.c: Likewise.
34403
437e6adc 34404 * configure.ac: Use -nostdlib when probing for the target. It
34405 should not be required to have libc for the target.
34406
06a6836c 34407 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
34408 they fail without libc headers for the target.
34409 * include/grub/powerpc/libgcc.h: Use weak attribute for all
34410 exports.
34411 * include/grub/sparc64/libgcc.h: Likewise. Don't use
34412 preprocessor conditionals.
34413
fe052e37 34414 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
34415 build system doesn't need to be aware of the tar.c internals.
34416
afd22553 344172009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 34418
afd22553 34419 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 34420
6b787c4f 344212009-06-09 Robert Millan <rmh.grub@aybabtu.com>
34422
34423 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
34424 disk limit to 26 for IDE, Virtio, Xen and SCSI.
34425
344262009-06-09 Felix Zielcke <fzielcke@z-51.de>
34427
34428 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 34429 aren't available if ata.mod gets used.
6b787c4f 34430
473d1e45 344312009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 34432
473d1e45 34433 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 34434 initialising controller.
473d1e45 34435 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 34436
255a27d4 344372009-06-08 Felix Zielcke <fzielcke@z-51.de>
34438
34439 * util/i386/pc/grub-install.in: Add a parameter --disk-module
34440 to choose between ata and biosdisk module on i386-pc.
34441
473d1e45 344422009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 34443
d55842d8 34444 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
34445 Subclass and Programming Interface fields in terms of the 3 byte
34446 Class Code register.
34447 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34448
fa5db0b1 34449 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
34450 interface is OHCI. Add grub_dprintf for symmetry with
34451 bus/usb/uhci.c.
34452 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
34453 interface is UHCI. Add interf variable for programming
34454 interface. Print interface with class/subclass.
34455
c0947beb 34456 * bus/usb/ohci.c: Set interf with correct field.
34457
69da8877 34458 * bus/usb/uhci.c: Remove unneeded doubled lines.
34459 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
34460 Remove whitespace inside comment.
34461
9e172e30 344622009-06-08 Robert Millan <rmh.grub@aybabtu.com>
34463
34464 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
34465 as fallback an equivalent option without depth.
34466
de65ee2b 344672009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34468
34469 Not fail if unable to retrieve C/H/S on LBA disks
34470
473d1e45 34471 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 34472 if unable to retrieve C/H/S on LBA disks
34473
b57ea2c9 344742009-06-08 Pavel Roskin <proski@gnu.org>
34475
34476 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
34477 about aliasing.
34478
af361263 344792009-06-08 Felix Zielcke <fzielcke@z-51.de>
34480
34481 * Makefile.in (uninstall): Remove all $lib_DATA files.
34482
4c9ec6b3 344832009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34484
34485 Bugfix: install on partitionless device
34486
34487 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
34488 is a whole disk
34489
e76fc924 344902009-06-08 Felix Zielcke <fzielcke@z-51.de>
34491
34492 * Makefile.in (uninstall): Remove all $include_DATA files.
34493
ba5a0d05 344942009-06-08 Felix Zielcke <fzielcke@z-51.de>
34495
34496 * commands/true.c: New file. Implement the true and false commands.
34497 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
34498 (true_mod_SOURCES): New variable.
34499 (true_mod_CFLAGS): Likewise.
34500 (true_mod_LDFLAGS): Likewise.
34501
c8048e32 345022009-06-05 Colin D Bennett <colin@gibibit.com>
34503
34504 Optimized font character lookup using binary search instead of linear
34505 search. Fonts now are required to have the character index ordered by
34506 code point.
34507
34508 * font/font.c (load_font_index): Verify that fonts have ordered
34509 character indices.
34510 (find_glyph): Use binary search instead of linear search to find a
34511 character in a font.
34512
408305be 345132009-06-05 Michael Scherer <misc@mandriva.org>
34514
34515 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
34516 uses case sensitive btree.
34517 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
34518 only for case insensitive filesystems.
34519
8ee1e0d9 345202009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
34521
34522 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
34523 * conf/common.rmk (search_mod_CFLAGS): likewise
34524
a9966eb1 345252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34526
473d1e45 34527 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 34528 compensate a compiler bug
34529
9e7100fb 345302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34531
473d1e45 34532 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 34533 instead of '\b'
473d1e45 34534
ede21d71 345352009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34536
34537 Definitions for creating asm symbols with Apple's CC
34538
34539 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
34540 [APPLE_CC] (VARIABLE): likewise
34541
9dbf7653 345422009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34543
34544 Disable lnxboot.img when compiled
34545 with Apple's CC
34546
34547 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
34548 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
34549 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
34550 [! APPLE_CC] (CODE_LENG): skip
34551 [! APPLE_CC] (setup_sects): likewise
34552 [! APPLE_CC]: skip filling
473d1e45 34553
e93cdc3d 345542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34555
34556 Address in trampolines based on 32-bit registers when compiled
34557 with Apple's CC
34558
473d1e45 34559 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 34560 for addresses
34561 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
34562
6c688477 345632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34564
34565 Avoid aliases when compiling with Apple's CC for PCBIOS machine
34566
34567 * kern/misc.c [APPLE_CC] (memcpy): new function
34568 [APPLE_CC] (memmove): likewise
34569 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 34570 (memcpy): define alias conditionally on !APPLE_CC
6c688477 34571 (memset): likewise
34572 (abort): likewise
34573 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
34574 APPLE_CC are defined
34575 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
34576 (grub_assert_fail): make prototype conditional
34577
e37ffc5c 345782009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34579
34580 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
34581
473d1e45 34582 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
34583 grub-macho2img
e37ffc5c 34584 (CLEANFILES): add grub-macho2img
34585 (grub_macho2img_SOURCES): new variable
34586 * kern/i386/pc/startup.S (bss_start): new variable
34587 (bss_end): likewise
34588 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
34589 * util/grub-macho2img.c: new file
34590
cf00df31 345912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34592
34593 Use objconv when compiling with Apple's CC
34594
34595 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
34596 (efiemu64.o): likewise
34597 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
34598 when compiling with Apple's CC
34599 (efiemu64_s.o): likewise
34600 * configure.ac: check for objconv when compiling with Apple's CC
34601 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 34602
d119a20c 346032009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34604
34605 Define segment as well as section when compiling with
34606 Apple's CC
34607
34608 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
34609 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
34610 (efiemu_convert_pointer): likewise
34611 (efiemu_set_virtual_address_map): likewise
34612 (efiemu_convert_pointer): likewise
34613 (efiemu_getcrc32): likewise
34614 (init_crc32_table): likewise
34615 (reflect): likewise
34616 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
34617 (GRUB_MOD_DEP): likewise
473d1e45 34618
c8600122 346192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34620
34621 Allow a compilation without -mcmodel=large
34622
34623 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
34624 when compiled without -mcmodel=large
473d1e45 34625 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 34626 without -mcmodel=large
473d1e45 34627 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 34628 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 34629
e8df1d4e 346302009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34631
34632 Remove nested functions in efiemu core
34633
34634 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 34635
cc6c3ac1 346362009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34637
34638 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
34639
34640 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
34641 temporary storage
473d1e45 34642 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
34643 using Apple's CC
cc6c3ac1 34644 (grub_cpu_is_tsc_supported): likewise
34645 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 34646
3e325901 346472009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34648
34649 Absolute addressing through constant with Apple's cc
34650
34651 * kern/i386/pc/startup.S: Define necessary constants
34652 and address through it when using ABS with Apple's CC
34653 * boot/i386/pc/diskboot.S: likewise
34654 * boot/i386/pc/boot.S: likewise
34655 * boot/i386/pc/lnxboot.S: likewise
34656 * boot/i386/pc/cdboot.S: likewise
34657 * mmap/i386/pc/mmap_helper.S: likewise
34658 * commands/i386/pc/drivemap_int13h.S: likewise
34659
2b167a72 346602009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34661
34662 Check if compiler is apple cc
34663
34664 * Makefile.in (ASFLAGS): new variable
34665 (TARGET_ASFLAGS): likewise
34666 (TARGET_MODULE_FORMAT): likewise
34667 (TARGET_APPLE_CC): likewise
34668 (OBJCONV): likewise
34669 (TARGET_IMG_CFLAGS): likewise
34670 (TARGET_CPPFLAGS): add includedir
34671 * configure.ac: call grub_apple_cc and grub_apple_target_cc
34672 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
34673 Check for linker script only if compiler isn't Apple's CC
34674 (TARGET_MODULE_FORMAT): set
34675 (TARGET_APPLE_CC): likewise
34676 (TARGET_ASFLAGS): likewise
34677 (ASFLAGS): likewise
34678 Check for objcopy only if compiler isn't Apple's CC
34679 Check for BSS symbol only if compiler isn't Apple's CC
34680 * genmk.rb: adapt nm options if we use Apple's utils
34681 * aclocal.m4 (grub_apple_cc): new test
34682 (grub_apple_target_cc): likewise
473d1e45 34683
fb14123e 346842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34685
34686 Simplify sed expressions and improve awk
34687
34688 * Makefile.in (install-local): simplify sed expression
34689 * gencmdlist.sh: likewise
34690 * genmoddep.awk: avoid adding module as a dependency of itself
34691
5b889789 346922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34693
34694 Add missing start symbols
34695
34696 * boot/i386/pc/boot.S: add start
fb14123e 34697 * boot/i386/pc/pxeboot.S: likewise
473d1e45 34698
fd2bf2e3 346992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34700
34701 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 34702
34703 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 34704 (relocate_addresses): consider both r_addend and value at offset
34705 (make_mods_section): zerofill modinfo and header
34706 (convert_elf): write prefix here
473d1e45 34707
5389763d 347082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34709
34710 Use .asciz instead of .string
34711
34712 * i386/pc/diskboot.S: use .asciz instead of .string
34713 * i386/pc/boot.S: likewise
34714 * include/grub/dl.h (GRUB_MOD_DEP): likewise
34715 (GRUB_MOD_NAME): likewise
473d1e45 34716
3eb5ed4e 347172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34718
34719 gfxpayload support
34720
34721 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
34722 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
34723 (grub_video_setup): remove
34724 (grub_video_set_mode): new prototype
34725 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
34726 (vid_mode): remove
34727 (linux_vesafb_res): compile only on PCBIOS
34728 (grub_linux_boot): support gfxpayload
34729 * loader/i386/pc/xnu.c (video_hook): new function
34730 (grub_xnu_set_video): support gfxpayload
34731 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
34732 (DEFAULT_VIDEO_HEIGHT): likewise
34733 (DEFAULT_VIDEO_FLAGS): likewise
34734 (DEFAULT_VIDEO_MODE): new definition
34735 (video_hook): new function
34736 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 34737 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 34738 loading xnu
34739 * video/video.c (grub_video_setup): removed
473d1e45 34740 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 34741 grub_video_setup
34742
4b0e1143 347432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34744
34745 Avoid calling biosdisk in drivemap
34746
34747 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
34748 (revparse_biosdisk): likewise
34749 (list_mappings): derive name from id directly
34750 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 34751
fda6cb98 347522009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34753
34754 Script fixes
34755
34756 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
34757 (grub_lexer_param): add tokenonhold
34758 (grub_script_create_cmdline): remove cmdline. All callers updated
34759 (grub_script_function_create): make functionname
34760 grub_script_arg. All callers updated
34761 (grub_script_execute_argument_to_string): new prototype
34762 * kern/parser.c (state_transitions): reorder
34763 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 34764 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 34765 make global
34766 (grub_script_execute_cmdline): use new format
34767 * script/sh/function.c (grub_script_function_create): make functionname
34768 grub_script_arg. All callers updated
473d1e45 34769 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 34770 (grub_script_yylex): remove
34771 (grub_script_yylex2): renamed to ...
34772 (grub_script_yylex): ...renamed
34773 parse the expressions like a${b}c
34774 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
34775 (GRUB_PARSER_TOKEN_VAR): remove
34776 (GRUB_PARSER_TOKEN_NAME): likewise
34777 ("if"): declare as typeless
34778 ("while"): likewise
34779 ("function"): likewise
34780 ("else"): likewise
34781 ("then"): likewise
34782 ("fi"): likewise
34783 (text): remove
34784 (argument): likewise
34785 (script): accept empty scripts and make exit on error
34786 (arguments): use GRUB_PARSER_TOKEN_ARG
34787 (function): likewise
34788 (command): move error handling to script
34789 (menuentry): move grub_script_lexer_ref before
473d1e45 34790 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 34791 argument. All callers updated
34792
f4448a07 347932009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34794
34795 Prevent GRUB from probing floppies during boot.
34796
34797 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
34798 * commands/search.c (options): Add --no-floppy.
34799 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
34800 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
34801 --no-floppy when searching for UUIDs.
34802
2bf5885a 348032009-06-04 Robert Millan <rmh.grub@aybabtu.com>
34804
34805 Simplify the code duplication in commands/search.c.
34806
34807 * commands/search.c (search_label, search_fs_uuid): Merge into ...
34808 (search_fs): ... this. Update all users.
34809
f6fd460a 348102009-06-03 Felix Zielcke <fzielcke@z-51.de>
34811
34812 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
34813
cbb3c83e 348142009-05-28 Pavel Roskin <proski@gnu.org>
34815
57788cfd 34816 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
34817 Remove the original symlink explicitly.
34818
cbb3c83e 34819 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
34820 just one slash. That's how grub_fshelp_find_file() does it.
34821
cd0d5e30 348222009-05-26 Pavel Roskin <proski@gnu.org>
34823
f0f8bbe2 34824 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
34825 to `str'.
34826
cd0d5e30 34827 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
34828 possibly unused.
34829
8c2cab51 348302009-05-25 Christian Franke <franke@computer.org>
34831
34832 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
34833 register.
34834 (grub_atapi_identify): Add wait after drive select.
34835 (grub_ata_identify): Do more strict status register check before
34836 calling grub_atapi_identify (). Suppress error message if status
34837 register is 0x00 after command failure. Add status register
34838 check after PIO read to avoid bogus identify due to stuck DRQ.
34839 Thanks to Pavel Roskin for testing.
34840 (grub_device_initialize): Remove unsafe status register check.
34841 Thanks to 'phcoder' for problem report and patch.
34842 Prevent sign extension in debug message.
34843
230c0ad6 348442009-05-23 Colin D Bennett <colin@gibibit.com>
34845
34846 Cleaned up `include/grub/normal.h'. Grouped prototypes by
34847 definition file, and functions defined in `normal/menu.c' have had
34848 their prototypes moved to `include/grub/menu.h' for consistency.
34849
34850 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
34851 from normal.h.
34852 (grub_menu_get_entry): Likewise.
34853 (grub_menu_get_timeout): Likewise.
34854 (grub_menu_set_timeout): Likewise.
34855 (grub_menu_execute_entry): Likewise.
34856 (grub_menu_execute_with_fallback): Likewise.
34857 (grub_menu_entry_run): Likewise.
34858
34859 * include/grub/normal.h: Re-ordered and grouped function
34860 prototypes by file that the function is defined in.
34861 (grub_menu_execute_callback): Removed; moved to menu.h.
34862 (grub_menu_get_entry): Likewise.
34863 (grub_menu_get_timeout): Likewise.
34864 (grub_menu_set_timeout): Likewise.
34865 (grub_menu_execute_entry): Likewise.
34866 (grub_menu_execute_with_fallback): Likewise.
34867 (grub_menu_entry_run): Likewise.
34868 (grub_menu_addentry): Renamed from this ...
34869 (grub_normal_add_menu_entry): ... to this.
34870
34871 * normal/main.c (grub_menu_addentry): Renamed from this ...
34872 (grub_normal_add_menu_entry): ... to this.
34873
34874 * script/sh/execute.c (grub_script_execute_menuentry): Update
34875 reference to renamed grub_menu_addentry function.
34876
861f03a5 348772009-05-23 Felix Zielcke <fzielcke@z-51.de>
34878
34879 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
34880
96b1619a 348812009-05-22 Pavel Roskin <proski@gnu.org>
34882
bf6a5fb2 34883 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
34884 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
34885 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
34886 compiling for the i386 targets, but not for the utilities.
34887
96b1619a 34888 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
34889 to grub_uint8_t.
34890 (grub_root_drive): Likewise.
34891 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
34892 remove alignment.
34893 (grub_root_drive): Change size to byte.
34894 (grub_start_addr): Remove.
34895 (grub_end_addr): Likewise.
34896 (grub_apm_bios_info): Likewise.
34897
b729776b 348982009-05-21 Felix Zielcke <fzielcke@z-51.de>
34899
34900 * normal/i386: Remove.
34901 * normal/powerpc: Likewise.
34902 * normal/sparc64: Likewise.
34903 * normal/x86_64: Likewise.
34904
0a15ce80 349052009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
34906
34907 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 34908 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 34909 * loader/i386/xnu_helper.S: Likewise
d6da58e6 34910
33db9015 349112009-05-18 Colin D Bennett <colin@gibibit.com>
34912
d6da58e6 34913 Display error messages when parsing a Lua statement fails.
34914 Previously, executing a syntactically invalid statement like
34915 ")foo" or "bar;" would silently fail.
33db9015 34916
34917 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 34918 (grub_lua_parse_line): Improved reporting of Lua parser and
34919 execution errors.
33db9015 34920
46422c89 349212009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
34922
34923 Remove -Werror which causes build to fail on some systems
34924
34925 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
34926 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
34927 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 34928
22f53a96 349292009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
34930
34931 trampoline for linux on 64-bit platform
34932
18f547ad 34933 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
34934 loader/i386/efi/linux_trampoline.S
34935 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 34936 declaration
d6da58e6 34937 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
34938 here
22f53a96 34939 * loader/i386/linux_trampoline.S: moved here
d6da58e6 34940 * loader/i386/efi/linux.c (allocate_pages): reserve space for
34941 trampoline
22f53a96 34942 (jumpvector): removed
34943 (grub_linux_trampoline_start): new declaration
34944 (grub_linux_trampoline_end): likewise
34945 (grub_linux_boot): use trampoline when on 64-bit platform
34946 * loader/i386/linux.c: likewise
34947
cb5a0f40 349482009-05-16 Pavel Roskin <proski@gnu.org>
34949
34950 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
34951 const to avoid a warning.
34952 (grub_lua_setenv): Likewise.
34953 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
34954 lmsg to fix a warning.
34955
334f2c28 349562009-05-16 Felix Zielcke <fzielcke@z-51.de>
34957
34958 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 34959 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34960 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
34961 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34962 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
34963 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
34964 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
34965 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 34966
59e5d3ec 349672009-05-16 Felix Zielcke <fzielcke@z-51.de>
34968
34969 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
34970
9d87a1ba 349712009-05-16 Bean <bean123ch@gmail.com>
34972
34973 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
34974 (lua_mod_SOURCES): New variable.
34975 (lua_mod_CFLAGS): Likewise.
34976 (lua_mod_LDFLAGS): Likewise.
34977
34978 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
34979 (setjmp_mod_SOURCES): New variable.
34980 (setjmp_mod_CFLAGS): Likewise.
34981 (setjmp_LDFLAGS): Likewise.
34982
34983 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
34984 (setjmp_mod_SOURCES): New variable.
34985 (setjmp_mod_CFLAGS): Likewise.
34986 (setjmp_LDFLAGS): Likewise.
34987
34988 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
34989 (setjmp_mod_SOURCES): New variable.
34990 (setjmp_mod_CFLAGS): Likewise.
34991 (setjmp_LDFLAGS): Likewise.
34992
34993 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
34994 (setjmp_mod_SOURCES): New variable.
34995 (setjmp_mod_CFLAGS): Likewise.
34996 (setjmp_LDFLAGS): Likewise.
34997
34998 * normal/i386/setjmp.S: Moved from here ...
34999 * lib/i386/setjmp.S: ... Moved here
35000 * normal/x86_64/setjmp.S: Moved from here ...
35001 * lib/x86_64/setjmp.S: ... Moved here
35002 * normal/powerpc/setjmp.S: Moved from here ...
35003 * lib/powerpc/setjmp.S: ... Moved here
35004 * normal/sparc64/setjmp.S: Moved from here ...
35005 * lib/sparc64/setjmp.S: ... Moved here
35006
35007 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
35008 returns_twice in mingw.
35009
35010 * script/lua/grub_lib.c: New file.
35011 * script/lua/grub_lib.h: Likewise.
35012 * script/lua/grub_lua.h: Likewise.
35013 * script/lua/grub_main.c: Likewise.
35014 * script/lua/lapi.c: Likewise.
35015 * script/lua/lapi.h: Likewise.
35016 * script/lua/lauxlib.c: Likewise.
35017 * script/lua/lauxlib.h: Likewise.
35018 * script/lua/lbaselib.c: Likewise.
35019 * script/lua/lcode.c: Likewise.
35020 * script/lua/lcode.h: Likewise.
35021 * script/lua/ldblib.c: Likewise.
35022 * script/lua/ldebug.c: Likewise.
35023 * script/lua/ldebug.h: Likewise.
35024 * script/lua/ldo.c: Likewise.
35025 * script/lua/ldo.h: Likewise.
35026 * script/lua/ldump.c: Likewise.
35027 * script/lua/lfunc.c: Likewise.
35028 * script/lua/lfunc.h: Likewise.
35029 * script/lua/lgc.c: Likewise.
35030 * script/lua/lgc.h: Likewise.
35031 * script/lua/linit.c: Likewise.
35032 * script/lua/liolib.c: Likewise.
35033 * script/lua/llex.c: Likewise.
35034 * script/lua/llex.h: Likewise.
35035 * script/lua/llimits.h: Likewise.
35036 * script/lua/lmathlib.c: Likewise.
35037 * script/lua/lmem.c: Likewise.
35038 * script/lua/lmem.h: Likewise.
35039 * script/lua/loadlib.c: Likewise.
35040 * script/lua/lobject.c: Likewise.
35041 * script/lua/lobject.h: Likewise.
35042 * script/lua/lopcodes.c: Likewise.
35043 * script/lua/lopcodes.h: Likewise.
35044 * script/lua/loslib.c: Likewise.
35045 * script/lua/lparser.c: Likewise.
35046 * script/lua/lparser.h: Likewise.
35047 * script/lua/lstate.c: Likewise.
35048 * script/lua/lstate.h: Likewise.
35049 * script/lua/lstring.c: Likewise.
35050 * script/lua/lstring.h: Likewise.
35051 * script/lua/lstrlib.c: Likewise.
35052 * script/lua/ltable.c: Likewise.
35053 * script/lua/ltable.h: Likewise.
35054 * script/lua/ltablib.c: Likewise.
35055 * script/lua/ltm.c: Likewise.
35056 * script/lua/ltm.h: Likewise.
35057 * script/lua/lua.h: Likewise.
35058 * script/lua/luaconf.h: Likewise.
35059 * script/lua/lualib.h: Likewise.
35060 * script/lua/lundump.c: Likewise.
35061 * script/lua/lundump.h: Likewise.
35062 * script/lua/lvm.c: Likewise.
35063 * script/lua/lvm.h: Likewise.
35064 * script/lua/lzio.c: Likewise.
35065 * script/lua/lzio.h: Likewise.
35066
5e898c9d 350672009-05-16 Bean <bean123ch@gmail.com>
35068
35069 * include/grub/kernel.h (grub_module_header_types): Add type
35070 OBJ_TYPE_CONFIG.
35071
35072 * kern/main.c (grub_load_config): New function.
35073 (grub_main): Call grub_load_config to read boot config.
35074
35075 * grub-mkimage (generate_image): New parameter config_path.
35076 (options): New option --config.
35077 (main): Parse --config option, and pass it to generate_image.
35078
cf353a47 350792009-05-14 Christian Franke <franke@computer.org>
35080
35081 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
35082 This fixes build on Cygwin.
35083
3834887f 350842009-05-14 Pavel Roskin <proski@gnu.org>
35085
35086 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
35087 jump. This saves two bytes, so the typical case of 2 swapped
35088 drives would fit 32 bytes.
35089
8090fc01 350902009-05-13 Pavel Roskin <proski@gnu.org>
35091
ac963883 35092 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
35093 grub_uint32_t to avoid a warning.
35094
8090fc01 35095 * loader/i386/linux.c (allocate_pages): When assigning
35096 real_mode_mem, cast through grub_size_t to fix a warning. The
35097 code already makes sure that the value would fit a pointer.
35098 (grub_linux_setup_video): Cast render_target->data to
35099 grub_size_t to fix a warning.
35100
18f547ad 351012009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 35102
35103 * commands/i386/pc/drivemap.c: New file - implement drivemap
35104 command.
35105 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
35106 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
35107
6f6a8b28 351082009-05-13 Pavel Roskin <proski@gnu.org>
35109
35110 * util/i386/pc/grub-setup.c (setup): Remove unused variable
35111 embedding_area_exists.
35112
15fbf4c4 351132009-05-13 Robert Millan <rmh.grub@aybabtu.com>
35114
35115 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
35116 it easier to understand / work with.
59978c8a 35117 Improve warning messages for cases where there's no embedding area,
35118 or when it is too small (or core.img too large).
15fbf4c4 35119
238e871f 351202009-05-13 Pavel Roskin <proski@gnu.org>
35121
0ab3a9a4 35122 * loader/i386/pc/multiboot2.c: Add necessary includes for
35123 grub_multiboot2_real_boot().
35124
a2c8c5f8 35125 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
35126 PX record is always little-endian. We only need the lower 2
35127 bytes of the mode.
35128
faec96af 35129 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
35130 facilitate code reuse.
35131 (grub_cpio_mount): Use "struct head", not a char buffer. This
35132 fixes a warning reported by gcc 4.4.
35133
238e871f 35134 * kernel/disk.c (grub_disk_read): Use void pointer for the
35135 buffer.
35136 (grub_disk_write): Use const void pointer for the buffer.
35137 Adjust all callers. Remove unnecessary casts.
35138
901d2f0c 351392009-05-10 Robert Millan <rmh.grub@aybabtu.com>
35140
35141 * util/i386/pc/grub-install.in: Update copyright year.
35142
18f547ad 351432009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 35144
35145 gptsync
35146
35147 * commands/gptsync.c: new file
35148 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
35149 (gptsync_mod_SOURCES): new variable
35150 (gptsync_mod_CFLAGS): likewise
35151 (gptsync_mod_LDFLAGS): likewise
18f547ad 35152 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 35153 new definition
35154 (GRUB_PC_PARTITION_TYPE_HFS): likewise
35155 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
35156 * conf/i386-ieee1275.rmk: likewise
35157 * conf/i386-pc.rmk: likewise
35158 * conf/powerpc-ieee1275.rmk: likewise
35159
b4ba690a 351602009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
35161
35162 Fixed grub-emu
35163
35164 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
35165 (grub_dl_ref): likewise
35166
317e1a44 351672009-05-08 Robert Millan <rmh.grub@aybabtu.com>
35168
35169 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
35170 split in two functions (one for msdos and one for gpt).
35171
041b8094 351722009-05-08 Pavel Roskin <proski@gnu.org>
35173
752473c2 35174 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
35175 not modified.
35176
041b8094 35177 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
35178 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
35179 Initialize them with -1. Add sanity check for bad1. Eliminate
35180 nerr variable.
35181
172800ce 351822009-05-08 David S. Miller <davem@davemloft.net>
35183
35184 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
35185
29aa5e81 351862009-05-06 Robert Millan <rmh.grub@aybabtu.com>
35187
35188 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 35189 existence.
29aa5e81 35190
96613b62 351912009-05-05 Felix Zielcke <fzielcke@z-51.de>
35192
35193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 35194 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 35195
eef73c8a 351962009-05-05 David S. Miller <davem@davemloft.net>
35197
35198 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
35199
119494b5 352002009-05-05 Pavel Roskin <proski@gnu.org>
35201
35202 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
35203 of grub_dl_ref() and grub_dl_unref().
35204 * commands/parttool.c: Remove preprocessor conditionals around
35205 grub_dl_ref() and grub_dl_unref().
35206 * fs/affs.c: Likewise.
35207 * fs/afs.c: Likewise.
35208 * fs/cpio.c: Likewise.
35209 * fs/ext2.c: Likewise.
35210 * fs/fat.c: Likewise.
35211 * fs/hfs.c: Likewise.
35212 * fs/hfsplus.c: Likewise.
35213 * fs/iso9660.c: Likewise.
35214 * fs/jfs.c: Likewise.
35215 * fs/minix.c: Likewise.
35216 * fs/ntfs.c: Likewise.
35217 * fs/reiserfs.c: Likewise.
35218 * fs/sfs.c: Likewise.
35219 * fs/udf.c: Likewise.
35220 * fs/ufs.c: Likewise.
35221 * fs/xfs.c: Likewise.
35222 * include/grub/dl.h: Likewise.
35223 * loader/xnu.c: Likewise.
35224
de5fd76e 352252009-05-04 Pavel Roskin <proski@gnu.org>
35226
35227 * commands/acpi.c: Remove unused variable my_mod.
35228 * partmap/amiga.c: Likewise.
35229 * partmap/apple.c: Likewise.
35230 * partmap/gpt.c: Likewise.
35231 * partmap/pc.c: Likewise.
35232 * partmap/sun.c: Likewise.
35233 * term/gfxterm.c: Likewise.
35234 * term/i386/pc/vesafb.c: Likewise.
35235 * term/i386/pc/vga.c: Likewise.
35236
983598ad 352372009-05-04 David S. Miller <davem@davemloft.net>
35238
35239 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
35240 pointer args to grub_ieee1275_get_property().
35241
8aadec43 35242 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
35243
9554b15e 35244 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
35245 devices, and do not traverse down under controller nodes.
35246
67e23c90 35247 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
35248 (grub_ofdisk_open): Use it to un-escape "," characters.
35249 * kern/disk.c (find_part_sep): New.
35250 (grub_disk_open): Use it to find the first non-escaped ','
35251 character in the disk name.
35252 * util/ieee1275/devicemap.c (escape_of_path): New.
35253 (grub_util_emit_devicemap_entry): Use it.
35254 * util/sparc64/ieee1275/grub-install.in: Update script to
35255 strip partition specifiers properly by not triggering on
35256 '\' escaped ',' characters.
35257
74bfdd2f 352582009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35259
35260 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
35261 to 0x300.
35262 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
35263 resolutions.
35264 (linux_vesafb_modes): Add a lot of additional modes to the list (based
35265 on documentation from Wikipedia).
35266
4241d2b1 352672009-05-04 Pavel Roskin <proski@gnu.org>
35268
35269 * disk/ata.c: Spelling fixes.
35270 * disk/raid.c: Likewise.
35271 * disk/usbms.c: Likewise.
35272 * disk/dmraid_nvidia.c: Likewise.
35273 * kern/ieee1275/openfw.c: Likewise.
35274 * kern/ieee1275/init.c: Likewise.
35275 * kern/ieee1275/cmain.c: Likewise.
35276 * boot/i386/pc/cdboot.S: Likewise.
35277 * video/readers/png.c: Likewise.
35278 * video/i386/pc/vbe.c: Likewise.
35279 * fs/udf.c: Likewise.
35280 * fs/hfs.c: Likewise.
35281 * fs/reiserfs.c: Likewise.
35282 * efiemu/runtime/efiemu.c: Likewise.
35283 * efiemu/main.c: Likewise.
35284 * efiemu/mm.c: Likewise.
35285 * include/grub/elf.h: Likewise.
35286 * include/grub/xnu.h: Likewise.
35287 * include/grub/usbdesc.h: Likewise.
35288 * include/grub/usb.h: Likewise.
35289 * include/grub/script_sh.h: Likewise.
35290 * include/grub/lib/LzmaEnc.h: Likewise.
35291 * include/grub/efiemu/efiemu.h: Likewise.
35292 * include/grub/command.h: Likewise.
35293 * normal/menu.c: Likewise.
35294 * normal/main.c: Likewise.
35295 * normal/datetime.c: Likewise.
35296 * bus/usb/uhci.c: Likewise.
35297 * mmap/i386/uppermem.c: Likewise.
35298 * mmap/mmap.c: Likewise.
35299 * commands/acpi.c: Likewise.
35300 * commands/test.c: Likewise.
35301 * partmap/apple.c: Likewise.
35302 * font/font.c: Likewise.
35303 * loader/sparc64/ieee1275/linux.c: Likewise.
35304 * loader/macho.c: Likewise.
35305 * loader/i386/bsd_trampoline.S: Likewise.
35306 * loader/i386/bsd.c: Likewise.
35307 * loader/xnu.c: Likewise.
35308 * term/i386/pc/vesafb.c: Likewise.
35309 * term/usb_keyboard.c: Likewise.
35310 * util/resolve.c: Likewise.
35311 * util/getroot.c: Likewise.
35312
0cfc0083 353132009-05-04 Felix Zielcke <fzielcke@z-51.de>
35314
35315 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
35316
7c1d00cd 353172009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35318
35319 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
35320 build error.
35321
b01f0548 353222009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35323
35324 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
35325 parameter only available on BIOS.
35326
ecc3eb22 353272009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35328
35329 Removed wrong semicolon in declaration
35330
35331 * grub/misc.h (grub_dprintf): remove semicolon
35332
112972a9 353332009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35334
35335 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
35336 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
35337 is done by grub_cmd_linux() now).
35338 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
35339 restore video to text mode.
35340 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
35341 indicates lack of "vga=" parameter. "vga=0" is mapped to
35342 `GRUB_LINUX_VID_MODE_NORMAL'.
35343
afd5c115 353442009-05-04 Felix Zielcke <fzielcke@z-51.de>
35345
35346 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
35347 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
35348 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 35349 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 35350 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
35351 `grub_script.tab.c'.
35352
35353 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35354 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35356 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35357 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35358
faa517ce 35359 * Makefile.in: Remove duplicated 2008 in Copyright line.
35360
ae0c0bdc 353612009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35362
473d1e45 35363 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 35364 unconditionally.
35365 * include/grub/util/misc.h (grub_util_warn): New declaration.
35366
35367 * util/i386/pc/grub-install.in: Understand --force and pass it down
35368 to grub-setup.
35369
35370 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
35371 down to setup().
35372 (setup): Improve error messages and add warnings when requested to
35373 install in odd layouts. Refuse to install using blocklists unless
35374 --force was set.
35375
18f547ad 353762009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 35377
35378 * disk/raid.c (grub_raid_scan_device): Improve debug message.
35379
6d260daa 353802009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35381
35382 Updated copyright year
35383
35384 * fs/hfsplus.c: updated copyright year
18f547ad 35385
69f853f8 353862009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35387
35388 HFS+ UUID
35389
18f547ad 35390 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 35391 in the space previously used by unused3
35392 (grub_hfsplus_uuid): new function
35393 (grub_hfsplus_fs): added uuid field
35394
4c402e73 353952009-05-03 Pavel Roskin <proski@gnu.org>
35396
35397 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
35398 suppress warnings. It's no longer needed.
35399 * disk/host.c: Likewise.
35400 * disk/ata_pthru.c: Likewise.
35401 * disk/loopback.c: Likewise.
35402 * hook/datehook.c: Likewise.
35403 * parttool/pcpart.c: Likewise.
35404 * fs/i386/pc/pxe.c: Likewise.
35405 * fs/ntfscomp.c: Likewise.
35406 * efiemu/main.c: Likewise.
35407 * mmap/mmap.c: Likewise.
35408 * commands/crc.c: Likewise.
35409 * commands/hexdump.c: Likewise.
35410 * commands/hdparm.c: Likewise.
35411 * commands/acpi.c: Likewise.
35412 * commands/echo.c: Likewise.
35413 * commands/minicmd.c: Likewise.
35414 * commands/blocklist.c: Likewise.
35415 * commands/memrw.c: Likewise.
35416 * commands/loadenv.c: Likewise.
35417 * commands/usbtest.c: Likewise.
35418 * commands/lsmmap.c: Likewise.
35419 * commands/boot.c: Likewise.
35420 * commands/parttool.c: Likewise.
35421 * commands/configfile.c: Likewise.
35422 * commands/search.c: Likewise.
35423 * commands/ieee1275/suspend.c: Likewise.
35424 * commands/cat.c: Likewise.
35425 * commands/i386/pc/pxecmd.c: Likewise.
35426 * commands/i386/pc/play.c: Likewise.
35427 * commands/i386/pc/halt.c: Likewise.
35428 * commands/i386/pc/vbeinfo.c: Likewise.
35429 * commands/i386/pc/vbetest.c: Likewise.
35430 * commands/lspci.c: Likewise.
35431 * commands/date.c: Likewise.
35432 * commands/handler.c: Likewise.
35433 * commands/ls.c: Likewise.
35434 * commands/test.c: Likewise.
35435 * commands/cmp.c: Likewise.
35436 * commands/efi/loadbios.c: Likewise.
35437 * commands/efi/fixvideo.c: Likewise.
35438 * commands/halt.c: Likewise.
35439 * commands/help.c: Likewise.
35440 * commands/reboot.c: Likewise.
35441 * hello/hello.c: Likewise.
35442 * script/sh/main.c: Likewise.
35443 * loader/xnu.c: Likewise.
35444 * term/terminfo.c: Likewise.
35445 * term/i386/pc/serial.c: Likewise.
35446 * term/usb_keyboard.c: Likewise.
35447
515b5079 354482009-05-03 David S. Miller <davem@davemloft.net>
35449
35450 * normal/menu.c: Include grub/parser.h
35451
dfc31a22 354522009-05-03 Pavel Roskin <proski@gnu.org>
35453
2fee74f1 35454 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
35455 not char*.
35456 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
35457 Suggested by Javier Martín <lordhabbit@gmail.com>
35458
dfc31a22 35459 * util/i386/pc/grub-mkrescue.in: Allow for the case when
35460 efiemu??.o doesn't exist.
35461 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
35462 copying.
35463
18f547ad 354642009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 35465
35466 FreeBSD 64-bit support
35467
18f547ad 35468 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 35469 and loader/i386/bsd_trampoline.S
35470 (bsd_mod_ASFLAGS): new variable
35471 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
35472 (FREEBSD_MODTYPE_KERNEL64): likewise
35473 (grub_bsd64_trampoline_start): likewise
35474 (grub_bsd64_trampoline_end): likewise
35475 (grub_bsd64_trampoline_selfjump): likewise
35476 (grub_bsd64_trampoline_gdt): likewise
35477 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
35478 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
35479 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
35480 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 35481 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 35482 of "attrib" member
35483 * loader/i386/bsd_pagetable.c: new file
35484 * loader/i386/bsd_trampoline.S: likewise
35485 * loader/i386/bsd.c (ALIGN_QWORD): new macro
35486 (ALIGN_VAR): likewise
35487 (entry_hi): new variable
35488 (kern_end_mdofs): likewise
35489 (is_64bit): likewise
35490 (grub_freebsd_add_meta): use ALIGN_VAR
35491 (grub_e820_mmap): new declaration
35492 (grub_freebsd_add_mmap): new function
35493 (grub_freebsd_add_meta_module): support 64 bit kernels
35494 (grub_freebsd_list_modules): use ALIGN_VAR
35495 (gdt_descriptor): new declaration
35496 (grub_freebsd_boot): support 64 bit kernels
35497 (grub_bsd_elf64_hook): new function
35498 (grub_bsd_load_elf): support elf64
35499
038c5720 355002009-05-03 Bean <bean123ch@gmail.com>
35501
35502 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
35503 after we get the result of if statement.
35504
fc45fb58 355052009-05-03 Bean <bean123ch@gmail.com>
35506
35507 * Makefile.in (enable_efiemu): New variable.
35508
35509 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
35510 set.
35511 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
35512 path.
35513 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
35514 path, add -mno-red-zone option.
35515 (efiemu64_s.o): Likewise.
35516 (efiemu64.o): Use macro $^ for source file.
35517
35518 * configure.ac (--enable-efiemu): New option.
35519
bbee0f2b 355202009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
35521
35522 xnu support
35523
35524 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
35525 (pkglib_MODULES): add xnu.mod
35526 (xnu_mod_SOURCES): new variable
35527 (xnu_mod_CFLAGS): likewise
35528 (xnu_mod_LDFLAGS): likewise
35529 (xnu_mod_ASFLAGS): likewise
35530 * conf/i386-pc.rmk: likewise
35531 * conf/x86_64-efi.rmk: likewise
7dd4a573 35532 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 35533 new declaration
35534 * include/grub/i386/macho.h: new file
35535 * include/grub/i386/xnu.h: likewise
35536 * include/grub/macho.h: likewise
35537 * include/grub/machoload.h: likewise
35538 * include/grub/x86_64/macho.h: likewise
35539 * include/grub/x86_64/xnu.h: likewise
35540 * include/grub/xnu.h: likewise
35541 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
35542 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
35543 * loader/i386/efi/xnu.c: new file
35544 * loader/i386/pc/xnu.c: likewise
35545 * loader/i386/xnu.c: likewise
35546 * loader/i386/xnu_helper.S: likewise
35547 * loader/macho.c: likewise
35548 * loader/xnu.c: likewise
35549 * loader/xnu_resume.c: likewise
35550 * util/grub-dumpdevtree: likewise
35551 * include/grub/i386/pit.h: include grub/err.h
35552 (grub_pit_wait): export
35553 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 35554
5caf964d 355552009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35556
35557 Efiemu
7dd4a573 35558
5caf964d 35559 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 35560 _linux_efi, linux_efi.
35561 new files in grub-emu
5caf964d 35562 new targets efiemu32.o and efiemu64.o
35563 * loader/linux_normal_efiemu.c: likewise
35564 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 35565 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 35566 files to copy
35567 * include/grub/autoefi.h: new file
7dd4a573 35568 * include/grub/i386/efiemu.h: likewise
5caf964d 35569 * include/grub/i386/pc/efiemu.h: likewise
35570 * include/grub/efi/api.h: add LL suffix when necessary
35571 new definitions relating to tables
35572 * include/grub/efiemu/efiemu.h: new file
35573 * include/grub/efiemu/runtime.h: likewise
35574 * efiemu/prepare.c: likewise
35575 * efiemu/loadcore_common.c: likewise
35576 * efiemu/loadcore64.c: likewise
35577 * efiemu/runtime/efiemu.sh: likewise
35578 * efiemu/runtime/efiemu.S: likewise
35579 * efiemu/runtime/efiemu.c: likewise
35580 * efiemu/runtime/config.h: likewise
35581 * efiemu/prepare32.c: likewise
35582 * efiemu/main.c: likewise
35583 * efiemu/modules/pnvram.c: likewise
35584 * efiemu/modules/i386: likewise
35585 * efiemu/modules/i386/pc: likewise
35586 * efiemu/modules/acpi.c: likewise
35587 * efiemu/i386/pc/cfgtables.c: likewise
35588 * efiemu/i386/loadcore64.c: likewise
35589 * efiemu/i386/loadcore32.c: likewise
35590 * efiemu/prepare64.c: likewise
35591 * efiemu/loadcore.c: likewise
35592 * efiemu/symbols.c: likewise
35593 * efiemu/mm.c: likewise
35594 * efiemu/loadcore32.c: likewise
7dd4a573 35595
355962009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 35597
35598 ACPI spoofing
35599
35600 * commands/acpi.c: new file
35601 * commands/i386/pc/acpi.c: likewise
35602 * commands/efi/acpi.c: likewise
35603 * include/grub/acpi.h: likewise
35604 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
35605 (acpi_mod_SOURCES): new variable
35606 (acpi_mod_CFLAGS): likewise
35607 (acpi_mod_LDFLAGS): likewise
35608 * conf/i386-efi.rmk: likewise
35609 * conf/x86_64-efi.rmk: likewise
35610
7dd4a573 356112009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 35612
35613 Missing part from mmap patch
35614
35615 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
35616 (grub_mmap_unregister)
35617 (grub_mmap_free_and_unregister): use grub_mmap_register
35618
7dd4a573 356192009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 35620
35621 Mmap services
35622
35623 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
35624 * loader/i386/linux.c (find_mmap_size): likewise
35625 (allocate_pages): likewise
35626 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
35627 (grub_fill_multiboot_mmap): likewise
35628 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
35629 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
35630 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
35631 (OPENBSD_MMAP_RESERVED): likewise
35632 * include/grub/i386/pc/memory.h: include grub/memory.h
35633 (grub_lower_mem): removed
35634 (grub_upper_mem): likewise
35635 (GRUB_MACHINE_MEMORY_ACPI): new definition
35636 (GRUB_MACHINE_MEMORY_NVS): likewise
35637 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
35638 (GRUB_MACHINE_MEMORY_HOLE): likewise
35639 (grub_machine_mmap_register): likewise
35640 (grub_machine_mmap_unregister): likewise
35641 (grub_machine_get_upper): likewise
35642 (grub_machine_get_lower): likewise
35643 (grub_machine_get_post64): likewise
35644 * include/grub/i386/efi/memory.h: new file
35645 * include/grub/x86_64/efi/memory.h: likewise
35646 * include/grub/efi/memory.h: likewise
35647 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
35648 (mmap_mod_SOURCES): new variable
35649 (mmap_mod_LDFLAGS): likewise
35650 (mmap_mod_ASFLAGS): likewise
35651 * conf/i386-coreboot.rmk: likewise
35652 * conf/i386-ieee1275.rmk: likewise
35653 * conf/i386-efi.rmk: likewise
35654 * conf/x86_64-efi.rmk: likewise
35655 * include/grub/types.h (UINT_TO_PTR): new macro
35656 (PTR_TO_UINT32): likewise
35657 (PTR_TO_UINT64): likewise
35658 * include/grub/memory.h: new file
35659 * mmap/i386/pc/mmap.c: likewise
35660 * mmap/i386/pc/mmap_helper.S: likewise
35661 * mmap/i386/uppermem.c: likewise
35662 * mmap/mmap.c: likewise
35663 * mmap/efi/mmap.c: likewise
7dd4a573 35664 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 35665 grub_upper_mem
35666 * kern/i386/pc/init.c (grub_lower_mem): removed variable
35667 (grub_upper_mem): likewise
35668 (grub_machine_init): don't use grub_upper_mem,
35669 make grub_lower_mem local
35670 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
35671 grub_mmap_iterate and grub_mmap_get_upper
35672 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
35673
d558e6b5 356742009-05-02 Bean <bean123ch@gmail.com>
35675
35676 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
35677 script/sh/parser.y.
35678 (pkglib_MODULES): Add normal.mod and sh.mod.
35679 (normal_SOURCES): New variable.
35680 (normal_mod_CFLAGS): Likewise.
35681 (normal_mod_LDFLAGS): Likewise.
35682 (sh_mod_SOURCES): Likewise.
35683 (sh_mod_CFLAGS): Likewise.
35684 (sh_mod_LDFLAGS): Likewise.
35685
35686 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
35687 script/sh/lexer.c_DEPENDENCIES.
35688 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
35689 kern/rescue_reader.c and kern/rescue_parser.c.
35690 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
35691 (grub_emu_SOURCES): Change source files.
35692 (pkglib_MODULES): Remove normal.mod.
35693 (normal_SOURCES): Removed.
35694 (normal_mod_CFLAGS): Likewise.
35695 (normal_mod_LDFLAGS): Likewise.
35696 * conf/i386-coreboot.rmk: Likewise.
35697 * conf/i386-efi.rmk: Likewise.
35698 * conf/i386-ieee1276.rmk: Likewise.
35699 * conf/powerpc-ieee1275.rmk: Likewise.
35700 * conf/sparc64-ieee1275.rmk: Likewise.
35701 * conf/x86_64-efi.rmk: Likewise.
35702
35703 * include/grub/command.h (grub_command_execute): New inline function.
35704
35705 * include/grub/menu.h (grub_menu_entry): Removed commands field.
35706
35707 * include/grub/normal.h: Remove <grub/setjmp.h>.
35708 (grub_fs_module_list): Moved to normal/autofs.c.
35709 (grub_exit_env): Removed.
35710 (grub_command_execute): Likewise.
35711 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
35712 parameter script.
35713 (read_command_list): New function declaration.
35714 (read_fs_list): Likewise.
35715
35716 * include/parser.h: Include <grub/reader.h>.
35717 (grub_parser_split_cmdline): Change type of getline parameter.
35718 (grub_parser): New structure.
35719 (grub_parser_class): New variable.
35720 (grub_parser_execute): New function declaration.
35721 (grub_register_rescue_parser): Likewise.
35722 (grub_parser_register): New inline function.
35723 (grub_parser_unregister): Likewise.
35724 (grub_parser_get_current): Likewise.
35725 (grub_parser_set_current): Likewise.
35726
35727 * include/grub/reader.h: New file.
35728 * kern/reader.c: Likewise.
35729 * kern/rescue_parser.c: Likewise.
35730 * kern/rescue_reader.c: Likewise.
35731 * normal/autofs.c: Likewise.
35732 * normal/dyncmd.c: Likewise.
35733
35734 * include/grub/rescue.h: Removed.
35735 * normal/command.h: Likewise.
35736
35737 * include/grub/script.h: Moved to ...
35738 * include/grub/script_sh.h: ... Moved here.
35739 * normal/execute.c: Moved to ...
35740 * script/sh/execute.c: ... Moved here.
35741 * normal/function.c: Moved to ...
35742 * script/sh/function.c: ... Moved here.
35743 * normal/lexer.c: Moved to ...
35744 * script/sh/lexer.c: ... Moved here.
35745 * normal/parser.y: Moved to ...
35746 * script/sh/parser.y: ... Moved here.
35747 * normal/script.c: Moved to ...
35748 * script/sh/script.c: ... Moved here.
35749
35750 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
35751 <grub/reader.h>.
35752 (grub_exit_env): Removed.
35753 (fs_module_list): Moved to normal/autofs.c.
35754 (grub_file_getline): Don't handle comment here.
35755 (free_menu): Skip removed field entry->commands.
35756 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
35757 script parameter.
35758 (read_config_file): Removed nested parameter, change getline function.
35759 (grub_enter_normal_mode): Removed.
35760 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
35761 (read_command_list): Likewise.
35762 (autoload_fs_module): Moved to normal/autofs.c.
35763 (read_fs_list): Likewise.
35764 (reader_nested): New variable.
35765 (grub_normal_execute): Run parser.sh to switch to sh parser.
35766 (grub_cmd_rescue): Removed.
35767 (cmd_normal): Removed.
35768 (grub_cmd_normal): Unregister itself at the beginning. Don't register
35769 rescue command.
35770 (grub_cmdline_run): New function.
35771 (grub_normal_reader_init): Likewise.
35772 (grub_normal_read_line): Likewise.
35773 (grub_env_write_pager): Likewise.
35774 (cmdline): New variable.
35775 (grub_normal_reader): Likewise.
35776 (GRUB_MOD_INIT): Register normal reader and set as current, register
35777 pager hook, register normal command with grub_register_command_prio,
35778 so that it won't show up in command.lst.
35779 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
35780 grub_fs_autoload_hook.
35781
35782 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
35783 (grub_menu_execute_entry): Replace grub_script_execute with
35784 grub_parser_execute, change parameter to grub_command_execute.
35785
35786 * normal/menu_text.c: Remove <grub/script.h>.
35787
35788 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
35789 and <grub/parser.h>.
35790 (run): Change editor_getline to use new parser interface. Change
35791 parameter to grub_command_execute.
35792
35793 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
35794 <grub/reader.h> and <grub/parser.h>.
35795 (grub_load_normal_mode): Execute normal command.
35796 (grub_main): Call grub_register_core_commands,
35797 grub_register_rescue_parser and grub_register_rescue_reader, use
35798 grub_reader_loop to enter input loop.
35799
7dd4a573 35800 * kern/parser.c (grub_parser_split_cmdline): Change type of
35801 getline parameter.
d558e6b5 35802 (grub_parser_class): New variable.
35803 (grub_parser_execute): New function.
35804
35805 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
35806 * loader/multiboot2.c: Likewise.
35807 * loader/sparc64/ieee1275/linux.c: Likewise.
35808
35809 * util/grub-emu.c (read_command_list): New dummy function.
35810
18db813d 358112009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35812
35813 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
35814 count to 16 for CCISS and IDA.
35815
6c67de15 358162009-05-02 Robert Millan <rmh.grub@aybabtu.com>
35817
35818 * normal/menu_text.c (grub_wait_after_message): Print a newline
35819 after waiting for user input.
35820
35821 * loader/i386/linux.c: Include `<grub/normal.h>'.
35822 (grub_cmd_linux): Improve the error message about `ask' mode, by
35823 waiting for user input so it's not missed (we can do this, since
35824 user requested interaction).
35825
d9dc87b0 358262009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
35827
35828 Added missing lst to grub-mkrescue
35829
35830 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
35831 and ${input_dir}/parttool.lst
35832
ac8a2baa 358332009-04-30 David S. Miller <davem@davemloft.net>
35834
ad22a610 35835 * util/hostdisk.c (device_is_wholedisk): New function.
35836 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
35837 zero only if device_is_wholedisk() returns true.
35838
6966215d 35839 * util/hostdisk.c (convert_system_partition_to_system_disk):
35840 Handle virtual disk devices named /dev/vdiskX as found on sparc
35841 and powerpc.
35842
ac8a2baa 35843 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
35844 lettered partition specifier is found, convert to numbered.
35845
979b4fb4 358462009-04-29 David S. Miller <davem@davemloft.net>
35847
e2bf39b2 35848 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
35849 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35850
3c64e104 35851 * normal/command.c: Add missing newline at end of file.
35852
979b4fb4 35853 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
35854 warnings.
35855 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
35856 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
35857 grub_ofdisk_read): Likewise, and deal similarly with the fact that
35858 ihandles have a 32-bit type but need to be stored in a "void *".
35859
136d9f82 358602009-04-28 Pavel Roskin <proski@gnu.org>
35861
9459c306 35862 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
35863 not disk. Adjust all dependencies.
2e08a26a 35864 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 35865 grub_disk_close().
35866
136d9f82 35867 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
35868 parent's partition, don't copy it by reference, as it gets freed
35869 on close.
35870
7dd4a573 358712009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 35872
35873 Preboot hooks support
35874
35875 * commands/boot.c (struct grub_preboot_t): new declaration
35876 (preboots_head): new variable
35877 (preboots_tail): likewise
35878 (grub_loader_register_preboot_hook): new function
35879 (grub_loader_unregister_preboot_hook): likewise
35880 (grub_loader_set): launch preboot hooks
35881 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
35882 (grub_loader_register_preboot_hook): new declaration
35883 (grub_loader_unregister_preboot_hook): likewise
35884
5af922b5 358852009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
35886
35887 Warning fix
35888
7dd4a573 35889 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 35890 calling grub_dprintf
35891
a5562c30 358922009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
35893
35894 Bug and warning fixes
35895
7dd4a573 35896 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 35897 declaration
35898 * commands/test.c (test_parse): fixed bug with file tests and corrected
35899 declaration of find_file
35900
4006f85c 359012009-04-26 Pavel Roskin <proski@gnu.org>
35902
35903 * Makefile.in: Don't install empty manual pages if help2man is
35904 missing. Use help2man option for output, not shell redirection.
35905
5c77c3de 359062009-04-26 David S. Miller <davem@davemloft.net>
35907
35908 * util/grub-mkdevicemap.c (make_device_map): Add missing
35909 NESTED_FUNC_ATTR to process_device().
35910
033b10a8 359112009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
35912
35913 Test command
35914
35915 * commands/test.c: rewritten to use bash-like test
35916
e4343593 359172009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
35918
35919 Parttool autoloading and improvements
35920
7dd4a573 35921 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 35922 (parttool.lst): new target
35923 * genmk.rb: generate parttool-*
35924 (CLEANFILES): add #{parttool}
35925 (PARTTOOLFILES): new variable
35926 * genparttoollist.sh: new file
7dd4a573 35927 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 35928 (grub_pcpart_type): likewise
35929 * commands/parttool.c (helpmsg): new variable
35930 (grub_cmd_parttool): output help if not enough arguments are supplied
35931 autoload modules
35932 (GRUB_MOD_INIT(parttool)): use helpmsg
35933
0d312500 359342009-04-24 David S. Miller <davem@davemloft.net>
35935
7dd4a573 35936 Avoiding opening same device multiple times in device iterator.
0d312500 35937
35938 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 35939 and use it to build a list of partitions in iterate_disk() and
0d312500 35940 iterate_partition().
35941
ac20caff 35942 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
35943 on disk->data.
35944
0dcf7495 35945 * disk/ieee1275/nand.c (grub_nand_iterate): Return
35946 grub_devalias_iterate() result instead of unconditional 0.
35947 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
35948 Also, capture hook return value, either directly or via
35949 grub_children_iterate(), and propagate to caller.
35950 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
35951 grub_children_iterate): Return value is now 'int' instead of
35952 'grub_err_t'.
35953 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
35954 like a proper iterator, stopping when hooks return non-zero.
35955 (grub_devalias_iterate): Likewise.
35956
c8c08833 359572009-04-23 David S. Miller <davem@davemloft.net>
35958
35959 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
35960
f01005a8 359612009-04-22 David S. Miller <davem@davemloft.net>
35962
35963 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
35964 is larger than address_cells, use that value for address_cells too.
35965
4e8269da 35966 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
35967 IEEE1275_MAX_PATH_LEN): Define.
35968 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
35969 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
35970 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
35971 'devtype'. Explicitly NULL terminate devalias expansion.
35972
a1447506 35973 * util/sparc64/ieee1275/misc.c: New file.
35974 * util/sparc64/ieee1275/grub-setup.c: New file.
35975 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
35976 * util/sparc64/ieee1275/grub-mkimage.c: New file.
35977 * util/sparc64/ieee1275/grub-install.in: New file.
35978 * util/ieee1275/ofpath.c: New file.
35979 * util/ieee1275/devicemap.c: New file.
35980 * util/devicemap.c: New file.
35981 * util/deviceiter.c: New file.
35982 * kern/sparc64/ieee1275/init.c: New file.
35983 * include/grub/util/ofpath.h: New file.
35984 * include/grub/util/deviceiter.h: New file.
35985 * util/grub-mkdevicemap.c: Include deviceiter.h.
35986 Implement using grub_util_emit_devicemap_entry and
35987 grub_util_iterate_devices.
35988 * conf/i386-corebook.rmk: Build util/deviceiter.c and
35989 util/devicemap.c into grub-mkdevicemap
35990 * conf/i386-efi.rmk: Likewise.
35991 * conf/i386-ieee1275.rmk: Likewise.
35992 * conf/i386-pc.rmk: Likewise.
35993 * conf/powerpc-ieee1275.rmk: Likewise.
35994 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
35995 images and installation utilities. Build kernel as image
35996 instead of as elf binary. Use common rules as much as possible.
35997
7dd4a573 359982009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 35999
36000 Correct GPT definition
36001
7dd4a573 36002 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 36003 of "attrib" member
36004
c6c5219f 360052009-04-19 Felix Zielcke <fzielcke@z-51.de>
36006
36007 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
36008
0552ff9f 360092009-04-19 David S. Miller <davem@davemloft.net>
36010
36011 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
36012 (grub_rescue_cmd_linux): Rename to...
36013 (grub_cmd_linux): and fix prototype.
36014 (grub_rescue_cmd_initrd): Rename to...
36015 (grub_cmd_initrd): and fix prototype.
36016 (cmd_linux, cmd_initrd): New.
36017 (GRUB_MOD_INIT(linux)): Use grub_register_command().
36018 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
36019
d1a282fc 360202009-04-17 Pavel Roskin <proski@gnu.org>
36021
07c5039f 36022 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
36023 format.
36024 (grub_ohci_transfer): Likewise.
36025
b012002d 36026 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
36027
1bc09c35 36028 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
36029 return without a value. Fix inconsistent indentation.
36030
e0ff9126 36031 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
36032 match struct grub_fs.
36033
d1a282fc 36034 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
36035 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
36036 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36037 * commands/lspci.c (grub_lspci_iter): Likewise.
36038
a96df3f2 360392009-04-16 Bean <bean123ch@gmail.com>
36040
36041 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
36042 value.
36043
41bb0fe9 360442009-04-15 Pavel Roskin <proski@gnu.org>
36045
36046 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
36047 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
36048 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
36049 definitions.
36050
596c6970 360512009-04-15 Felix Zielcke <fzielcke@z-51.de>
36052
36053 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 36054 that no multiple data or metadata areas are supported and `Unknown
596c6970 36055 metadata header'.
36056
7dd4a573 360572009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 36058
36059 Move loader out of the kernel
36060
36061 * kern/loader.c: moved to ...
36062 * commands/boot.c: ... moved here
36063 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
36064 * commands/boot.c (grub_cmd_boot): moved here. All users updated
36065 * include/grub/kernel.h (grub_machine_fini): export
36066 * include/grub/loader.h (grub_loader_is_loaded): update declaration
36067 (grub_loader_set): likewise
36068 (grub_loader_unset): likewise
36069 (grub_loader_boot): likewise
36070 * conf/common.rmk: new module boot.mod
36071 (pkglib_MODULES): add boot.mod
36072 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
36073 (grub_emu_SOURCES): likewise
36074 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
36075 (grub_emu_SOURCES): likewise
36076 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
36077 (grub_emu_SOURCES): likewise
36078 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
36079 (grub_emu_SOURCES): likewise
36080 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
36081 (grub_emu_SOURCES): likewise
7dd4a573 36082 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
36083 (grub_emu_SOURCES): likewise
0d5d5653 36084 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 36085 (grub_emu_SOURCES): likewise
0d5d5653 36086
7dd4a573 360872009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 36088
36089 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 36090
5999d619 36091 * kern/misc.c (grub_itoa): Removed function
36092 (grub_ltoa): likewise
36093 (grub_vsprintf): use grub_lltoa
36094
7dd4a573 360952009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 36096
36097 Restore grub-emu
36098
36099 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
36100 * conf/i386-coreboot.rmk: likewise
36101 * conf/i386-ieee1275.rmk: likewise
36102 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 36103
20318222 361042009-04-15 Felix Zielcke <fzielcke@z-51.de>
36105
36106 * INSTALL: Add that `./autogen.sh' needs to be run before
36107 `./configure.'.
36108
d05f0df3 361092009-04-14 Bean <bean123ch@gmail.com>
36110
36111 * Makefile.in (pkglib_DATA): Add handler.lst.
36112 (handler.lst): New rule.
36113
36114 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
36115 * conf/i386-coreboot.rmk: Likewise.
36116 * conf/i386-ieee1275.rmk: Likewise.
36117 * conf/i386-efi.rmk: Likewise.
36118 * conf/x86_64-efi.rmk: Likewise.
36119 * conf/powerpc-ieee1275.rmk: Likewise.
36120 * conf/sparc64-ieee1275.rmk: Likewise.
36121
36122 * genhandlerlist.sh: New file.
36123
36124 * genmk.rb: Add rules to generate handler.lst.
36125
36126 * include/grub/normal.h (grub_file_getline): New function definition.
36127 (read_handler_list): Likewise.
36128 (free_handler_list): Likewise.
36129
36130 * include/grub/term.h (grub_term_register_input): Add name parameter
36131 for auto generation of handler.lst.
36132 (grub_term_register_output): Likewise.
36133
36134 * normal/handler.c: New file.
36135
36136 * normal/main.c (get_line): Renamed to grub_file_getline.
36137 (read_config_file): Use the newly renamed grub_file_getline.
36138 (read_command_list): Likewise.
36139 (read_fs_list): Likewise.
36140 (grub_normal_execute): Call read_handler_list to parse handler.lst.
36141 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
36142
36143 * term/efi/console.c (grub_console_init): Add name parameter for auto
36144 generation of handler.lst.
36145 * term/gfxterm.c: Likewise.
36146 * term/i386/pc/at_keyboard.c: Likewise.
36147 * term/i386/pc/console.c: Likewise.
36148 * term/i386/pc/serial.c: Likewise.
36149 * term/i386/pc/vesafb.c: Likewise.
36150 * term/i386/pc/vga.c: Likewise.
36151 * term/i386/pc/vga_text.c: Likewise.
36152 * term/ieee1275/ofconsole.c: Likewise.
36153 * term/usb_keyboard.c: Likewise.
36154
33c846be 361552009-04-14 Bean <bean123ch@gmail.com>
36156
36157 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
36158 properly with null character.
36159
4484e01e 361602009-04-14 Felix Zielcke <fzielcke@z-51.de>
36161
36162 * configure: Remove.
36163 * config.h.in: Likewise.
f93d668e 36164 * stamp-h.in: Likewise.
4484e01e 36165 * DISTLIST: Likewise.
36166 * conf/common.mk: Likewise.
36167 * conf/i386-coreboot.mk: Likewise.
36168 * conf/i386-efi.mk: Likewise.
36169 * conf/i386-ieee1275.mk: Likewise.
36170 * conf/i386.mk: Likewise.
36171 * conf/i386-pc.mk: Likewise.
36172 * conf/powerpc-ieee1275.mk: Likewise.
36173 * conf/sparc64-ieee1275.mk: Likewise.
36174 * conf/x86_64-efi.mk: Likewise.
36175
36176 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
36177 develop on GRUB.
36178
7dd4a573 361792009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 36180 David S. Miller <davem@davemloft.net>
36181
36182 * util/hostdisk.c (make_device_name): Fix buffer length
36183 calculations.
36184
e25b5a8c 361852009-04-14 Felix Zielcke <fzielcke@z-51.de>
36186
36187 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
36188 <sys/param.h> and <sys/sysctl.h>.
36189 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
36190 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
36191 opening the device and reset them afterwards.
36192
1f1f580c 361932009-04-13 Pavel Roskin <proski@gnu.org>
36194
36195 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
36196 Reported by John Stanley <jpsinthemix@verizon.net>
36197
7ebc2d6b 361982009-04-13 Robert Millan <rmh@aybabtu.com>
36199
36200 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 36201 that name for menuentries when appropriate.
7ebc2d6b 36202
d8ba3667 362032009-04-13 Felix Zielcke <fzielcke@z-51.de>
36204
36205 * util/grub.d/10_freebsd.in: Add a missing `fi'.
36206
cba416eb 362072009-04-13 Robert Millan <rmh@aybabtu.com>
36208
36209 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
36210 to Linux, simply abort telling the user it's no longer supported.
36211
a547a745 362122009-04-13 Felix Zielcke <fzielcke@z-51.de>
36213
36214 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 36215 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 36216 `freebsd_loadenv' only when devices.hints exist.
36217
232a769c 362182009-04-13 Pavel Roskin <proski@gnu.org>
36219
36220 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
36221
c3012039 362222009-04-13 Felix Zielcke <fzielcke@z-51.de>
36223
36224 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
36225 partition number.
36226 (grub_drive): Likewise.
36227
234022fe 362282009-04-13 David S. Miller <davem@davemloft.net>
36229
36230 * kern/sparc64/ieee1275/ieee1275.c: New file.
36231 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
36232 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
36233 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
36234 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
36235 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
36236 grub_ieee1275_alloc_physmem): Declare new exported functions.
36237
d8e1836c 36238 * include/grub/sparc64/ieee1275/loader.h: New file.
36239 * include/grub/sparc64/ieee1275/memory.h: Likewise.
36240 * include/grub/sparc64/kernel.h: Likewise.
36241 * loader/sparc64/ieee1275/linux.c: Likewise.
36242
96bd81ec 36243 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
36244 (grub_fstest_SOURCES): Likewise.
36245
6a4737e5 36246 * util/hostdisk.c (make_device_name): Do not make any assumptions
36247 about the length of drive names.
36248
1d7a72fd 36249 * kern/dl.c (grub_dl_load_file): Close file immediately when
36250 we are done using it.
36251
56bc2471 362522009-04-12 David S. Miller <davem@davemloft.net>
36253
36254 * kern/misc.c (grub_ltoa): Fix cast when handling negative
36255 values. Noticed by Pavel Roskin.
36256
df38d0bb 36257 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
36258 target compiler.
7dd4a573 36259
e382e93a 36260 * genmk.rb: Add more flexible image type specification, also
36261 pass --strip-unneeded to objcopy.
36262 * conf/i386-pc.rmk: Use *_FORMAT.
36263 * conf/i386-pc.mk: Rebuilt.
36264
f5dbbca9 36265 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
36266 (OFDISK_HASH_SZ): Define.
36267 (ofdisk_hash): New hash table.
36268 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
36269 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
36270 instead of device phandle which is not unique.
36271
91c88b12 36272 * kern/sparc64/ieee1275/init.c: Delete, replace with...
36273 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
36274 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
36275 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
36276 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
36277 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
36278 GRUB_KERNEL_MACHINE_DATA_END): Define.
36279 (grub_kernel_image_size, grub_total_module_size): Declare.
36280
5b5d4aa5 362812009-04-12 Pavel Roskin <proski@gnu.org>
36282
7dd4a573 36283 * configure.ac: Change the logic when we check for target tools.
36284 Do it when the target is specified and it's different from the
36285 specified value of the host.
5b5d4aa5 36286
c91e1793 362872009-04-11 Felix Zielcke <fzielcke@z-51.de>
36288
36289 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
36290 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
36291 GNU/kFreeBSD. Check if a device is a character device. Use
36292 DIOCGMEDIASIZE to get the size.
36293 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
36294 support for GNU/kFreeBSD.
36295 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
36296 is a character device instead of a block device. Add support for
36297 FreeBSD device names.
36298
36299 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
36300 is a character device instead of a block device.
36301
36302 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
36303 is a character device instead of a block device.
36304
b1ac8644 363052009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
36306
36307 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
36308 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
36309 FreeBSD. Check if a device is a character device. Use
36310 DIOCGMEDIASIZE to get the size.
36311 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
36312 support for FreeBSD.
36313 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
36314 is a character device instead of a block device. Add support for
36315 FreeBSD device names.
36316
36317 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
36318 a character device instead of a block device.
36319 (grub_util_check_char_device): New function.
36320
36321 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
36322 a character device instead of a block device.
36323
36324 * include/grub/util/getroot.h (grub_util_check_char_device): New
36325 prototype.
36326
a3f7515a 363272009-04-11 David S. Miller <davem@davemloft.net>
36328
36329 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
36330 static libgcc.
36331 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
36332 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
36333 function, if present.
36334 (__bswapdi2): Likewise.
36335
0d44993d 36336 * include/grub/sparc64/ieee1275/boot.h: New file.
36337 * boot/sparc64/ieee1275/boot.S: Likewise.
36338 * boot/sparc64/ieee1275/diskboot.S: Likewise.
36339
ed3d2bc2 36340 * kern/misc.c (grub_ltoa): New function.
36341 (grub_vsprintf): Use it to format 'long' integers.
36342
d3bfb59c 363432009-04-10 David S. Miller <davem@davemloft.net>
36344
36345 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
36346 slots are of type grub_ieee1275_cell_t.
36347 (grub_nand_read): Likewise.
36348 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
36349 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
36350 macros are used to compare values in arg/ret block of the call.
36351 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36352 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
36353 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
36354 grub_ieee1275_instance_to_path, grub_ieee1275_write,
36355 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
36356 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
36357 grub_ieee1275_close, grub_ieee1275_set_property,
36358 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
36359 grub_ieee1275_cell_t.
36360 * kern/ieee1275/openfw.c (grub_map): Likewise.
36361 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
36362 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
36363
450e2238 36364 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
36365 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
36366 (grub_devalias_iterate): Likewise.
36367
7dd4a573 363682009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 36369
36370 UFS improvements
36371
36372 * fs/ufs.c (INODE_NBLOCKS): new definition
36373 (struct grub_ufs_dirent): added fields for non-BSD dirents
36374 (grub_ufs_get_file_block): fixed double indirect handling
36375 (grub_ufs_lookup_symlink): use more robust way to determine whether
36376 symlink is inline
36377 (grub_ufs_find_file): support for non-BSD dirents
36378 (grub_ufs_dir): support for non-BSD dirents
36379
e7e6862a 363802009-04-10 Bean <bean123ch@gnail.com>
36381
36382 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
36383 attribute, otherwise the size would be wrong for i386 platform.
36384
36385 * include/grub/pci.h (grub_pci_read_word): New inline function.
36386 (grub_pci_read_byte): Likewise.
36387 (grub_pci_write): Likewise.
36388 (grub_pci_write_word): Likewise.
36389 (grub_pci_write_byte): Likewise.
36390
36391 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
36392
36393 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
36394 (find_framebuf): Scan pci to locate the frame buffer address.
36395
36396 * commands/efi/fixvideo.c: New file.
36397
36398 * commands/efi/loadbios.c: Likewise.
36399
36400 * commands/memrw.c: Likewise.
36401
36402 * util/grub-dumpbios.in: Likewise.
36403
36404 * conf/common.rmk (grub-dumpbios): New utility.
36405 (pkglib_MODULES): New module memrw.mod.
36406 (memrw_mod_SOURCE): New macro.
36407 (memrw_mod_CFLAGS): Likewise.
36408 (memrw_mod_LDFLAGS): Likewise.
36409
7dd4a573 36410 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36411 fixvideo.mod.
36412 (loadbios_mod_SOURCE): New macro.
36413 (loadbios_mod_CFLAGS): Likewise.
36414 (loadbios_mod_LDFLAGS): Likewise.
36415 (fixvideo_mod_SOURCE): Likewise.
36416 (fixvideo_mod_CFLAGS): Likewise.
36417 (fixvideo_mod_LDFLAGS): Likewise.
36418
7dd4a573 36419 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36420 fixvideo.mod.
36421 (loadbios_mod_SOURCE): New macro.
36422 (loadbios_mod_CFLAGS): Likewise.
36423 (loadbios_mod_LDFLAGS): Likewise.
36424 (fixvideo_mod_SOURCE): Likewise.
36425 (fixvideo_mod_CFLAGS): Likewise.
36426 (fixvideo_mod_LDFLAGS): Likewise.
36427
af63ada2 364282009-04-08 Felix Zielcke <fzielcke@z-51.de>
36429
36430 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
36431
c2cdde70 364322009-04-07 David S. Miller <davem@davemloft.net>
36433
36434 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
36435 support for R_SPARC_OLO10 relocations. Fix compile warning for
36436 R_SPARC_WDISP30 case.
ea3f72cf 36437 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 36438
761319cf 364392009-04-06 Pavel Roskin <proski@gnu.org>
36440
1007d1f5 36441 * include/grub/misc.h (ARRAY_SIZE): New macro.
36442 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
36443 New macro.
36444 * loader/i386/linux.c (allocate_pages): Use free_pages().
36445 (grub_linux_unload): Don't use free_pages().
36446 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
36447 wrong index. Treat all other modes as text modes.
36448 (grub_cmd_linux): Initialize vid_mode unconditionally to
36449 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
36450
761319cf 36451 * commands/help.c (print_command_help): Use cmd->prio, not
36452 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
36453
ea761d40 364542009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 36455
ea761d40 36456 Parttool
36457
36458 * parttool/pcpart.c: new file
36459 * commands/parttool.c: likewise
36460 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
36461 (parttool_mod_SOURCES): new variable
36462 (parttool_mod_CFLAGS): likewise
36463 (parttool_mod_LDFLAGS): likewise
36464 (pcpart_mod_SOURCES): likewise
36465 (pcpart_mod_CFLAGS): likewise
36466 (pcpart_mod_LDFLAGS): likewise
7dd4a573 36467 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 36468 and parttool/pcpart.c
36469 * conf/i386-efi.rmk: likewise
36470 * conf/i386-ieee1275.rmk: likewise
36471 * conf/i386-pc.rmk: likewise
36472 * conf/powerpc-ieee1275.rmk: likewise
36473 * conf/sparc64-ieee1275.rmk: likewise
36474 * conf/x86_64-ieee1275.rmk: likewise
36475
05aaebfb 364762009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36477
36478 Support for mtime and further expandability of dir command
36479
36480 * include/grub/lib/datetime.h: moved to ...
7dd4a573 36481 * include/grub/datetime.h: ... moved here and added
05aaebfb 36482 declaration of grub_unixtime2datetime. All users updated
7dd4a573 36483 * include/grub/fs.h: new syntax for dir and mtime functions in
36484 struct grub_fs
05aaebfb 36485 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
36486 and GRUB_FSHELP_FLAGS_MASK
36487 * commands/ls.c (grub_ls_list_files): Write mtime in long format
36488 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
36489 (grub_ext2_mtime): new function
36490 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
36491 (grub_hfsplus_mtime): new function
36492 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
36493 (GRUB_UFS_ATTR_FILE): likewise
36494 (GRUB_UFS_ATTR_LNK): likewise
36495 (struct grub_ufs_sblock): new fields mtime
36496 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
36497 all users updated
36498 (grub_ufs_dir): mtime support
36499 (grub_ufs_mtime): new function
36500 * fs/affs.c (grub_affs_dir): use new dir syntax
36501 * fs/afs.c (grub_afs_dir): likewise
36502 * fs/cpio.c (grub_cpio_dir): likewise
36503 * fs/fat.c (grub_fat_find_dir): likewise
36504 * fs/hfs.c (grub_hfs_dir): likewise
36505 * fs/iso9660.c (grub_iso9660_dir): likewise
36506 * fs/jfs.c (grub_jfs_dir): likewise
36507 * fs/minix.c (grub_minix_dir): likewise
36508 * fs/ntfs.c (grub_ntfs_dir): likewise
36509 * fs/reiserfs.c (grub_reiserfs_dir): likewise
36510 * fs/sfs.c (grub_sfs_dir): likewise
36511 * fs/xfs.c (grub_xfs_dir): likewise
36512 * util/hostfs.c (grub_hostfs_dir): likewise
36513 * lib/datetime.c: moved to ...
36514 * normal/datetime.c: ... moved here
36515 (grub_unixtime2datetime): new function
36516 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 36517 * normal/completion.c (iterate_dir): use new dir syntax
36518 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 36519 last modification time of a volume
7dd4a573 36520 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 36521 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 36522 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 36523 (normal_mod_SOURCES): likewise
36524 (datetime_mod_SOURCES): Removed lib/datetime.c
36525 * conf/i386-efi.rmk: likewise
7dd4a573 36526 * conf/i386-ieee1275.rmk: likewise
05aaebfb 36527 * conf/i386-pc.rmk: likewise
36528 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 36529 * conf/sparc64-ieee1275.rmk: likewise
36530 * conf/x86_64-efi.rmk: likewise
05aaebfb 36531
8a7e1a14 365322009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36533
36534 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 36535
36536 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 36537 on grub_fat_find_dir
36538 (grub_fat_find_dir): use grub_fat_iterate_dir
36539 (grub_fat_label): likewise
36540
04186a9c 365412009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
36542
7dd4a573 36543 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 36544 and command.h
36545 remove extraneous kernel_elf_HEADERS
36546
da4c0bb6 365472009-04-04 Bean <bean123ch@gnail.com>
36548
36549 * include/grub/util/misc.h: Add dummy function fsync for mingw.
36550
36551 * util/misc.c: Likewise.
36552
54ad9555 365532009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
36554
36555 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
36556 instead of grub_printf.
36557
7a6bf9f2 365582009-04-03 Robert Millan <rmh@aybabtu.com>
36559
36560 * loader/i386/linux.c (grub_linux_setup_video): Fill
36561 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
36562 values from `mode info' structure instead of hardcoded
36563 values.
36564
3fcc2083 365652009-04-01 Pavel Roskin <proski@gnu.org>
36566
36567 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
36568 unused now.
36569 * genmk.rb: Likewise.
36570 * configure.ac: Likewise.
36571
5ec9740b 365722009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
36573
36574 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
36575 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
36576
5270cec8 365772009-04-01 David S. Miller <davem@davemloft.net>
36578
36579 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 36580 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 36581 (grub_setjmp): Mark with 'returns_twice' attribute.
36582 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
36583 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
36584 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
36585
9c3dd854 365862009-04-01 Robert Millan <rmh@aybabtu.com>
36587
36588 Reapply fix from 2008-07-28 which was accidentally reverted; also
36589 perform the same fix to a similar check in same function.
36590
36591 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36592 with the same number are found, just use issue a warning with
36593 grub_dprintf(), as this error has been reported to be non-fatal.
36594
0d818b7e 365952009-03-31 Pavel Roskin <proski@gnu.org>
36596
36597 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
36598 for cross-compilation.
36599
95646d92 366002009-03-30 Robert Millan <rmh@aybabtu.com>
36601
36602 Fix i386-ieee1275 build.
36603
36604 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
36605 Remove declaration.
36606
6a003ed1 366072009-03-30 Pavel Roskin <proski@gnu.org>
36608
36609 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
36610 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
36611 zero-terminated, rely only on the strlen value. Fix comparison
36612 of strings differing in length.
36613
92f33540 366142009-03-30 Robert Millan <rmh@aybabtu.com>
36615
36616 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
36617 checking for abi version. Improve error messages on BIOS to notify
36618 user about `linux16' command.
36619
a8c48fd5 366202009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
36621
f968172e 36622 Leak fixes
a8c48fd5 36623
f968172e 36624 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
36625 in case of collision
36626 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 36627
9c323f09 366282009-03-29 Robert Millan <rmh@aybabtu.com>
36629
36630 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
36631 set `vid_mode' accordingly.
36632 (grub_linux_boot): Process `vid_mode' and set video mode.
36633
ae68f423 366342009-03-29 Robert Millan <rmh@aybabtu.com>
36635
36636 * util/grub.d/10_linux.in (linux_entry): New function.
36637 Factorize generation of Linux boot entries.
36638
5709cfc4 366392009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
36640
36641 Make the format of Environment Block plain text. The boot loader
36642 part is not tested well yet.
7dd4a573 36643
5709cfc4 36644 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
36645 (buffer): Removed.
36646 (envblk): Likewise.
36647 (usage): Remove "info" and "clear". Add "unset". Update the
36648 description of "set", as this does not delete variables any
36649 longer.
36650 (create_envblk_file): Complete rewrite.
36651 (open_envblk_file): Likewise.
36652 (cmd_info): Removed.
36653 (cmd_list): Likewise.
36654 (cmd_set): Likewise.
36655 (cmd_clear): Likewise.
36656 (list_variables): New function.
36657 (write_envblk): Likewise.
36658 (set_variables): Likewise.
36659 (unset_variables): Likewise.
36660 (main): Complete rewrite.
36661
36662 * commands/loadenv.c (buffer): Removed.
36663 (envblk): Likewise.
36664 (open_envblk_file): New function.
36665 (read_envblk_file): Complete rewrite.
36666 (grub_cmd_load_env): Likewise.
36667 (grub_cmd_list_env): Likewise.
36668 (struct blocklist): New struct.
36669 (free_blocklists): New function.
36670 (check_blocklists): Likewise.
36671 (write_blocklists): Likewise.
36672 (grub_cmd_save_env): Complete rewrite.
36673
36674 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
36675 a plain text signature.
36676 (GRUB_ENVBLK_MAXLEN): Removed.
36677 (struct grub_envblk): Complete rewrite.
36678 (grub_envblk_find): Removed.
36679 (grub_envblk_insert): Likewise.
36680 (grub_envblk_open): New prototype.
36681 (grub_envblk_set): Likewise.
36682 (grub_envblk_delete): Put const to VALUE.
36683 (grub_envblk_iterate): Put const to NAME and VALUE.
36684 (grub_envblk_close): New prototype.
36685 (grub_envblk_buffer): New inline function.
36686 (grub_envblk_size): Likewise.
36687
36688 * lib/envblk.c: Include grub/mm.h.
36689 (grub_env_find): Removed.
36690 (grub_envblk_open): New function.
36691 (grub_envblk_close): Likewise.
36692 (escaped_value_len): Likewise.
36693 (find_next_line): Likewise.
36694 (grub_envblk_insert): Removed.
36695 (grub_envblk_set): New function.
36696 (grub_envblk_delete): Complete rewrite.
36697 (grub_envblk_iterate): Likewise.
36698
a9368fd3 366992009-03-28 Robert Millan <rmh@aybabtu.com>
36700
36701 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
36702 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
36703 variables. Use 16-bit loader.
36704 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
36705 loader.
36706 * kern/i386/loader.S (grub_linux_boot): Rename to ...
36707 (grub_linux16_boot): ... this. Update all users.
36708 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
36709 (grub_linux_boot): ... this. Update all users.
36710
36711 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
36712 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
36713 commands to `linux16' and `initrd16'.
36714 (GRUB_MOD_FINI(linux)): Rename to ...
36715 (GRUB_MOD_FINI(linux16)): ... this.
36716
e4dd5a7e 367172009-03-24 Pavel Roskin <proski@gnu.org>
36718
36719 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
36720 not just for compilation.
36721
c04d6e05 367222009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
36723
36724 Move multiboot helper out of kernel
36725
36726 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
36727 `loader/i386/multiboot_helper.S'.
36728 * conf/i386-coreboot.rmk: Likewise
36729 * conf/i386-ieee1275.rmk: Likewise
36730
36731 * kern/i386/loader.S: Move multiboot helpers from here...
36732 * loader/i386/multiboot_helper.S: ...moved here
36733 * include/grub/i386/loader.h: Move declarations of multiboot
36734 helpers from here...
36735 * include/grub/i386/multiboot.h: ...moved here
36736 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
36737
42a5b3fc 367382009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36739
36740 * kern/env.c (grub_env_context_open): Added an argument to specify
36741 whether a new context inherits exported variables from current
36742 one. This is useful when making a sandbox to interpret a config
36743 file.
36744 All callers updated.
36745
36746 * include/grub/env.h (grub_env_context_open): Updated the prototype.
36747
b28bbc4e 367482009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36749
36750 * kern/env.c (grub_env_context_close): Fix memory leaks.
36751
f04f02e4 367522009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
36753
36754 * normal/main.c (grub_normal_execute): Added an argument
36755 BATCH to specify if an interactive interface should be provided
36756 after reading a config file.
36757 All callers updated.
36758 (read_command_list): Prevent being executed twice.
36759 (read_fs_list): Likewise.
36760
42a5b3fc 36761 * include/grub/normal.h (grub_normal_execute): Updated the
36762 prototype.
f04f02e4 36763
41473ac2 367642009-03-22 Pavel Roskin <proski@gno.org>
36765
fbc00b0c 36766 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
36767 _start.
36768 * kern/i386/pc/startup.S: Likewise.
36769 * kern/i386/efi/startup.S: Likewise.
36770 * kern/i386/ieee1275/startup.S: Likewise.
36771 * kern/i386/coreboot/startup.S: Likewise.
36772 * kern/x86_64/efi/startup.S: Likewise.
36773
41473ac2 36774 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
36775 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
36776 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
36777
2274cc8f 367782009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
36779
36780 Bugfixes in multiboot for bugs uncovered by solaris kernel.
36781
36782 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
36783 limit detection.
36784 Use vaddr of correct segment for entry_point.
36785
b1b797cb 367862009-03-21 Bean <bean123ch@gmail.com>
36787
36788 * commands/blocklist.c: Add include file <grub/command.h>, remove
36789 <grub/normal.h> and <grub/arg.h>.
36790 (grub_cmd_blocklist): Use the new command interface.
36791 (GRUB_MOD_INIT): Likewise.
36792 (GRUB_MOD_FINI): Likewise.
36793 * commands/boot.c: Likewise.
36794 * commands/cat.c: Likewise.
36795 * commands/cmp.c: Likewise.
36796 * commands/configfile.c: Likewise.
36797 * commands/crc.c: Likewise.
36798 * commands/echo.c: Likewise.
36799 * commands/halt.c: Likewise.
36800 * commands/handler.c: Likewise.
36801 * commands/hdparm.c: Likewise.
36802 * commands/help.c: Likewise.
36803 * commands/hexdump.c: Likewise.
36804 * commands/loadenv.c: Likewise.
36805 * commands/ls.c: Likewise.
36806 * commands/lsmmap.c: Likewise.
36807 * commands/lspci.c: Likewise.
36808 * commands/loadenv.c: Likewise.
36809 * commands/read.c: Likewise.
36810 * commands/reboot.c: Likewise.
36811 * commands/search.c: Likewise.
36812 * commands/sleep.c: Likewise.
36813 * commands/test.c: Likewise.
36814 * commands/usbtest.c: Likewise.
36815 * commands/videotest.c: Likewise.
36816 * commands/i386/cpuid.c: Likewise.
36817 * commands/i386/pc/halt.c: Likewise.
36818 * commands/i386/pc/play.c: Likewise.
36819 * commands/i386/pc/pxecmd.c: Likewise.
36820 * commands/i386/pc/vbeinfo.c: Likewise.
36821 * commands/i386/pc/vbetest.c: Likewise.
36822 * commands/ieee1275/suspend.c: Likewise.
36823 * disk/loopback.c: Likewise.
36824 * font/font_cmd.c: Likewise.
36825 * hello/hello.c: Likewise.
36826 * loader/efi/appleloader.c: Likewise.
36827 * loader/efi/chainloader.c: Likewise.
36828 * loader/i386/bsd.c: Likewise.
36829 * loader/i386/efi/linux.c: Likewise.
36830 * loader/i386/ieee1275/linux.c: Likewise.
36831 * loader/i386/linux.c: Likewise.
36832 * loader/i386/pc/chainloader.c: Likewise.
36833 * loader/i386/pc/linux.c: Likewise.
36834 * loader/powerpc/ieee1275/linux.c: Likewise.
36835 * loader/multiboot_loader.c: Likewise.
36836 * term/gfxterm.c: Likewise.
36837 * term/i386/pc/serial.c: Likewise.
36838 * term/terminfo.c: Likewise.
36839
36840 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
36841 * term/i386/pc/vga.c: Likewise.
36842 * video/readers/jpeg.c: Likewise.
36843 * video/readers/png.c: Likewise.
36844 * video/readers/tga.c: Likewise.
36845
36846 * util/grub-fstest (cmd_loopback): Removed.
36847 (cmd_blocklist): Likewise.
36848 (cmd_ls): Likewise.
36849 (grub_register_command): Likewise.
36850 (grub_unregister_command): Likewise.
36851 (execute_command): Use grub_command_find to locate command and execute
36852 it.
36853
36854 * include/grub/efi/chainloader.h: Removed.
36855 * loader/efi/chainloader_normal.c: Likewise.
36856 * loader/i386/bsd_normal.c: Likewise.
36857 * loader/i386/pc/chainloader_normal.c: Likewise.
36858 * loader/i386/pc/multiboot_normal.c: Likewise.
36859 * loader/linux_normal.c: Likewise.
36860 * loader/multiboot_loader_normal.c: Likewise.
36861 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
36862
36863 * gencmdlist.sh: Scan new registration command grub_register_extcmd
36864 and grub_register_command_p1.
36865
36866 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
36867 kern/command.c, lib/arg.c and commands/extcmd.c.
36868 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
36869 (minicmd_mod_SOURCES): New variable.
36870 (minicmd_mod_CFLAGS): Likewise.
36871 (minicmd_mod_LDFLAGS): Likewise.
36872 (extcmd_mod_SOURCES): Likewise.
36873 (extcmd_mod_CFLAGS): Likewise.
36874 (extcmd_mod_LDFLAGS): Likewise.
36875 (boot_mod_SOURCES): Removed.
36876 (boot_mod_CFLAGS): Likewise.
36877 (boot_mod_LDFLAGS): Likewise.
36878
36879 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
36880 kern/corecmd.c.
36881 (kernel_img_HEADERS): Add command.h.
36882 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
36883 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
36884 and lib/arg.c.
36885 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
36886 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
36887 remove the corresponding normal mode command.
36888 (normal_mod_SOURCES): Remove normal/arg.c.
36889 * conf/i386-coreboot.rmk: Likewise.
36890 * conf/i386-efi.rmk: Likewise.
36891 * conf/i386-ieee1275.rmk: Likewise.
36892 * conf/powerpc-ieee1275.rmk: Likewise.
36893 * conf/x86_64-efi.rmk: Likewise.
36894
36895 * include/grub/arg.h: Move from here ...
36896 * include/grub/lib/arg.h: ... to here.
36897
36898 * normal/arg.c: Move from here ...
36899 * lib/arg.c: ... to here.
36900
36901 * commands/extcmd.c: New file.
36902 * commands/minicmd.c: Likewise.
36903 * include/grub/command.h: Likewise.
36904 * include/grub/extcmd.h: Likewise.
36905 * kern/command.c: Likewise.
36906 * kern/corecmd.c: Likewise.
36907
36908 * kern/list.c (grub_list_iterate): Return int instead of void.
36909 (grub_list_insert): New function.
36910 (grub_prio_list_insert): Likewise.
36911
36912 * kern/rescue.c (grub_rescue_command): Removed.
36913 (grub_rescue_command_list): Likewise.
36914 (grub_rescue_register_command): Likewise.
36915 (grub_rescue_unregister_command): Likewise.
36916 (grub_rescue_cmd_boot): Move to minicmd.c
36917 (grub_rescue_cmd_help): Likewise.
36918 (grub_rescue_cmd_info): Likewise.
36919 (grub_rescue_cmd_boot): Likewise.
36920 (grub_rescue_cmd_testload): Likewise.
36921 (grub_rescue_cmd_dump): Likewise.
36922 (grub_rescue_cmd_rmmod): Likewise.
36923 (grub_rescue_cmd_lsmod): Likewise.
36924 (grub_rescue_cmd_exit): Likewise.
36925 (grub_rescue_print_devices): Moved to corecmd.c.
36926 (grub_rescue_print_files): Likewise.
36927 (grub_rescue_cmd_ls): Likewise.
36928 (grub_rescue_cmd_insmod): Likewise.
36929 (grub_rescue_cmd_set): Likewise.
36930 (grub_rescue_cmd_unset): Likewise.
7d074e3c 36931 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 36932 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 36933 commands, remove grub_rescue_register_command calls.
b1b797cb 36934
7d074e3c 36935 * normal/command.c (grub_register_command): Removed.
b1b797cb 36936 (grub_unregister_command): Likewise.
36937 (grub_command_find): Likewise.
36938 (grub_iterate_commands): Likewise.
36939 (rescue_command): Likewise.
36940 (export_command): Moved to corecmd.c.
36941 (set_command): Removed.
36942 (unset_command): Likewise.
36943 (insmod_command): Likewise.
36944 (rmmod_command): Likewise.
36945 (lsmod_command): Likewise.
36946 (grub_command_init): Likewise.
36947
36948 * normal/completion.c (iterate_command): Use cmd->prio to check for
36949 active command.
36950 (complete_arguments): Use grub_extcmd_t structure to find options.
36951 (grub_normal_do_completion): Change function grub_iterate_commands to
36952 grub_command_iterate.
36953
36954 * normal/execute.c (grub_script_execute_cmd): No need to parse
36955 argument here.
36956
36957 * normal/main.c (grub_dyncmd_dispatcher): New function.
36958 (read_command_list): Register unload commands as dyncmd.
36959 (grub_cmd_normal): Use new command interface, register rescue,
36960 unregister normal at entry, register normal, unregister rescue at exit.
36961
36962 * include/grub/list.h (grub_list_test_t): New type.
36963 (grub_list_iterate): Return int instead of void.
36964 (grub_list_insert): New function.
36965 (GRUB_AS_NAMED_LIST_P): New macro.
36966 (GRUB_AS_PRIO_LIST): Likewise.
36967 (GRUB_AS_PRIO_LIST_P): Likewise.
36968 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
36969 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
36970 (grub_prio_list): New structure.
36971 (grub_prio_list_insert): New function.
36972 (grub_prio_list_remove): New inline function.
36973
36974 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
36975 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
36976 (GRUB_COMMAND_FLAG_MENU): Likewise.
36977 (GRUB_COMMAND_FLAG_BOTH): Likewise.
36978 (GRUB_COMMAND_FLAG_TITLE): Likewise.
36979 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
36980 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
36981 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
36982 (grub_command): Likewise.
36983 (grub_register_command): Likewise.
36984 (grub_command_find): Likewise.
36985 (grub_iterate_commands): Likewise.
36986 (grub_command_init): Likewise.
36987 (grub_arg_parse): Likewise.
36988 (grub_arg_show_help): Likewise.
36989
36990 * include/grub/rescue.h (grub_rescue_register_command): Removed.
36991 (grub_rescue_unregister_command): Likewise.
36992
36993 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
36994 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
36995 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
36996
36997 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
36998 grub_rescue_cmd_initrd.
36999 * include/grub/i386/loader.h: Likewise.
37000 * include/grub/x86_64/loader.h: Likewise.
37001
37002 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
37003
1f4147aa 370042009-03-21 Bean <bean123ch@gmail.com>
37005
37006 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
37007 instead of stat in mingw environment.
37008
37009 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
37010
37011 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
37012
37013 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
37014 AC_CONFIG_LINKS.
37015
2156d5ba 370162009-03-21 Bean <bean123ch@gmail.com>
37017
37018 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
37019 out of range error.
37020
177b82ca 370212009-03-18 Michel Dänzer <michel@daenzer.net>
37022
37023 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
37024 checking inode flags for EXT4_EXTENTS_FLAG.
37025
14aad807 370262009-03-18 Robert Millan <rmh@aybabtu.com>
37027
37028 * loader/i386/linux.c: Include `<grub/video.h>' and
37029 `<grub/i386/pc/vbe.h>'..
37030 (grub_linux_setup_video): New function. Loosely based on the EFI one.
37031 (grub_linux32_boot): Attempt to configure video settings with
37032 grub_linux_setup_video().
37033 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
37034 to avoid grub_console_fini() which would step out of graphical mode
37035 unconditionally.
37036
8cf83a27 370372009-03-14 Robert Millan <rmh@aybabtu.com>
37038
37039 Fix build on powerpc.
37040 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
37041
40164e75 370422009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
37043
37044 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
37045 background image command.
37046
c58bc32a 370472009-03-12 Colin D Bennett <colin@gibibit.com>
37048
37049 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
37050 (grub_gfxterm_putchar): Extract pairs of identical calls to
37051 draw_cursor out of conditional blocks.
37052
5415144a 370532009-03-11 Pavel Roskin <proski@gnu.org>
37054
37055 * fs/hfs.c (grub_hfs_strncasecmp): New function.
37056 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
37057
6394042e 370582009-03-11 Robert Millan <rmh@aybabtu.com>
37059
37060 * loader/i386/multiboot_elfxx.c
37061 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
37062
b7b50e5f 370632009-03-11 Felix Zielcke <fzielcke@z-51.de>
37064
37065 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
37066 `kern/handler.c'.
37067
1ca7fc96 370682009-03-11 Robert Millan <rmh@aybabtu.com>
37069
37070 * loader/i386/multiboot.c (code_size): New variable.
37071 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 37072 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 37073 4-byte alignment to MBI and others by increasing
7d074e3c 37074 `boot_loader_name_length' appropriately.
1ca7fc96 37075
37076 * loader/i386/multiboot_elfxx.c
37077 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
37078
a83ea1d2 370792009-03-09 Felix Zielcke <fzielcke@z-51.de>
37080
37081 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
37082 `fs/ext2.c'.
37083
aa9f3bff 370842009-03-08 Robert Millan <rmh@aybabtu.com>
37085
37086 Make loader/i386/linux.c usable on i386-pc again.
37087
37088 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
37089 memory to heap.
37090 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
37091 `#error' stanza.
37092
d8b3b60e 370932009-03-07 Bean <bean123ch@gmail.com>
37094
37095 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
37096 allocation.
37097
b362c9e9 370982009-03-06 Robert Millan <rmh@aybabtu.com>
37099
37100 Fix display issue on terminals with screen size other than 80x25
37101 (e.g. gfxterm with resolution higher than 640x480).
37102
37103 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 37104 position relative to the center of the terminal instead of relying
b362c9e9 37105 on a hardcoded offset.
37106
9304eef1 371072009-03-04 Robert Millan <rmh@aybabtu.com>
37108
37109 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
37110 installed.
37111
37112 * Makefile.in (host_kernel): New variable.
37113 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
37114 scripts instead of just the windows one.
37115 * configure.ac: Initialize and AC_SUBST `host_kernel'.
37116
eabc95fb 371172009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 37118
37119 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
37120 `kern/handler.c'.
37121 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37122 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37123 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37124 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37125 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37126 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37127
ceb1223c 371282009-03-04 Felix Zielcke <fzielcke@z-51.de>
37129
37130 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
37131 or if there's no space for the disk label and print the partition number on a
37132 invalid magic.
37133
4910684a 371342009-03-04 Felix Zielcke <fzielcke@z-51.de>
37135
37136 * util/misc.c: Include <time.h>.
37137 (grub_millisleep): New function.
37138
7e9ca17a 371392009-03-04 Bean <bean123ch@gmail.com>
37140
37141 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
37142 another option -mno-red-zone.
37143
37144 * commands/handler.c: Change module description.
37145
37146 * kern/handler.c: Add missing space at the end of description line.
37147
37148 * kern/list.c: Likewise.
37149
f501677c 371502009-03-03 Robert Millan <rmh@aybabtu.com>
37151
37152 Move more components to the relocation area, and fix mbi pointer
37153 handling to use the destination rather than the origin (thanks to
37154 Vladimir Serbinenko for spotting).
37155
37156 * loader/i386/multiboot.c (mbi_dest): New variable.
37157 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
37158 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
37159 relocation area.
37160
9902d047 371612009-03-01 Bean <bean123ch@gmail.com>
37162
50fb7002 37163 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 37164 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
37165 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
37166 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
37167
37168 * loader/i386/efi/linux.c (acpi_guid): New variable.
37169 (acpi_guid): Likewise.
37170 (EBDA_SEG_ADDR): New constant.
37171 (LOW_MEM_ADDR): Likewise.
37172 (FAKE_EBDA_SEG): Likewise.
37173 (fake_bios_data): New function.
37174 (grub_linux_boot): Call fake_bios_data.
37175
71b9f361 371762009-03-01 Bean <bean123ch@gmail.com>
37177
37178 * commands/terminal.c: Removed.
37179
37180 * commands/handler.c: New file.
37181
37182 * include/grub/list.h: Likewise.
37183
37184 * include/grub/handler.h: Likewise.
37185
37186 * kern/list.c: Likewise.
37187
37188 * kern/handler.c: Likewise.
37189
37190 * kern/term.h: Include header file <grub/handler.h>.
37191 (grub_term_input): Move next field to the beginning.
37192 (grub_term_output): Likewise.
37193 (grub_term_input_class): New variable.
37194 (grub_term_output_class): Likewise.
37195 (grub_term_register_input): Changed to inline function.
37196 (grub_term_register_output): Likewise.
37197 (grub_term_unregister_input): Likewise.
37198 (grub_term_unregister_output): Likewise.
37199 (grub_term_set_current_input): Likewise.
37200 (grub_term_set_current_output): Likewise.
37201 (grub_term_get_current_input): Likewise.
37202 (grub_term_get_current_output): Likewise.
37203 (grub_term_iterate_input): Removed.
37204 (grub_term_iterate_output): Likewise.
37205
37206 * kern/term.c (grub_term_list_input): Removed.
37207 (grub_term_list_output): Likewise.
37208 (grub_term_input_class): New variable.
37209 (grub_term_output_class): Likewise.
50fb7002 37210 (grub_cur_term_input): Change variable as macro.
71b9f361 37211 (grub_cur_term_output): Likewise.
37212 (grub_term_register_input): Removed.
37213 (grub_term_register_output): Likewise.
37214 (grub_term_unregister_input): Likewise.
37215 (grub_term_unregister_output): Likewise.
37216 (grub_term_set_current_input): Likewise.
37217 (grub_term_set_current_output): Likewise.
37218 (grub_term_iterate_input): Likewise.
37219 (grub_term_iterate_output): Likewise.
37220 (grub_term_get_current_input): Likewise.
37221 (grub_term_get_current_output): Likewise.
37222
37223 * util/grub-editenv.c: Include header file <grub/handler.h>.
37224 (grub_term_get_current_input): Removed.
37225 (grub_term_get_current_output): Likewise.
37226 (grub_term_input_class): New variable.
50fb7002 37227 (grub_term_output_class): Likewise.
71b9f361 37228
37229 * util/grub-fstest.c (grub_term_get_current_input): Removed.
37230 (grub_term_get_current_output): Likewise.
37231 (grub_term_input_class): New variable.
50fb7002 37232 (grub_term_output_class): Likewise.
71b9f361 37233
37234 * util/grub-probe.c (grub_term_get_current_input): Removed.
37235 (grub_term_get_current_output): Likewise.
37236 (grub_term_input_class): New variable.
50fb7002 37237 (grub_term_output_class): Likewise.
71b9f361 37238
37239 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
37240 (grub_term_get_current_output): Likewise.
37241 (grub_term_input_class): New variable.
50fb7002 37242 (grub_term_output_class): Likewise.
71b9f361 37243
37244 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
37245 (terminal_mod_SOURCES): Likewise.
37246 (terminal_mod_CFLAGS): Likewise.
37247 (terminal_mod_LDFLAGS): Likewise.
37248
37249 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
37250 handler.c.
37251 (kernel_img_SOURCES): Add list.c and handler.c.
37252 (kernel_img_HEADERS): Add list.h and handler.h.
37253
37254 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37255 handler.c.
37256 (kernel_mod_SOURCES): Add list.c and handler.c.
37257 (kernel_mod_HEADERS): Add list.h and handler.h.
37258
37259 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
37260 handler.c.
37261 (kernel_elf_SOURCES): Add list.c and handler.c.
37262 (kernel_elf_HEADERS): Add list.h and handler.h.
37263
37264 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37265 handler.c.
37266 (kernel_elf_SOURCES): Add list.c and handler.c.
37267 (kernel_elf_HEADERS): Add list.h and handler.h.
37268
37269 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37270 handler.c.
37271 (kernel_mod_SOURCES): Add list.c and handler.c.
37272 (kernel_mod_HEADERS): Add list.h and handler.h.
37273
37274 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37275 handler.c.
37276 (kernel_elf_SOURCES): Add list.c and handler.c.
37277 (kernel_elf_HEADERS): Add list.h and handler.h.
37278
8a31787f 372792009-02-27 Robert Millan <rmh@aybabtu.com>
37280
37281 Factorize elf32 / elf64 code in Multiboot loader. This will
37282 prevent it from getting out of sync again.
37283
37284 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
37285 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
37286 grub_multiboot_load_elf64): Move from here ...
37287 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
37288 grub_multiboot_load_elf): ... to here (new file).
37289
51cd3dfc 372902009-02-27 Robert Millan <rmh@aybabtu.com>
37291
37292 * util/grub.d/10_linux.in: Rename "single-user mode" to
37293 "recovery mode".
37294
6e8c9c3a 372952009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
37296
37297 Don't leak in SCSI code.
37298 * disk/scsi.c (grub_scsi_close): free `scsi'.
37299
4b6bf4f9 373002009-02-27 Robert Millan <rmh@aybabtu.com>
37301
37302 * loader/i386/pc/multiboot.c: Move from here ...
37303 * loader/i386/multiboot.c: ... to here. Update all users.
37304
b9413424 373052009-02-27 Robert Millan <rmh@aybabtu.com>
37306
37307 Patch from Alexandre Bique <bique.alexandre@gmail.com>
37308 * util/i386/pc/grub-setup.c (setup): Fix directory path.
37309
50fb7002 373102009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 37311
37312 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
37313 b-tree.
37314
8cc50345 373152009-02-27 Robert Millan <rmh@aybabtu.com>
37316
37317 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
37318 `0x' qualifier as 0 when base is specified as parameter).
37319
6e09b8b7 373202009-02-24 Bean <bean123ch@gmail.com>
37321
37322 * configure.ac: Check for -mcmodel=large in x86_64 target.
37323
37324 * include/grub/efi/api.h (efi_call_10): New macro.
37325 (efi_wrap_10): New function.
37326
37327 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
37328 (GRUB_PE32_REL_BASED_HIGH): Likewise.
37329 (GRUB_PE32_REL_BASED_LOW): Likewise.
37330 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
37331 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
37332 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
37333 (GRUB_PE32_REL_BASED_SECTION): Likewise.
37334 (GRUB_PE32_REL_BASED_REL): Likewise.
37335 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
37336 (GRUB_PE32_REL_BASED_DIR64): Likewise.
37337 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
37338
37339 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
37340 issue.
37341
37342 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
37343 (efi_wrap_10): New function.
37344
37345 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
37346
37347 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
37348 MB/MBP model (NV chipset).
37349 (devdata_devs): Add devpath_5 to the list.
37350
37351 * load/i386/efi/linux.c (video_base): Remove variable.
37352 (RGB_MASK): New macro.
37353 (RGB_MAGIC): Likewise.
37354 (LINE_MIN): Likewise.
37355 (LINE_MAX): Likewise.
37356 (FBTEST_STEP): Likewise.
37357 (FBTEST_COUNT): Likewise.
37358 (fb_list): New variable.
37359 (grub_find_video_card): Remove function.
37360 (find_framebuf): New function.
37361 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
37362 line length.
37363
37364 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
37365 problem for x86_64.
37366
74b21bee 373672009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
37368
37369 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
37370
37371 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
37372 coding tool name.
37373
a455f472 373742009-02-22 Robert Millan <rmh@aybabtu.com>
37375
37376 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
37377 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
37378 in our relocation, instead of using it directly from heap. Also
37379 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
37380
6374daf3 373812009-02-21 Robert Millan <rmh@aybabtu.com>
37382
37383 Implement USB keyboard support (based on patch by Marco Gerards)
37384
37385 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
37386 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
37387 (usb_keyboard_mod_LDFLAGS): New variables.
37388
37389 * term/usb_keyboard.c: New file.
37390
8fa4ea70 373912009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
37392
37393 Corrected wrong declaration
37394
37395 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
37396
353976ac 373972009-02-14 Christian Franke <franke@computer.org>
37398
37399 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
37400 (grub_lspci_iter): Print class code and programming interface byte.
37401
6aa1169b 374022009-02-14 Christian Franke <franke@computer.org>
37403
37404 * gendistlist.sh: Ignore `.svn' directories.
37405
265372ca 374062009-02-14 Felix Zielcke <fzielcke@z-51.de>
37407
37408 * fs/fat.c: Add 2009 to Copyright line.
37409
9ff516f3 374102009-02-14 Christian Franke <franke@computer.org>
37411
37412 * commands/hdparm.c: New file. Provides `hdparm' command
37413 which sends ATA commands via grub_disk_ata_pass_through ().
37414
37415 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
37416
37417 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
37418 and <grub/cpu/io.h> to include/grub/ata.h.
37419 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
37420 (GRUB_CDROM_SECTOR_SIZE): Remove.
37421 (GRUB_ATA_*): Move to include/grub/ata.h.
37422 (GRUB_ATAPI_*): Likewise.
37423 (enum grub_ata_commands): Likewise.
37424 (enum grub_ata_timeout_milliseconds): Likewise.
37425 (struct grub_ata_device): Likewise.
37426 (grub_ata_regset): Likewise.
37427 (grub_ata_regget): Likewise.
37428 (grub_ata_regset2): Likewise.
37429 (grub_ata_regget2): Likewise.
37430 (grub_ata_check_ready): Likewise.
37431 (grub_ata_wait_not_busy): Remove static, exported in
37432 include/grub/ata.h.
37433 (grub_ata_wait_drq): Likewise.
37434 (grub_ata_pio_read): Likewise.
37435
37436 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
37437 function for hdparm.mod.
37438
37439 * include/grub/ata.h: New file, contains declarations from
37440 disk/ata.c.
37441 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
37442
37443 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
37444 (grub_disk_ata_pass_through): New exported variable.
37445
37446 * kern/disk.c (grub_disk_ata_pass_through): New variable.
37447
772e23da 374482009-02-13 Colin D Bennett <colin@gibibit.com>
37449
37450 Support multiple fallback entries, and provide an API to support
37451 executing default+fallback menu entries. Renamed the `terminal' menu
37452 viewer to `text'.
37453
37454 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
37455 variable declaration.
37456 (grub_menu_execute_callback): New structure declaration.
37457 (grub_menu_execute_callback_t): New typedef.
37458 (grub_menu_execute_with_fallback): New function declaration.
37459 (grub_menu_get_entry): Likewise.
37460 (grub_menu_get_timeout): Likewise.
37461 (grub_menu_set_timeout): Likewise.
37462
37463 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
37464
37465 * normal/menu.c (grub_wait_after_message): Moved to
37466 `normal/menu_text.c'.
37467 (draw_border): Likewise.
37468 (print_message): Likewise.
37469 (print_entry): Likewise.
37470 (print_entries): Likewise.
37471 (grub_menu_init_page): Likewise.
37472 (get_entry_number): Likewise.
37473 (print_timeout): Likewise.
37474 (run_menu): Likewise.
37475 (grub_menu_execute_entry): Likewise.
37476 (show_text_menu): Likewise.
37477 (get_and_remove_first_entry_number): New function.
37478 (grub_menu_execute_with_fallback): Likewise.
37479 (get_entry): Renamed to ...
37480 (grub_menu_get_entry): .. this and made it global.
37481 (get_timeout): Renamed to ...
37482 (grub_menu_get_timeout): ... this and made it global.
37483 (set_timeout): Renamed to ...
37484 (grub_menu_set_timeout): ... this and made it global.
37485 (grub_normal_terminal_menu_viewer): Renamed to ...
37486 (grub_normal_text_menu_viewer): ... this.
37487
37488 * normal/menu_text.c: New file. Extracted text-menu-specific code
37489 from normal/menu.c.
37490
37491 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
37492 (normal_mod_SOURCES): Likewise.
37493
37494 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37495 (normal_mod_SOURCES): Likewise.
37496
37497 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37498 (normal_mod_SOURCES): Likewise.
37499
37500 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
37501 (normal_mod_SOURCES): Likewise.
37502
37503 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37504 (normal_mod_SOURCES): Likewise.
37505
37506 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37507 (normal_mod_SOURCES): Likewise.
37508
37509 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37510 (normal_mod_SOURCES): Likewise.
37511
16ac430e 375122009-02-11 Robert Millan <rmh@aybabtu.com>
37513
37514 * util/grub.d/00_header.in: Update old reference to `font' command.
37515
06ff20fc 375162009-02-10 Felix Zielcke <fzielcke@z-51.de>
37517
37518 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
37519
37520 Based on patch from Javier Martín.
37521
96da9407 375222009-02-09 Felix Zielcke <fzielcke@z-51.de>
37523
37524 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 37525 to avoid false positives with FAT.
96da9407 37526 (grub_fstest_SOURCES): Likewise.
37527 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37528 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37529 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37530 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37531 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37532 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37533
6dca6fe4 375342009-02-09 Felix Zielcke <fzielcke@z-51.de>
37535
06ff20fc 37536 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 37537 bpb.version_specific.fat12_or_fat16.fstype and
37538 bpb.version_specific.fat32.fstype.
37539
2550c62f 375402009-02-08 Robert Millan <rmh@aybabtu.com>
37541
be110b30 37542 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 37543
56978920 375442009-02-08 Robert Millan <rmh@aybabtu.com>
37545
37546 * Makefile.in (host_os, host_cpu): New variables.
37547 (target_os): Remove. Update all users.
37548
d64399b5 375492009-02-08 Marco Gerards <marco@gnu.org>
37550
37551 * Makefile.in (enable_grub_emu_usb): New variable.
37552 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
37553 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
37554 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
37555 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
37556 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
37557 `usbtest.mod' and `usbms.mod'.
37558 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
37559 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
37560 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
37561 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
37562 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
37563 variables.
37564
37565 * disk/usbms.c: New file.
37566
37567 * include/grub/usb.h: Likewise.
37568
37569 * include/grub/usbtrans.h: Likewise.
37570
37571 * include/grub/usbdesc.h: Likewise.
37572
37573 * bus/usb/usbtrans.c: Likewise.
37574
37575 * bus/usb/ohci.c: Likewise.
37576
37577 * bus/usb/uhci.c: Likewise.
37578
37579 * bus/usb/usbhub.c: Likewise.
37580
37581 * bus/usb/usb.c: Likewise.
37582
37583 * commands/usbtest.c: Likewise.
37584
37585 * util/usb.c: Likewise.
50fb7002 37586
d64399b5 37587 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
37588
37589 * configure.ac: Test for libusb presence.
50fb7002 37590
d64399b5 37591 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
37592
2b40d6bb 375932009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
37594
37595 * kern/mm.c: Add more comments.
37596
73a4ce81 375972009-02-08 Robert Millan <rmh@aybabtu.com>
37598
37599 Patch from Javier Martín.
37600 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
37601 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
37602
f821ce59 376032009-02-08 Robert Millan <rmh@aybabtu.com>
37604
37605 * fs/cpio.c: Split tar functionality to ...
37606 * fs/tar.c: ... here (new file). Update all users.
37607
aebfc4b0 376082009-02-07 Robert Millan <rmh@aybabtu.com>
37609
37610 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
37611 backward-incompatible features.
37612
37613 Based on patch from Javier Martín, with some adjustments.
37614
50fb7002 376152009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 37616
37617 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
37618
0bb5115e 376192009-02-07 Robert Millan <rmh@aybabtu.com>
37620
37621 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
37622 position of `disk/lvm.c' to ensure grub_init_all() always picks it
37623 after the RAID stuff.
37624
38a0f8e7 376252009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
37626
50fb7002 37627 Fixes problem when running vbetest command as reported by
38a0f8e7 37628 Vladimir Serbinenko <phcoder@gmail.com>.
37629
37630 * (grub_vbe_set_video_mode): Fixed problem with text modes.
37631
3143cc1c 376322009-02-04 Felix Zielcke <fzielcke@z-51.de>
37633
37634 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
37635 /dev/md/NpN style mdraid devices.
37636
9cba6fce 376372009-02-03 Felix Zielcke <fzielcke@z-51.de>
37638
37639 * util/unifont2pff.rb: Remove.
37640
e507a2c1 376412009-02-03 Felix Zielcke <fzielcke@z-51.de>
37642
37643 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
37644 `#'.
37645
d2c2b4cd 376462009-02-03 Felix Zielcke <fzielcke@z-51.de>
37647
37648 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
37649 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37650 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37651 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37652 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37653 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37654 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37655
b4315fb0 376562009-02-02 Christian Franke <franke@computer.org>
37657
37658 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
37659
de3aa260 376602009-02-01 Felix Zielcke <fzielcke@z-51.de>
37661
7c3ff286 37662 * INSTALL: Note that we now require at least autoconf 2.59 and
37663 that LZO is optional.
de3aa260 37664
825a182b 376652009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37666
37667 Base on patch on bug #24154 created by Tomas Tintera
37668 <trosos@seznam.cz>.
37669
37670 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
37671
a69ef770 376722009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
37673
7c3ff286 37674 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 37675 <bero@arklinux.org>.
37676
37677 * normal/parser.y (script_init): Add missing semicolon.
37678
6fa42fa6 376792009-01-31 Colin D Bennett <colin@gibibit.com>
37680
7c3ff286 37681 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 37682 (free_menu_entry_classes): Added.
37683 (grub_normal_menu_addentry): Added class property handling.
37684 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
37685 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
37686
37687 * normal/menu_viewer.c: New file.
37688
37689 * normal/menu.c (run_menu_entry): Renamed to ...
37690 (grub_menu_execute_entry): ... this and made it as global.
37691 (grub_menu_run): Renamed to ...
37692 (show_text_menu): ... this and made it local.
37693 (show_text_menu): Adapt to new function names.
37694 (grub_normal_terminal_menu_viewer): New global variable.
37695
37696 * include/grub/menu.h: New file.
37697
37698 * include/grub/menu_viewer.h: New file.
37699
37700 * include/grub/normal.h: Added include to grub/menu.h.
37701 (grub_menu_entry): Moved to include/grub/menu.h.
37702 (grub_menu_entry_t): Likewise.
37703 (grub_menu): Likewise.
37704 (grub_menu_t): Likewise.
37705 (grub_normal_terminal_menu_viewer): Added.
37706 (grub_menu_execute_entry): Likewise.
37707 (grub_menu_run): Removed.
37708
37709 * DISTLIST: Added include/grub/menu.h.
37710 Added include/grub/menu_viewer.h.
37711 Added normal/menu_viewer.c.
37712
377132009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
37714
37715 * normal/execute.c (grub_script_execute_menuentry): Changed to use
37716 arglist for menutitle arguments.
37717
37718 * normal/main.c (grub_normal_menu_addentry): Likewise.
37719
37720 * normal/parser.y (menuentry): Likewise.
37721
37722 * normal/script.c (grub_script_create_cmdmenu): Likewise.
37723
37724 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
37725 (grub_script_create_cmdmenu): Likewise.
37726
37727 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
37728
37729 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
37730 changes.
37731
37732 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
37733
37734 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
37735
37736 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
37737
37738 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37739
37740 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37741
37742 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
37743
56192c23 377442009-01-30 Christian Franke <franke@computer.org>
37745
37746 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
37747 in option help text.
37748
d72521b3 377492009-01-27 Pavel Roskin <proski@gnu.org>
37750
37751 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
37752
994b5e84 377532009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37754
37755 * commands/lsmmap.c: Add include to grub/machine/memory.h.
37756
37757 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
37758
37759 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
37760 unregister function.
37761
6a7eab2c 377622009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
37763
37764 * disk/scsi.c (grub_scsi_read): Fix sign problem.
37765
37766 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
37767
37768 * util/grub-mkfont.c (usage): Fix typo.
37769
37770 * util/elf/grub-mkimage.c (load_modules): Fix warning.
37771
1806b56e 377722009-01-26 Daniel Mierswa <impulze@impulze.org>
37773
3fb18f09 37774 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
37775
336e1fb9 37776 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
37777
1806b56e 37778 * kern/misc.c (grub_strcasecmp): New function.
37779 (grub_strcasecmp): Use grub_size_t instead of int for length.
37780 Fix return value.
37781 * include/grub/misc.h: Update function prototypes.
37782
580b2a0f 377832009-01-26 Robert Millan <rmh@aybabtu.com>
37784
37785 * configure.ac: Fix cross-compilation check.
ef257b36 37786
d31c24f1 377872009-01-22 Christian Franke <franke@computer.org>
37788
37789 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
37790 (precision) digit string. Allow `.format2' without `format1' (width).
37791 Limit input chars for `%s' output to `format2' if specified. This is
37792 compatible with standard printf ().
37793
3138b44c 377942009-01-22 Christian Franke <franke@computer.org>
37795
37796 * disk/ata.c (grub_ata_wait_status): Replace by ...
37797 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
37798 other status bits may be invalid while BSY is asserted.
37799 (grub_ata_check_ready): New function.
37800 (grub_ata_cmd): Removed.
37801 (grub_ata_wait_drq): New function.
37802 (grub_ata_strncpy): Remove inline.
37803 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
37804 and error check now done by grub_ata_wait_drq ().
37805 (grub_ata_pio_write): Likewise.
37806 (grub_atapi_identify): Set DEV before check for !BSY. Use
37807 grub_ata_wait_drq () to wait for data.
37808 (grub_ata_device_initialize): Add status register check to
37809 detect missing SATA slave devices. Add debug messages.
37810 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
37811 (grub_atapi_packet): Set DEV before check for !BSY. Replace
37812 transfer loop by grub_ata_pio_write ().
37813 (grub_ata_identify): Set DEV before check for !BSY. Use
37814 grub_ata_wait_drq () to wait for data.
ef257b36 37815 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 37816 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
37817 read/write in one loop. Fix invalid command on write. Fix incomplete
37818 command on (size % batch) == 0. Add missing error check after write of
37819 last block. Add debug messages.
37820 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
37821
59a64ef6 378222009-01-19 Christian Franke <franke@computer.org>
37823
37824 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
37825 (GRUB_ATAPI_IREASON_*): Likewise.
37826 (grub_ata_pio_write): Fix timeout error return.
37827 (grub_atapi_identify): Add grub_ata_wait () after cmd.
37828 (grub_atapi_wait_drq): New function.
37829 (grub_atapi_packet): New parameter `size'.
37830 Use grub_atapi_wait_drq () and direct write instead of
37831 grub_ata_pio_write ().
37832 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
37833 reads the number of bytes requested by the device for each DRQ
37834 assertion.
37835 (grub_atapi_write): Remove old implementation, return not
37836 implemented instead.
37837
1cfe20b3 378382009-01-19 Christian Franke <franke@computer.org>
37839
37840 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
37841 of 512 to calculate data size.
37842 (grub_scsi_read12): Likewise.
37843 (grub_scsi_write10): Likewise.
37844 (grub_scsi_write12): Likewise.
37845 (grub_scsi_read): Adjust size according to blocksize.
37846 Add checks for invalid blocksize and unaligned transfer.
37847
bee5fe5d 378482009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
37849
37850 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
37851
ef257b36 37852 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 37853 width glyphs.
37854
3e643f8c 378552009-01-19 Robert Millan <rmh@aybabtu.com>
37856
37857 * config.guess: Update to latest version from config git.
37858 * config.sub: Likewise.
37859
4fa80998 378602009-01-17 Felix Zielcke <fzielcke@z-51.de>
37861
37862 * Makefile.in: Change font compilation to use new grub-mkfont instead
37863 of java version.
37864
37865 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
37866 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
37867 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37868 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
37869 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
37870 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
37871 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
37872 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
37873 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
37874
7086085b 378752009-01-16 Christian Franke <franke@computer.org>
37876
37877 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
37878 (enum grub_ata_timeout_milliseconds): New enum.
37879 (grub_ata_wait_status): Add parameter milliseconds.
37880 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
37881 recovery from timed-out commands.
37882 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
37883 return grub_errno instead of REG_ERROR.
37884 (grub_ata_pio_write): Add parameter milliseconds.
37885 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
37886 Pass milliseconds to grub_ata_wait_status () and
37887 grub_ata_pio_read ().
37888 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
37889 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
37890 grub_ata_wait_status (). Fix IDENTIFY timeout check.
37891 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
37892 It is not suitable for device detection, because DEV bit is ignored,
37893 the command may run too long, and not all devices set the signature
37894 properly.
37895 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
37896 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
37897 Fix device selection, DEV bit must be set first to address the registers
37898 of the correct device.
37899 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
37900 grub_ata_pio_read/write ().
37901 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
37902 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
37903
4a412913 379042009-01-13 Carles Pina i Estany <carles@pina.cat>
37905
37906 * util/grub-editenv.c (main): Use fseeko(), not fseek().
37907
7795c55e 379082009-01-13 Bean <bean123ch@gmail.com>
d913988c 37909
37910 * util/grub-mkfont.c (write_font): forget to remove some debug code.
37911
7795c55e 379122009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 37913
37914 * Makefile.in: (enable_grub_mkfont): New variable.
37915 (freetype_cflags): Likewise.
37916 (freetype_libs): Likewise.
37917
37918 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
37919 (grub_mkfont_SOURCES): New variable.
37920 (grub_mkfont_CFLAGS): Likewise.
37921 (grub_mkfont_LDFLAGS): Likewise.
37922
37923 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
37924 library if `--enable-grub-mkfont' is requested.
37925 (enable_grub_mkfont): New variable.
37926 (freetype_cflags): Likewise.
37927 (freetype_libs): Likewise.
37928
37929 * util/grub-mkfont.c: New file.
37930
093af1fe 379312009-01-12 Christian Franke <franke@computer.org>
37932
37933 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
37934 mode check. Fix setting of compat_use[].
37935
f36cc108 379362009-01-10 Robert Millan <rmh@aybabtu.com>
37937
37938 Update a few copyright years which we forgot to do in 2008 (only for
37939 files whose changes made in 2008 were copyright-significant)
37940
37941 * Makefile.in: Add 2008 to Copyright line.
37942 * disk/ieee1275/ofdisk.c: Likewise.
37943 * disk/efi/efidisk.c: Likewise.
37944 * kern/dl.c: Likewise.
37945 * kern/sparc64/ieee1275/init.c: Likewise.
37946 * kern/mm.c: Likewise.
37947 * kern/efi/mm.c: Likewise.
37948 * boot/i386/pc/boot.S: Likewise.
37949 * genfslist.sh: Likewise.
37950 * fs/iso9660.c: Likewise.
37951 * fs/hfs.c: Likewise.
37952 * fs/jfs.c: Likewise.
37953 * fs/minix.c: Likewise.
37954 * fs/ufs.c: Likewise.
37955 * gensymlist.sh.in: Likewise.
37956 * genkernsyms.sh.in: Likewise.
37957 * include/grub/misc.h: Likewise.
37958 * include/grub/types.h: Likewise.
37959 * include/grub/symbol.h: Likewise.
37960 * include/grub/elf.h: Likewise.
37961 * include/grub/kernel.h: Likewise.
37962 * include/grub/disk.h: Likewise.
37963 * include/grub/dl.h: Likewise.
37964 * include/grub/i386/linux.h: Likewise.
37965 * include/grub/i386/pc/biosdisk.h: Likewise.
37966 * include/grub/efi/api.h: Likewise.
37967 * include/grub/efi/pe32.h: Likewise.
37968 * include/grub/util/misc.h: Likewise.
37969 * normal/execute.c: Likewise.
37970 * normal/arg.c: Likewise.
37971 * normal/completion.c: Likewise.
37972 * normal/lexer.c: Likewise.
37973 * normal/parser.y: Likewise.
37974 * normal/misc.c: Likewise.
37975 * commands/i386/pc/vbeinfo.c: Likewise.
37976 * commands/hexdump.c: Likewise.
37977 * commands/terminal.c: Likewise.
37978 * commands/ls.c: Likewise.
37979 * commands/help.c: Likewise.
37980 * partmap/pc.c: Likewise.
37981 * loader/efi/chainloader.c: Likewise.
37982 * loader/multiboot_loader.c: Likewise.
37983 * loader/i386/pc/multiboot2.c: Likewise.
37984 * term/efi/console.c: Likewise.
37985 * term/i386/pc/serial.c: Likewise.
37986 * util/lvm.c: Likewise.
37987 * util/console.c: Likewise.
37988 * util/i386/efi/grub-mkimage.c: Likewise.
37989 * util/raid.c: Likewise.
37990
7f02114b 379912009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
37992
37993 * commands/videotest.c: Removed include to grub/machine/memory.h.
37994
37995 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
37996 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
37997 (video_mod_SOURCES): Removed.
37998 (video_mod_CFLAGS): Likewise.
37999 (video_mod_LDFLAGS): Likewise.
38000 (gfxterm_mod_SOURCES): Likewise.
38001 (gfxterm_mod_CFLAGS): Likewise.
38002 (gfxterm_mod_LDFLAGS): Likewise.
38003 (videotest_mod_SOURCES): Likewise.
38004 (videotest_mod_CFLAGS): Likewise.
38005 (videotest_mod_LDFLAGS): Likewise.
38006 (bitmap_mod_SOURCES): Likewise.
38007 (bitmap_mod_CFLAGS): Likewise.
38008 (bitmap_mod_LDFLAGS): Likewise.
38009 (tga_mod_SOURCES): Likewise.
38010 (tga_mod_CFLAGS): Likewise.
38011 (tga_mod_LDFLAGS): Likewise.
38012 (jpeg_mod_SOURCES): Likewise.
38013 (jpeg_mod_CFLAGS): Likewise.
38014 (jpeg_mod_LDFLAGS): Likewise.
38015 (png_mod_SOURCES): Likewise.
38016 (png_mod_CFLAGS): Likewise.
38017 (png_mod_LDFLAGS): Likewise.
38018
38019 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
38020 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
38021 (video_mod_SOURCES): Added.
38022 (video_mod_CFLAGS): Likewise.
38023 (video_mod_LDFLAGS): Likewise.
38024 (videotest_mod_SOURCES): Likewise.
38025 (videotest_mod_CFLAGS): Likewise.
38026 (videotest_mod_LDFLAGS): Likewise.
38027 (bitmap_mod_SOURCES): Likewise.
38028 (bitmap_mod_CFLAGS): Likewise.
38029 (bitmap_mod_LDFLAGS): Likewise.
38030 (tga_mod_SOURCES): Likewise.
38031 (tga_mod_CFLAGS): Likewise.
38032 (tga_mod_LDFLAGS): Likewise.
38033 (jpeg_mod_SOURCES): Likewise.
38034 (jpeg_mod_CFLAGS): Likewise.
38035 (jpeg_mod_LDFLAGS): Likewise.
38036 (png_mod_SOURCES): Likewise.
38037 (png_mod_CFLAGS): Likewise.
38038 (png_mod_LDFLAGS): Likewise.
38039 (gfxterm_mod_SOURCES): Likewise.
38040 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 38041 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 38042
38043 * term/gfxterm.c: Removed include to grub/machine/memory.h,
38044 grub/machine/console.h.
38045
644fff97 380462009-01-04 Jerone Young <jerone@gmail.com>
38047
38048 Make on screen instructions clearer
38049
38050 Based on patch created by Jidanni <jidanni@jidanni.org>
38051
38052 * normal/menu.c: print clearer instructions on the screen
38053
1e901a75 380542009-01-02 Colin D Bennett <colin@gibibit.com>
38055
38056 New font engine.
34c44600 38057
1e901a75 38058 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
38059 build system and fixed gfxterm.c to work with different sized fonts.
38060
38061 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 38062
1e901a75 38063 * configure: Re-generated.
34c44600 38064
1e901a75 38065 * DISTLIST: Removed font/manager.c.
38066 Added font/font.c.
38067 Added font/font_cmd.c.
34c44600 38068
1e901a75 38069 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
38070 compilation.
34c44600 38071
1e901a75 38072 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 38073
38074 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 38075
38076 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 38077
1e901a75 38078 * normal/menu.c: Likewise.
34c44600 38079
1e901a75 38080 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
38081 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 38082
1e901a75 38083 * include/grub/font.h: Replaced with new file.
34c44600 38084
1e901a75 38085 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
38086 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
38087 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
38088 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
38089 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 38090 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 38091 fg_red, fg_green, fg_blue, fg_alpha.
38092 (grub_video_adapter): Removed blit_glyph.
34c44600 38093 (grub_video_blit_glyph): Removed.
38094
1e901a75 38095 * font/manager.c: Removed file.
34c44600 38096
38097 * font/font.c: New file.
38098
1e901a75 38099 * font/font_cmd.c: Likewise.
34c44600 38100
1e901a75 38101 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 38102
1e901a75 38103 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
38104 (grub_video_vbe_map_rgba): Likewise.
38105 (grub_video_vbe_unmap_color_int): Likewise.
38106 (grub_video_vbe_blit_glyph): Removed.
38107 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 38108
1e901a75 38109 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
38110 (get_pixel): Likewise.
34c44600 38111 (set_pixel): Likewise.
38112
1e901a75 38113 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 38114
1e901a75 38115 * term/gfxterm.c: Adapted to new font engine.
34c44600 38116
1e901a75 38117 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 38118
1e901a75 38119 * term/i386/pc/vga.c: Likewise.
34c44600 38120
1e901a75 38121 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 38122
1e901a75 38123 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 38124
1e901a75 38125 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 38126
1e901a75 38127 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 38128
1e901a75 38129 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 38130
1e901a75 38131 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 38132
1e901a75 38133 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 38134
1e901a75 38135 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 38136
1e901a75 38137 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38138
38139 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 38140
1e901a75 38141 * util/grub-mkconfig_lib.in: Changed font extension.
38142
278922e8 381432008-12-28 Felix Zielcke <fzielcke@z-51.de>
38144
38145 * util/getroot.c (grub_util_get_grub_dev): Add support for
38146 /dev/md/dNNpNN style partitionable mdraid devices.
38147
3ced05cf 381482008-12-12 Alex Smith <alex@alex-smith.me.uk>
38149
38150 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
38151 at a time limit of the PXE TFTP API correctly.
38152 (grub_pxefs_close): Likewise.
38153
7fd0ee30 381542008-11-29 Robert Millan <rmh@aybabtu.com>
38155
34c44600 38156 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 38157 grub_ata_device_initialize() calls.
38158
34c44600 381592008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 38160
38161 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
38162 iteration failed.
38163 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
38164
89313780 381652008-11-28 Robert Millan <rmh@aybabtu.com>
38166
38167 Fix build on powerpc-ieee1275. Based on patch created by
38168 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
38169 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38170 `kern/ieee1275/mmap.c'.
38171 * include/grub/powerpc/ieee1275/memory.h: New file.
38172
15257703 38173 Provide grub-install on coreboot.
38174 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
38175 (grub_install_SOURCES): New variable.
38176 * util/i386/pc/grub-install.in: Add a few condition checks to make it
38177 usable on coreboot.
38178
9fc5388a 381792008-11-25 Felix Zielcke <fzielcke@z-51.de>
38180
38181 * util/grub-fstest.c (grub_term_get_current_input): Change return type
38182 to `grub_term_input_t'.
38183 (grub_term_get_current_output): Change return type to
38184 `grub_term_output_t'.
38185
bc3a2f31 381862008-11-22 Robert Millan <rmh@aybabtu.com>
38187
34c44600 38188 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 38189 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
38190 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
38191 grub_vga_text_cls().
38192
80fc88f2 38193 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 38194 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 38195
cbf36fd3 38196 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
38197 to 0x200000 (avoids trouble with some OFW implementations, and matches
38198 with the one in Yaboot).
38199 Reported by Manoel Abranches
38200
73e8e268 382012008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 38202
38203 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
38204 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
38205
73e8e268 38206 * util/grub-mkconfig_lib.in (grub_warn): New function.
38207 (convert_system_path_to_grub_path): Use grub_warn() when issuing
38208 warnings, to obtain consistent formatting.
38209 * util/grub.d/00_header.in: Likewise.
38210 * util/update-grub_lib.in: Likewise.
38211
e94045a1 38212 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 38213 Move comment text to `#error' stanza.
e94045a1 38214
79d29fd7 38215 Harmonize ieee1275's grub_available_iterate() with the generic
38216 grub_machine_mmap_iterate() interface (fixes a recently-introduced
38217 build problem on i386-ieee1275):
38218 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
38219 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
38220 parameter `type'. Update all users of this function.
38221 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38222 `kern/ieee1275/mmap.c'.
38223 * kern/ieee1275/init.c
38224 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
38225 with ...
38226 (grub_machine_mmap_iterate): ... this.
38227 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
38228 return type to `grub_err_t'. Update all implementations of this
38229 function prototype.
38230 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
38231 Likewise.
38232
60d6b16e 38233 Add `lsmmap' command (lists firmware-provided memory map):
38234 * commands/lsmmap.c: New file.
38235 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
38236 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
38237 variables.
38238 * conf/powerpc-ieee1275.rmk: Likewise.
38239 * conf/i386-coreboot.rmk: Likewise.
38240 * conf/i386-ieee1275.rmk: Likewise.
38241
ebaaf49b 382422008-11-19 Robert Millan <rmh@aybabtu.com>
38243
38244 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 38245 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
38246 constraints to initrd allocation (based on code from
38247 loader/i386/pc/linux.c). Without them, initrd was allocated too high
38248 for Linux to find it.
ebaaf49b 38249
dfab719f 382502008-11-14 Robert Millan <rmh@aybabtu.com>
38251
38252 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
38253 order to cope with duplicate slashes.
38254
10fc3eb9 382552008-11-14 Robert Millan <rmh@aybabtu.com>
38256
38257 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
38258 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
38259 don't want to mess with lower memory, because it is used in the Linux
38260 loader.
38261
38262 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 38263 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 38264 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
38265 is in our heap (probably as a result of it being corrupted during
2f2a3442 38266 decompression). Add #error instance with comment to explain why this
38267 loader isn't currently usable on PC/BIOS.
10fc3eb9 38268
e2e07847 382692008-11-14 Robert Millan <rmh@aybabtu.com>
38270
38271 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 38272 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 38273
fe8e8d69 382742008-11-12 Robert Millan <rmh@aybabtu.com>
38275
38276 Make loader/i386/linux.c buildable on i386-pc (although disabled).
38277
38278 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
38279 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
38280 from here ...
38281 * include/grub/i386/pc/memory.h: ... to here.
38282
976b07d0 382832008-11-12 Robert Millan <rmh@aybabtu.com>
38284
38285 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
38286 split).
38287
38288 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
38289 (grub_console_cur_color, grub_console_real_putchar)
38290 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38291 (grub_console_setcolorstate, grub_console_setcolor)
38292 (grub_console_getcolor): Move from here ...
38293 * include/grub/i386/vga_common.h: ... to here (new file).
38294
38295 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
38296 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
38297 `<grub/i386/io.h>'.
38298 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
38299 `<grub/i386/vga_common.h>'.
38300
76679cd3 383012008-11-12 Robert Millan <rmh@aybabtu.com>
38302
38303 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
38304 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
38305 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
38306 variables.
38307 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38308 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
38309
38310 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
38311 grub_console_init() with call to grub_vga_text_init().
38312 (grub_machine_fini): Replace call to
38313 grub_console_fini() with call to grub_vga_text_fini() and
38314 grub_at_keyboard_fini().
38315
38316 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
38317 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38318 (grub_console_setcolorstate, grub_console_setcolor)
38319 (grub_console_getcolor): New function prototypes.
38320
38321 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
38322 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
38323 (grub_vga_text_setcursor): Static-ize.
38324 (grub_vga_text_term): New structure.
38325 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
38326
38327 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
38328 (grub_console_cur_color, grub_console_standard_color)
38329 (grub_console_normal_color, grub_console_highlight_color)
38330 (map_char, grub_console_putchar, grub_console_getcharwidth)
38331 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
38332 (grub_console_getcolor): Move from here ...
38333 * term/i386/vga_common.c: ... to here (same function names).
38334
95b841d3 383352008-11-12 Robert Millan <rmh@aybabtu.com>
38336
38337 Use newly-added Multiboot support in coreboot.
38338
38339 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38340 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
38341
38342 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
38343 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
38344 (codestart): Store the MBI in `startup_multiboot_info' when we're
38345 being loaded using Multiboot.
38346
38347 * kern/i386/coreboot/init.c (grub_machine_init): Move
38348 grub_at_keyboard_init() call to beginning of function (useful for
38349 debugging). Call grub_machine_mmap_init() before attempting to use
38350 grub_machine_mmap_iterate().
38351 (grub_lower_mem, grub_upper_mem): Move from here ...
38352 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
38353 here (new file).
38354
38355 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
38356 function prototype.
38357
761ca975 383582008-11-12 Robert Millan <rmh@aybabtu.com>
38359
38360 Fix a regression introduced by the at_keyboard.mod split. Because
38361 some terminals are default on some platforms and non-default on
38362 others, the first terminal being registered determines which is
38363 going to be default.
38364
38365 * kern/term.c (grub_term_register_input): If this is the first
38366 terminal being registered, set it as the current one.
38367 (grub_term_register_output): Likewise.
38368
38369 * term/efi/console.c (grub_console_init): Do not call
38370 grub_term_set_current_output() or grub_term_set_current_input().
38371 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
38372 * term/i386/pc/console.c (grub_console_init): Likewise.
38373 (grub_console_fini): Do not call grub_term_set_current_input()
38374 (but leave grub_term_set_current_output() to restore text mode).
38375
6c529df7 383762008-11-10 Robert Millan <rmh@aybabtu.com>
38377
38378 * util/grub.d/00_header.in: Add backward compatibility check for
38379 versions of terminal.mod that don't understand `terminal_input' or
38380 `terminal_output'.
38381
132e4113 383822008-11-09 Robert Millan <rmh@aybabtu.com>
38383
38384 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
38385 `terminal_input' / `terminal_output', not `terminal'.
38386
ac293d50 383872008-11-08 Robert Millan <rmh@aybabtu.com>
38388
38389 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 38390 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 38391
0025933a 383922008-11-08 Robert Millan <rmh@aybabtu.com>
38393
38394 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 38395 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 38396 members. Update all users.
38397 * util/console.c (grub_ncurses_term): Split in ...
38398 (grub_ncurses_term_input): ... this, and ...
38399 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 38400 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 38401
37c86336 384022008-11-08 Robert Millan <rmh@aybabtu.com>
38403
38404 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
38405 (PKGDATA): Add $(pkgdata_SRCDIR).
38406 (pkglib_BUILDDIR): New variable.
38407 (pkgdata_SRCDIR): New variable.
38408 (build_env.mk): New target.
38409 (include_DATA): New variable.
38410 (install-local): Install $(include_DATA) files in $(includedir).
38411
b6c15a2d 384122008-11-07 Pavel Roskin <proski@gnu.org>
38413
d99d46f1 38414 * gendistlist.sh: Use C locale for sorting to ensure consistent
38415 output on all systems.
38416
b6c15a2d 38417 * util/grub.d/00_header.in: Remove incorrect space before
38418 "serial".
38419
c32ee8c9 384202008-11-07 Robert Millan <rmh@aybabtu.com>
38421
38422 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
38423 per specification.
38424 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
38425 * loader/multiboot_loader.c (find_multi_boot2_header): New function
38426 (based on find_multi_boot1_header).
38427 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
38428 using find_multi_boot2_header(), and abort if neither Multiboot or
38429 Multiboot headers were found.
38430
651c29b7 384312008-11-07 Robert Millan <rmh@aybabtu.com>
38432
38433 Modularize at_keyboard.mod:
38434
38435 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
38436 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
38437 (at_keyboard_mod_LDFLAGS): New variables.
38438
38439 Actual terminal split:
38440
38441 * include/grub/term.h (struct grub_term): Split in ...
38442 (struct grub_term_input): ... this, and ...
38443 (struct grub_term_output): ... this. Update all users.
38444 (grub_term_set_current): Split in ...
38445 (grub_term_set_current_input): ... this, and ...
38446 (grub_term_set_current_output): ... this.
38447 (grub_term_get_current): Split in ...
38448 (grub_term_get_current_input): ... this, and ...
38449 (grub_term_get_current_output): ... this.
38450 (grub_term_register): Split in ...
38451 (grub_term_register_input): ... this, and ...
38452 (grub_term_register_output): ... this.
38453 (grub_term_unregister): Split in ...
38454 (grub_term_unregister_input): ... this, and ...
38455 (grub_term_unregister_output): ... this.
38456 (grub_term_iterate): Split in ...
38457 (grub_term_iterate_input): ... this, and ...
38458 (grub_term_iterate_output): ... this.
38459
38460 * kern/term.c (grub_term_list): Split in ...
38461 (grub_term_list_input): ... this, and ...
38462 (grub_term_list_output): ... this. Update all users.
38463 (grub_cur_term): Split in ...
38464 (grub_cur_term_input): ... this, and ...
38465 (grub_cur_term_output): ... this. Update all users.
38466 (grub_term_set_current): Split in ...
38467 (grub_term_set_current_input): ... this, and ...
38468 (grub_term_set_current_output): ... this.
38469 (grub_term_get_current): Split in ...
38470 (grub_term_get_current_input): ... this, and ...
38471 (grub_term_get_current_output): ... this.
38472 (grub_term_register): Split in ...
38473 (grub_term_register_input): ... this, and ...
38474 (grub_term_register_output): ... this.
38475 (grub_term_unregister): Split in ...
38476 (grub_term_unregister_input): ... this, and ...
38477 (grub_term_unregister_output): ... this.
38478 (grub_term_iterate): Split in ...
38479 (grub_term_iterate_input): ... this, and ...
38480 (grub_term_iterate_output): ... this.
38481
38482 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
38483 a check for input and one for output (and only attempt to get keys
38484 from user when input works).
38485
38486 * util/grub-probe.c (grub_term_get_current): Split in ...
38487 (grub_term_get_current_input): ... this, and ...
38488 (grub_term_get_current_output): ... this.
38489 * util/grub-fstest.c: Likewise.
38490 * util/i386/pc/grub-setup.c: Likewise.
38491 * util/grub-editenv.c: Likewise.
38492
38493 Portability adjustments:
38494
38495 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
38496 `term/i386/pc/at_keyboard.c'.
38497 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
38498 grub_keyboard_controller_init() (now handled by terminal .init).
38499 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
38500 grub_at_keyboard_init().
38501 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
38502 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
38503 at_keyboard.mod via input terminal interface).
38504 * include/grub/i386/coreboot/console.h: Convert into a stub for
38505 `<grub/i386/pc/console.h>'.
38506
38507 Migrate full terminals to new API:
38508
38509 * term/efi/console.c (grub_console_term): Split into ...
38510 (grub_console_term_input): ... this, and ...
38511 (grub_console_term_output): ... this. Update all users.
38512 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
38513 (grub_ofconsole_init): Split into ...
38514 (grub_ofconsole_init_input): ... this, and ...
38515 (grub_ofconsole_init_output): ... this.
38516 (grub_ofconsole_term): Split into ...
38517 (grub_ofconsole_term_input): ... this, and ...
38518 (grub_ofconsole_term_output): ... this. Update all users.
38519 * term/i386/pc/serial.c (grub_serial_term): Split into ...
38520 (grub_serial_term_input): ... this, and ...
38521 (grub_serial_term_output): ... this. Update all users.
38522 * term/i386/pc/console.c (grub_console_term): Split into ...
38523 (grub_console_term_input): ... this, and ...
38524 (grub_console_term_output): ... this. Update all users.
38525 (grub_console_term_input): Only enable it on PC/BIOS platform.
38526 (grub_console_init): Remove grub_keyboard_controller_init() call.
38527
38528 Migrate input terminals to new API:
38529
38530 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
38531 `i386' and `i386/pc' to enable build on x86_64 (this driver is
38532 i386-specific anyway).
38533 (grub_console_checkkey): Rename to ...
38534 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
38535 users.
38536 (grub_keyboard_controller_orig): New variable.
38537 (grub_console_getkey): Rename to ...
38538 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
38539 users.
38540 (grub_keyboard_controller_init): Static-ize. Save original
38541 controller value so that it can be restored ...
38542 (grub_keyboard_controller_fini): ... here (new function).
38543 (grub_at_keyboard_term): New structure.
38544 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
38545 functions.
38546
38547 Migrate output terminals to new API:
38548
38549 * term/i386/pc/vga.c (grub_vga_term): Change type to
38550 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38551 members. Update all users.
38552 * term/gfxterm.c (grub_video_term): Change type to
38553 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
38554 members. Update all users.
38555 * include/grub/i386/pc/console.h (grub_console_checkkey)
38556 (grub_console_getkey): Do not export (no longer needed by gfxterm,
38557 etc).
38558
38559 Migrate `terminal' command and userland tools to new API:
38560
38561 * commands/terminal.c (grub_cmd_terminal): Split into ...
38562 (grub_cmd_terminal_input): ... this, and ...
38563 (grub_cmd_terminal_output): ... this.
38564 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
38565 `terminal_input' and `terminal_output'.
38566 * util/grub.d/00_header.in: Adjust `terminal' calls to new
38567 `terminal_input' / `terminal_output' API.
38568 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
38569 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
38570 provided ${GRUB_TERMINAL}, convert it).
38571
96e5d876 385722008-11-04 Robert Millan <rmh@aybabtu.com>
38573
38574 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
38575 for FreeBSD.
38576 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
38577
556f3775 385782008-11-03 Bean <bean123ch@gmail.com>
38579
38580 * kern/elf.c (grub_elf32_load): Revert to previous code.
38581 (grub_elf64_load): Likewise.
38582
38583 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
38584
926b9823 385852008-11-01 Robert Millan <rmh@aybabtu.com>
38586
38587 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
38588 (TARGET_CPPFLAGS): Likewise.
38589 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
38590
1432e958 385912008-11-01 Carles Pina i Estany <carles@pina.cat>
38592
38593 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
38594
dba3f844 385952008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 38596
38597 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
38598 addition of objects until the code is not going to be able to fail.
38599
dba3f844 386002008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 38601
38602 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
38603 (add a missing NULL check, and correct them by moving the pointer
38604 operations after the actual check).
38605
7ab28c21 386062008-10-29 Robert Millan <rmh@aybabtu.com>
38607
38608 * util/i386/pc/grub-install.in: Handle empty string as output from
38609 make_system_path_relative_to_its_root().
38610
1b7748eb 386112008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
38612
38613 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
38614 circular metadata worst case scenario. If the metadata is circular
38615 then copy the wrap in place.
38616 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
38617 project lib/format_text/layout.h
38618 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
38619
c9618ab2 386202008-10-03 Felix Zielcke <fzielcke@z-51.de>
38621
7a36edca 38622 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 38623
bf981c62 386242008-10-03 Felix Zielcke <fzielcke@z-51.de>
38625
38626 * util/update-grub_lib.in: Mention filename in warning message.
38627
6d994591 386282008-09-29 Felix Zielcke <fzielcke@z-51.de>
38629
38630 * NEWS: Update for rename of update-grub to grub-mkconfig.
38631
18ade780 386322008-09-29 Felix Zielcke <fzielcke@z-51.de>
38633
38634 * util/update-grub_lib.in: Copy to ...
38635 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 38636 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 38637 * util/update-grub.in: Rename to ...
38638 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
38639 option. Add `--output' option to allow users to specify the generated
38640 configuration file. Default to stdout.
38641 (update_grub_dir): Rename to ...
38642 (grub_mkconfig_dir): ... this.
38643 (grub_cfg): Default to an empty string.
38644 * conf/common.rmk (update-grub): Rename to ...
38645 (grub-mkconfig): ... this.
38646 (update-grub_lib): Copy to ...
38647 (grub-mkconfig_lib): ... this.
38648 (update-grub_SCRIPTS): Copy to ...
38649 (grub-mkconfig_SCRIPTS): ... this. Update all users.
38650 (update-grub_DATA): Rename to ...
38651 (grub-mkconfig_DATA): ... this.
38652
556ce6ac 386532008-09-28 Robert Millan <rmh@aybabtu.com>
38654
38655 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
38656 to `modified'. Add the real `created' field.
38657 (grub_iso9660_uuid): Use `modified' rather than `created' for
38658 constructing the UUID.
38659
386602008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 38661
38662 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
38663 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
38664
92274e85 386652008-09-28 Bean <bean123ch@gmail.com>
38666
38667 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
38668 Thanks to Christian Franke for finding this bug.
38669
add6f17a 386702008-09-25 Robert Millan <rmh@aybabtu.com>
38671
38672 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
38673 instances of grub_util_get_disk_name() (see previous commit).
38674
d2a367b8 386752008-09-25 Robert Millan <rmh@aybabtu.com>
38676
38677 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
38678 `util/i386/get_disk_name.c'.
38679 * conf/i386-efi.rmk: Likewise.
38680 * conf/x86_64-efi.rmk: Likewise.
38681 * conf/i386-coreboot.rmk: Likewise.
38682 * conf/i386-ieee1275.rmk: Likewise.
38683 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
38684 `util/ieee1275/get_disk_name.c'.
38685 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
38686 * util/ieee1275/get_disk_name.c: Remove file.
38687 * util/i386/get_disk_name.c: Remove file.
38688 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
38689 "hd%d" for device.map entries, rather than using
38690 grub_util_get_disk_name().
38691
81a06771 386922008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 38693
38694 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
38695 warning.
38696 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
38697
5a004279 386982008-09-24 Carles Pina i Estany <carles@pina.cat>
38699
38700 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
38701 Changed to 0x5100.
38702 (GRUB_TERM_PPAGE): Changed to 0x4900.
38703
397093d3 387042008-09-24 Robert Millan <rmh@aybabtu.com>
38705
38706 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
38707 macros (they were i386-pc specific).
38708 * include/grub/sparc64/ieee1275/console.h: Likewise.
38709 * include/grub/efi/console.h: Likewise.
38710
a91b6c7c 387112008-09-22 Bean <bean123ch@gmail.com>
38712
38713 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
38714 resident and in attribute list.
38715
38716 * include/grub/ntfs.h (BMP_LEN): Removed.
38717
c40fd116 387182008-09-22 Bean <bean123ch@gmail.com>
38719
81a06771 38720 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 38721 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
38722
38723 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
38724 error occurs, as grub_disk_open will call grub_disk_close, which will
38725 call p->close (scsi).
38726
81a06771 387272008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 38728
38729 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
38730 (AC_PREREQ): Bumped to 2.59.
38731 (AC_TRY_COMPILE): Replace obsolete macro with ...
38732 (AC_COMPILE_IFELSE): ... this.
38733 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
38734 (AC_LINK_IFELSE): ... this.
38735
5dc43410 387362008-09-21 Felix Zielcke <fzielcke@z-51.de>
38737
38738 * autogen.sh: Add a call to `gendistlist.sh'.
38739
9035dce4 387402008-09-19 Christian Franke <franke@computer.org>
38741
38742 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
38743 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
38744 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
38745 Export __enable_execute_stack() to modules.
38746 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
38747 New function.
38748
7fd75377 387492008-09-09 Felix Zielcke <fzielcke@z-51.de>
38750
040030b3 38751 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
38752 Sort the list.
38753
387542008-09-09 Felix Zielcke <fzielcke@z-51.de>
38755
38756 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 38757 #include <grub/util/hostdisk.h>.
38758
89d5ffcf 387592008-09-08 Robert Millan <rmh@aybabtu.com>
38760
38761 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
38762 segments when their filesz is zero (grub_file_read() interprets
81a06771 38763 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 38764 Use `lowest_segment' rather than 0 for calculating the current
38765 segment load address.
38766
40da438f 387672008-09-08 Robert Millan <rmh@aybabtu.com>
38768
38769 * util/hostdisk.c (open_device): Replace a grub_util_info() call
38770 with grub_dprintf("hostdisk", ...), as it was so verbose that it
38771 clobbered useful information.
38772
ddbf5556 387732008-09-08 Robert Millan <rmh@aybabtu.com>
38774
38775 * include/grub/util/biosdisk.h: Move to ...
38776 * include/grub/util/hostdisk.h: ... here. Update all users.
38777 * util/biosdisk.c: Move to ...
38778 * util/hostdisk.c: ... here. Update all users.
38779
783d0f48 387802008-09-07 Robert Millan <rmh@aybabtu.com>
38781
38782 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
38783 variables.
38784 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
38785 and length can be stored directly in the `mbi->mmap_addr' and
38786 `mbi->mmap_length' struct fields.
38787
548e2ea5 387882008-09-07 Robert Millan <rmh@aybabtu.com>
38789
38790 * conf/i386.rmk: New file. Provides declaration for building
38791 `cpuid.mod'.
38792 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
38793 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
38794 variables.
38795 Include `conf/i386.mk'.
38796 * conf/i386-efi.rmk: Likewise.
38797 * conf/x86_64-efi.rmk: Likewise.
38798 * conf/i386-coreboot.rmk: Likewise.
38799 * conf/i386-ieee1275.rmk: Likewise.
38800
0ea85a37 388012008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
38802
38803 Based on patch created by Colin D Bennett <colin@gibibit.com>.
38804 Adds optimization support for BGR based modes.
38805
38806 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
38807 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38808 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38809 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38810 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38811 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38812 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38813 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38814 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38815 (grub_video_i386_vbeblit_index_index): Likewise.
38816 (grub_video_i386_vbeblit_replace_directN): Added.
38817 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38818 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38819 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38820 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38821 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38822 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 38823 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 38824 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38825 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38826 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38827 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38828 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38829 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
38830
38831 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
38832 (grub_video_i386_vbefill_R8G8B8): Likewise.
38833 (grub_video_i386_vbefill_index): Likewise.
38834 (grub_video_i386_vbefill_direct32): Added.
38835 (grub_video_i386_vbefill_direct24): Likewise.
38836 (grub_video_i386_vbefill_direct16): Likewise.
38837 (grub_video_i386_vbefill_direct8): Likewise.
38838
81a06771 38839 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 38840 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
38841 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
38842 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
38843 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
38844 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 38845
0ea85a37 38846 * video/video.c (grub_video_get_blit_format): Updated to use new
38847 blit formats. Added handling for 16 bit color modes.
81a06771 38848
38849 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 38850 fillers.
38851 (common_blitter): Updated to use new blitters.
38852
38853 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
38854 Removed.
38855 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
38856 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
38857 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
38858 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
38859 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
38860 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
38861 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
38862 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
38863 (grub_video_i386_vbeblit_index_index): Likewise.
38864 (grub_video_i386_vbeblit_replace_directN): Added.
38865 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
38866 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
38867 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
38868 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
38869 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
38870 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
38871 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
38872 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
38873 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
38874 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
38875 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
38876 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
38877 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 38878
0ea85a37 38879 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
38880 (grub_video_i386_vbefill_R8G8B8): Likewise.
38881 (grub_video_i386_vbefill_index): Likewise.
38882 (grub_video_i386_vbefill_direct32): Added.
38883 (grub_video_i386_vbefill_direct24): Likewise.
38884 (grub_video_i386_vbefill_direct16): Likewise.
38885 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 38886
0ea85a37 38887 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
38888 types.
81a06771 38889
0ea85a37 38890 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
38891 types.
81a06771 38892
0ea85a37 38893 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
38894 blitter types.
81a06771 38895
0ea85a37 38896 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
38897 types.
38898
e8a83df6 388992008-09-06 Felix Zielcke <fzielcke@z-51.de>
38900
38901 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
38902 RAID level 1.
38903
6bcd8ee5 389042008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 38905
6bcd8ee5 38906 * fs/iso9660.c (grub_iso9660_date): New structure.
38907 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
38908 (grub_iso9660_uuid): New function.
c375ae58 38909
59261157 389102008-09-05 Bean <bean123ch@gmail.com>
38911
38912 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
38913
38914 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
38915 insensitive bit for names in Win32 and Win32 & DOS namespace.
38916
38917 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
38918
38919 * include/grub/types.h (LONG_MAX): Likewise.
38920
58b6645a 389212008-09-04 Felix Zielcke <fzielcke@z-51.de>
38922
4ee55921 38923 * util/getroot.c: Include <config.h>.
38924 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
38925 add support for /dev/md/N devices and handle LVM double dash escaping.
38926
389272008-09-04 Felix Zielcke <fzielcke@z-51.de>
38928
38929 * config.guess: Update to latest version from config git.
38930 * config.sub: Likewise.
58b6645a 38931
9124f65d 389322008-09-03 Robert Millan <rmh@aybabtu.com>
38933
38934 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
38935 `disk->total_sectors'.
38936
81a06771 389372008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 38938
38939 * include/grub/normal.h: Fixed incorrect comment for
38940 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
38941
81a06771 389422008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 38943
38944 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
38945 values with defines.
38946
38947 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
38948 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
38949 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
38950 (GRUB_VBE_MODEATTR_COLOR): Likewise.
38951 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
38952 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
38953 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
38954 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
38955 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
38956 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
38957 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
38958 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
38959 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
38960 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
38961 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
38962 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
38963 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
38964 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
38965 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
38966
93d5cbf8 389672008-08-31 Robert Millan <rmh@aybabtu.com>
38968
38969 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
38970 declaration.
38971 (grub_multiboot): Fix a few warnings.
38972
21751d50 389732008-08-31 Robert Millan <rmh@aybabtu.com>
38974
38975 * loader/i386/pc/multiboot.c: Update comment not to say that
38976 boot_device support is unimplemented.
38977
e27a75c5 389782008-08-31 Robert Millan <rmh@aybabtu.com>
38979
38980 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
38981 or memory map support are unimplemented.
38982
81a06771 389832008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 38984
38985 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
38986
81a06771 389872008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 38988
38989 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
38990 total video memory in 'vbeinfo' output; show color format details for
38991 each video mode.
38992
7c5d8d95 389932008-08-30 Pavel Roskin <proski@gnu.org>
38994
38995 * util/genmoddep.c: Remove for real this time.
38996 * DISTLIST: Remove util/genmoddep.c.
38997
4cebd25a 389982008-08-30 Robert Millan <rmh@aybabtu.com>
38999
39000 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
39001 as required by Multiboot spec (it was already 4-byte aligned, but
39002 only by chance).
39003
b497a269 390042008-08-29 Pavel Roskin <proski@gnu.org>
39005
e3925185 39006 * kern/powerpc/ieee1275/crt0.S: Rename to ...
39007 * kern/powerpc/ieee1275/startup.S: ... this.
39008 * conf/powerpc-ieee1275.rmk: Adjust for the above.
39009 * DISTLIST: Likewise.
39010
b497a269 39011 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
39012 grub/cpu/kernel.h. Add start label for consistency with other
39013 platforms. Add grub_prefix immediately after start. Add jump
39014 to the code after grub_prefix.
39015 * include/grub/powerpc/kernel.h: Provide valid values for
39016 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
39017
6e5a42fe 390182008-08-29 Bean <bean123ch@gmail.com>
39019
39020 * configure.ac: Change host_os to cygwin for mingw.
39021 (asprintf): New check for function.
39022
39023 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
39024 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
39025
39026 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 39027 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 39028 sync, sleep and grub_util_get_disk_size for mingw.
39029
39030 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
39031 to get size in mingw.
39032 (open_device): Use flag O_BINARY if it's defined.
39033 (find_root_device): Add dummy code for mingw.
39034
39035 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
39036 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
39037 (get_scsi_disk_name): Return 0 for mingw.
39038
39039 * util/hostfs.c: #include <grub/util/misc.h>.
39040 (grub_hostfs_open): Use "rb" flag to open file, use
39041 grub_util_get_disk_size to get disk size for mingw.
39042
39043 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
39044 (asprintf): New function if HAVE_ASPRINTF is not set.
39045 (sync): New function for mingw.
39046 (sleep): Likewise.
39047 (grub_util_get_disk_size): Likewise.
39048
ab3f2673 390492008-08-28 Pavel Roskin <proski@gnu.org>
39050
39051 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39052 kern/time.c.
39053
1c282483 390542008-08-28 Robert Millan <rmh@aybabtu.com>
39055
39056 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
39057
678e849c 390582008-08-28 Robert Millan <rmh@aybabtu.com>
39059
39060 Change find_grub_drive() syntax so it doesn't prevent it from
39061 detecting NULL names as errors.
39062
39063 * util/biosdisk.c (find_grub_drive): Move free slot search code
39064 from here ...
39065 (find_free_slot): ... to here.
39066 (read_device_map): Use find_free_slot() to search for free slots.
39067
965c75ca 390682008-08-27 Marco Gerards <marco@gnu.org>
39069
39070 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
39071 (scsi_mod_SOURCES): New variable.
39072 (scsi_mod_CFLAGS): Likewise
39073 (scsi_mod_LDFLAGS): Likewise.
39074
39075 * disk/scsi.c: New file.
39076
39077 * include/grub/scsi.h: Likewise.
39078
39079 * include/grub/scsicmd.h: Likewise.
39080
39081 * disk/ata.c: Include <grub/scsi.h>.
39082 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
39083 instead.
39084 (grub_ata_iterate): Skip ATAPI devices.
39085 (grub_ata_open): Only handle ATAPI devices.
39086 (struct grub_atapi_read): Removed.
39087 (grub_atapi_readsector): Likewise.
39088 (grub_ata_read): No longer handle ATAPI devices.
39089 (grub_ata_write): Likewise.
39090 (grub_atapi_iterate): New function.
39091 (grub_atapi_read): Likewise.
39092 (grub_atapi_write): Likewise.
39093 (grub_atapi_open): Likewise.
39094 (grub_atapi_close): Likewise.
39095 (grub_atapi_dev): New variable.
39096 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
39097 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
39098
39099 * include/grub/disk.h (enum grub_disk_dev_id): Add
39100 `GRUB_DISK_DEVICE_SCSI_ID'.
39101
c07ae501 391022008-08-26 Robert Millan <rmh@aybabtu.com>
39103
39104 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
39105 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
39106 descriptive.
39107
5ed20adc 391082008-08-23 Bean <bean123ch@gmail.com>
39109
39110 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
39111 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39112 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
39113 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
39114 dm_nv.mod.
39115 (raid5rec_mod_SOURCES): New macro.
39116 (raid5rec_mod_CFLAGS): Likewise.
39117 (raid5rec_mod_LDFLAGS): Likewise.
39118 (raid6rec_mod_SOURCES): Likewise.
39119 (raid6rec_mod_CFLAGS): Likewise.
39120 (raid6rec_mod_LDFLAGS): Likewise.
39121 (mdraid_mod_SOURCES): Likewise.
39122 (mdraid_mod_CFLAGS): Likewise.
39123 (mdraid_mod_LDFLAGS): Likewise.
39124 (dm_nv_mod_SOURCES): Likewise.
39125 (dm_nv_mod_CFLAGS): Likewise.
39126 (dm_nv_mod_LDFLAGS): Likewise.
39127
39128 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
39129 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39130 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39131
39132 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
39133 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39134
39135 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39136
39137 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39138
39139 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39140
39141 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39142
39143 * disk/raid5_recover.c: New file.
39144
39145 * disk/raid6_recover.c: Likewise.
39146
39147 * disk/mdraid_linux.c: Likewise.
39148
39149 * disk/dmraid_nvidia.c: Likewise.
39150
39151 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
39152 ULONG_MAX.
39153
39154 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
39155 calculate the size of raid device.
39156 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
39157 different layout of raid5.
39158 (grub_raid_scan_device): Remove code specific to mdraid.
39159 (grub_raid_list): New variable.
39160 (free_array): New function.
39161 (grub_raid_register): Likewise.
39162 (grub_raid_unregister): Likewise.
39163 (grub_raid_rescan): Likewise.
39164 (GRUB_MOD_INIT): Don't iterate device here.
39165 (GRUB_MOD_FINI): Use free_array to release resource.
39166
39167 * include/grub/raid.h: Remove macro and structure specific to mdraid.
39168 (grub_raid5_recover_func_t): New function variable type.
39169 (grub_raid6_recover_func_t): Likewise.
39170 (grub_raid5_recover_func): New variable.
39171 (grub_raid6_recover_func): Likewise.
39172 (grub_raid_register): New function.
39173 (grub_raid_unregister): Likewise.
39174 (grub_raid_rescan): Likewise.
39175 (grub_raid_block_xor): Likewise.
39176
39177 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
39178 (CMD_CRC): New macro.
39179 (part): Removed.
39180 (read_file): Handle device as well as file.
39181 (cmd_crc): New function.
39182 (fstest): Handle multiple disks.
39183 (options): Remove part, raw and long, add root and diskcount.
39184 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 39185 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 39186 add handling for the new options, support multiple disks.
39187
39188 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
39189
29c18915 391902008-08-23 Bean <bean123ch@gmail.com>
39191
39192 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
39193
39194 * genfslist.sh: Ignore kernel.mod.
39195
39196 * genpartmaplist.sh: Likewise.
39197
8415f261 391982008-08-23 Robert Millan <rmh@aybabtu.com>
39199
39200 * util/getroot.c (find_root_device): Skip anything that starts with
39201 a dot, not just directories. This avoids things like /dev/.tmp.md0.
39202
d5a7dc5b 392032008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 39204
d5a7dc5b 39205 * util/update-grub.in (GRUB_GFXMODE): Export variable.
39206 * util/grub.d/00_header.in: Allow the administrator to change default
39207 gfxmode via ${GRUB_GFXMODE}.
39208
380cfbb4 392092008-08-21 Felix Zielcke <fzielcke@z-51.de>
39210
39211 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
39212
c9baafe7 392132008-08-21 Robert Millan <rmh@aybabtu.com>
39214
39215 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
39216 loader.
39217 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
39218 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
39219
e290bef2 392202008-08-20 Carles Pina i Estany <carles@pina.cat>
39221
39222 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
39223 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
39224
f9dbfc96 392252008-08-19 Robert Millan <rmh@aybabtu.com>
39226
39227 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
39228 (struct grub_virtual_screen): Remove `cursor_color'.
39229 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
39230 initialization.
39231 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
39232
dd6bd6ab 392332008-08-18 Robert Millan <rmh@aybabtu.com>
39234
39235 Unify (identical) linux_normal.c files.
39236 * loader/i386/efi/linux_normal.c: Move from here ...
39237 * loader/linux_normal.c: ... to here. Update all users.
39238 * loader/i386/pc/linux_normal.c: Delete. Update all users.
39239 * loader/i386/ieee1275/linux_normal.c: Likewise.
39240
7f42f83e 392412008-08-18 Robert Millan <rmh@aybabtu.com>
39242
39243 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
39244 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
39245 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
39246 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
39247 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
39248 New macros.
39249 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
39250 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
39251 (GRUB_LINUX_CL_END_OFFSET): ... to here.
39252 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
39253 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
39254 (GRUB_EFI_CL_END_OFFSET): Rename to ...
39255 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
39256 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
39257 Initialize `params->video_cursor_x' and `params->video_cursor_y'
39258 portably using grub_getxy().
39259 Replace `-EFI' with `-bzImage' in boot message.
39260
38487ddb 392612008-08-17 Robert Millan <rmh@aybabtu.com>
39262
39263 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
39264
deceb3ec 392652008-08-17 Robert Millan <rmh@aybabtu.com>
39266
39267 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
39268
39269 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
39270 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
39271 (grub_machine_mmap_iterate): New function declaration.
39272 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
39273 structure.
39274 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
39275 macros.
39276
39277 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
39278 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
39279 Move e820 parsing from here ...
39280 * kern/i386/pc/mmap.c: New file.
39281 (grub_machine_mmap_iterate): ... to here.
39282
39283 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
39284 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
39285 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
39286 (grub_available_iterate): Redeclare to return `void', and redeclare
39287 its hook to use grub_uint64_t as addr and size parameters, and rename
39288 to ...
39289 (grub_machine_mmap_iterate): ... this. Update all users.
39290
39291 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
39292 to make it more readable. Rename to ...
39293 (grub_machine_mmap_iterate): ... this.
39294
39295 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
39296 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
39297 (grub_multiboot): Allocate an extra region after the payload, and fill
39298 it with a Multiboot memory map. Adjust a.out loader to calculate size
39299 with the extra space.
39300 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
39301 with the extra space.
39302
f8aa0f43 393032008-08-17 Carles Pina i Estany <carles@pina.cat>
39304
9807deb9 39305 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 39306
605f5bb6 393072008-08-17 Felix Zielcke <fzielcke@z-51.de>
39308
39309 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
39310 mdate-sh to the list `find' searches for.
39311 * DISTLIST: Regenerated.
39312
210db6c6 393132008-08-16 Felix Zielcke <fzielcke@z-51.de>
39314
39315 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
39316 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 39317 genmoddep.awk, gensymlist.sh.in.
39318 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 39319 * DISTLIST: Regenerated.
48cdbfd4 39320 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 39321
1082b929 393222008-08-16 Robert Millan <rmh@aybabtu.com>
39323
39324 * disk/raid.c (grub_raid_init): Handle/report errors set by
39325 grub_device_iterate().
39326 * disk/lvm.c (grub_lvm_init): Likewise.
39327
42ce5170 393282008-08-15 Bean <bean123ch@gmail.com>
39329
39330 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39331 and datehook.mod.
39332 (datetime_mod_SOURCES): New macro.
39333 (datetime_mod_CFLAGS): Likewise.
39334 (datetime_mod_LDFLAGS): Likewise.
39335 (date_mod_SOURCES): Likewise.
39336 (date_mod_CFLAGS): Likewise.
39337 (date_mod_LDFLAGS): Likewise.
39338 (datehook_mod_SOURCES): Likewise.
39339 (datehook_mod_CFLAGS): Likewise.
39340 (datehook_mod_LDFLAGS): Likewise.
39341
39342 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39343 and datehook.mod.
39344 (datetime_mod_SOURCES): New macro.
39345 (datetime_mod_CFLAGS): Likewise.
39346 (datetime_mod_LDFLAGS): Likewise.
39347 (date_mod_SOURCES): Likewise.
39348 (date_mod_CFLAGS): Likewise.
39349 (date_mod_LDFLAGS): Likewise.
39350 (datehook_mod_SOURCES): Likewise.
39351 (datehook_mod_CFLAGS): Likewise.
39352 (datehook_mod_LDFLAGS): Likewise.
39353
39354 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39355 and datehook.mod.
39356 (datetime_mod_SOURCES): New macro.
39357 (datetime_mod_CFLAGS): Likewise.
39358 (datetime_mod_LDFLAGS): Likewise.
39359 (date_mod_SOURCES): Likewise.
39360 (date_mod_CFLAGS): Likewise.
39361 (date_mod_LDFLAGS): Likewise.
39362 (datehook_mod_SOURCES): Likewise.
39363 (datehook_mod_CFLAGS): Likewise.
39364 (datehook_mod_LDFLAGS): Likewise.
39365
39366 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39367 and datehook.mod.
39368 (datetime_mod_SOURCES): New macro.
39369 (datetime_mod_CFLAGS): Likewise.
39370 (datetime_mod_LDFLAGS): Likewise.
39371 (date_mod_SOURCES): Likewise.
39372 (date_mod_CFLAGS): Likewise.
39373 (date_mod_LDFLAGS): Likewise.
39374 (datehook_mod_SOURCES): Likewise.
39375 (datehook_mod_CFLAGS): Likewise.
39376 (datehook_mod_LDFLAGS): Likewise.
39377
39378 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39379 and datehook.mod.
39380 (datetime_mod_SOURCES): New macro.
39381 (datetime_mod_CFLAGS): Likewise.
39382 (datetime_mod_LDFLAGS): Likewise.
39383 (date_mod_SOURCES): Likewise.
39384 (date_mod_CFLAGS): Likewise.
39385 (date_mod_LDFLAGS): Likewise.
39386 (datehook_mod_SOURCES): Likewise.
39387 (datehook_mod_CFLAGS): Likewise.
39388 (datehook_mod_LDFLAGS): Likewise.
39389
39390 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
39391
39392 * commands/date.c: New file.
39393
39394 * hook/datehook.c: Likewise.
39395
39396 * include/grub/lib/datetime.h: Likewise.
39397
39398 * include/grub/i386/cmos.h: Likewise.
39399
39400 * lib/datetime.c: Likewise.
39401
39402 * lib/i386/datetime.c: Likewise.
39403
39404 * lib/efi/datetime.c: Likewise.
39405
0e9242da 394062008-08-14 Robert Millan <rmh@aybabtu.com>
39407
39408 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
39409 (grub_mkelfimage_SOURCES): New variable.
39410 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
39411
39412 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
39413 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
39414 * conf/powerpc-ieee1275.rmk: Likewise.
39415 * conf/i386-ieee1275.rmk: Likewise.
39416
39417 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
39418 * kern/i386/coreboot/init.c: Likewise.
39419
39420 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
39421 with `<grub/cpu/kernel.h>'.
39422 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
39423 to ...
39424 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
39425 * kern/i386/coreboot/startup.S: Likewise.
39426
39427 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
39428 (GRUB_MOD_GAP): Remove.
39429 * include/grub/powerpc/kernel.h: New file.
39430 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
39431 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39432 * include/grub/i386/kernel.h: New file.
39433 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
39434 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
39435 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39436
39437 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
39438 `grub-mkelfimage'.
39439 Use --directory when invoking grub_mkimage.
39440
39441 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
39442 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
39443 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
39444 and GRUB_KERNEL_CPU_PREFIX.
39445
b86408f8 394462008-08-14 Felix Zielcke <fzielcke@z-51.de>
39447
d5e619ca 39448 * include/grub/err.h (grub_err_printf): New function prototype.
39449 * util/misc.c (grub_err_printf): New function.
39450 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
39451 grub_printf.
39452 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 39453
7161f0e0 394542008-08-13 Robert Millan <rmh@aybabtu.com>
39455
39456 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
39457
a1967522 394582008-08-13 Robert Millan <rmh@aybabtu.com>
39459
39460 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
39461 boot entry.
39462
371458b5 394632008-08-12 Robert Millan <rmh@aybabtu.com>
39464
39465 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
39466 of the relocation code from here ...
39467 (grub_multiboot): ... to here.
39468 (forward_relocator, backward_relocator): Move from here ...
39469 * kern/i386/loader.S (grub_multiboot_forward_relocator)
39470 (grub_multiboot_backward_relocator): ... to here.
39471 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
39472 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
39473 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
39474 (grub_multiboot_forward_relocator_end)
39475 (grub_multiboot_backward_relocator)
39476 (grub_multiboot_backward_relocator_end): New variables.
39477
05f9452b 394782008-08-12 Bean <bean123ch@gmail.com>
39479
39480 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
39481
20024ab0 394822008-08-11 Robert Millan <rmh@aybabtu.com>
39483
39484 * kern/i386/linuxbios/startup.S: Move from here ...
39485 * kern/i386/coreboot/startup.S: ... to here.
39486
39487 * kern/i386/linuxbios/init.c: Move from here ...
39488 * kern/i386/coreboot/init.c: ... to here.
39489
39490 * kern/i386/linuxbios/table.c: Move from here ...
39491 * kern/i386/coreboot/mmap.c: ... to here.
39492
39493 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
39494
e352e9cd 394952008-08-11 Robert Millan <rmh@aybabtu.com>
39496
39497 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
39498 errors. Leave it to the upper layer to handle them.
39499
2d05bc6a 395002008-08-09 Christian Franke <franke@computer.org>
39501
39502 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
39503 * conf/common.rmk: Install `grub-pe2elf' only if requested.
39504 Install `grub.d/10_windows' only on Cygwin.
39505 * configure.ac: Add subst of `target_os'.
39506 Check `target_os' also before setting TARGET_OBJ2ELF.
39507 Add `--enable-grub-pe2elf'.
39508
042bd419 395092008-08-08 Robert Millan <rmh@aybabtu.com>
39510
39511 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39512 (grub_last_time): Change type to grub_uint64_t.
39513 (grub_disk_open): Migrate code from to using grub_get_time_ms().
39514 (grub_disk_close): Likewise.
39515
39516 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39517 (run_menu): Migrate code from to using grub_get_time_ms().
39518
39519 * util/misc.c (grub_get_time_ms): New function.
39520
7f280db5 395212008-08-08 Marco Gerards <marco@gnu.org>
39522
39523 * disk/ata.c (grub_ata_regget): Change return type to
39524 `grub_uint8_t'.
39525 (grub_ata_regget2): Likewise.
39526 (grub_ata_wait_status): New function.
39527 (grub_ata_wait_busy): Removed function, updated all users to use
39528 `grub_ata_wait_status'.
39529 (grub_ata_wait_drq): Likewise.
39530 (grub_ata_cmd): New function.
39531 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
39532 error handling.
39533 (grub_ata_pio_write): Add error handling.
39534 (grub_atapi_identify): Likewise.
39535 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
39536 handling.
39537 (grub_ata_identify): Use `grub_ata_cmd' and improve error
39538 handling. Actually use the detected registers. Reorder the
39539 detection logic such that it is easier to read.
39540 (grub_ata_pciinit): Do not assign the same ID to each controller.
39541 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
39542 handling.
39543 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
39544
39545 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
39546
1fbc5e66 395472008-08-08 Marco Gerards <marco@gnu.org>
39548
39549 * NEWS: Update.
39550
819ce6c0 395512008-08-07 Bean <bean123ch@gmail.com>
39552
39553 * include/grub/x86_64/pci.h: New file.
39554
5c41d44d 395552008-08-07 Christian Franke <franke@computer.org>
39556
39557 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
39558 (TIMER2_GATE): Likewise.
39559 (grub_pit_wait): Add enable/disable of the timer2 gate
39560 bit of port 0x61. This fixes a possible infinite loop.
39561
5ebc275d 395622008-08-07 Bean <bean123ch@gmail.com>
39563
39564 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
39565 kern/i386/tsc.c and kern/i386/pit.c.
39566
39567 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
39568 x86_64 platform.
39569
39570 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
39571 <grub/i386/tsc.h>.
39572
39573 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
39574
e383b3d0 395752008-08-07 Bean <bean123ch@gmail.com>
39576
39577 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
39578
39579 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
39580
39581 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
39582 multiple inclusion. Add #include <grub/types.h>.
39583
1cbb58ac 395842008-08-06 Christian Franke <franke@computer.org>
39585
39586 * conf/common.rmk: Build and install `10_windows'.
39587 * util/grub.d/10_windows.in: New script.
39588
337f5a1e 395892008-08-06 Pavel Roskin <proski@gnu.org>
39590
39591 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
39592
057bc4ac 395932008-08-06 Robert Millan <rmh@aybabtu.com>
39594
39595 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
39596 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
39597
2b99f123 395982008-08-06 Bean <bean123ch@gmail.com>
39599
39600 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
39601 (grub_pxefs_fs_int): Remove dummy definition.
39602 (grub_pxefs_open): Use data->block_size to store the current block
39603 size setting.
39604 (grub_pxefs_read): Use block size stored in data->block_size. As the
39605 value of grub_pxe_blksize can be changed after the file is opened.
39606
9f0234cb 396072008-08-06 Bean <bean123ch@gmail.com>
39608
39609 * fs/i386/pc/pxe.c (curr_file): new variable.
39610 (grub_pxefs_open): Simply the handling of pxe file system. Don't
39611 require the dummy internal file system anymore.
39612 (grub_pxefs_read): Removed.
39613 (grub_pxefs_close): Likewise.
39614 (grub_pxefs_fs_int): Likewise.
39615 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
39616 connection when we switch file.
39617 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
39618
a55d42e0 396192008-08-06 Robert Millan <rmh@aybabtu.com>
39620
39621 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
39622 `halt.mod'.
39623 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
39624 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
39625
39626 * kern/i386/halt.c: New file.
39627 * kern/i386/reboot.c: Likewise.
39628 * include/grub/i386/reboot.h: Likewise.
39629 * include/grub/i386/halt.h: Likewise.
39630
39631 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
39632 Include `<grub/cpu/halt.h>'.
39633 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
39634 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
39635
39636 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
39637 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
39638 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
39639 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
39640 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
39641 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
39642 from here ...
39643 * include/grub/i386/at_keyboard.h: ... to here.
39644
24371d26 396452008-08-05 Robert Millan <rmh@aybabtu.com>
39646
39647 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
39648 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
39649 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
39650 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39651 `kern/generic/millisleep.c'.
39652
39653 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
39654 instead of grub_get_rtc().
39655 (grub_tsc_init): Initialize `tsc_boot_time'.
39656
39657 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
39658 (grub_machine_init): Use grub_tsc_init() rather than
39659 installing an RTC-based handler via grub_install_get_time_ms().
39660
39661 * kern/i386/pit.c: New file.
39662 * include/grub/i386/pit.h: Likewise.
39663
9e7007b3 396642008-08-05 Bean <bean123ch@gmail.com>
39665
39666 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
39667
39668 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
39669 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
39670 (pxe_mod_SOURCES): New macro.
39671 (pxe_mod_CFLAGS): Likewise.
39672 (pxe_mod_LDFLAGS): Likewise.
39673 (pxecmd_mod_SOURCES): Likewise.
39674 (pxecmd_mod_CFLAGS): Likewise.
39675 (pxecmd_mod_LDFLAGS): Likewise.
39676
39677 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
39678 (grub_pxe_call): Likewise.
39679
39680 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
39681
39682 * commands/i386/pc/pxecmd.c: New file.
39683
9f0234cb 39684 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 39685
39686 * include/grub/i386/pc/pxe.h: Likewise.
39687
6977d49f 396882008-08-05 Bean <bean123ch@gmail.com>
39689
39690 * util/console.c (grub_console_cur_color): New variable.
39691 (grub_console_standard_color): Likewise.
39692 (grub_console_normal_color): Likewise.
39693 (grub_console_highlight_color): Likewise.
39694 (color_map): Likewise.
39695 (use_color): Likewise.
39696 (NUM_COLORS): New macro.
39697 (grub_ncurses_setcolorstate): Handle color properly.
39698 (grub_ncurses_setcolor): Don't change color here, just remember the
39699 settings, color will be set in grub_ncurses_setcolorstate.
39700 (grub_ncurses_getcolor): New function.
39701 (grub_ncurses_init): Initialize color pairs.
39702 (grub_ncurses_term): New member grub_ncurses_getcolor.
39703
9c2ff3ee 397042008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 39705
9c2ff3ee 39706 High resolution timer support. Implemented for x86 CPUs using TSC.
39707 Extracted generic grub_millisleep() so it's linked in only as needed.
39708 This requires a Pentium compatible CPU; if the RDTSC instruction is
39709 not supported, then it falls back on the generic grub_get_time_ms()
39710 implementation that uses the machine's RTC.
39711
39712 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
39713 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
39714 `kern/generic/millisleep.c'.
39715
39716 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
39717 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
39718
39719 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
39720 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
39721
39722 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39723
39724 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39725 `kern/generic/millisleep.c'.
39726
39727 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39728
39729 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
39730
39731 * kern/generic/rtc_get_time_ms.c: New file.
39732
39733 * kern/generic/millisleep.c: New file.
337f5a1e 39734
9c2ff3ee 39735 * kern/misc.c: Don't include
39736 <kern/time.h> anymore.
39737 (grub_millisleep_generic): Removed.
39738
39739 * commands/sleep.c (grub_interruptible_millisleep): Uses
39740 grub_get_time_ms() instead of grub_get_rtc().
39741
39742 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
39743 function.
39744 (grub_cpu_is_cpuid_supported): New inline function.
39745 (grub_cpu_is_tsc_supported): New inline function.
39746 (grub_tsc_init): New function prototype.
39747 (grub_tsc_get_time_ms): New function prototype.
39748
39749 * kern/i386/tsc.c (grub_get_time_ms): New file.
39750
39751 * include/grub/time.h: Include <grub/types.h.
39752 (grub_millisleep_generic): Removed.
39753 (grub_get_time_ms): New prototype.
39754 (grub_install_get_time_ms): New prototype.
39755 (grub_rtc_get_time_ms): New prototype.
39756
39757 * kern/time.c (grub_get_time_ms): New function.
39758 (grub_install_get_time_ms): New function.
39759
39760 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
39761 <grub/time.h> anymore.
39762 (grub_millisleep): Removed.
39763 (grub_machine_init): Call grub_tsc_init.
39764
39765 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
39766 get_time_ms() implementation.
39767
39768 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
39769 (ieee1275_get_time_ms): New function.
39770 (grub_machine_init): Install get_time_ms() implementation.
39771
39772 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
39773 (grub_machine_init): Call grub_tsc_init().
39774 (grub_millisleep): Removed.
bf06a93f 39775
9c2ff3ee 39776 * kern/ieee1275/init.c (grub_millisleep): Removed.
39777 (grub_machine_init): Install ieee1275_get_time_ms()
39778 implementation.
39779 (ieee1275_get_time_ms): New function.
39780 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
39781 real work.
39782
9ec92aaf 397832008-08-05 Marco Gerards <marco@gnu.org>
39784
39785 * disk/ata.c: Include <grub/pci.h>.
39786 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
39787 (grub_ata_initialize): Rewritten.
39788 (grub_ata_device_initialize): New function.
39789
8d23f507 397902008-08-04 Pavel Roskin <proski@gnu.org>
39791
39792 * kern/main.c: Include grub/mm.h.
39793
5e15ee3d 397942008-08-04 Robert Millan <rmh@aybabtu.com>
39795
39796 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
39797 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
39798 corruption problem).
39799
a9053f8f 398002008-08-04 Robert Millan <rmh@aybabtu.com>
39801
39802 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
39803 warnings introduced in my last commit.
39804
dd19c7d7 398052008-08-03 Robert Millan <rmh@aybabtu.com>
39806
39807 Make PCI available on all i386 architectures.
39808
39809 * include/grub/i386/pc/pci.h: Move from here ...
39810 * include/grub/i386/pci.h: ... to here.
39811
39812 * include/grub/i386/pc/pci.h: Remove.
39813 * include/grub/i386/efi/pci.h: Remove.
39814 * include/grub/x86_64/efi/pci.h: Remove.
39815
39816 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
39817 `<grub/cpu/pci.h>'.
39818
39819 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
39820 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
39821 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
39822
39823 * conf/i386-ieee1275.rmk: Likewise.
39824
e14a6184 398252008-08-03 Robert Millan <rmh@aybabtu.com>
39826
39827 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
39828 (grub_console_setcursor): Make it possible to set cursor off.
39829
52768e37 398302008-08-03 Robert Millan <rmh@aybabtu.com>
39831
39832 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
39833 of modules instead of assuming which platform provides what.
39834 * util/update-grub.in: Likewise.
39835
2d52f57f 398362008-08-03 Robert Millan <rmh@aybabtu.com>
39837
39838 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
39839 instead of `grub_install_dos_part' to determine whether a drive needs
39840 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 39841 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 39842
2a5cd121 398432008-08-02 Robert Millan <rmh@aybabtu.com>
39844
39845 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
39846
93808428 398472008-08-02 Robert Millan <rmh@aybabtu.com>
39848
39849 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
39850 of informational grub_dprintf() calls.
39851
3bd0a12a 398522008-08-02 Robert Millan <rmh@aybabtu.com>
39853
39854 * disk/memdisk.c (memdisk_size): Don't initialize.
39855 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
39856
39857 * include/grub/i386/pc/kernel.h
39858 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
39859 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
39860 (grub_memdisk_image_size, grub_arch_memdisk_addr)
39861 (grub_arch_memdisk_size): Remove.
39862
39863 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
39864 field (was only used to transfer a constant). Add `type' field to
39865 support multiple module types.
39866 (grub_module_iterate): New function.
39867
39868 * kern/device.c (grub_device_open): Do not hide error messages
39869 when grub_disk_open() fails. Use grub_print_error() instead.
39870
39871 * kern/i386/pc/init.c (grub_arch_modules_addr)
39872 (grub_arch_memdisk_size): Remove functions.
39873 (grub_arch_modules_addr): Return the module address in high memory
39874 (now that it isn't copied anymore).
39875
39876 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
39877 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
39878 decompression routine (grub_total_module_size already includes that
39879 now). Don't copy modules back to low memory.
39880
39881 * kern/main.c: Include `<grub/mm.h>'.
39882 (grub_load_modules): Split out (and use) ...
39883 (grub_module_iterate): ... this function, which iterates through
39884 module objects and runs a hook.
39885 Comment out grub_mm_init_region() call, as it would cause non-ELF
39886 modules to be overwritten.
39887
39888 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
39889 the memdisk image in its own region, make it part of the module list.
39890 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
39891 (main): Parse --memdisk|-m option, and pass user-provided path as
39892 parameter to generate_image().
39893 (add_segments): Pass `memdisk_path' down to load_modules().
39894 (load_modules): Embed memdisk image in module section when requested.
39895 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
39896 `header.type' instead of `header.offset'.
39897
39898 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
39899 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
39900 (memdisk_mod_LDFLAGS): New variables.
39901 * conf/i386-coreboot.rmk: Likewise.
39902 * conf/i386-ieee1275.rmk: Likewise.
39903
a927cc73 399042008-08-02 Robert Millan <rmh@aybabtu.com>
39905
39906 * loader/i386/pc/multiboot.c (playground, forward_relocator)
39907 (backward_relocator): New variables. Used to allocate and relocate
39908 the payload, respectively.
39909 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 39910 address, install the appropriate relocator code in each bound of
a927cc73 39911 the payload, and set the entry point such that
39912 grub_multiboot_real_boot() will jump to one of them.
39913
39914 * kern/i386/loader.S (grub_multiboot_payload_size)
39915 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
39916 (grub_multiboot_payload_entry_offset): New variables.
39917 (grub_multiboot_real_boot): Set cpu context to what the relocator
39918 expects, and jump to the relocator instead of the payload.
39919
39920 * include/grub/i386/loader.h (grub_multiboot_payload_size)
39921 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
39922 (grub_multiboot_payload_entry_offset): Export.
39923
b15d8a0c 399242008-08-01 Bean <bean123ch@gmail.com>
39925
39926 * normal/menu_entry.c (editor_getline): Don't return the original
39927 string as result, as it will be released by lexer once it has done
39928 using it.
39929
cdfb3d22 399302008-08-01 Robert Millan <rmh@aybabtu.com>
39931
39932 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
39933 within menuentries, not before them.
39934 util/grub.d/10_hurd.in: Likewise.
39935
9175e93d 399362008-08-01 Bean <bean123ch@gmail.com>
39937
39938 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
39939 (bufio_mod_SOURCES): New macro.
39940 (bufio_mod_CFLAGS): Likewise.
39941 (bufio_mod_LDFLAGS): Likewise.
39942
39943 * include/grub/bufio.h: New file.
39944
39945 * io/bufio.c: Likewise.
39946
39947 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
39948 (grub_video_reader_png): Use grub_buffile_open to open file.
39949
39950 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
39951 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
39952
39953 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
39954 (grub_video_reader_tga): Use grub_buffile_open to open file.
39955
39956 * font/manager.c: Include <grub/bufio.h>.
39957 (add_font): Use grub_buffile_open to open file.
39958
3d8383e7 399592008-07-31 Robert Millan <rmh@aybabtu.com>
39960
39961 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
39962 ELF segments, use a macro for arbitrarily accessing any of them instead
39963 of preparing a pointer that allows access to one at a time.
39964 (grub_multiboot_load_elf64): Likewise.
39965
16e641b6 399662008-07-31 Bean <bean123ch@gmail.com>
39967
39968 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
39969 GRUB_KERNEL_MACHINE_DATA_END.
39970
59198b72 399712008-07-30 Robert Millan <rmh@aybabtu.com>
39972
39973 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
39974 Increase from 0x50 to 0x60.
39975 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
39976 use UUIDs to identify the root drive for them. If that's not
39977 possible, abort.
39978 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
39979 check, for cross-disk installs.
39980
ae88bca3 399812008-07-30 Robert Millan <rmh@aybabtu.com>
39982
39983 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
39984 is non-empty, use it to set the `prefix' environment variable instead
39985 of the usual approach.
39986 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
39987 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
39988 environment variable instead of dummy make_install_device().
39989
39990 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
39991 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 39992 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 39993
39994 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
39995 New variable reference.
39996 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
39997 New macro. Defines offset of `grub_prefix' within startup.S (relative
39998 to `start').
39999 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
40000 section within startup.S (relative to `start').
40001 * include/grub/i386/coreboot/kernel.h: Likewise.
40002
40003 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
40004 Overwrite grub_prefix with its contents, at the beginning of the
40005 first segment.
40006 (main): Understand -p|--prefix.
40007
14f41dd1 400082008-07-30 Robert Millan <rmh@aybabtu.com>
40009
40010 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
40011
4ca049a3 400122008-07-30 Robert Millan <rmh@aybabtu.com>
40013
40014 * term/i386/pc/vga_text.c (grub_console_cls): Use
40015 grub_console_gotoxy() to go back to beginning of the screen.
40016 Found by Patrick Georgi <patrick.georgi@coresystems.de>
40017
2921d337 400182008-07-29 Christian Franke <franke@computer.org>
40019
40020 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
40021 Add conversion of emulated mount points on Cygwin.
40022
b609876d 400232008-07-29 Christian Franke <franke@computer.org>
40024
40025 * util/update-grub.in: Add a check for admin
40026 group on Cygwin.
40027 Remove old `grub.cfg.new' before creation.
40028 Add `-f' to `mv' to handle the different filesystem
40029 semantics of Windows.
40030
e93e4679 400312008-07-29 Bean <bean123ch@gmail.com>
40032
40033 * normal/main.c (get_line): Fix buffer overflow bug.
40034
41694fd0 400352008-07-28 Robert Millan <rmh@aybabtu.com>
40036
40037 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
40038 (struct grub_apple_header): New struct. Describes the layout of
40039 the partmap header.
40040 (apple_partition_map_iterate): Check the header magic as well as the
40041 partition magic (which was already being checked).
40042
cfd0b4e6 400432008-07-28 Pavel Roskin <proski@gnu.org>
40044
40045 * genmk.rb: Add a warning to the beginning of the output that
40046 it's a generated file and should not be edited.
40047
93cce016 400482008-07-28 Robert Millan <rmh@aybabtu.com>
40049
40050 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40051 with the same number are found, just use issue a warning with
40052 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 40053
cd1df915 400542008-07-27 Robert Millan <rmh@aybabtu.com>
40055
40056 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
40057 information.
40058
b70a8427 400592008-07-27 Bean <bean123ch@gmail.com>
40060
40061 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
40062 (grub_fat_find_dir): Ignore case when comparing filename.
40063
8f5e379f 400642008-07-27 Bean <bean123ch@gmail.com>
40065
40066 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
40067 smallino, as it's more descriptive, and i8count can be confused with
40068 the other field count.
40069 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
40070 inode type.
40071
a85cd5a0 400722008-07-27 Bean <bean123ch@gmail.com>
40073
40074 * commands/crc.c: New file.
40075
40076 * lib/crc.c: Likewise.
40077
40078 * include/grub/lib/crc.h: Likewise.
40079
40080 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
40081
40082 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
40083 (hexdump): Move this function to ...
40084
40085 * lib/hexdump.c: ... here.
40086
40087 * include/grub/hexdump.h: Renamed to ...
40088
40089 * include/grub/lib/hexdump.h: ... this.
40090
40091 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
40092
40093 * util/grub-editenv.c: Likewise.
40094
40095 * include/envblk.h: Renamed to ...
40096
40097 * include/lib/envblk.h: ... this.
40098
40099 * util/envblk.c: Renamed to ...
40100
40101 * lib/envblk.c: ... this.
40102
40103 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
40104 lib/hexdump.c.
40105 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
40106 (pkglib_MODULES): Add crc.mod.
40107 (hexdump_mod_SOURCES): Add lib/hexdump.c.
40108 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
40109 (crc_mod_SOURCES): New macro.
40110 (crc_mod_CFLAGS): Likewise.
40111 (crc_mod_LDFLAGS): Likewise.
40112
40113 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
40114
40115 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40116
40117 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40118
40119 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40120
40121 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40122
c298def0 401232008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 40124
40125 * commands/help.c: Include <grub/term.h>.
40126 (TERM_WIDTH): Removed. Updated all users.
40127
cc349fb3 401282008-07-27 Pavel Roskin <proski@gnu.org>
40129
40130 * util/getroot.c (find_root_device): Rephrase a comment to avoid
40131 spurious warnings about a comment within a comment.
40132
9051607e 401332008-07-25 Robert Millan <rmh@aybabtu.com>
40134
40135 * util/getroot.c (find_root_device): Skip devices that match
40136 /dev/dm-[0-9]. This lets the real device be found for any type of
40137 abstraction (LVM, EVMS, RAID..).
40138 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
40139 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
40140 device is found first, find_root_device() will now skip it.
40141
01453bfc 401422008-07-24 Pavel Roskin <proski@gnu.org>
40143
40144 * include/grub/types.h: Use __builtin_bswap32() and
40145 __builtin_bswap64() with gcc 4.3 and newer.
40146
6af9849f 401472008-07-24 Christian Franke <franke@computer.org>
40148
3a0fa256 40149 * util/i386/pc/grub-install.in: If `--debug' is specified,
40150 pass `--verbose' to grub-setup.
40151 Abort script if make_system_path_relative_to_its_root() fails.
40152
7810e747 401532008-07-24 Bean <bean123ch@gmail.com>
40154
40155 * configure.ac: Fixed a bug caused by the previous cygwin patch,
40156 variable `target_platform' should be `platform'.
40157
42290e17 401582008-07-24 Bean <bean123ch@gmail.com>
40159
51cc5193 40160 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 40161 (grub_png_init_fixed_block): New function.
40162 (grub_png_decode_image_data): Handle fixed huffman code compression.
40163
2a8a80e4 401642008-07-24 Bean <bean123ch@gmail.com>
40165
40166 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
40167 (grub_pe2elf_SOURCES): New macro.
40168 (CLEANFILES): Add grub-pe2elf.
40169
40170 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
40171 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
40172 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
40173 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
40174 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
40175 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
40176 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
40177 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
40178 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
40179 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
40180 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
40181 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
40182 (GRUB_PE32_DT_FUNCTION): Likewise.
40183 (GRUB_PE32_REL_I386_DIR32): Likewise.
40184 (GRUB_PE32_REL_I386_REL32): Likewise.
40185 (grub_pe32_symbol): New structure.
40186 (grub_pe32_reloc): Likewise.
40187
40188 * util/grub-pe2elf.c: New file.
40189
40190 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
40191 start symbol in non pc platform.
40192
40193 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
40194
40195 The following patches are from Christian Franke.
40196
40197 * include/grub/dl.h: Remove .previous, gas supports this only
40198 for ELF format.
40199
40200 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
40201 Remove .type, gas supports this only for ELF format.
40202
40203 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
40204 nullbytes in symbol table. This fixes an infinite loop if table is
40205 zero filled.
40206
40207 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
40208 TARGET_IMG_LDFLAGS and EXEEXT.
40209
40210 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
40211 TARGET_IMG_LDFLAGS_AC.
40212 (grub_CHECK_STACK_ARG_PROBE): New function.
40213
40214 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
40215
40216 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
40217
40218 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
40219 to set TARGET_IMG_LD* accordingly.
40220 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
40221 Add call to grub_CHECK_STACK_ARG_PROBE.
40222 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
40223
40224 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
40225
40226 * genmk.rb: Add EXEEXT to CLEANFILES.
40227
12ccdb75 402282008-07-23 Robert Millan <rmh@aybabtu.com>
40229
40230 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
40231 define the codes for arrows and lines used for the menu).
40232 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
40233 as well.
40234
40235 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
40236 fonts, because the latter are too slow.
40237
18eeaf04 402382008-07-21 Bean <bean123ch@gmail.com>
40239
40240 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
40241 a20. Run keyboard test last, as it will cause macbook to halt.
40242
b095e2ad 402432008-07-18 Pavel Roskin <proski@gnu.org>
40244
40245 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
40246 load foreign architecture modules correctly anyway. Keep
40247 support for loading host architecture modules, whether we
40248 compile them or not.
40249
737feb35 402502008-07-17 Pavel Roskin <proski@gnu.org>
40251
3f4ce737 40252 * configure.ac: Use -m32 or -m64 regardless of whether we had to
40253 change target_cpu. The compiler default can mismatch target_cpu
40254 in any case.
40255
4ad2d049 40256 * disk/efi/efidisk.c: Fix format warnings on x86_64.
40257 * kern/efi/efi.c: Likewise.
40258
f6130a12 40259 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
40260 target compiler is functional.
40261 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
40262 are set up.
40263
58393a2d 40264 * configure.ac: Default to efi platform for x86_64-apple. Allow
40265 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
40266 adjustments from the rest, only do them if target is not
40267 explicitly given. Merge other adjustments with the final sanity
40268 check. Remove an extraneous check for supported CPU. Be
40269 specific which CPU and which platform is not supported.
40270
737feb35 40271 * configure.ac: Default to pc platform for x86_64.
40272
546f966a 402732008-07-17 Robert Millan <rmh@aybabtu.com>
40274
40275 Partial LinuxBIOS -> Coreboot rename.
40276
40277 * conf/i386-linuxbios.rmk: Renamed to ...
40278 * conf/i386-coreboot.rmk: ... this.
40279 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
40280 * configure.ac: Accept "coreboot" as input platform (but maintain
40281 compatibility with "linuxbios").
40282 * include/grub/i386/linuxbios: Renamed to ...
40283 * include/grub/i386/coreboot: ... this.
40284
20011694 402852008-07-17 Bean <bean123ch@gmail.com>
40286
40287 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 40288 (appleldr_mod_SOURCE): New variable.
20011694 40289 (appleldr_mod_CFLAGS): Likewise.
40290 (appleldr_mod_LDFLAGS): Likewise.
40291 (pci_mod_SOURCES): Likewise.
40292 (pci_mod_CFLAGS): Likewise.
40293 (pci_mod_LDFLAGS): Likewise.
40294 (lspci_mod_SOURCES): Likewise.
40295 (lspci_mod_CFLAGS): Likewise.
40296 (lspci_mod_LDFLAGS): Likewise.
40297
40298 * conf/x86_64-efi.rmk: New file.
40299
40300 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
40301 macro.
40302 (grub_efidisk_write): Likewise.
40303
40304 * include/efi/api.h (efi_call_0): New macro.
40305 (efi_call_1): Likewise.
40306 (efi_call_2): Likewise.
40307 (efi_call_3): Likewise.
40308 (efi_call_4): Likewise.
40309 (efi_call_5): Likewise.
40310 (efi_call_6): Likewise.
40311
40312 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
40313 grub_rescue_cmd_chainloader.
40314
40315 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
40316 (grub_pe32_optional_header): Change some fields based on i386 or
40317 x86_64 platform.
40318 (GRUB_PE32_PE32_MAGIC): Likewise.
40319
40320 * include/grub/efi/uga_draw.h: New file.
40321
40322 * include/grub/elf.h (STN_ABS): New constant.
40323 (R_X86_64_NONE): Relocation constant for x86_64.
40324 (R_X86_64_64): Likewise.
40325 (R_X86_64_PC32): Likewise.
40326 (R_X86_64_GOT32): Likewise.
40327 (R_X86_64_PLT32): Likewise.
40328 (R_X86_64_COPY): Likewise.
40329 (R_X86_64_GLOB_DAT): Likewise.
40330 (R_X86_64_JUMP_SLOT): Likewise.
40331 (R_X86_64_RELATIVE): Likewise.
40332 (R_X86_64_GOTPCREL): Likewise.
40333 (R_X86_64_32): Likewise.
40334 (R_X86_64_32S): Likewise.
40335 (R_X86_64_16): Likewise.
40336 (R_X86_64_PC16): Likewise.
40337 (R_X86_64_8): Likewise.
40338 (R_X86_64_PC8): Likewise.
40339
40340 * include/grub/i386/efi/pci.h: New file.
40341
40342 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
40343 Change it value based on platform.
40344 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
40345 (GRUB_E820_RAM): Likewise.
40346 (GRUB_E820_RESERVED): Likewise.
40347 (GRUB_E820_ACPI): Likewise.
40348 (GRUB_E820_NVS): Likewise.
40349 (GRUB_E820_EXEC_CODE): Likewise.
40350 (GRUB_E820_MAX_ENTRY): Likewise.
40351 (grub_e820_mmap): New structure.
40352 (linux_kernel_header): Change the efi field according to different
40353 kernel version, also field from linux_kernel_header.
40354
40355 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
40356
40357 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
40358 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
40359 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
40360 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
40361 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
40362 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
40363 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
40364 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
40365 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
40366 (GRUB_PCI_ADDR_IO_MASK): Likewise.
40367
40368 * include/grub/x86_64/efi/kernel.h: New file.
40369
40370 * include/grub/x86_64/efi/loader.h: Likewise.
40371
40372 * include/grub/x86_64/efi/machine.h: Likewise.
40373
40374 * include/grub/x86_64/efi/pci.h: Likewise.
40375
40376 * include/grub/x86_64/efi/time.h: Likewise.
40377
40378 * include/grub/x86_64/linux.h: Likewise.
40379
40380 * include/grub/x86_64/setjmp.h: Likewise.
40381
40382 * include/grub/x86_64/time.h: Likewise.
40383
40384 * include/grub/x86_64/types.h: Likewise.
40385
40386 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
40387 GRUB_TARGET_SIZEOF_VOID_P.
40388
40389 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
40390 (grub_efi_locate_handle): Likewise.
40391 (grub_efi_open_protocol): Likewise.
40392 (grub_efi_set_text_mode): Likewise.
40393 (grub_efi_stall): Likewise.
40394 (grub_exit): Likewise.
40395 (grub_reboot): Likewise.
40396 (grub_halt): Likewise.
40397 (grub_efi_exit_boot_services): Likewise.
40398 (grub_get_rtc): Likewise.
40399
40400 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
40401 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
40402 (grub_efi_allocate_pages): Wrap efi calls.
40403 (grub_efi_free_pages): Wrap efi calls.
40404 (grub_efi_get_memory_map): Wrap efi calls.
40405
40406 * kern/x86_64/dl.c: New file.
40407
40408 * kern/x86_64/efi/callwrap.S: Likewise.
40409
40410 * kern/x86_64/efi/startup.S: Likewise.
40411
40412 * loader/efi/appleloader.c: Likewise.
40413
40414 * loader/efi/chainloader.c (cmdline): New variable.
40415 (grub_chainloader_unload): Wrap efi calls.
40416 (grub_chainloader_boot): Likewise.
40417 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
40418 command line.
40419
40420 * loader/efi/chainloader_normal.c (chainloader_command):
40421 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
40422 command line.
40423
40424 * loader/i386/efi/linux.c (allocate_pages): Change allocation
40425 method.
40426 (grub_e820_add_region): New function.
40427 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
40428 booting.
40429 (grub_find_video_card): New function.
40430 (grub_linux_setup_video): New function.
40431 (grub_rescue_cmd_linux): Probe for video information.
40432
40433 * normal/x86_64/setjmp.S: New file.
40434
40435 * term/efi/console.c (map_char): New function.
40436 (grub_console_putchar): Map unicode char.
40437 (grub_console_checkkey): Wrap efi calls.
40438 (grub_console_getkey): Likewise.
40439 (grub_console_getwh): Likewise.
40440 (grub_console_gotoxy): Likewise.
40441 (grub_console_cls): Likewise.
40442 (grub_console_setcolorstate): Likewise.
40443 (grub_console_setcursor): Likewise.
40444
40445 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
40446
59652a20 404472008-07-16 Pavel Roskin <proski@gnu.org>
40448
ef294055 40449 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
40450 format strings.
40451
59652a20 40452 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
40453 pointer, not an integer. This fixes a warning and prevents
40454 precision loss on 64-bit systems.
40455 (relocate_addresses): Remove unneeded cast.
40456
afc3b5d7 404572008-07-15 Pavel Roskin <proski@gnu.org>
40458
506b2b3e 40459 * kern/i386/ieee1275/init.c: Include grub/cache.h.
40460
62ead89c 40461 * term/ieee1275/ofconsole.c: Disable code unused on i386.
40462
c4cd51d7 40463 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
40464 Fix comparison between signed and unsigned.
40465
0d3d8f28 40466 * include/grub/i386/ieee1275/console.h: Declare
40467 grub_console_init() and grub_console_fini().
40468
8804b286 40469 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
40470 It's empty and unused.
40471
ee01cf35 40472 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
40473 beginning to avoid warnings with some compilers.
40474
afc3b5d7 40475 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
40476 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
40477
e4e8eaa5 404782008-07-14 Pavel Roskin <proski@gnu.org>
40479
407aceb4 40480 * kern/env.c (grub_register_variable_hook): Don't copy empty
40481 string, it leaks memory. Pass "" to grub_env_set(), it should
40482 handle constant strings.
40483
e4e8eaa5 40484 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
40485 * commands/cmp.c (grub_cmd_cmp): Likewise.
40486 * kern/dl.c (grub_dl_flush_cache): Likewise.
40487 (grub_dl_load_core): Likewise.
40488 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
40489 (grub_elf64_load_phdrs): Likewise.
40490
d4e2dad3 404912008-07-13 Pavel Roskin <proski@gnu.org>
40492
40493 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
40494 between signed and unsigned.
40495 (LzmaEnc_Finish): Fix warning about an unused parameter.
40496
aa24b516 404972008-07-13 Bean <bean123ch@gmail.com>
40498
40499 * Makefile.in (enable_lzo): New rule.
40500
40501 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
40502
40503 * configure.ac (ENABLE_LZO): New option --enable-lzo.
40504
40505 * boot/i386/pc/lnxboot.S: #include <config.h>.
40506
40507 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 40508 its value according to the compression algorithm used, lzo or lzma.
aa24b516 40509
40510 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
40511 compression algorithm according to configure macro.
40512
40513 * kern/i386/pc/startup.S (codestart): Likewise.
40514
40515 * kern/i386/pc/lzma_decode.S: New file.
40516
40517 * include/grub/lib/LzFind.h: Likewise.
40518
40519 * include/grub/lib/LzHash.h: Likewise.
40520
40521 * include/grub/lib/LzmaDec.h: Likewise.
40522
40523 * include/grub/lib/LzmaEnc.h: Likewise.
40524
40525 * include/grub/lib/LzmaTypes.h: Likewise.
40526
40527 * lib/LzFind.c: Likewise.
40528
40529 * lib/LzmaDec.c: Likewise.
40530
40531 * lib/LzmaEnc.c: Likewise.
40532
4ae821ac 405332008-07-13 Bean <bean123ch@gmail.com>
40534
40535 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
40536 (grub_ext4_extent_header): New structure.
40537 (grub_ext4_extent): Likewise.
40538 (grub_ext4_extent_idx): Likewise.
40539 (grub_ext4_find_leaf): New function.
40540 (grub_ext2_read_block): Handle extents.
40541
9a745147 405422008-07-12 Robert Millan <rmh@aybabtu.com>
40543
40544 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
40545
d49a4cf6 405462008-07-11 Robert Millan <rmh@aybabtu.com>
40547
40548 * util/grub.d/40_custom.in: New file. Example on how to add custom
40549 entries to /etc/grub.d.
40550 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
40551 40_custom (implicitly, by merging all the grub.d rules).
40552
947414b4 405532008-07-11 Pavel Roskin <proski@gnu.org>
40554
0059cf6f 40555 * commands/read.c (grub_getline): Fix invalid memory access.
40556 Don't add newline to the variable value.
40557
947414b4 40558 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
40559 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
40560 (serial_hw_get_port): Check validity of the port number.
40561 (grub_cmd_serial): Check return value of serial_hw_get_port().
40562
62a02d00 405632008-07-07 Pavel Roskin <proski@gnu.org>
40564
40565 * boot/i386/pc/diskboot.S (notification_string): Replace
40566 "Loading kernel" with just "loading". This is shorter, less
40567 confusing and saves a few bytes for possible future changes.
40568
3e5581b0 405692008-07-05 Pavel Roskin <proski@gnu.org>
40570
ea387a48 40571 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
40572 size for ATAPI devices, they are undefined. Output sector
40573 number in decimal form.
40574
3e5581b0 40575 * disk/ata.c: Use named constants for status bits.
40576
fdecb8fd 405772008-07-04 Pavel Roskin <proski@gnu.org>
40578
bcd35b90 40579 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
40580 grub_addr_t before casting it to the void pointer to fix a
40581 warning. Non-addressable regions are discarded earlier.
40582 (grub_arch_modules_addr): Cast _end to grub_addr_t.
40583 * kern/i386/linuxbios/table.c: Include grub/misc.h.
40584 (check_signature): Don't shadow table_header.
40585 (grub_linuxbios_table_iterate): Cast numeric constants to
40586 grub_linuxbios_table_header_t.
40587 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
40588 grub_stop().
40589
af58ab3d 40590 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
40591 prevent warnings.
40592
1759aa57 40593 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
40594 pointer, which can cause warnings. Support 64-bit addresses.
40595
fdecb8fd 40596 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
40597 of sizeof(long). This fixes PowerPC image generation on x86_64.
40598
8516d2a8 405992008-07-04 Robert Millan <rmh@aybabtu.com>
40600
40601 This fixes a performance issue when pc & gpt partmap iterators
40602 didn't abort iteration even after our hook found what it was
fe987087 40603 looking for (often causing expensive probes of non-existent drives).
8516d2a8 40604
40605 Some callers relied on previous buggy behaviour, since they would
34c44600 40606 raise an error when their own hooks caused early abortion of its
8516d2a8 40607 iteration.
40608
40609 * kern/device.c (grub_device_open): Improve error message.
40610 * disk/lvm.c (grub_lvm_open): Likewise.
40611 * disk/raid.c (grub_raid_open): Likewise.
40612
40613 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
40614 when hook requests it, independently of grub_errno.
40615 (pc_partition_map_probe): Do not fail when find_func() caused
40616 early abortion of pc_partition_map_iterate().
40617
40618 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
40619 when hook requests it, independently of grub_errno.
40620 (gpt_partition_map_probe): Do not fail when find_func() caused
40621 early abortion of gpt_partition_map_iterate().
40622
40623 * kern/partition.c (grub_partition_iterate): Abort parent iteration
40624 when hook requests it, independently of grub_errno. Do not fail when
40625 part_map_iterate_hook() caused early abortion of p->iterate().
40626
40627 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
40628 when grub_partition_iterate() returned with non-zero.
40629
277d0de9 406302008-07-03 Pavel Roskin <proski@gnu.org>
40631
40632 * disk/ata.c (grub_ata_pio_write): Check status before writing,
40633 like we do in grub_ata_pio_read().
40634 (grub_ata_readwrite): Always write individual sectors. Fix the
40635 sector count for the remainder.
40636 (grub_ata_write): Enable writing to ATA devices. Correctly
40637 report error for ATAPI devices.
40638
d4c9b428 406392008-07-02 Pavel Roskin <proski@gnu.org>
40640
e43fc690 40641 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
40642 warning.
40643
f707af42 40644 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
40645 for every read sector, we already increment it for the whole
40646 batch. This fixes reading more than 256 sectors at once.
40647
11e16b15 40648 * util/grub-editenv.c (cmd_info): Cast argument to long
40649 explicitly. ptrdiff_t reduces to int on i386.
40650
cbabfdd4 40651 * util/grub-editenv.c (main): Be specific which parameter is
40652 missing.
40653
b8fbce0a 40654 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
40655 (memdisk): Make memdisk_orig_addr a pointer.
40656
c9c8e606 40657 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
40658 for file offsets, use grub_off_t instead. Fix printf format
40659 warnings.
40660
ca62e598 40661 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
40662 there. Real unexpected warnings should not drown in the noise
40663 about known problems.
40664
ce8d1766 40665 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
40666 grub_disk_addr_t for memory addresses.
40667
00c7a56a 40668 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
40669 explicitly to fix a warning.
40670
08d3ef09 40671 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
40672
cb71ba20 40673 * Makefile.in (MODULE_LDFLAGS): New variable.
40674 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
40675 the linker accepts --build-id=none.
40676 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
40677 MODULE_LDFLAGS.
40678 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
40679
d4c9b428 40680 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
40681 those in Linux XFS code. Provide a way to access 64-bit parent
40682 inode.
40683 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
40684 the end of struct grub_xfs_dir_header.
40685
d4156eee 406862008-07-02 Bean <bean123ch@gmail.com>
40687
40688 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
40689 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40690 and GRUB_IEEE1275_FLAG_NO_ANSI.
40691
40692 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
40693 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
40694 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
40695
40696 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
40697 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
40698
40699 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
40700 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
40701
40702 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
40703 esc sequence on non ANSI terminal.
40704 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
40705
40706 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
40707 beginning of file.
40708
2270f77b 407092008-07-02 Bean <bean123ch@gmail.com>
40710
40711 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
40712 (grub_editenv_SOURCES): New variable.
40713 (pkglib_MODULES): Add loadenv.mod.
40714 (loadenv_mod_SOURCES): New variable.
40715 (loadenv_mod_CFLAGS): Likewise.
40716 (loadenv_mod_LDFLAGS): Likewise.
40717
40718 * include/grub/envblk.h: New file.
40719
40720 * util/envblk.c: New file.
40721
40722 * util/grub-editenv.c: New file.
40723
40724 * commands/loadenv.c: New file.
40725
0e9e51ec 407262008-07-01 Pavel Roskin <proski@gnu.org>
40727
d89b7634 40728 * include/multiboot2.h (struct multiboot_tag_module): Use char,
40729 not unsigned char. This fixes warnings and is consistent with
40730 other tags.
40731
bf1835b1 40732 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
40733
8222a04b 40734 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
40735
6a42d99d 40736 * term/tparm.c (analyze): Always set *popcount.
40737
10b159d1 40738 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
40739 cast to fix a warning.
40740
b8789f6c 40741 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
40742 cast to suppress a warning.
40743
29d7e38a 40744 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
40745 grub_fshelp_read_file() expects.
40746
f341f669 40747 * fs/fat.c: Fix UUID calculation on big-endian systems. We
40748 write uuid as a 32-bit value in CPU byte order, so declare and
40749 use it as such.
40750
0e9e51ec 40751 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
40752 long if the format specifier expects it.
40753 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
40754 * partmap/pc.c (pc_partition_map_iterate): Likewise.
40755 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
40756 long to fix a warning.
40757 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
40758 grub_dprintf() arguments to fix warnings.
40759
3aefa857 407602008-06-30 Pavel Roskin <proski@gnu.org>
40761
56c7668b 40762 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
40763 install_bsd_part immediately before core.img is embedded or
40764 modified on disk. This fixes core.img verification if core.img
40765 cannot be embedded.
40766
3aefa857 40767 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
40768 core_path to calculate the blocklist.
40769 Patch from Javier Martín <lordhabbit@gmail.com>
40770
5444088d 407712008-06-29 Robert Millan <rmh@aybabtu.com>
40772
40773 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
40774 block to disk block.
40775 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
40776 Patch from Niels Böhm <bitbucket@arcor.de>
40777
674835c8 407782008-06-29 Robert Millan <rmh@aybabtu.com>
40779
40780 * util/update-grub_lib.in (font_path): Search for fonts in
40781 /boot/grub first, which is more likely to be readable (we aren't
40782 deciding where fonts live, just looking for them).
40783
f527dbc8 407842008-06-26 Pavel Roskin <proski@gnu.org>
40785
6c2d8df6 40786 * util/biosdisk.c (read_device_map): Don't leave dead map
40787 entries for devices failing stat() check.
40788
f527dbc8 40789 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
40790 core_path_dev for the core.img path on the target device.
40791
aebe3d13 407922008-06-26 Robert Millan <rmh@aybabtu.com>
40793
40794 * disk/fs_uuid.c: New file.
40795 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
40796 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
40797 (fs_uuid_mod_LDFLAGS): New variables.
40798 * include/grub/disk.h (grub_disk_dev_id): Add
40799 `GRUB_DISK_DEVICE_UUID_ID'.
40800 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
40801 implement iterate().
40802
37aaf354 408032008-06-26 Robert Millan <rmh@aybabtu.com>
40804
40805 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
40806 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
40807 Linux image includes no initrd.
40808
25ff262a 408092008-06-21 Javier Martín <lordhabbit@gmail.com>
40810
40811 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
40812 call to resolve the core image location that effectively appended the
40813 name twice.
40814
76a2bd44 408152008-06-21 Robert Millan <rmh@aybabtu.com>
40816
40817 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
40818 call from here ...
40819
40820 * util/grub.d/10_hurd.in: ... to here ...
40821 * util/grub.d/10_linux.in: ... and here.
40822
650e1c79 408232008-06-19 Robert Millan <rmh@aybabtu.com>
40824
fe987087 40825 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 40826 after it has been set by grub_machine_set_prefix().
40827
6ce63911 408282008-06-19 Robert Millan <rmh@aybabtu.com>
40829
40830 * commands/search.c (search_label, search_fs_uuid, search_file): Print
40831 search result when not saving to variable, not the other way around.
40832 When saving to variable, abort iteration as soon as a match is found.
40833
73940cec 408342008-06-19 Robert Millan <rmh@aybabtu.com>
40835
40836 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
40837 check for partition that provides /boot/grub. Its logic is flawed,
40838 as it prevents prepare_grub_to_access_device() from being called
40839 multiple times.
40840
3c62a39d 408412008-06-19 Robert Millan <rmh@aybabtu.com>
40842
40843 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
40844 "insmod" command directly when abstraction modules are needed,
fe987087 40845 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 40846 since it had already been processed).
40847
47395a42 408482008-06-19 Pavel Roskin <proski@gnu.org>
40849
40850 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
40851 changed. This is needed in case GRUB_LIBDIR changes.
40852 * conf/i386-ieee1275.rmk: Likewise.
40853 * conf/i386-linuxbios.rmk: Likewise.
40854 * conf/i386-pc.rmk: Likewise.
40855 * conf/powerpc-ieee1275.rmk: Likewise.
40856
a145ac2d 408572008-06-18 Pavel Roskin <proski@gnu.org>
40858
40859 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
40860 kernel_elf_symlist.c to symlist.c for consistency with other
40861 architectures. Update all users.
40862 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40863
7847c51e 408642008-06-18 Robert Millan <rmh@aybabtu.com>
40865
40866 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
40867 it in prefix.
40868
40869 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
40870 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
40871 a RAID device, run setup() for all members independently on whether
40872 LVM abstraction is being used.
40873 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
40874 If grub-mkimage has set `*install_dos_part == -2', don't override this
40875 value.
40876 Perform *install_dos_part adjustments independently on whether
40877 we're embedding or not.
40878 Clarify error message when image is too big for embedding.
40879 Remove duplicate *install_dos_part stanza.
40880
b23e5644 408812008-06-17 Robert Millan <rmh@aybabtu.com>
40882
40883 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
40884 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
40885 variables.
40886 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
40887 values in grub_ofconsole_normal_color and
40888 grub_ofconsole_highlight_color (they're not directly related to
40889 background and foreground).
40890 (grub_ofconsole_setcolorstate): Extract background and foreground
40891 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
40892
0aac2f79 408932008-06-17 Robert Millan <rmh@aybabtu.com>
40894
40895 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
40896 /boot/grub for the check in last commit, not /boot (they could be
40897 different partitions).
40898
3cca7ef3 408992008-06-16 Robert Millan <rmh@aybabtu.com>
40900
40901 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
40902 asked to setup access for the same partition that provides /boot,
40903 don't bother using UUIDs since our root already has the value we
40904 want.
40905
347396d8 409062008-06-16 Robert Millan <rmh@aybabtu.com>
40907
40908 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
40909 I2O devices.
40910 Patch from Sven Mueller <sven@debian.org>.
40911
991477f8 409122008-06-16 Robert Millan <rmh@aybabtu.com>
40913
40914 * util/update-grub.in: Check for $EUID instead of $UID.
40915 Reported by Vincent Zweije.
40916
d31a32a1 409172008-06-16 Bean <bean123ch@gmail.com>
40918
fe987087 40919 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 40920 (grub_ext2_read_block): Likewise.
40921 (grub_ext2_read_inode): Likewise.
40922 (grub_ext2_mount): Likewise.
40923 (grub_ext2_close): Likewise.
40924 (grub_ext3_get_journal): Removed.
40925
fe987087 40926 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 40927 (grub_reiserfs_read_symlink): Likewise.
40928 (grub_reiserfs_mount): Likewise.
40929 (grub_reiserfs_open): Likewise.
40930 (grub_reiserfs_read): Likewise.
40931 (grub_reiserfs_close): Likewise.
40932 (grub_reiserfs_get_journal): Removed.
40933
40934 * fs/fshelp.c (grub_fshelp_read): Removed.
40935 (grub_fshelp_map_block): Likewise.
40936
40937 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
40938 (grub_fshelp_journal): Likewise.
40939 (grub_fshelp_read): Likewise.
40940 (grub_fshelp_map_block): Likewise.
40941
3540a760 409422008-06-16 Pavel Roskin <proski@gnu.org>
40943
40944 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
40945 floating point anymore.
40946 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
40947
95614c84 409482008-06-15 Pavel Roskin <proski@gnu.org>
40949
40950 * commands/ls.c (grub_ls_list_files): Use integer calculations
40951 for human readable format, avoid floating point use.
40952 * kern/misc.c (grub_ftoa): Remove.
40953 (grub_vsprintf): Remove floating point support.
40954
50465dd6 409552008-06-15 Robert Millan <rmh@aybabtu.com>
40956
fe6b695a 40957 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 40958 devices.
40959 Reported by Max Vozeler.
40960
a9207284 409612008-06-15 Robert Millan <rmh@aybabtu.com>
40962
40963 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
40964 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
40965 skipped later.
40966 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
40967 the beginning of the prefix.
40968
40969 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
40970 It is assumed that if we have a memdisk, grub-mkimage has set
40971 grub_prefix to include the "(memdisk)" drive in it.
40972
a7cbd45a 409732008-06-15 Robert Millan <rmh@aybabtu.com>
40974
40975 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
40976 Initialize keyboard controller after registering the terminal, so that
40977 grub_printf() can be called from grub_keyboard_controller_init().
40978
21cf716a 409792008-06-15 Robert Millan <rmh@aybabtu.com>
40980
40981 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
40982 extent-btree which is written as big endian on disk.
40983 Reported by Alain Greppin <al@chilibi.org>.
40984
23a64d8e 409852008-06-14 Robert Millan <rmh@aybabtu.com>
40986
40987 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
40988 * util/i386/pc/grub-install.in (modules): Likewise.
40989
d687651c 409902008-06-13 Pavel Roskin <proski@gnu.org>
40991
40992 * commands/ls.c (grub_ls_list_files): Fix format warnings.
40993
dfe9ddd4 409942008-06-13 Bean <bean123ch@gmail.com>
40995
40996 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
40997
40998 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
40999
41000 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
41001 to indicate sparse block.
41002
16ae7781 410032008-06-12 Pavel Roskin <proski@gnu.org>
41004
e6d1a308 41005 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
41006 number, grub_fshelp_read() does it for us.
41007
16ae7781 41008 * fs/fshelp.c (grub_fshelp_read): New function. Implement
41009 linear disk read with journal translation.
41010 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
41011 * include/grub/fshelp.h: Declare grub_fshelp_read().
41012
40fd3a2b 410132008-06-09 Pavel Roskin <proski@gnu.org>
41014
41015 * fs/minix.c (grub_minix_mount): Handle error reading
41016 superblock.
41017
f5679726 410182008-06-08 Robert Millan <rmh@aybabtu.com>
41019
41020 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
41021 don't append the RAID prefix afterwards.
41022 Reported by Clint Adams.
41023
ce525529 410242008-06-08 Robert Millan <rmh@aybabtu.com>
41025
41026 Based on description from Pavel:
41027 * kern/disk.c (grub_disk_check_range): Rename to ...
41028 (grub_disk_adjust_range): ... this. Add a comment explaining the
41029 tasks performed by this function.
41030
ad4936a0 410312008-06-08 Robert Millan <rmh@aybabtu.com>
41032
41033 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
41034 `num_serial' (for consistency with other variables).
41035 (struct grub_ntfs_data): Add `uuid' member.
41036 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
41037 (grub_ntfs_uuid): New function.
41038 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
41039
dc20b0f9 410402008-06-07 Pavel Roskin <proski@gnu.org>
41041
41042 * util/biosdisk.c (open_device): Revert last change to the
41043 function, it broke installation. The sector needs to be
41044 different dependent on which device is opened.
41045
c5e3cfba 410462008-06-06 Robert Millan <rmh@aybabtu.com>
41047
41048 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
41049 rest of GRUB, and breakage doesn't happen if its value were modified.
41050
41051 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
41052 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
41053 a constant (same value).
41054 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
41055 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
41056
26a1f8c4 410572008-06-06 Robert Millan <rmh@aybabtu.com>
41058
41059 * util/biosdisk.c (open_device): Do not modify sector offset when
41060 accessing a partition. kern/disk.c already handles this for us.
41061
25d6b327 410622008-06-06 Robert Millan <rmh@aybabtu.com>
41063
41064 * util/grub-emu.c (grub_machine_init): Move code in this function from
41065 here ...
41066 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
41067 segfault in case grub_printf() is called).
41068
41069 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
41070 grub_probe. Update all users not to explicitly add it again.
41071 (grub_device): New variable; contains corresponding device for grubdir.
41072 (fs_module, partmap_module, devabstraction_module): Pass
41073 `--device ${grub_device}' to grub_probe to avoid traversing /dev
41074 every time.
41075
9ece62fb 410762008-06-05 Robert Millan <rmh@aybabtu.com>
41077
41078 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
41079 is found, print it (same layout as with labels).
41080
1ad36d37 410812008-06-04 Robert Millan <rmh@aybabtu.com>
41082
41083 * util/biosdisk.c (get_drive): Rename to ...
41084 (find_grub_drive): ... this. Update all users.
41085
41086 (get_os_disk): Rename to ...
41087 (convert_system_partition_to_system_disk): ... this. Update all users.
41088
41089 (find_drive): Rename to ...
41090 (find_system_device): ... this. Update all users.
41091
e6a30859 410922008-06-04 Robert Millan <rmh@aybabtu.com>
41093
41094 * util/biosdisk.c (get_os_disk): Handle IDA devices.
41095 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41096 (make_device_map): Likewise.
41097
00c108a4 410982008-06-01 Robert Millan <rmh@aybabtu.com>
41099
41100 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
41101 before dereferencing it.
41102
41103 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
41104 union with fat12/fat16-specific ones. Add some new fields, including
41105 `num_serial' for both versions.
41106 (struct grub_fat_data): Add `uuid' member.
41107 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
41108 names. Initialize `data->uuid' using `num_serial'.
41109 (grub_fat_uuid): New function.
41110 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
41111
41112 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
41113 (grub_reiserfs_uuid): New function.
41114 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
41115 member.
41116
41117 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
41118 (grub_xfs_uuid): New function.
41119 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
41120
1385c5bb 411212008-06-01 Robert Millan <rmh@aybabtu.com>
41122
41123 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
41124 code that is backward compatible with pre-uuid search command.
41125
c682dfd7 411262008-05-31 Robert Millan <rmh@aybabtu.com>
41127
41128 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
41129 floppies after everything else, to ensure floppy drive isn't accessed
41130 unnecessarily (patch from Bean).
41131
b7db5d47 411322008-05-31 Robert Millan <rmh@aybabtu.com>
41133
41134 * commands/search.c (search_label, search_fs_uuid, search_file): Do
41135 not print device names when we were asked to set a variable.
41136
6e037aa9 411372008-05-31 Robert Millan <rmh@aybabtu.com>
41138
41139 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
41140 using "cursor-on" and "cursor-off" commands (understood at least by
41141 the Open Firmware flavour on OLPC).
41142
41305bc8 411432008-05-31 Michael Gorven <michael@gorven.za.net>
41144
41145 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
41146 on and off sequences.
41147
69ba137e 411482008-05-31 Robert Millan <rmh@aybabtu.com>
41149
41150 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
41151 * util/update-grub.in: Likewise.
41152
520ae21b 411532008-05-30 Pavel Roskin <proski@gnu.org>
41154
41155 * util/biosdisk.c (linux_find_partition): Simplify logic and
41156 make the code more universal. Keep special processing for
41157 devfs, but use a simple rule for all other devices. If the
41158 device ends with a number, append 'p' and the partition number.
41159 Otherwise, append only the partition number.
41160
5786569b 411612008-05-30 Robert Millan <rmh@aybabtu.com>
41162
41163 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
41164 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
41165 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
41166 the `root' parameter to Linux.
41167
51500452 411682008-05-30 Robert Millan <rmh@aybabtu.com>
41169
41170 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
41171 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
41172 --fs_uuid with --fs-uuid.
41173 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
41174 all filesystems support them).
41175
811d3878 411762008-05-30 Robert Millan <rmh@aybabtu.com>
41177
41178 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 41179 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 41180
cab63c95 411812008-05-30 Robert Millan <rmh@aybabtu.com>
41182
41183 * util/grub.d/00_header.in: Remove obsolete comment referencing
41184 convert_system_path_to_grub_path().
41185 * util/update-grub.in: Likewise.
41186 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
41187 (convert_system_path_to_grub_path): Add a warning message explaining
41188 that this function is deprecated. Rely on is_path_readable_by_grub()
41189 for the readability checks.
41190 (font_path): Use is_path_readable_by_grub() for the readability
41191 check rather than convert_system_path_to_grub_path().
41192
972e2f7a 411932008-05-30 Robert Millan <rmh@aybabtu.com>
41194
41195 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
41196 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
41197 converting it first.
41198 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
41199 grub.cfg for access to font file, and afterwards call it again to set
41200 the root device.
41201
62191274 412022008-05-30 Robert Millan <rmh@aybabtu.com>
41203
41204 * commands/search.c (options): Add --fs_uuid option.
41205 (search_fs_uuid): New function.
41206 (grub_cmd_search): Fix --set argument passing.
41207 Use search_fs_uuid() when requested via --fs_uuid.
41208 (grub_search_init): Update help message.
41209 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
41210 and redeclare it as an array of 16-bit words.
41211 (grub_ext2_uuid): New function.
41212 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
41213 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
41214 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
41215 (GRUB_DEVICE_BOOT_UUID): New variables.
41216 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
41217 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
41218 whenever possible.
41219 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
41220 just assume `root' variable has the right value.
41221 * util/grub.d/10_linux.in: Likewise.
41222 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
41223 via PRINT_FS_UUID.
41224 (main): Recognise `-t fs_uuid' argument.
41225
01b73ec8 412262008-05-30 Robert Millan <rmh@aybabtu.com>
41227
41228 * util/biosdisk.c (map): Redefine structure to hold information
41229 about GRUB drive name.
fe6b695a 41230 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 41231 drive names.
41232 (call_hook): Remove.
41233 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
41234 member. Assume drive has partitions.
41235 (grub_util_biosdisk_open): Access device names via `.device' struct
41236 member.
41237 (open_device): Likewise.
41238 (find_drive): Likewise.
41239 (read_device_map): Adjust map[] usage to match the new struct
41240 definition. Don't check for duplicates (still possible, but not cheap
41241 anymore).
41242 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
41243 (make_device_name): Remove assumption of BIOS-like drive names.
41244
22f16596 412452008-05-30 Pavel Roskin <proski@gnu.org>
41246
41247 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
41248 compiling execute.c doesn't need grub_script.tab.h anymore.
41249 (normal/command.c_DEPENDENCIES): Likewise.
41250 (normal/function.c_DEPENDENCIES): Likewise.
41251 * conf/i386-ieee1275.rmk: Likewise.
41252 * conf/i386-linuxbios.rmk: Likewise.
41253 * conf/i386-pc.rmk: Likewise.
41254 * conf/powerpc-ieee1275.rmk: Likewise.
41255 * conf/sparc64-ieee1275.rmk: Likewise.
41256
528ad8f2 412572008-05-29 Pavel Roskin <proski@gnu.org>
41258
d1dff95d 41259 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
41260 when scanning metadata for volume group name.
41261
528ad8f2 41262 * include/grub/script.h: Don't include grub_script.tab.h. It's
41263 a generated file, which may only be included from the files with
41264 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
41265 use union YYSTYPE, as the later allows forward declaration.
41266 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
41267
47248e08 412682008-05-29 Robert Millan <rmh@aybabtu.com>
41269
41270 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
41271 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
41272 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
41273 (grub_console_checkkey): Add grub_dprintf() call to report unknown
41274 scan codes.
41275
ee632529 412762008-05-29 Robert Millan <rmh@aybabtu.com>
41277
41278 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
41279 control key combinations.
41280
eee96e08 412812008-05-29 Robert Millan <rmh@aybabtu.com>
41282
41283 * util/powerpc/ieee1275/grub-install.in: Move from here ...
41284 * util/ieee1275/grub-install.in: ... to here.
41285 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
41286 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
41287 (grub_install_SOURCES): Likewise.
41288
da9a6a94 412892008-05-29 Robert Millan <rmh@aybabtu.com>
41290
41291 * fs/affs.c: Update copyright year.
41292 * fs/ext2.c: Likewise.
41293 * fs/fshelp.c: Likewise.
41294 * fs/hfsplus.c: Likewise.
41295 * fs/ntfs.c: Likewise.
41296 * fs/xfs.c: Likewise.
41297 * include/grub/fshelp.h: Likewise.
41298 * util/grub-mkdevicemap.c: Likewise.
41299
12e65f3a 413002008-05-28 Robert Millan <rmh@aybabtu.com>
41301
41302 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
41303 might need to be fatfs to support some firmware implementations
41304 (e.g. OFW or EFI).
41305
23023641 413062008-05-28 Robert Millan <rmh@aybabtu.com>
41307
41308 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
41309 devices.
41310 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41311 (make_device_map): Likewise.
41312
887d2619 413132008-05-20 Bean <bean123ch@gmail.com>
41314
41315 * fs/fshelp.c (grub_fshelp_map_block): New function.
41316 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
41317 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
41318
41319 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
41320 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
41321 (grub_fshelp_journal): New structure.
41322 (grub_fshelp_map_block): New function prototype.
41323 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
41324 (grub_fshelp_map_block): Likewise.
41325
41326 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
41327 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
41328 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
41329 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
41330 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
41331 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
41332 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
41333 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
41334 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
41335 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
41336 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
41337 (grub_ext2_sblock): New members for journal support.
41338 (grub_ext3_journal_header): New structure.
41339 (grub_ext3_journal_revoke_header): Likewise.
41340 (grub_ext3_journal_block_tag): Likewise.
41341 (grub_ext3_journal_sblock): Likewise.
41342 (grub_fshelp_node): New members logfile and journal.
41343 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
41344 grub_fshelp_map_block to get real block number.
41345 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
41346 number.
41347 (grub_ext2_read_inode): Likewise.
41348 (grub_ext3_get_journal): New function.
41349 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
41350 (grub_ext2_close): Release memory used by journal.
41351
41352 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
41353 (REISERFS_MAGIC_DESC_BLOCK): New macro.
41354 (grub_reiserfs_transaction_header): Renamed to
41355 grub_reiserfs_description_block, replace field data with real_blocks.
41356 (grub_reiserfs_commit_block): New structure.
41357 (grub_reiserfs_data): New member journal.
41358 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
41359 number.
41360 (grub_reiserfs_read_symlink): Likewise.
41361 (grub_reiserfs_iterate_dir): Likewise.
41362 (grub_reiserfs_open): Likewise.
41363 (grub_reiserfs_read): Likewise.
41364 (grub_reiserfs_get_journal): New function.
41365 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
41366 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
41367 using grub_reiserfs_get_journal.
41368 (grub_reiserfs_close): Release memory used by journal.
41369
41370 * fs/affs.c (grub_affs_read_block): Change block type to
41371 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
41372
41373 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
41374
41375 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
41376
41377 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
41378
41379 * fs/udf.c (grub_udf_read_block): Change block type to
41380 grub_disk_addr_t. Use type cast to avoid warning.
41381
41382 * fs/xfs.c (grub_xfs_read_block): Likewise.
41383
b7c6bed5 413842008-05-16 Christian Franke <franke@computer.org>
41385
41386 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
41387 to ensure that break with ESC will always work.
41388 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
41389 Remove ESC from keyboard queue.
41390
eedf167f 413912008-05-16 Christian Franke <franke@computer.org>
41392
41393 * util/biosdisk.c: [__CYGWIN__] Add includes.
41394 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
41395 (get_os_disk): Move variable declarations to OS specific
41396 parts to avoid warning.
41397 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
41398 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
41399 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
41400 Cygwin.
41401 * util/getroot.c: [__CYGWIN__] Add includes.
41402 (strip_extra_slashes): Fix "/" case.
41403 [__CYGWIN__] (get_win32_path): New function.
41404 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
41405 [__CYGWIN__] (find_root_device): Disable.
41406 [__CYGWIN__] (get_bootsec_serial): New function.
41407 [__CYGWIN__] (find_cygwin_root_device): Likewise.
41408 [__linux__] (grub_guess_root_device): Add early returns to simplify
41409 structure.
41410 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
41411 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
41412 check for Linux only.
41413
a079699e 414142008-05-15 Bean <bean123ch@gmail.com>
41415
41416 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
41417 keyboard hang problem in apple's intel mac.
41418
1cf4059a 414192008-05-09 Robert Millan <rmh@aybabtu.com>
41420
41421 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
41422 devices.
41423 * util/grub-mkdevicemap.c (get_virtio_disk_name)
41424 (make_device_map): Likewise.
41425 Reported by Aurelien Jarno <aurel32@debian.org>
41426
ed759390 414272008-05-07 Ian Campbell <ijc@hellion.org.uk>
41428
41429 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
41430 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
41431 (make_device_map): Output entries for xvd type disks.
41432
b56c4eaa 414332008-05-07 Robert Millan <rmh@aybabtu.com>
41434
41435 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
41436 devices.
41437 * util/grub-mkdevicemap.c (get_cciss_disk_name)
41438 (make_device_map): Likewise.
41439 Reported by Roland Dreier <rdreier@cisco.com>
41440
7f8866ed 414412008-05-07 Robert Millan <rmh@aybabtu.com>
41442
41443 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
41444 grub_strstr() call. Correct a few mistakes in failure path handling.
41445
b0346e0f 414462008-05-06 Robert Millan <rmh@aybabtu.com>
41447
41448 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
41449 Do not print a trailing slash (therefore, the root directory is an
41450 empty string).
41451 (convert_system_path_to_grub_path): Do not remove trailing slash
41452 from make_system_path_relative_to_its_root() output.
41453
41454 * util/i386/pc/grub-install.in: Add trailing slash to output from
41455 make_system_path_relative_to_its_root().
41456
6cf12cbd 414572008-05-06 Robert Millan <rmh@aybabtu.com>
41458
41459 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
41460 ensures that output lines aren't intermangled with those sent to
41461 stderr (via grub_util_info()).
41462 * util/grub-probe.c (grub_refresh): Likewise.
41463 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
41464
0fbb3117 414652008-05-05 Christian Franke <franke@computer.org>
41466
41467 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
41468 Add Cygwin device names.
41469 (get_ide_disk_name) [__CYGWIN__]: Likewise.
41470 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
41471 (check_device): Return error instead of success on empty name.
41472 (make_device_map): Move label inside linux specific code to
41473 prevent compiler warning.
41474
8124cdb7 414752008-04-30 Robert Millan <rmh@aybabtu.com>
41476
41477 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
41478 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
41479 first boot option.
41480 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
41481
094c01d0 414822008-04-29 Robert Millan <rmh@aybabtu.com>
41483
41484 * docs/grub.cfg: New file (example GRUB configuration).
41485
f4b1fc02 414862008-04-26 Robert Millan <rmh@aybabtu.com>
41487
329ce2a5 41488 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
41489 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
41490 and `disk/ieee1275/nand.c'.
f4b1fc02 41491
25f16ec1 414922008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 41493
25f16ec1 41494 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
41495 i386-linuxbios.
41496
41497 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
41498 change the buffer size to 4096 for cdrom device.
41499
41500 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
41501 and nand.mod.
41502 (_linux_mod_SOURCES): New variable.
41503 (_linux_mod_CFLAGS): Likewise.
41504 (_linux_mod_LDFLAGS): Likewise.
41505 (linux_mod_SOURCES): Likewise.
41506 (linux_mod_CFLAGS): Likewise.
41507 (linux_mod_LDFLAGS): Likewise.
41508 (nand_mod_SOURCES): Likewise.
41509 (nand_mod_CFLAGS): Likewise.
41510 (nand_mod_LDFLAGS): Likewise.
41511
41512 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
41513 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
41514 type property. (nand device in olpc don't have this property)
41515
41516 * include/grub/disk.h (grub_disk_dev_id): New macro
41517 GRUB_DISK_DEVICE_NAND_ID.
41518
41519 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
41520 function prototype.
41521 (grub_rescue_cmd_initrd): Likewise.
41522
41523 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
41524 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
41525 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 41526
25f16ec1 41527 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
41528 GRUB_MACHINE_IEEE1275 is defined.
41529
41530 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
41531 Use NESTED_FUNC_ATTR attribute on the hook parameter.
41532
41533 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
41534 on nested function heap_init.
41535 (grub_upper_mem): New variable for i386-ieee1275.
41536 (grub_get_extended_memory): New function for i386-ieee1275.
41537 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
41538
41539 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
41540 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
41541 property.
f19dbdb7 41542
25f16ec1 41543 * loader/i386/ieee1275/linux.c: New file.
41544
41545 * loader/i386/ieee1275/linux_normal.c: New file.
41546
41547 * disk/ieee1275/nand.c: New file.
41548
e89d61e9 415492008-04-18 Thomas Schwinge <tschwinge@gnu.org>
41550
41551 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
41552 value.
41553 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
41554
602566f6 415552008-04-18 Robert Millan <rmh@aybabtu.com>
41556
41557 Restructures early code path on ieee1275 to unify grub_main() as
41558 the first C function that is executed in every platform.
41559
41560 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
41561 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
41562 cmain().
41563 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
41564 * kern/ieee1275/cmain.c (cmain): Rename to ...
41565 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
41566 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
41567 at the beginning.
41568
57490c2b 415692008-04-18 Robert Millan <rmh@aybabtu.com>
41570
41571 * util/update-grub.in: Fix syntax error when setting
41572 `GRUB_PRELOAD_MODULES'.
41573 Reported by Stephane Chazelas <stephane@artesyncp.com>
41574
1977517d 415752008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
41576
41577 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
41578 section into account, newer toolchains generate unique build ids
41579 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 41580 we want build ids to be preserved
1977517d 41581 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
41582 far from other sections don't cause the raw binary images grow
41583 size
41584
bfb1f1a2 415852008-04-15 Robert Millan <rmh@aybabtu.com>
41586
41587 * disk/lvm.c: Update copyright year.
41588 * kern/misc.c: Likewise.
41589
01979850 415902008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41591
41592 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 41593 there is no memory left for physical volume name.
01979850 41594
0a1150e2 415952008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
41596
41597 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
41598 volume name mapping to support bigger than 9 character names properly.
41599
82ead3fe 416002008-04-13 Robert Millan <rmh@aybabtu.com>
41601
41602 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
41603 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
41604
e54a72f5 416052008-04-13 Christian Franke <franke@computer.org>
41606
41607 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
41608 to create a floppy emulation boot CD when non emulation mode
41609 does not work.
41610 Enable Joliet CD filesystem extension.
41611
9fe86034 416122008-04-13 Robert Millan <rmh@aybabtu.com>
41613
41614 * kern/misc.c (grub_strncat): Fix off-by-one error.
41615 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
41616
41617 * kern/env.c (grub_env_context_close): Clear current context, not
41618 previous one.
41619 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
41620
41621 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
41622
7ceeee39 416232008-04-13 Robert Millan <rmh@aybabtu.com>
41624
41625 Improve robustness when handling LVM.
41626
41627 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 41628 (and leave `*p' unmodified).
7ceeee39 41629 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
41630 through it.
41631 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
41632 iterating through it.
41633 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
41634 through it.
fe6b695a 41635 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 41636 when due) on each grub_lvm_getvalue() or grub_strstr() call.
41637 Don't assume `vg->pvs != NULL' when iterating through it.
41638
58cd3d85 416392008-04-13 Robert Millan <rmh@aybabtu.com>
41640
41641 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
41642 * genmk.rb (partmap): New variable.
41643 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
41644 (#{partmap}): New target rule.
41645 * genpartmaplist.sh: New file.
41646 * Makefile.in (pkglib_DATA): Add partmap.lst.
41647 (partmap.lst): New target rule.
41648 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
41649 modules (including all partition maps), instead of preloading them.
41650
78b51059 416512007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
41652
41653 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
41654 `linux-boot-prober' (if installed) to detect other operating
41655 systems which are installed on the computer and add them to
41656 the boot menu.
41657 * conf/common.rmk: Build and install 30_os-prober.
41658
a91627b4 416592008-04-12 Robert Millan <rmh@aybabtu.com>
41660
41661 * kern/powerpc/ieee1275/init.c: Move from here ...
41662 * kern/ieee1275/init.c: ... to here. Update all users.
41663
41664 * kern/powerpc/ieee1275/cmain.c: Move from here ...
41665 * kern/ieee1275/cmain.c: ... to here. Update all users.
41666
41667 * kern/powerpc/ieee1275/openfw.c: Move from here ...
41668 * kern/ieee1275/openfw.c: ... to here. Update all users.
41669
41670 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
41671 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
41672
322562ea 416732008-04-10 Pavel Roskin <proski@gnu.org>
41674
41675 * configure.ac: Always use "_cv_" in cache variables for
41676 compatibility with Autoconf 2.62.
41677
a02a73c5 416782008-04-07 Robert Millan <rmh@aybabtu.com>
41679
41680 Revert grub/machine/init.h addition by Pavel (since it breaks on
41681 i386-ieee1275 and others):
41682 * util/i386/pc/misc.c: Remove grub/machine/init.h.
41683 * util/powerpc/ieee1275/misc.c: Likewise.
41684
25c024b1 416852008-04-07 Robert Millan <rmh@aybabtu.com>
41686
41687 * util/grub-probe.c (probe): Improve error message.
41688
3cbd2f98 416892008-04-07 Robert Millan <rmh@aybabtu.com>
41690
41691 * util/biosdisk.c (read_device_map): Skip devices that don't exist
41692 (this prevents the presence of a bogus entry from ruining the whole
41693 thing).
41694
87a297bf 416952008-04-06 Pavel Roskin <proski@gnu.org>
41696
36747a62 41697 * util/biosdisk.c: Include grub/util/biosdisk.h.
41698 * util/grub-fstest.c (execute_command): Make static.
41699 * util/grub-mkdevicemap.c (check_device): Likewise.
41700 * util/i386/pc/misc.c: Include grub/machine/init.h.
41701 * util/powerpc/ieee1275/misc.c: Likewise.
41702 * util/lvm.c: Include grub/util/lvm.h.
41703 * util/misc.c: Include grub/kernel.h, grub/misc.h and
41704 grub/cache.h.
41705 * util/raid.c: Include grub/util/raid.h.
41706 (grub_util_getdiskname): Make static.
41707
87a297bf 41708 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
41709 grub_hostfs_fini(), as they are called from grub_init_all() and
41710 grub_fini_all() respectively. This fixes an infinite loop in
41711 grub-fstest due to double registration of hostfs.
41712 Reported by Christian Franke <Christian.Franke@t-online.de>
41713
f6ce7629 417142008-04-05 Pavel Roskin <proski@gnu.org>
41715
41716 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
41717 all 8 functions. Otherwise, probe function 0 only.
41718
070e49e4 417192008-04-04 Pavel Roskin <proski@gnu.org>
41720
8b088a4c 41721 * commands/lspci.c (grub_lspci_iter): Print the bus number
41722 correctly.
41723
4f657021 41724 * commands/lspci.c (grub_pci_classes): Fix typos.
41725 (grub_lspci_iter): Don't print func twice. Print vendor ID
41726 before device ID, as it's normally done.
41727
070e49e4 41728 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41729 Fix signedness warnings.
41730 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
41731 Likewise.
41732 * util/ieee1275/get_disk_name.c: Include config.h so that
41733 _GNU_SOURCE is defined and getline() is declared. Mark an
41734 unused argument as such. Fix a signedness warning.
41735
ba7328dc 417362008-04-02 Pavel Roskin <proski@gnu.org>
41737
26887f22 41738 * genkernsyms.sh.in: Use more robust assignments for CC and
41739 srcdir. Quote srcdir.
41740 * gensymlist.sh.in: Likewise. Assert at the compile time that
41741 the symbol table is not empty.
41742
ba7328dc 41743 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
41744 * fs/cpio.c (grub_cpio_read): Likewise.
41745
0f582c6b 417462008-04-01 Pavel Roskin <proski@gnu.org>
41747
4b6e1995 41748 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
41749 * disk/host.c (grub_host_open): Likewise.
41750 * disk/loopback.c (grub_loopback_open): Likewise.
41751 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
41752 disk->id as in disk/host.c, not a multi-character constant.
41753
828a2768 41754 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
41755 later is obsolete, potentially dangerous and sets a bad example.
41756 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
41757 * util/misc.c (grub_util_get_image_size): Likewise.
41758
2bb4fb47 41759 * disk/loopback.c (options): Improve help for "--partitions".
41760
0f582c6b 41761 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
41762 options to align them with the short options, e.g. "echo -e".
41763
a33224e0 417642008-03-31 Bean <bean123ch@gmail.com>
41765
41766 * video/reader/png.c (grub_png_data): New member is_16bit and
41767 image_data.
41768 (grub_png_decode_image_header): Detect 16 bit png image.
41769 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
41770 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
41771 (grub_video_reader_png): Release memory occupied by image_data.
41772
41773 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
41774 4096 bytes.
41775 (grub_nfs_mount): Skip the test for sector per cluster.
41776
41777 * include/grub/ntfs.h (MAX_SPC): Removed.
41778
86cb4f54 417792008-03-31 Bean <bean123ch@gmail.com>
41780
41781 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
41782 (grub_probe_SOURCES): Add fs/afs.c.
41783 (grub_fstest_SOURCES): Likewise.
41784 (afs_mod_SOURCES): New variable.
41785 (afs_mod_CFLAGS): Likewise.
41786 (afs_mod_LDFLAGS): Likewise.
41787
41788 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
41789 (grub_emu_SOURCES): Likewise.
41790
41791 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41792
41793 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41794
41795 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41796
41797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41798
41799 * fs/afs.c: New file.
41800
17c74c21 418012008-03-30 Pavel Roskin <proski@gnu.org>
41802
4cb68e89 41803 * disk/host.c: Include grub/misc.h to fix a warning.
41804 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
41805 warnings about implicit declarations.
41806
8790bb04 41807 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
41808 variable.
41809 * include/grub/i386/loader.h: Change declaration of
41810 grub_linux_boot() to match what grub_loader_set() expects.
41811 * util/getroot.c (grub_guess_root_device): Return const char* to
41812 fix a warning.
41813 * util/grub-probe.c (probe): Fix a warning about uninitialized
41814 abstraction_name variable.
41815 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
41816 second argument as unused to fix a warning.
41817
9a3f3296 41818 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
41819 missing grub_error() call.
41820
0ecef90d 41821 * util/update-grub_lib.in: Define datarootdir, since Autoconf
41822 2.60 and newer uses it to define datadir.
41823
0bf6d401 41824 * commands/sleep.c: Fix warning about implicit declaration.
41825 * disk/memdisk.c: Likewise.
41826 * loader/aout.c: Likewise.
41827 * loader/i386/bsd_normal.c: Likewise.
41828 * util/grub-probe.c: Likewise.
41829
7cdacf97 41830 * commands/i386/cpuid.c (has_longmode): Make static.
41831 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
41832 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
41833
17c74c21 41834 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
41835 GDT. This is more robust, as %ds can change.
41836 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
41837 calling real_to_prot().
41838 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
41839
80a3e68b 418402008-03-28 Pavel Roskin <proski@gnu.org>
41841
41842 * kern/i386/pc/startup.S: Assert that uncompressed functions
41843 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
41844 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
41845 code, as they push parts of the code (error handlers) beyond
41846 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
41847 code as correctness and size.
41848
77bcd272 418492008-03-28 Pavel Roskin <proski@gnu.org>
41850
41851 * kern/i386/pc/startup.S
41852 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
41853 data block address to the real mode, keep offset minimal. This
41854 works around a bug in AWARD BIOS on old Athlon systems, which
41855 makes CD detection hang.
41856
c5dfd43b 418572008-03-26 Pavel Roskin <proski@gnu.org>
41858
41859 * normal/color.c (grub_parse_color_name_pair): Make `name' a
41860 const.
41861 * include/grub/normal.h: Add grub_parse_color_name_pair()
41862 declaration.
41863
bf962df2 418642008-03-24 Bean <bean123ch@gmail.com>
41865
41866 * disk/i386/pc/biosdisk.c (cd_start): Removed.
41867 (cd_count): Removed.
41868 (cd_drive): New variable.
41869 (grub_biosdisk_get_drive): Don't check for (cdN) device.
41870 (grub_biosdisk_call_hook): Likewise.
41871 (grub_biosdisk_iterate): Change cdrom detection method.
41872 (grub_biosdisk_open): Replace cd_start with cd_drive.
41873 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
41874 detect cdrom device.
41875
41876 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
41877 Removed.
41878 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
41879 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
41880 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
41881 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
41882 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
41883 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
41884 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
41885 (grub_biosdisk_cdrp): New structure.
41886 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
41887
41888 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
41889
41890 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
41891 device.
41892
41893 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
41894 New function.
41895
68e7fc7a 418962008-03-20 Robert Millan <rmh@aybabtu.com>
41897
41898 Remove 2 TiB limit in ata.mod.
41899 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
41900 (grub_ata_dumpinfo): Print sector count with 0x%llx.
41901 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
41902 grub_uint64_t instead of grub_uint32_t.
41903
38ad2cf5 419042008-03-05 Bean <bean123ch@gmail.com>
41905
41906 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
41907 (grub_multiboot): Set boot device.
41908
41909 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
41910
2b89344e 419112008-03-02 Bean <bean123ch@gmail.com>
41912
41913 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
41914 symlink_buffer.
41915
87a95d1f 419162008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
41917
41918 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
41919 texinfo.tex.
41920
41921 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
41922 modified.
41923
41924 * docs/fdl.texi: New file.
f19dbdb7 41925
87a95d1f 41926 * docs/mdate-sh: New file. Copied from gnulib.
41927 * docs/texinfo.tex: Likewise.
41928
41929 * config.guess: Updated from gnulib.
41930 * install-sh: Likewise.
41931
7dc15d8e 419322008-02-28 Robert Millan <rmh@aybabtu.com>
41933
41934 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
41935 (aout_mod_SOURCES): New variable.
41936 (aout_mod_CFLAGS): Likewise.
41937 (aout_mod_LDFLAGS): Likewise.
41938
41939 * conf/i386-ieee1275.rmk: Likewise.
41940
b00ab696 419412008-02-28 Robert Millan <rmh@aybabtu.com>
41942
41943 * util/update-grub.in: Reorganise terminal validity check. Accept
41944 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
41945 Based on suggestion by Franklin PIAT.
41946
79ca2d78 419472008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
41948
41949 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
41950 function.
41951 * util/getroot.c (grub_util_check_block_device): New function that
41952 returns the given argument if it is a block device and returns NULL else.
41953 * util/grub-probe.c (argument_is_device): New variable.
41954 (probe): Promote device_name from a variable to an argument. Receive
41955 device_name from grub_util_check_block_device() if path is NULL and from
41956 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 41957 (options): Introduce new parameter '-d, --device'.
79ca2d78 41958 (main): Add description of the new parameter to the help screen.
41959 Rename path variable to argument. Set argument_is_device if the '-d'
41960 option is given. Pass argument to probe() depending on
41961 argument_is_device.
41962
0d16e571 419632008-02-24 Bean <bean123ch@gmail.com>
41964
41965 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
41966 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
41967 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
41968 (GRUB_ISO9660_VOLDESC_PART): Likewise.
41969 (GRUB_ISO9660_VOLDESC_END): Likewise.
41970 (grub_iso9660_primary_voldesc): New member escape.
41971 (grub_iso9660_data): New member joliet.
41972 (grub_iso9660_convert_string): New function.
41973 (grub_iso9660_mount): Detect joliet extension.
41974 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
41975 (grub_iso9660_iso9660_label): Likewise.
41976
41977 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
41978 (grub_setup_SOURCES): Add fs/udf.c.
41979 (grub_fstest_SOURCES): Likewise.
41980 (udf_mod_SOURCES): New variable.
41981 (udf_mod_CFLAGS): Likewise.
41982 (udf_mod_LDFLAGS): Likewise.
41983
41984 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
41985 (grub_emu_SOURCES): Likewise.
41986
41987 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41988
41989 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41990
41991 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41992
41993 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41994
41995 * fs/udf.c: New file.
41996
8a594a17 419972008-02-24 Robert Millan <rmh@aybabtu.com>
41998
41999 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
42000 (normal/lexer.c_DEPENDENCIES): New variables.
42001 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42002 (normal/lexer.c_DEPENDENCIES): Likewise.
42003 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
42004 (normal/lexer.c_DEPENDENCIES): Likewise.
42005 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
42006 (normal/lexer.c_DEPENDENCIES): Likewise.
42007 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42008 (normal/lexer.c_DEPENDENCIES): Likewise.
42009 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42010 (normal/lexer.c_DEPENDENCIES): Likewise.
42011
2dc33c03 420122008-02-23 Robert Millan <rmh@aybabtu.com>
42013
42014 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
42015 since they were intended to be in hex. This didn't break previously
42016 because of a bug in gpt_partition_map_iterate() (see below).
42017
42018 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
42019 when checking the validity of GPT header.
42020 Remove `partno', since it always provides the same information as `i'.
42021
f6f4cfb0 420222008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
42023
42024 * include/grub/efi/time.h: Fix a wrong comment.
42025
79ff665f 420262008-02-19 Pavel Roskin <proski@gnu.org>
42027
42028 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
42029 message.
42030
d38e24c2 420312008-02-19 Bean <bean123ch@gmail.com>
42032
42033 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
42034 (aout_mod_SOURCES): New variable.
42035 (aout_mod_CFLAGS): Likewise.
42036 (aout_mod_LDFLAGS): Likewise.
42037 (_bsd_mod_SOURCES): New variable.
42038 (_bsd_mod_CFLAGS): Likewise.
42039 (_bsd_mod_LDFLAGS): Likewise.
42040 (bsd_mod_SOURCES): New variable.
42041 (bsd_mod_CFLAGS): Likewise.
42042 (bsd_mod_LDFLAGS): Likewise.
42043
42044 * include/grub/aout.h: New file.
42045
42046 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
42047
42048 * include/grub/i386/bsd.h: New file.
42049
42050 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
42051 to make it public.
42052
42053 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
42054 function is called, so that it's possible to change it inside the hook.
42055 (grub_elf64_load): Likewise.
42056 (grub_elf_file): Don't close the file if elf header is not found.
42057 (grub_elf_close): Close the file if grub_elf_file fails (The new
42058 grub_elf_file won't close it).
42059 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
42060 (grub_elf64_size): Likewise.
42061
42062 * kern/i386/loader.S (grub_unix_real_boot): New function.
42063
42064 * loader/aout.c: New file.
42065
42066 * loader/i386/bsd.c: New file.
42067
42068 * loader/i386/bsd_normal.c: New file.
42069
42070 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
42071
42072 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 42073 can test other formats.
d38e24c2 42074
b93bdb0f 420752008-02-19 Robert Millan <rmh@aybabtu.com>
42076
42077 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
42078 (grub_gpt_partition_type_empty): Redefine with macro from
42079 `<grub/gpt_partition.h>'.
42080 (gpt_partition_map_iterate): Adjust partition type comparison.
42081
42082 Export `entry' as partmap-specific `part.data' struct.
42083 (grub_gpt_header, grub_gpt_partentry): Move from here ...
42084
42085 * include/grub/gpt_partition.h (grub_gpt_header)
42086 (grub_gpt_partentry): ... to here (new file).
42087
42088 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
42089
42090 (grub_gpt_partition_type_bios_boot): New const variable, defined
42091 with macro from `<grub/gpt_partition.h>'.
42092
42093 (setup): Replace `first_start' with `embed_region', which keeps
42094 track of the embed region (and is partmap-agnostic).
42095
42096 Replace find_first_partition_start() with find_usable_region(),
42097 which finds a usable region for embedding using partmap-specific
42098 knowledge (supports PC/MSDOS and GPT).
42099
42100 Fix all assumptions that the embed region start at sector 1, using
42101 `embed_region.start' from now on. Similarly, use `embed_region.end'
42102 rather than `first_start' to calculate available size.
42103
42104 In grub_util_info() message, replace "into after the MBR" with an
42105 indication of the specific sector our embed region starts at.
42106
66cb40f6 421072008-02-19 Robert Millan <rmh@aybabtu.com>
42108
42109 * DISTLIST: Replace `commands/ieee1275/halt.c' and
42110 `commands/ieee1275/reboot.c' with `commands/halt.c' and
42111 `commands/reboot.c'.
42112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42113 (halt_mod_SOURCES): Likewise.
42114 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42115 (halt_mod_SOURCES): Likewise.
42116
b7202015 421172008-02-17 Christian Franke <franke@computer.org>
42118
42119 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
42120
32b0fc49 421212008-02-17 Robert Millan <rmh@aybabtu.com>
42122
42123 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42124 set `first_start' to 0 for non-PC/MSDOS partition maps.
42125
aca63502 421262008-02-16 Robert Millan <rmh@aybabtu.com>
42127
42128 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42129 do not assume partition map is PC/MSDOS before performing checks that
42130 are specific to that layout.
42131
0de8be86 421322008-02-13 Robert Millan <rmh@aybabtu.com>
42133
42134 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
42135 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
42136 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
42137
c3db8364 421382008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
42139
42140 * configure.ac: Only a cosmetic change on the handling of
42141 -fno-stack-protector.
42142
f714229e 421432008-02-12 Alexandre Boeglin <alex@boeglin.org>
42144
c3db8364 42145 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
42146 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
42147 reboot.c.
f714229e 42148 (grub_install_SOURCES): Add halt.mod and reboot.mod.
42149 (halt_mod_SOURCES): New variable.
42150 (halt_mod_CFLAGS): Likewise.
42151 (halt_mod_LDFLAGS): Likewise.
42152 (reboot_mod_SOURCES): Likewise.
42153 (reboot_mod_CFLAGS): Likewise.
42154 (reboot_mod_LDFLAGS): Likewise.
42155
c3db8364 42156 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
42157 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
42158 reboot.c.
f714229e 42159 (halt_mod_SOURCES): Likewise.
42160 (reboot_mod_SOURCES): Likewise.
42161
c3db8364 42162 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
42163 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 42164 (reboot_mod_SOURCES): Likewise.
42165
42166 * commands/i386/pc/reboot.c: merge this file ...
42167
42168 * commands/ieee1275/reboot.c: ... and this file ...
42169
42170 * commands/reboot.c: ... to this file.
c3db8364 42171 Add some precompiler directive to include the correct header for
42172 each machine.
f714229e 42173
42174 * commands/ieee1275/halt.c: move this file ...
42175
42176 * commands/halt.c: ... to here.
c3db8364 42177 Add some precompiler directive to include the correct header for
42178 each machine.
f714229e 42179
42180 * include/grub/efi/efi.h (grub_reboot): New function declaration.
42181 (grub_halt): Likewise.
42182
42183 * kern/efi/efi.c (grub_reboot): New function.
42184 (grub_halt): Likewise.
42185
c74493e0 421862008-02-12 Robert Millan <rmh@aybabtu.com>
42187
42188 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
42189 /dev (like it is done for /dev/mapper). This doesn't provide support
42190 for EVMS, but at least it is now easy to identify the problem when it
42191 arises.
42192
d0db4b04 421932008-02-11 Robert Millan <rmh@aybabtu.com>
42194
42195 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
42196 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
42197 comparing it with -1, not 0.
42198
bf748642 421992008-02-10 Robert Millan <rmh@aybabtu.com>
42200
42201 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
42202 `disk/lvm.c'.
42203 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42204 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
42205
42206 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
42207 `disk/lvm.c' to the end of the list.
42208 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42209 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42210
b5db202a 422112008-02-10 Robert Millan <rmh@aybabtu.com>
42212
42213 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
42214 grub_print_error() instead. This will let user know why we're entering
42215 rescue mode.
42216 Based on suggestions from Sam Morris.
42217
83abee31 422182008-02-10 Alexandre Boeglin <alex@boeglin.org>
42219
42220 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
42221 on remaining N args, instead of "--" arg N times.
42222
78d5a08b 422232008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
42224
42225 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
42226 (fill_with_default_glyph): Changed to use unknown_glyph for fill
42227 pattern for unknown glyphs.
42228
68807e5f 422292008-02-09 Robert Millan <rmh@aybabtu.com>
42230
42231 * configure.ac: Probe for `help2man'.
42232 * Makefile.in (builddir): New variable.
42233 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
42234 or otherwise add a few flags/options to it.
42235 (install-local): For every executable utility or script that is
42236 installed, invoke $(HELP2MAN) to install a manpage based on --help
42237 output.
42238
42239 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
42240 that it doesn't prevent --help from working in build tree.
42241
42242 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
42243 with `bug-grub@gnu.org'.
42244 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
42245 * util/update-grub.in (usage): New function.
42246 Implement proper argument check, with support for --help and --version
42247 (as well as existing -y).
42248
422492008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 42250
42251 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
42252 avoid overwriting previous output.
42253 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
42254
c1962162 422552008-02-09 Robert Millan <rmh@aybabtu.com>
42256
42257 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
42258 drawing the menu.
42259
3dac2e3f 422602008-02-09 Robert Millan <rmh@aybabtu.com>
42261
42262 * commands/sleep.c: New file.
42263 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
42264 (sleep_mod_SOURCES): New variable.
42265 (sleep_mod_CFLAGS): Likewise.
42266 (sleep_mod_LDFLAGS): Likewise.
42267
7a634e08 422682008-02-09 Robert Millan <rmh@aybabtu.com>
42269
42270 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
42271 situations in which we can deduce the RAID size and the superblock
42272 doesn't match it.
42273
b92f0c18 422742008-02-09 Robert Millan <rmh@aybabtu.com>
42275
42276 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
42277 and return a grub_diskmemberlist_t composed of LVM physical volumes.
42278 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
42279
42280 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
42281 and return a grub_diskmemberlist_t composed of physical array members.
42282 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
42283
42284 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
42285 prototype.
42286 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
42287 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
42288 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
42289
42290 * util/grub-probe.c (probe): Move partmap probing code from here ...
42291 (probe_partmap): ... to here.
42292 (probe): Use probe_partmap() once for the disk we're probing, and
42293 additionally, when such disk contains a memberlist() struct member,
42294 once for each disk that is contained in the structure returned by
42295 memberlist().
42296
91a4bf68 422972008-02-09 Robert Millan <rmh@aybabtu.com>
42298
42299 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
42300 environment variable to 'all' in order to obtain debug output from
42301 non-util/ code.
42302 * util/i386/pc/grub-setup.c (main): Likewise.
42303
a96f9caa 423042008-02-08 Robert Millan <rmh@aybabtu.com>
42305
42306 * disk/raid.c (grub_raid_scan_device): Check for
42307 `array->device[sb.this_disk.number]' rather than for
42308 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 42309 guaranteed to be accessible.
a96f9caa 42310
b37a9222 423112008-02-08 Robert Millan <rmh@aybabtu.com>
42312
42313 * disk/raid.c: Update copyright.
42314 * fs/cpio.c: Likewise.
42315 * include/grub/raid.h: Likewise.
42316 * loader/i386/pc/multiboot.c: Likewise.
42317 * util/hostfs.c: Likewise.
42318
5626aee1 423192008-02-08 Robert Millan <rmh@aybabtu.com>
42320
42321 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
42322 to a grub_disk_t array.
42323 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
42324 `device[x]'.
42325 (grub_raid_scan_device): Replace `device[x].name' accesses with
42326 `device[x]->name'. Simplify initialization of `array->device[x]'.
42327
554f0187 423282008-02-08 Robert Millan <rmh@aybabtu.com>
42329
42330 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
42331 grub_dprintf() calls.
42332 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
42333 error message.
42334
1ec8425d 423352008-02-07 Christian Franke <franke@computer.org>
42336
42337 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
42338 instead of fseek and ftell to support large files.
42339 (grub_hostfs_read): Likewise.
42340
f2156fda 423412008-02-07 Robert Millan <rmh@aybabtu.com>
42342
42343 Patch from Jeroen Dekkers.
42344 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 42345 failure, since successfully reading all array members might not be
f2156fda 42346 required.
42347
9216e0e7 423482008-02-06 Robert Millan <rmh@aybabtu.com>
42349
42350 * util/grub-probe.c (probe): Simplify partmap probing (with the
42351 assumption that the first word up to the underscore equals to
42352 the module name).
42353
b0dfd29a 423542008-02-06 Christian Franke <franke@computer.org>
42355
42356 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
42357 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
42358 last block of a cpio or tar stream.
42359 Check for "TRAILER!!!" instead of any empty data
42360 block to detect last block of a cpio stream.
42361 (grub_cpio_dir): Fix constness of variable np.
42362 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
42363 cpio or tar trailer is detected. This fixes a crash
42364 on open of a non existing file.
42365
c32865bf 423662008-02-05 Bean <bean123ch@gmail.com>
42367
42368 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
42369 address of entry.
42370 (grub_multiboot_load_elf64): Likewise.
42371 (grub_multiboot): Initialize mbi structure.
42372
42373 * util/grub-fstest.c: Don't include unused header file script.h.
42374
fe6b695a 42375 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 42376 of file.
42377 (grub_fstest_SOURCES): Likewise.
42378
409480b7 423792008-02-05 Robert Millan <rmh@aybabtu.com>
42380
42381 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
42382 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
42383 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
42384 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
42385
42386 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
42387 (translation_table): Replace hardcoded values with macros
42388 provided by `<grub/term.h>'.
42389
42390 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
42391 (keyboard_map): Correct/add a few values, with macros provided
42392 by `<grub/term.h>'.
42393 (keyboard_map_shift): Zero values that don't differ from their
42394 `keyboard_map' equivalents.
42395 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
42396 Discard the second scan code that is always sent by Caps lock.
42397 Only use `keyboard_map_shift' when it provides a non-zero value,
42398 otherwise fallback to `keyboard_map'.
42399
99fadbaa 424002008-02-04 Bean <bean123ch@gmail.com>
42401
42402 * Makefile.in (enable_grub_fstest): New variable.
42403
42404 * conf/common.rmk (grub_fstest_init.lst): New rule.
42405 (grub_fstest_init.h): Likewise.
42406 (grub_fstest_init.c): Likewise.
42407 (util/grub-fstest.c_DEPENDENCIES): New variable.
42408 (grub_fstest_SOURCES): Likewise.
42409
42410 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
42411
42412 * util/grub-fstest.c: New file.
42413
bf567c50 424142008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42415
42416 Make grub-setup handle a separate root device.
f19dbdb7 42417
bf567c50 42418 * util/i386/pc/grub-setup.c (setup): Always open the root device,
42419 so that the root device can be compared with the destination
42420 device.
42421 When embedding the core image, if the root and destination devices
42422 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
42423 0xFF.
42424 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 42425
9be6b98b 424262008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42427
42428 Add support for having a grub directory in a different drive. This
42429 is still only the data handling part.
f19dbdb7 42430
9be6b98b 42431 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
42432 (codestart): Save %dh in GRUB_ROOT_DRIVE.
42433 (grub_root_drive): New variable.
42434
42435 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
42436 instead of GRUB_BOOT_DRIVE to construct a device name. Set
42437 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
42438 as it was.
42439
42440 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
42441
42442 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
42443 macro.
42444 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
42445
42446 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
42447 is bogus, because PXE booting does not specify any drive
42448 correctly.
42449
42450 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
42451 am not sure if this is really correct.
42452
42453 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
42454 is always identical to the boot drive when booting from a CD.
42455
42456 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
42457 longer.
42458 (root_drive): New variable.
42459 (real_start): Unconditionally set %dh to ROOT_DRIVE.
42460 (setup_sectors): Push %dx right after popping it, because %dh will
42461 be modified later.
42462 (copy_buffer): Restore %dx.
42463
e0ca0677 424642008-02-03 Robert Millan <rmh@aybabtu.com>
42465
42466 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
42467 use `cdboot.img' for cdrom images.
42468
3b3f6629 424692008-02-03 Robert Millan <rmh@aybabtu.com>
42470
42471 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
42472 only setup gfxterm when `font' command has succeeded.
42473
d42b3672 424742008-02-03 Robert Millan <rmh@aybabtu.com>
42475
42476 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
42477 (grub_rescue_cmd_multiboot_loader)
42478 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
42479
fa370ea6 424802008-02-03 Pavel Roskin <proski@gnu.org>
42481
e0c5dacb 42482 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 42483 %edx and %esi from stack only after grub_gate_a20() is called.
42484 grub_gate_a20() clobbers %edx.
42485
f2a76e1d 424862008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42487
42488 * configure.ac (AC_INIT): Bumped to 1.96.
42489
42490 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
42491 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
42492 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
42493 video/readers/png.c.
42494
90fd32d1 424952008-02-03 Bean <bean123ch@gmail.com>
9be665dd 42496
42497 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
42498 (cdboot_img_SOURCES): New variable.
42499 (cdboot_img_ASFLAGS): New variable.
42500 (cdboot_img_LDFLAGS): New variable.
42501
42502 * boot/i386/pc/cdboot.S: New file.
42503
42504 * disk/i386/pc/biosdisk.c (cd_start): New variable.
42505 (cd_count): Likewise.
42506 (grub_biosdisk_get_drive): Add support for cd device.
42507 (grub_biosdisk_call_hook): Likewise.
42508 (grub_biosdisk_iterate): Likewise.
42509 (grub_biosdisk_open): Likewise.
42510 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
42511 (grub_biosdisk_rw): Support reading from cd device.
42512 (GRUB_MOD_INIT): Iterate cd devices.
42513
42514 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
42515 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
42516 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
42517
42518 * kern/i386/pc/init.c (make_install_device): Check for cd device.
42519
4020aa53 425202008-02-02 Robert Millan <rmh@aybabtu.com>
42521
42522 * commands/read.c: New file.
42523 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
42524 (read_mod_SOURCES): New variable.
42525 (read_mod_CFLAGS): Likewise.
42526 (read_mod_LDFLAGS): Likewise.
42527
e03a1132 425282008-02-02 Robert Millan <rmh@aybabtu.com>
42529
42530 * normal/main.c (grub_normal_execute): Check for `menu->size' when
42531 determining whether menu has to be displayed.
42532
58c69220 425332008-02-02 Marco Gerards <marco@gnu.org>
42534
42535 * bus/pci.c: New file.
42536
42537 * include/grub/pci.h: Likewise.
42538
42539 * include/grub/i386/pc/pci.h: Likewise.
42540
42541 * commands/lspci.c: Likewise.
42542
42543 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
42544 `lspci.mod'.
42545 (pci_mod_SOURCES): New variable.
42546 (pci_mod_CFLAGS): Likewise.
42547 (pci_mod_LDFLAGS): Likewise.
42548 (lspci_mod_SOURCES): Likewise.
42549 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 42550 (lspci_mod_LDFLAGS): Likewise.
58c69220 42551
c004e1b4 425522008-02-02 Bean <bean123ch@gmail.com>
42553
42554 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
42555 (grub_ufs_get_file_block): Fix indirect block calculation problem.
42556
42557 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
42558 (grub_xfs_btree_node): New structure.
42559 (grub_xfs_btree_root): New structure.
42560 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
42561 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
42562 (GRUB_XFS_EXTENT_BLOCK): Likewise.
42563 (GRUB_XFS_EXTENT_SIZE): Likewise.
42564 (grub_xfs_read_block): Support btree format type.
42565 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
42566 Use directory block as basic unit.
42567
42568 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
42569
42570 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
42571 __attribute__ ((__regparm__ (1))).
42572
f95562bf 425732008-02-01 Robert Millan <rmh@aybabtu.com>
42574
42575 Correct a mistake in previous commit.
42576
42577 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
42578 top.
42579 (normal/command.c_DEPENDENCIES): New variable.
42580
7d31f41f 425812008-02-01 Robert Millan <rmh@aybabtu.com>
42582
42583 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
42584 top.
42585 (normal/command.c_DEPENDENCIES): New variable.
42586 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
42587 * conf/i386-ieee1275.rmk: Likewise.
42588 * conf/i386-linuxbios.rmk: Likewise.
42589 * conf/i386-pc.rmk: Likewise.
42590 * conf/sparc64-ieee1275.rmk: Likewise.
42591 * conf/powerpc-ieee1275.rmk: Likewise.
42592 (grub_emu_SOURCES): Add `fs/fshelp.c'.
42593
42594 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
42595
60b6be74 425962008-02-01 Robert Millan <rmh@aybabtu.com>
42597
42598 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
42599 call at beginning of function.
42600
078522ab 426012008-01-31 Pavel Roskin <proski@gnu.org>
42602
42603 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 42604 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
42605 (grub_mkrescue_SOURCES): Likewise.
078522ab 42606 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
42607
ccaa8a5f 426082008-01-30 Robert Millan <rmh@aybabtu.com>
42609
42610 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
42611 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
42612 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
42613 (grub_probe_SOURCES): ... to here.
42614
42615 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
42616 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
42617 * conf/i386-ieee1275.rmk: Likewise.
42618 * conf/i386-linuxbios.rmk: Likewise.
42619 * conf/powerpc-ieee1275.rmk: Likewise.
42620
ae5a9cd7 426212008-01-30 Tristan Gingold <gingold@free.fr>
42622
42623 * kern/rescue.c: Silently accept empty lines.
42624
70bc2ef2 426252008-01-29 Bean <bean123ch@gmail.com>
42626
42627 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
42628 (real_code_2): Code cleanup and change comment style.
42629 (move_memory): Avoid using 32-bit address mode.
42630
6a4d50ea 426312008-01-29 Bean <bean123ch@gmail.com>
42632
42633 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
42634 (png_mod_SOURCES): New variable.
42635 (png_mod_CFLAGS): Likewise.
42636 (png_mod_LDFLAGS): Likewise.
42637
42638 * video/readers/png.c: New file.
42639
11cc30ac 426402008-01-28 Robert Millan <rmh@aybabtu.com>
42641
42642 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
42643 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
42644 `ifndef GRUB_MOD_GAP' hack.
42645 * util/elf/grub-mkimage.c (add_segments): Likewise.
42646
3abc589f 426472008-01-27 Robert Millan <rmh@aybabtu.com>
42648
42649 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
42650 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 42651 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 42652
e1907778 426532008-01-27 Robert Millan <rmh@aybabtu.com>
42654
42655 Get grub-emu to build again (including parallel builds).
42656
42657 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
42658 Split into ...
42659 (util/grub-emu.c_DEPENDENCIES): ... this, ...
42660 (normal/execute.c_DEPENDENCIES): ... this, ...
42661 (grub-emu_DEPENDENCIES): ... and this.
42662
42663 * conf/i386-efi.rmk: Likewise.
42664 * conf/i386-linuxbios.rmk: Likewise.
42665 * conf/i386-ieee1275.rmk: Likewise.
42666 * conf/powerpc-ieee1275.rmk: Likewise.
42667 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
42668
2216b101 426692008-01-27 Robert Millan <rmh@aybabtu.com>
42670
42671 * NEWS: Add a few items.
42672
f75172d9 426732008-01-27 Robert Millan <rmh@aybabtu.com>
42674
42675 Fix parallel builds with grub-emu. Based on earlier commit for
42676 grub-probe and grub-setup.
42677
42678 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42679 (util/grub-emu.c_DEPENDENCIES): ... this.
42680 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42681 (util/grub-emu.c_DEPENDENCIES): ... this.
42682 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42683 (util/grub-emu.c_DEPENDENCIES): ... this.
42684 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42685 (util/grub-emu.c_DEPENDENCIES): ... this.
42686 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
42687 (util/grub-emu.c_DEPENDENCIES): ... this.
42688
3f51de77 426892008-01-27 Pavel Roskin <proski@gnu.org>
42690
42691 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
42692 to create a gap between _end and the modules added to the image
42693 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
42694 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
42695 * util/elf/grub-mkimage.c (add_segments): Likewise.
42696
2033f53e 426972008-01-26 Pavel Roskin <proski@gnu.org>
42698
42699 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
42700 just return an error.
42701
22da1f6f 427022008-01-26 Bean <bean123ch@gmail.com>
42703
42704 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
42705 (grub_reiserfs_get_item): Save offset of the next item.
42706 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
42707
2a9525e6 427082008-01-25 Robert Millan <rmh@aybabtu.com>
42709
42710 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
42711 make all filesystem sources appear together (possibly fixing omissions
42712 while at it).
42713 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42714 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42715 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42716 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42717
42718 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
42719 add `kern/file.c'.
42720 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
42721 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42722 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
42723 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
42724
42725 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
42726 (probe): Add a sanity check to make sure of our ability to read
42727 requested files when probing for filesystem type.
42728
42729 * genmk.rb: Update copyright year (2007).
42730
42731 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
42732 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
42733 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
42734 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
42735 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
42736 : Remove function prototypes.
42737
b95f71b5 427382008-01-25 Robert Millan <rmh@aybabtu.com>
42739
42740 Revert my previous commits (based on wrong assumption of how grub_errno
42741 works).
42742
fe6b695a 42743 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 42744 * kern/file.c (grub_file_open): Likewise.
42745
d08bbb49 427462008-01-24 Pavel Roskin <proski@gnu.org>
42747
42748 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
42749 that hang if GRUB tries to setup colors.
42750 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
42751 colors for firmwares that don't support it.
42752 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
42753 Recognize Open Hack'Ware, set flags to work around its
42754 limitations.
42755
605e36ed 427562008-01-24 Robert Millan <rmh@aybabtu.com>
42757
42758 * kern/file.c (grub_file_open): Do not account previous failures of
42759 unrelated functions when grub_errno is checked for.
42760 Reported by Oleg Strikov.
42761
bac332a1 427622008-01-24 Bean <bean123ch@gmail.com>
42763
42764 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
42765 (grub_ufs_sblock): New member volume name.
42766 (grub_ufs_find_file): Fix string copy bug.
42767 (grub_ufs_label): Implement this function properly.
42768
42769 * fs/hfs.c (grub_hfs_cnid_type): New enum.
42770 (grub_hfs_iterate_records): Use the correct file number for extents
42771 and catalog file. Fix problem in next index calculation.
42772 (grub_hfs_find_node): Replace recursive function call with loop.
42773 (grub_hfs_iterate_dir): Replace recursive function call with loop.
42774
15c80c09 427752008-01-23 Robert Millan <rmh@aybabtu.com>
42776
42777 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
42778 `<grub/symbol.h>' and `<grub/multiboot.h>'.
42779 (grub_multiboot2_real_boot): New function prototype.
42780
42781 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
42782 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
42783
42784 * kern/i386/ieee1275/init.c (grub_os_area_addr)
42785 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
42786
305338fd 427872008-01-23 Robert Millan <rmh@aybabtu.com>
42788
42789 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
42790 #ifdef'ed out grub_printf().
42791
3ea52685 427922008-01-23 Robert Millan <rmh@aybabtu.com>
42793
42794 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
42795 grub_dprintf calls, since they make "debug=all" mode unusable.
42796 (grub_console_checkkey): Likewise.
42797
5882ae4b 427982008-01-23 Robert Millan <rmh@aybabtu.com>
42799
42800 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
42801 `term/i386/pc/at_keyboard.c'.
42802 (pkglib_MODULES): Add `serial.mod'.
42803 (serial_mod_SOURCES): New variable.
42804 (serial_mod_CFLAGS): Likewise.
42805 (serial_mod_LDFLAGS): Likewise.
42806
42807 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
42808 `<grub/powerpc/ieee1275/console.h>'.
42809 (grub_keyboard_controller_init): New function prototype.
42810 (grub_console_checkkey): Likewise.
42811 (grub_console_getkey): Likewise.
42812
42813 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
42814 keyboard on i386.
42815
42816 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
42817 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
42818
06ab5303 428192008-01-23 Robert Millan <rmh@aybabtu.com>
42820
42821 * kern/i386/pc/init.c (make_install_device): When memdisk image is
42822 present, "(memdisk)/boot/grub" becomes the default prefix.
42823
42824 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
42825 a memdisk tarball with all the modules. Add --overlay=DIR option that
42826 allows users to overlay additional files into the image.
42827
dbb475a4 428282008-01-23 Robert Millan <rmh@aybabtu.com>
42829
42830 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
42831 and `machine/memory.h'.
42832 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
42833 (_multiboot_mod_SOURCES): New variable.
42834 (_multiboot_mod_CFLAGS): Likewise.
42835 (_multiboot_mod_LDFLAGS): Likewise.
42836 (multiboot_mod_SOURCES): Likewise.
42837 (multiboot_mod_CFLAGS): Likewise.
42838 (multiboot_mod_LDFLAGS): Likewise.
42839
42840 * include/grub/i386/ieee1275/loader.h: New file.
42841
42842 * include/grub/i386/ieee1275/machine.h: Likewise.
42843
42844 * include/grub/i386/ieee1275/memory.h: Likewise.
42845
42846 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
42847 variable declaration.
42848 (grub_os_area_size): Likewise.
42849
42850 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
42851 (grub_lower_mem, grub_upper_mem): New variables.
42852 (grub_stop_floppy): New function (just to make
42853 grub_multiboot2_real_boot() happy).
42854
42855 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
42856 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
42857 (grub_stop): New function.
42858 Include `"../realmode.S"' and `"../loader.S"'.
42859
42860 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
42861 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
42862
42863 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
42864 rely on grub_multiboot2_real_boot() for final boot.
42865
25638629 428662008-01-22 Robert Millan <rmh@aybabtu.com>
42867
42868 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
42869 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
42870 device that doesn't look like an SD card.
42871 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
42872 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
42873 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
42874 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
42875 found.
42876
9dad816d 428772008-01-22 Robert Millan <rmh@aybabtu.com>
42878
42879 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
42880 avoid claiming over our own code.
42881
34842f2d 428822008-01-22 Bean <bean123ch@gmail.com>
42883
42884 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
42885 (jpeg_mod_SOURCES): New variable.
42886 (jpeg_mod_CFLAGS): Likewise.
42887 (jpeg_mod_LDFLAGS): Likewise.
42888
42889 * video/readers/jpeg.c : New file.
42890
44023a28 428912008-01-22 Bean <bean123ch@gmail.com>
42892
42893 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
42894 there are no more items.
42895
bc2d8ac6 428962008-01-21 Robert Millan <rmh@aybabtu.com>
42897
42898 * kern/mm.c (grub_mm_init_region): Improve debug message.
42899
261bd4bc 429002008-01-21 Robert Millan <rmh@aybabtu.com>
42901
42902 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
42903 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
42904 address.
42905 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
42906 a C macro.
42907 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
42908 Indicates start of upper memory.
42909 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
42910 (generate_image): Abort when image size is big enough to corrupt
42911 upper memory.
42912
42913 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
42914 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
42915 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
42916 instead of hardcoding 0xA0000.
42917 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
42918 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
42919 instead of hardcoding 0xA0000.
42920
f970b55e 429212008-01-21 Robert Millan <rmh@aybabtu.com>
42922
42923 * disk/memdisk.c (memdisk_size): New variable.
42924 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
42925 `memdisk_size'.
42926 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
42927 image to dynamic memory.
42928 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
42929 `memdisk_size'. Free memdisk block.
42930
1a8b0526 429312008-01-21 Robert Millan <rmh@aybabtu.com>
42932
42933 Fix detection of very small filesystems (like tar).
42934
42935 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
42936 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
42937 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
42938 a problem with this disk).
42939
6e9b4aab 429402008-01-21 Robert Millan <rmh@aybabtu.com>
42941
42942 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
42943 on grub_biosdisk_rw_standard() error.
42944
0d8837b2 429452008-01-21 Robert Millan <rmh@aybabtu.com>
42946
42947 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
42948 recent changes.
42949 * kern/elf.c: Likewise.
42950 * kern/ieee1275/ieee1275.c: Likewise.
42951 * kern/powerpc/ieee1275/openfw.c: Likewise.
42952 * term/ieee1275/ofconsole.c: Likewise.
42953
ffd36e34 429542008-01-21 Robert Millan <rmh@aybabtu.com>
42955
42956 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
42957
3f0093d0 42958 * include/grub/kernel.h (grub_arch_memdisk_addr)
42959 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 42960
3f0093d0 42961 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
42962 (grub_arch_memdisk_size): ... to here.
ffd36e34 42963
6c391b21 429642008-01-21 Robert Millan <rmh@aybabtu.com>
42965
42966 Mostly based on bugfix from Bean.
42967
42968 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
42969 attribute with hook() parameter.
42970 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
42971 declaration.
42972 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
42973 attribute with hook() parameter.
42974 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
42975 declaration.
42976
55a581dc 429772008-01-21 Robert Millan <rmh@aybabtu.com>
42978
42979 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
42980 (pkglib_MODULES): Add `memdisk.mod'.
42981 (memdisk_mod_SOURCES): New variable.
42982 (memdisk_mod_CFLAGS): Likewise.
42983 (memdisk_mod_LDFLAGS): Likewise.
42984
42985 * disk/memdisk.c: New file.
42986
42987 * include/grub/disk.h (grub_disk_dev_id): Add
42988 `GRUB_DISK_DEVICE_MEMDISK_ID'.
42989
42990 * include/grub/i386/pc/kernel.h
42991 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
42992 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
42993 (grub_kernel_image_size): New variable declaration.
42994 (grub_total_module_size): Likewise.
42995 (grub_memdisk_image_size): Likewise.
42996
42997 * include/grub/i386/pc/memory.h
42998 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
42999
43000 * include/grub/kernel.h: Include `<grub/symbol.h>'.
43001 (grub_arch_memdisk_addr): New variable declaration.
43002 (grub_arch_memdisk_size): Likewise.
43003
43004 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
43005 (grub_arch_memdisk_size): Likewise.
43006
43007 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
43008 (codestart): Replace hardcoded `0x100000' with
43009 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
43010
43011 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
43012 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
43013 not NULL, append the contents of the file it refers to, at the end of
43014 the compressed kernel image. Initialize `grub_memdisk_image_size'
43015 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
43016 (options): Add "memdisk"|'m' option.
43017 (main): Parse --memdisk|-m option, and pass user-provided path as
43018 parameter to generate_image().
43019
3d7f54c9 430202008-01-20 Robert Millan <rmh@aybabtu.com>
43021
43022 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
43023 grub_dprintf() calls from here ...
43024 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
43025
0bf74728 430262008-01-20 Robert Millan <rmh@aybabtu.com>
43027
43028 Fix detection of "real mode" when /options/real-mode? doesn't exist.
43029
43030 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
43031 declaration.
43032 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
43033 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
43034 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 43035 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 43036 property).
43037 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
43038 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
43039
33bf70a7 430402008-01-19 Robert Millan <rmh@aybabtu.com>
43041
fe6b695a 43042 Get rid of confusing function (superseded by
33bf70a7 43043 `grub_ieee1275_get_integer_property')
43044 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
43045 prototype.
43046 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
43047 function.
43048 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
43049 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 43050 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 43051
e2da7d26 430522008-01-19 Robert Millan <rmh@aybabtu.com>
43053
43054 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
43055 command after "shut-down", since implementations differ on which
43056 the command for halt is.
43057
59f1fd8d 430582008-01-19 Robert Millan <rmh@aybabtu.com>
43059
43060 * include/grub/i386/linuxbios/console.h: Add header protection.
43061 (grub_keyboard_controller_init): New function prototype.
43062 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
43063 (KEYBOARD_COMMAND_READ): Likewise.
43064 (KEYBOARD_COMMAND_WRITE): Likewise.
43065 (KEYBOARD_SCANCODE_SET1): Likewise.
43066 (grub_keyboard_controller_write): New function.
43067 (grub_keyboard_controller_read): Likewise.
43068 (grub_keyboard_controller_init): Likewise.
43069
43070 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
43071 (grub_console_init): On coreboot/LinuxBIOS, call
43072 grub_keyboard_controller_init().
43073
5f5a7c15 430742008-01-19 Robert Millan <rmh@aybabtu.com>
43075
43076 PowerPC changes provided by Pavel Roskin.
43077
43078 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
43079 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
43080 don't rely on cmain() doing it.
43081 * kern/i386/ieee1275/startup.S (_start): Store %eax in
43082 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
43083
1210e168 430842008-01-16 Robert Millan <rmh@aybabtu.com>
43085
43086 * include/grub/i386/linuxbios/memory.h
43087 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
43088 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
43089 receive `table_header' as argument. Instead, probe for it in the
43090 known memory ranges where it can be present.
43091 (grub_available_iterate): Do not pass a fixed `table_header' address
43092 to grub_linuxbios_table_iterate().
43093
3d04eab8 430942008-01-15 Robert Millan <rmh@aybabtu.com>
43095
43096 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
43097 * conf/i386-ieee1275.rmk: New file.
43098 * include/grub/i386/ieee1275/console.h: Likewise.
43099 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
43100 * include/grub/i386/ieee1275/kernel.h: Likewise.
43101 * include/grub/i386/ieee1275/time.h: Likewise.
43102 * kern/i386/ieee1275/init.c: Likewise.
43103 * kern/i386/ieee1275/startup.S: Likewise.
43104
d1bc1b73 431052008-01-15 Robert Millan <rmh@aybabtu.com>
43106
43107 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
43108 when pointers are 32-bit (but still do set it to one when they are
43109 64-bit).
43110
66a65807 431112008-01-15 Robert Millan <rmh@aybabtu.com>
43112
43113 * include/grub/ieee1275/ieee1275.h
43114 (grub_ieee1275_get_integer_property): New function prototype.
43115
43116 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
43117 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 43118 grub_ieee1275_get_property() to handle endianness.
66a65807 43119
43120 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
43121 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 43122 where appropriate.
66a65807 43123 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
43124 (grub_map): Likewise.
43125 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
43126
a83ccafd 431272008-01-15 Bean <bean123ch@gmail.com>
43128
43129 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
43130 (grub_script_execute_cmdline): Reset grub_errno.
43131
43132 * normal/main.c (read_config_file): Reset grub_errno.
43133
43134 * normal/parse.y (script_init): New.
43135 (script): Move function and menuentry here.
43136 (delimiter): New.
43137 (command): Add delimiter at the end of command.
43138 (commands): Adjust to match the new command.
43139 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 43140 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 43141 (if): Use the new commands.
43142
43143 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
43144
df6ecfc6 431452008-01-15 Robert Millan <rmh@aybabtu.com>
43146
43147 * normal/menu.c (run_menu): Move timeout message from here ...
43148 (print_timeout): ... to here.
43149 (run_menu): Use print_timeout() once during initial draw to print
43150 the whole message, and again in every clock tick to update only
43151 the number of seconds.
43152
87ae25eb 431532008-01-15 Robert Millan <rmh@aybabtu.com>
43154
43155 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
43156 actual size of `available' from grub_ieee1275_get_property(), and
43157 restrict parsing to that bound.
43158
47bf09a4 431592008-01-15 Christian Franke <franke@computer.org>
43160
43161 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
43162 (argp_program_version): Remove variable.
43163 (argp_program_bug_address): Likewise.
43164 (options): Convert from struct argp_option to struct option.
43165 (struct arguments): Remove.
43166 (parse_opt): Remove.
43167 (usage): New function.
43168 (main): Replace struct args members by simple variables.
43169 Replace argp_parse() by getopt_long().
43170 Add switch to evaluate options.
43171 Add missing "(...)" around root_dev in prefix string.
43172
c86f1469 431732008-01-14 Robert Millan <rmh@aybabtu.com>
43174
43175 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
43176 for grub_ieee1275_exit(), in order to improve portability.
43177
e622c559 431782008-01-14 Robert Millan <rmh@aybabtu.com>
43179
43180 * util/grub.d/10_linux.in (prefix): Define.
43181 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
43182
44cb1ec8 431832008-01-13 Pavel Roskin <proski@gnu.org>
43184
43185 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
43186 grub_errno if no errors have been detected.
43187
1eb8c802 431882008-01-12 Robert Millan <rmh@aybabtu.com>
43189
43190 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
43191 (grub_util_get_dev_abstraction): New function prototype.
43192
43193 * util/getroot.c: Include `<grub/util/getroot.h>'
43194 (grub_util_get_grub_dev): Move detection of abstraction type to ...
43195 (grub_util_get_dev_abstraction): ... here (new function).
43196
43197 * util/grub-probe.c: Convert PRINT_* to an enum. Add
43198 `PRINT_ABSTRACTION'.
43199 (probe): Probe for abstraction type when requested.
43200 (main): Understand `--target=abstraction'.
43201
43202 * util/i386/efi/grub-install.in: Add abstraction module to core
43203 image when it is found to be necessary.
43204 * util/i386/pc/grub-install.in: Likewise.
43205 * util/powerpc/ieee1275/grub-install.in: Likewise.
43206
43207 * util/update-grub_lib.in (font_path): Return system path without
43208 converting to GRUB path.
43209 * util/update-grub.in: Convert system path returned by font_path()
43210 to a GRUB path. Use `grub-probe -t abstraction' to determine what
43211 abstraction module is needed for loading fonts (if any). Export
43212 that as `GRUB_PRELOAD_MODULES'.
43213 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
43214 insmod commands).
43215
52bd3de9 432162008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
43217
43218 Remove some unused code from reiserfs.
f19dbdb7 43219
52bd3de9 43220 * fs/reiserfs.c (struct grub_reiserfs_key)
43221 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
43222 (struct grub_reiserfs_node_body): Removed.
43223 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43224 Likewise.
43225 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43226 Likewise.
43227 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43228 Likewise.
43229 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43230 Likewise.
43231 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43232 Likewise.
43233 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
43234 Likewise.
43235 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43236 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43237 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43238
2f80039d 432392008-01-10 Robert Millan <rmh@aybabtu.com>
43240
43241 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
43242 Determines if a file is garbage left by packaging systems, etc.
43243 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
43244 for processing /etc/grub.d scripts.
43245 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
43246 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
43247 as a condition for processing Linux images.
43248
87888032 432492008-01-10 Pavel Roskin <proski@gnu.org>
43250
43251 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
43252 to compile reiserfs.c on PowerPC.
43253
7e54fced 432542008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 43255
43256 * kern/device.c (grub_device_iterate): Do not abort device iteration
43257 when one of the devices cannot be opened.
43258 * kern/disk.c (grub_disk_open): Do not account previous failures of
43259 unrelated functions when grub_errno is checked for.
43260
5aa541e6 432612008-01-08 Robert Millan <rmh@aybabtu.com>
43262
43263 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
43264 `! grub_linux_is_bzimage', change order of address comparison to make
43265 it more intuitive, and improve "too big zImage" error message.
43266
7076340d 432672008-01-08 Robert Millan <rmh@aybabtu.com>
43268
43269 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
43270 `$(update-grub_DATA)'.
43271 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
43272 targets.
43273
9ca70333 432742008-01-07 Robert Millan <rmh@aybabtu.com>
43275
43276 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
43277 which instruction is modified by grub-setup during installation
43278 (since it wasn't obvious by only looking at this file).
43279
38ccf575 432802008-01-07 Robert Millan <rmh@aybabtu.com>
43281
43282 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
43283 listing actual TODO items.
43284
f5db4291 432852008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43286
868967cf 43287 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
43288 correctly.
43289 (grub_reiserfs_get_key_offset): Likewise.
43290 (grub_reiserfs_set_key_offset): Likewise.
43291 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 43292 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 43293
43294 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
43295 better to remove the bitfield version completely.
f19dbdb7 43296
868967cf 432972008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43298
f5db4291 43299 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
43300 allocated from the heap, due to the fshelp implementation.
43301 (grub_reiserfs_dir): Free NODE, due to the same reason.
43302
492e6d9d 433032008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43304
43305 Mostly from Vincent Pelletier:
f19dbdb7 43306
492e6d9d 43307 * fs/reiserfs.c: New file.
f19dbdb7 43308
492e6d9d 43309 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
43310 (reiserfs_mod_SOURCES): New variable.
43311 (reiserfs_mod_CFLAGS): Likewise.
43312 (reiserfs_mod_LDFLAGS): Likewise.
43313
43314 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
43315 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
43316 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
43317 normal/color.c.
43318
9ce3e7c1 433192008-01-06 Robert Millan <rmh@aybabtu.com>
43320
43321 * normal/color.c: Remove `<grub/env.h>'.
43322
f3b58148 433232008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
43324
43325 * include/grub/normal.h: Include <grub/env.h>.
43326
7ac3bcfa 433272008-01-05 Robert Millan <rmh@aybabtu.com>
43328
43329 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
43330 usage example with `(hd0,1)'.
fb358190 43331 Reported by Samuel Thibault.
7ac3bcfa 43332
c8ee99d7 433332008-01-05 Robert Millan <rmh@aybabtu.com>
43334
43335 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
43336 (grub_linux_boot_zimage): Rename to ...
43337 (grub_linux_boot): ... this.
43338 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
43339 (grub_linux_boot_zimage): Conditionalize zImage copy.
43340
43341 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
43342 (grub_linux_boot_bzimage): Remove prototype.
43343 (grub_linux_boot_zimage): Rename to ...
43344 (grub_linux_boot): ... this.
43345
43346 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
43347 (grub_linux_boot): Remove function.
43348
0ece25b1 433492008-01-05 Robert Millan <rmh@aybabtu.com>
43350
43351 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
43352 (grub_env_write_color_highlight): Likewise.
43353 (grub_wait_after_message): Likewise.
43354
43355 * normal/color.c: New file.
43356
43357 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43358 (normal_mod_DEPENDENCIES): Likewise.
43359
43360 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43361 (normal_mod_DEPENDENCIES): Likewise.
43362
43363 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43364 (normal_mod_DEPENDENCIES): Likewise.
43365
43366 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43367 (normal_mod_DEPENDENCIES): Likewise.
43368
43369 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
43370 for waiting after a message is printed.
43371 * normal/main.c (read_config_file): Likewise.
43372 (grub_normal_init): Register grub_env_write_color_normal() and
43373 grub_env_write_color_highlight() hooks. Mark `color_normal' and
43374 `color_highlight' variables as global.
43375
43376 * normal/menu.c (grub_wait_after_message): New function.
43377 (grub_color_menu_normal): New variable. Replaces ...
43378 (GRUB_COLOR_MENU_NORMAL): ... this macro.
43379 (grub_color_menu_highlight): New variable. Replaces ...
43380 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
43381 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
43382 `GRUB_TERM_COLOR_STANDARD'.
43383 (print_message): Use `grub_setcolorstate' to reload colors. Rename
43384 `normal_code' and `highlight_code' to `old_color_normal' and
43385 `old_color_highlight', respectively.
43386 (grub_menu_init_page): Update colors when drawing the menu, based on
43387 `menu_color_normal' and `menu_color_highlight' variables.
43388 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
43389 a message is printed.
43390
182dd4e5 433912008-01-05 Robert Millan <rmh@aybabtu.com>
43392
43393 * kern/env.c (grub_env_context_open): Propagate hooks for global
43394 variables to new context.
43395
43396 * kern/main.c (grub_set_root_dev): Export `root' variable.
43397
ddf8f6ad 433982008-01-05 Robert Millan <rmh@aybabtu.com>
43399
43400 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 43401 discs unconditionally, since udev and others have options to provide
ddf8f6ad 43402 them.
43403
d8b43d9b 434042008-01-05 Robert Millan <rmh@aybabtu.com>
43405
43406 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
43407
2bff2de3 434082008-01-04 Christian Franke <franke@computer.org>
43409
43410 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
43411 of eisa_mmap.
43412
97eab917 434132008-01-03 Pavel Roskin <proski@gnu.org>
43414
43415 * kern/i386/linuxbios/init.c: Put "void" to all function
43416 declarations with no arguments.
43417 * kern/powerpc/ieee1275/init.c: Likewise.
43418 * term/i386/pc/at_keyboard.c: Likewise.
43419 * term/i386/pc/vga_text.c: Likewise.
43420 * util/grub-mkdevicemap.c: Likewise.
43421
b9416d00 434222008-01-02 Robert Millan <rmh@aybabtu.com>
43423
43424 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
43425 message when loaded image is out of bounds.
43426 (grub_multiboot_load_elf64): Likewise.
43427
92695df9 434282008-01-02 Pavel Roskin <proski@gnu.org>
43429
43430 * util/grub.d/10_linux.in: Try version without ".old" when
43431 looking for initrd. It's better to use initrd from the newer
43432 kernel of the same version than no initrd at all.
43433
d98d9cad 434342008-01-01 Robert Millan <rmh@aybabtu.com>
43435
43436 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
43437
dbfdce36 434382008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
43439
f19dbdb7 43440 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 43441 grub_video_get_active_render_target.
43442 (grub_video_adapter): Added unmap_color and get_active_render_target.
43443
f19dbdb7 43444 * video/video.c: Added grub_video_unmap_color and
dbfdce36 43445 grub_video_get_active_render_target.
43446 (grub_video_get_info): Changed method to accept NULL pointer as an
43447 argument to allow detection of active video adapter.
43448
43449 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
43450 grub_video_vbe_unmap_color_int.
43451 Added grub_video_vbe_unmap_color and
43452 grub_video_vbe_get_active_render_target.
43453 (grub_video_vbe_adapter): Added unmap_color and
43454 get_active_render_target.
43455
f19dbdb7 43456 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 43457 with grub_video_vbe_unmap_color_int.
43458
43459 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
43460 (DEFAULT_NORMAL_COLOR): Likewise.
43461 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
43462 (DEFAULT_FG_COLOR): Removed.
43463 (DEFAULT_BG_COLOR): Likewise.
43464 (DEFAULT_CURSOR_COLOR): Changed value.
43465 (grub_virtual_screen): Added standard_color_setting,
43466 normal_color_setting, highlight_color_setting and term_color.
43467 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
43468 (bitmap_width): Added.
43469 (bitmap_height): Likewise.
43470 (bitmap): Likewise.
43471 (set_term_color): Likewise.
43472 (grub_virtual_screen_setup): Changed to use new terminal coloring
43473 settings.
43474 (grub_gfxterm_init): Added init for bitmap.
43475 (grub_gfxterm_fini): Added destroy for bitmap.
43476 (redraw_screen_rect): Updated to use background bitmap and new
43477 terminal coloring.
43478 (scroll_up): Added optimization for case when there is no bitmap.
43479 (grub_gfxterm_cls): Fixed to use correct background color.
43480 (grub_virtual_screen_setcolorstate): Changed to use new terminal
43481 coloring.
43482 (grub_virtual_screen_setcolor): Likewise.
43483 (grub_virtual_screen_getcolor): Added.
43484 (grub_gfxterm_background_image_cmd): Likewise.
43485 (grub_video_term): Added setcolor and getcolor.
43486 (MOD_INIT): Added registration of background_image command.
43487 (MOD_TERM): Added unregistration for background_image command.
43488
c3c20931 434892007-12-30 Pavel Roskin <proski@gnu.org>
43490
43491 * loader/multiboot_loader.c: Fix multiboot command
43492 unregistration. Fix all typos in the word "multiboot".
43493
df266716 434942007-12-29 Pavel Roskin <proski@gnu.org>
94239199 43495
43496 * util/grub.d/10_linux.in: Refactor search for initrd. Add
43497 support for initrd names used in Fedora.
43498
fc6e896c 434992007-12-26 Bean <bean123ch@gmail.com>
43500
43501 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
43502 (cpio_mod_SOURCES): New variable.
43503 (cpio_mod_CFLAGS): Likewise.
43504 (cpio_mod_LDFLAGS): Likewise.
43505
43506 * fs/cpio.c: New file.
43507
43508 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
43509
43510 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43511
43512 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43513
43514 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43515
533110ad 435162007-12-25 Robert Millan <rmh@aybabtu.com>
43517
43518 * include/grub/term.h (struct grub_term): Add `getcolor' function.
43519 (grub_getcolor): New function.
43520
43521 * kern/term.c (grub_getcolor): New function.
43522 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
43523 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
43524 (print_entry): Set normal and highlight colors to
43525 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
43526 respectively, before printing and restore them to old
43527 values afterwards.
43528 (grub_menu_init_page): Likewise. Fill an additional colored space
43529 that would otherwise be left blank.
43530
43531 * term/efi/console.c (grub_console_getcolor): New function.
43532 (struct grub_console_term.getcolor): New variable.
43533 * term/i386/pc/console.c (grub_console_getcolor): New function.
43534 (struct grub_console_term.getcolor): New variable.
43535 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
43536 (struct grub_console_term.getcolor): New variable.
43537
43538 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
43539 (struct grub_console_term.setcolor): Remove variable.
43540 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
43541 (struct grub_console_term.setcolor): Remove variable.
43542 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
43543 (struct grub_console_term.setcolor): Remove variable.
43544 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
43545 (struct grub_console_term.setcolor): Remove variable.
43546
4931827f 435472007-12-25 Robert Millan <rmh@aybabtu.com>
43548
43549 * configure.ac: Search for possible unifont.hex locations, and
43550 define UNIFONT_HEX if found.
43551
43552 * Makefile.in (UNIFONT_HEX): Define variable.
43553 (DATA): Rename to ...
43554 (PKGLIB): ... this. Update all users.
43555 (PKGDATA): New variable.
43556 (pkgdata_IMAGES): Rename to ...
43557 (pkglib_IMAGES): ... this. Update all users.
43558 (pkgdata_MODULES): Rename to ...
43559 (pkglib_MODULES): ... this. Update all users.
43560 (pkgdata_PROGRAMS): Rename to ...
43561 (pkglib_PROGRAMS): ... this. Update all users.
43562 (pkgdata_DATA): Rename to ...
43563 (pkglib_DATA): ... this. Update all users.
43564 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
43565 (unicode.pff, ascii.pff): New rules.
43566 (all-local): Add `$(PKGDATA)' dependency.
43567 (install-local): Process `$(PKGDATA)'.
43568
43569 * util/update-grub_lib.in (font_path): Search for *.pff files in
43570 a few more locations, including `${pkgdata}'.
43571
57e57e31 435722007-12-23 Robert Millan <rmh@aybabtu.com>
43573
43574 Patch from Bean <bean123ch@gmail.com>:
43575 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
43576 `size'.
43577
4bc72aa9 435782007-12-21 Bean <bean123ch@gmail.com>
43579
43580 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
43581 (ntfscomp_mod_SOURCES): New variable.
43582 (ntfscomp_mod_CFLAGS): Likewise.
43583 (ntfscomp_mod_LDFLAGS): Likewise.
43584
43585 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
43586 (grub_probe_SOURCES): Likewise.
43587 (grub_emu_SOURCES): Likewise.
43588
43589 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43590 (grub_emu_SOURCES): Likewise.
43591
43592 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43593 (grub_emu_SOURCES): Likewise.
43594
43595 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
43596 (grub_emu_SOURCES): Likewise.
43597
43598 * fs/ntfs.c (grub_ntfscomp_func): New variable.
43599 (read_run_list): Renamed to grub_ntfs_read_run_list.
43600 (decomp_nextvcn): Moved to ntfscomp.c.
43601 (decomp_getch): Likewise.
43602 (decomp_get16): Likewise.
43603 (decomp_block): Likewise.
43604 (read_block): Likewise.
43605 (read_data): Partially moved to ntfscomp.c.
43606 (fixup): Change unsigned to grub_uint16_t.
43607 (read_mft): Change unsigned long to grub_uint32_t.
43608 (read_attr): Likewise.
43609 (read_data): Likewise.
43610 (read_run_data): Likewise.
43611 (read_run_list): Likewise.
43612 (read_mft): Likewise.
43613
43614 * fs/ntfscomp.c: New file.
43615
43616 * include/grub/ntfs.h: New file.
43617
af680a87 436182007-12-16 Robert Millan <rmh@aybabtu.com>
43619
43620 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
43621 IDE disk check, since Linux is known to support 20 IDE disks.
43622 Reported by Colin Watson.
43623
84be7599 436242007-12-15 Bean <bean123ch@gmail.com>
43625
43626 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
43627 (lnxboot_img_SOURCES): New variable.
43628 (lnxboot_img_ASFLAGS): Likewise.
43629 (lnxboot_img_LDFLAGS): Likewise.
43630
43631 * boot/i386/pc/lnxboot.S: New file.
43632
6af9db01 436332007-11-24 Pavel Roskin <proski@gnu.org>
43634
43635 * configure.ac: Test if '--build-id=none' is supported by the
43636 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
43637 objcopy to generate incorrect binary files (binutils
43638 2.17.50.0.18-1 as shipped by Fedora 8).
43639 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
43640 linking, so that build ID doesn't break the test.
43641
7361cfe6 436422007-11-24 Pavel Roskin <proski@gnu.org>
43643
43644 * include/grub/i386/time.h: use "void" in the argument list
43645 of grub_cpu_idle().
43646 * include/grub/powerpc/time.h: Likewise.
43647 * include/grub/sparc64/time.h: Likewise.
43648
1593e10c 436492007-11-18 Christian Franke <franke@computer.org>
43650
43651 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
43652 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
43653 This fixes the problem that function keys did not work in grub-emu.
43654
3b8db1a8 436552007-11-18 Christian Franke <franke@computer.org>
43656
43657 * disk/host.c (grub_host_open): Remove attribute unused from
43658 name parameter. Add check for "host". This fixes the problem
43659 that grub-emu does not find partitions.
43660
2e29408d 436612007-11-18 Christian Franke <franke@computer.org>
43662
43663 * util/hostfs.c (is_dir): New function.
43664 (grub_hostfs_dir): Handle missing dirent.d_type case.
43665 (grub_hostfs_read): Add missing fseek().
43666 (grub_hostfs_label): Clear label pointer. This fixes a crash
43667 of grub-emu on "ls (host)".
43668
398cd047 436692007-11-18 Christian Franke <franke@computer.org>
43670
43671 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
43672 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
43673 to 64 bit boundary by default.
43674
c405c391 436752007-11-18 Bean <bean123ch@gmail.com>
43676
43677 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
43678 (hexdump_mod_SOURCES): New variable.
43679 (hexdump_mod_CFLAGS): Likewise.
43680 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 43681
c405c391 43682 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43683
43684 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43685
43686 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43687
43688 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
43689
43690 * include/grub/hexdump.h: New file.
43691
43692 * commands/hexdump.c: New file.
43693
5cced7fd 436942007-11-10 Robert Millan <rmh@aybabtu.com>
43695
43696 * commands/i386/pc/play.c (beep_off): Switch order of arguments
43697 in grub_outb() calls.
43698 (beep_on): Likewise.
43699
8b714eb0 437002007-11-10 Christian Franke <franke@computer.org>
43701
43702 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
43703 (grub_menu_run): Likewise.
43704
ce0f1839 437052007-11-10 Robert Millan <rmh@aybabtu.com>
43706
43707 * include/grub/i386/efi/machine.h: New file.
43708 * include/grub/i386/linuxbios/machine.h: Likewise.
43709 * include/grub/i386/pc/machine.h: Likewise.
43710 * include/grub/powerpc/ieee1275/machine.h: Likewise.
43711 * include/grub/sparc64/ieee1275/machine.h: Likewise.
43712
43713 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
43714 (serial_hw_io_addr): New variable.
43715 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
43716 instead of `(unsigned short *) 0x400'.
43717
270c237d 437182007-11-10 Bean <bean123ch@gmail.com>
43719
43720 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
43721
a87783bf 437222007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43723
43724 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
43725 (vga_mod_SOURCES): Added.
43726 (vga_mod_CFLAGS): Likewise.
43727 (vga_mod_LDFLAGS): Likewise.
43728
43729 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
43730 grub_outb() calls.
43731 (set_map_mask): Likewise.
43732 (set_read_map): Likewise.
43733 (set_read_address): Likewise.
43734 (vga_font): Removed variable.
43735 (get_vga_glyph): Removed function.
43736 (invalidate_char): Likewise.
43737 (write_char): Changed to use grub_font_get_glyph() for font
43738 information.
43739 (grub_vga_putchar): Likewise.
43740 (grub_vga_getcharwidth): Likewise.
43741
6433b448 437422007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
43743
43744 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
43745 flags.
43746 (pxeboot_img_LDFLAGS): Likewise.
43747 (diskboot_img_LDFLAGS): Likewise.
43748 (kernel_img_LDFLAGS): Likewise.
43749
49178511 437502007-11-06 Robert Millan <rmh@aybabtu.com>
43751
43752 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
43753 in grub_outb() calls.
43754 (serial_hw_init): Likewise.
43755
53b052de 437562007-11-05 Robert Millan <rmh@aybabtu.com>
43757
43758 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
43759 spaces. Skip non-regular files.
43760
5ab33bba 437612007-11-05 Robert Millan <rmh@aybabtu.com>
43762
43763 * kern/disk.c (grub_disk_firmware_fini)
43764 (grub_disk_firmware_is_tainted): New variables.
43765
43766 * include/grub/disk.h (grub_disk_firmware_fini)
43767 (grub_disk_firmware_is_tainted): Likewise.
43768
43769 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
43770 (grub_disk_biosdisk_fini): ... to here.
43771 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
43772 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
43773 is set. Register grub_disk_biosdisk_fini() in
43774 `grub_disk_firmware_fini'.
43775
43776 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
43777 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
43778 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
43779 to finish existing firmware disk interface.
43780
43781 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
43782 (ata_mod_SOURCES): New variable.
43783 (ata_mod_CFLAGS): Likewise.
43784 (ata_mod_LDFLAGS): Likewise.
43785
0149ab7c 437862007-11-05 Robert Millan <rmh@aybabtu.com>
43787
43788 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
43789 (grub_ata_wait): Reimplement using grub_millisleep().
43790
43791 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
43792 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
43793
be7ac41e 437942007-11-03 Marco Gerards <marco@gnu.org>
43795
43796 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
43797 (CRTC_ADDR_PORT): New macro.
43798 (CRTC_DATA_PORT): Likewise.
43799 (CRTC_CURSOR): Likewise.
43800 (CRTC_CURSOR_ADDR_HIGH): Likewise.
43801 (CRTC_CURSOR_ADDR_LOW): Likewise.
43802 (update_cursor): New function.
43803 (grub_console_real_putchar): Call `update_cursor'.
43804 (grub_console_gotoxy): Likewise.
43805 (grub_console_cls): Set the default color when clearing the
43806 screen.
43807 (grub_console_setcursor): Implemented.
43808
bb06ab2e 438092007-11-03 Marco Gerards <marco@gnu.org>
43810
43811 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
43812 become activate.
43813 (grub_ata_pio_write): Likewise.
43814
43815 (grub_atapi_identify): Wait after issuing an ATA command.
43816 (grub_atapi_packet): Likewise.
43817 (grub_ata_identify): Likewise.
43818 (grub_ata_readwrite): Likewise.
43819
cf8f780b 438202007-11-03 Marco Gerards <marco@gnu.org>
43821
43822 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
43823 (grub_ata_pio_write): Likewise.
43824 (grub_ata_readwrite): Use `grub_error', instead of
43825 returning `grub_errno'.
43826
ed649e54 438272007-11-03 Marco Gerards <marco@gnu.org>
43828
43829 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
43830 grub_ata_pio_write once for every single sector, instead of for
43831 multiple sectors.
43832
ca25d8f0 438332007-10-31 Robert Millan <rmh@aybabtu.com>
43834
43835 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
43836
43837 * conf/i386-linuxbios.rmk: New file.
43838
43839 * kern/i386/pc/hardware.c: Likewise.
43840 * term/i386/pc/at_keyboard.c: Likewise.
43841 * term/i386/pc/vga_text.c: Likewise.
43842
43843 * include/grub/i386/linuxbios/boot.h: Likewise.
43844 * include/grub/i386/linuxbios/console.h: Likewise.
43845 * include/grub/i386/linuxbios/init.h: Likewise.
43846 * include/grub/i386/linuxbios/kernel.h: Likewise.
43847 * include/grub/i386/linuxbios/loader.h: Likewise.
43848 * include/grub/i386/linuxbios/memory.h: Likewise.
43849 * include/grub/i386/linuxbios/serial.h: Likewise.
43850 * include/grub/i386/linuxbios/time.h: Likewise.
43851
43852 * kern/i386/linuxbios/init.c: Likewise.
43853 * kern/i386/linuxbios/startup.S: Likewise.
43854 * kern/i386/linuxbios/table.c: Likewise.
43855
e911ecc1 438562007-10-31 Marco Gerards <marco@gnu.org>
43857
43858 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
43859 (ata_mod_SOURCES): New variable.
43860 (ata_mod_CFLAGS): Likewise.
43861 (ata_mod_LDFLAGS): Likewise.
43862
43863 * disk/ata.c: New file.
43864
43865 * include/grub/disk.h (grub_disk_dev_id): Add
43866 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 43867
7f66d0e0 438682007-10-31 Robert Millan <rmh@aybabtu.com>
43869
43870 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
43871 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
43872
43873 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
43874 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
43875
43876 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
43877 `<grub/types.h>'.
43878
43879 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
43880
5cd7dd46 438812007-10-27 Robert Millan <rmh@aybabtu.com>
43882
3236ca65 43883 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 43884
2ebfc90f 438852007-10-22 Robert Millan <rmh@aybabtu.com>
43886
43887 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
43888 `"../realmode.S"'.
43889 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
43890
73fcb0f3 438912007-10-22 Robert Millan <rmh@aybabtu.com>
43892
43893 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
43894 (pkgdata_MODULES): Add `biosdisk.mod'.
43895 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
43896 variables.
43897
43898 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
43899 (grub_biosdisk_init): Replace with ...
43900 (GRUB_MOD_INIT(biosdisk)): ... this.
43901 (grub_biosdisk_fini): Replace with ...
43902 (GRUB_MOD_FINI(biosdisk)): ... this.
43903
43904 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
43905 (grub_machine_init): Remove call to grub_biosdisk_init().
43906 (grub_machine_fini): Remove call to grub_machine_fini().
43907
43908 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
43909
3381d274 439102007-10-22 Robert Millan <rmh@aybabtu.com>
43911
43912 * include/grub/time.h: New file.
43913 * include/grub/i386/time.h: Likewise.
43914 * include/grub/powerpc/time.h: Likewise.
43915 * include/grub/sparc64/time.h: Likewise.
43916
43917 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
43918 instances to ...
43919 (KERNEL_MACHINE_TIME_HEADER): ... this.
43920 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
43921 instances to ...
43922 (KERNEL_MACHINE_TIME_HEADER): ... this.
43923 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
43924 instances to ...
43925 (KERNEL_MACHINE_TIME_HEADER): ... this.
43926
43927 * kern/i386/efi/init.c: Include `<grub/time.h>'.
43928 (grub_millisleep): New function.
43929 * kern/i386/pc/init.c: Include `<grub/time.h>'.
43930 (grub_millisleep): New function.
43931 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
43932 Remove `grub/machine/time.h' include.
43933 (grub_millisleep): New function.
43934 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
43935 Remove `grub/machine/time.h' include.
43936 (grub_millisleep): New function.
43937
43938 * include/grub/misc.h (grub_div_roundup): New function.
43939
43940 * kern/misc.c: Include `<grub/time.h>'.
43941 (grub_millisleep_generic): New function.
43942
43943 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
43944 Add `time.h'.
43945 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
43946 Add `time.h'.
43947 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
43948 `machine/time.h'. Add `time.h'.
43949 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43950
a39a0312 439512007-10-21 Robert Millan <rmh@aybabtu.com>
43952
43953 * include/grub/misc.h (grub_max): New function.
43954
2aad70e2 439552007-10-21 Robert Millan <rmh@aybabtu.com>
43956
43957 * util/misc.c (grub_util_info): Call fflush() before returning.
43958
54b71c4b 439592007-10-20 Robert Millan <rmh@aybabtu.com>
43960
43961 * genmk.rb (Image): Copy `extra_flags' from here ...
43962 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
43963
43964 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
43965 to `argc' and `args' arguments.
43966
a979f513 439672007-10-17 Robert Millan <rmh@aybabtu.com>
43968
43969 * kern/i386/loader.S: New file.
43970
43971 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
43972 * kern/i386/loader.S (grub_linux_prot_size)... to here.
43973 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
43974 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
43975 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
43976 * kern/i386/loader.S (grub_linux_real_addr)... to here.
43977 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
43978 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
43979 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
43980 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
43981 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
43982 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
43983 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
43984 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
43985
43986 * kern/i386/realmode.S: New file.
43987
43988 * kern/i386/pc/startup.S (protstack): Moved from here ...
43989 * kern/i386/realmode.S (protstack)... to here.
43990 * kern/i386/pc/startup.S (gdt): Moved from here ...
43991 * kern/i386/realmode.S (gdt)... to here.
43992 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
43993 * kern/i386/realmode.S (prot_to_real)... to here.
43994
43995 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
43996 `kern/i386/realmode.S'.
43997
825fc8fd 439982007-10-17 Robert Millan <rmh@aybabtu.com>
43999
44000 * include/grub/i386/loader.h: New file.
44001
44002 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
44003 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44004 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44005 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44006 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
44007 * include/grub/i386/loader.h (grub_linux_prot_size)
44008 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44009 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44010 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44011 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
44012
44013 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
44014
e179b2f4 440152007-10-15 Robert Millan <rmh@aybabtu.com>
44016
44017 * normal/misc.c (grub_normal_print_device_info): Do not probe for
44018 filesystem when dev->disk is unset.
44019 Do probe for filesystem even when dev->disk->has_partitions is set.
44020 In case a filesystem is found, always report it.
44021 In case it isn't, if dev->disk->has_partitions is set, report that
44022 a partition table was found instead of reporting that no filesystem
44023 could be identified.
44024
5db82af6 440252007-10-12 Robert Millan <rmh@aybabtu.com>
44026
44027 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
44028 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
44029
68f6ac74 44030 * include/grub/types.h (grub_host_to_target16): New macro.
44031 (grub_host_to_target32): Likewise.
44032 (grub_host_to_target64): Likewise.
44033 (grub_target_to_host16): Likewise.
44034 (grub_target_to_host32): Likewise.
44035 (grub_target_to_host64): Likewise.
5db82af6 44036
44037 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
44038 Renamed from to ...
44039 (GRUB_MOD_ALIGN): ...this. Update all users.
44040
68f6ac74 44041 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
44042 grub_host_to_target32.
44043 Replace grub_be_to_cpu32 with grub_target_to_host32.
44044 (load_modules): Likewise.
44045 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
44046 Replace grub_be_to_cpu32 with grub_target_to_host32.
44047 Replace grub_cpu_to_be16 with grub_host_to_target16.
44048 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 44049
3cf497cc 440502007-10-12 Robert Millan <rmh@aybabtu.com>
44051
44052 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
44053 * util/elf/grub-mkimage.c: ... here.
44054
44055 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
44056 `util/powerpc/ieee1275/grub-mkimage.c'.
44057
c8cc3692 440582007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 44059
c8cc3692 44060 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
44061 and make it easier to figure out.
44062 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
44063 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
44064 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
44065 leave us with less than HEAP_MIN_SIZE total heap.
44066 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 44067
5c58b791 440682007-10-03 Robert Millan <rmh@aybabtu.com>
44069
44070 * include/grub/i386/io.h: New file.
44071 * commands/i386/pc/play.c (inb): Removed.
44072 (outb): Removed.
44073 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44074 with grub_outb().
afcd2ef8 44075 * term/i386/pc/serial.c (inb): Removed.
44076 (outb): Removed.
44077 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44078 with grub_outb().
44079 * term/i386/pc/vga.c (inb): Removed.
44080 (outb): Removed.
44081 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44082 with grub_outb().
5c58b791 44083
1a477ed6 440842007-10-02 Robert Millan <rmh@aybabtu.com>
44085
44086 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
44087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44088 Reported by Marcin Kurek.
44089
6b5d80fa 440902007-09-07 Robert Millan <rmh@aybabtu.com>
44091
44092 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
44093 SmartFirmware version updates (as released by Sven Luther), and avoid
44094 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
44095 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
44096 known broken.
44097
5618afbf 440982007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44099
44100 From Hitoshi Ozeki:
44101 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
44102 when merging two regions.
44103
6139dcd9 441042007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44105
508e39ee 44106 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
44107 * normal/completion.c (grub_normal_do_completion): Likewise.
44108 Reported by Hitoshi Ozeki.
44109
441102007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 44111
6139dcd9 44112 Do not use devices at boot in chainloading.
f19dbdb7 44113
6139dcd9 44114 * loader/i386/pc/chainloader.c (boot_drive): New variable.
44115 (boot_part_addr): Likewise.
44116 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
44117 with BOOT_DRIVE and BOOT_PART_ADDR.
44118 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
44119 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
44120
38da6516 441212007-08-29 Robert Millan <rmh@aybabtu.com>
44122
44123 Patch from Simon Peter <dn.tlp@gmx.net>:
44124 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
44125 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
44126 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
44127 util/i386/pc/grub-setup.c_DEPENDENCIES.
44128 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
44129 util/grub-probe.c_DEPENDENCIES.
44130 * conf/powerpc-ieee1275.rmk: Likewise.
44131
29d0928c 441322007-08-28 Robert Millan <rmh@aybabtu.com>
44133
44134 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
44135 to tell grub-mkdevicemap how to name devices.
44136 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
44137 feature).
44138
44139 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
44140 util/i386/get_disk_name.c.
44141 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
44142 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
44143 util/ieee1275/get_disk_name.c.
44144
44145 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
44146
44147 * DISTLIST: Add util/i386/get_disk_name.c and
44148 util/ieee1275/get_disk_name.c.
44149
44150 * util/grub-mkdevicemap.c: Replace device naming logic with
44151 grub_util_get_disk_name() calls.
44152
5a0d3cca 441532007-08-20 Robert Millan <rmh@aybabtu.com>
44154
44155 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
44156 (so that it works for both plural and singular quantities).
44157
8b72db2f 441582007-08-05 Robert Millan <rmh@aybabtu.com>
44159
44160 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
44161 so that [xz] isn't taken into account when determining order.
44162
352466bf 441632007-08-02 Marco Gerards <marco@gnu.org>
44164
44165 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
44166 `include/multiboot2.h', `include/grub/elfload.h',
44167 `include/multiboot.h', `include/grub/multiboot.h',
44168 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
44169 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
44170 `kern/elf.c', `loader/multiboot_loader.c',
44171 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
44172 `loader/i386/pc/multiboot2.c',
44173 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
44174 `util/i386/pc/grub-mkrescue.in'. Remove
44175 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
44176 `include/grub/i386/pc/util/biosdisk.h' and
44177 `include/grub/powerpc/ieee1275/multiboot.h'.
44178
8f096014 441792007-08-02 Bean <bean123ch@gmail.com>
44180
44181 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
44182 (ntfs_mod_SOURCES): New variable.
44183 (ntfs_mod_CFLAGS): Likewise.
44184 (ntfs_mod_LDFLAGS): Likewise.
44185
44186 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
44187 (grub_probe_SOURCES): Likewise.
44188 (grub_emu_SOURCES): Likewise.
44189
44190 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44191 (grub_emu_SOURCES): Likewise.
44192
44193 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44194 (grub_emu_SOURCES): Likewise.
f19dbdb7 44195
8f096014 44196 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
44197
44198 * fs/ntfs.c: New file.
44199
9959f7db 442002007-08-02 Bean <bean123ch@gmail.com>
44201
44202 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
44203
44204 * file.h (grub_file): Likewise.
44205
44206 * fshelp.h (grub_fshelp_read_file): Likewise.
44207
44208 * util/i386/pc/grub-setup.c (setup): Likewise.
44209 (save_first_sector): Likewise.
44210 (save_blocklists): Likewise.
f19dbdb7 44211
9959f7db 44212 * fs/affs.c (grub_affs_read_file): Likewise.
44213
44214 * fs/ext2.c (grub_ext2_read_file): Likewise.
44215
44216 * fs/fat.c (grub_fat_read_data): Likewise.
44217
44218 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
44219
44220 * fs/hfs.c (grub_hfs_read_file): Likewise.
44221
44222 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
44223
44224 * fs/jfs.c (grub_jfs_read_file): Likewise.
44225
44226 * fs/minix.c (grub_minix_read_file): Likewise.
44227
44228 * fs/sfs.c (grub_sfs_read_file): Likewise.
44229
44230 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 44231
9959f7db 44232 * fs/xfs.c (grub_xfs_read_file): Likewise.
44233
44234 * command/blocklist.c (read_blocklist): Likewise.
44235 (print_blocklist): Likewise.
44236
0a203f83 442372007-08-02 Marco Gerards <marco@gnu.org>
44238
44239 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
44240 `util/hostfs.c'.
44241
44242 * disk/host.c: New file.
44243
44244 * util/hostfs.c: Likewise.
44245
44246 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
44247 return `GRUB_ERR_BAD_FS'.
44248 * fs/sfs.c (grub_sfs_mount): Likewise.
44249 * fs/xfs.c (grub_xfs_mount): Likewise.
44250
44251 * include/grub/disk.h (enum grub_disk_dev_id): Add
44252 `GRUB_DISK_DEVICE_HOST_ID'.
44253
44254 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
44255
e5dfe777 442562007-07-24 Jerone Young <jerone@gmail.com>
44257
f19dbdb7 44258 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 44259 modules for compilation.
44260 * conf/powerpc-ieee1275.rmk: Likewise.
44261
44262 * include/multiboot.h: Move multiboot definitions to one file. Rename
44263 many definitions to not get grub specific.
44264 * include/multiboot2.h: Create header with multiboot 2 definitions.
44265 * include/grub/multiboot.h: Header for grub specific function
44266 prototypes and definitions.
44267 * include/grub/multiboot2.h: Likewise.
44268 * include/grub/multiboot_loader.h: Likewise.
44269 * include/grub/i386/pc/multiboot.h: Removed.
44270 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
44271
44272 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
44273 and 2 to allow for one multiboot and module commands.
44274 * loader/multiboot2.c: Add multiboot2 functionality.
44275 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
44276 and definition names.
44277 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
44278 2 functions.
44279 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
44280 ieee1275 specific multiboot2 code.
44281
44282 * kern/i386/pc/startup.S: Change headers and definition names for
44283 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
44284
daf0f0ba 442852007-07-22 Robert Millan <rmh@aybabtu.com>
44286
44287 * geninitheader.sh: Process file specified in first parameter rather
44288 than hardcoding grub_modules_init.lst.
fe6b695a 44289 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 44290 than hardcoding grub_modules_init.h.
44291
44292 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
44293 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
44294 grub_probe_init.[ch] and grub_setup_init.[ch].
44295
44296 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
44297 grub_modules_init.h with grub_emu_init.h.
44298 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
44299 grub_probe_init.[ch] files.
44300 * conf/i386-efi.rmk: Likewise.
44301 * conf/i386-pc.rmk: Likewise.
44302 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
44303 grub_setup_init.[ch] files.
44304
44305 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
44306 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
44307 to initialize modules rather than a list of hardcoded functions.
44308 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
44309 grub_init_all() to initialize modules rather than a list of hardcoded
44310 functions.
44311
54cdc1cc 443122007-07-22 Robert Millan <rmh@aybabtu.com>
44313
44314 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
44315 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
44316
ad0686cc 443172007-07-22 Robert Millan <rmh@aybabtu.com>
44318
44319 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
44320 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
44321 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
44322 flag when running on SmartFirmware.
44323 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
44324 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
44325 was set.
44326
44327 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44328 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
44329 rather than decreasing it.
44330
44331 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
44332 there's not enough space to do it, fail in the same way as when it
44333 can't be done because there are no partitions.
44334
44335 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
44336 when nvsetenv failed.
44337
969c02ec 443382007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44339
44340 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
44341 because this rule is automatically generated.
44342 (grub-mkrescue): Removed for the same reason as above.
44343
5a79f472 443442007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44345
44346 Migrate to GNU General Public License Version 3.
f19dbdb7 44347
5a79f472 44348 * COPYING: Replaced with the plain text version of GPLv3.
44349
44350 * config.guess: Updated from gnulib.
44351 * config.sub: Likewise.
44352
44353 * geninit.sh: Output a GPLv3 copyright notice.
44354 * geninitheader.sh: Likewise.
44355 * genmodsrc.sh: Likewise.
44356 * gensymlist.sh.in: Likewise.
44357
44358 * boot/i386/pc/boot.S: Upgraded to GPLv3.
44359 * boot/i386/pc/diskboot.S: Likewise.
44360 * boot/i386/pc/pxeboot.S: Likewise.
44361 * commands/blocklist.c: Likewise.
44362 * commands/boot.c: Likewise.
44363 * commands/cat.c: Likewise.
44364 * commands/cmp.c: Likewise.
44365 * commands/configfile.c: Likewise.
44366 * commands/echo.c: Likewise.
44367 * commands/help.c: Likewise.
44368 * commands/ls.c: Likewise.
44369 * commands/search.c: Likewise.
44370 * commands/terminal.c: Likewise.
44371 * commands/test.c: Likewise.
44372 * commands/videotest.c: Likewise.
44373 * commands/i386/cpuid.c: Likewise.
44374 * commands/i386/pc/halt.c: Likewise.
44375 * commands/i386/pc/play.c: Likewise.
44376 * commands/i386/pc/reboot.c: Likewise.
44377 * commands/i386/pc/vbeinfo.c: Likewise.
44378 * commands/i386/pc/vbetest.c: Likewise.
44379 * commands/ieee1275/halt.c: Likewise.
44380 * commands/ieee1275/reboot.c: Likewise.
44381 * commands/ieee1275/suspend.c: Likewise.
44382 * disk/loopback.c: Likewise.
44383 * disk/lvm.c: Likewise.
44384 * disk/raid.c: Likewise.
44385 * disk/efi/efidisk.c: Likewise.
44386 * disk/i386/pc/biosdisk.c: Likewise.
44387 * disk/ieee1275/ofdisk.c: Likewise.
44388 * font/manager.c: Likewise.
44389 * fs/affs.c: Likewise.
44390 * fs/ext2.c: Likewise.
44391 * fs/fat.c: Likewise.
44392 * fs/fshelp.c: Likewise.
44393 * fs/hfs.c: Likewise.
44394 * fs/hfsplus.c: Likewise.
44395 * fs/iso9660.c: Likewise.
44396 * fs/jfs.c: Likewise.
44397 * fs/minix.c: Likewise.
44398 * fs/sfs.c: Likewise.
44399 * fs/ufs.c: Likewise.
44400 * fs/xfs.c: Likewise.
44401 * hello/hello.c: Likewise.
44402 * include/grub/acorn_filecore.h: Likewise.
44403 * include/grub/arg.h: Likewise.
44404 * include/grub/bitmap.h: Likewise.
44405 * include/grub/boot.h: Likewise.
44406 * include/grub/cache.h: Likewise.
44407 * include/grub/device.h: Likewise.
44408 * include/grub/disk.h: Likewise.
44409 * include/grub/dl.h: Likewise.
44410 * include/grub/elfload.h: Likewise.
44411 * include/grub/env.h: Likewise.
44412 * include/grub/err.h: Likewise.
44413 * include/grub/file.h: Likewise.
44414 * include/grub/font.h: Likewise.
44415 * include/grub/fs.h: Likewise.
44416 * include/grub/fshelp.h: Likewise.
44417 * include/grub/gzio.h: Likewise.
44418 * include/grub/hfs.h: Likewise.
44419 * include/grub/kernel.h: Likewise.
44420 * include/grub/loader.h: Likewise.
44421 * include/grub/lvm.h: Likewise.
44422 * include/grub/misc.h: Likewise.
44423 * include/grub/mm.h: Likewise.
44424 * include/grub/net.h: Likewise.
44425 * include/grub/normal.h: Likewise.
44426 * include/grub/parser.h: Likewise.
44427 * include/grub/partition.h: Likewise.
44428 * include/grub/pc_partition.h: Likewise.
44429 * include/grub/raid.h: Likewise.
44430 * include/grub/rescue.h: Likewise.
44431 * include/grub/script.h: Likewise.
44432 * include/grub/setjmp.h: Likewise.
44433 * include/grub/symbol.h: Likewise.
44434 * include/grub/term.h: Likewise.
44435 * include/grub/terminfo.h: Likewise.
44436 * include/grub/tparm.h: Likewise.
44437 * include/grub/types.h: Likewise.
44438 * include/grub/video.h: Likewise.
44439 * include/grub/efi/api.h: Likewise.
44440 * include/grub/efi/chainloader.h: Likewise.
44441 * include/grub/efi/console.h: Likewise.
44442 * include/grub/efi/console_control.h: Likewise.
44443 * include/grub/efi/disk.h: Likewise.
44444 * include/grub/efi/efi.h: Likewise.
44445 * include/grub/efi/pe32.h: Likewise.
44446 * include/grub/efi/time.h: Likewise.
44447 * include/grub/i386/linux.h: Likewise.
44448 * include/grub/i386/setjmp.h: Likewise.
44449 * include/grub/i386/types.h: Likewise.
44450 * include/grub/i386/efi/kernel.h: Likewise.
44451 * include/grub/i386/efi/loader.h: Likewise.
44452 * include/grub/i386/efi/time.h: Likewise.
44453 * include/grub/i386/pc/biosdisk.h: Likewise.
44454 * include/grub/i386/pc/boot.h: Likewise.
44455 * include/grub/i386/pc/chainloader.h: Likewise.
44456 * include/grub/i386/pc/console.h: Likewise.
44457 * include/grub/i386/pc/init.h: Likewise.
44458 * include/grub/i386/pc/kernel.h: Likewise.
44459 * include/grub/i386/pc/loader.h: Likewise.
44460 * include/grub/i386/pc/memory.h: Likewise.
44461 * include/grub/i386/pc/multiboot.h: Likewise.
44462 * include/grub/i386/pc/serial.h: Likewise.
44463 * include/grub/i386/pc/time.h: Likewise.
44464 * include/grub/i386/pc/vbe.h: Likewise.
44465 * include/grub/i386/pc/vbeblit.h: Likewise.
44466 * include/grub/i386/pc/vbefill.h: Likewise.
44467 * include/grub/i386/pc/vbeutil.h: Likewise.
44468 * include/grub/i386/pc/vga.h: Likewise.
44469 * include/grub/ieee1275/ieee1275.h: Likewise.
44470 * include/grub/ieee1275/ofdisk.h: Likewise.
44471 * include/grub/powerpc/libgcc.h: Likewise.
44472 * include/grub/powerpc/setjmp.h: Likewise.
44473 * include/grub/powerpc/types.h: Likewise.
44474 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
44475 * include/grub/powerpc/ieee1275/console.h: Likewise.
44476 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
44477 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
44478 * include/grub/powerpc/ieee1275/loader.h: Likewise.
44479 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
44480 * include/grub/powerpc/ieee1275/time.h: Likewise.
44481 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
44482 * include/grub/sparc64/libgcc.h: Likewise.
44483 * include/grub/sparc64/setjmp.h: Likewise.
44484 * include/grub/sparc64/types.h: Likewise.
44485 * include/grub/sparc64/ieee1275/console.h: Likewise.
44486 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44487 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44488 * include/grub/sparc64/ieee1275/time.h: Likewise.
44489 * include/grub/util/biosdisk.h: Likewise.
44490 * include/grub/util/getroot.h: Likewise.
44491 * include/grub/util/lvm.h: Likewise.
44492 * include/grub/util/misc.h: Likewise.
44493 * include/grub/util/raid.h: Likewise.
44494 * include/grub/util/resolve.h: Likewise.
44495 * io/gzio.c: Likewise.
44496 * kern/device.c: Likewise.
44497 * kern/disk.c: Likewise.
44498 * kern/dl.c: Likewise.
44499 * kern/elf.c: Likewise.
44500 * kern/env.c: Likewise.
44501 * kern/err.c: Likewise.
44502 * kern/file.c: Likewise.
44503 * kern/fs.c: Likewise.
44504 * kern/loader.c: Likewise.
44505 * kern/main.c: Likewise.
44506 * kern/misc.c: Likewise.
44507 * kern/mm.c: Likewise.
44508 * kern/parser.c: Likewise.
44509 * kern/partition.c: Likewise.
44510 * kern/rescue.c: Likewise.
44511 * kern/term.c: Likewise.
44512 * kern/efi/efi.c: Likewise.
44513 * kern/efi/init.c: Likewise.
44514 * kern/efi/mm.c: Likewise.
44515 * kern/i386/dl.c: Likewise.
44516 * kern/i386/efi/init.c: Likewise.
44517 * kern/i386/efi/startup.S: Likewise.
44518 * kern/i386/pc/init.c: Likewise.
44519 * kern/i386/pc/lzo1x.S: Likewise.
44520 * kern/i386/pc/startup.S: Likewise.
44521 * kern/ieee1275/ieee1275.c: Likewise.
44522 * kern/powerpc/cache.S: Likewise.
44523 * kern/powerpc/dl.c: Likewise.
44524 * kern/powerpc/ieee1275/cmain.c: Likewise.
44525 * kern/powerpc/ieee1275/crt0.S: Likewise.
44526 * kern/powerpc/ieee1275/init.c: Likewise.
44527 * kern/powerpc/ieee1275/openfw.c: Likewise.
44528 * kern/sparc64/cache.S: Likewise.
44529 * kern/sparc64/dl.c: Likewise.
44530 * kern/sparc64/ieee1275/init.c: Likewise.
44531 * kern/sparc64/ieee1275/openfw.c: Likewise.
44532 * loader/efi/chainloader.c: Likewise.
44533 * loader/efi/chainloader_normal.c: Likewise.
44534 * loader/i386/efi/linux.c: Likewise.
44535 * loader/i386/efi/linux_normal.c: Likewise.
44536 * loader/i386/pc/chainloader.c: Likewise.
44537 * loader/i386/pc/chainloader_normal.c: Likewise.
44538 * loader/i386/pc/linux.c: Likewise.
44539 * loader/i386/pc/linux_normal.c: Likewise.
44540 * loader/i386/pc/multiboot.c: Likewise.
44541 * loader/i386/pc/multiboot_normal.c: Likewise.
44542 * loader/powerpc/ieee1275/linux.c: Likewise.
44543 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
44544 * normal/arg.c: Likewise.
44545 * normal/cmdline.c: Likewise.
44546 * normal/command.c: Likewise.
44547 * normal/completion.c: Likewise.
44548 * normal/execute.c: Likewise.
44549 * normal/function.c: Likewise.
44550 * normal/lexer.c: Likewise.
44551 * normal/main.c: Likewise.
44552 * normal/menu.c: Likewise.
44553 * normal/menu_entry.c: Likewise.
44554 * normal/misc.c: Likewise.
44555 * normal/parser.y: Likewise.
44556 * normal/script.c: Likewise.
44557 * normal/i386/setjmp.S: Likewise.
44558 * normal/powerpc/setjmp.S: Likewise.
44559 * normal/sparc64/setjmp.S: Likewise.
44560 * partmap/acorn.c: Likewise.
44561 * partmap/amiga.c: Likewise.
44562 * partmap/apple.c: Likewise.
44563 * partmap/gpt.c: Likewise.
44564 * partmap/pc.c: Likewise.
44565 * partmap/sun.c: Likewise.
44566 * term/gfxterm.c: Likewise.
44567 * term/terminfo.c: Likewise.
44568 * term/efi/console.c: Likewise.
44569 * term/i386/pc/console.c: Likewise.
44570 * term/i386/pc/serial.c: Likewise.
44571 * term/i386/pc/vesafb.c: Likewise.
44572 * term/i386/pc/vga.c: Likewise.
44573 * term/ieee1275/ofconsole.c: Likewise.
44574 * util/biosdisk.c: Likewise.
44575 * util/console.c: Likewise.
44576 * util/genmoddep.c: Likewise.
44577 * util/getroot.c: Likewise.
44578 * util/grub-emu.c: Likewise.
44579 * util/grub-mkdevicemap.c: Likewise.
44580 * util/grub-probe.c: Likewise.
44581 * util/lvm.c: Likewise.
44582 * util/misc.c: Likewise.
44583 * util/raid.c: Likewise.
44584 * util/resolve.c: Likewise.
44585 * util/update-grub.in: Likewise.
44586 * util/update-grub_lib.in: Likewise.
44587 * util/grub.d/00_header.in: Likewise.
44588 * util/grub.d/10_hurd.in: Likewise.
44589 * util/grub.d/10_linux.in: Likewise.
44590 * util/i386/efi/grub-install.in: Likewise.
44591 * util/i386/efi/grub-mkimage.c: Likewise.
44592 * util/i386/pc/grub-install.in: Likewise.
44593 * util/i386/pc/grub-mkimage.c: Likewise.
44594 * util/i386/pc/grub-mkrescue.in: Likewise.
44595 * util/i386/pc/grub-setup.c: Likewise.
44596 * util/i386/pc/misc.c: Likewise.
44597 * util/powerpc/ieee1275/grub-install.in: Likewise.
44598 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
44599 * util/powerpc/ieee1275/misc.c: Likewise.
44600 * video/bitmap.c: Likewise.
44601 * video/video.c: Likewise.
44602 * video/i386/pc/vbe.c: Likewise.
44603 * video/i386/pc/vbeblit.c: Likewise.
44604 * video/i386/pc/vbefill.c: Likewise.
44605 * video/i386/pc/vbeutil.c: Likewise.
44606 * video/readers/tga.c: Likewise.
44607
3572d015 446082007-07-02 Robert Millan <rmh@aybabtu.com>
44609
44610 * conf/i386-efi.rmk: Replace obsolete reference to
44611 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
44612 with util/getroot.c.
44613 * conf/powerpc-ieee1275.rmk: Likewise.
44614 * conf/sparc64-ieee1275.rmk: Likewise.
44615
44616 * util/grub-emu.c (main): Fix unchecked pointer handling.
44617
2c2a681b 446182007-07-02 Robert Millan <rmh@aybabtu.com>
44619
44620 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
44621 invocation to fail, in order to support partition-less media.
44622
44623 * util/i386/pc/grub-install.in: Likewise.
44624
44625 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
44626 which fs or partmap modules are needed (akin to its sister scripts).
44627
44628 Also use grub-probe to get rid of unportable /proc/mounts check.
44629
44630 Print the same informational message that the other scripts do, before
fe6b695a 44631 exiting.
2c2a681b 44632
6193defe 446332007-06-23 Robert Millan <rmh@aybabtu.com>
44634
fe6b695a 44635 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 44636 a font file can be found and, if so, echo the GRUB path to it.
44637
44638 * util/update-grub.in: Handle multiple terminals depending on user
44639 input, platform availability and font file presence. Propagate
44640 variables of our findings to /etc/grub.d/ children.
44641
44642 * util/grub.d/00_header.in: Handle multiple terminals, based on
44643 environment setup by update-grub.
44644
eface1dc 446452007-06-23 Robert Millan <rmh@aybabtu.com>
44646
ba50d28f 44647 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 44648
bf697e28 446492007-06-21 Robert Millan <rmh@aybabtu.com>
44650
44651 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
44652 indicate end of data section in kernel image.
44653 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
44654 GRUB_KERNEL_MACHINE_DATA_END.
44655
44656 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
44657 space for it.
44658 * kern/i386/efi/startup.S: Likewise.
44659
44660 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
44661 during image generation. Implement --prefix option to override this
44662 patch.
44663 * util/i386/efi/grub-mkimage.c: Likewise.
44664
44665 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
44666 code to make path relative to its root into a separate function.
44667
44668 * util/i386/pc/grub-install.in: Use newly provided
44669 make_system_path_relative_to_its_root() to convert ${grubdir}, then
44670 pass the result to grub-install --prefix.
44671
baa574b4 446722007-06-13 Robert Millan <rmh@aybabtu.com>
44673
44674 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
44675 DEFAULT_DEVICE_MAP.
44676 * util/grub-emu.c: Use above definitions from misc.h instead of
44677 defining them.
44678 * util/grub-mkdevicemap.c: Likewise.
44679 * util/i386/pc/grub-setup.c: Likewise.
44680 * util/grub-probe.c: Likewise.
44681 (probe): Abort with grub_util_error() when either
44682 grub_guess_root_device or grub_util_get_grub_dev fails.
44683
0215dcbf 446842007-06-12 Robert Millan <rmh@aybabtu.com>
44685
44686 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
44687 "pager" assignment.
44688 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
44689 "pcdata".
44690 * util/grub-probe.c (probe): Likewise for "drive_name".
44691
8af2ab7b 446922007-06-11 Robert Millan <rmh@aybabtu.com>
44693
44694 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
44695 not just the cdrom one.
44696
59d31694 446972007-06-11 Robert Millan <rmh@aybabtu.com>
44698
44699 * util/i386/pc/grub-mkrescue.in: Add "set -e".
44700 Add --pkglibdir=DIR option to override pkglibdir.
44701 Mention --image-type=TYPE in help output.
44702 Fix --grub-mkimage (it was a no-op).
fe6b695a 44703 Abort gracefully when no parameter is given.
59d31694 44704
7ee367e4 447052007-06-11 Robert Millan <rmh@aybabtu.com>
44706
44707 * util/i386/pc/grub-mkrescue.in: New file.
44708 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
44709 * Makefile.in: Handle bin_SCRIPTS.
44710
29b0ed46 447112007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
44712
44713 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
44714 list of video modes.
44715
c0f90770 447162007-06-06 Robert Millan <rmh@aybabtu.com>
44717
44718 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
44719 file doesn't exist, or if it is in a filesystem grub can't read.
44720
44721 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
44722 not abort if GRUB_DRIVE could not be defined. Rearrange generated
44723 header comment to fit in 80 columns when the variables are resolved.
44724
44725 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
44726 could be identified by update-grub. Remove redundant check for
fe6b695a 44727 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 44728 handles that).
44729
fb36dc26 447302007-06-04 Robert Millan <rmh@aybabtu.com>
44731
44732 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
44733
44734 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
44735
44736 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
44737
0c68c93e 447382007-06-04 Robert Millan <rmh@aybabtu.com>
44739
44740 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
44741
44742 * include/grub/partition.h: Declare grub_apple_partition_map_init and
44743 grub_apple_partition_map_fini.
44744
44745 * util/biosdisk.c
44746 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
44747 to access >2 TiB disks).
44748
44749 Print disk->total_sectors with %llu instead of %lu, since this
44750 variable is always 64-bit (prevents wrong disk size from being displayed
44751 on either >2 TiB disk or big-endian CPU).
44752
44753 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
44754 into a generic case that supports all (sane) partition maps.
44755
44756 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
44757 breaks big-endian.
44758
44759 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
44760 and grub_apple_partition_map_fini() after that.
44761
0f23eb74 447622007-06-01 Robert Millan <rmh@aybabtu.com>
44763
44764 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
44765
44766 * util/grub.d/00_header.in: Only enable gfxterm when
44767 convert_system_path_to_grub_path() succeeds.
44768
42c71976 447692007-05-20 Robert Millan <rmh@aybabtu.com>
44770
44771 * util/update-grub_lib.in: New file.
44772 * DISTLIST: Add update-grub_lib.in.
44773 * conf/common.rmk: Generate update-grub_lib and install it in
44774 $(lib_DATA).
44775 * Makefile.in: Add install routine for $(lib_DATA).
44776
44777 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
44778 function provided by update-grub_lib to support arbitrary paths of
44779 unifont.pff.
44780 * util/update-grub.in: Use convert_system_path_to_grub_path() to
44781 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
44782
5beb2291 447832007-05-19 Robert Millan <rmh@aybabtu.com>
44784
44785 * commands/i386/cpuid.c: New module.
44786 * DISTLIST: Add it.
44787 * conf/i386-efi.rmk: Enable cpuid.mod.
44788 * conf/i386-pc.rmk: Likewise.
44789
7262eca1 447902007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44791
44792 * kern/disk.c (grub_disk_read): Check return value of
44793 grub_realloc().
44794
260ba823 447952007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
44796
44797 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
44798 arrays.
44799 * disk/raid.c (grub_raid_open): Likewise.
44800
1ecb6cf2 448012007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44802
44803 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
44804 stack instead of on the heap.
44805
44806 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
44807 before doing a read on it.
44808
44809 * configure.ac: Only use -fno-stack-protector for the target
44810 environment.
f19dbdb7 44811
21c8cbb1 448122007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
44813
44814 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
44815 __attribute_ ((unused)) to mode_type argument.
44816
44817 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 44818
21c8cbb1 44819 * kern/misc.c (memcmp): Fix prototype.
44820
44821 * include/grub/partition.h [GRUB_UTIL]
44822 (grub_gpt_partition_map_init): Add prototype.
44823 (grub_gpt_partition_map_fini): Likewise.
44824
44825 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
44826 at the right place.
44827
44828 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
44829 (grub_fat_read_data): Likewise.
44830 (grub_fat_find_dir): Likewise.
44831
44832 * font/manager.c (find_glyph): Make table a const.
44833 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 44834
849d55d3 448352007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
44836
44837 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
44838 code, first search for device in /dev/mapper, then in /dev.
44839 (grub_util_get_grub_dev): New function.
44840 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
44841 prototype.
44842 * util/grub-probe.c (probe): Remove check for RAID, call
44843 grub_util_get_grub_dev() instead of
44844 grub_util_biosdisk_get_grub_dev().
44845 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
44846 grub_util_biosdisk_get_grub_dev().
44847 * util/i386/pc/grub-setup.c (main): Likewise.
44848
8fff7c2f 448492007-05-16 Robert Millan <rmh@aybabtu.com>
44850
44851 * DISTLIST: Update for the latest changes.
44852 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
44853 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
44854 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
44855 grub/util/biosdisk.h.
44856 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
44857 grub/util/biosdisk.h.
44858
48e12b52 448592007-05-16 Robert Millan <rmh@aybabtu.com>
44860
44861 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
44862
46b9d128 448632007-05-16 Robert Millan <rmh@aybabtu.com>
44864
44865 * util/i386/efi/grub-install.in: New.
44866 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
44867 newly added grub-install.
44868 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
44869 include.
44870 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
44871 grub/util/biosdisk.h.
44872 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
44873 grub/util/biosdisk.h.
44874
2d1a40a9 448752007-05-16 Robert Millan <rmh@aybabtu.com>
44876
44877 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
44878 * include/grub/util/biosdisk.h: ... here.
44879 * util/i386/pc/biosdisk.c: Moved to ...
44880 * util/biosdisk.c: ... here.
44881 * util/i386/pc/getroot.c: Moved to ...
44882 * util/getroot.c: ... here.
44883 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
44884 * util/grub-mkdevicemap.c: ... here.
44885 * util/i386/pc/grub-probe.c: Moved to ...
44886 * util/grub-probe.c: ... here.
44887
9e26e3bc 448882007-05-15 Robert Millan <rmh@aybabtu.com>
44889
44890 * util/update-grub.in: Remove duplicated line in grub.cfg header
44891 message.
44892
57f96397 448932007-05-13 Robert Millan <rmh@aybabtu.com>
44894
44895 * util/update-grub.in: Fix a few assumptions about the devices holding
44896 /, /boot and /boot/grub being the same.
44897 * util/grub.d/00_header.in: Likewise.
44898 * util/grub.d/10_hurd.in: Likewise.
44899 * util/grub.d/10_linux.in: Likewise.
44900
44901 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
44902 patterns. Use that to define the `.old' suffix as older than `'.
44903
44904 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
44905
44906 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
44907 the grub.cfg header message.
44908
2e610d62 449092007-05-11 Robert Millan <rmh@aybabtu.com>
44910
44911 * util/update-grub.in: Create device.map if it doesn't already exist,
44912 before attempting to run grub-probe.
44913 Check for grub-probe and grub-mkdevicemap with the same code
44914 grub-install is using.
44915 Remove test mode.
44916
3f6a10ef 449172007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
44918
44919 * Makefile.in: Add the datarootdir autoconf variable.
44920
02e7b75e 449212007-05-09 Robert Millan <rmh@aybabtu.com>
44922
44923 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 44924 fail gracefully if dev->disk->partition == NULL.
02e7b75e 44925
75f396cc 449262007-05-07 Robert Millan <rmh@aybabtu.com>
44927
44928 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
44929 determine partition map module.
44930 * util/i386/pc/grub-install.in: Use this feature to decide which
44931 partition module to load, instead of hardcoding pc and gpt.
44932
da65cb36 449332007-05-07 Robert Millan <rmh@aybabtu.com>
44934
44935 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
44936 source directory differs from build directory.
44937
b57d6a91 449382007-05-05 Robert Millan <rmh@aybabtu.com>
44939
44940 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
44941 initialisation.
44942
509d00f1 449432007-05-05 Robert Millan <rmh@aybabtu.com>
44944
44945 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
44946
c48f23ef 449472007-05-05 Robert Millan <rmh@aybabtu.com>
44948
44949 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
44950 command-line arguments via ${GRUB_CMDLINE_LINUX}.
44951
20b97658 449522007-05-05 Robert Millan <rmh@aybabtu.com>
44953
44954 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
44955 (grub_probe_SOURCES): Likewise.
44956 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
44957 GPT and initialize dos_part and bsd_part accordingly.
44958 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
44959 install_bsd_part.
44960 (main): Activate gpt module for use during partition identification,
44961 and deactivate it afterwards.
44962 * util/i386/pc/grub-install.in: Add gpt module to core.img.
44963 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
44964 partition identification, and deactivate it afterwards.
44965
99123174 449662007-05-05 Robert Millan <rmh@aybabtu.com>
44967
44968 * term/i386/pc/console.c (grub_console_fini): Call
44969 grub_term_set_current() before grub_term_unregister().
44970
ebd97f6e 449712007-05-04 Robert Millan <rmh@aybabtu.com>
44972
44973 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
44974 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
44975 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
44976 and update-grub_DATA.
44977 * conf/common.rmk: Build and install update-grub components.
44978 * conf/common.mk: Regenerate.
44979 * util/update-grub.in: New. Core of update-grub.
44980 * util/grub.d/00_header.in: New. Generates grub.cfg header.
44981 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
44982 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
44983 * util/grub.d/README: New. Document grub.d directory layout.
44984
b06a264d 449852007-05-01 Robert Millan <rmh@aybabtu.com>
44986
44987 * util/grub-emu.c: Move initialization functions
44988 grub_util_biosdisk_init() and grub_init_all() before
44989 grub_util_biosdisk_get_grub_dev(), which relies on them.
44990
41f0050e 449912007-04-19 Robert Millan <rmh@aybabtu.com>
44992
44993 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
44994 it is used later.
44995
04582bb3 449962007-04-18 Jerone Young <jerone@gmail.com>
44997
f19dbdb7 44998 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 44999 stanza.
45000
08db4632 450012007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 45002
08db4632 45003 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
45004 continue on and look for device node with real device name.
45005
801b76be 450062007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 45007
fe6b695a 45008 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 45009 ability.
45010 * Makefile.in: Add autoconf package transformation code.
45011 * util/i386/pc/grub-install.in: Likewise.
45012 * util/powerpc/ieee1275/grub-install.in: Likewise.
45013
6795c4e1 450142007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45015
45016 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
45017 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
45018 (EXT2_REVISION): Likewise.
45019 (EXT2_INODE_SIZE): Likewise.
45020 (struct grub_ext2_block_group): Added a missing member
45021 "used_dirs".
45022 (grub_ext2_read_inode): Divide by the inode size in a superblock
45023 instead of 128 to obtain INODES_PER_BLOCK.
45024 Use the macro EXT2_INODE_SIZE instead of directly using
45025 SBLOCK->INODE_SIZE.
45026
d70af616 450272007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45028
45029 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
45030 superblock instead of the structure size to compute an
45031 offset. This fixes the problem that GRUB could not read a
45032 filesystem when inode size is different from 128-byte.
45033
3b801603 450342007-03-05 Marco Gerards <marco@gnu.org>
45035
45036 * normal/main.c (read_config_file): When "menu" is not set, create
45037 an initial context.
45038
4785bfe4 450392007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45040
45041 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
45042 (HEAP_LIMIT): New macro.
45043 (grub_claim_heap): Claim memory up to `heaplimit'.
45044
a0cbb023 450452007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45046
45047 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
45048 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
45049 (_start): Likewise.
45050 (grub_arch_modules_addr): Return address after `_end'.
45051 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
45052 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
45053 (add_segments): Calculate `_end' from phdr size and location.
45054 (ALIGN_UP): Moved to ...
45055 * include/grub/misc.h: here.
45056 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
45057 New macro.
45058 (GRUB_IEEE1275_MODULE_BASE): Removed.
45059
fd7d8eba 450602007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45061
45062 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
45063 loop boundary.
45064
9b09e6fc 450652007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45066
45067 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
45068 All users updated.
45069 (grub_elf64_load_hook_t): Likewise.
45070 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
45071 debug output.
45072
3ce27299 450732007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45074
45075 * kern/mm.c: Update copyright.
45076 (grub_mm_debug): Correct syntax error.
45077 (grub_mm_dump_free): New function.
45078 (grub_debug_free): Call `grub_free'.
45079 * include/grub/mm.h: Update copyright.
45080 (grub_mm_dump_free): Add declaration.
45081
077d5fee 450822007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45083
45084 * include/grub/ieee1275/ieee1275.h: Update copyright.
45085 * kern/powerpc/ieee1275/init.c: Likewise.
45086 * kern/powerpc/ieee1275/openfw.c: Likewise.
45087
45088 * loader/powerpc/ieee1275/linux.c: Likewise.
45089 * include/grub/elfload.h: Likewise.
45090 * kern/elf.c: Likewise.
45091 (grub_elf32_load): Pass `base' and `size' parameters. Update all
45092 callers.
45093 (grub_elf64_load): Likewise.
45094 (grub_elf32_load_segment): Move to a nested function.
45095 (grub_elf64_load_segment): Likewise.
45096
dc946850 450972007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45098
45099 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
45100 prototype.
45101 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
45102 (grub_heap_len): Likewise.
45103 (HEAP_SIZE): New macro.
45104 (grub_claim_heap): New function.
45105 (grub_machine_init): Don't claim heap directly. Call
45106 `grub_claim_heap'.
45107 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
45108 (grub_available_iterate): New function.
45109
baa2a121 451102007-02-03 Thomas Schwinge <tschwinge@gnu.org>
45111
45112 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
45113 * configure.ac: Use it for testing the HOST and TARGET compilers.
45114
4fe9862e 451152006-12-13 Thomas Schwinge <tschwinge@gnu.org>
45116
45117 * Makefile.in (enable_grub_emu): New variable.
45118 * configure.ac (--enable-grub-emu): New option.
45119 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
45120 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
45121 * conf/i386-pc.rmk: Likewise.
45122 * conf/powerpc-ieee1275.rmk: Likewise.
45123 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
45124
a8aa5762 451252006-12-12 Marco Gerards <marco@gnu.org>
45126
45127 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
45128
45129 * kern/env.c (grub_env_unset): Don't free the member `value' when
45130 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
45131 pointer.
45132
45133 * normal/main.c (current_menu): Removed.
45134 (free_menu): Unset the `menu' environment variable.
45135 (grub_normal_menu_addentry): Make use of the environment variable
45136 `menu', instead of using the global `current_menu'. Allocate
45137 memory for the sourcecode of this entry.
45138 (read_config_file): New argument `nested', changed all callers.
45139 Only in the case of a new context, initialize a new menu. Set the
45140 `menu' environment variable.
45141 (grub_normal_execute): Don't set and unset the environment
45142 variable `menu' here anymore. Only free the menu when leaving the
45143 context.
45144
45145 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
45146 leak.
45147
957b3a3e 451482006-12-11 Marco Gerards <marco@gnu.org>
45149
45150 * normal/menu_entry.c (run): Fix off by one bug so the last line
45151 is executed. Move the loader check to outside the loop.
45152
ef875714 451532006-12-08 Hollis Blanchard <hollis@penguinppc.org>
45154
45155 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
45156
4e739985 451572006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
45158
45159 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
45160 the number of sectors. Reported by Andrey Shuvikov
45161 <mr_hyro@yahoo.com>.
f19dbdb7 45162
790707f2 451632006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
45164
45165 * kern/disk.c (grub_disk_read): When there is a read error, always
45166 try to read only the necessary data.
f19dbdb7 45167
790707f2 45168 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
45169 disk/raid.c.
45170 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
45171 prototype.
45172 [GRUB_UTIL] (grub_raid_fini): Likewise.
45173 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 45174 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 45175 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
45176 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
45177 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
45178 and grub_raid_fini().
f19dbdb7 45179
03e58196 451802006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
45181
45182 * include/grub/types.h (__unused): Rename to UNUSED.
45183 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
45184 (grub_elf64_size): Likewise.
f19dbdb7 45185
ae4f23bf 451862006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45187
45188 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
45189 grub_error_push and grub_error_pop in the error-handling path.
45190 (grub_elf32_load_segment): Only call grub_file_read with non-zero
45191 length.
45192
2166cc83 451932006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45194
45195 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
45196 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45198 (kernel_elf_SOURCES): Likewise.
45199 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
45200 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
45201 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45202 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45203 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
45204 (elf_mod_SOURCES): New variable.
45205 (elf_mod_CFLAGS): Likewise.
45206 (elf_mod_LDFLAGS): Likewise.
45207 * include/grub/types.h (__unused): New macro.
45208 * include/grub/elfload.h: New file.
45209 * kern/elf.c: Likewise.
45210 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
45211 (ELF32_LOADMASK): New macro.
45212 (ELF64_LOADMASK): Likewise.
45213 (vmlinux): Removed.
45214 (grub_linux_load32): New function.
45215 (grub_linux_load64): Likewise.
45216 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
45217 Use grub_elf_t instead of grub_file_t.
45218
a09d5aa5 452192006-11-02 Hollis Blanchard <hollis@penguinppc.org>
45220
45221 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
45222 `catch_result' to struct set_color_args.
45223
d976fc51 452242006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
45225
45226 * normal/menu.c: Include grub/script.h.
45227 * normal/menu_entry.c: Likewise.
45228 * include/grub/normal.h: Do not include grub/script.h.
45229
67507549 452302006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45231
45232 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
45233
69203a99 452342006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45235
45236 * kern/disk.c (grub_disk_open): Print debug messages when opening a
45237 disk.
45238 (grub_disk_close): Print debug messages when closing a disk.
45239 (grub_disk_read): Print debug messages when disk read fails.
45240 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
45241 filesystem type.
45242 * kern/partition.c: Include misc.h.
45243 (grub_partition_iterate): Print debug messages when detecting
45244 partition type.
45245
e2b8278c 452462006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45247
45248 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
45249 is negative.
45250 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
45251
97b2f2ff 452522006-10-26 Hollis Blanchard <hollis@penguinppc.org>
45253
45254 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
45255 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
45256
6555d655 452572006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
45258
45259 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
45260 instead of sizeof(lv). Patch by Michael Guntsche.
45261
4d42b77f 452622006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
45263
45264 * disk/lvm.c: Rename VGS to VG_LIST.
45265 (grub_lvm_iterate): Change VGS->LV to VG-LV.
45266 (grub_lvm_open): Likewise.
45267 Thanks to Michael Guntsche for finding this bug.
45268
5d74d927 452692006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45270
45271 * configure.ac (AC_INIT): Bumped to 1.95.
45272
a1bb27e4 452732006-10-14 Robert Millan <rmh@aybabtu.com>
45274
45275 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
45276 with "/dev/.static/dev/md".
45277
e0994b8b 452782006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45279
45280 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
45281 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
45282 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
45283 DRIVE_NAME are always freed.
45284
45285 * util/i386/pc/biosdisk.c (make_device_name): Add one into
45286 DOS_PART, as a DOS partition is counted from one instead of zero
45287 now. Reported by Robert Millan.
45288
ddd5cee9 452892006-10-14 Robert Millan <rmh@aybabtu.com>
45290
45291 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
45292 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
45293 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
45294 string returned by grub_guess_root_device.
45295 * util/i386/pc/grub-setup.c: Likewise.
45296 * util/i386/pc/grub-probefs.c: Likewise.
45297
45298 * util/i386/pc/grub-probefs.c: Rename to ...
45299 * util/i386/pc/grub-probe.c: ... this.
45300 * DISTLIST: Remove grub-probefs, add grub-probe.
45301 * conf/i386-efi.rmk: Likewise.
45302 * conf/i386-pc.rmk: Likewise.
45303 * util/i386/pc/grub-install.in: Likewise.
45304
45305 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
45306 choose which information we want to print.
45307
2b002173 453082006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45309
45310 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
45311 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
45312 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
45313 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
45314 video/readers/tga.c and video/i386/pc/vbeutil.c.
45315
453162006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
45317
45318 Added support for RAID and LVM.
f19dbdb7 45319
2b002173 45320 * disk/lvm.c: New file.
45321 * disk/raid.c: Likewise.
45322 * include/grub/lvm.h: Likewise.
f19dbdb7 45323 * include/grub/raid.h: Likewise.
2b002173 45324 * include/grub/util/lvm.h: Likewise.
45325 * include/grub/util/raid.h: Likewise.
45326 * util/lvm.c: Likewise.
45327 * util/raid.c: Likewise.
45328
45329 * include/grub/disk.h (grub_disk_dev_id): Add
45330 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
45331 (grub_disk_get_size): New prototype.
45332 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
45333 returns a partition.
45334 (grub_disk_get_size): New function.
f19dbdb7 45335
2b002173 45336 * kern/i386/pc/init.c (make_install_device): Copy the prefix
45337 verbatim if grub_install_dos_part is -2.
45338
45339 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
45340 and LVM devices.
45341
45342 * util/i386/pc/grub-setup.c (setup): New argument
45343 MUST_EMBED. Force embedding of GRUB when the argument is
45344 true. Close FILE before returning.
45345 (main): Add support for RAID and LVM.
f19dbdb7 45346
2b002173 45347 * conf/common.rmk: Add RAID and LVM modules.
45348 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
45349 util/lvm.c.
45350 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
45351
45352 * kern/misc.c (grub_strstr): New function.
45353 * include/grub/misc.h (grub_strstr): New prototype.
45354
050548d0 453552006-10-10 Tristan Gingold <tristan.gingold@bull.net>
45356
45357 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
45358
da849d2d 453592006-10-05 Tristan Gingold <tristan.gingold@bull.net>
45360
45361 * kern/misc.c (grub_strtoull): Guess the base only if not
45362 specified.
45363
97b2f2ff 453642006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 45365
45366 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
45367 PowerMac support.
45368
97b2f2ff 453692006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 45370
45371 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
45372
45373 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
45374 Remove `flags' argument. All callers changed.
45375 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
45376 (IEEE1275_IHANDLE_INVALID): New variable.
45377 (IEEE1275_CELL_INVALID): New variable.
45378 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
45379 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
45380 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
45381 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
45382 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
45383 codes from Open Firmware. All callers updated.
45384 (grub_ieee1275_next_property): Directly return Open Firmware return
45385 code.
45386 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45387 Standardize error checking from `grub_ieee1275_get_property'.
45388 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
45389 `devalias' to `aliases'. Correct comments. Consolidate error paths.
45390
97b2f2ff 453912006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 45392
45393 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
45394 `instance_to_package_args' to `instance_to_path_args'.
45395
45396 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
45397 `grub_ieee1275_chosen'.
45398
45399 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
45400 `grub_ieee1275_interpret'.
45401
97b2f2ff 454022006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 45403
45404 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
45405
97b2f2ff 454062006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 45407
45408 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
45409 (__cmpdi): Likewise.
45410
45411 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
45412 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
45413 `grub_ssize_t'.
45414
02bb8acc 45415 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 45416
45417 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
45418 to type `grub_ssize_t'.
45419 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
45420
7f9a8531 454212006-09-22 Marco Gerards <marco@gnu.org>
45422
45423 * normal/script.c (grub_script_create_cmdmenu): Skip leading
45424 newlines.
45425
b5ef1102 454262006-09-22 Marco Gerards <marco@gnu.org>
45427
45428 * commands/echo.c: New file.
45429
45430 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
45431
45432 * conf/common.rmk (echo_mod_SOURCES): New variable.
45433 (echo_mod_CFLAGS): Likewise.
45434 (echo_mod_LDFLAGS): Likewise.
45435
2cff3677 454362006-09-22 Marco Gerards <marco@gnu.org>
45437
45438 * normal/main.c (get_line): Malloc memory instead of using
45439 preallocated memory. Removed the arguments `cmdline' and
45440 `max_len'. Updated all callers.
45441
6ba4688b 454422006-09-22 Marco Gerards <marco@gnu.org>
45443
45444 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
45445 (normal_mod_DEPENDENCIES): Likewise.
45446
45447 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
45448 (normal_mod_DEPENDENCIES): Likewise.
45449
45450 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
45451
e02ac02c 454522006-09-22 Johan Rydberg <jrydberg@gnu.org>
45453
45454 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
45455 programs.
45456 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
45457 (normal_mod_DEPENDENCIES): Likewise.
45458 * conf/i386-pc.mk: Regenerate.
45459 * conf/i386-efi.mk: Likewise
45460 * conf/common.mk: Likewise.
45461 * conf/powerpc-ieee1275.mk: Likewise.
45462 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 45463
8d252e44 454642006-09-22 Robert Millan <rmh@aybabtu.com>
45465
45466 Sync with i386 version.
45467 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
45468 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
45469
209bf7ac 454702006-09-21 Robert Millan <rmh@aybabtu.com>
45471
45472 Import from GRUB Legacy (lib/device.c):
45473 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
45474 (init_device_map) [__linux__]: Add support for I2O devices.
45475
6b146090 454762006-09-14 Marco Gerards <marco@gnu.org>
45477
45478 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
45479 `-melf_i386'.
45480
e38600a8 454812006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 45482
45483 * util/i386/pc/grub-install.in: Skip menu.lst when removing
45484 /boot/grub/*.lst.
78fa1790 45485
2952da5d 45486 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 45487
2952da5d 45488 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
45489 before adding it to device.map.
45490
01b82a64 454912006-08-15 Johan Rydberg <jrydberg@gnu.org>
45492
fe6b695a 45493 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 45494 compiles a file; using the -MD option.
45495 * conf/common.mk: Regenerate.
45496 * conf/i386-pc.mk: Likewise.
45497 * conf/i386-efi.mk: Likewise.
45498 * conf/powerpc-ieee1275.mk: Likewise.
45499 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 45500
1064790d 455012006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
45502
45503 Move the prototypes of grub_setjmp and grub_longjmp to
45504 cpu/setjmp.h, so that each architecture may specify different
45505 attributes.
f19dbdb7 45506
1064790d 45507 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
45508 (grub_longjmp): Likewise.
45509 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
45510 (grub_longjmp): Likewise.
45511 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
45512 (grub_longjmp): Likewise.
45513
45514 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
45515 [!GRUB_UTIL] (grub_longjmp): Removed.
45516
29dda3ed 455172006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
45518
45519 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
45520 "color!" method does not return any value.
45521
ad2a06ed 455222006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45523
45524 * include/grub/bitmap.h: New file.
45525
45526 * include/grub/i386/pc/vbeutil.h: Likewise.
45527
45528 * video/bitmap.c: Likewise.
45529
45530 * video/readers/tga.c: Likewise.
45531
45532 * video/i386/pc/vbeutil.c: Likewise.
45533
45534 * commands/videotest.c: Code cleanup and updated to reflect to new
45535 video API.
45536
45537 * term/gfxterm.c: Likewise.
45538
45539 * video/video.c: Likewise.
45540
45541 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
45542 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
45543 (bitmap_mod_SOURCES): New entry.
45544 (bitmap_mod_CFLAGS): Likewise.
45545 (bitmap_mod_LDFLAGS): Likewise.
45546 (tga_mod_SOURCES): Likewise.
45547 (tga_mod_CFLAGS): Likewise.
45548 (tga_mod_LDFLAGS): Likewise.
45549
45550 * include/grub/video.h (grub_video_blit_operators): New enum type.
45551 (grub_video_render_target): Changed as forward declaration and moved
45552 actual definition to be video driver specific.
45553 (grub_video_adapter.blit_bitmap): Added blitting operator.
45554 (grub_video_adapter.blit_render_target): Likewise.
45555 (grub_video_blit_bitmap): Likewise.
45556 (grub_video_blit_render_target): Likewise.
45557
45558 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
45559 driver specific render target definition.
45560 (grub_video_vbe_map_rgba): Added driver internal helper.
45561 (grub_video_vbe_unmap_color): Updated to use
45562 grub_video_i386_vbeblit_info.
45563 (grub_video_vbe_get_video_ptr): Likewise.
45564
45565 * include/grub/i386/pc/vbeblit.h
45566 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
45567 grub_video_i386_vbeblit_info.
45568 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
45569 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
45570 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
45571 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
45572 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
45573 (grub_video_i386_vbeblit_index_index): Likewise.
45574 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
45575 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
45576 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
45577 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
45578 operator.
45579 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
45580 operator.
45581
45582 * video/i386/pc/vbeblit.c: Updated to reflect changes on
45583 include/grub/i386/pc/vbeblit.h.
45584
45585 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
45586 Updated to use grub_video_i386_vbeblit_info.
45587 (grub_video_i386_vbefill_R8G8B8): Likewise.
45588 (grub_video_i386_vbefill_index): Likewise.
45589 (grub_video_i386_vbefill): Added generic filler.
45590
45591 * video/i386/pc/vbefill.c: Updated to reflect changes on
45592 include/grub/i386/pc/vbefill.h.
45593
45594 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
45595 grub_video_i386_vbeblit_info.
45596 (grub_video_vbe_unmap_color): Likewise.
45597 (grub_video_vbe_blit_glyph): Likewise.
45598 (grub_video_vbe_scroll): Likewise.
45599 (grub_video_vbe_draw_pixel): Removed function.
45600 (grub_video_vbe_get_pixel): Likewise.
45601 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
45602 updated code to use it.
45603 (common_blitter): Added common blitter for render target and bitmap.
45604 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
45605 (grub_video_vbe_blit_render_target): Likewise.
45606
bc8c036d 456072006-07-30 Johan Rydberg <jrydberg@gnu.org>
45608
45609 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
45610 is in text mode if there is no console control protocol instance
45611 available.
45612
684a8eff 456132006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45614
45615 * include/grub/video.h: Code cleanup.
45616
45617 * include/grub/i386/pc/vbe.h: Likewise.
45618
45619 * video/i386/pc/vbe.c: Likewise.
45620
45621 * video/i386/pc/vbeblit.c: Likewise.
45622
45623 * video/i386/pc/vbefill.c: Likewise.
45624
45625 * video/video.c: Likewise. Also added more comments.
45626
5915059b 456272006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45628
45629 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
45630 (struct grub_biosdisk_dap): Likewise.
45631
45632 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
45633 linkage settings for all functions.
45634
90ce5d56 456352006-07-12 Marco Gerards <marco@gnu.org>
45636
45637 * configure.ac (--enable-mm-debug): Fix typo.
45638
45639 * genkernsyms.sh.in: Use proper quoting for `CC'.
45640
43e7f879 456412006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
45642
45643 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
45644 (normal_mod_ASFLAGS): Remove "-m32".
45645
4889bdec 456462006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
45647
45648 * util/misc.c: Include config.h.
45649 [!HAVE_MEMALIGN]: Do not include malloc.h.
45650 (grub_memalign): Use posix_memalign, if present. Then, use
45651 memalign, if present. Otherwise, emit an error.
45652
45653 * util/grub-emu.c: Do not include malloc.h.
45654
45655 * include/grub/util/misc.h: Include unistd.h. This is required for
45656 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
45657 D. Eades III <hde@foobar-qux.org>.
45658
45659 * configure.ac (AC_GNU_SOURCE): Added.
45660 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
45661 type.
45662
fd39d4da 456632006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
45664
45665 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
45666 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
45667
b786f3b5 456682006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
45669
45670 * include/grub/types.h (grub_host_addr_t): Rename to
45671 grub_target_addr_t.
45672 (grub_host_off_t): Rename to grub_target_off_t.
45673 (grub_host_size_t): Rename to grub_target_size_t.
45674 (grub_host_ssize_t): Rename to grub_target_ssize_t.
45675 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
45676
45677 * include/grub/kernel.h (struct grub_module_header): Change type
45678 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
45679 (grub_module_info): Likewise.
f19dbdb7 45680
051988bb 456812006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45682
45683 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
45684 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
45685 Velazquez <jesus.velazquez@gmail.com>.
45686
deae281b 456872006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
45688
45689 Count partitions from 1 instead of 0 in the string representation
45690 of partitions. Still use 0-based internally.
f19dbdb7 45691
deae281b 45692 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
45693 (sun_partition_map_iterate): Use grub_partition_t instead of
45694 struct grub_partition *. Cast DESC->START_CYLINDER to
45695 grub_uint64_t after converting the endian.
45696 (sun_partition_map_probe): Subtract 1 for PARTNUM.
45697 (sun_partition_map_get_name): Add 1 to P->INDEX.
45698
45699 * partmap/pc.c (grub_partition_parse): Subtract 1 for
45700 PCDATA->DOS_PART.
45701 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
45702
45703 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
45704 zero instead of one.
45705 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
45706 (gpt_partition_map_get_name): Add 1 into P->INDEX.
45707
45708 * partmap/apple.c (apple_partition_map_iterate): Change the type
45709 of POS to unsigned.
45710 (apple_partition_map_probe): Subtract 1 for PARTNUM.
45711 (apple_partition_map_get_name): Add 1 into P->INDEX.
45712
45713 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
45714 of POS to unsigned.
45715 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
45716 calculate the offset of a partition.
45717 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
45718 (amiga_partition_map_get_name): Add 1 into P->INDEX.
45719
45720 * partmap/acorn.c (acorn_partition_map_find): Change the type of
45721 SECTOR to grub_disk_addr_t.
45722 (acorn_partition_map_iterate): Likewise.
45723 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
45724 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
45725 top.
45726 (acorn_partition_map_get_name): Add 1 into P->INDEX.
45727
45728 * kern/i386/pc/init.c (make_install_device): Add 1 into
45729 GRUB_INSTALL_DOS_PART.
45730
45731 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
45732 conditional.
45733
524a1e6a 457342006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45735
45736 Clean up the code to support 64-bit addressing in disks and
45737 files. This change is not enough for filesystems yet.
f19dbdb7 45738
524a1e6a 45739 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
45740 type of "start" to grub_uint64_t.
45741 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
45742 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
45743 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
45744 convert addresses.
45745
45746 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
45747 to grub_disk_addr_t.
45748
45749 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
45750 string.
45751
45752 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45753
45754 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
45755 to char *.
45756
45757 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
45758
45759 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
45760
45761 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
45762
45763 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
45764 to grub_off_t, to detect an error from grub_file_seek.
45765 (grub_multiboot_load_elf32): Likewise.
45766
45767 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
45768 maximum unsigned long value when an overflow is detected.
45769 (grub_strtoull): New function.
45770 (grub_divmod64): Likewise.
45771 (grub_lltoa): use grub_divmod64.
45772
45773 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
45774 grub_disk_addr_t.
45775 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
45776 the pointer to next character. Use grub_strtoull instead of
45777 grub_strtoul.
45778 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
45779 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
45780 respectively.
45781
fe6b695a 45782 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 45783 return value is signed.
45784 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
45785 test if OFFSET is less than zero, as OFFSET is unsigned now.
45786
45787 * kern/disk.c (struct grub_disk_cache): Change the type of
45788 "sector" to grub_disk_addr_t.
45789 (grub_disk_cache_get_index): Change the type of SECTOR to
45790 grub_disk_addr_t. Calculate the hash with SECTOR casted to
45791 unsigned after shifting.
45792 (grub_disk_cache_invalidate): Change the type of SECTOR to
45793 grub_disk_addr_t.
45794 (grub_disk_cache_unlock): Likewise.
45795 (grub_disk_cache_store): Likewise.
45796 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
45797 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
45798 grub_disk_addr_t and grub_uint64_t, respectively.
45799 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
45800 body, as the value of OFFSET is tweaked by
45801 grub_disk_check_range. Change the types of START_SECTOR, LEN and
45802 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
45803 respectively.
45804 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
45805 body, as the value of OFFSET is tweaked by
45806 grub_disk_check_range. Change the types of LEN and N to
45807 grub_size_t.
45808
45809 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
45810 and "saved_offset" to grub_off_t.
45811 (test_header): Cast BUF to char *.
45812 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
45813 to char *.
45814 (grub_gzio_read): Change the types of OFFSET and SIZE to
45815 grub_off_t and grub_size_t, respectively.
45816
45817 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
45818 Removed.
45819 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
45820 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
45821 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
45822 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
45823 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
45824
45825 * include/grub/types.h (grub_off_t): Unconditionally set to
45826 grub_uint64_t.
45827 (grub_disk_addr_t): Changed to grub_uint64_t.
45828
45829 * include/grub/partition.h (struct grub_partition): Change the
45830 types of "start", "len" and "offset" to grub_disk_addr_t,
45831 grub_uint64_t and grub_disk_addr_t, respectively.
45832 (grub_partition_get_start): Return grub_disk_addr_t.
45833 (grub_partition_get_len): Return grub_uint64_t.
45834
45835 * include/grub/misc.h (grub_strtoull): New prototype.
45836 (grub_divmod64): Likewise.
45837
45838 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
45839 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
45840 grub_off_t, respectively.
45841 All callers and references changed.
45842
45843 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
45844 grub_size_t in "read".
45845 All callers and references changed.
45846
45847 * include/grub/file.h (struct grub_file): Change the types of
45848 "offset" and "size" to grub_off_t and grub_off_t,
45849 respectively. Change the type of SECTOR to grub_disk_addr_t in
45850 "read_hook".
45851 (grub_file_read): Change the type of LEN to grub_size_t.
45852 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
45853 grub_off_t.
45854 (grub_file_size): Return grub_off_t.
45855 (grub_file_tell): Likewise.
45856 All callers and references changed.
45857
45858 * include/grub/disk.h (struct grub_disk_dev): Change the types of
45859 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
45860 "write".
45861 (struct grub_disk): Change the type of "total_sectors" to
45862 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 45863 "read_hook".
524a1e6a 45864 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
45865 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
45866 (grub_disk_write): Likewise.
45867 All callers and references changed.
45868
45869 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
45870 char * for grub_strncmp to silence gcc.
45871 (grub_iso9660_mount): Likewise.
45872 (grub_iso9660_mount): Likewise.
45873 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
45874 return statement.
45875 (grub_iso9660_iterate_dir): Likewise.
45876 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
45877
45878 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
45879 LEN to grub_disk_addr_t and grub_size_t, respectively.
45880
45881 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
45882
45883 * fs/jfs.c (grub_jfs_read_file): Likewise.
45884
45885 * fs/minix.c (grub_jfs_read_file): Likewise.
45886
45887 * fs/sfs.c (grub_jfs_read_file): Likewise.
45888
45889 * fs/ufs.c (grub_jfs_read_file): Likewise.
45890
45891 * fs/xfs.c (grub_jfs_read_file): Likewise.
45892
45893 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
45894 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
45895 respectively.
45896
45897 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
45898 BLKNR to -1 instead of returning GRUB_ERRNO.
45899 (grub_ext2_read_file): Change the types of SECTOR and
45900 LEN to grub_disk_addr_t and grub_size_t, respectively.
45901
45902 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
45903 LEN to grub_disk_addr_t and grub_size_t, respectively.
45904
45905 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
45906 grub_file_read.
45907
45908 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
45909 string. Do not cast SECTOR explicitly.
45910
45911 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
45912 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
45913 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
45914 grub_disk_addr_t and grub_size_t, respectively. If the sector is
45915 over 2TB and LBA mode is not supported, raise an error.
45916 (get_safe_sectors): New function.
45917 (grub_biosdisk_read): Use get_safe_sectors.
45918 (grub_biosdisk_write): Likewise.
45919
45920 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
45921 (grub_efidisk_write): Likewise.
45922
45923 * disk/loopback.c (delete_loopback): Cosmetic changes.
45924 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
45925 correctly.
45926 (grub_loopback_open): Likewise.
45927 (grub_loopback_read): Likewise. Also, change the type of POS to
45928 grub_off_t, and fix the usage of grub_memset.
45929
45930 * commands/i386/pc/play.c: Include grub/machine/time.h.
45931
45932 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
45933 print FILE->SIZE.
45934
45935 * commands/configfile.c: Include grub/env.h.
45936
45937 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
45938 GRUB_ERRNO directly instead. Change the type of POS to
45939 grub_off_t. Follow the coding standard.
45940
45941 * commands/blocklist.c: Include grub/partition.h.
45942 (grub_cmd_blocklist): Return an error if the underlying device is
45943 not a disk. Take the starting sector of a partition into account,
45944 if a partition is used.
45945
45946 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
45947 a length field.
45948 (lba_mode): Support 64-bit addresses.
45949 (chs_mode): Likewise.
45950 (copy_buffer): Adapted to the new offsets of a length field and a
45951 segment field.
45952 (blocklist_default_start): Allocate 64-bit space.
45953
45954 * boot/i386/pc/boot.S (force_lba): Removed.
45955 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 45956 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 45957 space.
45958 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
45959 is useless.
45960 (lba_mode): Refactored to support a 64-bit address. More size
45961 optimization.
45962 (setup_sectors): Likewise.
45963
53af98ad 459642006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
45965
45966 * DISTLIST: Added include/grub/i386/linux.h. Removed
45967 include/grub/i386/pc/linux.h
45968
45969 * configure.ac (AC_INIT): Bumped to 1.94.
45970
45971 * config.guess: Updated from gnulib.
45972 * config.sub: Likewise.
45973 * install-sh: Likewise.
45974 * mkinstalldirs: Likewise.
45975
b4c1940a 459762006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
45977
45978 * conf/common.rmk (grub_modules_init.lst): Depended on
45979 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
45980 MODSRCFILES.
45981
45982 * genmk.rb (PModule::rule): Reverted the previous change.
45983
cfca1cfd 459842006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
45985
45986 * conf/common.rmk (grub_modules_init.lst): Depends on
45987 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
45988 that the target does not exist before producing.
45989 (grub_modules_init.h): Remove the target before generating.
45990 (grub_emu_init.c): Likewise.
45991
45992 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
45993
aa6d7826 459942006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
45995
45996 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
45997 for the target-specific tests. Make sure that we also have the
45998 up-to-date target variables for those tests.
45999
26c607b9 460002006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46001
46002 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
46003 (PModule::rule): Likewise.
46004
0162321a 460052006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46006
46007 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
46008 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
46009 target-specific flags should be prefixed.
46010 (PModule::rule): Likewise.
46011
6c826348 460122006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
46013
46014 * configure.ac (CMP): Check if cmp is available explicitly.
46015
b977bf01 460162006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
46017
46018 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
46019 (target_cpu): New variable.
46020 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 46021
b977bf01 46022 * util/i386/pc/grub-install.in (host_cpu): Removed.
46023 (target_cpu): New variable.
46024 (pkglibdir): Use target_cpu instead of host_cpu.
46025
46026 * util/genmoddep.c: Removed.
f19dbdb7 46027
b977bf01 46028 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
46029 instead of GRUB_HOST_SIZEOF_VOID_P.
46030 * kern/dl.c: Likewise.
46031
46032 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
46033 ...
46034 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46035 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46036 (GRUB_TARGET_SIZEOF_LONG): ... this.
46037 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46038 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46039 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46040 to ...
46041 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46042 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46043 (GRUB_TARGET_SIZEOF_LONG): ... this.
46044 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46045 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46046 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46047 to ...
46048 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46049 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46050 (GRUB_TARGET_SIZEOF_LONG): ... this.
46051 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46052 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46053
46054 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
46055 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
46056 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
46057 instead of GRUB_HOST_SIZEOF_LONG.
46058 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
46059 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
46060 GRUB_CPU_WORDS_BIGENDIAN.
46061 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
46062 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
46063 grub_host_ssize_t.
46064
46065 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
46066 (genmoddep_SOURCES): Likewise.
46067 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
46068 (genmoddep_SOURCES): Likewise.
46069 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
46070 (genmoddep_SOURCES): Likewise.
46071 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
46072 Likewise.
46073 (genmoddep_SOURCES): Likewise.
46074
46075 * genmoddep.awk: New file.
46076
46077 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
46078 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
46079 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
46080 (PModule::rule): Likewise.
46081 (Program::rule): Likewise.
46082 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
46083 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
46084 respectively.
46085
46086 * configure.ac: Rewritten intensively to use host and target
46087 instead of build and host, respectively.
46088
46089 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
46090 (host_cpu): Removed.
46091 (target_cpu): New variable.
46092 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
46093 (BUILD_CC): Removed.
46094 (BUILD_CFLAGS): Likewise.
46095 (BUILD_CPPFLAGS): Likewise.
46096 (TARGET_CC): New variable.
46097 (TARGET_CFLAGS): Likewise.
46098 (TARGET_CPPFLAGS): Likewise.
46099 (TARGET_LDFLAGS): Likewise.
46100 (AWK): Likewise.
46101 (include): Use target_cpu instead of host_cpu.
46102 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 46103
b977bf01 46104 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
46105
f09771a1 461062006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
46107
46108 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
46109 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
46110 field 'false' to 'exec_on_false'.
46111 (grub_script_create_cmdif): Renamed argument names to reflect above
46112 changes.
46113
46114 * normal/execute.c (grub_script_execute_cmdif): Likewise.
46115
46116 * normal/script.c (grub_script_create_cmdif): Likewise.
46117
118f4fb3 461182006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
46119
46120 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
46121 top.
46122 (grub_hfsplus_btree_recptr): Likewise.
46123 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
46124 FILEBLOCK both to pass a block number and store next block
46125 number.
46126 (grub_hfsplus_read_block): Rewritten heavily to support an extent
46127 overflow file correctly. Specify errors appropriately, because
46128 fshelp expects that GRUB_ERRNO is set when fails. Reuse
46129 grub_hfsplus_btree_recptr to get the pointer to a found key.
46130 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
46131 is found.
46132
46133 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
46134 linux.mod.
46135 (_linux_mod_SOURCES): New variable.
46136 (_linux_mod_CFLAGS): Likewise.
46137 (_linux_mod_LDFLAGS): Likewise.
46138 (linux_mod_SOURCES): Likewise.
46139 (linux_mod_CFLAGS): Likewise.
46140 (linux_mod_LDFLAGS): Likewise.
46141
46142 * DISTLIST: Added loader/i386/efi/linux.c,
46143 loader/i386/efi/linux_normal.c and
46144 include/grub/i386/efi/loader.h.
46145
46146 * loader/i386/efi/linux.c: New file.
46147 * loader/i386/efi/linux_normal.c: Likewise.
46148 * include/grub/i386/efi/loader.h: Likewise.
46149
89a7d726 461502006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
46151
46152 * commands/blocklist.c: New file.
46153
46154 * DISTLIST: Added commands/blocklist.c.
46155
46156 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 46157 color for the background, and a darker color for the foreground.
89a7d726 46158 (grub_console_checkkey): Return READ_KEY.
46159 (grub_console_cls): Set the background to
46160 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
46161
46162 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
46163
46164 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
46165 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
46166
46167 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
46168 prototype.
46169
46170 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
46171 BG. The spec is wrong again.
46172
46173 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
46174 prototype.
46175 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
46176
46177 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46178 commands/blocklist.c.
46179 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 46180
89a7d726 46181 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
46182 (blocklist_mod_SOURCES): New variable.
46183 (blocklist_mod_CFLAGS): Likewise.
46184 (blocklist_mod_LDFLAGS): Likewise.
46185
75c8f258 461862006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
46187
46188 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
46189 duplication.
46190 (lba_mode): Use %eax more intensively to reduce the code size.
46191
da2eb181 461922006-05-20 Marco Gerards <marco@gnu.org>
46193
46194 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
46195
46196 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
46197 for `menuentry'.
46198 (script): Accept leading newlines.
46199 (newlines): New rule to describe 0 or more newlines.
46200 (commands): Accept `command' with trailing newline. Fixed the
46201 order in which arguments were passed to `grub_script_add_cmd'.
46202 Accept commands separated by newlines.
46203 (function): Changed to accept newlines.
46204 (menuentry) Rewritten.
46205
46206 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
46207 front of the list, instead of to the end.
46208
577b4050 462092006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
46210
46211 * util/i386/pc/grub-install.in (bindir): New variable.
46212 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
46213 Shaver <lbgwjl@gmail.com>.
46214
0d6e1189 462152006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
46216
46217 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
46218 grub/machine/linux.h
46219 * loader/i386/pc/linux.c: Likewise.
46220
46221 * include/grub/i386/pc/linux.h: Moved to ...
46222 * include/grub/i386/linux.h: ... here.
46223
46224 * include/grub/i386/linux.h (struct linux_kernel_params): New
46225 struct.
f19dbdb7 46226
31b86e9f 462272006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
46228
46229 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
46230 checking.
46231 (grub_video_vbe_blit_glyph): Likewise.
46232 (grub_video_vbe_blit_bitmap): Likewise.
46233 (grub_video_vbe_blit_render_target): Likewise.
46234
83b984de 462352006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
46236
46237 * configure.ac (--with-platform): Properly quote the square
46238 brackets.
46239
5f0413bd 462402006-05-08 Marco Gerards <marco@gnu.org>
46241
46242 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
46243 this...
46244 (kernel_elf_HEADERS): ...to this. Updated all users.
46245 (grubof_symlist.c): Renamed from this...
46246 (kernel_elf_symlist.c): ...to this. Updated all users.
46247 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46248 (grubof_SOURCES): Renamed from this...
46249 (kernel_elf_SOURCES): ...to this.
46250 (grubof_HEADERS): Renamed from this...
46251 (kernel_elf_HEADERS): ...to this.
46252 (grubof_CFLAGS): Renamed from this...
46253 (kernel_elf_CFLAGS): ...to this.
46254 (grubof_ASFLAGS): Renamed from this...
46255 (kernel_elf_ASFLAGS): ...to this.
46256 (grubof_LDFLAGS): Renamed from this...
46257 (kernel_elf_LDFLAGS): ...to this.
46258
46259 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
46260 this...
46261 (kernel_elf_HEADERS): ...to this. Updated all users.
46262 (grubof_symlist.c): Renamed from this...
46263 (kernel_elf_symlist.c): ...to this. Updated all users.
46264 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46265 (grubof_SOURCES): Renamed from this...
46266 (kernel_elf_SOURCES): ...to this.
46267 (grubof_HEADERS): Renamed from this...
46268 (kernel_elf_HEADERS): ...to this.
46269 (grubof_CFLAGS): Renamed from this...
46270 (kernel_elf_CFLAGS): ...to this.
46271 (grubof_ASFLAGS): Renamed from this...
46272 (kernel_elf_ASFLAGS): ...to this.
46273 (grubof_LDFLAGS): Renamed from this...
46274 (kernel_elf_LDFLAGS): ...to this.
46275
46276 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
46277 `kernel.elf' instead of `grubof'.
46278
05568c2e 462792006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
46280
46281 Add --with-platform to configure. Use pkglibdir instead of
46282 pkgdatadir. This is reported by Roger Leigh.
46283
46284 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
46285 (host_vendor): Likewise.
46286 (host_os): Likewise.
46287 (pkgdatadir): Likewise.
46288 (platform): New variable.
46289 (pkglibdir): Likewise.
46290 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 46291
05568c2e 46292 * util/i386/pc/grub-install.in (datadir): Removed.
46293 (host_vendor): Likewise.
46294 (host_os): Likewise.
46295 (pkgdatadir): Likewise.
46296 (platform): New variable.
46297 (pkglibdir): Likewise.
46298 Use PKGLIBDIR instead of PKGDATADIR.
46299
46300 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
46301 instead of GRUB_DATADIR.
46302 (main): Likewise.
46303 * util/i386/pc/grub-mkimage.c (usage): Likewise.
46304 (main): Likewise.
46305 * util/i386/efi/grub-mkimage.c (usage): Likewise.
46306 (main): Likewise.
46307
46308 * configure.ac (--with-platform): New option.
46309 Use PLATFORM instead of HOST_VENDOR to specify a platform.
46310
46311 * Makefile.in: Include a makefile based on PLATFORM instead of
46312 HOST_VENDOR.
46313 (pkgdatadir): Not appended by the machine type.
46314 (pkglibdir): Appended by the machine type.
46315 (host_vendor): Removed.
46316 (platform): New variable.
46317 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
46318 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
46319 (uninstall): Likewise.
46320
4e93851c 463212006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
46322
46323 Use the environment context in the menu. Remove the commands
46324 "default" and "timeout", and use variables instead.
f19dbdb7 46325
4e93851c 46326 * normal/menu.c: Include grub/env.h.
46327 (print_entry): Cast TITLE to silence gcc.
46328 (get_timeout): New function.
46329 (set_timeout): Likewise.
46330 (get_entry_number): Likewise.
46331 (run_menu): Use a default entry, a fallback entry and a timeout
46332 in the environment variables "default", "fallback" and
46333 "timeout". Also, tweak the default entry if it is not within the
46334 current menu entries.
46335 (grub_menu_run): Use a fallback entry in the environment variable
46336 "fallback".
46337
46338 * normal/main.c (read_config_file): Do not initialize
46339 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
46340 NEWMENU->TIMEOUT.
46341 (grub_normal_execute): Use a data slot to store the menu.
46342
46343 * include/grub/normal.h (struct grub_menu): Removed default_entry,
46344 fallback_entry and timeout.
46345 (struct grub_menu_list): Removed.
46346 (grub_menu_list_t): Likewise.
46347 (struct grub_context): Likewise.
46348 (grub_context_t): Likewise.
46349 (grub_context_get): Likewise.
46350 (grub_context_get_current_menu): Likewise.
46351 (grub_context_push_menu): Likewise.
46352 (grub_context_pop_menu): Likewise.
46353 (grub_default_init): Likewise.
46354 (grub_default_fini): Likewise.
46355 (grub_timeout_init): Likewise.
46356 (grub_timeout_fini): Likewise.
46357
46358 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
46359 and timeout.mod.
46360 (normal_mod_SOURCES): Removed normal/context.c.
46361
46362 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
46363 commands/default.c, commands/timeout.c and normal/context.c.
46364 (normal_mod_SOURCES): Removed normal/context.c.
46365
46366 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
46367 commands/timeout.c and normal/context.c.
46368 (normal_mod_SOURCES): Removed normal/context.c.
46369
46370 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
46371 commands/default.c, commands/timeout.c and normal/context.c.
46372 (normal_mod_SOURCES): Removed normal/context.c.
46373
46374 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
46375 timeout.mod.
46376 (default_mod_SOURCES): Removed.
46377 (default_mod_CFLAGS): Likewise.
46378 (default_mod_LDFLAGS): Likewise.
46379 (timeout_mod_SOURCES): Removed.
46380 (timeout_mod_CFLAGS): Likewise.
46381 (timeout_mod_LDFLAGS): Likewise.
46382
46383 * DISTLIST: Removed commands/default.c, commands/timeout.c and
46384 normal/context.c.
46385
46386 * commands/default.c: Removed.
46387 * commands/timeout.c: Likewise.
46388 * normal/context.c: Likewise.
46389
1eb9cc1d 463902006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
46391
46392 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
46393
385bd9c1 463942006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
46395
46396 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
46397 "next" to "prev" for readability.
46398 (struct grub_env_sorted_var): New struct.
46399 (grub_env_context): Renamed to ...
46400 (initial_context): ... this.
46401 (grub_env_var_context): Renamed to ...
46402 (current_context): ... this.
46403 (grub_env_find): Look only at CURRENT_CONTEXT.
46404 (grub_env_context_open): Rewritten to copy exported variables from
46405 previous context.
46406 (grub_env_context_close): Rewritten according to the new
46407 scheme. Also, add an assertion to prevent the initial context from
46408 removed.
46409 (grub_env_insert): Removed the code for the sorted list.
46410 (grub_env_remove): Likewise.
46411 (grub_env_export): Simply mark the variable with
46412 GRUB_ENV_VAR_GLOBAL.
46413 (grub_env_set): A cosmetic change for naming consistency.
46414 (grub_env_get): Likewise.
46415 (grub_env_unset): Likewise.
46416 (grub_env_iterate): Rewritten to sort variables within this
46417 function.
46418 (grub_register_variable_hook): Fixed for naming consistency. Call
46419 grub_env_find again, only if NAME is not found at the first time.
46420 (mangle_data_slot_name): New function.
46421 (grub_env_set_data_slot): Likewise.
46422 (grub_env_get_data_slot): Likewise.
46423 (grub_env_unset_data_slot): Likewise.
46424
46425 * include/grub/env.h (grub_env_var_type): New enum.
46426 (GRUB_ENV_VAR_LOCAL): New constant.
46427 (GRUB_ENV_VAR_GLOBAL): Likewise.
46428 (GRUB_ENV_VAR_DATA): Likewise.
46429 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
46430 "type".
46431 (grub_env_set): Replace VAR with NAME for consistency.
46432 (grub_register_variable_hook): Likewise.
46433 (grub_env_export): Specify the name of the argument.
46434 (grub_env_set_data_slot): New prototype.
46435 (grub_env_get_data_slot): Likewise.
46436 (grub_env_unset_data_slot): Likewise.
46437
7f362539 464382006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46439
46440 Extend the loader so that GRUB can accept a loader which comes
46441 back to GRUB when a loaded image exits. Also, this change adds
46442 support for a chainloader on EFI.
f19dbdb7 46443
7f362539 46444 * term/efi/console.c: Include grub/misc.h.
46445 (grub_console_checkkey): Display a scan code on the top for
46446 debugging. This will be removed once the EFI port gets stable.
46447 Correct the scan code mapping.
46448
46449 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
46450 allocate memory from larger regions, in order to reduce the number
46451 of allocated regions. Otherwise, the MacOSX loader panics.
46452 (filter_memory_map): Avoid less than 1MB for compatibility with
46453 other loaders.
46454 (add_memory_regions): Allocate from the tail of a region, if
46455 possible, to avoid allocating a region near to 1MB, for the MacOSX
46456 loader.
46457
46458 * kern/efi/init.c (grub_efi_set_prefix): Specify
46459 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
46460
46461 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
46462 argument IMAGE_HANDLE and specify it to get a loaded image.
46463 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
46464 grub_efi_get_loaded_image.
fe6b695a 46465 (grub_efi_get_filename): Divide the length by the size of
7f362539 46466 grub_efi_char16_t.
46467 (grub_efi_get_device_path): New function.
46468 (grub_efi_print_device_path): Print End Device Path nodes. Divide
46469 the length by the size of grub_efi_char16_t for a file path device
46470 path node.
46471
46472 * kern/loader.c (grub_loader_noreturn): New variable.
46473 (grub_loader_set): Accept a new argument NORETURN. Set
46474 GRUB_LOADER_NORETURN to NORETURN.
46475 All callers changed.
46476 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
46477 grub_machine_fini.
46478
46479 * include/grub/efi/efi.h (grub_efi_get_device_path): New
46480 prototype.
46481 (grub_efi_get_loaded_image): Take an argument to specify an image
46482 handle.
46483
46484 * include/grub/loader.h (grub_loader_set): Added one more argument
46485 NORETURN.
46486
46487 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
46488 instead of grub_efi_open_protocol.
46489 (grub_efidisk_get_device_name): Likewise.
46490 (grub_efidisk_close): Print a newline.
46491 (grub_efidisk_get_device_handle): Fixed to use
46492 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
46493 GRUB_EFI_DEVICE_PATH_TYPE.
46494
46495 * disk/efi/efidisk.c (device_path_guid): Moved to ...
46496 * kern/efi/efi.c (device_path_guid): ... here.
46497
46498 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
46499 chain.mod.
46500 (kernel_mod_HEADERS): Added efi/disk.h.
46501 (_chain_mod_SOURCES): New variable.
46502 (_chain_mod_CFLAGS): Likewise.
46503 (_chain_mod_LDFLAGS): Likewise.
46504 (chain_mod_SOURCES): Likewise.
46505 (chain_mod_CFLAGS): Likewise.
46506 (chain_mod_LDFLAGS): Likewise.
46507
46508 * DISTLIST: Added include/grub/efi/chainloader.h,
46509 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
46510
46511 * include/grub/efi/chainloader.h: New file.
46512 * loader/efi/chainloader.c: Likewise.
46513 * loader/efi/chainloader_normal.c: Likewise.
46514
c0111d6e 465152006-04-30 Marco Gerards <marco@gnu.org>
46516
46517 * commands/configfile.c (grub_cmd_source): New function.
46518 (GRUB_MOD_INIT): Register the commands `source' and `.'.
46519 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
46520
df5341da 465212006-04-30 Marco Gerards <marco@gnu.org>
46522
46523 * normal/execute.c (grub_script_execute_cmd): Change the return
46524 type to `grub_err_t'. Correctly return the error.
46525 (grub_script_execute_cmdline): In case a command line is not a
46526 command or a function, try to interpret it as an assignment.
46527
f85934bd 465282006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46529
46530 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
46531 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
46532 skip a node whose name is obviously invalid as UTF-16,
46533 i.e. contains a NUL character. Stop the iteration when the last
46534 directory entry is found. Instead of using the return value of
46535 grub_hfsplus_btree_iterate_node, store the value in RET and use
46536 it, because the iterator can be stopped by the last directory
46537 entry.
46538
8f8a2cf8 465392006-04-30 Marco Gerards <marco@gnu.org>
46540
46541 * include/grub/env.h (grub_env_export): New prototype. Reported
46542 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
46543
a27e84ce 465442006-04-30 Marco Gerards <marco@gnu.org>
46545
46546 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
46547 size of the extents in a catalog file record.
46548
eaef0553 465492006-04-29 Marco Gerards <marco@gnu.org>
46550
46551 * commands/configfile.c (grub_cmd_configfile): Execute the
46552 configfile within its own context.
46553
46554 * include/grub/env.h (grub_env_context_open): New prototype.
46555 (grub_env_context_close): Likewise.
46556
46557 * kern/env.c (grub_env): Removed.
46558 (grub_env_sorted): Likewise.
46559 (grub_env_context): New variable.
46560 (grub_env_var_context): Likewise.
46561 (grub_env_find): Search both the active context and the global
46562 context.
46563 (grub_env_context_open): New function.
46564 (grub_env_context_close): Likewise.
46565 (grub_env_insert): Likewise.
46566 (grub_env_remove): Likewise.
46567 (grub_env_export): Likewise.
46568 (grub_env_set): Changed to use helper functions to avoid code
46569 duplication.
46570 (grub_env_iterate): Rewritten so both the current context and the
46571 global context are being used.
46572
46573 * normal/command.c (export_command): New function.
46574 (grub_command_init): Register the `export' function.
46575
7b455f4d 465762006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
46577
46578 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
46579 explicitly to suppress gcc's warnings.
46580 * fs/fat.c (grub_fat_find_dir): Likewise.
46581 (grub_fat_label): Likewise.
46582 * fs/xfs.c (grub_xfs_read_inode): Likewise.
46583 (grub_xfs_mount): Likewise.
46584 (grub_xfs_label): Likewise.
46585 * fs/affs.c (grub_affs_mount): Likewise.
46586 (grub_affs_label): Likewise.
46587 (grub_affs_iterate_dir): Likewise.
46588 * fs/sfs.c (grub_sfs_mount): Likewise.
46589 (grub_sfs_iterate_dir): Likewise.
46590 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
46591 * fs/hfs.c (grub_hfs_mount): Likewise.
46592 (grub_hfs_cmp_catkeys): Likewise.
46593 (grub_hfs_find_dir): Likewise.
46594 (grub_hfs_dir): Likewise.
46595 (grub_hfs_label): Likewise.
46596 * fs/jfs.c (grub_jfs_mount): Likewise.
46597 (grub_jfs_opendir): Likewise.
46598 (grub_jfs_getent): Likewise.
46599 (grub_jfs_lookup_symlink): Likewise.
46600 (grub_jfs_label): Likewise.
46601 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
46602 (grub_hfsplus_iterate_dir): Likewise.
46603 (grub_hfsplus_btree_iterate_node): Made static.
46604
46605 * util/grub-emu.c (prefix): New variable.
46606 (grub_machine_set_prefix): New function.
46607 (main): Do not set the environment variable "prefix" here. Only
46608 set PREFIX, which is used later by grub_machine_set_prefix.
46609
46610 * include/grub/video.h: Do not include grub/symbol.h.
46611 (grub_video_register): Not exported. This symbol is not defined in
46612 the kernel.
46613 (grub_video_unregister): Likewise.
46614 (grub_video_iterate): Likewise.
46615 (grub_video_setup): Likewise.
46616 (grub_video_restore): Likewise.
46617 (grub_video_get_info): Likewise.
46618 (grub_video_get_blit_format): Likewise.
46619 (grub_video_set_palette): Likewise.
46620 (grub_video_get_palette): Likewise.
46621 (grub_video_set_viewport): Likewise.
46622 (grub_video_get_viewport): Likewise.
46623 (grub_video_map_color): Likewise.
46624 (grub_video_map_rgb): Likewise.
46625 (grub_video_map_rgba): Likewise.
46626 (grub_video_fill_rect): Likewise.
46627 (grub_video_blit_glyph): Likewise.
46628 (grub_video_blit_bitmap): Likewise.
46629 (grub_video_blit_render_target): Likewise.
46630 (grub_video_scroll): Likewise.
46631 (grub_video_swap_buffers): Likewise.
46632 (grub_video_create_render_target): Likewise.
46633 (grub_video_delete_render_target): Likewise.
46634 (grub_video_set_active_render_target): Likewise.
46635
46636 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
46637 Undefined.
46638 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
46639
46640 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
46641 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46642 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46643 instead of $(srcdir)/genkernsyms.sh.
46644
46645 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
46646 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46647 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46648 instead of $(srcdir)/genkernsyms.sh.
46649
46650 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
46651 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46652 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46653 instead of $(srcdir)/genkernsyms.sh.
46654
46655 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
46656 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
46657 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
46658 instead of $(srcdir)/genkernsyms.sh.
46659
46660 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
46661 genkernsyms.sh.
46662
46663 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
46664 genkernsyms.sh.
46665 (gensymlist.sh): New target.
46666 (genkernsyms.sh): Likewise.
46667
46668 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
46669 genkernsyms.sh.in and gensymlist.sh.in.
46670
46671 * genkernsyms.sh: Removed.
46672 * gensymlist.sh: Likewise.
f19dbdb7 46673
7b455f4d 46674 * genkernsyms.sh.in: New file.
46675 * gensymlist.sh.in: Likewise.
46676
1885bb27 466772006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46678
46679 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
46680 clobber "prefix", since we may have already set it manually.
46681
71538dff 466822006-04-25 Hollis Blanchard <hollis@penguinppc.org>
46683
46684 * kern/misc.c (abort): New alias for grub_abort.
46685
2965c7cc 466862006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
46687
46688 A new machine-specific function "grub_machine_set_prefix" is
46689 defined. This is called after loading modules, so that a prefix
46690 initialization can use modules. Also, this change adds an
46691 intensive debugging feature for the memory manager via the
46692 configure option "--enable-mm-debug".
f19dbdb7 46693
2965c7cc 46694 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
46695 PART.LEN.
46696
46697 * kern/sparc64/ieee1275/init.c (abort): Removed.
46698 (grub_stop): Likewise.
46699 (grub_exit): New function.
46700 (grub_set_prefix): Renamed to ...
46701 (grub_machine_set_prefix): ... this.
46702 (grub_machine_init): Do not call grub_set_prefix.
46703
46704 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
46705 (grub_machine_set_prefix): ... this.
46706 (grub_machine_init): Do not call grub_set_prefix.
46707
46708 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
46709 (grub_machine_init): Do not set the prefix here.
46710
46711 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
46712
46713 * kern/efi/init.c: Include grub/mm.h.
46714 (grub_efi_set_prefix): New function.
46715
46716 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
46717 (grub_efi_get_filename): New function.
46718 (grub_print_device_path): Renamed to ...
46719 (grub_efi_print_device_path): ... this.
46720
46721 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
46722 [MM_DEBUG] (grub_realloc): Likewise.
46723 [MM_DEBUG] (grub_free): Likewise.
46724 [MM_DEBUG] (grub_memalign): Likewise.
46725 [MM_DEBUG] (grub_mm_debug): New variable.
46726 [MM_DEBUG] (grub_debug_malloc): New function.
46727 [MM_DEBUG] (grub_debug_free): New function.
46728 [MM_DEBUG] (grub_debug_realloc): New function.
46729 [MM_DEBUG] (grub_debug_memalign): New function.
46730
46731 * kern/misc.c (grub_abort): Print a newline to distinguish
46732 the message.
46733
46734 * kern/main.c (grub_main): Call grub_machine_set_prefix and
46735 grub_set_root_dev after loading modules. This is necessary when
46736 setting a prefix depends on modules.
46737
46738 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
46739 (grub_efi_print_device_path): ... this.
46740 (grub_efi_get_filename): New prototype.
46741 (grub_efi_set_prefix): Likewise.
46742
46743 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
46744 and grub/disk.h.
46745 (grub_efidisk_get_device_handle): New prototype.
46746 (grub_efidisk_get_device_name): Likewise.
46747
46748 * include/grub/mm.h: Include config.h.
46749 (MM_DEBUG): Removed.
46750 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
46751 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
46752 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
46753 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
46754 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
46755 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
46756 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
46757 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
46758 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
46759
46760 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
46761
46762 * disk/efi/efidisk.c: Include grub/partition.h.
46763 (iterate_child_devices): New function.
46764 (add_device): First, compare only last device path nodes, so that
46765 devices are sorted by the types.
46766 (grub_efidisk_get_device_handle): New function.
46767 (grub_efidisk_get_device_name): Likewise.
46768
46769 * configure.ac (--enable-mm-debug): New option to enable the
46770 memory manager debugging feature. This makes the binary much
46771 bigger, so is disabled by default.
46772
9cacaa17 467732006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
46774
46775 Use grub_abort instead of grub_stop, and grub_exit must be
46776 define in each architecture now. Also, this change adds support
46777 for EFI disks.
f19dbdb7 46778
9cacaa17 46779 * util/i386/pc/grub-probefs.c: Include grub/term.h.
46780 (grub_getkey): New function.
46781 (grub_term_get_current): Likewise.
46782
46783 * util/i386/pc/grub-setup.c: Include grub/term.h.
46784 (grub_getkey): New function.
46785 (grub_term_get_current): Likewise.
46786
46787 * util/misc.c (grub_stop): Renamed to ...
46788 (grub_exit): ... this.
46789
46790 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
46791 (grub_exit): ... this.
46792 (grub_machine_init): Use grub_abort instead of abort.
46793 (grub_stop): Removed.
46794
46795 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
46796 abort.
46797
46798 * kern/i386/pc/startup.S (grub_exit): New function.
46799 (cold_reboot): New label.
46800
46801 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
46802 (grub_efi_init): Call grub_efidisk_init.
46803 (grub_efi_fini): Call grub_efidisk_fini.
46804
46805 * kern/efi/efi.c: Include grub/mm.h.
46806 (grub_efi_console_control_guid): Renamed to ...
46807 (console_control_guid): ... this.
46808 (grub_efi_loaded_image_guid): Renamed to ...
46809 (loaded_image_guid): ... this.
46810 (grub_efi_locate_handle): New function.
46811 (grub_efi_open_protocol): Likewise.
46812 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
46813 GRUB_EFI_CONSOLE_CONTROL_GUID.
46814 (grub_efi_exit): Removed.
46815 (grub_stop): Likewise.
46816 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
46817 (grub_exit): New function.
46818 (grub_print_device_path): Likewise.
46819
46820 * kern/rescue.c (grub_rescue_cmd_exit): New function.
46821 (grub_enter_rescue_mode): Register "exit".
46822
46823 * kern/misc.c (grub_real_dprintf): A cosmetic change.
46824 (grub_abort): New function.
46825
46826 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
46827
46828 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
46829
46830 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
46831
46832 * include/grub/efi/efi.h (grub_efi_exit): Removed.
46833 (grub_print_device_path): New prototype.
46834 (grub_efi_locate_handle): Likewise.
46835 (grub_efi_open_protocol): Likewise.
46836
46837 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
46838 * disk/efi/efidisk.c: Likewise.
46839
46840 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
46841
46842 * include/grub/efi/console_control.h
46843 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
46844
46845 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
46846 last 8 bytes as an array.
46847 (GRUB_EFI_DISK_IO_GUID): New macro.
46848 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
46849 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
46850 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
46851 grub_uint8_t.
46852 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
46853 (struct grub_efi_device_path): Rename the member "sub_type" to
46854 "subtype".
46855 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
46856 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
46857 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
46858 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
46859 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
46860 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
46861 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
46862 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
46863 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
46864 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
46865 (struct grub_efi_pci_device_path): New structure.
46866 (grub_efi_pci_device_path_t): New type.
46867 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
46868 (struct grub_efi_pccard_device_path): New structure.
46869 (grub_efi_pccard_device_path_t): New type.
46870 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
46871 (struct grub_efi_memory_mapped_device_path): New structure.
46872 (grub_efi_memory_mapped_device_path_t): New type.
46873 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
46874 (struct grub_efi_vendor_device_path): New structure.
46875 (grub_efi_vendor_device_path_t): New type.
46876 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
46877 (struct grub_efi_controller_device_path): New structure.
46878 (grub_efi_controller_device_path_t): New type.
46879 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
46880 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
46881 (struct grub_efi_acpi_device_path): New structure.
46882 (grub_efi_acpi_device_path_t): New type.
46883 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
46884 (struct grub_efi_expanded_acpi_device_path): New structure.
46885 (grub_efi_expanded_acpi_device_path_t): New type.
46886 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
46887 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
46888 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
46889 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
46890 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
46891 (struct grub_efi_atapi_device_path): New structure.
46892 (grub_efi_atapi_device_path_t): New type.
46893 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
46894 (struct grub_efi_fibre_channel_device_path): New structure.
46895 (grub_efi_fibre_channel_device_path_t): New type.
46896 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
46897 (struct grub_efi_1394_device_path): New structure.
46898 (grub_efi_1394_device_path_t): New type.
46899 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
46900 (struct grub_efi_usb_device_path): New structure.
46901 (grub_efi_usb_device_path_t): New type.
46902 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
46903 (struct grub_efi_usb_class_device_path): New structure.
46904 (grub_efi_usb_class_device_path_t): New type.
46905 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
46906 (struct grub_efi_i2o_device_path): New structure.
46907 (grub_efi_i2o_device_path_t): New type.
46908 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
46909 (struct grub_efi_mac_address_device_path): New structure.
46910 (grub_efi_mac_address_device_path_t): New type.
46911 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
46912 (struct grub_efi_ipv4_device_path): New structure.
46913 (grub_efi_ipv4_device_path_t): New type.
46914 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
46915 (struct grub_efi_ipv6_device_path): New structure.
46916 (grub_efi_ipv6_device_path_t): New type.
46917 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
46918 (struct grub_efi_infiniband_device_path): New structure.
46919 (grub_efi_infiniband_device_path_t): New type.
46920 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
46921 (struct grub_efi_uart_device_path): New structure.
46922 (grub_efi_uart_device_path_t): New type.
46923 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
46924 (struct grub_efi_vendor_messaging_device_path): New structure.
46925 (grub_efi_vendor_messaging_device_path_t): New type.
46926 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
46927 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
46928 (struct grub_efi_hard_drive_device_path): New structure.
46929 (grub_efi_hard_drive_device_path_t): New type.
46930 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
46931 (struct grub_efi_cdrom_device_path): New structure.
46932 (grub_efi_cdrom_device_path_t): New type.
46933 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
46934 (struct grub_efi_vendor_media_device_path): New structure.
46935 (grub_efi_vendor_media_device_path_t): New type.
46936 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
46937 (struct grub_efi_file_path_device_path): New structure.
46938 (grub_efi_file_path_device_path_t): New type.
46939 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
46940 (struct grub_efi_protocol_device_path): New structure.
46941 (grub_efi_protocol_device_path_t): New type.
46942 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
46943 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
46944 (struct grub_efi_bios_device_path): New structure.
46945 (grub_efi_bios_device_path_t): New type.
46946 (struct grub_efi_disk_io): New structure.
46947 (grub_efi_disk_io_t): New type.
46948 (struct grub_efi_block_io_media): New structure.
46949 (grub_efi_block_io_media_t): New type.
46950 (struct grub_efi_block_io): New structure.
46951 (grub_efi_block_io_t): New type.
46952
46953 * include/grub/misc.h (grub_stop): Removed.
46954 (grub_exit): New prototype.
46955 (grub_abort): Likewise.
46956
46957 * include/grub/disk.h (enum grub_disk_dev_id): Added
46958 GRUB_DISK_DEVICE_EFIDISK_ID.
46959
46960 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
46961 disk/efi/efidisk.c.
46962 (kernel_syms.lst): Remove the target if an error occurs.
46963
49986a9f 469642006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
46965
46966 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
46967 as it was simply too buggy.
46968
970d3b8a 469692006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
46970
46971 * kern/misc.c (grub_lltoa): New function.
46972 (grub_vsprintf): Added support for the long long suffix,
46973 i.e. "ll".
46974
ff04ec24 469752006-04-20 Hollis Blanchard <hollis@penguinppc.org>
46976
46977 * Makefile.in (LDFLAGS): Add variable.
46978 (LD): Remove variable.
46979 * configure.ac: Add -m32 to LDFLAGS.
46980 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
46981 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
46982 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
46983 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
46984 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
46985 variables.
46986 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
46987 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
46988 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
46989
37e5e1a4 469902006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
46991
46992 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
46993 length for unknown glyph.
46994
c352d8dd 469952006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
46996
2eab1c0d 46997 Add support for pre-loaded modules into the EFI port.
f19dbdb7 46998
2eab1c0d 46999 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
47000 completely. Accept one more argument DIR. The caller has changed.
47001
47002 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
47003
47004 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
47005 (grub_efi_loaded_image_guid): New variable.
47006 (grub_efi_get_loaded_image): New function.
47007 (grub_arch_modules_addr): Likewise.
47008
47009 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
47010 prototype.
47011
47012 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
47013 (struct grub_efi_loaded_image): New structure.
47014 (grub_efi_loaded_image_t): New type.
47015
470162006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 47017
c352d8dd 47018 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
47019 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
47020 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
47021
6d01d6b4 470222006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
47023
47024 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
47025
976a4ea0 470262006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
47027
47028 * DISTLIST: Added include/grub/efi/console.h,
47029 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
47030 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47031
47032 * include/grub/efi/console.h: New file.
47033 * include/grub/efi/time.h: Likewise.
47034 * include/grub/i386/efi/kernel.h: Likewise.
47035 * kern/efi/init.c: Likewise.
47036 * kern/efi/mm.c: Likewise.
47037 * term/efi/console.c: Likewise.
f19dbdb7 47038
976a4ea0 47039 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
47040 (grub_stop): Removed.
47041 (grub_get_rtc): Likewise.
47042 (grub_machine_init): Simply call grub_efi_init.
47043 (grub_machine_fini): Call grub_efi_fini.
47044
47045 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
47046 (grub_efi_output_string): Removed.
47047 (grub_efi_stall): New function.
47048 (grub_stop): Likewise.
47049 (grub_get_rtc): Likewise.
47050
47051 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
47052 (grub_efi_stall): New prototype.
47053 (grub_efi_allocate_pages): Likewise.
47054 (grub_efi_free_pages): Likewise.
47055 (grub_efi_get_memory_map): Likewise.
47056 (grub_efi_mm_init): Likewise.
47057 (grub_efi_mm_fini): Likewise.
47058 (grub_efi_init): Likewise.
47059 (grub_efi_fini): Likewise.
47060
47061 * include/grub/i386/efi/time.h: Do not include
47062 grub/symbol.h. Include grub/efi/time.h.
47063 (GRUB_TICKS_PER_SECOND): Removed.
47064 (grub_get_rtc): Likewise.
47065
47066 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
47067 Added padding. The EFI spec is buggy.
47068 (GRUB_EFI_BLACK): New macro.
47069 (GRUB_EFI_BLUE): Likewise.
47070 (GRUB_EFI_GREEN): Likewise.
47071 (GRUB_EFI_CYAN): Likewise.
47072 (GRUB_EFI_RED): Likewise.
47073 (GRUB_EFI_MAGENTA): Likewise.
47074 (GRUB_EFI_BROWN): Likewise.
47075 (GRUB_EFI_LIGHTGRAY): Likewise.
47076 (GRUB_EFI_BRIGHT): Likewise.
47077 (GRUB_EFI_DARKGRAY): Likewise.
47078 (GRUB_EFI_LIGHTBLUE): Likewise.
47079 (GRUB_EFI_LIGHTGREEN): Likewise.
47080 (GRUB_EFI_LIGHTCYAN): Likewise.
47081 (GRUB_EFI_LIGHTRED): Likewise.
47082 (GRUB_EFI_LIGHTMAGENTA): Likewise.
47083 (GRUB_EFI_YELLOW): Likewise.
47084 (GRUB_EFI_WHITE): Likewise.
47085 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
47086 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
47087 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
47088 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
47089 (GRUB_EFI_BACKGROUND_RED): Likewise.
47090 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
47091 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
47092 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
47093 (GRUB_EFI_TEXT_ATTR): Likewise.
47094
47095 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
47096 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47097 (kernel_mod_HEADERS): Added efi/time.h.
47098
83709125 470992006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
47100
47101 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
47102 include/grub/efi/api.h, include/grub/efi/console_control.h,
47103 include/grub/efi/efi.h, include/grub/efi/pe32.h,
47104 include/grub/i386/efi/time.h, kern/efi/efi.c,
47105 kern/i386/efi/init.c, kern/i386/efi/startup.S,
47106 and util/i386/efi/grub-mkimage.c.
47107
47108 * Makefile.in (RMKFILES): Added i386-efi.rmk.
47109
47110 * genmk.rb (PModule#rule): Do not export symbols if
47111 #{prefix}_EXPORTS is set to "no".
47112
47113 * conf/i386-efi.mk: New file.
47114 * conf/i386-efi.rmk: Likewise.
47115 * include/grub/efi/api.h: Likewise.
47116 * include/grub/efi/console_control.h: Likewise.
47117 * include/grub/efi/efi.h: Likewise.
47118 * include/grub/efi/pe32.h: Likewise.
47119 * include/grub/i386/efi/time.h: Likewise.
47120 * kern/efi/efi.c: Likewise.
47121 * kern/i386/efi/init.c: Likewise.
47122 * kern/i386/efi/startup.S: Likewise.
47123 * util/i386/efi/grub-mkimage.c: Likewise.
47124
471252006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 47126
47127 * include/grub/script.h: Include <grub/parser.h> and
47128 "grub_script.tab.h".
47129 (struct grub_lexer_param): New struct.
47130 (struct grub_parser_param): Likewise.
47131 (grub_script_create_arglist): Pass the state in an argument.
47132 (grub_script_add_arglist): Likewise.
47133 (grub_script_create_cmdline): Likewise.
47134 (grub_script_create_cmdblock): Likewise.
47135 (grub_script_create_cmdif): Likewise.
47136 (grub_script_create_cmdmenu): Likewise.
47137 (grub_script_add_cmd): Likewise.
47138 (grub_script_arg_add): Likewise.
47139 (grub_script_lexer_ref): Likewise.
47140 (grub_script_lexer_deref): Likewise.
47141 (grub_script_lexer_record_start): Likewise.
47142 (grub_script_lexer_record_stop): Likewise.
47143 (grub_script_mem_record): Likewise.
47144 (grub_script_mem_record_stop): Likewise.
47145 (grub_script_malloc): Likewise.
47146 (grub_script_yylex): Likewise.
47147 (grub_script_yyparse): Likewise.
47148 (grub_script_yyerror): Likewise.
47149 (grub_script_yylex): Likewise.
47150 (grub_script_lexer_init): Return the state.
47151
47152 * normal/lexer.c (grub_script_lexer_state): Removed variable.
47153 (grub_script_lexer_done): Likewise.
47154 (grub_script_lexer_getline): Likewise.
47155 (grub_script_lexer_refs): Likewise.
47156 (script): Likewise.
47157 (newscript): Likewise.
47158 (record): Likewise.
47159 (recording): Likewise.
47160 (recordpos): Likewise.
47161 (recordlen): Likewise.
47162 (grub_script_lexer_init): Return the state instead of setting
47163 global variables.
47164 (grub_script_lexer_ref): Use the newly added argument for state
47165 instead of globals.
47166 (grub_script_lexer_deref): Likewise.
47167 (grub_script_lexer_record_start): Likewise.
47168 (grub_script_lexer_record_stop): Likewise.
47169 (recordchar): Likewise.
47170 (nextchar): Likewise.
47171 (grub_script_yylex2): Likewise.
47172 (grub_script_yylex): Likewise.
47173 (grub_script_yyerror): Likewise.
47174
47175 * normal/parser.y (func_mem): Removed variable.
47176 (menu_entry): Likewise.
47177 (err): Likewise.
47178 (%lex-param): New parser option.
47179 (%parse-param): Likewise.
47180 (script): Always return the AST.
47181 (argument): Pass the state around.
47182 (arguments): Likewise.
47183 (grubcmd): Likewise.
47184 (commands): Likewise.
47185 (function): Likewise.
47186 (menuentry): Likewise.
47187 (if_statement): Likewise.
47188 (if): Likewise.
47189
47190 * normal/script.c (grub_script_memused): Removed variable.
47191 (grub_script_parsed): Likewise.
47192 (grub_script_malloc): Added a state argument. Use that instead of
47193 global variables.
47194 (grub_script_mem_record): Likewise.
47195 (grub_script_mem_record_stop): Likewise.
47196 (grub_script_arg_add): Likewise.
47197 (grub_script_add_arglist): Likewise.
47198 (grub_script_create_cmdline): Likewise.
47199 (grub_script_create_cmdif): Likewise.
47200 (grub_script_create_cmdmenu): Likewise.
47201 (grub_script_add_cmd): Likewise.
47202 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 47203
e2a8c904 472042006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 47205
47206 * normal/command.c (grub_command_init): Remove the title command.
47207
47208 * normal/lexer.c (grub_script_yylex): Renamed from this...
47209 (grub_script_yylex2): ... to this.
47210 (grub_script_yylex): New function. Temporary
47211 introduced to filter some tokens.
47212 (grub_script_yyerror): Print a newline.
47213
47214 * normal/main.c (read_config_file): Output information about the
47215 lines that contain errors. Wait for a key after all lines have
47216 been processed. Don't return an empty menu.
47217
47218 * normal/parser.y (func_mem): Don't initialize.
47219 (menu_entry): Likewise.
47220 (err): New variable.
47221 (script): Don't return anything when an error was encountered.
47222 (ws, returns): Removed rules.
47223 (argument): Disabled concatenated variable support.
47224 (arguments): Remove explicit separators.
47225 (grubcmd): Likewise.
47226 (function): Likewise.
47227 (menuentry): Likewise.
47228 (if): Likewise.
47229 (commands): Likewise. Add error handling.
47230
47231 * normal/script.c (grub_script_create_cmdline): If
47232 `grub_script_parsed' is 0, assume the parser encountered an error.
47233
c9a86192 472342006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
47235
47236 * configure.ac: Add support for EFI. Fix the typo
47237 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
47238
70f3b243 472392006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47240
47241 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
47242 foreign multibyte characters should be shown correctly.
47243
65f201ad 472442006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47245
47246 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
47247 calculation.
47248 (read_config_file): Made it to close file before returning.
47249
b4b93674 472502006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
47251
47252 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
47253 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
47254 video/i386/pc/vbefill.c.
47255
47256 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
47257 video/i386/pc/vbefill.c.
47258
47259 * include/grub/video.h (grub_video_blit_format): New enum.
47260 (grub_video_mode_info): Added new member blit_format.
47261 (grub_video_get_blit_format): New function prototype.
47262
47263 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
47264 function prototype.
47265 (grub_video_vbe_map_rgb): Likewise.
47266 (grub_video_vbe_unmap_color): Likewise.
47267
47268 * include/grub/i386/pc/vbeblit.h: New file.
47269
47270 * include/grub/i386/pc/vbefill.h: New file.
47271
47272 * video/video.c (grub_video_get_blit_format): New function.
47273 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
47274 (grub_video_vbe_map_rgb): Likewise.
47275 (grub_video_vbe_unmap_color): Likewise.
47276
47277 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
47278 optimized fills.
47279 (grub_video_vbe_blit_render_target): Changed to use more optimized
47280 blits.
47281 (grub_video_vbe_setup): Added detection for optimized settings.
47282 (grub_video_vbe_create_render_target): Likewise.
47283
47284 * video/i386/pc/vbeblit.c: New file.
47285
47286 * video/i386/pc/vbefill.c: New file.
47287
c2379b9c 472882006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
47289
47290 * font/manager.c (grub_font_get_glyph): Removed font fixup from
47291 here...
47292
47293 * util/unifont2pff.rb: ... and moved it to here. Improved argument
47294 parsing to support both hex and dec ranges. If filename was missing
47295 show usage information.
47296
bd0d7896 472972006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
47298
47299 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
47300 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
47301
47302 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
47303 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
47304 (video_mod_SOURCES): Added.
47305 (video_mod_CFLAGS): Likewise.
47306 (video_mod_LDFLAGS): Likewise.
47307 (gfxterm_mod_SOURCES): Likewise.
47308 (gfxterm_mod_CFLAGS): Likewise.
47309 (gfxterm_mod_LDFLAGS): Likewise.
47310 (videotest_mod_SOURCES): Likewise.
47311 (videotest_mod_CFLAGS): Likewise.
47312 (videotest_mod_LDFLAGS): Likewise.
47313 (vesafb_mod_SOURCES): Removed.
47314 (vesafb_mod_CFLAGS): Likewise.
47315 (vesafb_mod_LDFLAGS): Likewise.
47316 (vga_mod_SOURCES): Likewise.
47317 (vga_mod_CFLAGS): Likewise.
47318 (vga_mod_LDFLAGS): Likewise.
47319
47320 * commands/videotest.c: New file.
47321
47322 * font/manager.c (fill_with_default_glyph): Modified to use
47323 grub_font_glyph.
47324 (grub_font_get_glyph): Likewise.
47325 (fontmanager): Renamed from this...
47326 (font_manager): ... to this.
47327
47328 * include/grub/font.h (grub_font_glyph): Added new structure.
47329 (grub_font_get_glyph): Modified to use grub_font_glyph.
47330
47331 * include/grub/misc.h (grub_abs): Added as inline function.
47332
47333 * include/grub/video.h: New file.
47334
47335 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
47336 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
47337 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
47338 (grub_vbe_get_controller_info): Renamed from this...
47339 (grub_vbe_bios_get_controller_info): ... to this.
47340 (grub_vbe_get_mode_info): Renamed from this...
47341 (grub_vbe_bios_get_mode_info): ... to this.
47342 (grub_vbe_set_mode): Renamed from this...
47343 (grub_vbe_bios_set_mode): ... to this.
47344 (grub_vbe_get_mode): Renamed from this...
47345 (grub_vbe_bios_get_mode): ... to this.
47346 (grub_vbe_set_memory_window): Renamed from this...
47347 (grub_vbe_bios_set_memory_window): ... to this.
47348 (grub_vbe_get_memory_window): Renamed from this...
47349 (grub_vbe_bios_get_memory_window): ... to this.
47350 (grub_vbe_set_scanline_length): Renamed from this...
47351 (grub_vbe_set_scanline_length): ... to this.
47352 (grub_vbe_get_scanline_length): Renamed from this...
47353 (grub_vbe_bios_get_scanline_length): ... to this.
47354 (grub_vbe_set_display_start): Renamed from this...
47355 (grub_vbe_bios_set_display_start): ... to this.
47356 (grub_vbe_get_display_start): Renamed from this...
47357 (grub_vbe_bios_get_display_start): ... to this.
47358 (grub_vbe_set_palette_data): Renamed from this...
47359 (grub_vbe_bios_set_palette_data): ... to this.
47360 (grub_vbe_set_pixel_rgb): Removed.
47361 (grub_vbe_set_pixel_index): Likewise.
47362
47363 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
47364 from this...
47365 (grub_vbe_bios_get_controller_info): ... to this.
47366 (grub_vbe_get_mode_info): Renamed from this...
47367 (grub_vbe_bios_get_mode_info): ... to this.
47368 (grub_vbe_set_mode): Renamed from this...
47369 (grub_vbe_bios_set_mode): ... to this.
47370 (grub_vbe_get_mode): Renamed from this...
47371 (grub_vbe_bios_get_mode): ... to this.
47372 (grub_vbe_set_memory_window): Renamed from this...
47373 (grub_vbe_bios_set_memory_window): ... to this.
47374 (grub_vbe_get_memory_window): Renamed from this...
47375 (grub_vbe_bios_get_memory_window): ... to this.
47376 (grub_vbe_set_scanline_length): Renamed from this...
47377 (grub_vbe_set_scanline_length): ... to this.
47378 (grub_vbe_get_scanline_length): Renamed from this...
47379 (grub_vbe_bios_get_scanline_length): ... to this.
47380 (grub_vbe_set_display_start): Renamed from this...
47381 (grub_vbe_bios_set_display_start): ... to this.
47382 (grub_vbe_get_display_start): Renamed from this...
47383 (grub_vbe_bios_get_display_start): ... to this.
47384 (grub_vbe_set_palette_data): Renamed from this...
47385 (grub_vbe_bios_set_palette_data): ... to this.
47386 (grub_vbe_bios_get_controller_info): Fixed problem with registers
47387 getting corrupted after calling it. Added more pushes and pops.
47388 (grub_vbe_bios_set_mode): Likewise.
47389 (grub_vbe_bios_get_mode): Likewise.
47390 (grub_vbe_bios_get_memory_window): Likewise.
47391 (grub_vbe_bios_set_scanline_length): Likewise.
47392 (grub_vbe_bios_get_scanline_length): Likewise.
47393 (grub_vbe_bios_get_display_start): Likewise.
47394 (grub_vbe_bios_set_palette_data): Likewise.
47395
47396 * normal/cmdline.c (cl_set_pos): Refresh the screen.
47397 (cl_insert): Likewise.
47398 (cl_delete): Likewise.
47399
47400 * term/gfxterm.c: New file.
47401
47402 * term/i386/pc/vesafb.c: Removed file.
47403
47404 * video/video.c: New file.
47405
47406 * video/i386/pc/vbe.c (real2pm): Added new function.
47407 (grub_video_vbe_draw_pixel): Likewise.
47408 (grub_video_vbe_get_video_ptr): Likewise.
47409 (grub_video_vbe_get_pixel): Likewise
47410 (grub_video_vbe_init): Likewise.
47411 (grub_video_vbe_fini): Likewise.
47412 (grub_video_vbe_setup): Likewise.
47413 (grub_video_vbe_get_info): Likewise.
47414 (grub_video_vbe_set_palette): Likewise.
47415 (grub_video_vbe_get_palette): Likewise.
47416 (grub_video_vbe_set_viewport): Likewise.
47417 (grub_video_vbe_get_viewport): Likewise.
47418 (grub_video_vbe_map_color): Likewise.
47419 (grub_video_vbe_map_rgb): Likewise.
47420 (grub_video_vbe_map_rgba): Likewise.
47421 (grub_video_vbe_unmap_color): Likewise.
47422 (grub_video_vbe_fill_rect): Likewise.
47423 (grub_video_vbe_blit_glyph): Likewise.
47424 (grub_video_vbe_blit_bitmap): Likewise.
47425 (grub_video_vbe_blit_render_target): Likewise.
47426 (grub_video_vbe_scroll): Likewise.
47427 (grub_video_vbe_swap_buffers): Likewise.
47428 (grub_video_vbe_create_render_target): Likewise.
47429 (grub_video_vbe_delete_render_target): Likewise.
47430 (grub_video_vbe_set_active_render_target): Likewise.
47431 (grub_vbe_set_pixel_rgb): Remove function.
47432 (grub_vbe_set_pixel_index): Likewise.
47433 (index_color_mode): Remove static variable.
47434 (active_mode): Likewise.
47435 (framebuffer): Likewise.
47436 (bytes_per_scan_line): Likewise.
47437 (grub_video_vbe_adapter): Added new static variable.
47438 (framebuffer): Likewise.
47439 (render_target): Likewise.
47440 (initial_mode): Likewise.
47441 (mode_in_use): Likewise.
47442 (mode_list): Likewise.
47443
5f97350b 474442006-03-10 Marco Gerards <marco@gnu.org>
47445
47446 * configure.ac (AC_INIT): Bumped to 1.93.
47447
47448 * DISTLIST: Added `include/grub/hfs.h'.
47449
a3c5c6f8 474502006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
47451
47452 * boot/i386/pc/boot.S (general_error): Before looping, try INT
47453 18H, which might help the BIOS falling back to next boot media.
47454
6de53d26 474552006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
47456
47457 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
47458 Poe Chen <poe.poechen@gmail.com>.
47459
77c4a393 474602006-01-17 Marco Gerards <marco@gnu.org>
47461
47462 * include/grub/normal.h: Include <grub/script.h>.
47463 (grub_command_list): Removed struct.
47464 (grub_command_list_t): Removed type.
47465 (grub_menu_entry): Remove members `num' and `command_list'. Add
47466 members `commands' and `sourcecode'.
47467 * include/grub/script.h: Add inclusion guards.
47468 (grub_script_cmd_menuentry): New struct.
47469 (grub_script_execute_menuentry): New prototype.
47470 (grub_script_lexer_record_start): Likewise.
47471 (grub_script_lexer_record_stop): Likewise.
47472 * normal/execute.c (grub_script_execute_menuentry): New function.
47473 * normal/lexer.c (record, recording, recordpos, recordlen): New
47474 variables.
47475 (grub_script_lexer_record_start): New function.
47476 (grub_script_lexer_record_stop): Likewise.
47477 (recordchar): Likewise.
47478 (nextchar): Likewise.
47479 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
47480 2048 as the buffer size. Add the tokens `menuentry' and `@'.
47481 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
47482 (current_menu): New variable.
47483 (free_menu): Mainly rewritten.
47484 (grub_normal_menu_addentry): New function.
47485 (read_config_file): Rewritten.
47486 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 47487 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 47488 the menu entry.
47489 (run): Mainly rewritten.
47490 * normal/parser.y (menu_entry): New variable.
47491 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
47492 (menuentry): New rule.
47493 (command): Add `menuentry'.
47494 (if_statement): Allow additional returns before `fi'.
47495 * normal/script.c (grub_script_create_cmdmenu): New function.
47496
144f1f98 474972006-01-03 Marco Gerards <marco@gnu.org>
47498
47499 * INSTALL: GNU Bison is required.
47500 * configure.ac: Rewritten the test to detect Bison.
47501 * Makefile.in (YACC): New variable. Reported by Xun Sun
47502 <xun.sun.cn@gmail.com>.
47503
af4b2d89 475042006-01-03 Marco Gerards <marco@gnu.org>
47505
47506 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
47507 the HFS+ filesystem to filesystem blocks.
47508 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
47509 GCC warning is silenced.
47510
15643b71 475112006-01-03 Marco Gerards <marco@gnu.org>
47512
47513 * partmap/apple.c (apple_partition_map_iterate): Convert the data
47514 read from disk from big endian to host byte order.
47515
00905879 475162006-01-03 Hollis Blanchard <hollis@penguinppc.org>
47517
47518 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
47519 documentation.
47520 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
47521 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
47522 embedded HFS+ filesystem.
47523 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
47524 (grub_hfs_sblock): Move from here...
47525 * include/grub/hfs.h: To here... New file.
47526 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
47527 documentation.
47528 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
47529 New macros.
47530 (grub_hfsplus_volheader): Change type of member `magic' to
47531 `grub_uint16_t'.
47532 (grub_hfsplus_data): Add new member `embedded_offset'.
47533 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
47534 returned block.
47535 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
47536 Calculate the offset.
47537
8899bc3e 475382005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47539
47540 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
47541 Removed.
47542 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
47543
ae8c0277 475442005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47545
47546 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
47547 ENV->NAME is NULL after allocating ENV->VALUE.
47548
07084456 475492005-12-25 Marco Gerards <marco@gnu.org>
47550
47551 * kern/env.c (grub_env_set): Rewritten the error handling code.
47552
4750f5f1 475532005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47554
47555 * geninit.sh: Made more robust, and more portable.
47556
50214199 475572005-12-25 Marco Gerards <marco@gnu.org>
47558
47559 Add support for Apple HFS+ filesystems.
f19dbdb7 47560
50214199 47561 * fs/hfsplus.c: New file.
47562
47563 * DISTLIST: Added `fs/hfsplus.c'.
47564
47565 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
47566 (hfsplus_mod_SOURCES): New variable.
47567 (hfsplus_mod_CFLAGS): Likewise.
47568 (hfsplus_mod_LDFLAGS): Likewise.
47569 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
47570 (grub_setup_SOURCES): Likewise.
47571 (grub_mkdevicemap_SOURCES): Likewise.
47572 (grub_emu_SOURCES): Likewise.
47573 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47574
47575 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
47576
47577 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
47578
befaed6c 475792005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47580
47581 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
47582 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
47583 include/grub/parser.h, include/grub/script.h, kern/parser.c,
47584 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
47585 normal/lexer.c, normal/parser.y, normal/script.c, and
47586 partmap/gpt.c.
47587 Removed kern/sparc64/cache.c.
47588
47589 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
47590 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
47591 grub_emu_init.c.
47592
47593 * configure.ac (AC_INIT): Bumped to 1.92.
47594
6a124103 475952005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
47596
47597 * kern/err.c (grub_error_push): Added new function to support error
47598 stacks.
47599 (grub_error_pop): Likewise.
47600 (grub_error_stack_items): New local variable to support error stacks.
47601 (grub_error_stack_pos): Likewise.
47602 (grub_error_stack_assert): Likewise.
47603 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
47604 stack depth.
47605 (grub_print_error): Added support to print errors from error stack.
47606
47607 * include/grub/err.h (grub_error_push): Added function prototype.
47608 (grub_error_pop): Likewise.
47609
be973c1b 476102005-12-09 Hollis Blanchard <hollis@penguinppc.org>
47611
47612 * configure.ac: Accept `powerpc64' as host_cpu.
47613 (amd64): Rename to `biarch32'.
47614
47615 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
47616 non-cacheline-aligned addresses.
47617
47618 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
47619 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
47620 if `size' is non-zero.
47621
b04216ab 476222005-12-03 Marco Gerards <mgerards@xs4all.nl>
47623
47624 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
47625 and `cd' to make sure the filename is not prefixed with a
47626 directory name.
47627 (pkgdata_MODULES): Add `gpt.mod'.
47628 (gpt_mod_SOURCES): New variable.
47629 (gpt_mod_CFLAGS): Likewise.
47630 (gpt_mod_LDFLAGS): Likewise.
47631
47632 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
47633
47634 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
47635 New macro.
47636
47637 * partmap/gpt.c: New file.
47638
47639 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
47640 GPT partition map is detected.
47641
41730ed9 476422005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
47643
47644 * commands/i386/pc/play.c: New file.
47645 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
47646 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
47647 macros.
f19dbdb7 47648
95dc3643 476492005-11-27 Marco Gerards <mgerards@xs4all.nl>
47650
47651 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
47652 ((unused))' to silence gcc warning.
47653
1569ec51 476542005-11-26 Hollis Blanchard <hollis@penguinppc.org>
47655
47656 * configure.ac: Correct `AC_PROG_YACC' test.
47657
9abde152 476582005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47659
47660 * util/powerpc/ieee1275/grub-install.in: Run the mount point
47661 check before installing files.
47662
44b83271 476632005-11-22 Mike Small <smallm@panix.com>
47664
47665 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
47666 number regex so multidigit numbers are recognized correctly.
47667
476682005-11-22 Mike Small <smallm@panix.com>
47669
47670 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
47671 debugging message before attempting to claim memory.
47672 (grub_rescue_cmd_initrd): Add a claim debugging message and try
47673 multiple addresses in case of failure.
47674
9c12956b 476752005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47676
47677 * term/tparm.c (get_space): Remove empty `if' statement.
47678
47679 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
47680
47681 * kern/parser.c (check_varstate): Rename `state' to 's'.
47682
aeaf81d9 476832005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47684
47685 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
47686 variable definitions to the beginning of each function. Sort stack
47687 variables by size.
47688 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
47689 `buf' argument to `char *'.
47690
79bbb63f 476912005-11-22 Hollis Blanchard <hollis@penguinppc.org>
47692
47693 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
47694 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 47695 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 47696 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47697 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47698 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47699 configfile.mod, search.mod, gzio.mod and test.mod.
47700 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47701 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47702 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47703 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47704 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47705 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47706 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47707 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47708 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47709 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47710 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47711 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47712 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47713 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47714 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47715 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47716 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47717 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47718 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47719 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47720 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47721 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47722 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
47723
47724 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
47725 `grep --include'.
47726 (pkgdata_MODULES): Add test.mod.
47727
233b1628 477282005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47729
47730 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
47731 appending to variables with "+=".
47732 (PModule): Use full pathname to generate *.lst filenames.
47733
47734 * Makefile.in: Fixed list rules moved from genmk.rb.
47735 (.DELETE_ON_ERROR): New special target.
47736 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
47737
47738 * conf/i386-pc.rmk: Include conf/common.mk.
47739 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 47740 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 47741 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
47742 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
47743 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
47744 configfile.mod, search.mod, gzio.mod and test.mod.
47745 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
47746 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
47747 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
47748 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
47749 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
47750 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
47751 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
47752 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
47753 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
47754 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
47755 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
47756 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
47757 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
47758 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
47759 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
47760 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
47761 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47762 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
47763 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
47764 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
47765 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
47766 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
47767 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
47768 here...
47769 * conf/common.rmk: ... to here. New file.
47770
47771 * conf/common.mk: New file.
47772
16f820c8 477732005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
47774
47775 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
47776 (grub_script.tab.c): ... here.
47777
47778 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
47779 (grub_script.tab.c): ... here.
47780
47781 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
47782 (grub_script.tab.c): ... here.
47783
47784 * normal/command.c (grub_command_find): Fixed a memory leak of
47785 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
47786
63ba1554 477872005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47788
47789 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
47790 "@" which marks the start of a comment on ARM.
47791 (VARIABLE): Likewise.
47792
7f67dc13 477932005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47794
79bbb63f 47795 Add support for Linux/ADFS partition tables.
7f67dc13 47796
47797 * partmap/acorn.c: New file.
47798
47799 * include/grub/acorn_filecore.h: Likewise.
47800
47801 * DISTLIST: Added `partmap/acorn.c' and
47802 `include/grub/acorn_filecore.h'.
f19dbdb7 47803
7f67dc13 47804 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47805 `partmap/acorn.c'.
47806 (pkgdata_MODULES): Add `acorn.mod'.
47807 (acorn_mod_SOURCES): New variable.
47808 (acorn_mod_CFLAGS): Likewise.
47809
47810 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47811 `partmap/acorn.c'.
47812 (pkgdata_MODULES): Add `acorn.mod'.
47813 (acorn_mod_SOURCES): New variable.
47814 (acorn_mod_CFLAGS): Likewise.
47815
47816 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
47817 (pkgdata_MODULES): Add `acorn.mod'.
47818 (acorn_mod_SOURCES): New variable.
47819 (acorn_mod_CFLAGS): Likewise.
47820 (acorn_mod_LDFLAGS): Likewise.
47821
47822 * include/types.h (grub_disk_addr_t): New typedef.
47823
6d099807 478242005-11-13 Marco Gerards <mgerards@xs4all.nl>
47825
47826 * geninit.sh: New file.
47827
47828 * geninitheader.sh: Likewise.
47829
47830 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
47831 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
47832 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
47833 * commands/configfile.c (grub_configfile_init)
47834 (grub_configfile_fini): Likewise.
47835 * commands/default.c (grub_default_init, grub_default_fini):
47836 Likewise.
47837 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
47838 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
47839 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
47840 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
47841 Likewise.
47842 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
47843 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
47844 Likewise.
47845 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 47846 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 47847 Likewise.
47848 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
47849 Likewise.
fe6b695a 47850 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 47851 Likewise.
47852 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
47853 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
47854 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
47855 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
47856 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
47857 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
47858 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
47859 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
47860 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
47861 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
47862 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
47863 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
47864 * partmap/amiga.c (grub_amiga_partition_map_init)
47865 (grub_amiga_partition_map_fini): Likewise.
47866 * partmap/apple.c (grub_apple_partition_map_init)
47867 (grub_apple_partition_map_fini): Likewise.
47868 * partmap/pc.c (grub_pc_partition_map_init)
47869 (grub_pc_partition_map_fini): Likewise.
47870 * partmap/sun.c (grub_sun_partition_map_init,
47871 grub_sun_partition_map_fini): Likewise.
47872 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
47873 Likewise.
47874
47875 * util/grub-emu.c: Include <grub_modules_init.h>.
47876 (main): Don't initialize and de-initialize any modules directly,
47877 use `grub_init_all' and `grub_fini_all' instead.
47878
47879 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
47880 `grub_vesafb_mod_init'.
47881 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
47882 all users.
47883 * term/i386/pc/vga.c (grub_vga_init): Renamed to
47884 `grub_vga_mod_init'. Updated all users.
47885 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 47886
6d099807 47887 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
47888 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
47889 rules.
47890
47891 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
47892 Generate a function to initialize the module in utilities.
47893 Updated all callers.
47894 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
47895 initialize the module in utilities. Updated all callers.
47896
9046bcf0 478972005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47898
47899 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
47900 escape sequence and a literal ^L to clear the screen.
47901
47902 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
47903 when returning from Open Firmware.
47904
d13ea639 479052005-11-09 Hollis Blanchard <hollis@penguinppc.org>
47906
47907 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
47908 (grub_ofconsole_height): Likewise.
47909 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
47910 manually insert a '\n'.
47911 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
47912 `grub_ofconsole_height'. Return early if these are already set.
47913
a8fcf206 479142005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
47915
47916 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
47917 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
47918 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
47919 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
47920 and `normal/script.c'.
47921 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47922 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47923 (test_mod_SOURCES): New variable.
47924 (test_mod_CFLAGS): Likewise.
47925 (test_mod_LDFLAGS): Likewise.
47926 (pkgdata_MODULES): Add `test.mod'.
47927 (grub_script.tab.c): New rule.
47928 (grub_script.tab.h): Likewise.
47929
b6b32745 479302005-11-07 Marco Gerards <mgerards@xs4all.nl>
47931
47932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47933 `commands/test.c', `normal/execute.c', `normal/lexer.c',
47934 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47935 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47936 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
47937 (test_mod_SOURCES): New variable.
47938 (test_mod_CFLAGS): Likewise.
47939 (pkgdata_MODULES): Add `test.mod'.
47940 (grub_script.tab.c): New rule.
47941 (grub_script.tab.h): Likewise.
47942
daac212a 479432005-11-06 Marco Gerards <mgerards@xs4all.nl>
47944
47945 Add initial scripting support.
47946
47947 * commands/test.c: New file.
47948 * include/grub/script.h: Likewise.
47949 * normal/execute.c: Likewise.
47950 * normal/function.c: Likewise.
47951 * normal/lexer.c: Likewise.
47952 * normal/parser.y: Likewise.
47953 * normal/script.c: Likewise.
47954
47955 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 47956
daac212a 47957 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
47958 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
47959 `normal/function.c' and `normal/script.c'.
47960 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
47961 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 47962 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
47963 variables.
daac212a 47964 (pkgdata_MODULES): Add `test.mod'.
47965 (grub_script.tab.c): New rule.
47966 (grub_script.tab.h): Likewise.
47967
47968 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
47969
47970 * include/grub/normal.h (grub_test_init): New prototype.
47971 (grub_test_fini): Likewise.
f19dbdb7 47972
daac212a 47973 * normal/command.c: Include <grub/script.h>.
47974 (grub_command_execute): Rewritten.
f19dbdb7 47975
daac212a 47976 * util/grub-emu.c (main): Call `grub_test_init' and
47977 `grub_test_fini'.
47978
77500b2b 479792005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47980
47981 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
47982 to 0.
47983 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
47984 there are no pending characters.
47985
e45deb9e 479862005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47987
47988 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
47989 `grub_strndup' to drop device arguments. Replace unnecessary
47990 `grub_strndup' with `grub_strdup'.
47991
4ce32619 479922005-11-03 Hollis Blanchard <hollis@penguinppc.org>
47993
47994 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
47995 `debug' environment variable has been set.
47996
479972005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 47998
4ce32619 47999 * Makefile.in (install-local): Use $(DATA).
48000 (uninstall): Likewise.
48001 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
48002 (sbin_UTILITIES): ... to here.
48003 (sbin_SCRIPTS): New variable.
48004 (grub_install_SOURCES): New variable.
48005 * util/powerpc/ieee1275/grub-install.in: New file.
48006 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
48007 variable.
48008 (add_segments): Call `grub_util_get_path'.
48009
25fe6f03 480102005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48011
48012 From Timothy Baldwin:
48013 * commands/ls.c (grub_ls_list_files): Close FILE with
48014 grub_file_close.
48015 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
48016
04ccf3ec 480172005-10-24 Marco Gerards <mgerards@xs4all.nl>
48018
48019 * include/grub/parser.h: New file.
48020
48021 * kern/parser.c: Likewise.
48022
48023 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
48024 (grub_setup_SOURCES): Likewise.
48025 (grub_probefs_SOURCES): Likewise.
48026 (grub_emu_SOURCES): Likewise.
48027 (kernel_img_HEADERS): Add `parser.h'.
48028
48029 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48030 (grub_emu_SOURCES): Add `kern/parser.c'.
48031 (grubof_SOURCES): Likewise.
48032
48033 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48034 (grubof_SOURCES): Add `kern/parser.c'.
48035
48036 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
48037
48038 * kern/misc.c (grub_split_cmdline): Removed function.
48039
48040 * kern/rescue.c: Include <grub/parser.h>.
48041 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
48042 of `grub_split_cmdline'.
48043
48044 * normal/command.c: Include <grub/parser.h>.
48045 (grub_command_execute): Use `grub_parser_split_cmdline' instead
48046 of `grub_split_cmdline'.
48047
48048 * normal/completion.c: Include <grub/parser.h>.
48049 (cmdline_state): New variable.
48050 (iterate_dir): End the filename with a quote depending on the
48051 command line state.
48052 (get_state): new function.
48053 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
48054 split the arguments and determine the current argument. When the
48055 argument string is not quoted, escape all spaces.
48056
6d8f4b0e 480572005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48058
48059 * normal/sparc64/setjmp.S: New file.
48060
15cf03ed 480612005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48062
48063 * include/grub/sparc64/libgcc.h: New file.
48064 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
48065 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
48066 normal/sparc64/setjmp.c.
48067
03e8661a 480682005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48069
48070 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
48071 * kern/sparc64/cache.S: New file.
48072 * kern/sparc64/cache.c: Removed.
48073 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
48074 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
48075 -mtune=ultrasparc.
48076 (COMMON_LDFLAGS): Add -melf64_sparc.
48077 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
48078 (grubof_SOURCES): Use cache.S instead of cache.c.
48079 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
48080 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
48081 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
48082 commented though.
48083 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
48084 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
48085 (linux_mod_CFLAGS): Commented out.
48086 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
48087 out because module isn't built.
48088 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
48089 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
48090 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
48091 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
48092 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
48093 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48094 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48095 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
48096 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
48097 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
48098 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48099 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48100 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
48101 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
48102
34eeec8a 481032005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
48104
48105 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
48106 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
48107 longer, because HFS should not be used on PC.
48108
708367a3 481092005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48110
48111 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
48112 consistently within the loop.
48113
6fa1251a 481142005-10-15 Marco Gerards <mgerards@xs4all.nl>
48115
48116 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
48117 directory can not be read.
48118
4801580b 481192005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48120
48121 * configure.ac (AC_INIT): Increase the version number to 1.91.
48122
48123 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
48124 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
48125 term/i386/pc/serial.c.
48126
219ad426 481272005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48128
48129 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
48130 file size must be permitted.
48131
48132 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
48133 between %ah and %al.
48134
688e5699 481352005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48136
48137 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
48138 grub_uint64_t.
48139 Call the hook with a NUL-terminated filename.
48140 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
48141 grub_cpu_to_be32.
48142
48143 * kern/term.c (cursor_state): New variable.
48144 (grub_term_set_current): Reset the cursor state on a new
48145 terminal.
48146 (grub_setcursor): Rewritten to use CURSOR_STATE.
48147 (grub_getcursor): New function.
48148
48149 * include/grub/term.h (grub_getcursor): New prototype.
48150
48151 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
48152 integers on ARM. Reported by Timothy Baldwin
48153 <T.E.Baldwin99@members.leeds.ac.uk>.
48154
bb34586c 481552005-10-11 Marco Gerards <mgerards@xs4all.nl>
48156
48157 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
48158 allocated.
48159 (grub_sfs_dir): Likewise.
48160
9a909877 481612005-10-09 Marco Gerards <mgerards@xs4all.nl>
48162
48163 Add support for the SFS filesystem.
48164
48165 * fs/sfs.c: New file.
48166
48167 * DISTLIST: Added `fs/sfs.c'.
48168
48169 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
48170 (grub_probefs_SOURCES): Likewise.
48171 (grub_emu_SOURCES): Likewise.
48172 (pkgdata_MODULES): Add `sfs.mod'.
48173 (sfs_mod_SOURCES): New variable.
48174 (sfs_mod_CFLAGS): Likewise.
48175 (sfs_mod_LDFLAGS): Likewise.
48176
48177 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
48178 (pkgdata_MODULES): Add `sfs.mod'.
48179 (sfs_mod_SOURCES): New variable.
48180 (sfs_mod_CFLAGS): Likewise.
48181
48182 * util/grub-emu.c (main): Call `grub_sfs_init' and
48183 `grub_sfs_fini'.
48184
48185 * include/grub/fs.h (grub_sfs_init): New prototype.
48186 (grub_sfs_fini): Likewise.
48187
57bdbde3 481882005-10-07 Marco Gerards <mgerards@xs4all.nl>
48189
48190 Add support for the AFFS filesystem.
48191
48192 * fs/affs.c: New file.
48193
48194 * DISTLIST: Added `fs/affs.c'.
48195
48196 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
48197 (grub_probefs_SOURCES): Likewise.
48198 (grub_emu_SOURCES): Likewise.
48199 (pkgdata_MODULES): Add `affs.mod'.
48200 (affs_mod_SOURCES): New variable.
48201 (affs_mod_CFLAGS): Likewise.
48202 (affs_mod_LDFLAGS): Likewise.
48203
48204 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
48205 (pkgdata_MODULES): Add `affs.mod'.
48206 (affs_mod_SOURCES): New variable.
48207 (affs_mod_CFLAGS): Likewise.
48208
48209 * util/grub-emu.c (main): Call `grub_affs_init' and
48210 `grub_affs_fini'.
48211
48212 * include/grub/fs.h (grub_affs_init): New prototype.
48213 (grub_affs_fini): Likewise.
48214
047b67e0 482152005-10-01 Marco Gerards <mgerards@xs4all.nl>
48216
48217 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
48218
59b8208a 482192005-10-01 Marco Gerards <mgerards@xs4all.nl>
48220
48221 * configure.ac: Accept `x86_64' as host_cpu. In that case add
48222 `-m32' to CFLAGS.
48223
48224 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
48225 linking.
f19dbdb7 48226
59b8208a 48227 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
48228 (COMMON_LDFLAGS): New variable.
48229 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
48230 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
48231 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
48232 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
48233 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
48234 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
48235 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
48236 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
48237 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
48238 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
48239 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48240 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48241 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
48242 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
48243 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
48244 variables.
48245 (normal_mod_ASFLAGS): Add `-m32'.
48246
48247 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
48248 (grub_host_size_t, grub_host_ssize_t): New types.
48249 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 48250 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 48251 `GRUB_HOST_SIZEOF_VOID_P'.
48252
48253 * include/grub/kernel.h (struct grub_module_header): Type of
48254 member offset changed to `grub_host_off_t'. Type of member size
48255 changed to `grub_host_size_t'.
48256 (struct grub_module_info): Type of member offset changed to
48257 `grub_host_off_t'. Type of member size changed to
48258 `grub_host_size_t'.
48259
b4093103 482602005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
48261
48262 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 48263
b4093103 48264 * kern/i386/pc/startup.S (multiboot_header): New label.
48265 (multiboot_entry): Likewise.
48266 (multiboot_trampoline): Likewise.
48267
48268 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48269 Increased to 0x4A0.
48270
48271 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
48272 put parentheses after a question mark.
48273 [!GRUB_UTIL] (my_mod): New variable.
48274
48275 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
48276
b2499b29 482772005-09-28 Marco Gerards <mgerards@xs4all.nl>
48278
48279 Adds support for the XFS filesystem. Btrees are not supported
48280 yet.
48281
48282 * fs/xfs.c: New file.
48283
48284 * DISTLIST: Added `fs/xfs.c'.
48285
48286 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
48287 (grub_probefs_SOURCES): Likewise.
48288 (grub_emu_SOURCES): Likewise.
48289 (pkgdata_MODULES): Add `xfs.mod'.
48290 (xfs_mod_SOURCES): New variable.
48291 (xfs_mod_CFLAGS): Likewise.
48292
48293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
48294 (pkgdata_MODULES): Add `xfs.mod'.
48295 (xfs_mod_SOURCES): New variable.
48296 (xfs_mod_CFLAGS): Likewise.
48297
48298 * util/grub-emu.c (main): Call `grub_xfs_init' and
48299 `grub_xfs_fini'.
48300
48301 * include/grub/fs.h (grub_xfs_init): New prototype.
48302 (grub_xfs_fini): Likewise.
48303
f19dbdb7 48304
83d37a62 483052005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
48306
48307 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
48308 color modes, allow greater than 16 colors to be configured as
48309 a default palette.
48310
47d2d65e 483112005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
48312
48313 * normal/completion.c (complete_arguments): Add the qualifier
48314 const into OPTIONS.
48315
48316 From Omniflux <omniflux+lists@omniflux.com>:
48317 * include/grub/terminfo.h: New file.
48318 * include/grub/tparm.h: Likewise.
48319 * include/grub/i386/pc/serial.h: Likewise.
48320 * term/terminfo.c: Likewise.
48321 * term/tparm.c: Likewise.
48322 * term/i386/pc/serial.c: Likewise.
48323 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
48324 serial.mod.
48325 (terminfo_mod_SOURCES): New variable.
48326 (terminfo_mod_CFLAGS): Likewise.
48327 (serial_mod_SOURCES): Likewise.
48328 (serial_mod_CFLAGS): Likewise.
48329
48b671ff 483302005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
48331
48332 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
48333 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
48334 and kern/powerpc/ieee1275/cmain.c, respectively.
48335
48336 * boot/powerpc/ieee1275/crt0.S: Moved to ...
48337 * kern/powerpc/ieee1275/crt0.S: ... here.
48338
48339 * boot/powerpc/ieee1275/cmain.c: Moved to ...
48340 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 48341
48b671ff 48342 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
48343 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
48344 instead of boot/powerpc/ieee1275/crt0.S and
48345 boot/powerpc/ieee1275/cmain.c, respectively.
48346
48347 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
48348 sectors. It was not used anyway.
48349
09fc77a7 483502005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48351
48352 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
48353 `unused parameter' warning.
48354
003789c7 483552005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48356
48357 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
48358 function.
48359 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
48360 getcharwidth.
48361
67f44c86 483622005-08-28 Marco Gerards <metgerards@student.han.nl>
48363
48364 * include/grub/normal.h (enum grub_completion_type): Added
48365 `GRUB_COMPLETION_TYPE_ARGUMENT'.
48366
48367 * normal/cmdline.c (print_completion): Handle
48368 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
48369 * normal/menu_entry.c (store_completion): Likewise.
48370
48371 * normal/completion.c (complete_arguments): New function.
48372 (grub_normal_do_completion): Call `complete_arguments' when the
48373 current words start with a dash.
48374
0b5abe02 483752005-08-27 Marco Gerards <metgerards@student.han.nl>
48376
48377 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
48378 `gzio.mod' instead of `io.mod').
48379
d9864ee1 483802005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
48381
48382 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
48383 (DISTDIRS): Added io and video.
48384 Rewrite the search routine to make an output consistently.
48385
48386 * DISTLIST: Added conf/sparc64-ieee1275.mk,
48387 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
48388 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
48389 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
48390 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
48391 util/powerpc/ieee1275/misc.c.
f19dbdb7 48392
d9864ee1 48393 * include/grub/gzio.h: New file.
48394 * io/gzio.c: Likewise.
f19dbdb7 48395
d9864ee1 48396 * kern/file.c (grub_file_close): Call grub_device_close only if
48397 FILE->DEVICE is not NULL.
48398
48399 * include/grub/mm.h [!NULL] (NULL): New macro.
48400
48401 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
48402
48403 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
48404 (pkgdata_MODULES): Added gzio.mod.
48405 (gzio_mod_SOURCES): New variable.
48406 (gzio_mod_CFLAGS): Likewise.
48407
48408 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
48409 (pkgdata_MODULES): Added gzio.mod.
48410 (gzio_mod_SOURCES): New variable.
48411 (gzio_mod_CFLAGS): Likewise.
48412
48413 * commands/cat.c: Include grub/gzio.h.
48414 (grub_cmd_cat): Use grub_gzfile_open instead of
48415 grub_file_open.
f19dbdb7 48416
d9864ee1 48417 * commands/cmp.c: Include grub/gzio.h.
48418 (grub_cmd_cmp): Use grub_gzfile_open instead of
48419 grub_file_open.
48420
48421 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
48422 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
48423 grub_file_open.
48424 (grub_rescue_cmd_module): Likewise.
48425
fa46f4b5 484262005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48427
48428 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
48429 kern/sparc64/ieee1275/init.c because it contains _start.
48430 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
48431
e9211b5d 484322005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48433
48434 * configure.ac: Add support for sparc64 host with ieee1275
48435 firmware.
48436 * configure: Generated from configure.ac.
48437 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
48438 instead of int.
48439 (grub_ofdisk_read): Likewise.
48440 (grub_ofdisk_open): Use %p to print pointer values, and cast the
48441 pointers as (void *) to remove a warning.
48442 (grub_ofdisk_close): Likewise.
48443 (grub_ofdisk_read): Likewise.
48444 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
48445 returns, so make it return void to remove a warning.
48446 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
48447 Corresponding prototype change.
48448 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
48449 values, and cast the pointers as (void *) to remove a warning.
48450 (grub_mm_dump): Likewise.
48451 * conf/sparc64-ieee1275.mk: New file.
48452 * conf/sparc64-ieee1275.rmk: Likewise.
48453 * include/grub/sparc64/setjmp.h: Likewise.
48454 * include/grub/sparc64/types.h: Likewise.
48455 * include/grub/sparc64/ieee1275/console.h: Likewise.
48456 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48457 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48458 * include/grub/sparc64/ieee1275/time.h: Likewise.
48459 * kern/sparc64/cache.c: Likewise.
48460 * kern/sparc64/dl.c: Likewise.
48461 * kern/sparc64/ieee1275/init.c: Likewise.
48462 * kern/sparc64/ieee1275/openfw.c: Likewise.
48463
385c6a92 484642005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48465
48466 * util/console.c (grub_ncurses_putchar): If C is greater than
48467 0x7f, set C to a question mark.
48468 (grub_ncurses_getcharwidth): New function.
48469 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
48470 getcharwidth.
48471
48472 * normal/menu.c (print_entry): Made aware of Unicode. First,
48473 convert TITLE to UCS-4, and predict the cursor position by
48474 grub_getcharwidth.
48475
48476 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
48477 const to SRC.
48478 * kern/misc.c (grub_utf16_to_utf8): Likewise.
48479
16ccb8b1 484802005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48481
48482 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
48483 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48484 grub_strcat.
48485
48486 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
48487 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48488 grub_strcpy and grub_strlen. Take it into account that a space
48489 character is inserted as a delimiter.
48490
6a85ce79 484912005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48492
48493 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 48494 invalid magic in the error.
6a85ce79 48495
48496 * commands/search.c: New file.
f19dbdb7 48497
6a85ce79 48498 * util/grub-emu.c (main): Call grub_search_init and
48499 grub_search_fini.
48500
48501 * kern/rescue.c (grub_rescue_print_disks): Removed.
48502 (grub_rescue_print_devices): New function.
48503 (grub_rescue_cmd_ls): Use grub_device_iterate with
48504 grub_rescue_print_devices instead of grub_disk_dev_iterate with
48505 grub_rescue_print_disks.
48506
48507 * kern/partition.c (grub_partition_iterate): Return the result of
48508 PARTMAP->ITERATE instead of GRUB_ERRNO.
48509
48510 * kern/device.c: Include grub/partition.h.
48511 (grub_device_iterate): New function.
48512
48513 * include/grub/partition.h (grub_partition_iterate): Return int
48514 instead of grub_err_t.
48515
48516 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
48517 prototype.
48518 [GRUB_UTIL] (grub_search_fini): Likewise.
48519
48520 * include/grub/device.h (grub_device_iterate): New prototype.
48521
48522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48523 commands/search.c.
48524 (pkgdata_MODULES): Added search.mod.
48525 (search_mod_SOURCES): New variable.
48526 (search_mod_CFLAGS): Likewise.
48527
48528 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
48529 (pkgdata_MODULES): Added search.mod.
48530 (search_mod_SOURCES): New variable.
48531 (search_mod_CFLAGS): Likewise.
48532
48533 * commands/ls.c (grub_ls_list_disks): Renamed to ...
48534 (grub_ls_list_devices): ... this, and use grub_device_iterate.
48535 All callers changed.
48536
48537 * DISTLIST: Added commands/search.c.
48538
ef095434 485392005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48540
48541 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
48542 conversion.
48543 (grub_getcharwidth): New function.
48544
48545 * kern/misc.c (grub_utf8_to_ucs4): New function.
48546
48547 * include/grub/term.h (struct grub_term): Added a new member
48548 "getcharwidth".
48549 (grub_getcharwidth): New prototype.
48550
48551 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
48552
48553 * term/i386/pc/console.c (map_char): New function. Segregated from
48554 grub_console_putchar.
48555 (grub_console_putchar): Use map_char.
48556 (grub_console_getcharwidth): New function.
48557 (grub_console_term): Specified grub_console_getcharwidth as
48558 getcharwidth.
48559
48560 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
48561 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
48562
48563 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
48564 GRUB_ERRNO.
48565 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
48566 on grub_strtoul completely.
48567 (write_char): Declare local variables in the beginning of the
48568 function.
48569 (grub_vesafb_getcharwidth): New function.
48570 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
48571 getcharwidth.
48572
1f0a95e4 485732005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
48574
48575 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
48576 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
48577 commands/i386/pc/vbetest.c.
48578
48579 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
48580 call grub_vbe_get_controller_info again, because the returned
48581 information is volatile.
48582 (grub_vbe_set_video_mode): Mostly rewritten.
48583 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
48584 grub_vbe_status_t correctly.
48585 (grub_vbe_get_video_mode_info): Likewise.
48586 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
48587 several if statements.
48588
48589 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
48590 * commands/i386/pc/vbeinfo.c: ... this.
48591
48592 * commands/i386/pc/vbe_test.c: Renamed to ...
48593 * commands/i386/pc/vbetest.c: ... this.
48594
48595 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
48596 ...
48597 (grub_cmd_vbeinfo): ... this. Save video modes before
48598 iterating. Skip a video mode, if it is not available, not enough
48599 information is given or it is monochrome. Show the memory
48600 model. Leave the interpretation of MODEVAR to grub_strtoul
48601 completely.
48602 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
48603 (GRUB_MOD_FINI): Likewise.
48604
48605 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
48606 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
48607 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
48608 duplicated grub_env_get. Leave the interpretation of MODEVAR to
48609 grub_strtoul completely.
48610 (real2pm): Removed.
48611 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
48612 (GRUB_MOD_FINI): Likewise.
48613
48614 * normal/misc.c: Include grub/mm.h.
48615
48616 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
48617 vbe_list_modes with vbetest.mod and vbeinfo.mod.
48618 (vbe_list_modes_mod_SOURCES): Removed.
48619 (vbe_list_modes_mod_CFLAGS): Likewise.
48620 (vbe_test_mod_SOURCES): Likewise.
48621 (vbe_test_mod_CFLAGS): Likewise.
48622 (vbeinfo_mod_SOURCES): New variable.
48623 (vbeinfo_mod_CFLAGS): Likewise.
48624 (vbetest_mod_SOURCES): Likewise.
48625 (vbetest_mod_CFLAGS): Likewise.
48626
992ffbbe 486272005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
48628
48629 * normal/misc.c: New file.
48630
48631 * DISTLIST: Added normal/misc.c.
f19dbdb7 48632
992ffbbe 48633 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
48634 DISK to HOOK. Call HOOK with DISK.
48635 * partmap/apple.c (apple_partition_map_iterate): Likewise.
48636 * partmap/pc.c (pc_partition_map_iterate): Likewise.
48637 * partmap/sun.c (sun_partition_map_iterate): Likewise.
48638
48639 * normal/menu_entry.c (struct screen): Added a new member
48640 "completion_shown".
48641 (completion_buffer): New global variable.
48642 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
48643 (store_completion): New function.
48644 (complete): Likewise.
48645 (clear_completions): Likewise.
48646 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
48647 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
48648 a tab, call complete.
48649
48650 * normal/completion.c (disk_dev): Removed.
48651 (print_simple_completion): Likewise.
48652 (print_partition_completion): Likewise.
48653 (print_func): New global variable.
48654 (add_completion): Do not take the arguments WHAT or PRINT any
48655 longer. Added a new argument TYPE. Instead of printing directly,
48656 call PRINT_FUNC if not NULL.
48657 All callers changed.
48658 (complete_device): Use a local variable DEV instead of
48659 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
48660 (grub_normal_do_completion): Take a new argument HOOK. Do not
48661 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
48662 empty string, return NULL instead.
48663 All callers changed.
48664
48665 * normal/cmdline.c (print_completion): New function.
48666
48667 * kern/partition.c (grub_partition_iterate): Add an argument DISK
48668 to HOOK.
48669 All callers changed.
48670
48671 * kern/disk.c (grub_print_partinfo): Removed.
48672
48673 * include/grub/partition.h (struct grub_partition_map): Add a new
48674 argument DISK into HOOK of ITERATE.
48675 (grub_partition_iterate): Add a new argument DISK to HOOK.
48676
48677 * include/grub/normal.h (enum grub_completion_type): New enum.
48678 (grub_completion_type_t): New type.
48679 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
48680 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
48681 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
48682 (GRUB_COMPLETION_TYPE_FILE): Likewise.
48683 (grub_normal_do_completion): Added a new argument HOOK.
48684 (grub_normal_print_device_info): New prototype.
48685
48686 * include/grub/disk.h (grub_print_partinfo): Removed.
48687
48688 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
48689 (normal_mod_SOURCES): Likewise.
48690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48691 (normal_mod_SOURCES): Likewise.
48692
48693 * commands/ls.c (grub_ls_list_disks): Use
48694 grub_normal_print_device_info instead of grub_print_partinfo. Free
48695 PNAME.
48696 (grub_ls_list_files): Use grub_normal_print_device_info instead of
48697 duplicating the code.
48698
0bd41162 486992005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48700
48701 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 48702 follow GCS more precisely.
48703 * commands/i386/pc/vbe_test.c: Likewise.
48704 * include/grub/i386/pc/vbe.h: Likewise.
48705 * term/i386/pc/vesafb.c: Likewise.
48706 * video/i386/pc/vbe.c: Likewise.
0bd41162 48707
6323696a 487082005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
48709
48710 * DISTLIST: Added term/i386/pc/vesafb.c
48711 DISTLIST: Added video/i386/pc/vbe.c
48712 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
48713 DISTLIST: Added commands/i386/pc/vbe_test.c.
48714 * commands/i386/pc/vbe_list_modes.c: New file.
48715 * commands/i386/pc/vbe_test.c: Likewise.
48716 * term/i386/pc/vesafb.c: Likewise.
48717 * video/i386/pc/vbe.c: Likewise.
48718 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
48719 (grub_vbe_probe) Added prototype.
48720 (grub_vbe_set_video_mode) Likewise.
48721 (grub_vbe_get_video_mode) Likewise.
48722 (grub_vbe_get_video_mode_info) Likewise.
48723 (grub_vbe_set_pixel_rgb) Likewise.
48724 (grub_vbe_set_pixel_index) Likewise.
48725 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
48726 (pkgdata_MODULES): Added vesafb.mod.
48727 (pkgdata_MODULES): Added vbe_list_modes.mod.
48728 (pkgdata_MODULES): Added vbe_test.mod.
48729 (vbe_mod_SOURCES): Added.
48730 (vbe_mod_CFLAGS): Likewise.
48731 (vesafb_mod_SOURCES): Likewise.
48732 (vesafb_mod_CFLAGS): Likewise.
48733 (vbe_list_modes_mod_SOURCES): Likewise.
48734 (vbe_list_modes_mod_CFLAGS): Likewise.
48735 (vbe_test_mod_SOURCES): Likewise.
48736 (vbe_test_mod_CFLAGS): Likewise.
48737
0a74e62f 487382005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
48739
0a74e62f 48740 * normal/command.c (grub_command_execute): If INTERACTIVE is
48741 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
48742 CMDLINE. Disable the pager if INTERACTIVE is true.
48743 All callers are changed.
48744
48745 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
48746 before reading a config file.
48747 * normal/main.c (read_config_file): Even if a command is not
48748 found, register it if it is within an entry.
48749
48750 * util/grub-emu.c: Include sys/types.h and unistd.h.
48751 (options): Added --hold.
48752 (struct arguments): Added a new member "hold".
48753 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
48754 missing.
48755 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
48756 cleared by a debugger, if it is not zero.
48757
48758 * include/grub/normal.h (grub_command_execute): Add an argument
48759 INTERACTIVE.
48760
e51f85ae 487612005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
48762
48763 * DISTLIST: Added include/grub/i386/pc/vbe.h.
48764
e9c6f39b 487652005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
48766
48767 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
48768 program with another one, because the old one didn't detect a bug
48769 in gcc-3.4. Always use regparm 2, because the new test is still
48770 not enough for gcc-4.0. Someone must investigate a simple test
48771 case which detects a bug in gcc-4.0.
48772
8de3495c 487732005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
48774
48775 * DISTLIST: Added normal/completion.c.
48776
48777 * normal/completion.c: New file.
f19dbdb7 48778
8de3495c 48779 * term/i386/pc/console.c (grub_console_getwh): New function.
48780 (grub_console_term): Assign grub_console_getwh to getwh.
48781
48782 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
48783 function is defined in normal/completion.c as
48784 grub_normal_do_completion.
48785 (grub_cmdline_get): Use grub_normal_do_completion instead of
48786 grub_tab_complete.
48787
48788 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
48789 returns non-zero, otherwise return 0.
48790 (grub_partition_iterate): First, probe the partition map. Then,
48791 call ITERATE only for this partition map.
48792
48793 * kern/misc.c (grub_strncmp): Rewritten.
48794
48795 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
48796 returns non-zero. Otherwise return 0.
48797
48798 * include/grub/partition.h (grub_partition_map_iterate): Return
48799 int instead of void.
48800
48801 * include/grub/normal.h (grub_normal_do_completion): New prototype.
48802
48803 * include/grub/misc.h (grub_strncmp): Change the type of N to
48804 grub_size_t.
48805
48806 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
48807 of void.
48808
48809 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 48810 unsigned explicitly before comparing it with I.
8de3495c 48811
48812 * kern/main.c (grub_env_write_root): Add the attribute unused into
48813 VAR.
48814
48815 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48816 normal/completion.c.
48817 (normal_mod_SOURCES): Likewise.
48818 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48819 (normal_mod_SOURCES): Likewise.
48820
48821 * normal/command.c (grub_iterate_commands): If ITERATE returns
48822 non-zero, return one immediately.
48823
e85e144b 488242005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
48825
48826 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
48827 * kern/i386/pc/startup.S: Updated Global Descriptor table's
48828 descriptions.
48829 (grub_vbe_get_controller_info): New function.
48830 (grub_vbe_get_mode_info): Likewise.
48831 (grub_vbe_set_mode): Likewise.
48832 (grub_vbe_get_mode): Likewise.
48833 (grub_vbe_set_memory_window): Likewise.
48834 (grub_vbe_get_memory_window): Likewise.
48835 (grub_vbe_set_scanline_length): Likewise.
48836 (grub_vbe_get_scanline_length): Likewise.
48837 (grub_vbe_set_display_start): Likewise.
48838 (grub_vbe_get_display_start): Likewise.
48839 (grub_vbe_set_palette_data): Likewise.
48840 * include/grub/i386/pc/vbe.h: New file.
48841
c46153d2 488422005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48843
48844 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48845 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
48846 * DISTLIST: Likewise.
48847 * kern/ieee1275/of.c: Moved to ...
48848 * kern/ieee1275/ieee1275.c: ... here.
48849
0cb90c45 488502005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48851
48852 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
48853 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
48854 Pass 0 as `end' parameter to grub_strtoul().
48855
a19fb360 488562005-08-08 Hollis Blanchard <hollis@penguinppc.org>
48857
48858 * include/grub/powerpc/ieee1275/console.h: Do not include
48859 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
48860 ifdef.
48861 (grub_console_cur_color): Remove i386-specific prototype.
48862 (grub_console_real_putchar): Likewise.
48863 (grub_console_checkkey): Likewise.
48864 (grub_console_getkey): Likewise.
48865 (grub_console_getxy): Likewise.
48866 (grub_console_gotoxy): Likewise.
48867 (grub_console_cls): Likewise.
48868 (grub_console_setcursor): Likewise.
48869 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
48870 Include <grub/machine/console.h>.
48871 * term/ieee1275/ofconsole.c: Likewise.
48872
4ac9bd04 488732005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
48874
48875 * Makefile.in (LIBLZO): New variable.
48876
48877 * configure.ac: Check for LZO version 2.
48878
48879 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
48880 lzo/lzo1x.h instead of lzo1x.h.
48881
48882 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
48883 of -llzo.
48884
48885 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
48886 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
48887
48888 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
48889 copying the data from PARTITION to P.
48890
f4917dfd 488912005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48892
48893 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
48894 negative, unload the module.
48895
48896 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
48897 map is "pc_partition_map" but not "pc".
48898 (usage): Fix the description. The options are --boot-image and
48899 --core-image but not --boot-file or --core-file.
48900 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
48901 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
48902 DEFAULT_DIRECTORY.
48903
48904 * util/i386/pc/grub-install.in: Do not specify --boot-file or
48905 --core-file. Specify INSTALL_DEVICE as an argument.
48906
48907 * util/console.c: Include config.h.
48908 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
48909 [HAVE_NCURSES_H]: Include ncurses.h.
48910 [HAVE_CURSES_H]: Include curses.h.
48911 [!A_NORMAL] (A_NORMAL): Defined as zero.
48912 [!A_STANDOUT] (A_STANDOUT): Likewise.
48913
48914 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
48915 -lncurses.
48916 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
48917
48918 * configure.ac: Check for curses libraries and headers.
48919
48920 * Makefile.in (LIBCURSES): New variable.
48921
48922 * genmk.rb (Script::rule): Set the executable bits.
48923
48924 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
48925 name of the PC partition map is "pc_partition_map" but not "pc".
48926
0e143073 489272005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48928
48929 * util/i386/pc/grub-install.in (grub_probefs): New variable.
48930 (modules): Likewise.
48931 (usage): Added descriptions for --modules and --grub-probefs.
48932 Handle --modules and --grub-probefs. Save the arguments in MODULES
48933 and GRUB_PROBEFS, respectively.
48934 Auto-detect a filesystem module against GRUBDIR. If the result is
48935 empty and modules are not specified explicitly, abort the
48936 installation. Add the result to MODULES.
48937
48938 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
48939 disk/powerpc/ieee1275/ofdisk.c,
48940 include/grub/powerpc/ieee1275/init.h and
48941 term/powerpc/ieee1275/ofconsole.c.
48942 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
48943 term/ieee1275/ofconsole.c.
48944
48945 * include/grub/powerpc/ieee1275/console.h: Resurrected.
48946
48947 * COPYING: Upgraded to the latest version. Only the address of the
48948 FSF office has changed.
f19dbdb7 48949
efd6e6d5 489502005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
48951
48952 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
48953 kern/ieee1275.c with kern/ieee1275/of.c.
48954
48955 * kern/ieee1275.c: Moved to ...
48956 * kern/ieee1275/of.c: ... here.
48957
8ceafda2 489582005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
48959
48960 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 48961 readability.
8ceafda2 48962
48963 * config.guess: Updated to the latest version from gnulib.
48964 * config.sub: Likewise.
48965 * install.sh: Likewise.
48966 * mkinstalldirs: Likewise.
48967
48968 * include/grub/console.h: Removed. This file is arch-specific. Do
48969 not put this in include/grub.
48970
48971 * include/grub/i386/pc/console.h: Resurrected.
48972
48973 * util/console.c: Include grub/machine/console.h instead of
48974 grub/console.h.
48975 * util/grub-emu.c: Likewise.
48976
267f6cd9 489772005-08-04 Marco Gerards <metgerards@student.han.nl>
48978
48979 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
48980 hardcoded value.
f19dbdb7 48981
267f6cd9 48982 From Vincent Pelletier <subdino2004@yahoo.fr>
48983 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
48984 Redefined to use grub_getwh.
48985 (grub_term): New member named getwh.
48986 (grub_getwh): New prototype.
48987 * kern/term.c (grub_getwh): New function.
48988 * term/i386/pc/console.c (grub_console_getwh): New function.
48989 (grub_console_term): New member `getwh'.
48990 * term/i386/pc/vga.c (grub_vga_getwh): New function.
48991 (grub_vga_term): New member `getwh'.
0b5abe02 48992 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 48993 grub_ssize_t.
48994 (grub_ofconsole_getw): New function.
48995 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
48996 (grub_ofconsole_term): New field named getwh and new initial
48997 value.
48998
3be7266d 489992005-08-03 Hollis Blanchard <hollis@penguinppc.org>
49000
49001 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
49002 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
49003 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
49004 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
49005 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
49006 of <grub/machine/ieee1275.h>.
49007 * commands/ieee1275/reboot.c: Likewise.
49008 * boot/powerpc/ieee1275/ieee1275.c: Move ...
49009 * kern/ieee1275.c: ... to here. All users updated. Change all
49010 parameter structs to use new type `grub_ieee1275_cell_t'.
49011 * term/powerpc/ieee1275/ofconsole.c: Move ...
49012 * term/ieee1275/ofconsole.c: ... to here. All users updated.
49013 * disk/powerpc/ieee1275/ofdisk.c: Move ...
49014 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
49015 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
49016 to return int.
49017 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
49018 Remove unused prototypes. All users updated.
49019 * include/grub/powerpc/ieee1275/console.h: Removed.
49020 * include/grub/powerpc/ieee1275/ieee1275.h: Define
49021 `grub_ieee1275_cell_t'.
49022 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
49023 Cast comparisons with -1 to the correct type.
49024 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
49025 type to match `grub_ieee1275_entry_fn'.
49026
8b5f3938 490272005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
49028
49029 * DISTLIST: Added util/i386/pc/grub-probefs.c.
49030
49031 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
49032 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
49033 partmap/sun.c.
49034 (grub_probefs_SOURCES): New variable.
49035
49036 * util/i386/pc/grub-probefs.c: New file.
49037
49038 * util/i386/pc/grub-setup.c (main): Call
49039 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
49040 grub_hfs_init and grub_jfs_init to initialize the system. Call
49041 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
49042 grub_pc_partition_map_fini to finish the system.
49043
ea409713 490442005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
49045
49046 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
49047 function.
49048 (grub_multiboot_load_elf32): Likewise.
49049 (grub_multiboot_is_elf64): Likewise.
49050 (grub_multiboot_load_elf64): Likewise.
49051 (grub_multiboot_load_elf): Likewise.
49052 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
49053 an ELF32 or ELF64 file.
49054 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
49055
49056 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
49057 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
49058 NULL before calling FS->LABEL.
49059 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
49060 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
49061 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
49062 before calling FS->LABEL.
49063
141a288b 490642005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
49065
49066 * util/i386/pc/grub-install.in (datadir): New variable.
49067 (libdir): Removed.
49068 (pkgdatadir): New variable.
49069 (pkglibdir): Removed.
49070
0d5f8a54 490712005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
49072
49073 * DISTLIST: Added util/i386/pc/grub-install.in.
49074
49075 * util/i386/pc/grub-install.in: New file.
49076
49077 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
49078 (grub_install_SOURCES): Likewise.
49079
49080 * genmk.rb: Added support for scripts.
49081 (Script): New class.
49082 (scripts): New variable.
49083
49084 * Makefile.in (install-local): Install sbin_SCRIPTS by
49085 INSTALL_SCRIPT.
49086 (uninstall): Remove sbin_SCRIPTS.
49087
49088 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
49089 device, try to get a GRUB device by
49090 grub_util_biosdisk_get_grub_dev.
49091 Free DEST_DEV.
49092
49093 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
49094 description for --device-map.
49095
5f968e1e 490962005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49097
49098 Change the semantics of variable hooks. They now return strings
49099 instead of error values.
f19dbdb7 49100
5f968e1e 49101 * util/i386/pc/grub-setup.c: Include grub/env.h.
49102 (setup): Use grub_device_set_root instead of grub_env_set.
49103
49104 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
49105 grub_env_get instead of grub_device_set_root and
49106 grub_device_get_root, respectively.
49107
49108 * kern/main.c (grub_env_write_root): New function.
49109 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
49110 grub_env_set instead of grub_device_set_root.
49111
49112 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
49113 many variables.
49114 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
49115 rather than calling ENV->WRITE_HOOK afterwards.
49116 (grub_env_get): Return the result of ENV->READ_HOOK rather than
49117 passing a pointer of a pointer.
49118 (grub_register_variable_hook): Change the types of "read_hook" and
49119 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
49120 respectively.
49121 Allocate the default empty string on the heap, because this string
49122 may be freed later.
49123
49124 * kern/device.c: Include grub/env.h.
49125 (grub_device_set_root): Removed.
49126 (grub_device_get_root): Likewise.
49127 (grub_device_open): Use grub_env_get instead of
49128 grub_device_get_root.
49129
49130 * include/grub/env.h (grub_env_read_hook_t): New type.
49131 (grub_env_write_hook_t): Likewise.
49132 (grub_env_var): Change the types of "read_hook" and "write_hook"
49133 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
49134 (grub_register_variable_hook): Likewise.
49135
49136 * include/grub/device.h (grub_device_set_root): Removed.
49137 (grub_device_set_root): Likewise.
49138
49139 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
49140 make sure that DIRNAME terminates with '/', so that
49141 grub_fat_find_dir will fail if PATH is not a directory.
49142
49143 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
49144 from DIRNAME.
49145 Use the qualifier auto for print_files and print_files_long.
49146 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
49147 as a regular file.
49148 Put a newline only if there is no error.
49149 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
49150 used.
49151
896f0afd 491522005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49153
49154 * kern/partition.c (grub_partition_probe): Initialize PART to
49155 NULL. Otherwise, when no partition map is registered, this returns
49156 a garbage.
49157
b28b81b2 491582005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
49159
49160 * partmap/apple.c (apple_partition_map_iterate): Check if POS
49161 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
49162 valid.
49163
5f3607e0 491642005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
49165
49166 * commands/ls.c (grub_ls_list_disks): Print the filesystem
49167 information on each device, if it does not have partitions. Print
49168 "Device" instead of "Disk", because this function is not specific
49169 to disk devices.
49170
49171 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
49172 static to ensure that it is put on the memory rather than a
49173 register.
49174
502c87e8 491752005-07-17 Yoshinori Okuji <okuji@enbug.org>
49176
49177 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
49178 (grub_cat_init): Likewise.
49179 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
49180 (options): Likewise.
49181 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
49182 (grub_configfile_init): Likewise.
49183 * font/manager.c (GRUB_MOD_INIT): Likewise.
49184 * commands/help.c (GRUB_MOD_INIT): Likewise.
49185 (grub_help_init): Likewise.
49186 * normal/command.c (grub_command_init): Likewise.
49187 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
49188 * disk/loopback.c (grub_loop_init): Likewise.
49189 (GRUB_MOD_INIT): Likewise.
49190 * commands/ls.c (grub_ls_init): Likewise.
49191 (GRUB_MOD_INIT): Likewise.
49192 (options): Likewise.
49193 * commands/boot.c (grub_boot_init): Likewise.
49194 (GRUB_MOD_INIT): Likewise.
49195 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
49196 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
49197 (GRUB_MOD_INIT): Likewise.
49198 * commands/cmp.c (grub_cmp_init): Likewise.
49199 (GRUB_MOD_INIT): Likewise.
49200
49201 * normal/arg.c: Use <> instead of "" to include header files.
49202 (SHORT_ARG_HELP): New macro.
49203 (SHORT_ARG_USAGE): Likewise.
49204 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
49205 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
49206 descriptions.
49207 (find_short): Check if C is 'h' or 'u' explicitly.
49208 (grub_arg_show_help): Use space characters instead of tabs. Treat
49209 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
49210 are shown with --help and --usage only if they are not used for
49211 the command itself.
49212 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
49213 'h' and 'u'.
49214
49215 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
49216 const into "longarg". Change the type of "shortarg" to int.
49217
f806d18e 492182005-07-17 Yoshinori Okuji <okuji@enbug.org>
49219
49220 * boot/i386/pc/boot.S (boot_drive_check): New label.
49221
49222 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
49223 macro.
49224
49225 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
49226 which do not pass a boot drive correctly. Copied from GRUB Legacy.
49227
e293232b 492282005-07-17 Yoshinori Okuji <okuji@enbug.org>
49229
49230 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
49231 When turning off Gate A20, skip the check and return immediately,
49232 because this is not fatal usually.
49233
ebedfd00 492342005-07-17 Yoshinori Okuji <okuji@enbug.org>
49235
49236 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
49237 be 0x7C00 instead of 0x8000.
49238
49239 * boot/i386/pc/pxeboot.S: Rewritten.
49240
49241 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
49242 EXT_C.
49243 (gate_a20_check_state): Read a byte from 0x108000. Invert the
49244 result.
49245
654fc59f 492462005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
49247
49248 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
49249 robustness. This routine now supports a BIOS call and System
49250 Control Port A to modify the gate A20.
49251
49252 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
49253 Increased to 0x440.
49254
09f9923f 492552005-07-12 Hollis Blanchard <hollis@penguinppc.org>
49256
49257 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
49258 device path and resulting ihandle.
49259 (grub_ofdisk_close): dprintf the ihandle being closed.
49260 (grub_ofdisk_read): dprintf function parameters.
49261 * kern/mm.c (grub_mm_init_region): Likewise.
49262 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
49263 (grub_linux_boot): dprintf the Linux entry point, initrd address and
49264 size, and boot arguments.
49265 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
49266 before loading into memory.
49267 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
49268 before loading into memory.
49269
7ef504d8 492702005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
49271
49272 * kern/mm.c: Added much documentation.
49273 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
49274 8, set to 5 instead of 8.
49275
e0f050c2 492762005-07-10 Yoshinori Okuji <okuji@enbug.org>
49277
49278 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
49279
49280 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
49281 (grub_mkdevicemap_SOURCES): New variable.
49282
49283 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
49284 lib/device.c of GRUB Legacy.
49285
7224189a 492862005-07-10 Yoshinori Okuji <okuji@enbug.org>
49287
49288 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
49289 instead of PATH is NULL.
49290
68c864eb 492912005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
49292
49293 * commands/cmp.c (BUFFER_SIZE): New macro.
49294 (grub_cmd_cmp): Close the right file at the right time. Compare
49295 only data just read. Don't report files of different size as
49296 identical. Dynamically allocate buffers. Move variable
49297 declarations at the beginning of function.
49298
e6f3e614 492992005-07-09 Yoshinori Okuji <okuji@enbug.org>
49300
49301 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
49302 reverse.
49303
f8f1559a 493042004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
49305
49306 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
49307 when backspace is pressed at beginning of line.
49308
39c9d41d 493092005-07-03 Yoshinori Okuji <okuji@enbug.org>
49310
49311 * DISTLIST: Added genfslist.sh.
49312
49313 * normal/main.c (fs_module_list): New variable.
49314 (autoload_fs_module): New function.
49315 (read_fs_list): Likewise.
49316 (grub_normal_execute): Call read_fs_list.
49317
49318 * kern/fs.c (grub_fs_autoload_hook): New variable.
49319 (grub_fs_probe): Added support for auto-loading.
49320
49321 * include/grub/normal.h (struct grub_fs_module_list): New struct.
49322 (grub_fs_module_list_t): New type.
49323
49324 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
49325 (grub_fs_autoload_hook): New prototype.
49326
49327 * genfslist.sh: New file.
f19dbdb7 49328
39c9d41d 49329 * genmk.rb: Added a rule to generate a filesystem list.
49330
121c1d83 493312005-06-30 Marco Gerards <metgerards@student.han.nl>
49332
49333 * configure.ac: Fix the test for cross-compiling.
49334
49335 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
49336 define GRUB_UTIL anymore.
49337
49338 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
49339 so this function works on other systems than just big endian.
49340 (load_modules): Likewise.
49341 (add_segments): Likewise.
49342
e75d76e1 493432005-06-23 Hollis Blanchard <hollis@penguinppc.org>
49344
49345 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
49346 contains `l' modifier, get a long from va_arg().
49347
50b5a0a7 493482005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
49349
49350 * kern/mm.c (grub_free): If the next free block which is being
49351 merged is the first free block, set the first block to the block
49352 being freed.
49353 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
49354
89371b20 493552005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49356
49357 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
49358 `grub_ieee1275_chosen'.
49359
168d6e58 493602005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49361
49362 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
49363 (grub_ieee1275_chosen): New variable.
49364 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
49365 `chosen'.
49366 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
49367 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49368 Rename first argument to `phandle' for consistency.
49369 (grub_ieee1275_get_property_length): Likewise.
49370 (grub_ieee1275_next_property): Likewise. Change type of first argument
49371 to grub_ieee1275_phandle_t.
49372 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
49373 Move export next to declaration.
49374 (grub_ieee1275_chosen): New variable.
49375 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
49376 Correct cosmetic typo.
49377 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
49378 `grub_ieee1275_chosen'.
49379 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
49380 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
49381 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
49382 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
49383 `grub_ieee1275_chosen'.
49384
ca5baa3f 493852005-05-10 Hollis Blanchard <hollis@penguinppc.org>
49386
49387 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
49388 /chosen/bootargs.
49389 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
49390 /chosen/bootargs as "variable=value" pairs.
49391
708b345f 493922005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
49393
49394 * include/grub/misc.h (grub_dprintf): New macro.
49395 (grub_real_dprintf): New prototype.
49396 (grub_strword): Likewise.
49397 (grub_iswordseparator): Likewise.
49398 * kern/misc.c (grub_real_dprintf): New function.
49399 (grub_strword): Likewise.
49400 (grub_iswordseparator): Likewise.
49401
f4c5e67c 494022005-04-30 Hollis Blanchard <hollis@penguinppc.org>
49403
49404 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
49405 (roundup): Remove macro.
49406 (grub_ieee1275_flags): Make static.
49407 (grub_ieee1275_realmode): Remove.
49408 (grub_ieee1275_test_flag): New function.
49409 (grub_ieee1275_set_flag): Likewise.
49410 (find_options): Rename to `grub_ieee1275_find_options'; update
49411 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
49412 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
49413 (cmain): New prototype.
49414 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
49415 `grub_ieee1275_flags' directly.
49416 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
49417 machine/biosdisk.h.
49418 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
49419 Don't include grub/machine/init.h.
49420 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
49421 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49422 Remove prototype.
49423 (grub_ieee1275_realmode): Likewise.
49424 (grub_ieee1275_flag): New enum.
49425 (grub_ieee1275_test_flag): New prototype.
49426 (grub_ieee1275_set_flag): New prototype.
49427 * include/grub/powerpc/ieee1275/init.h: Remove file.
49428 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
49429 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
49430 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
49431 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
49432 comment.
49433 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
49434 `grub_ieee1275_test_flag'.
49435 (grub_ieee1275_encode_devname): Likewise.
49436
ed16607e 494372005-04-21 Hollis Blanchard <hollis@penguinppc.org>
49438
49439 * include/grub/powerpc/ieee1275/ieee1275.h
49440 (grub_ieee1275_encode_devname): New prototype.
49441 (grub_ieee1275_get_filename): Likewise.
49442 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
49443 function.
49444 (grub_set_prefix): Likewise.
49445 (grub_machine_init): Call grub_set_prefix.
49446 * kern/powerpc/ieee1275/openfw.c: Fix typos.
49447 (grub_parse_type): New enum.
49448 (grub_ieee1275_get_devargs): New function.
49449 (grub_ieee1275_get_devname): Likewise.
49450 (grub_ieee1275_parse_args): Likewise.
49451 (grub_ieee1275_get_filename): Likewise.
49452 (grub_ieee1275_encode_devname): Likewise.
49453
be369920 494542005-03-30 Marco Gerards <metgerards@student.han.nl>
49455
49456 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
49457 `grub_loader_unset'.
49458
a5ce3a4a 494592005-03-26 Hollis Blanchard <hollis@penguinppc.org>
49460
49461 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
49462 instead of grub_ieee1275_interpret.
49463 (grub_halt_init): New function.
49464 (grub_halt_fini): Likewise.
49465 (GRUB_MOD_INIT): Correct message grammar.
49466 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
49467 instead of grub_ieee1275_interpret.
49468 (grub_reboot_init): New function.
49469 (grub_reboot_fini): Likewise.
49470 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
49471 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
49472 util/i386/pc/misc.c with commands/ieee1275/halt.c,
49473 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
49474 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
49475 function.
49476 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
49477 Add prototype.
49478 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
49479 prototype.
49480 (grub_halt): Likewise.
49481 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
49482 (cmain): Remove __attribute__((unused)).
49483 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
49484 (grub_heap_len): Likewise.
49485 (grub_machine_fini): New function.
49486 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
49487 (grub_halt): Likewise.
49488 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
49489 function.
49490 * util/powerpc/ieee1275/misc.c: New file.
49491
0058f771 494922005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
49493
49494 * DISTLIST: New file.
49495 * gendistlist.sh: Likewise.
f19dbdb7 49496
0058f771 49497 * Makefile.in (COMMON_DISTFILES): Removed.
49498 (BOOT_DISTFILES): Likewise.
49499 (CONF_DISTFILES): Likewise.
49500 (DISK_DISTFILES): Likewise.
49501 (FS_DISTFILES): Likewise.
49502 (INCLUDE_DISTFILES): Likewise.
49503 (KERN_DISTFILES): Likewise.
49504 (LOADER_DISTFILES): Likewise.
49505 (TERM_DISTFILES): Likewise.
49506 (UTIL_DISTFILES): Likewise.
49507 (DISTFILES): Likewise.
49508 (uninstall): Uninstall files in $(pkgdata_DATA).
49509 (DISTLIST): New target.
49510 (distdir): Use the contents of the file DISTLIST to get a list of
49511 distributed files.
49512
46b3b8a5 495132005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
49514
49515 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
49516 descriptor. This is ported from GRUB Legacy.
49517
49518 * gencmdlist.sh: Added an extra semicolon to make it work with
49519 old sed versions. Reported by Robert Bihlmeyer
49520 <robbe@orcus.priv.at>.
49521
5822ff87 495222005-03-08 Yoshinori Okuji <okuji@enbug.org>
49523
49524 Automatic loading of commands is supported.
f19dbdb7 49525
5822ff87 49526 * normal/main.c (read_command_list): New function.
49527 (grub_normal_execute): Call read_command_list.
49528
49529 * normal/command.c (grub_register_command): Return zero or CMD.
49530 Allocate CMD->NAME from the heap.
49531 Initialize CMD->MODULE_NAME to zero.
49532 Find the same name as well. If the same command is found and it is
49533 a dummy command, overwrite members. If it is not a dummy command,
49534 return zero.
49535 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
49536 (grub_command_find): If a dummy command is found, load a module
49537 and retry to find a command only once.
49538
49539 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
49540 make sure that each command is loaded.
49541
49542 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
49543 macro.
49544 (struct grub_command): Remove const from the member `name'.
49545 Add a new member `module_name'.
49546 (grub_register_command): Return grub_command_t.
49547
49548 * commands/help.c (grub_cmd_help): Call grub_command_find to make
49549 sure that each command is loaded.
49550
49551 * genmk.rb (PModule::rule): Specify a module name without the
49552 suffix ".mod" to gencmdlist.sh.
49553
7b1f4b57 495542005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49555
49556 * gencmdlist.sh: New file.
f19dbdb7 49557
7b1f4b57 49558 * genmk.rb (PModule::rule): Generate a rule for a command list.
49559 Clean command.lst.
49560 Generate command.lst from $(COMMANDFILES).
49561
49562 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
49563 (DATA): Added $(pkgdata_DATA).
49564 (install-local): Install files in $(pkgdata_DATA).
49565
062aaf39 495662005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
49567
49568 * term/i386/pc/vga.c (debug_command): Removed.
49569 (GRUB_MOD_INIT): Do not register the command "debug".
49570
49571 From Hollis Blanchard:
49572 * commands/configfile.c: New file.
49573 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49574 commands/configfile.c.
49575 (pkgdata_MODULES): Added configfile.mod.
49576 (configfile_mod_SOURCES): New variable.
49577 (configfile_mod_CFLAGS): Likewise.
49578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49579 commands/configfile.c.
49580 (pkgdata_MODULES): Added configfile.mod.
49581 (configfile_mod_SOURCES): New variable.
49582 (configfile_mod_CFLAGS): Likewise.
49583 * util/grub-emu.c (main): Call grub_configfile_init and
49584 grub_configfile_fini.
49585 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
49586 prototype.
49587 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 49588
cee01aa6 495892005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49590
49591 * normal/arg.c (grub_arg_show_help): Do not show the bug report
49592 address.
49593
49594 * commands/help.c (grub_cmd_help): Do not print newlines after
49595 the last command in print_command_help.
49596
93f3a1d8 495972005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
49598
49599 * commands/default.h: New file.
49600 * commands/timeout.h: Likewise.
49601 * normal/context.c: Likewise.
f19dbdb7 49602
93f3a1d8 49603 * util/misc.c: Do not include sys/times.h.
49604 Include sys/time.h and grub/machine/time.h.
49605 (grub_get_rtc): Rewritten with gettimeofday.
49606
49607 * util/grub-emu.c (main): Call grub_default_init and
49608 grub_timeout_init before grub_normal_init, and call
49609 grub_timeout_fini and grub_default_fini after grub_main.
49610
49611 * util/console.c (grub_ncurses_checkkey): Return the read
49612 character or -1.
49613
49614 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
49615 timeouts.
49616
49617 * normal/main.c (read_config_file): Push MENU. If this fails,
49618 print an error and wait for a user input.
49619 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
49620 If a menu is empty or an error occurs, pop MENU.
49621 (grub_normal_execute): Pop and free MENU after grub_menu_run
49622 returns.
49623
49624 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
49625
49626 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
49627 include time.h.
49628 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49629 without GRUB_UTIL.
49630 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
49631 time.h.
49632 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
49633 without GRUB_UTIL.
49634
49635 * include/grub/normal.h (struct grub_menu_list): New struct.
49636 (grub_menu_list_t): New type.
49637 (struct grub_context): New struct.
49638 (grub_context_t): New type.
49639 (grub_register_command): Got rid of EXPORT_FUNC.
49640 (grub_unregister_command): Likewise.
49641 (grub_context_get): New prototype.
49642 (grub_context_get_current_menu): Likewise.
49643 (grub_context_push_menu): Likewise.
49644 (grub_context_pop_menu): Likewise.
49645 [GRUB_UTIL] (grub_default_init): Likewise.
49646 [GRUB_UTIL] (grub_default_fini): Likewise.
49647 [GRUB_UTIL] (grub_timeout_init): Likewise.
49648 [GRUB_UTIL] (grub_timeout_fini): Likewise.
49649
49650 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
49651 commands/timeout.c and normal/context.c.
49652 (pkgdata_MODULES): Added default.mod and timeout.mod.
49653 (normal_mod_SOURCES): Added normal/context.c.
49654 (default_mod_SOURCES): New variable.
49655 (default_mod_CFLAGS): Likewise.
49656 (timeout_mod_SOURCES): Likewise.
49657 (timeout_mod_CFLAGS): Likewise.
49658 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
49659 conf/i386-pc.rmk.
49660 (pkgdata_MODULES): Added default.mod and timeout.mod.
49661 (normal_mod_SOURCES): Added normal/context.c.
49662 (default_mod_SOURCES): New variable.
49663 (default_mod_CFLAGS): Likewise.
49664 (timeout_mod_SOURCES): Likewise.
49665 (timeout_mod_CFLAGS): Likewise.
49666
49667 * Makefile.in (all-local): Added $(MKFILES).
49668
4ed2e1dd 496692005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
49670
49671 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
49672 (grub_emu_SOURCES): Likewise.
49673 (pkgdata_MODULES): Add `sun.mod'.
49674 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49675 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49676 `partmap/sun.c'.
49677 (pkgdata_MODULES): Add `sun.mod'.
49678 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
49679 * include/grub/partition.h (grub_sun_partition_map_init): New
49680 prototype.
49681 (grub_sun_partition_map_fini): Likewise.
49682 * partmap/sun.c: New file.
49683 * util/grub-emu.c (main): Initialize and de-initialize the sun
49684 partitionmap support.
49685
4d4e372e 496862005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
49687
49688 This implements an Emacs-like menu entry editor.
f19dbdb7 49689
4d4e372e 49690 * normal/menu_entry.c: New file.
f19dbdb7 49691
4d4e372e 49692 * util/console.c (grub_ncurses_putchar): Translate some Unicode
49693 characters to ASCII.
49694 (saved_char): New variable.
49695 (grub_ncurses_checkkey): Rewritten completely.
49696 (grub_ncurses_getkey): Likewise.
49697 (grub_ncurses_init): Call raw instead of cbreak.
49698
49699 * normal/menu.c (print_entry): Do not put a space.
49700 (init_page): Renamed to ...
49701 (grub_menu_init_page): ... this. All callers changed.
49702 (edit_menu_entry): Removed.
49703 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
49704
49705 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
49706
49707 * kern/misc.c (grub_vprintf): Call grub_refresh.
49708
49709 * normal/menu.c (DISP_LEFT): Renamed to ...
49710 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
49711 * normal/menu.c (DISP_UP): Renamed to ...
49712 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
49713 * normal/menu.c (DISP_RIGHT): Renamed to ...
49714 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
49715 * normal/menu.c (DISP_DOWN): Renamed to ...
49716 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
49717 * normal/menu.c (DISP_HLINE): Renamed to ...
49718 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
49719 * normal/menu.c (DISP_VLINE): Renamed to ...
49720 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
49721 * normal/menu.c (DISP_UL): Renamed to ...
49722 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
49723 * normal/menu.c (DISP_UR): Renamed to ...
49724 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
49725 * normal/menu.c (DISP_LL): Renamed to ...
49726 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
49727 * normal/menu.c (DISP_LR): Renamed to ...
49728 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
49729 * normal/menu.c (TERM_WIDTH): Renamed to ...
49730 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
49731 * normal/menu.c (TERM_HEIGHT): Renamed to ...
49732 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
49733 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
49734 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
49735 * normal/menu.c (TERM_MARGIN): Renamed to ...
49736 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
49737 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
49738 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
49739 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
49740 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
49741 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
49742 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
49743 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
49744 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
49745 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
49746 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
49747 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
49748 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
49749 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
49750 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
49751 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
49752 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
49753 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
49754 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
49755 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
49756 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
49757 All callers changed.
49758
49759 * include/grub/normal.h: New prototype.
49760
49761 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49762 normal/menu_entry.c.
49763 (normal_mod_SOURCES): Likewise.
49764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49765 (normal_mod_SOURCES): Likewise.
49766
e6b92c8a 497672005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
49768
49769 * include/grub/normal.h (grub_halt_init): New prototype.
49770 (grub_halt_fini): Likewise.
49771 (grub_reboot_init): Likewise.
49772 (grub_reboot_fini): Likewise.
49773
49774 * util/grub-emu.c: Include signal.h.
49775 (main_env): New global variable.
49776 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
49777 catch C-c.
49778 (grub_machine_fini): New function.
49779 (main): Call grub_halt_init and grub_reboot_init before
49780 grub_main, and grub_reboot_fini and grub_halt_fini after it.
49781 Call setjmp with MAIN_ENV to go back afterwards.
49782 Call grub_machine_fini right before return.
49783
49784 * include/grub/util/misc.h: Include setjmp.h.
49785 (main_env): New prototype.
49786
49787 * include/grub/kernel.h (grub_machine_fini): New prototype.
49788 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
49789 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
49790
49791 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
49792 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
49793 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 49794
e6b92c8a 49795 * util/i386/pc/misc.c: New file.
f19dbdb7 49796
e6b92c8a 49797 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49798 util/i386/pc/misc.c, commands/i386/pc/halt.c and
49799 commands/i386/pc/reboot.c.
49800
c642636f 498012005-02-14 Guillem Jover <guillem@hadrons.org>
49802
49803 * include/grub/dl.h (grub_dl_check_header): New prototype.
49804 (grub_arch_dl_check_header): Change return type to grub_err_t,
49805 remove size parameter and export function. Update all callers.
49806 * kern/dl.c (grub_dl_check_header): New function.
49807 (grub_dl_load_core): Use `grub_dl_check_header' instead of
49808 `grub_arch_dl_check_header'. Check ELF type. Check if sections
49809 are inside the core.
49810 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
49811 independent ELF header checks.
49812 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
49813 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
49814 `grub_dl_check_header' instead of explicit checks. Check for the
49815 ELF type.
49816 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
49817 `grub_dl_check_header' instead of explicit checks. Remove arch
49818 specific ELF header checks.
49819
e6b92c8a 49820 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
49821 argument SIZE.
49822
5eabe94b 498232005-02-13 Hollis Blanchard <hollis@penguinppc.org>
49824
49825 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
49826 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
49827
1b14a681 498282005-02-12 Hollis Blanchard <hollis@penguinppc.org>
49829
49830 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 49831 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 49832 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 49833 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 49834 * partmap/amiga.c (amiga_partition_map_iterate): Return
49835 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
49836 * partmap/apple.c (apple_partition_map_iterate): Likewise.
49837
aca108aa 498382005-02-01 Guillem Jover <guillem@hadrons.org>
49839
49840 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
49841 help info.
49842
c9f9c556 498432005-01-31 Marco Gerards <metgerards@student.han.nl>
49844
49845 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
49846 Removed prototype.
49847 (grub_rescue_cmd_linux): New prototype.
49848 (grub_rescue_cmd_initrd): Likewise.
49849 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
49850 `bi_rec'.
49851 (grub_linux_release_mem): Release the memory for the initrd.
49852 (grub_load_linux): Renamed from this...
49853 (grub_rescue_cmd_linux): ...To this. Changed all callers.
49854 Changed `entry' not to be static. Loop over memory regions to
49855 find another one when the default fails.
49856 (grub_rescue_cmd_initrd): New function.
49857 (grub_linux_init): Remove function.
49858 (grub_linux_fini): Likewise.
49859 (GRUB_MOD_INIT): Register `initrd'.
49860 (GRUB_MOD_FINI): Unregister `initrd'.
49861 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
49862 Function removed.
49863 (grub_linux_normal_fini): Likewise.
49864 (GRUB_MOD_INIT): Register `initrd'.
49865 (GRUB_MOD_FINI): Unregister `initrd'.
49866
990cf3aa 498672005-01-31 Marco Gerards <metgerards@student.han.nl>
49868
49869 * commands/help.c: New file.
49870 * normal/arg.c (show_help): Renamed to...
49871 (grub_arg_show_help): ... this.
49872 * commands/i386/pc/halt.c: New file.
49873 * commands/i386/pc/reboot.c: Likewise.
49874 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
49875 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
49876 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
49877 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
49878 variables.
49879 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49880 `commands/help.c'.
49881 (pkgdata_MODULES): Add `help.mod'.
49882 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
49883 * grub/i386/pc/init.h (grub_reboot): New prototype.
49884 (grub_halt): Likewise.
49885 * include/grub/normal.h (grub_arg_show_help): New prototype.
49886 (grub_help_init): Likewise.
49887 (grub_help_fini): Likewise.
49888 * util/grub-emu.c (main): Initialize and deinitialize the help
49889 command.
49890
49891 * normal/cmdline.c (grub_cmdline_get): Doc fix.
49892
49893 * normal/command.c (grub_command_init): Fixed the description of
49894 the `set' and `unset' commands.
49895
498962005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 49897
49898 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
49899 function.
49900 * commands/ieee1275/halt.c: New file.
49901 * commands/ieee1275/reboot.c: Likewise.
49902 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
49903 `__attribute__ ((unused))'. Some GCS related fixed.
49904 (grub_suspend_init) [GRUB_UTIL]: Function removed.
49905 (grub_suspend_fini): Likewise.
49906 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
49907 and `halt.mod'.
49908 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
49909 (halt_mod_CFLAGS): New variables.
49910 * include/grub/powerpc/ieee1275/ieee1275.h
49911 (grub_ieee1275_interpret): New prototype.
49912
1ab09cc7 499132005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
49914
49915 * include/grub/misc.h (memmove): New prototype.
49916 (memcpy): Likewise.
49917
8b8cbdb2 499182005-01-22 Hollis Blanchard <hollis@penguinppc.org>
49919
49920 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
49921 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
49922
e3741a27 499232005-01-22 Marco Gerards <metgerards@student.han.nl>
49924
49925 * kern/misc.c (grub_strndup): Function rewritten.
49926
776bd780 499272005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
49928
49929 * normal/menu.c (TERM_WIDTH): Macro redefined.
49930 (TERM_TOP_BORDER_Y): Likewise.
49931 (draw_border): Replaced while-loop by a for-loop. Make the number
49932 of lines consistent with the number of lines displayed in
49933 print_entries. Added a margin below the rectangle.
49934 (print_entry): Make the entry fit in the rectangle.
49935 (print_entries): Display the scroll arrows next to the right
49936 border.
49937
78026bce 499382005-01-21 Marco Gerards <metgerards@student.han.nl>
49939
49940 * fs/minix.c (grub_minix_find_file): Reserve more space for
49941 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
49942 `grub_strncpy' to copy `path' into it.
49943
67bbaf0f 499442005-01-21 Marco Gerards <metgerards@student.han.nl>
49945
49946 Add the loopback device, a device via which files can be accessed
49947 as devices.
f19dbdb7 49948
67bbaf0f 49949 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
49950 (pkgdata_MODULES): Add loopback.mod.
49951 (loopback_mod_SOURCES): New variable.
49952 (loopback_mod_CFLAGS): Likewise.
49953 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
49954 `disk/loopback.c'.
49955 (pkgdata_MODULES): Add loopback.mod.
49956 (loopback_mod_SOURCES): New variable.
49957 (loopback_mod_CFLAGS): Likewise.
49958 * disk/loopback.c: new file.
49959 * include/grub/normal.h (grub_loop_init): New prototype.
49960 (grub_loop_fini): New prototype.
49961 * util/grub-emu.c (main): Initialize and de-initialize loopback
49962 support.
49963 * include/grub/disk.h (grub_disk_dev_id): Add
49964 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
49965
6f1c18bd 499662005-01-20 Hollis Blanchard <hollis@penguinppc.org>
49967
49968 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
49969 function.
49970 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
49971 (suspend_mod_SOURCES): New variable.
49972 (suspend_mod_CFLAGS): Likewise.
49973 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
49974 New prototype.
49975 * commands/ieee1275/suspend.c: New file.
49976
b38551da 499772005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
49978
49979 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 49980 ((unused))' to `__attribute__ ((used))'.
b38551da 49981 (GRUB_MOD_FINI): Likewise.
49982 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
49983 * genmk.rb (PModule): Assign space to common symbols when linking
49984 modules.
49985
777aff39 499862005-01-20 Marco Gerards <metgerards@student.han.nl>
49987
49988 * include/grub/mm.h (grub_mm_init_region): Change the type of the
49989 `unsigned' arguments to `grub_size_t'.
49990 (grub_malloc): Likewise.
49991 (grub_realloc): Likewise.
49992 (grub_memalign): Likewise.
49993 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
49994 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
49995 * util/misc.c (grub_malloc): Likewise.
49996 (grub_realloc): Likewise.
49997 * kern/mm.c (get_header_from_pointer): Change the casts to
49998 `unsigned' into a cast to `grub_size_t'.
49999
50000 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
50001 point to `currnode' when `currnode' is changed.
50002
50003 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
50004 Schottelius <nico-linux@schottelius.org>.
50005
d0ff18e1 500062005-01-09 Hollis Blanchard <hollis@penguinppc.org>
50007
50008 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
50009 (note_path): Remove variable.
50010 (GRUB_IEEE1275_NOTE_NAME): New macro.
50011 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
50012 (grub_ieee1275_note_hdr): New structure.
50013 (grub_ieee1275_note_desc): Likewise.
50014 (grub_ieee1275_note): Likewise.
50015 (load_note): Remove `dir' argument. All callers updated. Remove
50016 `note_img' and `path'. Do not load a file from `note_path'.
50017 Initialize a struct grub_ieee1275_note and write that to `out'.
50018 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
50019
4ca7004c 500202005-01-05 Marco Gerards <metgerards@student.han.nl>
50021
50022 * util/misc.c (grub_util_read_image): Revert last change. It
50023 called `grub_util_read_at', which seeks from the beginning of the
50024 file.
50025
0b412211 500262005-01-04 Hollis Blanchard <hollis@penguinppc.org>
50027
50028 * TODO: Add note about endianness in grub-mkimage.
50029 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
50030 section.
50031 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
50032 (grub_mkimage_SOURCES): New target.
50033 * include/grub/kernel.h (grub_start_addr): Remove variable.
50034 (grub_end_addr): Likewise.
50035 (grub_total_module_size): Likewise.
50036 (grub_kernel_image_size): Likewise.
50037 (GRUB_MODULE_MAGIC): New constant.
50038 (grub_module_info): New structure.
50039 (grub_arch_modules_addr): New prototype.
50040 (grub_get_end_addr): Remove prototype.
50041 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
50042 * include/grub/powerpc/ieee1275/kernel.h: New file.
50043 * include/grub/util/misc.h (grub_util_get_fp_size): New
50044 prototype.
50045 (grub_util_read_at): Likewise.
50046 (grub_util_write_image_at): Likewise.
50047 * kern/main.c (grub_get_end_addr): Remove function.
50048 (grub_load_modules): Call grub_arch_modules_addr instead of using
50049 grub_end_addr. Look for a grub_module_info struct in memory. Use
50050 the grub_module_info fields instead of calling grub_get_end_addr
50051 as loop conditions. Move grub_add_unused_region code here.
50052 (grub_add_unused_region): Remove function.
50053 * kern/i386/pc/init.c: Include grub/cache.h.
50054 (grub_machine_init): Remove call to grub_get_end_addr. Remove
50055 one call to add_mem_region.
50056 (grub_arch_modules_addr): New function.
50057 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
50058 (grub_total_module_size): Likewise.
50059 Include grub/machine/kernel.h.
50060 (grub_arch_modules_addr): New function.
50061 * util/grub-emu.c (grub_end_addr): Remove variable.
50062 (grub_total_module_size): Likewise.
50063 (grub_arch_modules_addr): New function.
50064 * util/misc.c: Include unistd.h.
50065 (grub_util_get_fp_size): New function.
50066 (grub_util_read_at): Likewise.
50067 (grub_util_write_image_at): Likewise.
50068 (grub_util_read_image): Call grub_util_read_at.
50069 (grub_util_write_image): Call grub_util_write_image_at.
50070 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
50071 additional memory in kernel_img for a struct grub_module_info.
50072 Fill in that grub_module_info.
50073 * util/powerpc/ieee1275/grub-mkimage.c: New file.
50074
458786f8 500752005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50076
50077 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
50078 New function.
50079 * include/grub/powerpc/ieee1275/ieee1275.h
50080 (grub_ieee1275_milliseconds): New prototype.
50081 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
50082 Change to 1000.
50083 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
50084 grub_ieee1275_milliseconds.
50085
ac507d1b 500862005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50087
50088 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
50089 variable.
50090 (find_options): New function.
50091 (cmain): Call find_options.
50092 * include/grub/powerpc/ieee1275/ieee1275.h
50093 (grub_ieee1275_realmode): New extern variable.
50094 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
50095 grub_map if grub_ieee1275_realmode is false.
50096
6b8fd1c4 500972004-12-29 Marco Gerards <metgerards@student.han.nl>
50098
50099 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
50100 lines are inserted and make it work like readline. Reported by
50101 Vincent Pelletier <subdino2004@yahoo.fr>.
50102
8514a1e0 501032004-12-28 Marco Gerards <metgerards@student.han.nl>
50104
50105 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
50106
50107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
50108 `kern/powerpc/cache.S'.
50109
924b6140 501102004-12-27 Marco Gerards <metgerards@student.han.nl>
50111
50112 * genmk.rb: Handle the `Program' class in the main loop. Written
50113 by Johan Rydberg <jrydberg@gnu.org>.
50114 (Program): New class.
50115 (programs): New variable.
50116 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
50117 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
50118 instead of "grub/kernel.h". Include <grub/machine/init.h>.
50119 (help_arch): Function removed.
50120 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
50121 `powerpc/libgcc.h' and `loader.h'.
50122 (pkgdata_PROGRAMS): New variable.
50123 (sbin_UTILITIES): Variable removed.
50124 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
50125 (grubof_SOURCES): Variable re-defined so it only includes the
50126 core functionality.
50127 (grubof_CFLAGS): Remove `-DGRUBOF'.
50128 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
50129 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
50130 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
50131 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
50132 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
50133 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
50134 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
50135 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
50136 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
50137 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
50138 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50139 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
50140 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
50141 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
50142 (pc_mod_CFLAGS): New variables.
50143 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
50144 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
50145 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
50146 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
50147 Moved from here...
50148 * include/grub/i386/pc/init.h (grub_os_area_addr)
50149 (rub_os_area_size): ... to here.
50150 * include/grub/powerpc/ieee1275/ieee1275.h
50151 (grub_ieee1275_entry_fn): Export symbol.
50152 * include/grub/powerpc/ieee1275/init.h: New file.
50153 * include/grub/powerpc/libgcc.h: Likewise.
50154 * include/grub/cache.h: Likewise.
50155 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
50156 <hollis@penguinppc.org>.
50157 * kern/dl.c: Include <grub/cache.h>.
50158 (grub_dl_flush_cache): New function.
50159 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
50160 for this module.
50161 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
50162 (grub_console_init): Removed prototypes.
50163 (grub_machine_init): Don't initialize the modules anymore.
50164 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
50165 static.
50166 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
50167 Macro undef removed.
50168 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
50169 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
50170 relocation `R_PPC_REL32'. Return an error when the relocation is
50171 unknown.
50172 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
50173 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
50174 * util/misc.c (grub_arch_sync_caches): Likewise.
50175
e4b47e0c 501762004-12-19 Marco Gerards <metgerards@student.han.nl>
50177
50178 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
50179 `symlist.c', add `grubof_symlist.c'.
50180 (symlist.c): Variable removed.
50181 (grubof_HEADERS): Variable added.
50182 (grubof_symlist.c): New target.
50183 (kernel_syms.lst): Use `grubof_HEADERS' instead of
50184 `kernel_img_HEADERS'.
50185 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
50186 * kern/powerpc/dl.c: New file.
50187 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
50188 Function removed.
50189 (grub_arch_dl_relocate_symbols): Likewise.
50190 (grub_register_exported_symbols): Likewise.
50191
4ceb3636 501922004-12-13 Marco Gerards <metgerards@student.han.nl>
50193
50194 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
50195 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
50196 to fail instead. Reported by Vincent Pelletier
50197 <subdino2004@yahoo.fr>.
50198
50199 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
50200 it is not allocated. Reported by Vincent Pelletier
50201 <subdino2004@yahoo.fr>.
50202
50203 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
50204 output so the output looks better.
f19dbdb7 50205
3f1578fe 502062004-12-04 Marco Gerards <metgerards@student.han.nl>
50207
50208 Modulize the partition map support and add support for the amiga
50209 partition map.
f19dbdb7 50210
3f1578fe 50211 * commands/ls.c: Include <grub/partition.h> instead of
50212 <grub/machine/partition.h>.
50213 * kern/disk.c: Likewise.
50214 * kern/rescue.c: Likewise.
50215 * loader/i386/pc/chainloader.c: Likewise.
50216 * normal/cmdline.c: Likewise.
50217 * kern/powerpc/ieee1275/init.c: Likewise.
50218 (grub_machine_init): Call `grub_pc_partition_map_init',
50219 `grub_amiga_partition_map_init' and
50220 `grub_apple_partition_map_init'.
50221 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
50222 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
50223 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
50224 `partition.h' and `pc_partition.h'.
50225 (grub_setup_SOURCES): Remove
50226 `disk/i386/pc/partition.c'. Add `kern/partition.c',
50227 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50228 (grub_emu_SOURCES): Likewise.
50229 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
50230 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
50231 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
50232 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50233 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
50234 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50235 (grubof_SOURCES): Likewise.
50236 * disk/i386/pc/partition.c: File removed.
50237 * disk/powerpc/ieee1275/partition.c: Likewise.
50238 * include/grub/powerpc/ieee1275/partition.h: Likewise.
50239 * include/grub/i386/pc/partition.h: Likewise.
50240 * kern/partition.c: New file.
50241 * partmap/amiga.c: Likewise.
50242 * partmap/apple.c: Likewise.
50243 * partmap/pc.c: Likewise.
50244 * include/grub/partition.h: Likewise..
50245 * include/grub/pc_partition.h: Likewise.
50246 * util/grub-emu.c: Include <grub/partition.h> instead of
50247 <grub/machine/partition.h>.
50248 (main): Call `grub_pc_partition_map_init',
50249 `grub_amiga_partition_map_init' and
50250 `grub_apple_partition_map_init' and deinitialize afterwards.
50251 * util/i386/pc/biosdisk.c: Include `#include
50252 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50253 `<grub/machine/partition.h>'.
50254 * util/i386/pc/grub-setup.c: Likewise.
50255 * util/i386/pc/biosdisk.c: Likewise.
50256 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
50257 partition information in case of a PC partition.
50258 * util/i386/pc/grub-setup.c: Include `#include
50259 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50260 `<grub/machine/partition.h>'.
50261 (setup): Only access the PC specific partition information in case
50262 of a PC partition.
50263
0ef4ced9 502642004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 50265
0ef4ced9 50266 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
50267 (grub_longjmp): Likewise.
50268 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
50269 20.
50270 * normal/powerpc/setjmp.S: New file.
50271 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50272 `normal/powerpc/setjmp.S'.
50273 (grubof_CFLAGS): Add `-DGRUBOF'.
50274 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
50275 [GRUB_UTIL && !GRUBOF].
f19dbdb7 50276
19950e29 502772004-11-16 Marco Gerards <metgerards@student.han.nl>
50278
50279 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
50280 property named `name'. Correctly handle the error returned by
50281 `grub_ieee1275_finddevice' if a device can not be opened.
50282
a2fea427 502832004-11-02 Hollis Blanchard <hollis@penguinppc.org>
50284
50285 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
50286 `actual' for negativity.
50287 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50288 kern/fshelp.c.
50289
41ea0ea3 502902004-11-01 Marco Gerards <metgerards@student.han.nl>
50291
50292 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
50293 (PAGE_OFFSET): New macro.
50294 (CRTC_ADDR_PORT): Likewise.
50295 (CRTC_DATA_PORT): Likewise.
50296 (START_ADDR_HIGH_REGISTER): Likewise.
50297 (START_ADDR_LOW_REGISTER): Likewise.
50298 (GRAPHICS_ADDR_PORT): Likewise.
50299 (GRAPHICS_DATA_PORT): Likewise.
50300 (READ_MAP_REGISTER): Likewise.
50301 (INPUT_STATUS1_REGISTER): Likewise.
50302 (INPUT_STATUS1_VERTR_BIT): Likewise.
50303 (page): New variable.
50304 (wait_vretrace): New function.
50305 (set_read_map): Likewise.
50306 (set_start_address): Likewise.
50307 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
50308 the right page.
50309 (check_vga_mem): Take the page into account.
50310 (write_char): Likewise.
50311 (write_cursor): Likewise.
50312 (scroll_up): Likewise. Copy the page to the page that is not
50313 shown and switch between both pages.
50314 (grub_vga_putchar): Fix off by one error.
50315 (grub_vga_cls): Wait for the vertical retrace. Take the page into
50316 account.
50317
ad0bd20b 503182004-11-01 Marco Gerards <metgerards@student.han.nl>
50319
50320 Add support for iso9660 (including rockridge).
f19dbdb7 50321
ad0bd20b 50322 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50323 (iso9660_mod_SOURCES): New variable.
50324 (iso9660_mod_CFLAGS): Likewise.
50325 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50326 * include/grub/fs.h (grub_iso9660_init): New prototype.
50327 * util/grub-emu.c (main): Call `grub_iso9660_init'.
50328 * fs/iso9660.c: New file.
50329
50330 * include/grub/misc.h (grub_strncat): New prototype.
50331 * kern/misc.c (grub_strncat): New function.
f19dbdb7 50332
ad0bd20b 50333 * fs/hfs.c (grub_hfs_mount): Translate the error
50334 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
50335 * fs/jfs.c (grub_jfs_mount): Likewise.
50336 * fs/ufs.c (grub_ufs_mount): Likewise.
50337
a5477a59 503382004-10-28 Hollis Blanchard <hollis@penguinppc.org>
50339
50340 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
50341 which initialized BAT registers.
50342 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
50343 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50344 Move from here...
50345 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
50346 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50347 ... to here.
50348 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
50349 (grub_mapclaim): Likewise.
50350 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
50351 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
50352 hand.
50353
9304c1f8 503542004-10-19 Hollis Blanchard <hollis@penguinppc.org>
50355
50356 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
50357 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
50358 -ffreestanding and -msoft-float.
50359
86f4ae25 503602004-10-15 Hollis Blanchard <hollis@penguinppc.org>
50361
50362 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
50363 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
50364 set in grub_ieee1275_flags.
50365
38912228 503662004-10-14 Hollis Blanchard <hollis@penguinppc.org>
50367
50368 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
50369 prototype.
50370 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
50371 grub_console_init first.
50372 Change the memory range used for grub_ieee1275_claim and
50373 grub_mm_init_region.
50374 Print an error message if the claim fails.
50375 Include <grub/misc.h>.
50376
d1923dc8 503772004-10-13 Hollis Blanchard <hollis@penguinppc.org>
50378
50379 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
50380 Call grub_children_iterate for device nodes of type `scsi',
50381 `ide', or `ata'.
50382 (grub_ofdisk_open): Remove manual device alias resolution.
50383 Fix memory leak when device cannot be opened.
f19dbdb7 50384 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 50385 (grub_children_iterate): New prototype.
50386 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
50387 New function.
50388 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50389 Return -1 if args.size was -1.
50390
4512e4f3 503912004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50392
50393 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
50394 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
50395 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
50396 Open Firmware's memory for it; claim memory from _start to _end.
50397 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
50398 (_end): New extern.
50399 (_start): Zero BSS from __bss_start to _end.
50400 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
50401 New extern.
50402 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
50403
4d61feb0 504042004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50405
ad0bd20b 50406 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
50407 -1 if args.base was -1.
4d61feb0 50408
026fa2f9 504092004-10-08 Hollis Blanchard <hollis@penguinppc.org>
50410
50411 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
50412 escape sequence instead of a literal ^L. Also call
50413 grub_ofconsole_gotoxy.
50414
9f2220ef 504152004-10-03 Hollis Blanchard <hollis@penguinppc.org>
50416
50417 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
50418 void * arguments to grub_addr_t. All callers updated. Also make
50419 the `result' argument optional.
50420 (grub_ieee1275_release): change void * arguments to grub_addr_t.
50421 All callers updated.
50422
8a572cd7 504232004-09-22 Hollis Blanchard <hollis@penguinppc.org>
50424
50425 * commands/ls.c (grub_ls_list_files): Use the string following the
50426 initial ')', if present, as the filesystem path.
50427 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
50428
50429 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
50430
18aa81f2 504312004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
50432
50433 Make the source code of the menu interface more readable.
f19dbdb7 50434
18aa81f2 50435 * normal/menu.c: Include grub/mm.h.
50436 (TERM_WIDTH): New macro.
50437 (TERM_HEIGHT): Likewise.
50438 (TERM_INFO_HEIGHT): Likewise.
50439 (TERM_MARGIN): Likewise.
50440 (TERM_SCROLL_WIDTH): Likewise.
50441 (TERM_TOP_BORDER_Y): Likewise.
50442 (TERM_LEFT_BORDER_X): Likewise.
50443 (TERM_BORDER_WIDTH): Likewise.
50444 (TERM_MESSAGE_HEIGHT): Likewise.
50445 (TERM_BORDER_HEIGHT): Likewise.
50446 (TERM_NUM_ENTRIES): Likewise.
50447 (TERM_FIRST_ENTRY_Y): Likewise.
50448 (TERM_ENTRY_WIDTH): Likewise.
50449 (TERM_CURSOR_X): Likewise.
50450 (draw_border): Use macros instead of magic numbers.
50451 (print_entry): Likewise.
50452 (print_entries): Likewise.
50453 (run_menu): Likewise. Also, handle the key 'e'.
50454 (run_menu_entry): Ignore empty command lines.
50455 (print_message): Added a new argument EDIT. If EDIT is true,
50456 print a different message.
50457 (init_page): Likewise.
50458 (edit_menu_entry): New function. Not implemented yet.
50459
b47efe30 504602004-09-17 Marco Gerards <metgerards@student.han.nl>
50461
50462 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
50463 can be loaded from normal mode.
f19dbdb7 50464
b47efe30 50465 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
50466 `multiboot.mod'.
50467 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
50468 (multiboot_mod_CFLAGS): New variables.
50469 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 50470 * loader/i386/pc/multiboot_normal.c: Likewise.
50471
b47efe30 50472 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
50473 attribute `unused'.
f19dbdb7 50474
b47efe30 50475 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
50476 `fdiro' to read the mode information from instead of `diro'.
50477
50478 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
50479 looking up a symlink.
50480
50481 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
50482 macro.
50483 * normal/command.c (grub_command_execute): Don't parse the
50484 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
50485 flags of the command.
50486
50487 * normal/menu.c (grub_menu_run): Fix typo.
50488
da75ac71 504892004-09-14 Hollis Blanchard <hollis@penguinppc.org>
50490
50491 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
50492
50493 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
50494 `y + 1' instead of `y - 1'.
50495
50496 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 50497
062b24c2 504982004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
50499
50500 From Hollis Blanchard <hollis@penguinppc.org>:
50501 * kern/misc.c (memmove): New alias for grub_memmove.
50502 (memcmp): New alias for grub_memcmp.
50503 (memset): New alias for grub_memset.
f19dbdb7 50504 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 50505 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 50506 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 50507 (grub_ieee1275_get_property): Likewise.
f19dbdb7 50508
8ddad845 505092004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
50510
50511 Added normal mode command `chainloader' as module chain.mod, which
50512 depends on normal.mod and _chain.mod.
f19dbdb7 50513
8ddad845 50514 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
50515 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
50516 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
50517 Deleted prototype.
50518 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
50519 but arguments parsing moved to ...
50520 (grub_chainloader_cmd): ... here. New function.
50521 * include/grub/i386/pc/chainloader.h: New file.
50522 * loader/i386/pc/chainloader_normal.c: Likewise.
50523
2c1f4ce3 505242004-09-11 Marco Gerards <metgerards@student.han.nl>
50525
50526 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
50527 (grub_mkimage_LDFLAGS): Likewise.
50528 (grub_emu_SOURCES): Likewise.
50529 (kernel_img_HEADERS): Added fshelp.h.
50530 * fs/ext2.c: Include <grub/fshelp.h>.
50531 (FILETYPE_REG): New macro.
50532 (FILETYPE_INO_REG): Likewise.
50533 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
50534 Changed all users.
50535 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
50536 all users.
50537 (grub_fshelp_node): New struct.
50538 (grub_ext2_data): Added member `diropen'. Changed member `inode'
50539 to a pointer.
50540 (grub_ext2_get_file_block): Removed function.
50541 (grub_ext2_read_block): New function.
50542 (grub_ext2_read_file): Replaced parameter `data' by `node'.
50543 This function was written.
50544 (grub_ext2_mount): Read the root inode. Create a diropen struct.
50545 (grub_ext2_find_file): Removed function.
50546 (grub_ext2_read_symlink): New function.
50547 (grub_ext2_iterate_dir): Likewise.
50548 (grub_ext2_open): Rewritten.
50549 (grub_ext2_dir): Rewritten.
50550 * include/grub/fshelp.h: New file.
50551 * fs/fshelp.c: Likewise.
50552
3c52136a 505532004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
50554
50555 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
50556 (print_message): Add a missing newline.
50557 (run_menu): Added timeout support.
50558 (run_menu_entry): New local function.
50559 (grub_menu_run): Added support for booting.
50560
50561 * kern/loader.c (grub_loader_is_loaded): New function.
50562
50563 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
50564 (grub_get_rtc): Exported.
50565
50566 * include/grub/i386/pc/time.h: Include grub/symbol.h.
50567 (grub_get_rtc): Exported.
50568
50569 * include/grub/normal.h (struct grub_command_list): Remove
50570 constant from the member `command'.
50571
50572 * include/grub/loader.h (grub_loader_is_loaded): Declared.
50573
50574 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
50575
50576 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
50577
aa033560 505782004-08-28 Marco Gerards <metgerards@student.han.nl>
50579
50580 Add support for the JFS filesystem.
50581
50582 * fs/jfs.c: New file.
50583 * include/grub/fs.h (grub_jfs_init): New prototype.
50584 (grub_jfs_fini): New prototype.
50585 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
50586 (grub_emu_SOURCES): Likewise.
50587 (pkgdata_MODULES): Add jfs.mod.
50588 (jfs_mod_SOURCES): New variable.
50589 (jfs_mod_CFLAGS): Likewise.
50590 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
50591 (grubof_SOURCES): Likewise.
50592 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
50593
50594 * fs/fat.c (grub_fat_find_dir): Convert the filename little
50595 endian to the host endian.
50596 (grub_fat_utf16_to_utf8): Move function from there...
50597 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 50598 the endianness of the source string anymore.
aa033560 50599 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
50600
94bc45af 506012004-08-24 Marco Gerards <metgerards@student.han.nl>
50602
50603 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
50604 (grub_boot_fini) [GRUB_UTIL]: Likewise.
50605 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
50606 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 50607
94bc45af 50608 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
50609 (grub_hfs_iterate_dir): Make the function static. Add prototypes
50610 for `node_found' and `it_dir'.
50611 (grub_hfs_dir): Add prototype for `dir_hook'.
50612
50613 * fs/minix.c (grub_minix_get_file_block): Add prototype for
50614 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
50615 and `indir32' to silence a gcc warning.
50616
50617 * include/grub/fs.h (grub_hfs_init): New prototype.
50618 (grub_hfs_fini): Likewise.
f19dbdb7 50619
50620
97543f08 506212004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
50622
50623 Each disk device has its own id now. This is useful to make use
50624 of multiple disk devices.
f19dbdb7 50625
97543f08 50626 * include/grub/disk.h (grub_disk_dev_id): New enum.
50627 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
50628 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
50629
50630 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
50631 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50632
50633 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
50634 GRUB_DISK_DEVICE_OFDISK_ID as an id.
50635
50636 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
50637 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
50638
50639 * include/grub/disk.h (struct grub_disk_dev): Added a new member
50640 "id" which is used by the cache manager.
50641
50642 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
50643 of just "GRUB".
50644
64372eb4 506452004-08-18 Marco Gerards <metgerards@student.han.nl>
50646
50647 * fs/hfs.c: New file.
50648 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
50649 (grub_emu_SOURCES): Likewise.
50650 (pkgdata_MODULES): Add hfs.mod.
50651 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
50652 (grubof_SOURCES): Likewise.
50653 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
50654
50655 * include/grub/misc.h (grub_strncasecmp): Add prototype.
50656 * kern/misc.c (grub_strncasecmp): Add function.
50657
cc61b58f 506582004-08-14 Marco Gerards <metgerards@student.han.nl>
50659
50660 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
50661 with parentheses.
50662
50663 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
50664 (grub_ext2_dir): In case the directory entry type is unknown, read
50665 it from the inode.
50666
0ef123f6 506672004-08-02 Peter Bruin <pjbruin@dds.nl>
50668
50669 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
50670 grub_load_linux instead of grub_rescue_cmd_linux as second
50671 argument of grub_rescue_register_command.
50672
50673 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
50674
a447c5df 506752004-07-27 Marco Gerards <metgerards@student.han.nl>
50676
50677 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
50678 function.
50679 * commands/boot.c: Remove the check for `GRUB_UTIL'.
50680 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50681 `loader/powerpc/ieee1275/linux.c',
50682 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
50683 * include/grub/powerpc/ieee1275/ieee1275.h
50684 (grub_ieee1275_release): New prototype.
50685 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
50686 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
50687 normal, boot, linux and linux_normal.
50688 * loader/powerpc/ieee1275/linux.c: New file.
50689 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
50690
5a9e3546 506912004-07-12 Marco Gerards <metgerards@student.han.nl>
50692
50693 * normal/arg.c (grub_arg_parse): Correct error handling after
50694 reallocating the argumentlist (check if `argl' is not null instead
50695 of checking if `args' is not null).
50696 * kern/mm.c (grub_realloc): Return the same pointer when using the
50697 same region, instead of returning the header address.
50698
e15199cb 506992004-07-11 Marco Gerards <metgerards@student.han.nl>
50700
50701 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
50702 one block instead of two when looking for the initial partition.
50703 (grub_partition_probe): Initialize the local variable `p' with 0.
50704 Use base 10 for the grub_strtoul call.
50705 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
50706 need for one local variable.
50707 (grub_strtoul): Don't add the new value to `num', instead of that
50708 just assign it.
50709
020616c2 507102004-07-11 Marco Gerards <metgerards@student.han.nl>
50711
50712 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
50713 (pxeboot_img_SOURCES): New variable.
50714 (pxeboot_img_ASFLAGS): Likewise.
50715 (pxeboot_img_LDFLAGS): Likewise.
50716 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
50717 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
50718 <lode_leroy@hotmail.com>.
50719
6c51eb64 507202004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50721
50722 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
50723 there was no input.
50724
cfb12aff 507252004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50726
50727 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
50728 the history buffer logic.
50729
6eabba74 507302004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
50731
50732 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
50733 (FILETYPE_INO_SYMLINK): New macros.
50734 (grub_ext2_find_file): Check if the node is a directory using the
50735 inode stat information instead of using the filetype in the
50736 dirent. Exclude the first character of an absolute symlink.
50737 (grub_ext2_dir): Mask out the filetype part of the mode member of
50738 the inode.
50739
66e19ef8 507402004-05-24 Marco Gerards <metgerards@student.han.nl>
50741
50742 Add support for UFS version 1 and 2. Add support for the minix
50743 filesystem version 1 and 2, both the variants with 14 and 30 long
50744 filenames.
f19dbdb7 50745
66e19ef8 50746 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
50747 fs/minix.c.
50748 (grub_emu_SOURCES): Likewise.
50749 (pkgdata_MODULES): Add ufs.mod and minix.mod.
50750 (ufs_mod_SOURCES): New variable.
50751 (ufs_mod_CFLAGS): Likewise.
50752 (minix_mod_SOURCES): Likewise.
50753 (minix_mod_CFLAGS): Likewise.
50754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
50755 fs/minix.c.
50756 (grubof_SOURCES): Likewise.
50757 * fs/ufs.c: New file.
50758 * fs/minix.c: New file.
50759 * include/grub/fs.h (grub_ufs_init): New prototype.
50760 (grub_ufs_fini): Likewise.
50761 (grub_minix_init): Likewise.
50762 (grub_minix_fini): Likewise.
50763 * util/grub-emu.c (main): Initialize and deinitialize UFS and
50764 minix fs.
50765
cc2e748a 507662004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
50767
50768 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
50769 commands/ls.c, commands/terminal.c, commands/boot.c,
50770 commands/cmp.c and commands/cat.c.
50771 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
50772
50773 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
50774 "env.h"
50775
4b13b216 507762004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50777
50778 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
50779 and grub_, respectively. Because the conversion is trivial and
50780 mechanical, I omit the details here. Please refer to the CVS
50781 if you need more information.
50782
6a142551 507832004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
50784
50785 * include/pupa: Renamed to ...
50786 * include/grub: ... this.
50787 * util/i386/pc/pupa-mkimage.c: Renamed to ...
50788 * util/i386/pc/grub-mkimage.c: ... this.
50789 * util/i386/pc/pupa-setup.c: Renamed to ...
50790 * util/i386/pc/grub-setup.c: ... this.
50791 * util/pupa-emu.c: Renamed to ...
50792 * util/grub-emu.c: ... this.
50793
e56cdf21 507942004-03-29 Marco Gerards <metgerards@student.han.nl>
50795
50796 Add support for the newworld apple macintosh (PPC). This has been
50797 tested on the powerbook 2000 only. It only adds support for
50798 generic ieee1275 functions, console and disk support. This should
50799 be easy to port to other architectures with support for Open
50800 Firmware.
f19dbdb7 50801
e56cdf21 50802 * configure.ac: Accept the powerpc as host_cpu. In the case of
50803 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
50804 specific tests are only executed while building for the i386.
50805 Inverse test for crosscompile.
50806 * genmk.rb (Utility): Allow assembler files.
50807 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
50808 * conf/powerpc-ieee1275.rmk: New file.
50809 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
50810 * disk/powerpc/ieee1275/partition.c: Likewise.
50811 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
50812 * include/pupa/powerpc/ieee1275/console.h: Likewise.
50813 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
50814 * include/pupa/powerpc/ieee1275/time.h: Likewise.
50815 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
50816 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
50817 * include/pupa/powerpc/ieee1275/loader.h
50818 * include/pupa/powerpc/setjmp.h: Likewise.
50819 * include/pupa/powerpc/types.h: Likewise.
50820 * kern/powerpc/ieee1275/init.c: Likewise.
50821 * kern/powerpc/ieee1275/openfw.c: Likewise.
50822 * term/powerpc/ieee1275/ofconsole.c: Likewise.
50823
50824 These files were written by Johan Rydberg
50825 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 50826
e56cdf21 50827 * boot/powerpc/ieee1275/cmain.c: New file.
50828 * boot/powerpc/ieee1275/crt0.S: Likewise.
50829 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
50830 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
50831
8c8cc205 508322004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
50833
50834 * Makefile.in: Update copyright.
50835 * genmodsrc.sh: Likewise.
50836 * gensymlist.sh: Likewise.
50837 * term/i386/pc/vga.c: Indent correctly.
50838
50839 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
50840 bugreporting address.
50841 * util/i386/pc/pupa-setup.c (usage): Likewise,
50842 (main): Call pupa_ext2_init and pupa_ext2_fini.
50843
f19dbdb7 50844 * fs/fat.c (log2): Renamed to ...
8c8cc205 50845 (fat_log2): ... this.
50846 All callers changed.
50847 * kern/misc.c (memcpy): Alias to pupa_memmove.
50848 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
50849 lvalue cast.
50850 * util/console.c (pupa_ncurses_fini): Return 0.
50851
50852 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
50853 Move fail label here.
50854 [__GNU__]: Don't warn when using stat.
50855 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
50856 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
50857 long int. Use strtol instead of strtoul.
f19dbdb7 50858
db1771cf 508592004-03-14 Marco Gerards <metgerards@student.han.nl>
50860
50861 * commands/boot.c: New file.
50862 * commands/cat.c: Likewise.
50863 * commands/cmp.c: Likewise.
50864 * commands/ls.c: Likewise.
50865 * commands/terminal.c: Likewise.
50866 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
50867 (pupa_register_command): Changed interface to match the new
50868 argument parser.
50869 (pupa_command_execute): Changed (almost rewritten) so it uses
50870 pupa_split_command. Added support for setting variables using the
50871 syntax `foo=bar'.
50872 (rescue_command): Changed to work with the new argument parser.
50873 (terminal_command): Moved from here to commands/terminal.c.
50874 (set_command): New function.
50875 (unset_command): New function.
50876 (insmod_command): New function.
50877 (rmmod_command): New function.
50878 (lsmod_command): New function.
50879 (pupa_command_init): Don't initialize the command terminal
50880 anymore. Initialize the commands set, unset, insmod, rmmod and
50881 lsmod.
50882 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
50883 (kernel_img_HEADERS): Add arg.h and env.h.
50884 (pupa_mkimage_LDFLAGS): Add kern/env.c.
50885 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
50886 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
50887 normal/arg.c.
50888 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
50889 terminal.mod.
50890 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
50891 (boot_mod_SOURCES): New variable.
50892 (terminal_mod_SOURCES): Likewise.
50893 (ls_mod_SOURCES): Likewise.
50894 (cmp_mod_SOURCES): Likewise.
50895 (cat_mod_SOURCES): Likewise.
50896
50897 * normal/arg.c: New file.
50898 * kern/env.c: Likewise.
50899 * include/pupa/arg.h: Likewise.
50900 * include/pupa/env.h: Likewise.
50901 * font/manager.c (font_command): Changed to match argument parsing
50902 interface changes.
50903 (PUPA_MOD_INIT): Likewise.
50904 * hello/hello.c (pupa_cmd_hello): Likewise.
50905 (PUPA_MOD_INIT): Likewise.
50906 * include/pupa/disk.h: Include <pupa/device.h>.
50907 (pupa_print_partinfo): New prototype.
50908 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
50909 (pupa_dl_get_prefix): Likewise.
50910 * include/pupa/misc.h: Include <pupa/err.h>.
50911 (pupa_isgraph): New prototype.
50912 (pupa_isdigit): Likewise.
50913 (pupa_split_cmdline): Likewise.
50914 * include/pupa/normal.h: Include <pupa/arg.h>.
50915 (pupa_command): Changed the prototype of the member `func' to
50916 match the argument parsing interface. Added member `options'.
50917 (pupa_register_command): Updated to match function.
50918 (pupa_arg_parse): New prototype.
50919 (pupa_hello_init) [PUPA_UTIL]: New prototype.
50920 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
50921 (pupa_ls_init) [PUPA_UTIL]: Likewise.
50922 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
50923 (pupa_cat_init) [PUPA_UTIL]: Likewise.
50924 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
50925 (pupa_boot_init) [PUPA_UTIL]: Likewise.
50926 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
50927 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
50928 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
50929 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
50930 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
50931 * kern/disk.c: Include <pupa/file.h>.
50932 (pupa_print_partinfo): New function.
50933 * kern/dl.c: Include <pupa/env.h>.
50934 (pupa_dl_dir): Variable removed.
50935 (pupa_dl_load): Use the environment variable `prefix' instead of
50936 the variable pupa_dl_dir.
50937 (pupa_dl_set_prefix): Function removed.
50938 (pupa_dl_get_prefix): Likewise.
50939 * kern/i386/pc/init.c: Include <pupa/env.h>.
50940 (pupa_machine_init): Use the environment variable `prefix' instead of
50941 using pupa_dl_set_prefix to set the prefix.
50942 * kern/main.c: Include <pupa/env.h>.
50943 (pupa_set_root_dev): Use the environment variable `prefix' instead of
50944 using pupa_dl_get_prefix to get the prefix.
50945 * kern/misc.c: Include <pupa/env.h>.
50946 (pupa_isdigit): New function.
50947 (pupa_isgraph): Likewise.
50948 (pupa_ftoa): Likewise.
50949 (pupa_vsprintf): Added support for printing values of the type
50950 `double'. Make it possible to format variable output when using
50951 formatting like `%1.2%f'.
50952 (pupa_split_cmdline): New function.
50953 * kern/rescue.c: Include <pupa/env.h>.
50954 (next_word): Removed function.
50955 (pupa_rescue_cmd_prefix): Likewise.
50956 (pupa_rescue_cmd_set): New function.
50957 (pupa_rescue_cmd_unset): New function.
50958 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
50959 split the command line instead of splitting it here. Added
50960 support for setting variables using the syntax `foo=bar'. Don't
50961 initialize the prefix command anymore. Initialized the set and
50962 unset commands.
50963 * normal/cmdline.c: Include <pupa/env.h>.
50964 (pupa_tab_complete): Added prototypes for print_simple_completion,
50965 print_partition_completion, add_completion, iterate_commands,
50966 iterate_dev, iterate_part and iterate_dir. Moved code to print
50967 partition information from here to kern/disk.c.
fe6b695a 50968 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 50969 * normal/main.c: Include <pupa/env.h>.
50970 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
50971 instead of using pupa_dl_get_prefix to get the prefix.
50972 * term/i386/pc/vga.c: Include <pupa/arg.h>.
50973 (check_vga_mem): Cast pointers to `void *' to silence a gcc
50974 warning.
50975 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
50976 (pupa_vga_setcolor): Declare unused variables with `__attribute__
50977 ((unused))' to silence a gcc warning.
50978 (pupa_vga_setcolor): Likewise.
50979 (debug_command): Changed to match argument parsing
50980 interface changes.
50981 * util/pupa-emu.c: Include <pupa/env.h>.
50982 (options): Added 0's for unused fields to silence a gcc warning.
50983 (argp): Likewise.
50984 (main): Use the environment variable `prefix' instead of using
50985 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
50986 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
50987 and terminal.
50988
50989 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
50990 * util/misc.c: Include <malloc.h>.
50991 (pupa_malloc): Rewritten so errors are correctly reported.
50992 (pupa_realloc): Likewise.
50993 (pupa_memalign): Likewise.
50994 (pupa_mm_init_region): Declare unused variables with
50995 `__attribute__ ((unused))' to silence a gcc warning.
50996 * normal/i386/setjmp.S: Remove tab at the end of the file to
50997 silence a gcc warning.
50998 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
50999 variables with `__attribute__ ((unused))' to silence a gcc
51000 warning.
51001 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
51002 local variable i unsigned to silence a gcc warning.
51003
51004 * kern/term.c: Include <pupa/misc.h>.
51005 (pupa_more_lines): New variable.
51006 (pupa_more): Likewise.
51007 (pupa_putcode): When the pager is active pause at the end of every
51008 screen.
51009 (pupa_set_more): New function.
51010 * include/pupa/term.h (pupa_set_more): New prototype.
51011
51012
3b1139cb 510132004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
51014
51015 Now this project is GRUB 2 rather than PUPA. The location of
51016 the CVS repository was moved to GRUB's.
f19dbdb7 51017
3b1139cb 51018 * configure.ac: Use bug-grub as the reporting address.
51019 Use GRUB instead of PUPA.
51020 Change the version number to 1.90.
51021
8367695c 510222004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
51023
51024 * genkernsyms.sh: Updated copyright information.
51025 * genmk.rb: Likewise.
51026 * genmodsrc.sh: Likewise.
51027 * gensymlist.sh: Likewise.
51028 * boot/i386/pc/boot.S: Likewise.
51029 * boot/i386/pc/diskboot.S: Likewise.
51030 * disk/i386/pc/biosdisk.c: Likewise.
51031 * disk/i386/pc/partition.c: Likewise.
51032 * font/manager.c: Likewise.
51033 * fs/ext2.c: Likewise.
51034 * fs/fat.c: Likewise.
51035 * include/pupa/boot.h: Likewise.
51036 * include/pupa/device.h: Likewise.
51037 * include/pupa/disk.h: Likewise.
51038 * include/pupa/dl.h: Likewise.
51039 * include/pupa/elf.h: Likewise.
51040 * include/pupa/err.h: Likewise.
51041 * include/pupa/file.h: Likewise.
51042 * include/pupa/font.h: Likewise.
51043 * include/pupa/fs.h: Likewise.
51044 * include/pupa/kernel.h: Likewise.
51045 * include/pupa/loader.h: Likewise.
51046 * include/pupa/misc.h: Likewise.
51047 * include/pupa/mm.h: Likewise.
51048 * include/pupa/net.h: Likewise.
51049 * include/pupa/normal.h: Likewise.
51050 * include/pupa/rescue.h: Likewise.
51051 * include/pupa/setjmp.h: Likewise.
51052 * include/pupa/symbol.h: Likewise.
51053 * include/pupa/term.h: Likewise.
51054 * include/pupa/types.h: Likewise.
51055 * include/pupa/i386/setjmp.h: Likewise.
51056 * include/pupa/i386/types.h: Likewise.
51057 * include/pupa/i386/pc/biosdisk.h: Likewise.
51058 * include/pupa/i386/pc/boot.h: Likewise.
51059 * include/pupa/i386/pc/console.h: Likewise.
51060 * include/pupa/i386/pc/init.h: Likewise.
51061 * include/pupa/i386/pc/kernel.h: Likewise.
51062 * include/pupa/i386/pc/linux.h: Likewise.
51063 * include/pupa/i386/pc/loader.h: Likewise.
51064 * include/pupa/i386/pc/memory.h: Likewise.
51065 * include/pupa/i386/pc/multiboot.h: Likewise.
51066 * include/pupa/i386/pc/partition.h: Likewise.
51067 * include/pupa/i386/pc/time.h: Likewise.
51068 * include/pupa/i386/pc/vga.h: Likewise.
51069 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
51070 * include/pupa/util/getroot.h: Likewise.
51071 * include/pupa/util/misc.h: Likewise.
51072 * include/pupa/util/resolve.h: Likewise.
51073 * kern/device.c: Likewise.
51074 * kern/disk.c: Likewise.
51075 * kern/dl.c: Likewise.
51076 * kern/err.c: Likewise.
51077 * kern/file.c: Likewise.
51078 * kern/fs.c: Likewise.
51079 * kern/loader.c: Likewise.
51080 * kern/main.c: Likewise.
51081 * kern/misc.c: Likewise.
51082 * kern/mm.c: Likewise.
51083 * kern/rescue.c: Likewise.
51084 * kern/term.c: Likewise.
51085 * kern/i386/dl.c: Likewise.
51086 * kern/i386/pc/init.c: Likewise.
51087 * kern/i386/pc/lzo1x.S: Likewise.
51088 * kern/i386/pc/startup.S: Likewise.
51089 * loader/i386/pc/chainloader.c: Likewise.
51090 * loader/i386/pc/linux.c: Likewise.
51091 * loader/i386/pc/multiboot.c: Likewise.
51092 * normal/cmdline.c: Likewise.
51093 * normal/command.c: Likewise.
51094 * normal/main.c: Likewise.
51095 * normal/menu.c: Likewise.
51096 * normal/i386/setjmp.S: Likewise.
51097 * term/i386/pc/console.c: Likewise.
51098 * term/i386/pc/vga.c: Likewise.
51099 * util/console.c: Likewise.
51100 * util/genmoddep.c: Likewise.
51101 * util/misc.c: Likewise.
51102 * util/pupa-emu.c: Likewise.
51103 * util/resolve.c: Likewise.
51104 * util/unifont2pff.rb: Likewise.
51105 * util/i386/pc/biosdisk.c: Likewise.
51106 * util/i386/pc/getroot.c: Likewise.
51107 * util/i386/pc/pupa-mkimage.c: Likewise.
51108 * util/i386/pc/pupa-setup.c: Likewise.
51109
e6eced71 511102004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
51111
51112 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
51113 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
51114 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
51115 reading and reset it after reading.
51116 (pupa_ext2_close): Return PUPA_ERR_NONE.
51117
51118 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
51119 Correct value.
51120 (struct linux_kernel_header): Add kernel_version and
51121 initrd_addr_max.
51122 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
51123 pupa_file_read succeeds.
51124 (pupa_rescue_cmd_initrd): Implement.
51125
5aded270 511262003-12-03 Marco Gerards <metgerards@student.han.nl>
51127
51128 * fs/ext2.c (pupa_ext2_label): New function.
51129 (pupa_ext2_fs): Added label.
51130 * fs/fat.c (pupa_fat_label): New function.
51131 (pupa_fat_fs): Added label.
51132 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
51133
51134 * kern/misc.c (pupa_strndup): New function.
51135 * include/pupa/misc.h (pupa_strndup): New prototype.
51136
51137 * include/pupa/normal.h: Include <pupa/err.h>.
51138 (pupa_set_history): New prototype.
51139 (pupa_iterate_commands): New prototype.
51140 * normal/cmdline.c: Include <pupa/machine/partition.h>,
51141 <pupa/disk.h>, <pupa/file.h>.
51142 (hist_size): New variable.
51143 (hist_lines): Likewise.
51144 (hist_end): Likewise.
51145 (hist_used): Likewise.
51146 (pupa_set_history): New function.
51147 (pupa_history_get): Likewise.
51148 (pupa_history_add): Likewise.
51149 (pupa_history_replace): Likewise.
51150 (pupa_tab_complete): Likewise.
51151 (pupa_cmdline_run): Added tab completion and history buffer. Tab
51152 completion shows partitionnames while completing partitions, this
51153 feature was suggested by Jeff Bailey.
51154 * normal/command.c (pupa_iterate_commands): New function.
51155 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
51156 (pupa_normal_init): Initialize history buffer.
51157 (PUPA_MOD_INIT): Likewise.
51158 (pupa_normal_fini): Free the history buffer.
51159 (PUPA_MOD_FINI): Likewise.
51160
51161 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
51162 key.
51163
51164 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
51165 * configure.ac [i386]: Check for regparam bug.
51166 (NESTED_FUNC_ATTR) [! i386]: Defined.
51167
1f7315a3 511682003-11-17 Marco Gerards <metgerards@student.han.nl>
51169
51170 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
51171 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
51172 (pupa_emu_SOURCES): New variable.
51173 (pupa_emu_LDFLAGS): Likewise.
51174 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
51175 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
51176 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
51177 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51178 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
51179 (pupa_jmp_buf): New typedef.
51180 (pupa_setjmp) [PUPA_UTIL]: New macro.
51181 (pupa_longjmp) [PUPA_UTIL]: Likewise.
51182 * include/pupa/term.h (struct pupa_term): New member `refresh'.
51183 (pupa_refresh): New prototype.
51184 * include/pupa/util/getroot.h: New file.
51185 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
51186 it.
51187 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
51188 (pupa_rescue_cmd_cat): Likewise.
51189 (pupa_rescue_cmd_ls): Likewise.
51190 (pupa_rescue_cmd_testload): Likewise.
51191 (pupa_rescue_cmd_lsmod): Likewise.
51192 * normal/cmdline.c (pupa_cmdline_get): Likewise.
51193 * normal/menu.c (run_menu): Likewise.
51194 * kern/term.c (pupa_cls): Likewise.
51195 (pupa_refresh): New function.
51196 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
51197 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51198 * util/console.c: New file.
f19dbdb7 51199
1f7315a3 51200 * util/i386/pc/getroot.c: New file.
51201 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
51202 (pupa_putchar): New function.
51203 (pupa_refresh): Likewise.
51204 (xgetcwd): Function moved to ...
51205 (strip_extra_slashes): Likewise.
51206 (get_prefix): Likewise.
f19dbdb7 51207 * util/i386/pc/getroot.c: ... here.
1f7315a3 51208 (find_root_device): Function moved and renamed to...
51209 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
51210 Changed all callers.
51211 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
51212 and renamed to...
51213 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
51214 Changed all callers.
51215 * util/misc.c (pupa_memalign): New function.
51216 (pupa_mm_init_region): Likewise.
51217 (pupa_register_exported_symbols): Likewise.
51218 (pupa_putchar): Function removed.
51219 * util/pupa-emu.c: New file.
51220
9a5c1ade 512212003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
51222
51223 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
51224 (_multiboot_mod_SOURCES): New variable.
51225 (_multiboot_mod_CFLAGS): Likewise.
51226 * loader/i386/pc/multiboot.c: New file.
51227 * include/pupa/i386/pc/multiboot.h: Likewise.
51228 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
51229 (pupa_multiboot_real_boot): New function.
51230 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
51231 (pupa_multiboot_real_boot): New prototype.
51232 (pupa_rescue_cmd_multiboot): Likewise
51233 (pupa_rescue_cmd_module): Likewise.
51234
51235 * kern/loader.c (pupa_loader_set): Continue when
51236 pupa_loader_unload_func() fails.
51237 (pupa_loader_unset): New function.
51238 * include/pupa/loader.h (pupa_loader_unset): New prototype.
51239
51240 * kern/misc.c (pupa_stpcpy): New function.
51241 * include/pupa/misc.h (pupa_stpcpy): New prototype.
51242
8e72a9c0 512432003-11-12 Marco Gerards <metgerards@student.han.nl>
51244
51245 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
51246 for available extensions.
51247
51248 * include/pupa/i386/pc/time.h: New file.
51249 * kern/disk.c: Include <pupa/machine/time.h>.
51250 (PUPA_CACHE_TIMEOUT): New macro.
51251 (pupa_last_time): New variable.
51252 (pupa_disk_open): Flush the cache when there was a timeout.
51253 (pupa_disk_close): Reset the timer.
51254 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
51255 pupa_currticks.
51256 * util/misc.c: Include <sys/times.h>
51257 (pupa_get_rtc): New function.
51258
c4adbd32 512592003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
51260
51261 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
51262 as blocks.
51263 (pupa_ext2_get_file_block): Use blocks member.
51264
51265 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
51266 first block. Return -1 instead of pupa_errno on error.
51267
bfd30f06 512682003-10-27 Marco Gerards <metgerards@student.han.nl>
51269
51270 * README: In the pupa-mkimage example use _chain instead of chain
51271 and ext2 instead of fat.
51272 * TODO: Replace ext2fs with jfs as an example. Add an item for
51273 adding journal playback for ext2fs.
51274 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
51275 (pkgdata_MODULES): Added ext2.mod.
51276 (ext2_mod_SOURCES): New variable.
51277 (ext2_mod_CFLAGS): Likewise.
51278 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
51279 * include/pupa/misc.h (pupa_strncpy): New prototype.
51280 (pupa_strcat): Likewise.
51281 (pupa_strncmp): Likewise.
51282 * kern/misc.c (pupa_strcat): Enable function.
51283 (pupa_strncpy): New function.
51284 (pupa_strncmp): Likewise.
51285 * fs/ext2.c: New file.
f19dbdb7 51286
bfd30f06 51287 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
51288 when the read failed before retrying.
51289 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
51290 (_FILE_OFFSET_BITS): Likewise.
51291 * configure.ac: Added AC_SYS_LARGEFILE.
51292
98d15063 512932003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51294
51295 * genmk.rb (PModule#rule): Make sure to get only symbol names
51296 from the output of nm.
59cad637 51297 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 51298
18d9c7cd 512992003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51300
51301 I forgot to check in these changes for a long time. This adds
51302 incomplete support for VGA console, and this is still very
51303 buggy. Also, a lot of consideration is required for I18N,
51304 UNICODE, and VGA font issues. Therefore, assume that this is
51305 such that "better than nothing".
f19dbdb7 51306
18d9c7cd 51307 * font/manager.c: New file.
51308 * include/pupa/font.h: Likewise.
51309 * include/pupa/i386/pc/vga.h: Likewise.
51310 * term/i386/pc/vga.c: Likewise.
51311 * util/unifont2pff.rb: Likewise.
51312
51313 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
51314 (pkgdata_MODULES): Added vga.mod and font.mod.
51315 (vga_mod_SOURCES): New variables.
51316 (vga_mod_CFLAGS): Likewise.
51317 (font_mod_SOURCES): Likewise.
51318 (font_mod_CFLAGS): Likewise.
51319
51320 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
51321
51322 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 51323 (struct pupa_term): Added init and fini.
18d9c7cd 51324 Changed the argument of putchar to pupa_uint32_t.
51325
51326 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
51327 (pupa_console_real_putchar): New prototype.
51328 (pupa_console_putchar): Removed.
51329 (pupa_console_checkkey): Exported.
51330 (pupa_console_getkey): Likewise.
51331
51332 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
51333 characters.
51334
51335 * kern/term.c (pupa_term_set_current): Rewritten.
51336 (pupa_putchar): Likewise.
51337 (pupa_putcode): New function.
51338
51339 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
51340 (pupa_console_real_putchar): ... this.
51341 (pupa_vga_set_mode): New function.
51342 (pupa_vga_get_font): Likewise.
51343
51344 * normal/command.c: Include pupa/term.h.
51345 (terminal_command): New function.
51346 (pupa_command_init): Register the command "terminal".
51347
51348 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
51349 (DISP_UP): Likewise.
51350 (DISP_RIGHT): Likewise.
51351 (DISP_DOWN): Likewise.
51352 (DISP_HLINE): Likewise.
51353 (DISP_VLINE): Likewise.
51354 (DISP_UL): Likewise.
51355 (DISP_UR): Likewise.
51356 (DISP_LL): Likewise.
51357 (DISP_LR): Likewise.
51358
51359 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 51360
977329f5 513612003-02-08 NIIBE Yutaka <gniibe@m17n.org>
51362
51363 * util/resolve.c (pupa_util_resolve_dependencies): BUG
51364 FIX. Reverse the path_list.
51365
51366 * include/pupa/normal.h: Export pupa_register_command and
51367 pupa_unregister_command.
51368
51369 * hello/hello.c (pupa_cmd_hello): New module.
51370 * conf/i386-pc.rmk: Added hello.mod.
51371
1f5ab428 513722003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
51373
51374 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 51375
1f5ab428 51376 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
51377 (compress_kernel): New variable.
51378 (generate_image): Heavily modified to support compressing a
51379 large part of the core image.
51380
51381 * util/misc.c (pupa_util_read_image): Fix a file descriptor
51382 leak.
51383 (pupa_util_load_image): New function.
51384
51385 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
51386 (pupa_compressed_size): New variable.
51387 (codestart): Enable Gate A20 here.
51388 Decompress the compressed part of the core image.
51389 Rearrange the code to put functions and variables which are
51390 required for initialization in the non-compressed part.
51391 Include lzo1x.S.
51392
51393 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
51394 here.
51395
51396 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
51397
f19dbdb7 51398 * include/pupa/i386/pc/kernel.h
1f5ab428 51399 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
51400 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
51401 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51402 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51403 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
51404
51405 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
51406
51407 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
51408 (Utility#rule): Likewise.
51409
51410 * configure.ac: Check if LZO is available.
51411
ce5bf700 514122003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
51413
51414 * include/pupa/normal.h: New file.
51415 * include/pupa/setjmp.h: Likewise.
51416 * include/pupa/i386/setjmp.h: Likewise.
51417 * normal/cmdline.c: Likewise.
51418 * normal/command.c: Likewise.
51419 * normal/main.c: Likewise.
51420 * normal/menu.c: Likewise.
51421 * normal/i386/setjmp.S: Likewise.
f19dbdb7 51422
ce5bf700 51423 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
51424 (pupa_rescue_cmd_initrd): Likewise.
51425
51426 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
51427 Likewise.
51428
51429 * kern/i386/pc/startup.S (translation_table): New variable.
51430 (translate_keycode): New function.
51431 (pupa_console_getkey): Call translate_keycode.
51432
51433 * kern/rescue.c (attempt_normal_mode): New function.
51434 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
51435 it failed, print a message.
51436
51437 * kern/mm.c (pupa_real_malloc): Print more information when a
51438 free magic is broken.
51439 (pupa_free): If the first free header is not free actually, set
51440 it to P.
51441
51442 * kern/main.c (pupa_load_normal_mode): Just load the module
51443 "normal".
51444 (pupa_main): Don't print the message
51445 "Entering into rescue mode..." here.
51446
51447 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
51448 Declared.
51449 (pupa_rescue_cmd_initrd): Likewise.
51450 (pupa_rescue_cmd_initrd): Likewise.
51451
51452 * include/pupa/symbol.h (FUNCTION): Specify the type.
51453 (VARIABLE): Likewise.
51454
51455 * include/pupa/err.h (pupa_err_t): Added
51456 PUPA_ERR_UNKNOWN_COMMAND.
51457
51458 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
51459 (pupa_dl_get_prefix): Likewise.
51460
51461 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
51462 Added _chain.mod and _linux.mod instead of chain.mod and
51463 linux.mod.
51464 (chain_mod_SOURCES): Renamed to ...
51465 (_chain_mod_SOURCES): ... this.
51466 (chain_mod_CFLAGS): Renamed to ...
51467 (_chain_mod_CFLAGS): ... this.
51468 (linux_mod_SOURCES): Renamed to ...
51469 (_linux_mod_SOURCES): ... this.
51470 (linux_mod_CFLAGS): Renamed to ...
51471 (_linux_mod_CFLAGS): ... this.
51472 (normal_mod_SOURCES): New variable.
51473 (normal_mod_CFLAGS): Likewise.
51474 (normal_mod_ASFLAGS): Likewise.
51475
514762003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
51477
51478 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
51479 possible.
51480
fe6b695a 51481 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 51482 recursively.
51483 (pupa_dl_unref): Unrefer depending modules recursively.
51484 Don't call pupa_dl_unload implicitly, because PUPA can crash if
51485 a module is unloaded before one depending on that module is
51486 unloaded.
51487 (pupa_dl_unload): Unload depending modules explicitly,
51488 if possible.
51489
c04da074 514902003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
51491
51492 * include/pupa/i386/pc/linux.h: New file.
51493 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 51494
c04da074 51495 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
51496 Removed.
51497 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
51498 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
51499 of PUPA_CHAINLOADER_BOOT_SECTOR.
51500
51501 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
51502 (pupa_linux_prot_size): New variable.
51503 (pupa_linux_tmp_addr): Likewise.
51504 (pupa_linux_real_addr): Likewise.
51505 (pupa_linux_boot_zimage): New function.
51506 (pupa_linux_boot_bzimage): Likewise.
51507
51508 * kern/i386/pc/init.c (struct mem_region): New structure.
51509 (MAX_REGIONS): New macro.
51510 (mem_regions): New variable.
51511 (num_regions): Likewise.
51512 (pupa_os_area_addr): Likewise.
51513 (pupa_os_area_size): Likewise.
51514 (pupa_lower_mem): Likewise.
51515 (pupa_upper_mem): Likewise.
51516 (add_mem_region): New function.
51517 (compact_mem_regions): Likewise.
51518 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
51519 the size of the conventional memory and that of so-called upper
51520 memory (before the first memory hole).
51521 Instead of adding each found region to free memory, use
51522 add_mem_region and add them after removing overlaps.
51523 Also, add only 1/4 of the upper memory to free memory. The rest
51524 is used for loading OS images. Maybe this is ad hoc, but this
51525 makes it much easier to relocate OS images when booting.
51526
51527 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
51528 (pupa_enter_rescue_mode): Don't register initrd and module.
51529
51530 * kern/mm.c: Include pupa/dl.h.
51531
51532 * kern/main.c: Include pupa/file.h and pupa/device.h.
51533
51534 * kern/loader.c (pupa_loader_load_module_func): Removed.
51535 (pupa_loader_load_module): Likewise.
51536
51537 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
51538 ``.o''.
51539
51540 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
51541 (pupa_linux_tmp_addr): Likewise.
51542 (pupa_linux_real_addr): Likewise.
51543 (pupa_linux_boot_zimage): Likewise.
51544 (pupa_linux_boot_bzimage): Likewise.
51545
51546 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
51547 (pupa_upper_mem): Likewise.
51548 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
51549 module is too dangerous.
51550
51551 * include/pupa/loader.h (pupa_os_area_addr): Declared.
51552 (pupa_os_area_size): Likewise.
51553 (pupa_loader_set): Remove the first argument. Loader doesn't
51554 manage modules or initrd any longer.
51555 (pupa_loader_load_module): Removed.
51556
51557 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
51558 (linux_mod_SOURCES): New variable.
51559 (linux_mod_CFLAGS): Likewise.
51560
a13f9237 515612003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
51562
51563 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
51564 the length of a blocklist correctly.
51565
51566 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
51567 Use ioctl only if the OS file is a block device.
51568 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
51569 not very useful for normal files.
51570
51571 * kern/main.c (pupa_set_root_dev): New function.
51572 (pupa_load_normal_mode): Likewise.
51573 (pupa_main): Call those above.
51574
51575 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
51576 pupa_uint16_t.
51577
51578 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
51579
a5ffe966 515802003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
51581
51582 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
51583 (setup): Configure the installed partition information and the
51584 dl prefix.
51585
51586 * loader/i386/pc/chainloader.c (my_mod): New variable.
51587 (pupa_chainloader_unload): New function.
51588 (pupa_rescue_cmd_chainloader): Refer itself.
51589 (PUPA_MOD_INIT): Save its own module in MY_MOD.
51590
51591 * kern/i386/pc/startup.S (install_partition): Removed.
51592 (version_string): Likewise.
51593 (config_file): Likewise.
51594 (pupa_install_dos_part): New variable.
51595 (pupa_install_bsd_part): Likewise.
51596 (pupa_prefix): Likewise.
51597 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
51598
51599 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
51600 and pupa/misc.h.
51601 (make_install_device): New function.
51602 (pupa_machine_init): Set the dl prefix.
51603
51604 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
51605 (buf): Renamed to ...
51606 (linebuf): ... this.
51607 (pupa_rescue_cmd_prefix): New function.
51608 (pupa_rescue_cmd_insmod): Likewise.
51609 (pupa_rescue_cmd_rmmod): Likewise.
51610 (pupa_rescue_cmd_lsmod): Likewise.
51611 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
51612 rmmod and lsmod.
51613
51614 * kern/mm.c (pupa_memalign): If failed even after invalidating
51615 disk caches, unload unneeded modules and retry.
51616
51617 * kern/misc.c (pupa_memmove): New function.
51618 (pupa_memcpy): Removed.
51619 (pupa_strcpy): New function.
51620 (pupa_itoa): Made static.
51621
51622 * kern/dl.c (pupa_dl_iterate): New function.
51623 (pupa_dl_ref): Likewise.
51624 (pupa_dl_unref): Likewise.
51625 (pupa_dl_unload): Return if succeeded or not.
51626 (pupa_dl_unload_unneeded): New function.
51627 (pupa_dl_unload_all): Likewise.
51628 (pupa_dl_init): Renamed to ...
51629 (pupa_dl_set_prefix): ... this.
51630 (pupa_dl_get_prefix): New function.
51631
51632 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
51633 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
51634 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51635 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51636 (pupa_install_dos_part): Declared.
51637 (pupa_install_bsd_part): Likewise.
51638 (pupa_prefix): Likewise.
51639 (pupa_boot_drive): Likewise.
51640
51641 * include/pupa/types.h: Fix a typo.
51642
51643 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
51644 pupa_memmove.
51645 (pupa_memmove): Declared.
51646 (pupa_strcpy): Likewise.
51647
51648 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
51649 pupa_mod_init takes one argument, its own module.
51650 (pupa_dl_unload_unneeded): Declared.
51651 (pupa_dl_unload_all): Likewise.
51652 (pupa_dl_ref): Likewise.
51653 (pupa_dl_unref): Likewise.
51654 (pupa_dl_iterate): Likewise.
51655 (pupa_dl_init): Renamed to ...
51656 (pupa_dl_set_prefix): ... this.
51657 (pupa_dl_get_prefix): Declared.
51658
51659 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 51660 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 51661 unloaded.
51662 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
51663 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
51664
51665 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
51666 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
51667
012d7999 516682003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51669
51670 * util/i386/pc/pupa-setup.c (setup): Define the internal
51671 function find_first_partition_start at the top level, because GCC
51672 3.0.x cannot compile internal functions in deeper scopes
51673 correctly.
51674 (find_root_device): Use lstat instead of stat.
51675 Don't follow symbolic links.
51676 Fix the path-constructing code.
51677
51678 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
51679 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
51680 by a BLKGETSIZE ioctl first, because block devices don't fill
51681 the member st_mode of the structure stat on Linux.
51682 [__linux__] (linux_find_partition): Use a temporary buffer
51683 REAL_DEV for the working space. Copy it to DEV before returning.
51684 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
51685 buffer cache consistent.
51686 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
51687 strncmp. The previous value was merely wrong.
51688 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
51689
51690 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
51691 FAT size is 12. The previous value was merely wrong.
51692
51693 * kern/main.c (pupa_main): Don't split the starting message from
51694 newlines.
51695
51696 * kern/term.c (pupa_putchar): Put CR after LF instead of before
51697 LF, because BIOS goes crazy about character attributes in this
51698 case.
51699
1cc73a62 517002003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
51701
51702 * include/i386/pc/util/biosdisk.h: New file.
51703 * util/i386/pc/biosdisk.c: Likewise.
51704 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 51705
1cc73a62 51706 * Makefile.in (INCLUDE_DISTFILES): Added
51707 include/pupa/i386/pc/util/biosdisk.h.
51708 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
51709 directory util/i386/pc.
51710 (install-local): Added a rule for sbin_UTILITIES.
51711 (uninstall): Likewise.
51712
51713 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
51714
51715 * util/misc.c (xrealloc): New function.
51716 (pupa_malloc): Likewise.
51717 (pupa_free): Likewise.
51718 (pupa_realloc): Likewise.
51719 (pupa_stop): Likewise.
51720 (pupa_putchar): Likewise.
51721
51722 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
51723
51724 * include/pupa/util/misc.h (xrealloc): Declared.
51725
51726 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
51727 macro.
51728 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
51729 (PUPA_BOOT_MACHINE_BPB_END): ... this.
51730
51731 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
51732 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51733
51734 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
51735 way should be implemented.
51736 [PUPA_UTIL] (pupa_fat_fini): Likewise.
51737
51738 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
51739 the size of NAME for safety.
51740 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
51741 0x88.
51742
51743 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
51744 (pupa_setup_SOURCES): Likewise.
51745
51746 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
51747
08b70fe8 517482002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51749
51750 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
51751 bunch of pushl's from pusha, because this destroys the return
51752 value.
51753
62ddcc8f 517542002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
51755
51756 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
51757 This means that any missing prototypes could be fatal. Also, you
51758 must take care when writing assembly code. See the comments at
51759 the beginning of startup.S, for more details.
f19dbdb7 51760
62ddcc8f 51761 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
51762 compilation mechanism.
51763 (pupa_chainloader_real_boot): Likewise.
51764 (pupa_biosdisk_rw_int13_extensions): Likewise.
51765 (pupa_biosdisk_rw_standard): Likewise.
51766 (pupa_biosdisk_check_int13_extensions): Likewise.
51767 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
51768 (pupa_biosdisk_get_diskinfo_standard): Likewise.
51769 (pupa_get_memsize): Likewise.
51770 (pupa_get_mmap_entry): Likewise.
51771 (pupa_console_putchar): Likewise.
51772 (pupa_console_setcursor): Likewise.
51773 (pupa_getrtsecs): Use pushl instead of push.
51774
51775 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
51776 memory instead of the stack for a mmap entry, because some
51777 BIOSes may ignore the maximum size and overflow.
51778
51779 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
51780
51781 * genmk.rb (PModule#rule): Compile automatically generated
51782 sources with module-specific CFLAGS as well as other sources.
51783
9962ed99 517842002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51785
51786 * configure.ac: Check ld.
51787 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
51788 respectively, before checking endianness and sizes.
51789
51790 * Makefile.in (LD): New variable.
f19dbdb7 51791
abdfc3c5 517922002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51793
51794 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
51795
6a161fa9 517962002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
51797
51798 * Changelog: New file.
51799